Skip to content

Commit

Permalink
chore: updated xion testnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-moore committed Jul 24, 2024
1 parent fc77f93 commit 6d0a54d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
14 changes: 8 additions & 6 deletions layer/data/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export const CosmosChainId = {
[Network.Andromeda]: 'andromeda-1',
[Network.Saga]: 'ssc-1',
[Network.Fetch]: 'fetchhub-4',
[Network.XionTestnet]: 'xion-testnet-1',


// networks below are disabled
[Network.Canto]: 'canto_7700-1',
Expand Down Expand Up @@ -242,13 +244,13 @@ export const cosmosTestnetChannels: Record<string, CosmosChannel> = {
bToAClientId: '07-tendermint-1',
port: 'transfer'
},
[Network.Xion]: {
aChainId: CosmosChainId[Network.Xion],
[Network.XionTestnet]: {
aChainId: CosmosChainId[Network.XionTestnet],
bChainId: CosmosChainId[Network.Injective],
aToBChannelId: 'channel-33',
aToBClientId: '07-tendermint-119',
bToAChannelId: 'channel-487',
bToAClientId: '07-tendermint-239',
aToBChannelId: 'channel-487',
aToBClientId: '',
bToAChannelId: 'channel-489',
bToAClientId: '',
port: 'transfer'
}
}
Expand Down
3 changes: 0 additions & 3 deletions layer/data/ibc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const canonicalChannelsToChainList = [
{ channelId: 'channel-54', chainA: 'Kujira', chainB: 'Injective' },
{ channelId: 'channel-13', chainA: 'Andromeda', chainB: 'Injective' },
{ channelId: 'channel-25', chainA: 'Saga', chainB: 'Injective' },
{ channelId: 'channel-489', chainA: 'Xion', chainB: 'Injective' }
{ channelId: 'channel-33', chainA: 'fetchhub-4', chainB: 'Injective' },
{ channelId: 'channel-1', chainA: 'Injective', chainB: 'CosmosHub' },
{ channelId: 'channel-83', chainA: 'Injective', chainB: 'Evmos' },
Expand Down Expand Up @@ -50,7 +49,6 @@ export const canonicalChannelsToChainList = [
{ channelId: 'channel-213', chainA: 'Injective', chainB: 'Andromeda' },
{ channelId: 'channel-261', chainA: 'Injective', chainB: 'Saga' },
{ channelId: 'channel-283', chainA: 'Injective', chainB: 'fetchhub-4' },
{ channelId: 'channel-487', chainA: 'Injective', chainB: 'Xion' }
]

export const canonicalChannelIds = [
Expand Down Expand Up @@ -85,5 +83,4 @@ export const canonicalChannelIds = [
'channel-213',
'channel-261',
'channel-283',
'channel-487'
]
2 changes: 1 addition & 1 deletion layer/types/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ export enum Network {
CosmosHubTestnet = 'cosmosHub-testnet',
Andromeda = 'andromeda',
Saga = 'saga',
Xion = 'xion'
XionTestnet = 'xion-testnet'
}
6 changes: 3 additions & 3 deletions layer/utils/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const getNetworkFromAddress = (address: string): Network => {
case address.startsWith('saga'):
return Network.Saga
case address.startsWith('xion'):
return Network.Xion
return Network.XionTestnet
default:
return Network.Injective
}
Expand Down Expand Up @@ -166,8 +166,6 @@ const getMainnetNetworkExplorerUrl = (network: Network): string => {
return 'https://www.mintscan.io/saga'
case Network.Fetch:
return 'https://www.mintscan.io/fetchai'
case Network.Xion:
return 'https://testnet.xion.explorers.guru'
case Network.Injective:
return 'https://explorer.injective.network'
default:
Expand Down Expand Up @@ -201,6 +199,8 @@ const getTestNetworkExplorerUrl = (network: Network): string => {
return 'https://www.mintscan.io/persistence-testnet'
case Network.Osmosis:
return 'https://www.mintscan.io/osmosis-testnet'
case Network.XionTestnet:
return 'https://explorer.burnt.com/xion-testnet-1'
case Network.Kava:
return 'https://www.mintscan.io/kava-testnet'
case Network.Noble:
Expand Down

0 comments on commit 6d0a54d

Please sign in to comment.