feat: add Polkassembly.network endpoint (#6125)
This commit is contained in:
parent
9d3b452b1b
commit
c79f616602
@ -7,7 +7,7 @@ import Commonwealth from './commonwealth';
|
||||
import Dotreasury from './dotreasury';
|
||||
import DotScanner from './dotscanner';
|
||||
import Polkascan from './polkascan';
|
||||
import Polkassembly from './polkassembly';
|
||||
import { PolkassemblyIo, PolkassemblyNetwork } from './polkassembly';
|
||||
import Polkastats from './polkastats';
|
||||
import Statescan from './statescan';
|
||||
import Subscan from './subscan';
|
||||
@ -17,7 +17,8 @@ export const externalLinks: Record<string, ExternalDef> = {
|
||||
DotScanner,
|
||||
Dotreasury,
|
||||
Polkascan,
|
||||
Polkassembly,
|
||||
PolkassemblyIo,
|
||||
PolkassemblyNetwork,
|
||||
Polkastats,
|
||||
Statescan,
|
||||
Subscan
|
||||
|
||||
@ -5,7 +5,7 @@ import type BN from 'bn.js';
|
||||
|
||||
import { externalLogos } from '../ui/logos';
|
||||
|
||||
export default {
|
||||
export const PolkassemblyIo = {
|
||||
chains: {
|
||||
Kusama: 'kusama',
|
||||
'Kusama CC3': 'kusama',
|
||||
@ -25,3 +25,17 @@ export default {
|
||||
},
|
||||
url: 'https://polkassembly.io/'
|
||||
};
|
||||
|
||||
export const PolkassemblyNetwork = {
|
||||
...PolkassemblyIo,
|
||||
chains: {
|
||||
Bifrost: 'bifrost',
|
||||
'KILT Spiritnet': 'kilt',
|
||||
Karura: 'karura',
|
||||
'Khala Network': 'khala',
|
||||
Moonriver: 'moonriver'
|
||||
},
|
||||
create: (chain: string, path: string, data: BN | number | string): string =>
|
||||
`https://${chain}.polkassembly.network/${path}/${data.toString()}`,
|
||||
url: 'https://polkassembly.network/'
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user