31 lines
794 B
JavaScript
31 lines
794 B
JavaScript
import StandardToken from 'Embark/contracts/StandardToken'
|
|
import SNT from 'Embark/contracts/SNT'
|
|
|
|
export const TOKEN_ICON_API = 'https://raw.githubusercontent.com/TrustWallet/tokens/master/images'
|
|
export const TOKEN_COIN_API = 'https://raw.githubusercontent.com/TrustWallet/tokens/master/coins'
|
|
export const currencies = [
|
|
{
|
|
value: 'ETH',
|
|
label: 'Ether',
|
|
img: `${TOKEN_COIN_API}/60.png`,
|
|
},
|
|
{
|
|
value: SNT._address,
|
|
label: 'Status (SNT)',
|
|
},
|
|
{
|
|
value: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
|
|
label: 'DAI',
|
|
},
|
|
{
|
|
value: StandardToken._address,
|
|
label: 'Standard Token',
|
|
icon: '🤔',
|
|
}
|
|
]
|
|
|
|
export const getTokenLabel = value => {
|
|
const token = currencies.find(currency => currency.value === value)
|
|
return token ? token.label : null
|
|
}
|