Add subsquare user external link and support vara network (#9890)

This commit is contained in:
Yongfeng LI 2023-09-21 01:21:33 +08:00 committed by GitHub
parent 6a94825db6
commit 7e55a86cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,15 +29,17 @@ export const Subsquare: ExternalDef = {
Polkadot: 'polkadot',
Rococo: 'rococo',
'Turing Network': 'turing',
'Vara Network': 'vara',
'Westend Collectives': 'westend-collectives',
Zeitgeist: 'zeitgeist',
kintsugi: 'kintsugi'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.subsquare.io/${path}/${data.toString()}`,
`https://${chain}.subsquare.io/${path}/${data.toString()}${path === 'user' ? '/votes' : ''}`,
homepage: 'https://subsquare.io/',
isActive: true,
paths: {
address: 'user',
bounty: 'treasury/bounty',
council: 'council/motion',
democracyExternal: 'democracy/external',