From bf0ef055fbd4f5f798ea56868ad0beddf1111e7f Mon Sep 17 00:00:00 2001 From: Ara Kevonian Date: Tue, 10 Apr 2018 03:46:43 -0700 Subject: Modify lazy stores to implement abstract fetcher classes --- packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts | 3 ++- packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/0x.js/src/stores') 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; -- cgit v1.2.3