aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 06:57:45 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 08:45:40 +0800
commit8d53c78661bbacf8634a7f97c9f3cbbfaed1912d (patch)
tree375644dc071a2bb9bb5fb98d616c71b76265bd9f /src
parentd21ef4db8245749e58c2e44d2adbd607734e2156 (diff)
downloaddexon-sol-tools-8d53c78661bbacf8634a7f97c9f3cbbfaed1912d.tar
dexon-sol-tools-8d53c78661bbacf8634a7f97c9f3cbbfaed1912d.tar.gz
dexon-sol-tools-8d53c78661bbacf8634a7f97c9f3cbbfaed1912d.tar.bz2
dexon-sol-tools-8d53c78661bbacf8634a7f97c9f3cbbfaed1912d.tar.lz
dexon-sol-tools-8d53c78661bbacf8634a7f97c9f3cbbfaed1912d.tar.xz
dexon-sol-tools-8d53c78661bbacf8634a7f97c9f3cbbfaed1912d.tar.zst
dexon-sol-tools-8d53c78661bbacf8634a7f97c9f3cbbfaed1912d.zip
Migrate getUnavailableTakerTokenAmount
Diffstat (limited to 'src')
-rw-r--r--src/artifacts/exchange/Exchange_v1.json4
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts6
-rw-r--r--src/types.ts2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/artifacts/exchange/Exchange_v1.json b/src/artifacts/exchange/Exchange_v1.json
index c52c04d72..a3766fae2 100644
--- a/src/artifacts/exchange/Exchange_v1.json
+++ b/src/artifacts/exchange/Exchange_v1.json
@@ -360,10 +360,10 @@
"type": "bytes32"
}
],
- "name": "getUnavailableValueT",
+ "name": "getUnavailableTakerTokenAmount",
"outputs": [
{
- "name": "unavailableValueT",
+ "name": "unavailableTakerTokenAmount",
"type": "uint256"
}
],
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index e551cd9d8..7ec186bf4 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -105,10 +105,10 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('orderHash', orderHash, orderHashSchema);
const exchangeContract = await this._getExchangeContractAsync(exchangeContractAddress);
- let unavailableAmountInBaseUnits = await exchangeContract.getUnavailableValueT.call(orderHash);
+ let unavailableTakerTokenAmount = await exchangeContract.getUnavailableTakerTokenAmount.call(orderHash);
// Wrap BigNumbers returned from web3 with our own (later) version of BigNumber
- unavailableAmountInBaseUnits = new BigNumber(unavailableAmountInBaseUnits);
- return unavailableAmountInBaseUnits;
+ unavailableTakerTokenAmount = new BigNumber(unavailableTakerTokenAmount);
+ return unavailableTakerTokenAmount;
}
/**
* Retrieve the takerAmount of an order that has already been filled.
diff --git a/src/types.ts b/src/types.ts
index a65772878..3b9a08aa1 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -64,7 +64,7 @@ export interface ExchangeContract extends ContractInstance {
ZRX: {
call: () => Promise<string>;
};
- getUnavailableValueT: {
+ getUnavailableTakerTokenAmount: {
call: (orderHash: string) => BigNumber.BigNumber;
};
isRoundingError: {