diff options
author | Ara Kevonian <ara@dextroid.io> | 2018-04-10 18:46:43 +0800 |
---|---|---|
committer | Ara Kevonian <ara@dextroid.io> | 2018-04-10 18:46:43 +0800 |
commit | bf0ef055fbd4f5f798ea56868ad0beddf1111e7f (patch) | |
tree | 9d91f4ccc25e5c93638d8432c9851f293665b0bd /packages/0x.js/src/stores | |
parent | c80b42712a9fc73c05c32cd3d3396a6a02a7969f (diff) | |
download | dexon-sol-tools-bf0ef055fbd4f5f798ea56868ad0beddf1111e7f.tar dexon-sol-tools-bf0ef055fbd4f5f798ea56868ad0beddf1111e7f.tar.gz dexon-sol-tools-bf0ef055fbd4f5f798ea56868ad0beddf1111e7f.tar.bz2 dexon-sol-tools-bf0ef055fbd4f5f798ea56868ad0beddf1111e7f.tar.lz dexon-sol-tools-bf0ef055fbd4f5f798ea56868ad0beddf1111e7f.tar.xz dexon-sol-tools-bf0ef055fbd4f5f798ea56868ad0beddf1111e7f.tar.zst dexon-sol-tools-bf0ef055fbd4f5f798ea56868ad0beddf1111e7f.zip |
Modify lazy stores to implement abstract fetcher classes
Diffstat (limited to 'packages/0x.js/src/stores')
-rw-r--r-- | packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts | 3 | ||||
-rw-r--r-- | packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts b/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts index ede1319fe..610385356 100644 --- a/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts +++ b/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts @@ -3,11 +3,12 @@ import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; import { TokenWrapper } from '../contract_wrappers/token_wrapper'; +import { BalanceAndAllowanceFetcher } from '../fetchers/balance_and_allowance_fetcher'; /** * Copy on read store for balances/proxyAllowances of tokens/accounts */ -export class BalanceAndProxyAllowanceLazyStore { +export class BalanceAndProxyAllowanceLazyStore implements BalanceAndAllowanceFetcher { private _token: TokenWrapper; private _defaultBlock: BlockParamLiteral; private _balance: { diff --git a/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts b/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts index 0a0d93406..9ed4d3bf4 100644 --- a/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts +++ b/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts @@ -3,11 +3,12 @@ import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; import { ExchangeWrapper } from '../contract_wrappers/exchange_wrapper'; +import { OrderFilledCancelledFetcher } from '../fetchers/order_filled_cancelled_fetcher'; /** * Copy on read store for filled/cancelled taker amounts */ -export class OrderFilledCancelledLazyStore { +export class OrderFilledCancelledLazyStore implements OrderFilledCancelledFetcher { private _exchange: ExchangeWrapper; private _filledTakerAmount: { [orderHash: string]: BigNumber; |