diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-30 03:17:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-30 03:17:51 +0800 |
commit | cbe17aa44bb29c4ea1d84fb6584f30fac8d04e15 (patch) | |
tree | 6165f92c01248f8e36c530789bd96a055f2ae7e4 /src/contract_wrappers | |
parent | d009b9b5252c33fb3af1c9e66a9cc0c3891503c9 (diff) | |
download | dexon-0x-contracts-cbe17aa44bb29c4ea1d84fb6584f30fac8d04e15.tar.gz dexon-0x-contracts-cbe17aa44bb29c4ea1d84fb6584f30fac8d04e15.tar.zst dexon-0x-contracts-cbe17aa44bb29c4ea1d84fb6584f30fac8d04e15.zip |
Store ProxyWrapper instance in ExchangeWrapper
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 5 |
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 = {}; } |