aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/extensions/test/utils
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-12-22 09:04:17 +0800
committerGreg Hysen <greg.hysen@gmail.com>2019-01-08 07:50:48 +0800
commitcb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9 (patch)
treefd063745d6e40e21ff7c85a3063ecafb93d98062 /contracts/extensions/test/utils
parentb249a50d8f0054328a901525af6316133ed64023 (diff)
downloaddexon-sol-tools-cb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9.tar
dexon-sol-tools-cb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9.tar.gz
dexon-sol-tools-cb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9.tar.bz2
dexon-sol-tools-cb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9.tar.lz
dexon-sol-tools-cb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9.tar.xz
dexon-sol-tools-cb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9.tar.zst
dexon-sol-tools-cb1bfa0f9790706bf9ce08aad0bf8fd9e2621ce9.zip
ran prettier + added changelog entry for contract wrappers
Diffstat (limited to 'contracts/extensions/test/utils')
-rw-r--r--contracts/extensions/test/utils/dutch_auction_test_wrapper.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/contracts/extensions/test/utils/dutch_auction_test_wrapper.ts b/contracts/extensions/test/utils/dutch_auction_test_wrapper.ts
index ae8f53aa5..4dc83a5e7 100644
--- a/contracts/extensions/test/utils/dutch_auction_test_wrapper.ts
+++ b/contracts/extensions/test/utils/dutch_auction_test_wrapper.ts
@@ -5,11 +5,9 @@ import { DutchAuctionDetails, SignedOrder } from '@0x/types';
import { Web3Wrapper } from '@0x/web3-wrapper';
import { Provider, TransactionReceiptWithDecodedLogs } from 'ethereum-types';
import * as _ from 'lodash';
-import { BigNumber } from '@0x/utils';
import { DutchAuctionContract } from '../../generated-wrappers/dutch_auction';
import { artifacts } from '../../src/artifacts';
-import { DutchAuctionWrapper } from '@0x/contract-wrappers';
export class DutchAuctionTestWrapper {
private readonly _dutchAuctionContract: DutchAuctionContract;
@@ -61,20 +59,4 @@ export class DutchAuctionTestWrapper {
const afterAuctionDetails = await this._dutchAuctionContract.getAuctionDetails.callAsync(sellOrder);
return afterAuctionDetails;
}
- /**
- * Dutch auction details are encoded with the asset data for a 0x order. This function produces a hex
- * encoded assetData string, containing information both about the asset being traded and the
- * dutch auction; which is usable in the makerAssetData or takerAssetData fields in a 0x order.
- * @param assetData Hex encoded assetData string for the asset being auctioned.
- * @param beginTimeSeconds Begin time of the dutch auction.
- * @param beginAmount Starting amount being sold in the dutch auction.
- * @return The hex encoded assetData string.
- */
- public static encodeDutchAuctionAssetData(
- assetData: string,
- beginTimeSeconds: BigNumber,
- beginAmount: BigNumber,
- ): string {
- return DutchAuctionWrapper.encodeDutchAuctionAssetData(assetData, beginTimeSeconds, beginAmount);
- }
}