aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 05:33:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 08:45:38 +0800
commit1d8ca6c4f35ba44181b01543885b2820059e8c27 (patch)
treee6a6442708d811bf5910a28c4b06218cd1a7172f
parentdb888912d0bde99dc2f60f1a71d38fbde1e4ad49 (diff)
downloaddexon-sol-tools-1d8ca6c4f35ba44181b01543885b2820059e8c27.tar
dexon-sol-tools-1d8ca6c4f35ba44181b01543885b2820059e8c27.tar.gz
dexon-sol-tools-1d8ca6c4f35ba44181b01543885b2820059e8c27.tar.bz2
dexon-sol-tools-1d8ca6c4f35ba44181b01543885b2820059e8c27.tar.lz
dexon-sol-tools-1d8ca6c4f35ba44181b01543885b2820059e8c27.tar.xz
dexon-sol-tools-1d8ca6c4f35ba44181b01543885b2820059e8c27.tar.zst
dexon-sol-tools-1d8ca6c4f35ba44181b01543885b2820059e8c27.zip
Rename ZRX to ZRX_TOKEN_CONTRACT
-rw-r--r--src/artifacts/exchange/Exchange_v1.json26
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts2
-rw-r--r--src/types.ts2
3 files changed, 28 insertions, 2 deletions
diff --git a/src/artifacts/exchange/Exchange_v1.json b/src/artifacts/exchange/Exchange_v1.json
index 4b7321970..ed5f08b72 100644
--- a/src/artifacts/exchange/Exchange_v1.json
+++ b/src/artifacts/exchange/Exchange_v1.json
@@ -116,6 +116,32 @@
"type": "function"
},
{
+ "constant": true,
+ "inputs": [],
+ "name": "ZRX_TOKEN_CONTRACT",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "PROXY_CONTRACT",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "type": "function"
+ },
+ {
"constant": false,
"inputs": [
{
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index fa4b5904b..a06471bba 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -800,7 +800,7 @@ export class ExchangeWrapper extends ContractWrapper {
}
private async _getZRXTokenAddressAsync(exchangeContractAddress: string): Promise<string> {
const exchangeInstance = await this._getExchangeContractAsync(exchangeContractAddress);
- const ZRXtokenAddress = await exchangeInstance.ZRX.call();
+ const ZRXtokenAddress = await exchangeInstance.ZRX_TOKEN_CONTRACT.call();
return ZRXtokenAddress;
}
}
diff --git a/src/types.ts b/src/types.ts
index 66881e170..dfb4d12c5 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -61,7 +61,7 @@ export interface ExchangeContract extends ContractInstance {
LogFill: CreateContractEvent;
LogCancel: CreateContractEvent;
LogError: CreateContractEvent;
- ZRX: {
+ ZRX_TOKEN_CONTRACT: {
call: () => Promise<string>;
};
getUnavailableValueT: {