Skip to content

Commit

Permalink
Merge branch 'overload_functions' of github.com:jbaylina/web3.js into…
Browse files Browse the repository at this point in the history
… overload_functions
  • Loading branch information
jbaylina committed Nov 20, 2017
2 parents 3a40879 + b108e94 commit d4d0f66
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions packages/web3/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export declare interface EventLog {
transactionHash: string
blockHash: string
blockNumber: number
raw?: { data: string, topics: any[] }
raw?: { data: string, topics: string[] }
}
export declare interface TransactionReceipt {
transactionHash: string
Expand Down Expand Up @@ -329,11 +329,20 @@ export declare interface Contract {
[eventName: string]: (options?: {
filter?: object
fromBlock?: BlockType
topics?: any[]
topics?: string[]
}, cb?: Callback<EventLog>) => EventEmitter
allEvents: (options?: { filter?: object, fromBlock?: BlockType, topics?: any[] }, cb?: Callback<EventLog>) => EventEmitter
}

allEvents: (options?: { filter?: object, fromBlock?: BlockType, topics?: string[] }, cb?: Callback<EventLog>) => EventEmitter
},
getPastEvents(
event: string,
options?: {
filter?: object,
fromBlock?: BlockType,
toBlock?: BlockType,
topics?: string[]
},
cb?: Callback<EventLog[]>
): Promise<EventLog[]>
}
export declare interface Request { }
export declare interface Providers {
Expand Down

0 comments on commit d4d0f66

Please sign in to comment.