diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-22 03:57:16 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-22 04:02:44 +0800 |
commit | 4e5cd472c2b784ca2314eea76b1a106fd04ef0ad (patch) | |
tree | 8a46e656ee6598461ce4b7f5e156b02a51a83148 /packages/website/ts/components/wallet.tsx | |
parent | 3cf2cb89bbec6a2cffd59aafdcb6d45aa55269d1 (diff) | |
download | dexon-sol-tools-4e5cd472c2b784ca2314eea76b1a106fd04ef0ad.tar dexon-sol-tools-4e5cd472c2b784ca2314eea76b1a106fd04ef0ad.tar.gz dexon-sol-tools-4e5cd472c2b784ca2314eea76b1a106fd04ef0ad.tar.bz2 dexon-sol-tools-4e5cd472c2b784ca2314eea76b1a106fd04ef0ad.tar.lz dexon-sol-tools-4e5cd472c2b784ca2314eea76b1a106fd04ef0ad.tar.xz dexon-sol-tools-4e5cd472c2b784ca2314eea76b1a106fd04ef0ad.tar.zst dexon-sol-tools-4e5cd472c2b784ca2314eea76b1a106fd04ef0ad.zip |
Refactor TokenState type
Diffstat (limited to 'packages/website/ts/components/wallet.tsx')
-rw-r--r-- | packages/website/ts/components/wallet.tsx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/website/ts/components/wallet.tsx b/packages/website/ts/components/wallet.tsx index 41c10c57a..4e7d0776e 100644 --- a/packages/website/ts/components/wallet.tsx +++ b/packages/website/ts/components/wallet.tsx @@ -20,7 +20,7 @@ import { AllowanceToggle } from 'ts/components/inputs/allowance_toggle'; import { Identicon } from 'ts/components/ui/identicon'; import { TokenIcon } from 'ts/components/ui/token_icon'; import { Dispatcher } from 'ts/redux/dispatcher'; -import { BalanceErrs, BlockchainErrs, Token, TokenByAddress } from 'ts/types'; +import { BalanceErrs, BlockchainErrs, Token, TokenByAddress, TokenState, TokenStateByAddress } from 'ts/types'; import { constants } from 'ts/utils/constants'; import { utils } from 'ts/utils/utils'; @@ -41,16 +41,6 @@ interface WalletState { trackedTokenStateByAddress: TokenStateByAddress; } -interface TokenStateByAddress { - [address: string]: TokenState; -} - -interface TokenState { - balance: BigNumber; - allowance: BigNumber; - isLoaded: boolean; -} - enum WrappedEtherAction { Wrap, Unwrap, |