From c4d8d2d7e5003b44938cf8ca9d78fac850f91fd8 Mon Sep 17 00:00:00 2001 From: HoangNDM Date: Tue, 28 Nov 2023 10:27:35 +0700 Subject: [PATCH 1/4] rm gtm --- public/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 7a7d37e811..3f0fbc072e 100644 --- a/public/index.html +++ b/public/index.html @@ -21,14 +21,14 @@ - --> Pyxis Safe @@ -62,8 +62,8 @@ - +
From 7b49d11454930b44f767814f09b80252376cf995 Mon Sep 17 00:00:00 2001 From: HoangNDM Date: Tue, 28 Nov 2023 10:28:01 +0700 Subject: [PATCH 2/4] rm gtm --- public/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 7a7d37e811..3f0fbc072e 100644 --- a/public/index.html +++ b/public/index.html @@ -21,14 +21,14 @@ - --> Pyxis Safe @@ -62,8 +62,8 @@ - +
From f8db0956085279339b93877a7de2a993b58acc2b Mon Sep 17 00:00:00 2001 From: HoangNDM6 Date: Mon, 3 Jun 2024 10:43:35 +0700 Subject: [PATCH 3/4] fix chain id --- src/config/cache/chains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/cache/chains.ts b/src/config/cache/chains.ts index e39e41cd36..1a6c5b675f 100644 --- a/src/config/cache/chains.ts +++ b/src/config/cache/chains.ts @@ -21,7 +21,7 @@ export const loadChains = async () => { environment: 'serenity', } } - if (chain.chainId.includes('auradev')) { + if (chain.chainId.includes('aura')) { return { ...chain, environment: 'auratestnet', From 101677e160a5c925cd64622df757690fa852c3e8 Mon Sep 17 00:00:00 2001 From: HoangNDM6 Date: Mon, 3 Jun 2024 14:49:54 +0700 Subject: [PATCH 4/4] fix chainId --- src/config/cache/chains.ts | 28 ++++------------------------ src/services/index.ts | 5 +++-- 2 files changed, 7 insertions(+), 26 deletions(-) diff --git a/src/config/cache/chains.ts b/src/config/cache/chains.ts index 1a6c5b675f..af3dffef5a 100644 --- a/src/config/cache/chains.ts +++ b/src/config/cache/chains.ts @@ -9,31 +9,10 @@ export const getChains = (): ChainInfo[] => chains export const loadChains = async () => { const networkList: ChainInfo[] = await getMChainsConfig() chains = networkList.map((chain) => { - if (chain.chainId.includes('euphoria')) { - return { - ...chain, - environment: 'euphoria', - } + return { + ...chain, + environment: chain.indexerDb, } - if (chain.chainId.includes('serenity')) { - return { - ...chain, - environment: 'serenity', - } - } - if (chain.chainId.includes('aura')) { - return { - ...chain, - environment: 'auratestnet', - } - } - if (chain.chainId.includes('xstaxy')) { - return { - ...chain, - environment: 'xstaxy', - } - } - return chain }) // const { results = [] } = await getChainsConfig(GATEWAY_URL, { limit: 100 }) // chains = results @@ -68,4 +47,5 @@ export const emptyChainInfo: ChainInfo = { gasPrice: [], disabledWallets: [], features: [], + indexerDb: '' } diff --git a/src/services/index.ts b/src/services/index.ts index ddddf8efed..cf93b2c82e 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -75,6 +75,7 @@ export function getMChainsConfig(): Promise { tokenImg: string rest: string coinConfig?: any[] + indexerDb: string }) => { return { transactionService: null, @@ -128,6 +129,7 @@ export function getMChainsConfig(): Promise { // 'SPENDING_LIMIT', ], coinConfig: e?.coinConfig || [], + indexerDb: e.indexerDb } }, ) @@ -354,8 +356,7 @@ export async function getNumberOfDelegator(validatorId: any): Promise chain.chainId == currentChainInfo.chainId)?.rest + `${chainInfo.find((chain) => chain.chainId == currentChainInfo.chainId)?.rest }/cosmos/staking/v1beta1/validators/${validatorId}/delegations?pagination.count_total=true`, ) .then((res) => res.data)