From 8a98279fb224920d94141ccbc92db1e5c49070e2 Mon Sep 17 00:00:00 2001 From: Amin Moghaddam Date: Sun, 3 Dec 2023 10:50:38 +0100 Subject: [PATCH] chore(eth) deploy to mode (#1159) --- contract_manager/store/chains/EvmChains.yaml | 10 ++++++++++ .../store/contracts/EvmContracts.yaml | 6 ++++++ .../packages/xc_admin_common/src/chains.ts | 2 ++ .../ethereum/contracts/networks/34443.json | 16 ++++++++++++++++ .../ethereum/contracts/networks/919.json | 16 ++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 target_chains/ethereum/contracts/networks/34443.json create mode 100644 target_chains/ethereum/contracts/networks/919.json diff --git a/contract_manager/store/chains/EvmChains.yaml b/contract_manager/store/chains/EvmChains.yaml index d8264bf0..41cc5a47 100644 --- a/contract_manager/store/chains/EvmChains.yaml +++ b/contract_manager/store/chains/EvmChains.yaml @@ -358,3 +358,13 @@ rpcUrl: https://rpc.testnet.tomochain.com networkId: 89 type: EvmChain +- id: mode_testnet + mainnet: false + rpcUrl: https://sepolia.mode.network/ + networkId: 919 + type: EvmChain +- id: mode + mainnet: true + rpcUrl: https://mainnet.mode.network/ + networkId: 34443 + type: EvmChain diff --git a/contract_manager/store/contracts/EvmContracts.yaml b/contract_manager/store/contracts/EvmContracts.yaml index 139d86a5..87584456 100644 --- a/contract_manager/store/contracts/EvmContracts.yaml +++ b/contract_manager/store/contracts/EvmContracts.yaml @@ -214,3 +214,9 @@ - chain: optimism_sepolia address: "0x0708325268dF9F66270F1401206434524814508b" type: EvmContract +- chain: mode + address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729" + type: EvmContract +- chain: mode_testnet + address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729" + type: EvmContract diff --git a/governance/xc_admin/packages/xc_admin_common/src/chains.ts b/governance/xc_admin/packages/xc_admin_common/src/chains.ts index b4036e90..b970838f 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -55,6 +55,7 @@ export const RECEIVER_CHAINS = { coredao: 60036, tomochain: 60037, stacks: 60038, + mode: 60039, // Testnets as a separate chain ids (to use stable data sources and governance for them) injective_testnet: 60013, @@ -103,6 +104,7 @@ export const RECEIVER_CHAINS = { coredao_testnet: 50037, tomochain_testnet: 50038, stacks_testnet: 50039, + mode_testnet: 50040, }; // If there is any overlapping value the receiver chain will replace the wormhole diff --git a/target_chains/ethereum/contracts/networks/34443.json b/target_chains/ethereum/contracts/networks/34443.json new file mode 100644 index 00000000..03141bd0 --- /dev/null +++ b/target_chains/ethereum/contracts/networks/34443.json @@ -0,0 +1,16 @@ +[ + { + "contractName": "Migrations", + "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832" + }, + { + "contractName": "WormholeReceiver", + "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a", + "transactionHash": "0x6289888cfac33003026a9b494ed264dd4b1d1060fc9018a5d32dead56687c8df" + }, + { + "contractName": "PythUpgradable", + "address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + "transactionHash": "0x69a88f817c249d920d6ca3999163f49b18e69f162b52bedba8a9ba35b926ad08" + } +] diff --git a/target_chains/ethereum/contracts/networks/919.json b/target_chains/ethereum/contracts/networks/919.json new file mode 100644 index 00000000..0b7e5c17 --- /dev/null +++ b/target_chains/ethereum/contracts/networks/919.json @@ -0,0 +1,16 @@ +[ + { + "contractName": "Migrations", + "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832" + }, + { + "contractName": "WormholeReceiver", + "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a", + "transactionHash": "0x180a12973aab9ffe8efbe7b922c01d77385961517807a1efa3594880f3c1d483" + }, + { + "contractName": "PythUpgradable", + "address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + "transactionHash": "0xcfe6058dd1d1d10b06e20efd553d6cb3dcf239a0bf70b512e31c0937caf718b6" + } +]