From fe8b4841574ea78c743ce53aa01aa9de48a1dfa7 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 23 Dec 2024 12:03:30 +1000 Subject: [PATCH] chore: Adjust chain name --- .../src/common/constants/index.ts | 14 ++++++++++++-- .../src/shared/web3/web3.interface.ts | 4 ++-- .../src/shared/web3/web3.service.ts | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/apps/canonical-bridge-server/src/common/constants/index.ts b/apps/canonical-bridge-server/src/common/constants/index.ts index 282dce19..1d172896 100644 --- a/apps/canonical-bridge-server/src/common/constants/index.ts +++ b/apps/canonical-bridge-server/src/common/constants/index.ts @@ -97,11 +97,21 @@ export const STARGATE_CHAIN_INFO = [ chainName: 'Metis', endpointID: 30151, }, + { + chainId: 1116, + chainName: 'coredao', + endpointID: 30153, + }, { chainId: 1329, chainName: 'Sei', endpointID: 30280, }, + { + chainId: 1625, + chainName: 'Gravity', + endpointID: 30294, + }, { chainId: 2222, chainName: 'Kava', @@ -144,7 +154,7 @@ export const STARGATE_CHAIN_INFO = [ }, { chainId: 167000, - chainName: 'Taiko Mainnet', + chainName: 'Taiko', endpointID: 30290, }, { @@ -177,7 +187,7 @@ export const STARGATE_CHAIN_INFO = [ }, { chainId: 1380012617, - chainName: 'RARI Chain', + chainName: 'rarible', endpointID: 30235, }, ]; diff --git a/apps/canonical-bridge-server/src/shared/web3/web3.interface.ts b/apps/canonical-bridge-server/src/shared/web3/web3.interface.ts index 1a604707..69a818e9 100644 --- a/apps/canonical-bridge-server/src/shared/web3/web3.interface.ts +++ b/apps/canonical-bridge-server/src/shared/web3/web3.interface.ts @@ -146,12 +146,12 @@ export interface IStargateBridgeTokenInfo { decimals: number; symbol: string; }; - lpToken: { + lpToken?: { address: `0x${string}`; decimals: number; symbol: string; }; - farm: { + farm?: { stargateStaking: { address: `0x${string}`; rewardTokens: [ diff --git a/apps/canonical-bridge-server/src/shared/web3/web3.service.ts b/apps/canonical-bridge-server/src/shared/web3/web3.service.ts index 80dec648..9e589553 100644 --- a/apps/canonical-bridge-server/src/shared/web3/web3.service.ts +++ b/apps/canonical-bridge-server/src/shared/web3/web3.service.ts @@ -99,7 +99,7 @@ export class Web3Service { } }); } catch (e) { - console.log('stargate api failed', e, new Date()); + console.log(`Failed to retrieve Stargate API data at ${new Date().getTime()}`, e); } return processedTokenList; }