diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-04-19 10:20:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 10:20:03 +0800 |
commit | 089663ccc14d43f583aad809f847ef76f70f3a26 (patch) | |
tree | 594899f05a55a69f338e391081bc9b6a26659953 /packages/website/ts/types.ts | |
parent | 62fcb51e1a9893b8d18536eefc9497d6c1f36c39 (diff) | |
parent | 39c0064ffb73b8cb0b0b350e13bd7afec69e7e7e (diff) | |
download | dexon-sol-tools-089663ccc14d43f583aad809f847ef76f70f3a26.tar dexon-sol-tools-089663ccc14d43f583aad809f847ef76f70f3a26.tar.gz dexon-sol-tools-089663ccc14d43f583aad809f847ef76f70f3a26.tar.bz2 dexon-sol-tools-089663ccc14d43f583aad809f847ef76f70f3a26.tar.lz dexon-sol-tools-089663ccc14d43f583aad809f847ef76f70f3a26.tar.xz dexon-sol-tools-089663ccc14d43f583aad809f847ef76f70f3a26.tar.zst dexon-sol-tools-089663ccc14d43f583aad809f847ef76f70f3a26.zip |
Merge pull request #534 from 0xProject/feature/website/integrate-prices
Add price information to wallet
Diffstat (limited to 'packages/website/ts/types.ts')
-rw-r--r-- | packages/website/ts/types.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts index 2126c5c7b..989c0a032 100644 --- a/packages/website/ts/types.ts +++ b/packages/website/ts/types.ts @@ -487,14 +487,17 @@ export interface OutdatedWrappedEtherByNetworkId { }; } -export interface TokenStateByAddress { - [address: string]: TokenState; +export interface ItemByAddress<T> { + [address: string]: T; } +export type TokenStateByAddress = ItemByAddress<TokenState>; + export interface TokenState { balance: BigNumber; allowance: BigNumber; isLoaded: boolean; + price?: BigNumber; } export interface RelayerInfo { |