diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-26 02:17:00 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-26 02:17:00 +0800 |
commit | 1134ff107542d9014b195b6dc6ce6040752c92e3 (patch) | |
tree | 6a3b06b5a10f69817665b67fa63ce75be3790dc5 /packages/contracts/src/utils/core_combinatorial_utils.ts | |
parent | 178676ef8c5a32cdb557d04a0658d0967b4b8a75 (diff) | |
download | dexon-sol-tools-1134ff107542d9014b195b6dc6ce6040752c92e3.tar dexon-sol-tools-1134ff107542d9014b195b6dc6ce6040752c92e3.tar.gz dexon-sol-tools-1134ff107542d9014b195b6dc6ce6040752c92e3.tar.bz2 dexon-sol-tools-1134ff107542d9014b195b6dc6ce6040752c92e3.tar.lz dexon-sol-tools-1134ff107542d9014b195b6dc6ce6040752c92e3.tar.xz dexon-sol-tools-1134ff107542d9014b195b6dc6ce6040752c92e3.tar.zst dexon-sol-tools-1134ff107542d9014b195b6dc6ce6040752c92e3.zip |
Fix tslint issues
Diffstat (limited to 'packages/contracts/src/utils/core_combinatorial_utils.ts')
-rw-r--r-- | packages/contracts/src/utils/core_combinatorial_utils.ts | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/contracts/src/utils/core_combinatorial_utils.ts b/packages/contracts/src/utils/core_combinatorial_utils.ts index aea9a65e7..a2d2a500b 100644 --- a/packages/contracts/src/utils/core_combinatorial_utils.ts +++ b/packages/contracts/src/utils/core_combinatorial_utils.ts @@ -6,11 +6,11 @@ import { OrderStateUtils, OrderValidationUtils, } from '@0xproject/order-utils'; -import { AssetProxyId, Order, SignatureType, SignedOrder } from '@0xproject/types'; +import { AssetProxyId, SignatureType, SignedOrder } from '@0xproject/types'; import { BigNumber, errorUtils, logUtils } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; -import { BlockParamLiteral, LogWithDecodedArgs, Provider, TxData } from 'ethereum-types'; +import { LogWithDecodedArgs, Provider, TxData } from 'ethereum-types'; import * as _ from 'lodash'; import 'make-promises-safe'; @@ -36,7 +36,6 @@ import { FeeRecipientAddressScenario, FillScenario, OrderAssetAmountScenario, - OrderScenario, TakerAssetFillAmountScenario, TakerScenario, TraderStateScenario, @@ -290,7 +289,6 @@ export class CoreCombinatorialUtils { fillScenario.takerStateScenario, signedOrder, takerAssetFillAmount, - balanceAndProxyAllowanceFetcher, ); // 5. If I fill it by X, what are the resulting balances/allowances/filled amounts expected? @@ -325,7 +323,6 @@ export class CoreCombinatorialUtils { takerAssetFillAmount, lazyStore, fillRevertReasonIfExists, - provider, ); } private async _fillOrderAndAssertOutcomeAsync( @@ -333,7 +330,6 @@ export class CoreCombinatorialUtils { takerAssetFillAmount: BigNumber, lazyStore: BalanceAndProxyAllowanceLazyStore, fillRevertReasonIfExists: string | undefined, - provider: Provider, ): Promise<void> { if (!_.isUndefined(fillRevertReasonIfExists)) { return expectRevertReasonOrAlwaysFailingTransactionAsync( @@ -375,11 +371,6 @@ export class CoreCombinatorialUtils { signedOrder.makerAssetAmount, ); - const beforeMakerAssetAllowanceOfMaker = await this.assetWrapper.getProxyAllowanceAsync( - makerAddress, - makerAssetData, - ); - // - Let's fill the order! const txReceipt = await this.exchangeWrapper.fillOrderAsync(signedOrder, this.takerAddress, { takerAssetFillAmount, @@ -544,7 +535,6 @@ export class CoreCombinatorialUtils { takerStateScenario: TraderStateScenario, signedOrder: SignedOrder, takerAssetFillAmount: BigNumber, - balanceAndProxyAllowanceFetcher: SimpleAssetBalanceAndProxyAllowanceFetcher, ): Promise<void> { const makerAssetFillAmount = orderUtils.getPartialAmount( takerAssetFillAmount, |