From e1606a42b58d7952ebee0ed10909439fd97013a7 Mon Sep 17 00:00:00 2001 From: Amin Moghaddam Date: Wed, 3 Jan 2024 11:30:17 +0100 Subject: [PATCH] Add Base sepolia + some minor improvements (#1202) * Add base sepolia * Fix broken rpc urls * Small fix --- contract_manager/store/chains/EvmChains.yaml | 11 ++++++++--- .../store/contracts/EvmContracts.yaml | 3 +++ .../packages/xc_admin_common/src/chains.ts | 1 + target_chains/ethereum/contracts/create-env.js | 2 +- .../ethereum/contracts/networks/84532.json | 16 ++++++++++++++++ 5 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 target_chains/ethereum/contracts/networks/84532.json diff --git a/contract_manager/store/chains/EvmChains.yaml b/contract_manager/store/chains/EvmChains.yaml index ff81b5f26..e36efac58 100644 --- a/contract_manager/store/chains/EvmChains.yaml +++ b/contract_manager/store/chains/EvmChains.yaml @@ -5,7 +5,7 @@ type: EvmChain - id: kava mainnet: true - rpcUrl: https://evm.kava.io + rpcUrl: https://kava-evm.publicnode.com networkId: 2222 type: EvmChain - id: evmos @@ -95,7 +95,7 @@ type: EvmChain - id: meter mainnet: true - rpcUrl: https://rpc-meter.jellypool.xyz + rpcUrl: https://meter.blockpi.network/v1/rpc/public networkId: 82 type: EvmChain - id: chiado @@ -345,7 +345,7 @@ type: EvmChain - id: coredao mainnet: true - rpcUrl: https://rpc3.coredao.org + rpcUrl: https://rpc.coredao.org networkId: 1116 type: EvmChain - id: tomochain @@ -383,3 +383,8 @@ rpcUrl: https://sepolia.era.zksync.dev/ networkId: 300 type: EvmChain +- id: base_sepolia + mainnet: false + rpcUrl: https://sepolia.base.org + networkId: 84532 + type: EvmChain diff --git a/contract_manager/store/contracts/EvmContracts.yaml b/contract_manager/store/contracts/EvmContracts.yaml index c01a2b50c..547255c72 100644 --- a/contract_manager/store/contracts/EvmContracts.yaml +++ b/contract_manager/store/contracts/EvmContracts.yaml @@ -229,3 +229,6 @@ - chain: zksync_sepolia address: "0x056f829183Ec806A78c26C98961678c24faB71af" type: EvmContract +- chain: base_sepolia + 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 56e74e913..accb7f5c5 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -108,6 +108,7 @@ export const RECEIVER_CHAINS = { mode_testnet: 50040, bttc_testnet: 50041, zksync_sepolia: 50042, + base_sepolia: 50043, }; // If there is any overlapping value the receiver chain will replace the wormhole diff --git a/target_chains/ethereum/contracts/create-env.js b/target_chains/ethereum/contracts/create-env.js index c85a1512a..adb467f27 100644 --- a/target_chains/ethereum/contracts/create-env.js +++ b/target_chains/ethereum/contracts/create-env.js @@ -1,7 +1,7 @@ /** * This script is used to generate the .env file for a specific network. * You can call it like this: - * node create-env.js + * node create-env.js */ const { DefaultStore, EvmChain } = require("contract_manager"); diff --git a/target_chains/ethereum/contracts/networks/84532.json b/target_chains/ethereum/contracts/networks/84532.json new file mode 100644 index 000000000..74d6e0d57 --- /dev/null +++ b/target_chains/ethereum/contracts/networks/84532.json @@ -0,0 +1,16 @@ +[ + { + "contractName": "Migrations", + "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832" + }, + { + "contractName": "WormholeReceiver", + "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a", + "transactionHash": "0x713a6e34378ce7c5df18c9876f4ae37af41f9edc1267cf5f90054150920ba9d8" + }, + { + "contractName": "PythUpgradable", + "address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + "transactionHash": "0xf9818e35635b8f1b26557a4844c2d5a02578a0e667b28fab60d1a50a1b87c0bd" + } +]