Explorar o código

chore(eth): Add tomochain (#1134)

Amin Moghaddam %!s(int64=2) %!d(string=hai) anos
pai
achega
16832aba51

+ 12 - 0
contract_manager/store/chains/EvmChains.yaml

@@ -424,3 +424,15 @@
   rpcUrl: https://rpc3.coredao.org
   networkId: 1116
   type: EvmChain
+- id: tomochain
+  wormholeChainName: tomochain
+  mainnet: true
+  rpcUrl: https://rpc.tomochain.com
+  networkId: 88
+  type: EvmChain
+- id: tomochain_testnet
+  wormholeChainName: tomochain
+  mainnet: false
+  rpcUrl: https://rpc.testnet.tomochain.com
+  networkId: 89
+  type: EvmChain

+ 6 - 0
contract_manager/store/contracts/EvmContracts.yaml

@@ -211,3 +211,9 @@
 - chain: shimmer_testnet
   address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
   type: EvmContract
+- chain: tomochain_testnet
+  address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
+  type: EvmContract
+- chain: tomochain
+  address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
+  type: EvmContract

+ 1 - 0
governance/xc_admin/packages/xc_admin_common/src/chains.ts

@@ -49,6 +49,7 @@ export const RECEIVER_CHAINS = {
   zetachain: 60034,
   astar: 60035,
   coredao: 60036,
+  tomochain: 60037,
 };
 
 // If there is any overlapping value the receiver chain will replace the wormhole

+ 16 - 0
target_chains/ethereum/contracts/networks/88.json

@@ -0,0 +1,16 @@
+[
+  {
+    "contractName": "Migrations",
+    "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832"
+  },
+  {
+    "contractName": "WormholeReceiver",
+    "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a",
+    "transactionHash": "0xb6f85817783bd5127cfc462131f049b202eef30681a9a09109cbdb071e501001"
+  },
+  {
+    "contractName": "PythUpgradable",
+    "address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
+    "transactionHash": "0x77ed4e03e897a5134dba0a81be64f851049cb837d36bda8fbe401d275d32d1b4"
+  }
+]

+ 16 - 0
target_chains/ethereum/contracts/networks/89.json

@@ -0,0 +1,16 @@
+[
+  {
+    "contractName": "Migrations",
+    "address": "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc"
+  },
+  {
+    "contractName": "WormholeReceiver",
+    "address": "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
+    "transactionHash": "0xe1dba0ad8e34fff53f9bcca6f1efd7a771ee09400e89d7f171334078f229a550"
+  },
+  {
+    "contractName": "PythUpgradable",
+    "address": "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
+    "transactionHash": "0xd1b29ca2e4973a19b06b6aa96fe6150f40c1f252cfa698401c2581ba17111a64"
+  }
+]