ss58.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2017-2020 @polkadot/ui-settings 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 { TFunction } from 'i18next';
  5. import { Option } from './types';
  6. // Definitions here are with the following values -
  7. // info: the name of a logo as defined in ../logos, specifically in namedLogos
  8. // text: The text you wish to display in the dropdown
  9. // value: The actual ss5Format value (as registered)
  10. export default function create (t: TFunction): Option[] {
  11. return [
  12. {
  13. info: 'default',
  14. text: t<string>('ss58.default', 'Default for the connected node', { ns: 'apps-config' }),
  15. value: -1
  16. },
  17. {
  18. info: 'substrate',
  19. text: t<string>('ss58.substrate', 'Substrate (generic)', { ns: 'apps-config' }),
  20. value: 42
  21. },
  22. {
  23. info: 'polkadot',
  24. text: t<string>('ss58.polkadot', 'Polkadot (live)', { ns: 'apps-config' }),
  25. value: 0
  26. },
  27. {
  28. info: 'kusama',
  29. text: t<string>('ss58.kusama', 'Kusama (canary)', { ns: 'apps-config' }),
  30. value: 2
  31. },
  32. {
  33. info: 'edgeware',
  34. text: t<string>('ss58.edgeware', 'Edgeware (live)', { ns: 'apps-config' }),
  35. value: 7
  36. },
  37. {
  38. info: 'centrifuge',
  39. text: t<string>('ss58.centrifuge', 'Centrifuge (live)', { ns: 'apps-config' }),
  40. value: 36
  41. }
  42. ];
  43. }