diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-14 17:27:33 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-14 17:27:33 +0800 |
commit | ba289c28430478c66ca7f755efeb307b56d4ffb5 (patch) | |
tree | 0d2b50fea0a26e489ca528eb3efb83e795a676b7 /src/types.ts | |
parent | aea8c7f7dfbd03eadc27bae94e2a6bdf2039afbf (diff) | |
download | dexon-0x-contracts-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.gz dexon-0x-contracts-ba289c28430478c66ca7f755efeb307b56d4ffb5.tar.zst dexon-0x-contracts-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.ts | 6 |
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>; } |