aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-05 05:40:58 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 04:36:59 +0800
commit2bd7b0f66bd28792281ba025cf005c666e7f767e (patch)
tree228f2797a772a4ba828d6b71e5c85c78a708ed21 /packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts
parent8f0ceaf1d8261e9779213276372f4690cdf3426c (diff)
downloaddexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.gz
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.bz2
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.lz
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.xz
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.zst
dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.zip
update contract_wrappers to use new artifacts and abi-gen wrappers packages
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts
index cd8f9ece9..22fc916e2 100644
--- a/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts
@@ -1,4 +1,5 @@
-import { artifacts, wrappers } from '@0xproject/contracts';
+import { ForwarderContract } from '@0xproject/abi-gen-wrappers';
+import { Forwarder } from '@0xproject/contract-artifacts';
import { schemas } from '@0xproject/json-schemas';
import { AssetProxyId, SignedOrder } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
@@ -21,11 +22,11 @@ import { ContractWrapper } from './contract_wrapper';
* This class includes the functionality related to interacting with the Forwarder contract.
*/
export class ForwarderWrapper extends ContractWrapper {
- public abi: ContractAbi = artifacts.Forwarder.compilerOutput.abi;
+ public abi: ContractAbi = Forwarder.compilerOutput.abi;
public address: string;
public zrxTokenAddress: string;
public etherTokenAddress: string;
- private _forwarderContractIfExists?: wrappers.ForwarderContract;
+ private _forwarderContractIfExists?: ForwarderContract;
// TODO(albrow): Make addresses optional?
constructor(web3Wrapper: Web3Wrapper, address: string, zrxTokenAddress: string, etherTokenAddress: string) {
super(web3Wrapper);
@@ -215,11 +216,11 @@ export class ForwarderWrapper extends ContractWrapper {
private _invalidateContractInstance(): void {
delete this._forwarderContractIfExists;
}
- private async _getForwarderContractAsync(): Promise<wrappers.ForwarderContract> {
+ private async _getForwarderContractAsync(): Promise<ForwarderContract> {
if (!_.isUndefined(this._forwarderContractIfExists)) {
return this._forwarderContractIfExists;
}
- const contractInstance = new wrappers.ForwarderContract(
+ const contractInstance = new ForwarderContract(
this.abi,
this.address,
this._web3Wrapper.getProvider(),