@sentio/sdk 2.40.0-rc.17 → 2.40.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/eth/account-processor.d.ts +21 -7
- package/lib/eth/account-processor.d.ts.map +1 -1
- package/lib/eth/account-processor.js +2 -2
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +24 -8
- package/lib/eth/base-processor-template.d.ts.map +1 -1
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +30 -10
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +6 -6
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +24 -8
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +23 -23
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +24 -8
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +8 -8
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +18 -6
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +18 -18
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +12 -4
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +9 -9
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +18 -6
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +14 -14
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +24 -8
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +11 -11
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/event-handler.js +1 -1
- package/lib/eth/codegen/function-calls.js +1 -1
- package/lib/eth/codegen/function-calls.js.map +1 -1
- package/lib/eth/eth-plugin.d.ts +27 -9
- package/lib/eth/eth-plugin.d.ts.map +1 -1
- package/lib/eth/eth-plugin.js +13 -13
- package/lib/eth/eth-plugin.js.map +1 -1
- package/package.json +3 -3
- package/src/eth/account-processor.ts +28 -12
- package/src/eth/base-processor-template.ts +16 -8
- package/src/eth/base-processor.ts +25 -16
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +39 -31
- package/src/eth/builtin/internal/erc1155-processor.ts +24 -16
- package/src/eth/builtin/internal/erc20-processor.ts +42 -24
- package/src/eth/builtin/internal/erc20bytes-processor.ts +29 -13
- package/src/eth/builtin/internal/erc721-processor.ts +26 -20
- package/src/eth/builtin/internal/weth9-processor.ts +27 -19
- package/src/eth/codegen/event-handler.ts +1 -1
- package/src/eth/codegen/function-calls.ts +1 -1
- package/src/eth/eth-plugin.ts +27 -22
@@ -26,7 +26,8 @@ export abstract class BaseProcessorTemplate<
|
|
26
26
|
handler: (block: BlockParams, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid
|
27
27
|
preprocessHandler: (
|
28
28
|
block: BlockParams,
|
29
|
-
ctx: ContractContext<TContract, TBoundContractView
|
29
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
30
|
+
preprocessStore: { [k: string]: any }
|
30
31
|
) => Promise<PreprocessResult>
|
31
32
|
blockInterval?: HandleInterval
|
32
33
|
timeIntervalInMinutes?: HandleInterval
|
@@ -37,7 +38,8 @@ export abstract class BaseProcessorTemplate<
|
|
37
38
|
handler: (trace: TypedCallTrace, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid
|
38
39
|
preprocessHandler: (
|
39
40
|
trace: TypedCallTrace,
|
40
|
-
ctx: ContractContext<TContract, TBoundContractView
|
41
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
42
|
+
preprocessStore: { [k: string]: any }
|
41
43
|
) => Promise<PreprocessResult>
|
42
44
|
fetchConfig?: EthFetchConfig
|
43
45
|
}[] = []
|
@@ -45,7 +47,8 @@ export abstract class BaseProcessorTemplate<
|
|
45
47
|
handler: (event: TypedEvent, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid
|
46
48
|
preprocessHandler: (
|
47
49
|
event: TypedEvent,
|
48
|
-
ctx: ContractContext<TContract, TBoundContractView
|
50
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
51
|
+
preprocessStore: { [k: string]: any }
|
49
52
|
) => Promise<PreprocessResult>
|
50
53
|
filter: DeferredTopicFilter | DeferredTopicFilter[]
|
51
54
|
fetchConfig?: EthFetchConfig
|
@@ -112,7 +115,8 @@ export abstract class BaseProcessorTemplate<
|
|
112
115
|
fetchConfig?: Partial<EthFetchConfig>,
|
113
116
|
preprocessHandler: (
|
114
117
|
event: TypedEvent,
|
115
|
-
ctx: ContractContext<TContract, TBoundContractView
|
118
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
119
|
+
preprocessStore: { [k: string]: any }
|
116
120
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
117
121
|
) {
|
118
122
|
this.eventHandlers.push({
|
@@ -131,7 +135,8 @@ export abstract class BaseProcessorTemplate<
|
|
131
135
|
fetchConfig?: EthFetchConfig,
|
132
136
|
preprocessHandler: (
|
133
137
|
block: BlockParams,
|
134
|
-
ctx: ContractContext<TContract, TBoundContractView
|
138
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
139
|
+
preprocessStore: { [k: string]: any }
|
135
140
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
136
141
|
) {
|
137
142
|
return this.onInterval(
|
@@ -153,7 +158,8 @@ export abstract class BaseProcessorTemplate<
|
|
153
158
|
fetchConfig?: EthFetchConfig,
|
154
159
|
preprocessHandler: (
|
155
160
|
block: BlockParams,
|
156
|
-
ctx: ContractContext<TContract, TBoundContractView
|
161
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
162
|
+
preprocessStore: { [k: string]: any }
|
157
163
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
158
164
|
) {
|
159
165
|
return this.onInterval(
|
@@ -172,7 +178,8 @@ export abstract class BaseProcessorTemplate<
|
|
172
178
|
fetchConfig: EthFetchConfig | undefined,
|
173
179
|
preprocessHandler: (
|
174
180
|
block: BlockParams,
|
175
|
-
ctx: ContractContext<TContract, TBoundContractView
|
181
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
182
|
+
preprocessStore: { [k: string]: any }
|
176
183
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
177
184
|
) {
|
178
185
|
this.blockHandlers.push({
|
@@ -191,7 +198,8 @@ export abstract class BaseProcessorTemplate<
|
|
191
198
|
fetchConfig?: Partial<EthFetchConfig>,
|
192
199
|
preprocessHandler: (
|
193
200
|
trace: TypedCallTrace,
|
194
|
-
ctx: ContractContext<TContract, TBoundContractView
|
201
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
202
|
+
preprocessStore: { [k: string]: any }
|
195
203
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
196
204
|
) {
|
197
205
|
this.traceHandlers.push({
|
@@ -31,14 +31,14 @@ export const defaultPreprocessHandler = () => (<PreprocessResult>{ ethCallParams
|
|
31
31
|
export class EventsHandler {
|
32
32
|
filters: AddressOrTypeEventFilter[]
|
33
33
|
handler: (event: Data_EthLog) => Promise<ProcessResult>
|
34
|
-
preprocessHandler?: (event: Data_EthLog) => Promise<PreprocessResult>
|
34
|
+
preprocessHandler?: (event: Data_EthLog, preprocessStore: { [k: string]: any }) => Promise<PreprocessResult>
|
35
35
|
fetchConfig: EthFetchConfig
|
36
36
|
}
|
37
37
|
|
38
38
|
export class TraceHandler {
|
39
39
|
signatures: string[]
|
40
40
|
handler: (trace: Data_EthTrace) => Promise<ProcessResult>
|
41
|
-
preprocessHandler?: (event: Data_EthTrace) => Promise<PreprocessResult>
|
41
|
+
preprocessHandler?: (event: Data_EthTrace, preprocessStore: { [k: string]: any }) => Promise<PreprocessResult>
|
42
42
|
fetchConfig: EthFetchConfig
|
43
43
|
}
|
44
44
|
|
@@ -46,13 +46,13 @@ export class BlockHandler {
|
|
46
46
|
blockInterval?: HandleInterval
|
47
47
|
timeIntervalInMinutes?: HandleInterval
|
48
48
|
handler: (block: Data_EthBlock) => Promise<ProcessResult>
|
49
|
-
preprocessHandler?: (event: Data_EthBlock) => Promise<PreprocessResult>
|
49
|
+
preprocessHandler?: (event: Data_EthBlock, preprocessStore: { [k: string]: any }) => Promise<PreprocessResult>
|
50
50
|
fetchConfig: EthFetchConfig
|
51
51
|
}
|
52
52
|
|
53
53
|
export class TransactionHandler {
|
54
54
|
handler: (block: Data_EthTransaction) => Promise<ProcessResult>
|
55
|
-
preprocessHandler?: (event: Data_EthTransaction) => Promise<PreprocessResult>
|
55
|
+
preprocessHandler?: (event: Data_EthTransaction, preprocessStore: { [k: string]: any }) => Promise<PreprocessResult>
|
56
56
|
fetchConfig: EthFetchConfig
|
57
57
|
}
|
58
58
|
|
@@ -314,7 +314,8 @@ export abstract class BaseProcessor<
|
|
314
314
|
fetchConfig?: Partial<EthFetchConfig>,
|
315
315
|
preprocessHandler: (
|
316
316
|
event: TypedEvent,
|
317
|
-
ctx: ContractContext<TContract, TBoundContractView
|
317
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
318
|
+
preprocessStore: { [k: string]: any }
|
318
319
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
319
320
|
): this {
|
320
321
|
const chainId = this.getChainId()
|
@@ -382,7 +383,10 @@ export abstract class BaseProcessor<
|
|
382
383
|
}
|
383
384
|
return ProcessResult.fromPartial({})
|
384
385
|
},
|
385
|
-
preprocessHandler: async function (
|
386
|
+
preprocessHandler: async function (
|
387
|
+
data: Data_EthLog,
|
388
|
+
preprocessStore: { [k: string]: any }
|
389
|
+
): Promise<PreprocessResult> {
|
386
390
|
const { log, block, transaction, transactionReceipt } = formatEthData(data)
|
387
391
|
if (!log) {
|
388
392
|
throw new ServerError(Status.INVALID_ARGUMENT, 'Log is empty')
|
@@ -427,7 +431,7 @@ export abstract class BaseProcessor<
|
|
427
431
|
}
|
428
432
|
if (parsed) {
|
429
433
|
const event: TypedEvent = { ...log, name: parsed.name, args: fixEmptyKey(parsed) }
|
430
|
-
return preprocessHandler(event, ctx)
|
434
|
+
return preprocessHandler(event, ctx, preprocessStore)
|
431
435
|
}
|
432
436
|
return PreprocessResult.fromPartial({})
|
433
437
|
}
|
@@ -442,7 +446,8 @@ export abstract class BaseProcessor<
|
|
442
446
|
fetchConfig?: Partial<EthFetchConfig>,
|
443
447
|
preprocessHandler: (
|
444
448
|
block: RichBlock,
|
445
|
-
ctx: ContractContext<TContract, TBoundContractView
|
449
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
450
|
+
preprocessStore: { [k: string]: any }
|
446
451
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
447
452
|
): this {
|
448
453
|
return this.onInterval(
|
@@ -464,7 +469,8 @@ export abstract class BaseProcessor<
|
|
464
469
|
fetchConfig?: Partial<EthFetchConfig>,
|
465
470
|
preprocessHandler: (
|
466
471
|
block: RichBlock,
|
467
|
-
ctx: ContractContext<TContract, TBoundContractView
|
472
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
473
|
+
preprocessStore: { [k: string]: any }
|
468
474
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
469
475
|
): this {
|
470
476
|
return this.onInterval(
|
@@ -483,7 +489,8 @@ export abstract class BaseProcessor<
|
|
483
489
|
fetchConfig: Partial<EthFetchConfig> | undefined,
|
484
490
|
preprocessHandler: (
|
485
491
|
block: RichBlock,
|
486
|
-
ctx: ContractContext<TContract, TBoundContractView
|
492
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
493
|
+
preprocessStore: { [k: string]: any }
|
487
494
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
488
495
|
): this {
|
489
496
|
const chainId = this.getChainId()
|
@@ -516,7 +523,7 @@ export abstract class BaseProcessor<
|
|
516
523
|
await handler(block, ctx)
|
517
524
|
return ctx.stopAndGetResult()
|
518
525
|
},
|
519
|
-
preprocessHandler: async function (data: Data_EthBlock) {
|
526
|
+
preprocessHandler: async function (data: Data_EthBlock, preprocessStore: { [k: string]: any }) {
|
520
527
|
const { block } = formatEthData(data)
|
521
528
|
|
522
529
|
if (!block) {
|
@@ -537,7 +544,7 @@ export abstract class BaseProcessor<
|
|
537
544
|
undefined,
|
538
545
|
processor.config.baseLabels
|
539
546
|
)
|
540
|
-
return preprocessHandler(block, ctx)
|
547
|
+
return preprocessHandler(block, ctx, preprocessStore)
|
541
548
|
},
|
542
549
|
timeIntervalInMinutes: timeInterval,
|
543
550
|
blockInterval: blockInterval,
|
@@ -552,7 +559,8 @@ export abstract class BaseProcessor<
|
|
552
559
|
fetchConfig?: Partial<EthFetchConfig>,
|
553
560
|
preprocessHandler: (
|
554
561
|
trace: TypedCallTrace,
|
555
|
-
ctx: ContractContext<TContract, TBoundContractView
|
562
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
563
|
+
preprocessStore: { [k: string]: any }
|
556
564
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
557
565
|
): this {
|
558
566
|
const chainId = this.getChainId()
|
@@ -610,7 +618,7 @@ export abstract class BaseProcessor<
|
|
610
618
|
await handler(typedTrace, ctx)
|
611
619
|
return ctx.stopAndGetResult()
|
612
620
|
},
|
613
|
-
preprocessHandler: async function (data: Data_EthTrace) {
|
621
|
+
preprocessHandler: async function (data: Data_EthTrace, preprocessStore: { [k: string]: any }) {
|
614
622
|
const contractView = processor.CreateBoundContractView()
|
615
623
|
const contractInterface = contractView.rawContract.interface
|
616
624
|
const { trace, block, transaction, transactionReceipt } = formatEthData(data)
|
@@ -651,7 +659,7 @@ export abstract class BaseProcessor<
|
|
651
659
|
transactionReceipt,
|
652
660
|
processor.config.baseLabels
|
653
661
|
)
|
654
|
-
return preprocessHandler(typedTrace, ctx)
|
662
|
+
return preprocessHandler(typedTrace, ctx, preprocessStore)
|
655
663
|
}
|
656
664
|
})
|
657
665
|
return this
|
@@ -662,7 +670,8 @@ export abstract class BaseProcessor<
|
|
662
670
|
fetchConfig?: Partial<EthFetchConfig>,
|
663
671
|
preprocessHandler: (
|
664
672
|
trace: TypedCallTrace,
|
665
|
-
ctx: ContractContext<TContract, TBoundContractView
|
673
|
+
ctx: ContractContext<TContract, TBoundContractView>,
|
674
|
+
preprocessStore: { [k: string]: any }
|
666
675
|
) => Promise<PreprocessResult> = defaultPreprocessHandler
|
667
676
|
): this {
|
668
677
|
const tmpContract = this.CreateBoundContractView()
|
@@ -223,7 +223,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
223
223
|
.toArray();
|
224
224
|
return result.length == 1 ? result[0] : result;
|
225
225
|
}
|
226
|
-
console.
|
226
|
+
console.debug("missing eth call key:", "accessController", key);
|
227
227
|
}
|
228
228
|
return await this.contract.getFunction("accessController()")(
|
229
229
|
overrides || {}
|
@@ -258,7 +258,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
258
258
|
.toArray();
|
259
259
|
return result.length == 1 ? result[0] : result;
|
260
260
|
}
|
261
|
-
console.
|
261
|
+
console.debug("missing eth call key:", "aggregator", key);
|
262
262
|
}
|
263
263
|
return await this.contract.getFunction("aggregator()")(overrides || {});
|
264
264
|
} catch (e) {
|
@@ -289,7 +289,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
289
289
|
const result = iface.decodeFunctionResult("decimals", ret).toArray();
|
290
290
|
return result.length == 1 ? result[0] : result;
|
291
291
|
}
|
292
|
-
console.
|
292
|
+
console.debug("missing eth call key:", "decimals", key);
|
293
293
|
}
|
294
294
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
295
295
|
} catch (e) {
|
@@ -322,7 +322,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
322
322
|
.toArray();
|
323
323
|
return result.length == 1 ? result[0] : result;
|
324
324
|
}
|
325
|
-
console.
|
325
|
+
console.debug("missing eth call key:", "description", key);
|
326
326
|
}
|
327
327
|
return await this.contract.getFunction("description()")(overrides || {});
|
328
328
|
} catch (e) {
|
@@ -354,7 +354,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
354
354
|
const result = iface.decodeFunctionResult("getAnswer", ret).toArray();
|
355
355
|
return result.length == 1 ? result[0] : result;
|
356
356
|
}
|
357
|
-
console.
|
357
|
+
console.debug("missing eth call key:", "getAnswer", _roundId, key);
|
358
358
|
}
|
359
359
|
return await this.contract.getFunction("getAnswer(uint256)")(
|
360
360
|
_roundId,
|
@@ -399,7 +399,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
399
399
|
.toArray();
|
400
400
|
return result.length == 1 ? result[0] : result;
|
401
401
|
}
|
402
|
-
console.
|
402
|
+
console.debug("missing eth call key:", "getRoundData", _roundId, key);
|
403
403
|
}
|
404
404
|
return await this.contract.getFunction("getRoundData(uint80)")(
|
405
405
|
_roundId,
|
@@ -436,7 +436,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
436
436
|
.toArray();
|
437
437
|
return result.length == 1 ? result[0] : result;
|
438
438
|
}
|
439
|
-
console.
|
439
|
+
console.debug("missing eth call key:", "getTimestamp", _roundId, key);
|
440
440
|
}
|
441
441
|
return await this.contract.getFunction("getTimestamp(uint256)")(
|
442
442
|
_roundId,
|
@@ -472,7 +472,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
472
472
|
.toArray();
|
473
473
|
return result.length == 1 ? result[0] : result;
|
474
474
|
}
|
475
|
-
console.
|
475
|
+
console.debug("missing eth call key:", "latestAnswer", key);
|
476
476
|
}
|
477
477
|
return await this.contract.getFunction("latestAnswer()")(overrides || {});
|
478
478
|
} catch (e) {
|
@@ -505,7 +505,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
505
505
|
.toArray();
|
506
506
|
return result.length == 1 ? result[0] : result;
|
507
507
|
}
|
508
|
-
console.
|
508
|
+
console.debug("missing eth call key:", "latestRound", key);
|
509
509
|
}
|
510
510
|
return await this.contract.getFunction("latestRound()")(overrides || {});
|
511
511
|
} catch (e) {
|
@@ -546,7 +546,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
546
546
|
.toArray();
|
547
547
|
return result.length == 1 ? result[0] : result;
|
548
548
|
}
|
549
|
-
console.
|
549
|
+
console.debug("missing eth call key:", "latestRoundData", key);
|
550
550
|
}
|
551
551
|
return await this.contract.getFunction("latestRoundData()")(
|
552
552
|
overrides || {}
|
@@ -581,7 +581,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
581
581
|
.toArray();
|
582
582
|
return result.length == 1 ? result[0] : result;
|
583
583
|
}
|
584
|
-
console.
|
584
|
+
console.debug("missing eth call key:", "latestTimestamp", key);
|
585
585
|
}
|
586
586
|
return await this.contract.getFunction("latestTimestamp()")(
|
587
587
|
overrides || {}
|
@@ -614,7 +614,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
614
614
|
const result = iface.decodeFunctionResult("owner", ret).toArray();
|
615
615
|
return result.length == 1 ? result[0] : result;
|
616
616
|
}
|
617
|
-
console.
|
617
|
+
console.debug("missing eth call key:", "owner", key);
|
618
618
|
}
|
619
619
|
return await this.contract.getFunction("owner()")(overrides || {});
|
620
620
|
} catch (e) {
|
@@ -648,7 +648,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
648
648
|
.toArray();
|
649
649
|
return result.length == 1 ? result[0] : result;
|
650
650
|
}
|
651
|
-
console.
|
651
|
+
console.debug("missing eth call key:", "phaseAggregators", arg0, key);
|
652
652
|
}
|
653
653
|
return await this.contract.getFunction("phaseAggregators(uint16)")(
|
654
654
|
arg0,
|
@@ -682,7 +682,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
682
682
|
const result = iface.decodeFunctionResult("phaseId", ret).toArray();
|
683
683
|
return result.length == 1 ? result[0] : result;
|
684
684
|
}
|
685
|
-
console.
|
685
|
+
console.debug("missing eth call key:", "phaseId", key);
|
686
686
|
}
|
687
687
|
return await this.contract.getFunction("phaseId()")(overrides || {});
|
688
688
|
} catch (e) {
|
@@ -715,7 +715,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
715
715
|
.toArray();
|
716
716
|
return result.length == 1 ? result[0] : result;
|
717
717
|
}
|
718
|
-
console.
|
718
|
+
console.debug("missing eth call key:", "proposedAggregator", key);
|
719
719
|
}
|
720
720
|
return await this.contract.getFunction("proposedAggregator()")(
|
721
721
|
overrides || {}
|
@@ -761,7 +761,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
761
761
|
.toArray();
|
762
762
|
return result.length == 1 ? result[0] : result;
|
763
763
|
}
|
764
|
-
console.
|
764
|
+
console.debug(
|
765
765
|
"missing eth call key:",
|
766
766
|
"proposedGetRoundData",
|
767
767
|
_roundId,
|
@@ -813,7 +813,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
813
813
|
.toArray();
|
814
814
|
return result.length == 1 ? result[0] : result;
|
815
815
|
}
|
816
|
-
console.
|
816
|
+
console.debug("missing eth call key:", "proposedLatestRoundData", key);
|
817
817
|
}
|
818
818
|
return await this.contract.getFunction("proposedLatestRoundData()")(
|
819
819
|
overrides || {}
|
@@ -846,7 +846,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
846
846
|
const result = iface.decodeFunctionResult("version", ret).toArray();
|
847
847
|
return result.length == 1 ? result[0] : result;
|
848
848
|
}
|
849
|
-
console.
|
849
|
+
console.debug("missing eth call key:", "version", key);
|
850
850
|
}
|
851
851
|
return await this.contract.getFunction("version()")(overrides || {});
|
852
852
|
} catch (e) {
|
@@ -882,7 +882,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
882
882
|
.toArray();
|
883
883
|
return result.length == 1 ? result[0] : result;
|
884
884
|
}
|
885
|
-
console.
|
885
|
+
console.debug("missing eth call key:", "acceptOwnership", key);
|
886
886
|
}
|
887
887
|
return await this.contract
|
888
888
|
.getFunction("acceptOwnership()")
|
@@ -919,7 +919,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
919
919
|
.toArray();
|
920
920
|
return result.length == 1 ? result[0] : result;
|
921
921
|
}
|
922
|
-
console.
|
922
|
+
console.debug(
|
923
923
|
"missing eth call key:",
|
924
924
|
"confirmAggregator",
|
925
925
|
_aggregator,
|
@@ -961,7 +961,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
961
961
|
.toArray();
|
962
962
|
return result.length == 1 ? result[0] : result;
|
963
963
|
}
|
964
|
-
console.
|
964
|
+
console.debug(
|
965
965
|
"missing eth call key:",
|
966
966
|
"proposeAggregator",
|
967
967
|
_aggregator,
|
@@ -1003,7 +1003,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
1003
1003
|
.toArray();
|
1004
1004
|
return result.length == 1 ? result[0] : result;
|
1005
1005
|
}
|
1006
|
-
console.
|
1006
|
+
console.debug(
|
1007
1007
|
"missing eth call key:",
|
1008
1008
|
"setController",
|
1009
1009
|
_accessController,
|
@@ -1043,7 +1043,7 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
1043
1043
|
.toArray();
|
1044
1044
|
return result.length == 1 ? result[0] : result;
|
1045
1045
|
}
|
1046
|
-
console.
|
1046
|
+
console.debug("missing eth call key:", "transferOwnership", _to, key);
|
1047
1047
|
}
|
1048
1048
|
return await this.contract
|
1049
1049
|
.getFunction("transferOwnership(address)")
|
@@ -2257,7 +2257,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2257
2257
|
fetchConfig?: Partial<EthFetchConfig>,
|
2258
2258
|
preprocessHandler?: (
|
2259
2259
|
event: AnswerUpdatedEvent,
|
2260
|
-
ctx: EACAggregatorProxyContext
|
2260
|
+
ctx: EACAggregatorProxyContext,
|
2261
|
+
preprocessStore: { [k: string]: any }
|
2261
2262
|
) => Promise<PreprocessResult>
|
2262
2263
|
): this {
|
2263
2264
|
if (!filter) {
|
@@ -2274,7 +2275,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2274
2275
|
fetchConfig?: Partial<EthFetchConfig>,
|
2275
2276
|
preprocessHandler?: (
|
2276
2277
|
event: NewRoundEvent,
|
2277
|
-
ctx: EACAggregatorProxyContext
|
2278
|
+
ctx: EACAggregatorProxyContext,
|
2279
|
+
preprocessStore: { [k: string]: any }
|
2278
2280
|
) => Promise<PreprocessResult>
|
2279
2281
|
): this {
|
2280
2282
|
if (!filter) {
|
@@ -2298,7 +2300,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2298
2300
|
fetchConfig?: Partial<EthFetchConfig>,
|
2299
2301
|
preprocessHandler?: (
|
2300
2302
|
event: OwnershipTransferRequestedEvent,
|
2301
|
-
ctx: EACAggregatorProxyContext
|
2303
|
+
ctx: EACAggregatorProxyContext,
|
2304
|
+
preprocessStore: { [k: string]: any }
|
2302
2305
|
) => Promise<PreprocessResult>
|
2303
2306
|
): this {
|
2304
2307
|
if (!filter) {
|
@@ -2320,7 +2323,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2320
2323
|
fetchConfig?: Partial<EthFetchConfig>,
|
2321
2324
|
preprocessHandler?: (
|
2322
2325
|
event: OwnershipTransferredEvent,
|
2323
|
-
ctx: EACAggregatorProxyContext
|
2326
|
+
ctx: EACAggregatorProxyContext,
|
2327
|
+
preprocessStore: { [k: string]: any }
|
2324
2328
|
) => Promise<PreprocessResult>
|
2325
2329
|
): this {
|
2326
2330
|
if (!filter) {
|
@@ -2841,7 +2845,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2841
2845
|
fetchConfig?: Partial<EthFetchConfig>,
|
2842
2846
|
preprocessHandler?: (
|
2843
2847
|
event: AnswerUpdatedEvent,
|
2844
|
-
ctx: EACAggregatorProxyContext
|
2848
|
+
ctx: EACAggregatorProxyContext,
|
2849
|
+
preprocessStore: { [k: string]: any }
|
2845
2850
|
) => Promise<PreprocessResult>
|
2846
2851
|
): this {
|
2847
2852
|
if (!filter) {
|
@@ -2858,7 +2863,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2858
2863
|
fetchConfig?: Partial<EthFetchConfig>,
|
2859
2864
|
preprocessHandler?: (
|
2860
2865
|
event: NewRoundEvent,
|
2861
|
-
ctx: EACAggregatorProxyContext
|
2866
|
+
ctx: EACAggregatorProxyContext,
|
2867
|
+
preprocessStore: { [k: string]: any }
|
2862
2868
|
) => Promise<PreprocessResult>
|
2863
2869
|
): this {
|
2864
2870
|
if (!filter) {
|
@@ -2882,7 +2888,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2882
2888
|
fetchConfig?: Partial<EthFetchConfig>,
|
2883
2889
|
preprocessHandler?: (
|
2884
2890
|
event: OwnershipTransferRequestedEvent,
|
2885
|
-
ctx: EACAggregatorProxyContext
|
2891
|
+
ctx: EACAggregatorProxyContext,
|
2892
|
+
preprocessStore: { [k: string]: any }
|
2886
2893
|
) => Promise<PreprocessResult>
|
2887
2894
|
): this {
|
2888
2895
|
if (!filter) {
|
@@ -2904,7 +2911,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2904
2911
|
fetchConfig?: Partial<EthFetchConfig>,
|
2905
2912
|
preprocessHandler?: (
|
2906
2913
|
event: OwnershipTransferredEvent,
|
2907
|
-
ctx: EACAggregatorProxyContext
|
2914
|
+
ctx: EACAggregatorProxyContext,
|
2915
|
+
preprocessStore: { [k: string]: any }
|
2908
2916
|
) => Promise<PreprocessResult>
|
2909
2917
|
): this {
|
2910
2918
|
if (!filter) {
|
@@ -151,7 +151,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
151
151
|
const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
|
152
152
|
return result.length == 1 ? result[0] : result;
|
153
153
|
}
|
154
|
-
console.
|
154
|
+
console.debug("missing eth call key:", "balanceOf", account, id, key);
|
155
155
|
}
|
156
156
|
return await this.contract.getFunction("balanceOf(address,uint256)")(
|
157
157
|
account,
|
@@ -193,7 +193,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
193
193
|
.toArray();
|
194
194
|
return result.length == 1 ? result[0] : result;
|
195
195
|
}
|
196
|
-
console.
|
196
|
+
console.debug(
|
197
197
|
"missing eth call key:",
|
198
198
|
"balanceOfBatch",
|
199
199
|
accounts,
|
@@ -239,7 +239,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
239
239
|
.toArray();
|
240
240
|
return result.length == 1 ? result[0] : result;
|
241
241
|
}
|
242
|
-
console.
|
242
|
+
console.debug(
|
243
243
|
"missing eth call key:",
|
244
244
|
"isApprovedForAll",
|
245
245
|
account,
|
@@ -283,7 +283,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
283
283
|
.toArray();
|
284
284
|
return result.length == 1 ? result[0] : result;
|
285
285
|
}
|
286
|
-
console.
|
286
|
+
console.debug(
|
287
287
|
"missing eth call key:",
|
288
288
|
"supportsInterface",
|
289
289
|
interfaceId,
|
@@ -323,7 +323,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
323
323
|
const result = iface.decodeFunctionResult("uri", ret).toArray();
|
324
324
|
return result.length == 1 ? result[0] : result;
|
325
325
|
}
|
326
|
-
console.
|
326
|
+
console.debug("missing eth call key:", "uri", id, key);
|
327
327
|
}
|
328
328
|
return await this.contract.getFunction("uri(uint256)")(
|
329
329
|
id,
|
@@ -373,7 +373,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
373
373
|
.toArray();
|
374
374
|
return result.length == 1 ? result[0] : result;
|
375
375
|
}
|
376
|
-
console.
|
376
|
+
console.debug(
|
377
377
|
"missing eth call key:",
|
378
378
|
"safeBatchTransferFrom",
|
379
379
|
from,
|
@@ -429,7 +429,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
429
429
|
.toArray();
|
430
430
|
return result.length == 1 ? result[0] : result;
|
431
431
|
}
|
432
|
-
console.
|
432
|
+
console.debug(
|
433
433
|
"missing eth call key:",
|
434
434
|
"safeTransferFrom",
|
435
435
|
from,
|
@@ -479,7 +479,7 @@ export class ERC1155ContractView extends ContractView<ERC1155> {
|
|
479
479
|
.toArray();
|
480
480
|
return result.length == 1 ? result[0] : result;
|
481
481
|
}
|
482
|
-
console.
|
482
|
+
console.debug(
|
483
483
|
"missing eth call key:",
|
484
484
|
"setApprovalForAll",
|
485
485
|
operator,
|
@@ -1054,7 +1054,8 @@ export class ERC1155Processor extends BaseProcessor<
|
|
1054
1054
|
fetchConfig?: Partial<EthFetchConfig>,
|
1055
1055
|
preprocessHandler?: (
|
1056
1056
|
event: ApprovalForAllEvent,
|
1057
|
-
ctx: ERC1155Context
|
1057
|
+
ctx: ERC1155Context,
|
1058
|
+
preprocessStore: { [k: string]: any }
|
1058
1059
|
) => Promise<PreprocessResult>
|
1059
1060
|
): this {
|
1060
1061
|
if (!filter) {
|
@@ -1073,7 +1074,8 @@ export class ERC1155Processor extends BaseProcessor<
|
|
1073
1074
|
fetchConfig?: Partial<EthFetchConfig>,
|
1074
1075
|
preprocessHandler?: (
|
1075
1076
|
event: TransferBatchEvent,
|
1076
|
-
ctx: ERC1155Context
|
1077
|
+
ctx: ERC1155Context,
|
1078
|
+
preprocessStore: { [k: string]: any }
|
1077
1079
|
) => Promise<PreprocessResult>
|
1078
1080
|
): this {
|
1079
1081
|
if (!filter) {
|
@@ -1090,7 +1092,8 @@ export class ERC1155Processor extends BaseProcessor<
|
|
1090
1092
|
fetchConfig?: Partial<EthFetchConfig>,
|
1091
1093
|
preprocessHandler?: (
|
1092
1094
|
event: TransferSingleEvent,
|
1093
|
-
ctx: ERC1155Context
|
1095
|
+
ctx: ERC1155Context,
|
1096
|
+
preprocessStore: { [k: string]: any }
|
1094
1097
|
) => Promise<PreprocessResult>
|
1095
1098
|
): this {
|
1096
1099
|
if (!filter) {
|
@@ -1107,7 +1110,8 @@ export class ERC1155Processor extends BaseProcessor<
|
|
1107
1110
|
fetchConfig?: Partial<EthFetchConfig>,
|
1108
1111
|
preprocessHandler?: (
|
1109
1112
|
event: URIEvent,
|
1110
|
-
ctx: ERC1155Context
|
1113
|
+
ctx: ERC1155Context,
|
1114
|
+
preprocessStore: { [k: string]: any }
|
1111
1115
|
) => Promise<PreprocessResult>
|
1112
1116
|
): this {
|
1113
1117
|
if (!filter) {
|
@@ -1326,7 +1330,8 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
1326
1330
|
fetchConfig?: Partial<EthFetchConfig>,
|
1327
1331
|
preprocessHandler?: (
|
1328
1332
|
event: ApprovalForAllEvent,
|
1329
|
-
ctx: ERC1155Context
|
1333
|
+
ctx: ERC1155Context,
|
1334
|
+
preprocessStore: { [k: string]: any }
|
1330
1335
|
) => Promise<PreprocessResult>
|
1331
1336
|
): this {
|
1332
1337
|
if (!filter) {
|
@@ -1345,7 +1350,8 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
1345
1350
|
fetchConfig?: Partial<EthFetchConfig>,
|
1346
1351
|
preprocessHandler?: (
|
1347
1352
|
event: TransferBatchEvent,
|
1348
|
-
ctx: ERC1155Context
|
1353
|
+
ctx: ERC1155Context,
|
1354
|
+
preprocessStore: { [k: string]: any }
|
1349
1355
|
) => Promise<PreprocessResult>
|
1350
1356
|
): this {
|
1351
1357
|
if (!filter) {
|
@@ -1362,7 +1368,8 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
1362
1368
|
fetchConfig?: Partial<EthFetchConfig>,
|
1363
1369
|
preprocessHandler?: (
|
1364
1370
|
event: TransferSingleEvent,
|
1365
|
-
ctx: ERC1155Context
|
1371
|
+
ctx: ERC1155Context,
|
1372
|
+
preprocessStore: { [k: string]: any }
|
1366
1373
|
) => Promise<PreprocessResult>
|
1367
1374
|
): this {
|
1368
1375
|
if (!filter) {
|
@@ -1379,7 +1386,8 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
1379
1386
|
fetchConfig?: Partial<EthFetchConfig>,
|
1380
1387
|
preprocessHandler?: (
|
1381
1388
|
event: URIEvent,
|
1382
|
-
ctx: ERC1155Context
|
1389
|
+
ctx: ERC1155Context,
|
1390
|
+
preprocessStore: { [k: string]: any }
|
1383
1391
|
) => Promise<PreprocessResult>
|
1384
1392
|
): this {
|
1385
1393
|
if (!filter) {
|