polkascan.ts 898 B

123456789101112131415161718192021222324252627282930
  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. // 'Centrifuge Mainnet': 'centrifuge',
  8. // Edgeware: 'edgeware',
  9. // Kulupu: 'kulupu',
  10. Kusama: 'kusama',
  11. Polkadot: 'polkadot',
  12. 'Polkadot CC1': 'polkadot-cc1'
  13. },
  14. create: (chain: string, path: string, data: BN | number | string): string =>
  15. `https://polkascan.io/${chain}/${path}/${data.toString()}`,
  16. isActive: true,
  17. paths: {
  18. address: 'account',
  19. block: 'block',
  20. council: 'council/motion',
  21. extrinsic: 'transaction',
  22. proposal: 'democracy/proposal',
  23. referendum: 'democracy/referendum',
  24. techcomm: 'techcomm/proposal',
  25. treasury: 'treasury/proposal'
  26. },
  27. url: 'https://polkascan.io/'
  28. };