aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 03:17:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 03:17:51 +0800
commitcbe17aa44bb29c4ea1d84fb6584f30fac8d04e15 (patch)
tree6165f92c01248f8e36c530789bd96a055f2ae7e4 /src
parentd009b9b5252c33fb3af1c9e66a9cc0c3891503c9 (diff)
downloaddexon-sol-tools-cbe17aa44bb29c4ea1d84fb6584f30fac8d04e15.tar.gz
dexon-sol-tools-cbe17aa44bb29c4ea1d84fb6584f30fac8d04e15.tar.zst
dexon-sol-tools-cbe17aa44bb29c4ea1d84fb6584f30fac8d04e15.zip
Store ProxyWrapper instance in ExchangeWrapper
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 2cc38dbaf..c4dfb4318 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -32,6 +32,7 @@ import {
import {assert} from '../utils/assert';
import {utils} from '../utils/utils';
import {ContractWrapper} from './contract_wrapper';
+import {ProxyWrapper} from './proxy_wrapper';
import {ExchangeArtifactsByName} from '../exchange_artifacts_by_name';
import {ecSignatureSchema} from '../schemas/ec_signature_schema';
import {signedOrdersSchema} from '../schemas/signed_orders_schema';
@@ -59,6 +60,7 @@ export class ExchangeWrapper extends ContractWrapper {
private _exchangeContractByAddress: ExchangeContractByAddress;
private _exchangeLogEventEmitters: ContractEventEmitter[];
private _tokenWrapper: TokenWrapper;
+ private _proxyWrapper: ProxyWrapper;
private static _getOrderAddressesAndValues(order: Order): [OrderAddresses, OrderValues] {
const orderAddresses: OrderAddresses = [
order.maker,
@@ -77,9 +79,10 @@ export class ExchangeWrapper extends ContractWrapper {
];
return [orderAddresses, orderValues];
}
- constructor(web3Wrapper: Web3Wrapper, tokenWrapper: TokenWrapper) {
+ constructor(web3Wrapper: Web3Wrapper, tokenWrapper: TokenWrapper, proxyWrapper: ProxyWrapper) {
super(web3Wrapper);
this._tokenWrapper = tokenWrapper;
+ this._proxyWrapper = proxyWrapper;
this._exchangeLogEventEmitters = [];
this._exchangeContractByAddress = {};
}