feat: change to generic ERC-20 ABI json file

fix: coinUtils rename import
This commit is contained in:
Sérgio Salgado 2021-06-10 01:43:22 +01:00 committed by Josh Harvey
parent dff407e30e
commit 8e099e3283
36 changed files with 364 additions and 249 deletions

View file

@ -2,7 +2,7 @@ import { useLazyQuery } from '@apollo/react-hooks'
import { makeStyles } from '@material-ui/core'
import BigNumber from 'bignumber.js'
import gql from 'graphql-tag'
import { utils } from 'lamassu-coins'
import { utils as coinUtils } from 'lamassu-coins'
import moment from 'moment'
import * as R from 'ramda'
import React, { useEffect, useState } from 'react'
@ -118,13 +118,13 @@ const Transactions = ({ id }) => {
textAlign: 'right',
size: 'sm',
view: it =>
`${utils
`${coinUtils
.toUnit(new BigNumber(it.cryptoAtoms), it.cryptoCode)
.toFormat(5)} ${it.cryptoCode}`
},
{
header: 'Address',
view: it => utils.formatCryptoAddress(it.cryptoCode, it.toAddress),
view: it => coinUtils.formatCryptoAddress(it.cryptoCode, it.toAddress),
className: classes.overflowTd,
size: 'sm',
textAlign: 'left',