From 9cec35b25169956714714253fa341e8797dc10ee Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Fri, 25 Aug 2023 20:43:18 +0200 Subject: [PATCH] chore(contract_manager): add ronin networks --- contract_manager/scripts/update_pricefeed.ts | 6 +++++- contract_manager/store/chains/EvmChains.yaml | 12 ++++++++++++ contract_manager/store/contracts/EvmContracts.yaml | 6 ++++++ .../xc_admin/packages/xc_admin_common/src/chains.ts | 1 + 4 files changed, 24 insertions(+), 1 deletion(-) diff --git a/contract_manager/scripts/update_pricefeed.ts b/contract_manager/scripts/update_pricefeed.ts index 01482c3f..cd16c4a8 100644 --- a/contract_manager/scripts/update_pricefeed.ts +++ b/contract_manager/scripts/update_pricefeed.ts @@ -33,7 +33,11 @@ async function main() { const argv = await parser.argv; const contract = DefaultStore.contracts[argv.contract]; if (!contract) { - throw new Error(`Contract ${argv.contract} not found`); + throw new Error( + `Contract ${argv.contract} not found. Contracts found: ${Object.keys( + DefaultStore.contracts + )}` + ); } const defaultEndpoint = contract.getChain().isMainnet() ? "https://xc-mainnet.pyth.network" diff --git a/contract_manager/store/chains/EvmChains.yaml b/contract_manager/store/chains/EvmChains.yaml index 6b4f64e0..d18f2b0e 100644 --- a/contract_manager/store/chains/EvmChains.yaml +++ b/contract_manager/store/chains/EvmChains.yaml @@ -316,3 +316,15 @@ rpcUrl: https://sepolia-rpc.scroll.io/ networkId: 534351 type: EvmChain +- id: saigon + wormholeChainName: ronin + mainnet: false + rpcUrl: https://api-gateway.skymavis.com/rpc/testnet?apikey=put-me-here-from-ronin-wallet + networkId: 2021 + type: EvmChain +- id: ronin + wormholeChainName: ronin + mainnet: true + rpcUrl: https://api-gateway.skymavis.com/rpc?apikey=put-me-here-from-ronin-wallet + networkId: 2020 + type: EvmChain diff --git a/contract_manager/store/contracts/EvmContracts.yaml b/contract_manager/store/contracts/EvmContracts.yaml index 42a01656..b1695372 100644 --- a/contract_manager/store/contracts/EvmContracts.yaml +++ b/contract_manager/store/contracts/EvmContracts.yaml @@ -157,3 +157,9 @@ - chain: scroll_sepolia address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729" type: EvmContract +- chain: saigon + address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729" + type: EvmContract +- chain: ronin + address: "0x2880aB155794e7179c9eE2e38200202908C17B43" + 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 74e403d0..b4f65da7 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -41,6 +41,7 @@ export const RECEIVER_CHAINS = { eos: 60026, syndr: 60027, scroll: 60028, + ronin: 60029, }; // If there is any overlapping value the receiver chain will replace the wormhole