Skip to content

Commit

Permalink
Deploy scripts for communication testnet (#2185)
Browse files Browse the repository at this point in the history
* 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
ChiTimesChi authored Mar 1, 2024
1 parent 565233c commit 55e655e
Show file tree
Hide file tree
Showing 37 changed files with 7,656 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"**/@typechain/*",
"**/@openzeppelin/contracts-upgradeable",
"**/@openzeppelin/contracts",
"**/@synapsecns/solidity-devops",
"**/ds-test",
"**/forge-std"
]
Expand Down
43 changes: 43 additions & 0 deletions packages/contracts-communication/.env.example
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
2 changes: 2 additions & 0 deletions packages/contracts-communication/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
flattened/
.deployments
broadcast
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"executorEOA": "0xD0D45E468ADF3aCB8A98391ff47267783220ba6F",
"gasOracleName": "GasOracleMock"
}
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
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"chains": ["eth_sepolia", "op_sepolia"]
}
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"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11155111
Loading

0 comments on commit 55e655e

Please sign in to comment.