|
|
@ -7,7 +7,9 @@ const Fuse = require('fuse.js') |
|
|
|
const contractMap = require('eth-contract-metadata') |
|
|
|
const contractMap = require('eth-contract-metadata') |
|
|
|
const TokenBalance = require('./components/token-balance') |
|
|
|
const TokenBalance = require('./components/token-balance') |
|
|
|
const Identicon = require('./components/identicon') |
|
|
|
const Identicon = require('./components/identicon') |
|
|
|
const contractList = Object.entries(contractMap).map(([ _, tokenData]) => tokenData) |
|
|
|
const contractList = Object.entries(contractMap) |
|
|
|
|
|
|
|
.map(([ _, tokenData]) => tokenData) |
|
|
|
|
|
|
|
.filter(tokenData => Boolean(tokenData.erc20)) |
|
|
|
const fuse = new Fuse(contractList, { |
|
|
|
const fuse = new Fuse(contractList, { |
|
|
|
shouldSort: true, |
|
|
|
shouldSort: true, |
|
|
|
threshold: 0.45, |
|
|
|
threshold: 0.45, |
|
|
|