From e594c3d2b7d65b7f4d18c875ed3a67f602c8bfd6 Mon Sep 17 00:00:00 2001 From: 0xfirefist Date: Wed, 24 Jan 2024 17:24:58 +0530 Subject: [PATCH 1/2] add chain ids --- governance/xc_admin/packages/xc_admin_common/src/chains.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 e309472db5..0eacfd53ff 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -118,13 +118,16 @@ export const RECEIVER_CHAINS = { blast_s2_testnet: 50047, hedera_testnet: 50048, filecoin_calibration: 50049, // Filecoin testnet + lightlink_pegasus_testnet: 50050, + sei_evm_devnet: 50051, + fantom_sonic_testnet: 50052, }; // If there is any overlapping value the receiver chain will replace the wormhole // value and that is an expected behavior. export const CHAINS = { ...WORMHOLE_CHAINS, ...RECEIVER_CHAINS }; export declare type ChainName = keyof typeof CHAINS; -export declare type ChainId = typeof CHAINS[ChainName]; +export declare type ChainId = (typeof CHAINS)[ChainName]; export function toChainId(chainName: ChainName): ChainId { return CHAINS[chainName]; From 39d8e43585555147f5122ed7a577170fc9569721 Mon Sep 17 00:00:00 2001 From: 0xfirefist Date: Wed, 24 Jan 2024 17:31:28 +0530 Subject: [PATCH 2/2] pre commit fix --- governance/xc_admin/packages/xc_admin_common/src/chains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0eacfd53ff..c47a922092 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -127,7 +127,7 @@ export const RECEIVER_CHAINS = { // value and that is an expected behavior. export const CHAINS = { ...WORMHOLE_CHAINS, ...RECEIVER_CHAINS }; export declare type ChainName = keyof typeof CHAINS; -export declare type ChainId = (typeof CHAINS)[ChainName]; +export declare type ChainId = typeof CHAINS[ChainName]; export function toChainId(chainName: ChainName): ChainId { return CHAINS[chainName];