diff options
author | Ara Kevonian <ara@dextroid.io> | 2018-04-13 18:04:51 +0800 |
---|---|---|
committer | Ara Kevonian <ara@dextroid.io> | 2018-04-13 18:04:51 +0800 |
commit | 38f7c4a0d2d9269b5fd185b303ede7a44ab78c99 (patch) | |
tree | 901387c575cd38968bb5dbe58c34fccd7a7bf9eb /packages/0x.js/src/contract_wrappers/exchange_wrapper.ts | |
parent | bf0ef055fbd4f5f798ea56868ad0beddf1111e7f (diff) | |
download | dexon-0x-contracts-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar.gz dexon-0x-contracts-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar.zst dexon-0x-contracts-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.zip |
Implement Simple Fetchers
Diffstat (limited to 'packages/0x.js/src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | packages/0x.js/src/contract_wrappers/exchange_wrapper.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts index b6949e465..65b5a2e53 100644 --- a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts @@ -13,8 +13,8 @@ import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as _ from 'lodash'; import { artifacts } from '../artifacts'; -import { BalanceAndProxyAllowanceLazyStore } from '../stores/balance_proxy_allowance_lazy_store'; -import { OrderFilledCancelledLazyStore } from '../stores/order_filled_cancelled_lazy_store'; +import { SimpleBalanceAndAllowanceFetcher } from '../fetchers/simple_balance_and_allowance_fetcher'; +import { SimpleOrderFilledCancelledFetcher } from '../fetchers/simple_order_filled_cancelled_fetcher'; import { BlockRange, EventCallback, @@ -881,11 +881,11 @@ export class ExchangeWrapper extends ContractWrapper { * @param signedOrder The signedOrder */ public async getOrderStateAsync(signedOrder: SignedOrder): Promise<OrderState> { - const balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore( + const balanceAndProxyAllowanceLazyStore = new SimpleBalanceAndAllowanceFetcher( this._tokenWrapper, BlockParamLiteral.Latest, ); - const orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(this); + const orderFilledCancelledLazyStore = new SimpleOrderFilledCancelledFetcher(this); const orderStateUtils = new OrderStateUtils(balanceAndProxyAllowanceLazyStore, orderFilledCancelledLazyStore); return orderStateUtils.getOrderStateAsync(signedOrder); } |