Skip to content
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
106 changes: 63 additions & 43 deletions docs/src/components/svelte/tables/ContractDeploymentsTable.svelte
Original file line number Diff line number Diff line change
@@ -1,66 +1,86 @@
<script lang="ts">
import * as Table from "#/components/svelte/ui/table/index.ts"
import deployments from "~root/deployments/deployments.json" with { type: "json" }

let addr_link = (chain_id: string, addr: string) => {
switch (chain_id) {
case ("arbitrum.42161"):
case ("arbitrum.421614"):
case ("base.8453"):
case ("base.84532"):
case ("bob.60808"):
case ("bob.808813"):
case ("bsc.56"):
case ("bsc.97"):
case ("ethereum.1"):
case ("ethereum.11155111"):
case ("sei.1328"):
case ("sei.1329"): {
return `https://dashboard.tenderly.co/contract/${chain_id.split(".")[1]}/${addr}`
}
case ("babylon.bbn-1"): {
return `https://www.mintscan.io/osmosis/wasm/contract/${addr}/`
}
case ("corn.21000000"): {
return `https://cornscan.io/address/${addr}`
}
case ("corn.21000001"): {
return `https://testnet.cornscan.io/address/${addr}`
}
case ("intento.intento-dev-1"): {
return `https://explorer.intento.zone/intento-devnet/cosmwasm/into18s3t0mx4ja5mclffsjheductwc72p786cled76/transactions?contract=${addr}`
}
case ("osmosis.osmo-test-5"): {
return `https://www.mintscan.io/osmosis-testnet/wasm/contract/${addr}/`
}
case ("osmosis.osmosis-1"): {
return `https://www.mintscan.io/osmosis/wasm/contract/${addr}/`
}
case ("sui.4c78adac"): {
return `https://suiscan.xyz/testnet/object/${addr.split("::")[0]}/tx-blocks`
}
case ("union.union-1"): {
return `https://explorer.union.build/union/cosmwasm/0/transactions?contract=${addr}`
}
case ("union.union-testnet-10"): {
return `https://testnet.explorer.union.build/union/cosmwasm/0/transactions?contract=${addr}`
}
case ("xion.xion-testnet-2"): {
return `https://explorer.burnt.com/xiontestnet2/cosmwasm/0/transactions?contract=${addr}`
}
default:
console.error("???", chain_id, addr)
}
}
</script>

{#each Object.entries(deployments) as [network, values]}
<h3>
<h3 class="font-mono">
{network}
</h3>
<Table.Root class="w-full border border-neutral-500 rounded-sm">
<Table.Row class="w-full">
<Table.Cell>
Category
</Table.Cell>
<Table.Cell>
Name
</Table.Cell>
<Table.Cell>
Address
</Table.Cell>
</Table.Row>
<Table.Row class="w-full">
<Table.Cell class="w-full">
<b>Core</b>
</Table.Cell>
<Table.Cell>
ibc-union-core
</Table.Cell>
<Table.Cell>
{values.core.address}
Name
</Table.Cell>
</Table.Row>
{#each Object.entries(values.lightclient) as [name, data], index}
{#each Object.entries(values.contracts).toSorted((a, b) => a[1].name < b[1].name ? -1 : 1) as
[address, data]
}
<Table.Row>
<Table.Cell class="w-full">
{#if index === 0}
<b>Light-Client</b>
{/if}
</Table.Cell>
<Table.Cell>
{name}
<Table.Cell class="font-mono">
<a
href={addr_link(network, address)}
target="_blank"
>{address}</a>
</Table.Cell>
<Table.Cell>
{data.address}
<Table.Cell class="font-mono text-nowrap">
{data.name}
</Table.Cell>
</Table.Row>
{/each}
{#if Object.keys(values.app).length !== 0}
{#each Object.entries(values.app) as [name, data], index}
<Table.Row>
<Table.Cell class="w-full">
{#if index === 0}
<b>App</b>
{/if}
</Table.Cell>
<Table.Cell>
{name}
</Table.Cell>
<Table.Cell>
{data.address}
</Table.Cell>
</Table.Row>
{/each}
{/if}
</Table.Root>
{/each}
5 changes: 4 additions & 1 deletion docs/src/content/docs/protocol/deployments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ title: "ibc-union deployments"

import ContractDeploymentsTable from '#/components/svelte/tables/ContractDeploymentsTable.svelte'

All deployments of the `ibc-union` stack, light-clients, and `ucs*` apps built on Union.
All deployments of the `ibc-union` stack, light clients, `ucs*` apps, and other miscellaneous contracts deployed by on Union.

Chains are identified by their universal chain ID as specified in [ucs04](/ucs/04).

## Contracts

<br/>

<ContractDeploymentsTable client:only='svelte' />