Skip to content

Commit

Permalink
1298 Comos explorer (#1299)
Browse files Browse the repository at this point in the history
* Atoscam explorer

* Changeset version file

* Mintscan explorer
  • Loading branch information
0xp3gasus authored Oct 3, 2024
1 parent 176c84a commit 5206f8f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-toes-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@xchainjs/xchain-cosmos': patch
---

Mintscan as explorer.
12 changes: 6 additions & 6 deletions packages/xchain-cosmos/__tests__/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
})
})
Expand Down Expand Up @@ -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',
)
})
})
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-cosmos/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

/**
Expand Down

0 comments on commit 5206f8f

Please sign in to comment.