Skip to content

Commit

Permalink
Merge pull request #61 from scio-labs/feat/add-ternoa-network
Browse files Browse the repository at this point in the history
Add tornoa network chains
  • Loading branch information
wottpal committed Feb 5, 2024
2 parents 0f7c051 + 1c4abe8 commit 462ade0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-keys-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@scio-labs/use-inkathon': patch
---

Add ternoa network (mainnet & testnet)
46 changes: 35 additions & 11 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -232,26 +244,38 @@ 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
*/
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,
]

/**
Expand Down
1 change: 1 addition & 0 deletions src/types/SubstrateChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export interface SubstrateChain {
export enum SubstrateExplorer {
Subscan = 'subscan',
PolkadotJs = 'polkadotjs',
Other = 'other',
}

0 comments on commit 462ade0

Please sign in to comment.