aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.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/types.ts
parentaea8c7f7dfbd03eadc27bae94e2a6bdf2039afbf (diff)
downloaddexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar
dexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.gz
dexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.bz2
dexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.lz
dexon-sol-tools-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.xz
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/types.ts')
-rw-r--r--src/types.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types.ts b/src/types.ts
index 2197fbfc3..11d3182d8 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -44,7 +44,7 @@ export interface ContractEventObj {
watch: (eventWatch: EventCallback) => void;
stopWatching: () => void;
}
-export type CreateContractEvent = (indexFilterValues: IndexFilterValues,
+export type CreateContractEvent = (indexFilterValues: IndexedFilterValues,
subscriptionOpts: SubscriptionOpts) => ContractEventObj;
export interface ExchangeContract extends ContractInstance {
isValidSignature: {
@@ -238,7 +238,7 @@ export const ExchangeEvents = strEnum([
]);
export type ExchangeEvents = keyof typeof ExchangeEvents;
-export interface IndexFilterValues {
+export interface IndexedFilterValues {
[index: string]: any;
}
@@ -276,7 +276,7 @@ export interface Artifact {
networks: {[networkId: number]: any};
}
-export interface EventEmitter {
+export interface ContractEventEmitter {
watch: (eventCallback: EventCallback) => void;
stopWatchingAsync: () => Promise<void>;
}