Skip to content

Commit

Permalink
Feat: Setup OFT on destination chains (#2)
Browse files Browse the repository at this point in the history
* build: fraxfinance/layerzero-v2-upgradeable

* feat: FraxOFTUpgradeable

* build: fix

* fix(deploy): deployment addr/order

* refactor: deployFraxOFTUpgradeablesAndProxies

* feat: setPeers

* feat: admin role setup

* refactor: bytes conversion, initial state check

* feat: ProxyAdmin

* feat: setEnforcedOptions

* feat: set DVNs

* fix: build

* pass until setDVNs()

* feat: setSendReceiveLibraries()

* feat: deploy local passes

* docs: notice on resolving failed `setSendAndReceiveLibrary()`

* fix: use default send/receive lib

* fix: blast EID

* build: deploy addrs

* deploy: final script for Mode

* ops: deploy v1.0.0

* fix: deterministic ProxyAdmin

* feat: deterministic proxy addr

* feat: ImplementationMock

* ops: deploy v0.1.0

* refactor: load in configs

* refactor: configs array

* feat: postDeployChecks

* refactor: numOfts with enforcement

* refactor: setDVNs, setEnforcedOptions, setPeers

* fix: skip set to self

* feat: setupDestinations()

* fix: build

* refactor: setupDestination()

* feat: output json of setupDestination

* refactor: setupSource()

* feat: pre-deterministic TransparentUpgradeableProxy

* ops: v1.0.0 ready
  • Loading branch information
pegahcarter authored Jun 14, 2024
1 parent f8cdb55 commit df166b6
Show file tree
Hide file tree
Showing 10 changed files with 1,725 additions and 179 deletions.
23 changes: 3 additions & 20 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# Example environment configuration
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'

# By default, the examples support both mnemonic-based and private key-based authentication
#
# You don't need to set both of these values, just pick the one that you prefer and set that one
MNEMONIC=
PRIVATE_KEY=

OFT_DEPLOYER=0x2b4309B7cd184C7E3e7BA3bf6CA938c6A37FDCC4
OFT_DEPLOYER=0x909DBdE1eBE906Af95660033e478D59EFe831fED
PK_OFT_DEPLOYER=
CONFIG_DEPLOYER=0x19D0467ab629f9Ef1cD51732dacF6dA74cE9CFF6
CONFIG_DEPLOYER=0x3DdD463472Bc839a616042E05C825C6910DB12b0
PK_CONFIG_DEPLOYER=
DELEGATE=

MODE_RPC_URL=https://mainnet.mode.network/
RPC_URL=https://mainnet.mode.network/
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ libs = [
'node_modules/@layerzerolabs/toolbox-foundry/lib',
'node_modules',
]
fs_permissions = [{ access = "read-write", path = "./"}]

remappings = [
# Due to a misconfiguration of solidity-bytes-utils, an outdated version
Expand Down
Loading

0 comments on commit df166b6

Please sign in to comment.