polkassembly.ts 627 B

12345678910111213141516171819202122
  1. // Copyright 2017-2020 @polkadot/apps-config authors & contributors
  2. // This software may be modified and distributed under the terms
  3. // of the Apache-2.0 license. See the LICENSE file for details.
  4. import BN from 'bn.js';
  5. export default {
  6. chains: {
  7. Kusama: 'kusama',
  8. 'Kusama CC3': 'kusama'
  9. },
  10. create: (chain: string, path: string, data: BN | number | string): string =>
  11. `https://${chain}.polkassembly.io/${path}/${data.toString()}`,
  12. isActive: true,
  13. paths: {
  14. council: 'motion',
  15. proposal: 'proposal',
  16. referendum: 'referendum',
  17. treasury: 'treasury'
  18. },
  19. url: 'https://polkassembly.io/'
  20. };