From bc148c5360a899abc7d656b9251e674159a2c166 Mon Sep 17 00:00:00 2001 From: Dennis Zoma Date: Mon, 5 Feb 2024 08:17:34 +0100 Subject: [PATCH 1/3] feat: Add tornoa network chains --- src/chains.ts | 24 ++++++++++++++++++++++++ src/types/SubstrateChain.ts | 1 + 2 files changed, 25 insertions(+) diff --git a/src/chains.ts b/src/chains.ts index aeaf3b6..5ba75c9 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -136,6 +136,18 @@ export const phalaPOC6Testnet: SubstrateChain = { faucetUrls: ['https://phala.network/faucet'], } +export const ternoaAlphanet: SubstrateChain = { + network: 'ternoa-alphanet', + name: 'Ternoa Alphanet', + ss58Prefix: 42, + rpcUrls: ['wss://alphanet.ternoa.com'], + testnet: true, + faucetUrls: ['https://faucet.ternoa.network'], + explorerUrls: { + [SubstrateExplorer.Other]: `https://explorer-alphanet.ternoa.dev`, + }, +} + /** * Live Canary Networks */ @@ -232,6 +244,16 @@ export const phala: SubstrateChain = { }, } +export const ternoa: SubstrateChain = { + network: 'ternoa', + name: 'Ternoa', + ss58Prefix: 42, + rpcUrls: ['wss://mainnet.ternoa.com'], + explorerUrls: { + [SubstrateExplorer.Other]: `https://explorer.ternoa.com`, + }, +} + /** * Exporting all chains separately */ @@ -252,6 +274,8 @@ export const allSubstrateChains: SubstrateChain[] = [ astar, pendulum, phala, + ternoa, + ternoaAlphanet, ] /** diff --git a/src/types/SubstrateChain.ts b/src/types/SubstrateChain.ts index 9e7d858..50a18a9 100644 --- a/src/types/SubstrateChain.ts +++ b/src/types/SubstrateChain.ts @@ -14,4 +14,5 @@ export interface SubstrateChain { export enum SubstrateExplorer { Subscan = 'subscan', PolkadotJs = 'polkadotjs', + Other = 'other', } From a973b6e11c75a49f288772a6925f13d0ccb58074 Mon Sep 17 00:00:00 2001 From: Dennis Zoma Date: Mon, 5 Feb 2024 08:17:45 +0100 Subject: [PATCH 2/3] chore: Sort chains alphabetically --- src/chains.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/chains.ts b/src/chains.ts index 5ba75c9..3f01c28 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -258,22 +258,22 @@ export const ternoa: SubstrateChain = { * Exporting all chains separately */ export const allSubstrateChains: SubstrateChain[] = [ - development, - alephzeroTestnet, - rococo, - t0rnTestnet, - bitCountryAlphaTestnet, agungTestnet, - amplitudeTestnet, - phalaPOC6Testnet, - shibuya, - shiden, - amplitude, - khala, alephzero, + alephzeroTestnet, + amplitude, + amplitudeTestnet, astar, + bitCountryAlphaTestnet, + development, + khala, pendulum, phala, + phalaPOC6Testnet, + rococo, + shibuya, + shiden, + t0rnTestnet, ternoa, ternoaAlphanet, ] From 1c4abe87503b13e241c2c44342ab445761caf546 Mon Sep 17 00:00:00 2001 From: Dennis Zoma Date: Mon, 5 Feb 2024 08:19:37 +0100 Subject: [PATCH 3/3] docs(changeset): Add tornoa network (mainnet & testnet) --- .changeset/spicy-keys-flash.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spicy-keys-flash.md diff --git a/.changeset/spicy-keys-flash.md b/.changeset/spicy-keys-flash.md new file mode 100644 index 0000000..689f65e --- /dev/null +++ b/.changeset/spicy-keys-flash.md @@ -0,0 +1,5 @@ +--- +'@scio-labs/use-inkathon': patch +--- + +Add ternoa network (mainnet & testnet)