chore(contract_manager): add ronin networks

This commit is contained in:
Ali Behjati 2023-08-25 20:43:18 +02:00
parent ac8895cada
commit 9cec35b251
4 changed files with 24 additions and 1 deletions

View File

@ -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"

View File

@ -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

View File

@ -157,3 +157,9 @@
- chain: scroll_sepolia
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
type: EvmContract
- chain: saigon
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
type: EvmContract
- chain: ronin
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmContract

View File

@ -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