Skip to content

Commit

Permalink
Merge pull request #4 from XLabs/berachain-testnet-sr-deployment
Browse files Browse the repository at this point in the history
EOY Testnet SR deployments
  • Loading branch information
scnale authored Dec 29, 2024
2 parents 071c5cc + c7bc0b8 commit ba9831e
Show file tree
Hide file tree
Showing 8 changed files with 332 additions and 3 deletions.
27 changes: 24 additions & 3 deletions ethereum/ts-scripts/relayer/config/testnet/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "BSC Testnet",
"evmNetworkId": 97,
"chainId": 4,
"rpc": "https://bsc-testnet.blockpi.network/v1/rpc/public",
"rpc": "https://data-seed-prebsc-2-s1.bnbchain.org:8545",
"wormholeAddress": "0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"
},
{
Expand Down Expand Up @@ -38,6 +38,27 @@
"rpc": "https://rpc.testnet.moonbeam.network",
"wormholeAddress": "0xa5B7D85a8f27dd7907dc8FdC21FA5657D5E2F901"
},
{
"description": "Berachain bArtio",
"evmNetworkId": 80084,
"chainId": 39,
"rpc": "https://bartio.rpc.berachain.com",
"wormholeAddress": "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"
},
{
"description": "Unichain Sepolia",
"evmNetworkId": 1301,
"chainId": 44,
"rpc": "https://sepolia.unichain.org",
"wormholeAddress": "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"
},
{
"description": "Ink",
"evmNetworkId": 763373,
"chainId": 46,
"rpc": "https://rpc-gel-sepolia.inkonchain.com",
"wormholeAddress": "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"
},
{
"description": "Ethereum Sepolia",
"evmNetworkId": 11155111,
Expand All @@ -49,7 +70,7 @@
"description": "Arbitrum Sepolia",
"evmNetworkId": 421614,
"chainId": 10003,
"rpc": "https://sepolia-rollup.arbitrum.io/rpc",
"rpc": "https://arbitrum-sepolia-rpc.publicnode.com",
"wormholeAddress": "0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"
},
{
Expand All @@ -70,7 +91,7 @@
"description": "Monad Devnet",
"evmNetworkId": 41454,
"chainId": 10008,
"rpc": "https://devnet1.monad.xyz/rpc/your_api_key",
"rpc": "https://devnet1.monad.xyz/rpc/IqLeQXELOAhGolixSOVzq87hhCK3UeQK3NBwNTTN",
"wormholeAddress": "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd"
}
]
Expand Down
84 changes: 84 additions & 0 deletions ethereum/ts-scripts/relayer/config/testnet/contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@
{
"address": "0x7A0a53847776f7e94Cc35742971aCb2217b0Db81",
"chainId": 10008
},
{
"address": "0xECa55749fe6AD6E655DcEdEd3C75102C653cf651",
"chainId": 39
},
{
"address": "0x7A0a53847776f7e94Cc35742971aCb2217b0Db81",
"chainId": 46
},
{
"address": "0x7A0a53847776f7e94Cc35742971aCb2217b0Db81",
"chainId": 44
}
],
"wormholeRelayers": [
Expand Down Expand Up @@ -123,6 +135,18 @@
{
"address": "0x362fca37E45fe1096b42021b543f462D49a5C8df",
"chainId": 10008
},
{
"address": "0x362fca37E45fe1096b42021b543f462D49a5C8df",
"chainId": 39
},
{
"address": "0x362fca37E45fe1096b42021b543f462D49a5C8df",
"chainId": 46
},
{
"address": "0x362fca37E45fe1096b42021b543f462D49a5C8df",
"chainId": 44
}
],
"wormholeRelayerImplementations": [
Expand Down Expand Up @@ -185,6 +209,18 @@
{
"address": "0x00337a31aEE3Ed37f5D5FBF892031d0090Da2EeF",
"chainId": 10008
},
{
"address": "0xceC913f7Db03ca677F779Ce918CF0c59D05D9217",
"chainId": 39
},
{
"address": "0x00337a31aEE3Ed37f5D5FBF892031d0090Da2EeF",
"chainId": 46
},
{
"address": "0x00337a31aEE3Ed37f5D5FBF892031d0090Da2EeF",
"chainId": 44
}
],
"mockIntegrations": [
Expand Down Expand Up @@ -227,6 +263,18 @@
{
"address": "0xa507Ff8D183D2BEcc9Ff9F82DFeF4b074e1d0E05",
"chainId": 10008
},
{
"address": "0x4BD5B6F2d001D1547801F49270f2Df96Ab362b3C",
"chainId": 39
},
{
"address": "0xa507Ff8D183D2BEcc9Ff9F82DFeF4b074e1d0E05",
"chainId": 46
},
{
"address": "0xa507Ff8D183D2BEcc9Ff9F82DFeF4b074e1d0E05",
"chainId": 44
}
],
"create2Factories": [
Expand Down Expand Up @@ -289,18 +337,54 @@
{
"address": "0xe9918f582A972613aC5700d2346a97B8ebAd48a2",
"chainId": 10008
},
{
"address": "0xe9918f582A972613aC5700d2346a97B8ebAd48a2",
"chainId": 39
},
{
"address": "0xe9918f582A972613aC5700d2346a97B8ebAd48a2",
"chainId": 46
},
{
"address": "0xe9918f582A972613aC5700d2346a97B8ebAd48a2",
"chainId": 44
}
],
"deliveryProviderImplementations": [
{
"address": "0x401d3A2ec0a071e2A8f8Fc9B4C69313C1a04540c",
"chainId": 10008
},
{
"address": "0x7A0a53847776f7e94Cc35742971aCb2217b0Db81",
"chainId": 39
},
{
"address": "0x401d3A2ec0a071e2A8f8Fc9B4C69313C1a04540c",
"chainId": 46
},
{
"address": "0x401d3A2ec0a071e2A8f8Fc9B4C69313C1a04540c",
"chainId": 44
}
],
"deliveryProviderSetups": [
{
"address": "0xedd08D4363820603fb1B261F7667B8ee170c37a5",
"chainId": 10008
},
{
"address": "0x00337a31aEE3Ed37f5D5FBF892031d0090Da2EeF",
"chainId": 39
},
{
"address": "0xedd08D4363820603fb1B261F7667B8ee170c37a5",
"chainId": 46
},
{
"address": "0xedd08D4363820603fb1B261F7667B8ee170c37a5",
"chainId": 44
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@
"updatePriceGas": "10000000000",
"updatePriceNative": "100000"
},
{
"chainId": 39,
"updatePriceGas": "10000000000",
"updatePriceNative": "100000"
},
{
"chainId": 44,
"updatePriceGas": "10000000000",
"updatePriceNative": "100000"
},
{
"chainId": 46,
"updatePriceGas": "10000000000",
"updatePriceNative": "100000"
},
{
"chainId": 10002,
"updatePriceGas": "30000000000",
Expand Down Expand Up @@ -72,6 +87,18 @@
"chainId": 16,
"updateGasOverhead": "350000"
},
{
"chainId": 39,
"updateGasOverhead": "350000"
},
{
"chainId": 44,
"updateGasOverhead": "350000"
},
{
"chainId": 46,
"updateGasOverhead": "350000"
},
{
"chainId": 10002,
"updateGasOverhead": "350000"
Expand Down Expand Up @@ -114,6 +141,18 @@
"chainId": 16,
"updateMaximumBudget": "2000000000000000000"
},
{
"chainId": 39,
"updateMaximumBudget": "2000000000000000000"
},
{
"chainId": 44,
"updateMaximumBudget": "2000000000000000000"
},
{
"chainId": 46,
"updateMaximumBudget": "2000000000000000000"
},
{
"chainId": 10002,
"updateMaximumBudget": "2000000000000000000"
Expand Down Expand Up @@ -162,6 +201,18 @@
"chainId": 16,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 39,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 44,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 46,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 10002,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
Expand Down Expand Up @@ -244,10 +295,22 @@
"chainId": 37,
"isSupported": true
},
{
"chainId": 39,
"isSupported": true
},
{
"chainId": 43,
"isSupported": true
},
{
"chainId": 44,
"isSupported": true
},
{
"chainId": 46,
"isSupported": true
},
{
"chainId": 10002,
"isSupported": true
Expand Down Expand Up @@ -330,10 +393,22 @@
"chainId": 37,
"supportedKeys": ["vaa"]
},
{
"chainId": 39,
"supportedKeys": ["vaa"]
},
{
"chainId": 43,
"supportedKeys": ["vaa"]
},
{
"chainId": 44,
"supportedKeys": ["vaa"]
},
{
"chainId": 46,
"supportedKeys": ["vaa"]
},
{
"chainId": 10002,
"supportedKeys": ["vaa", "cctp"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
"chainId": 30,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 39,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 44,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 46,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
},
{
"chainId": 10002,
"rewardAddress": "0x734D539a7efEE15714a2755caa4280e12EF3d7e4"
Expand Down Expand Up @@ -132,6 +144,27 @@
"updatePriceNative": "200000",
"maximumBudget": "1000000000000000000"
},
{
"chainId": 39,
"deliverGasOverhead": "350000",
"updatePriceGas": "30000000000",
"updatePriceNative": "200000",
"maximumBudget": "1000000000000000000"
},
{
"chainId": 44,
"deliverGasOverhead": "350000",
"updatePriceGas": "30000000000",
"updatePriceNative": "200000",
"maximumBudget": "1000000000000000000"
},
{
"chainId": 46,
"deliverGasOverhead": "350000",
"updatePriceGas": "30000000000",
"updatePriceNative": "200000",
"maximumBudget": "1000000000000000000"
},
{
"chainId": 10002,
"deliverGasOverhead": "350000",
Expand Down
11 changes: 11 additions & 0 deletions ethereum/ts-scripts/relayer/helpers/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,21 @@ export async function buildOverrides(
overrides.maxPriorityFeePerGas = ethers.utils.parseUnits("0.000000001", "gwei");
} else if (chain.chainId === 37) {
overrides.type = 0;
} else if (chain.chainId === 39) {
overrides.type = 2;
overrides.maxPriorityFeePerGas = 0;
} else if (chain.chainId === 44) {
overrides.type = 2;
overrides.maxFeePerGas = ethers.utils.parseUnits("0.001", "gwei");
overrides.maxPriorityFeePerGas = ethers.utils.parseUnits("0.000000001", "gwei");
} else if (chain.chainId === 45) {
overrides.type = 2;
overrides.maxPriorityFeePerGas = ethers.utils.parseUnits("0.0001", "gwei");
overrides.maxFeePerGas = ethers.utils.parseUnits("0.001", "gwei");
} else if (chain.chainId === 46) {
overrides.type = 2;
overrides.maxPriorityFeePerGas = ethers.utils.parseUnits("0.0001", "gwei");;
overrides.maxFeePerGas = ethers.utils.parseUnits("0.001", "gwei");
}
return overrides;
}
Expand Down
Loading

0 comments on commit ba9831e

Please sign in to comment.