From 5206f8f518b3541e210de413a958c3f84e000986 Mon Sep 17 00:00:00 2001 From: Pegasus <83475418+0xp3gasus@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:40:24 +0200 Subject: [PATCH] 1298 Comos explorer (#1299) * Atoscam explorer * Changeset version file * Mintscan explorer --- .changeset/rotten-toes-doubt.md | 5 +++++ packages/xchain-cosmos/__tests__/client.test.ts | 12 ++++++------ packages/xchain-cosmos/src/utils.ts | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .changeset/rotten-toes-doubt.md diff --git a/.changeset/rotten-toes-doubt.md b/.changeset/rotten-toes-doubt.md new file mode 100644 index 000000000..45a146a8a --- /dev/null +++ b/.changeset/rotten-toes-doubt.md @@ -0,0 +1,5 @@ +--- +'@xchainjs/xchain-cosmos': patch +--- + +Mintscan as explorer. diff --git a/packages/xchain-cosmos/__tests__/client.test.ts b/packages/xchain-cosmos/__tests__/client.test.ts index 7e8e5f0e5..f55d0a9a5 100644 --- a/packages/xchain-cosmos/__tests__/client.test.ts +++ b/packages/xchain-cosmos/__tests__/client.test.ts @@ -29,16 +29,16 @@ describe('Cosmos client', () => { client = new Client() }) it('Should get explorer url', () => { - expect(client.getExplorerUrl()).toBe('https://bigdipper.live/cosmos') + expect(client.getExplorerUrl()).toBe('https://www.mintscan.io/cosmos') }) it('Should get address url', () => { expect(client.getExplorerAddressUrl('cosmos1p9axwnsmnzhn0haaerzae9y2adv8q2nslnyzz3')).toBe( - 'https://bigdipper.live/cosmos/accounts/cosmos1p9axwnsmnzhn0haaerzae9y2adv8q2nslnyzz3', + 'https://www.mintscan.io/cosmos/accounts/cosmos1p9axwnsmnzhn0haaerzae9y2adv8q2nslnyzz3', ) }) it('Should get transaction url', () => { expect(client.getExplorerTxUrl('D31925DD10D19AE2FEA4E8C88273238198B3503032540DBDB43080730B971DE4')).toBe( - 'https://bigdipper.live/cosmos/transactions/D31925DD10D19AE2FEA4E8C88273238198B3503032540DBDB43080730B971DE4', + 'https://www.mintscan.io/cosmos/transactions/D31925DD10D19AE2FEA4E8C88273238198B3503032540DBDB43080730B971DE4', ) }) }) @@ -71,16 +71,16 @@ describe('Cosmos client', () => { }) }) it('Should get explorer url', () => { - expect(client.getExplorerUrl()).toBe('https://bigdipper.live/cosmos') + expect(client.getExplorerUrl()).toBe('https://www.mintscan.io/cosmos') }) it('Should get address url', () => { expect(client.getExplorerAddressUrl('cosmos1p9axwnsmnzhn0haaerzae9y2adv8q2nslnyzz3')).toBe( - 'https://bigdipper.live/cosmos/accounts/cosmos1p9axwnsmnzhn0haaerzae9y2adv8q2nslnyzz3', + 'https://www.mintscan.io/cosmos/accounts/cosmos1p9axwnsmnzhn0haaerzae9y2adv8q2nslnyzz3', ) }) it('Should get transaction url', () => { expect(client.getExplorerTxUrl('D31925DD10D19AE2FEA4E8C88273238198B3503032540DBDB43080730B971DE4')).toBe( - 'https://bigdipper.live/cosmos/transactions/D31925DD10D19AE2FEA4E8C88273238198B3503032540DBDB43080730B971DE4', + 'https://www.mintscan.io/cosmos/transactions/D31925DD10D19AE2FEA4E8C88273238198B3503032540DBDB43080730B971DE4', ) }) }) diff --git a/packages/xchain-cosmos/src/utils.ts b/packages/xchain-cosmos/src/utils.ts index d9bb790d4..5baa25cc6 100644 --- a/packages/xchain-cosmos/src/utils.ts +++ b/packages/xchain-cosmos/src/utils.ts @@ -6,7 +6,7 @@ import { ATOM_DENOM, AssetATOM } from './const' import { CompatibleAsset } from './types' // Explorer URLs for Mainnet and Testnet -const MAINNET_EXPLORER_URL = 'https://bigdipper.live/cosmos' +const MAINNET_EXPLORER_URL = 'https://www.mintscan.io/cosmos' const TESTNET_EXPLORER_URL = 'https://explorer.theta-testnet.polypore.xyz' /**