Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1298 Comos explorer #1299

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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