Skip to content

Commit

Permalink
Seievm SR deployment affected files.
Browse files Browse the repository at this point in the history
  • Loading branch information
hernandp committed Jan 11, 2025
1 parent ba9831e commit 0b0ec28
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 14 deletions.
7 changes: 7 additions & 0 deletions ethereum/ts-scripts/relayer/config/testnet/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
"rpc": "https://bartio.rpc.berachain.com",
"wormholeAddress": "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"
},
{
"description": "SeiEVM",
"evmNetworkId": 1328,
"chainId": 40,
"rpc": "https://evm-rpc-testnet.sei-apis.com",
"wormholeAddress": "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"
},
{
"description": "Unichain Sepolia",
"evmNetworkId": 1301,
Expand Down
28 changes: 28 additions & 0 deletions ethereum/ts-scripts/relayer/config/testnet/contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
{
"address": "0x7A0a53847776f7e94Cc35742971aCb2217b0Db81",
"chainId": 44
},
{
"address": "0x7A0a53847776f7e94Cc35742971aCb2217b0Db81",
"chainId": 40
}
],
"wormholeRelayers": [
Expand Down Expand Up @@ -147,6 +151,10 @@
{
"address": "0x362fca37E45fe1096b42021b543f462D49a5C8df",
"chainId": 44
},
{
"address": "0x362fca37E45fe1096b42021b543f462D49a5C8df",
"chainId": 40
}
],
"wormholeRelayerImplementations": [
Expand Down Expand Up @@ -221,6 +229,10 @@
{
"address": "0x00337a31aEE3Ed37f5D5FBF892031d0090Da2EeF",
"chainId": 44
},
{
"address": "0x00337a31aEE3Ed37f5D5FBF892031d0090Da2EeF",
"chainId": 40
}
],
"mockIntegrations": [
Expand Down Expand Up @@ -275,6 +287,10 @@
{
"address": "0xa507Ff8D183D2BEcc9Ff9F82DFeF4b074e1d0E05",
"chainId": 44
},
{
"address": "0xa507Ff8D183D2BEcc9Ff9F82DFeF4b074e1d0E05",
"chainId": 40
}
],
"create2Factories": [
Expand Down Expand Up @@ -349,6 +365,10 @@
{
"address": "0xe9918f582A972613aC5700d2346a97B8ebAd48a2",
"chainId": 44
},
{
"address": "0xe9918f582A972613aC5700d2346a97B8ebAd48a2",
"chainId": 40
}
],
"deliveryProviderImplementations": [
Expand All @@ -367,6 +387,10 @@
{
"address": "0x401d3A2ec0a071e2A8f8Fc9B4C69313C1a04540c",
"chainId": 44
},
{
"address": "0x401d3A2ec0a071e2A8f8Fc9B4C69313C1a04540c",
"chainId": 40
}
],
"deliveryProviderSetups": [
Expand All @@ -385,6 +409,10 @@
{
"address": "0xedd08D4363820603fb1B261F7667B8ee170c37a5",
"chainId": 44
},
{
"address": "0xedd08D4363820603fb1B261F7667B8ee170c37a5",
"chainId": 40
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"updatePriceGas": "10000000000",
"updatePriceNative": "100000"
},
{
"chainId": 40,
"updatePriceGas": "10000000000",
"updatePriceNative": "100000"
},
{
"chainId": 44,
"updatePriceGas": "10000000000",
Expand Down Expand Up @@ -91,6 +96,10 @@
"chainId": 39,
"updateGasOverhead": "350000"
},
{
"chainId": 40,
"updateGasOverhead": "350000"
},
{
"chainId": 44,
"updateGasOverhead": "350000"
Expand Down Expand Up @@ -145,6 +154,10 @@
"chainId": 39,
"updateMaximumBudget": "2000000000000000000"
},
{
"chainId": 40,
"updateMaximumBudget": "2000000000000000000"
},
{
"chainId": 44,
"updateMaximumBudget": "2000000000000000000"
Expand Down Expand Up @@ -205,6 +218,10 @@
"chainId": 39,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 40,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 44,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
Expand Down Expand Up @@ -299,6 +316,10 @@
"chainId": 39,
"isSupported": true
},
{
"chainId": 40,
"isSupported": true
},
{
"chainId": 43,
"isSupported": true
Expand Down Expand Up @@ -397,6 +418,10 @@
"chainId": 39,
"supportedKeys": ["vaa"]
},
{
"chainId": 40,
"supportedKeys": ["vaa"]
},
{
"chainId": 43,
"supportedKeys": ["vaa"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"chainId": 39,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 40,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 44,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
Expand Down Expand Up @@ -151,6 +155,13 @@
"updatePriceNative": "200000",
"maximumBudget": "1000000000000000000"
},
{
"chainId": 40,
"deliverGasOverhead": "350000",
"updatePriceGas": "30000000000",
"updatePriceNative": "200000",
"maximumBudget": "1000000000000000000"
},
{
"chainId": 44,
"deliverGasOverhead": "350000",
Expand Down
4 changes: 4 additions & 0 deletions ethereum/ts-scripts/relayer/helpers/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ export async function buildOverrides(
} else if (chain.chainId === 39) {
overrides.type = 2;
overrides.maxPriorityFeePerGas = 0;
} else if (chain.chainId === 40) {
overrides.type = 2;
overrides.maxFeePerGas = ethers.utils.parseUnits("1.1", "gwei");
overrides.maxPriorityFeePerGas = ethers.utils.parseUnits("1.1", "gwei");
} else if (chain.chainId === 44) {
overrides.type = 2;
overrides.maxFeePerGas = ethers.utils.parseUnits("0.001", "gwei");
Expand Down
37 changes: 23 additions & 14 deletions ethereum/ts-scripts/relayer/shell/verifyCreate2Factory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,28 @@ for chain in $chain_ids
forge verify-contract --verifier blockscout --verifier-url $monad_devnet_explorer_url --watch \
--rpc-url $monad_devnet_rpc_url \
$init_contract_address contracts/relayer/create2Factory/Create2Factory.sol:Init
else if test $chain -eq 37
set xlayer_explorer_url "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER"

forge verify-contract --verifier oklink --verifier-url $xlayer_explorer_url --watch \
$create2_factory_address contracts/relayer/create2Factory/Create2Factory.sol:Create2Factory
forge verify-contract --verifier oklink --verifier-url $xlayer_explorer_url --watch \
$init_contract_address contracts/relayer/create2Factory/Create2Factory.sol:Init
else if test $chain -eq 39
set berachain_artio_verifier_url "https://api.routescan.io/v2/network/testnet/evm/80084/etherscan"

forge verify-contract --verifier custom --verifier-url $berachain_artio_verifier_url \
--watch $create2_factory_address contracts/relayer/create2Factory/Create2Factory.sol:Create2Factory
forge verify-contract --verifier custom --verifier-url $berachain_artio_verifier_url \
--watch $init_contract_address contracts/relayer/create2Factory/Create2Factory.sol:Init
else if test $chain -eq 40
set sei_testnet_explorer_url "https://seitrace.com/atlantic-2/api/"
set sei_testnet_rpc_url "https://seitrace.com/atlantic-2/api/eth-rpc"

forge verify-contract --verifier blockscout --verifier-url $sei_testnet_explorer_url --rpc-url $sei_testnet_rpc_url \
--watch $create2_factory_address contracts/relayer/create2Factory/Create2Factory.sol:Create2Factory
forge verify-contract --verifier blockscout --verifier-url $sei_testnet_explorer_url --rpc-url $sei_testnet_rpc_url \
--watch $init_contract_address contracts/relayer/create2Factory/Create2Factory.sol:Init
else if test $chain -eq 44
set unichain_sepolia_explorer_url "https://unichain-sepolia.blockscout.com/api/"
set unichain_sepolia_rpc_url "https://unichain-sepolia.blockscout.com/api/eth-rpc"
Expand All @@ -91,20 +113,7 @@ for chain in $chain_ids
forge verify-contract --verifier blockscout --verifier-url $ink_sepolia_explorer_url --watch \
--rpc-url $ink_sepolia_rpc_url \
$init_contract_address contracts/relayer/create2Factory/Create2Factory.sol:Init
else if test $chain -eq 37
set xlayer_explorer_url "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER"

forge verify-contract --verifier oklink --verifier-url $xlayer_explorer_url --watch \
$create2_factory_address contracts/relayer/create2Factory/Create2Factory.sol:Create2Factory
forge verify-contract --verifier oklink --verifier-url $xlayer_explorer_url --watch \
$init_contract_address contracts/relayer/create2Factory/Create2Factory.sol:Init
else if test $chain -eq 39
set berachain_artio_verifier_url "https://api.routescan.io/v2/network/testnet/evm/80084/etherscan"

forge verify-contract --verifier custom --verifier-url $berachain_artio_verifier_url \
--watch $create2_factory_address contracts/relayer/create2Factory/Create2Factory.sol:Create2Factory
forge verify-contract --verifier custom --verifier-url $berachain_artio_verifier_url \
--watch $init_contract_address contracts/relayer/create2Factory/Create2Factory.sol:Init

else
forge verify-contract --watch \
$create2_factory_address contracts/relayer/create2Factory/Create2Factory.sol:Create2Factory
Expand Down
11 changes: 11 additions & 0 deletions ethereum/ts-scripts/relayer/shell/verifyDeliveryProvider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ for chain in $chain_ids
--watch $setup_address contracts/relayer/deliveryProvider/DeliveryProviderSetup.sol:DeliveryProviderSetup
forge verify-contract --verifier custom --verifier-url $berachain_artio_verifier_url \
--watch $proxy_address contracts/relayer/deliveryProvider/DeliveryProviderProxy.sol:DeliveryProviderProxy
else if test $chain -eq 40

set sei_testnet_explorer_url "https://seitrace.com/atlantic-2/api/"
set sei_testnet_rpc_url "https://seitrace.com/atlantic-2/api/eth-rpc"

forge verify-contract --verifier blockscout --verifier-url $sei_testnet_explorer_url --rpc-url $sei_testnet_rpc_url \
--watch $implementation_address contracts/relayer/deliveryProvider/DeliveryProviderImplementation.sol:DeliveryProviderImplementation
forge verify-contract --verifier blockscout --verifier-url $sei_testnet_explorer_url --rpc-url $sei_testnet_rpc_url \
--watch $setup_address contracts/relayer/deliveryProvider/DeliveryProviderSetup.sol:DeliveryProviderSetup
forge verify-contract --verifier blockscout --verifier-url $sei_testnet_explorer_url --rpc-url $sei_testnet_rpc_url \
--watch $proxy_address contracts/relayer/deliveryProvider/DeliveryProviderProxy.sol:DeliveryProviderProxy

else if test $chain -eq 44
set unichain_sepolia_explorer_url "https://unichain-sepolia.blockscout.com/api/"
Expand Down
10 changes: 10 additions & 0 deletions ethereum/ts-scripts/relayer/shell/verifyWormholeRelayer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ for chain in $chain_ids
forge verify-contract --verifier custom --verifier-url $berachain_artio_verifier_url \
--watch $implementation_address contracts/relayer/wormholeRelayer/WormholeRelayer.sol:WormholeRelayer

else if test $chain -eq 40

set sei_testnet_explorer_url "https://seitrace.com/atlantic-2/api/"
set sei_testnet_rpc_url "https://seitrace.com/atlantic-2/api/eth-rpc"

forge verify-contract --verifier blockscout --verifier-url $sei_testnet_explorer_url --rpc-url $sei_testnet_rpc_url \
--watch $proxy_address contracts/relayer/create2Factory/Create2Factory.sol:SimpleProxy
forge verify-contract --verifier blockscout --verifier-url $sei_testnet_explorer_url --rpc-url $sei_testnet_rpc_url \
--watch $implementation_address contracts/relayer/wormholeRelayer/WormholeRelayer.sol:WormholeRelayer

else if test $chain -eq 43

set snaxchain_explorer_url "https://explorer.snaxchain.io/api?module=contract&action=verify"
Expand Down

0 comments on commit 0b0ec28

Please sign in to comment.