diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-11 19:41:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-11 19:41:06 +0800 |
commit | 7838e1964f112b8df63422c23a675a7946c7b9e3 (patch) | |
tree | aebb4110745c7bc1752fcff46729c301695e601a /src/contract_wrappers | |
parent | 8b9d8ad1b625967fe264fe87e617af1089e1d0e9 (diff) | |
parent | 6b41ef680c90ec19fabc603e9288bde7ec3bc6b1 (diff) | |
download | dexon-sol-tools-7838e1964f112b8df63422c23a675a7946c7b9e3.tar dexon-sol-tools-7838e1964f112b8df63422c23a675a7946c7b9e3.tar.gz dexon-sol-tools-7838e1964f112b8df63422c23a675a7946c7b9e3.tar.bz2 dexon-sol-tools-7838e1964f112b8df63422c23a675a7946c7b9e3.tar.lz dexon-sol-tools-7838e1964f112b8df63422c23a675a7946c7b9e3.tar.xz dexon-sol-tools-7838e1964f112b8df63422c23a675a7946c7b9e3.tar.zst dexon-sol-tools-7838e1964f112b8df63422c23a675a7946c7b9e3.zip |
Merge pull request #61 from 0xProject/names-hex
Remove Hex suffix from public functions parameters names
Diffstat (limited to 'src/contract_wrappers')
-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; |