-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy scripts for communication testnet (#2185)
* Initial devops setup * Add solidity-devops as a dev dep * Add scripts [UGLY, export properly] * Add deploy scripts * Deploy on ETH Sepolia * Reorder deployments * Deploy on OP sepolia * Config for OP sepolia * Move deploy scripts * Deploy GasOracle mocks * Add config scripts * Add testnet configs * Use newer package, remove dupe scripts * New naming :happy: * Chore: fix shellcheck errors
- Loading branch information
1 parent
565233c
commit 55e655e
Showing
37 changed files
with
7,656 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Use the structure from this file in the .env of the package that is using solidity-devops | ||
|
||
# Wallets | ||
# Define as many wallets as needed. For every wallet following env vars are needed: | ||
# - WALLET_ADDR: the address of the account to use for signing | ||
# - WALLET_TYPE: the wallet type: "keystore", "ledger","trezor" or "pk". | ||
# Any other value triggers the interactive prompt to enter the private key. | ||
# - keystore: use the encrypted keystore file. | ||
# - WALLET_JSON: the keystore file path | ||
# - ledger, trezor: use HW wallet for signing | ||
# TODO: find out if ledger/trezor specific options are needed | ||
# - pk: use the plaintext private key. STRONGLY DISCOURAGED for production usage, meant for local devnet purposes. | ||
# - WALLET_PK: the private key to the wallet in 0x format. | ||
|
||
# This will make wallet with name "deployer" available to run the scripts: | ||
DEPLOYER_ADDR=0x1234567890123456789012345678901234567890 | ||
DEPLOYER_TYPE=keystore | ||
DEPLOYER_JSON=path/to/keystore.json | ||
|
||
# Chains | ||
# For every chain following env vars are needed: | ||
# - CHAIN_RPC: the RPC endpoint | ||
# - CHAIN_VERIFIER: verifier for the smart contracts. Possible values are: etherscan, blockscout, sourcify | ||
# - CHAIN_VERIFIER_URL: the Verifier API endpoint (required if verifier is not sourcify) | ||
# - CHAIN_VERIFIER_KEY: the Verifier API key (required if verifier is not sourcify) | ||
# NOTE: Blockcout URL needs to end with "api?" for the verification to work | ||
# NOTE: Use any non-empty string for Blockscout API key: it is not required per se, but foundry will complain if it's empty | ||
|
||
# MAINNET CHAINS | ||
# TODO: add mainnet chains | ||
|
||
# TESTNET CHAINS | ||
# Ethereum Sepolia Testnet | ||
ETH_SEPOLIA_RPC=https://rpc.sepolia.org | ||
ETH_SEPOLIA_VERIFIER=etherscan | ||
ETH_SEPOLIA_VERIFIER_URL=https://api-sepolia.etherscan.io/api | ||
ETH_SEPOLIA_VERIFIER_KEY=YourEtherScanKey | ||
|
||
# Optimism Sepolia Testnet | ||
OP_SEPOLIA_RPC=https://optimism-sepolia.blockpi.network/v1/rpc/public | ||
OP_SEPOLIA_VERIFIER=etherscan | ||
OP_SEPOLIA_VERIFIER_URL=https://api-sepolia-optimistic.etherscan.io/api | ||
OP_SEPOLIA_VERIFIER_KEY=YourOptimismEtherScanKey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
flattened/ | ||
.deployments | ||
broadcast |
4 changes: 4 additions & 0 deletions
4
packages/contracts-communication/configs/global/ExecutionService.testnet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"executorEOA": "0xD0D45E468ADF3aCB8A98391ff47267783220ba6F", | ||
"gasOracleName": "GasOracleMock" | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/contracts-communication/configs/global/InterchainAppExample.testnet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"chains": ["eth_sepolia", "op_sepolia"], | ||
"trustedModules": ["SynapseModule"], | ||
"appConfig": { | ||
"0_requiredResponses": 1, | ||
"1_optimisticPeriod": 30 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/contracts-communication/configs/global/InterchainClientV1.testnet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"chains": ["eth_sepolia", "op_sepolia"] | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/contracts-communication/configs/global/SynapseModule.testnet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"claimFeeBPS": 10, | ||
"feeCollector": "0xD0D45E468ADF3aCB8A98391ff47267783220ba6F", | ||
"gasOracleName": "GasOracleMock", | ||
"threshold": 6, | ||
"verifiers": [ | ||
"0x0E399F695d72033d598aC2911B8A5e9986d6cbaD", | ||
"0x107a281D135ff74eC7d43c5A50B902EF762b20dE", | ||
"0x217238ca74d2fba6cc7466f93d691834a252a3ff", | ||
"0x48217d9b7ff1048915b09f21d0d818e6e347de6a", | ||
"0x65b23e9678f8b3ef331a554865df045ee49a6365", | ||
"0x8372eed424f90dca45325362e474def7483d55ba", | ||
"0xae61329ce0affa55a7174916214fc2560a1cdd9f", | ||
"0xb9a96627bd4b0a8954ac16670ee70eed26b104dc", | ||
"0xe144dd3ce6bf60f70d98bc96400c0fea5c3193ac", | ||
"0xe29c07938d623621ff9824e2a327a6f811386880" | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/contracts-communication/deployments/eth_sepolia/.chainId
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11155111 |
Oops, something went wrong.