diff options
author | Jacob Evans <jacob@dekz.net> | 2018-08-16 13:28:59 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-08-16 14:51:55 +0800 |
commit | 36668f94090fa5c35f636f6b7ba597fcb89c068d (patch) | |
tree | 0bd36feb98e249ad4c790f63c0a521ce85cb973b /packages/contract-wrappers/src/contract_wrappers | |
parent | 480d28ea26be86d685d81059a0dbe4cd025f0c21 (diff) | |
download | dexon-sol-tools-36668f94090fa5c35f636f6b7ba597fcb89c068d.tar dexon-sol-tools-36668f94090fa5c35f636f6b7ba597fcb89c068d.tar.gz dexon-sol-tools-36668f94090fa5c35f636f6b7ba597fcb89c068d.tar.bz2 dexon-sol-tools-36668f94090fa5c35f636f6b7ba597fcb89c068d.tar.lz dexon-sol-tools-36668f94090fa5c35f636f6b7ba597fcb89c068d.tar.xz dexon-sol-tools-36668f94090fa5c35f636f6b7ba597fcb89c068d.tar.zst dexon-sol-tools-36668f94090fa5c35f636f6b7ba597fcb89c068d.zip |
[Contract-wrappers] Exchange execute transaction encoder
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts index 48bd00f90..12d6a8fd3 100644 --- a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts @@ -21,6 +21,7 @@ import { } from '../types'; import { assert } from '../utils/assert'; import { decorators } from '../utils/decorators'; +import { ExecuteTransactionEncoder } from '../utils/execute_transaction_encoder'; import { ContractWrapper } from './contract_wrapper'; import { ExchangeContract, ExchangeEventArgs, ExchangeEvents } from './generated/exchange'; @@ -1097,6 +1098,11 @@ export class ExchangeWrapper extends ContractWrapper { const zrxAssetData = assetDataUtils.encodeERC20AssetData(zrxTokenAddress); return zrxAssetData; } + public async executeTransactionEncoderAsync(): Promise<ExecuteTransactionEncoder> { + const exchangeInstance = await this._getExchangeContractAsync(); + const encoder = new ExecuteTransactionEncoder(exchangeInstance); + return encoder; + } // tslint:disable:no-unused-variable private _invalidateContractInstances(): void { this.unsubscribeAll(); |