diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-10 21:25:14 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-10 21:25:14 +0800 |
commit | 6b41ef680c90ec19fabc603e9288bde7ec3bc6b1 (patch) | |
tree | f9173527c9d02084bf13f344ebe030ca813e0f8d /src/contract_wrappers/exchange_wrapper.ts | |
parent | 4c812c99c2d55dcae6c2ac5d0547ebcafc8521be (diff) | |
download | dexon-0x-contracts-6b41ef680c90ec19fabc603e9288bde7ec3bc6b1.tar dexon-0x-contracts-6b41ef680c90ec19fabc603e9288bde7ec3bc6b1.tar.gz dexon-0x-contracts-6b41ef680c90ec19fabc603e9288bde7ec3bc6b1.tar.bz2 dexon-0x-contracts-6b41ef680c90ec19fabc603e9288bde7ec3bc6b1.tar.lz dexon-0x-contracts-6b41ef680c90ec19fabc603e9288bde7ec3bc6b1.tar.xz dexon-0x-contracts-6b41ef680c90ec19fabc603e9288bde7ec3bc6b1.tar.zst dexon-0x-contracts-6b41ef680c90ec19fabc603e9288bde7ec3bc6b1.zip |
Remove Hex suffix from public functions parameters names
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 76f86e464..9e1eb609f 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -79,44 +79,44 @@ export class ExchangeWrapper extends ContractWrapper { * Returns the unavailable takerAmount of an order. Unavailable amount is defined as the total * amount that has been filled or cancelled. The remaining takerAmount can be calculated by * subtracting the unavailable amount from the total order takerAmount. - * @param orderHashHex The hex encoded orderHash for which you would like to retrieve the - * unavailable takerAmount. + * @param orderHash The hex encoded orderHash for which you would like to retrieve the + * unavailable takerAmount. * @return The amount of the order (in taker tokens) that has either been filled or canceled. */ - public async getUnavailableTakerAmountAsync(orderHashHex: string): Promise<BigNumber.BigNumber> { - assert.isValidOrderHash('orderHashHex', orderHashHex); + public async getUnavailableTakerAmountAsync(orderHash: string): Promise<BigNumber.BigNumber> { + assert.isValidOrderHash('orderHash', orderHash); const exchangeContract = await this.getExchangeContractAsync(); - let unavailableAmountInBaseUnits = await exchangeContract.getUnavailableValueT.call(orderHashHex); + let unavailableAmountInBaseUnits = await exchangeContract.getUnavailableValueT.call(orderHash); // Wrap BigNumbers returned from web3 with our own (later) version of BigNumber unavailableAmountInBaseUnits = new BigNumber(unavailableAmountInBaseUnits); return unavailableAmountInBaseUnits; } /** * Retrieve the takerAmount of an order that has already been filled. - * @param orderHashHex The hex encoded orderHash for which you would like to retrieve the filled takerAmount. + * @param orderHash The hex encoded orderHash for which you would like to retrieve the filled takerAmount. * @return The amount of the order (in taker tokens) that has already been filled. */ - public async getFilledTakerAmountAsync(orderHashHex: string): Promise<BigNumber.BigNumber> { - assert.isValidOrderHash('orderHashHex', orderHashHex); + public async getFilledTakerAmountAsync(orderHash: string): Promise<BigNumber.BigNumber> { + assert.isValidOrderHash('orderHash', orderHash); const exchangeContract = await this.getExchangeContractAsync(); - let fillAmountInBaseUnits = await exchangeContract.filled.call(orderHashHex); + let fillAmountInBaseUnits = await exchangeContract.filled.call(orderHash); // Wrap BigNumbers returned from web3 with our own (later) version of BigNumber fillAmountInBaseUnits = new BigNumber(fillAmountInBaseUnits); return fillAmountInBaseUnits; } /** * Retrieve the takerAmount of an order that has been cancelled. - * @param orderHashHex The hex encoded orderHash for which you would like to retrieve the - * cancelled takerAmount. + * @param orderHash The hex encoded orderHash for which you would like to retrieve the + * cancelled takerAmount. * @return The amount of the order (in taker tokens) that has been cancelled. */ - public async getCanceledTakerAmountAsync(orderHashHex: string): Promise<BigNumber.BigNumber> { - assert.isValidOrderHash('orderHashHex', orderHashHex); + public async getCanceledTakerAmountAsync(orderHash: string): Promise<BigNumber.BigNumber> { + assert.isValidOrderHash('orderHash', orderHash); const exchangeContract = await this.getExchangeContractAsync(); - let cancelledAmountInBaseUnits = await exchangeContract.cancelled.call(orderHashHex); + let cancelledAmountInBaseUnits = await exchangeContract.cancelled.call(orderHash); // Wrap BigNumbers returned from web3 with our own (later) version of BigNumber cancelledAmountInBaseUnits = new BigNumber(cancelledAmountInBaseUnits); return cancelledAmountInBaseUnits; |