File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " dequanto" ,
3
- "version" : " 0.1.55 " ,
3
+ "version" : " 0.1.56 " ,
4
4
"author" : {
5
5
"name" : " Alex Kit" ,
6
6
"email" : " alex.kit@atmajs.com"
Original file line number Diff line number Diff line change @@ -82,9 +82,7 @@ export class EventsIndexer <TContract extends ContractBase> {
82
82
filter ?: {
83
83
fromBlock ?: number
84
84
toBlock ?: number
85
- params ?: TLogName extends keyof TContract
86
- ? ( TContract [ TLogName ] extends ( options : { params ?: infer TParams } ) => any ? TParams : never )
87
- : never ,
85
+ params ?: Partial < TContract [ 'Types' ] [ 'Events' ] [ TLogName ] [ 'outputParams' ] >
88
86
}
89
87
) : Promise < {
90
88
logs : ITxLogItem < GetTypes < TContract > [ 'Events' ] [ TLogName ] [ 'outputParams' ] > [ ] ,
@@ -113,9 +111,7 @@ export class EventsIndexer <TContract extends ContractBase> {
113
111
fromBlock ?: number
114
112
toBlock ?: number
115
113
blockRangeLimits ?: WClient [ 'blockRangeLimits' ]
116
- params ?: TLogName extends keyof TContract
117
- ? ( TContract [ TLogName ] extends ( options : { params ?: infer TParams } ) => any ? TParams : never )
118
- : never ,
114
+ params ?: Partial < TContract [ 'Types' ] [ 'Events' ] [ TLogName ] [ 'outputParams' ] >
119
115
} ,
120
116
) : AsyncGenerator <
121
117
TLogsRangeProgress <
You can’t perform that action at this time.
0 commit comments