aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/exchange_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-14 17:27:33 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-14 17:27:33 +0800
commitba289c28430478c66ca7f755efeb307b56d4ffb5 (patch)
tree0d2b50fea0a26e489ca528eb3efb83e795a676b7 /src/contract_wrappers/exchange_wrapper.ts
parentaea8c7f7dfbd03eadc27bae94e2a6bdf2039afbf (diff)
downloaddexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.gz
dexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.zst
dexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.zip
Remove types that are not used in public interface from export and rename EventEmitter to ContractEventEmitter and IndexFilterValues to IndexedFilterValues
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 14d633d66..4698089eb 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -14,9 +14,9 @@ import {
SignedOrder,
ContractEvent,
ExchangeEvents,
- EventEmitter,
+ ContractEventEmitter,
SubscriptionOpts,
- IndexFilterValues,
+ IndexedFilterValues,
CreateContractEvent,
ContractEventObj,
ContractResponse,
@@ -47,7 +47,7 @@ export class ExchangeWrapper extends ContractWrapper {
[ExchangeContractErrCodes.ERROR_FILL_BALANCE_ALLOWANCE]: ExchangeContractErrs.FILL_BALANCE_ALLOWANCE_ERROR,
};
private _exchangeContractIfExists?: ExchangeContract;
- private _exchangeLogEventEmitters: EventEmitter[];
+ private _exchangeLogEventEmitters: ContractEventEmitter[];
private _tokenWrapper: TokenWrapper;
private static _getOrderAddressesAndValues(order: Order): [OrderAddresses, OrderValues] {
const orderAddresses: OrderAddresses = [
@@ -517,11 +517,11 @@ export class ExchangeWrapper extends ContractWrapper {
* @param subscriptionOpts Subscriptions options that let you configure the subscription.
* @param indexFilterValues A JS object where the keys are indexed args returned by the event and
* the value is the value you are interested in. E.g `{maker: aUserAddressHex}`
- * @return EventEmitter object
+ * @return ContractEventEmitter object
*/
public async subscribeAsync(eventName: ExchangeEvents, subscriptionOpts: SubscriptionOpts,
- indexFilterValues: IndexFilterValues):
- Promise<EventEmitter> {
+ indexFilterValues: IndexedFilterValues):
+ Promise<ContractEventEmitter> {
const exchangeContract = await this._getExchangeContractAsync();
let createLogEvent: CreateContractEvent;
switch (eventName) {
@@ -561,7 +561,7 @@ export class ExchangeWrapper extends ContractWrapper {
await Promise.all(stopWatchingPromises);
this._exchangeLogEventEmitters = [];
}
- private _wrapEventEmitter(event: ContractEventObj): EventEmitter {
+ private _wrapEventEmitter(event: ContractEventObj): ContractEventEmitter {
const zeroExEvent = {
watch: event.watch.bind(event),
stopWatchingAsync: async () => {