Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion packages/ui/.papi/descriptors/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.0-autogenerated.17231857916183545855",
"version": "0.1.0-autogenerated.9055323594806583538",
"name": "@polkadot-api/descriptors",
"files": [
"dist"
Expand Down
Binary file modified packages/ui/.papi/metadata/bifrostDot.scale
Binary file not shown.
Binary file modified packages/ui/.papi/metadata/dancelight.scale
Binary file not shown.
Binary file modified packages/ui/.papi/metadata/paseo.scale
Binary file not shown.
Binary file added packages/ui/.papi/metadata/tanssi.scale
Binary file not shown.
Binary file modified packages/ui/.papi/metadata/wesAssetHub.scale
Binary file not shown.
Binary file modified packages/ui/.papi/metadata/westend.scale
Binary file not shown.
16 changes: 11 additions & 5 deletions packages/ui/.papi/polkadot-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"wsUrl": "wss://eu.bifrost-polkadot-rpc.liebi.com/ws",
"metadata": ".papi/metadata/bifrostDot.scale",
"genesis": "0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b",
"codeHash": "0xb5d8c6aa4c4cfd9da3291195e2823e6f91a904865a499f9fb51ea946675f3ecc"
"codeHash": "0xe5bf8dc05014917fbf8996b9493d27ebeda2569b94dcd91559bfa343918c5c35"
},
"hydration": {
"wsUrl": "wss://rpc.helikon.io/hydradx",
Expand All @@ -54,7 +54,7 @@
"wsUrl": "wss://rpc.ibp.network/paseo",
"metadata": ".papi/metadata/paseo.scale",
"genesis": "0x77afd6190f1554ad45fd0d31aee62aacc33c6db0ea801129acb813f913e0764f",
"codeHash": "0x7ecc4cdcc10ecd3ec506a72ebf4a4846d9e0f6a9741647ab8ecb8c4a0d47eecd"
"codeHash": "0x6669c7fe2da814253b4c66877544e7d4dfa3fe92dfdbe9b0c0996f089211141e"
},
"acala": {
"wsUrl": "wss://acala-rpc.dwellir.com",
Expand Down Expand Up @@ -90,7 +90,7 @@
"chain": "westend2",
"metadata": ".papi/metadata/westend.scale",
"genesis": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
"codeHash": "0x8579da39311d91d4fd5586caee968fa2f2de07db6f715126cc438c79c2f18c3d"
"codeHash": "0xe042061a17fc950bbee15fdc7997fb04fd1a8e7b3af8c59655f19eaaa23cce28"
},
"wesPpl": {
"chain": "westend2_people",
Expand All @@ -102,13 +102,19 @@
"chain": "westend2_asset_hub",
"metadata": ".papi/metadata/wesAssetHub.scale",
"genesis": "0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9",
"codeHash": "0xb9d3cbf052f2a2ac61a91b3be23d7a3e628f6233415a8240a2713ce193c863a4"
"codeHash": "0xea48eb5d470eeed502367c7801f11bb8d262bf31c7fa3dca1eebae1c72d41a46"
},
"dancelight": {
"wsUrl": "wss://dancelight.tanssi-api.network",
"metadata": ".papi/metadata/dancelight.scale",
"genesis": "0x983a1a72503d6cc3636776747ec627172b51272bf45e50a355348facb67a820a",
"codeHash": "0x3b53e3d568a1add74374e87b5ad6351fc96f016390e832441722912237b83d53"
"codeHash": "0xdade0d3b3bbe17dc8647ffdaeb1b2f92b9b3f5a6be21b765b15e57fe26d0f30d"
},
"tanssi": {
"wsUrl": "wss://tanssi.tanssi-mainnet.network",
"metadata": ".papi/metadata/tanssi.scale",
"genesis": "0xdd6d086f75ec041b66e20c4186d327b23c8af244c534a2418de6574e8c041a60",
"codeHash": "0x344ee4c20917f15a2f385157a446d72c6db015b52389cc324e6a6996d627ae23"
}
}
}
8 changes: 2 additions & 6 deletions packages/ui/src/components/select/NetworkSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,8 @@ const NetworkSelection = () => {
{renderNetworks(polkadotNetworksAndParachains)}
<ListSubheader>Kusama & Parachains</ListSubheader>
{renderNetworks(kusamaNetworksAndParachains)}
{soloChains.length && (
<>
<ListSubheader>Solo chains</ListSubheader>
{renderNetworks(soloChains)}
</>
)}
<ListSubheader>Solo chains</ListSubheader>
{renderNetworks(soloChains)}
<ListSubheader>Testnets</ListSubheader>
{renderNetworks(testChains)}
</SelectStyled>
Expand Down
15 changes: 6 additions & 9 deletions packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { chainsAcalaSVG } from './logos/acalaSVG'
import { nodesBifrostSVG } from './logos/bifrostSVG'
import paseoSVG from './logos/paseoSVG.svg'
import dancelightSVG from './logos/dancelightSVG.svg'
import tanssiSVG from './logos/tanssiSVG.svg'
import { nodesCoretimeSVG } from './logos/coretimeSVG'
import { polimecSVG } from './logos/polimecSVG'
import usdc from './logos/usdc.svg'
Expand Down Expand Up @@ -417,17 +418,15 @@ export const networkList: Record<string, NetworkInfo> = {
descriptor: 'polimec',
genesisHash: '0x7eb9354488318e7549c722669dcbdcdc526f1fef1420e7944667212f3601fdbd'
},
/*tanssi: {
tanssi: {
chainId: 'tanssi',
explorerNetworkName: 'tanssi',
rpcUrls: [
tbd,
],
rpcUrls: ['wss://tanssi.tanssi-mainnet.network'],
httpGraphqlUrl: HTTP_GRAPHQL_URL,
networkLogo: tanssiSVG,
descriptor: 'tanssi',
genesisHash: 'tbd'
},*/
genesisHash: '0xdd6d086f75ec041b66e20c4186d327b23c8af244c534a2418de6574e8c041a60'
},
dancelight: {
chainId: 'dancelight',
explorerNetworkName: 'dancelight',
Expand Down Expand Up @@ -473,9 +472,7 @@ export const kusamaNetworksAndParachains: Partial<keyof typeof networkList>[] =
// 'khala'
// 'moonriver'
]
export const soloChains: Partial<keyof typeof networkList>[] = [
//joystream
]
export const soloChains: Partial<keyof typeof networkList>[] = ['tanssi']
export const testChains: Partial<keyof typeof networkList>[] = [
// 'rococo',
'paseo',
Expand Down
74 changes: 74 additions & 0 deletions packages/ui/src/logos/tanssiSVG.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions packages/ui/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ import {
dotPpl,
ksmPpl,
pasPpl,
wesPpl
wesPpl,
tanssi
} from '@polkadot-api/descriptors'

export const DESCRIPTORS = {
Expand All @@ -97,7 +98,8 @@ export const DESCRIPTORS = {
dotPpl,
ksmPpl,
pasPpl,
wesPpl
wesPpl,
tanssi
} as const

export const DESCRIPTORS_NOT_HYDRATION_1_3 = {
Expand All @@ -111,7 +113,8 @@ export const DESCRIPTORS_NOT_HYDRATION_2_3 = {
ksm,
ksmAssetHub,
dancelight,
paseo
paseo,
tanssi
} as const

export const DESCRIPTORS_NOT_HYDRATION_3_3 = {
Expand All @@ -136,7 +139,7 @@ export const DESCRIPTORS_RELAYS = {
}

export const DESCRIPTORS_1_3 = { acala, bifrostDot, dot, dotAssetHub, hydration } as const
export const DESCRIPTORS_2_3 = { ksm, ksmAssetHub, paseo, phala, dancelight } as const
export const DESCRIPTORS_2_3 = { ksm, ksmAssetHub, paseo, phala, dancelight, tanssi } as const
export const DESCRIPTORS_3_3 = { polimec, coretimeDot, westend, wesAssetHub } as const

export type ApiDescriptors = keyof typeof DESCRIPTORS
Expand Down