Make TokenInfo free from BCP types

This commit is contained in:
Simon Warta
2020-02-01 16:19:52 +01:00
parent fb9160f258
commit eb72f0e175
13 changed files with 68 additions and 48 deletions
+7 -7
View File
@@ -1,18 +1,18 @@
import { CosmWasmCodec, CosmWasmConnection, TokenInfo } from "@cosmwasm/bcp";
import { TokenTicker, TxCodec } from "@iov/bcp";
import { CosmWasmCodec, CosmWasmConnection, TokenConfiguration } from "@cosmwasm/bcp";
import { TxCodec } from "@iov/bcp";
const prefix = "cosmos";
const tokens: readonly TokenInfo[] = [
const tokens: TokenConfiguration = [
{
fractionalDigits: 6,
tokenName: "Fee Token",
tokenTicker: "COSM" as TokenTicker,
name: "Fee Token",
ticker: "COSM",
denom: "cosm",
},
{
fractionalDigits: 6,
tokenName: "Staking Token",
tokenTicker: "STAKE" as TokenTicker,
name: "Staking Token",
ticker: "STAKE",
denom: "stake",
},
];