Skip to content

Commit 9cec35b

Browse files
committed
chore(contract_manager): add ronin networks
1 parent ac8895c commit 9cec35b

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

contract_manager/scripts/update_pricefeed.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ async function main() {
3333
const argv = await parser.argv;
3434
const contract = DefaultStore.contracts[argv.contract];
3535
if (!contract) {
36-
throw new Error(`Contract ${argv.contract} not found`);
36+
throw new Error(
37+
`Contract ${argv.contract} not found. Contracts found: ${Object.keys(
38+
DefaultStore.contracts
39+
)}`
40+
);
3741
}
3842
const defaultEndpoint = contract.getChain().isMainnet()
3943
? "https://xc-mainnet.pyth.network"

contract_manager/store/chains/EvmChains.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,15 @@
316316
rpcUrl: https://sepolia-rpc.scroll.io/
317317
networkId: 534351
318318
type: EvmChain
319+
- id: saigon
320+
wormholeChainName: ronin
321+
mainnet: false
322+
rpcUrl: https://api-gateway.skymavis.com/rpc/testnet?apikey=put-me-here-from-ronin-wallet
323+
networkId: 2021
324+
type: EvmChain
325+
- id: ronin
326+
wormholeChainName: ronin
327+
mainnet: true
328+
rpcUrl: https://api-gateway.skymavis.com/rpc?apikey=put-me-here-from-ronin-wallet
329+
networkId: 2020
330+
type: EvmChain

contract_manager/store/contracts/EvmContracts.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,9 @@
157157
- chain: scroll_sepolia
158158
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
159159
type: EvmContract
160+
- chain: saigon
161+
address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729"
162+
type: EvmContract
163+
- chain: ronin
164+
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
165+
type: EvmContract

governance/xc_admin/packages/xc_admin_common/src/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const RECEIVER_CHAINS = {
4141
eos: 60026,
4242
syndr: 60027,
4343
scroll: 60028,
44+
ronin: 60029,
4445
};
4546

4647
// If there is any overlapping value the receiver chain will replace the wormhole

0 commit comments

Comments
 (0)