kodadot/nft-gallery

View on GitHub
params/constants.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Unit } from './types'

// TODO: use this in cleanup
export const units: Unit[] = [
  { name: 'femto', value: 1e-15 },
  { name: 'pico', value: 1e-12 },
  { name: 'nano', value: 1e-9 },
  { name: 'micro', value: 1e-6 },
  { name: 'mili', value: 1e-3 },
  { name: '-', value: 1 },
  { name: 'Kilo', value: 1e3 },
  { name: 'Mega', value: 1e6 },
  { name: 'Giga', value: 1e9 },
  { name: 'Tera', value: 1e12 },
  { name: 'Peta', value: 1e15 },
  { name: 'Exa', value: 1e18 },
  { name: 'Zeta', value: 1e21 },
  { name: 'Yotta', value: 1e24 },
]