aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src/contract_wrappers.ts
diff options
context:
space:
mode:
authorGreg Hysen <hysz@users.noreply.github.com>2019-01-08 08:16:06 +0800
committerGitHub <noreply@github.com>2019-01-08 08:16:06 +0800
commit0ac36cef288deecd36caa601c53d13517eef5ca8 (patch)
tree6ee5fc237d649116e02da241a3c2ebe3d5029dee /packages/contract-wrappers/src/contract_wrappers.ts
parent7dda953bc929e218121c331fedb3884b24555855 (diff)
parent04db7f0fae02ef29795d0f65deb71e64b5552233 (diff)
downloaddexon-sol-tools-0ac36cef288deecd36caa601c53d13517eef5ca8.tar
dexon-sol-tools-0ac36cef288deecd36caa601c53d13517eef5ca8.tar.gz
dexon-sol-tools-0ac36cef288deecd36caa601c53d13517eef5ca8.tar.bz2
dexon-sol-tools-0ac36cef288deecd36caa601c53d13517eef5ca8.tar.lz
dexon-sol-tools-0ac36cef288deecd36caa601c53d13517eef5ca8.tar.xz
dexon-sol-tools-0ac36cef288deecd36caa601c53d13517eef5ca8.tar.zst
dexon-sol-tools-0ac36cef288deecd36caa601c53d13517eef5ca8.zip
Merge pull request #1465 from 0xProject/feature/contracts/dutchAuctionWrapper
Dutch Auction Wrapper
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers.ts')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers.ts b/packages/contract-wrappers/src/contract_wrappers.ts
index 0c535bd5c..4e594593e 100644
--- a/packages/contract-wrappers/src/contract_wrappers.ts
+++ b/packages/contract-wrappers/src/contract_wrappers.ts
@@ -12,6 +12,7 @@ import { Web3Wrapper } from '@0x/web3-wrapper';
import { Provider } from 'ethereum-types';
import * as _ from 'lodash';
+import { DutchAuctionWrapper } from './contract_wrappers/dutch_auction_wrapper';
import { ERC20ProxyWrapper } from './contract_wrappers/erc20_proxy_wrapper';
import { ERC20TokenWrapper } from './contract_wrappers/erc20_token_wrapper';
import { ERC721ProxyWrapper } from './contract_wrappers/erc721_proxy_wrapper';
@@ -65,6 +66,10 @@ export class ContractWrappers {
* An instance of the OrderValidatorWrapper class containing methods for interacting with any OrderValidator smart contract.
*/
public orderValidator: OrderValidatorWrapper;
+ /**
+ * An instance of the DutchAuctionWrapper class containing methods for interacting with any DutchAuction smart contract.
+ */
+ public dutchAuction: DutchAuctionWrapper;
private readonly _web3Wrapper: Web3Wrapper;
/**
@@ -141,6 +146,11 @@ export class ContractWrappers {
config.networkId,
contractAddresses.orderValidator,
);
+ this.dutchAuction = new DutchAuctionWrapper(
+ this._web3Wrapper,
+ config.networkId,
+ contractAddresses.dutchAuction,
+ );
}
/**
* Unsubscribes from all subscriptions for all contracts.