Skip to content

Commit

Permalink
Merge pull request #58 from TalismanSociety/feat/support-bittensor
Browse files Browse the repository at this point in the history
feat: add bittensor TAO
  • Loading branch information
chrisling-dev authored Jul 25, 2024
2 parents f410720 + 12b7574 commit 65c6ec5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/multisig/scripts/chaingen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const supportedChainIds = [
'paseo-testnet',
'rococo-neuro-web-testnet',
'polimec',
'bittensor',
]

const polkaAssemblyUrl: Record<string, string> = {
Expand All @@ -65,6 +66,7 @@ const subscanUrlsOverride: Record<string, string> = {
'rococo-neuro-web-testnet': 'https://neuroweb-testnet.subscan.io/',
'avail-turing-testnet': 'https://temp-explorer.avail.so/#/explorer',
'polimec': 'https://explorer.polimec.org/polimec/',
'bittensor': 'https://bittensor.com/scan',
}

const networkLogoOverride: Record<string, string> = {
Expand Down Expand Up @@ -124,7 +126,6 @@ const generateSupportedChains = async () => {
// DO NOT MODIFY THIS FILE MANUALLY
// This file is auto-generated by scripts/chaingen.ts
export type SupportedChainIds = ${supportedChainIds.map(id => `'${id}'`).join(' | ')}
export const supportedChains: Chain<SupportedChainIds>[] = ${JSON.stringify(supportedChains, null, 2)} as const
`
)
Expand Down
20 changes: 20 additions & 0 deletions apps/multisig/src/domains/chains/generated-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type SupportedChainIds =
| 'paseo-testnet'
| 'rococo-neuro-web-testnet'
| 'polimec'
| 'bittensor'

export const supportedChains: Chain<SupportedChainIds>[] = [
{
Expand Down Expand Up @@ -691,4 +692,23 @@ export const supportedChains: Chain<SupportedChainIds>[] = [
ss58Prefix: 41,
subscanUrl: 'https://explorer.polimec.org/polimec/',
},
{
chainName: 'Bittensor',
genesisHash: '0x2f0555cc76fc2840a25a6ea3b9637146806f1f44b090c175ffde2a7e5ab36c03',
isTestnet: false,
logo: 'https://raw.githubusercontent.com/TalismanSociety/chaindata/main/assets/chains/bittensor.svg',
nativeToken: {
id: 'bittensor-substrate-native',
},
rpcs: [
{
url: 'wss://entrypoint-finney.opentensor.ai:443',
},
],
squidIds: {
chainData: 'bittensor',
},
ss58Prefix: 42,
subscanUrl: 'https://bittensor.com/scan',
},
]

0 comments on commit 65c6ec5

Please sign in to comment.