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

Update channel destination #403

Merged
merged 3 commits into from
Oct 5, 2023
Merged
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
33 changes: 19 additions & 14 deletions components/content/IBC/RelayersTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@
// --------------------------------------------------------------------------------
// Update here to add chain names with their chain id
const chainIds = {
'osmo-test-5': 'Osmosis',
'axelar-testnet-lisbon-3': 'Axelar',
'theta-testnet-001': 'Cosmos Hub',
'osmosis-1': 'Osmosis',
'axelar-dojo-1': 'Axelar',
'cosmoshub-4': 'Cosmos Hub',
'jackal-1': 'Jackal',
'juno-1': 'Juno',
'kaiyo-1': 'Kujira',
'umee-1': 'Umee',
'osmosistestnet': 'Osmosis',
'axelartestnet': 'Axelar',
'akashtestnet': 'Akash',
'agoric': 'Agoric',
'axelar': 'Axelar',
'bitcanna': 'Bitcanna',
'cosmoshub': 'Cosmos Hub',
'jackal': 'Jackal',
'juno': 'Juno',
'kujira': 'Kujira',
'noble': 'Noble',
'nois': 'Nois',
'osmosis': 'Osmosis',
'quicksilver': 'Quicksilver',
'umee': 'Umee',
};
// --------------------------------------------------------------------------------

Expand All @@ -30,8 +35,8 @@

// Build markdown table
const markdownHeader = `
| **Source Channel** | **Destination** | **Destination Chain ID** | **Destination Channel** |
| :----------------- |:----------------|------------------------------|-------------------------|
| **Source Channel** | **Destination** | **Destination Channel** |
| :----------------- |:----------------|-------------------------|
`;
const markdownContent = computed(
() =>
Expand All @@ -41,8 +46,8 @@
.map(
channel =>
`| ${channel.chain_1.channel_id} | ${
Object.entries(chainIds).find(item => item[0] === relayer.chain_2.chain_name)?.[1] || ''
} | ${relayer.chain_2.chain_name} | ${channel.chain_2.channel_id} |`
Object.entries(chainIds).find(item => item[0] === relayer.chain_2.chain_name)?.[1] || relayer.chain_2.chain_name
} | ${channel.chain_2.channel_id} |`
)
.join('\n')
)
Expand Down