@sentio/sdk 2.40.0-rc.16 → 2.40.0-rc.18
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 +59 -31
- package/src/eth/builtin/internal/erc1155-processor.ts +65 -37
- package/src/eth/builtin/internal/erc20-processor.ts +66 -40
- package/src/eth/builtin/internal/erc20bytes-processor.ts +24 -13
- package/src/eth/builtin/internal/erc721-processor.ts +65 -38
- package/src/eth/builtin/internal/weth9-processor.ts +34 -19
- package/src/eth/codegen/event-handler.ts +1 -1
- package/src/eth/codegen/function-calls.ts +3 -3
- 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,8 +223,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
223
223
|
.toArray();
|
224
224
|
return result.length == 1 ? result[0] : result;
|
225
225
|
}
|
226
|
+
console.log("missing eth call key:", "accessController", key);
|
226
227
|
}
|
227
|
-
console.debug("missing eth call:", "accessController");
|
228
228
|
return await this.contract.getFunction("accessController()")(
|
229
229
|
overrides || {}
|
230
230
|
);
|
@@ -258,8 +258,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
258
258
|
.toArray();
|
259
259
|
return result.length == 1 ? result[0] : result;
|
260
260
|
}
|
261
|
+
console.log("missing eth call key:", "aggregator", key);
|
261
262
|
}
|
262
|
-
console.debug("missing eth call:", "aggregator");
|
263
263
|
return await this.contract.getFunction("aggregator()")(overrides || {});
|
264
264
|
} catch (e) {
|
265
265
|
const stack = new Error().stack;
|
@@ -289,8 +289,8 @@ 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.log("missing eth call key:", "decimals", key);
|
292
293
|
}
|
293
|
-
console.debug("missing eth call:", "decimals");
|
294
294
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
295
295
|
} catch (e) {
|
296
296
|
const stack = new Error().stack;
|
@@ -322,8 +322,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
322
322
|
.toArray();
|
323
323
|
return result.length == 1 ? result[0] : result;
|
324
324
|
}
|
325
|
+
console.log("missing eth call key:", "description", key);
|
325
326
|
}
|
326
|
-
console.debug("missing eth call:", "description");
|
327
327
|
return await this.contract.getFunction("description()")(overrides || {});
|
328
328
|
} catch (e) {
|
329
329
|
const stack = new Error().stack;
|
@@ -354,8 +354,8 @@ 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.log("missing eth call key:", "getAnswer", _roundId, key);
|
357
358
|
}
|
358
|
-
console.debug("missing eth call:", "getAnswer", _roundId);
|
359
359
|
return await this.contract.getFunction("getAnswer(uint256)")(
|
360
360
|
_roundId,
|
361
361
|
overrides || {}
|
@@ -399,8 +399,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
399
399
|
.toArray();
|
400
400
|
return result.length == 1 ? result[0] : result;
|
401
401
|
}
|
402
|
+
console.log("missing eth call key:", "getRoundData", _roundId, key);
|
402
403
|
}
|
403
|
-
console.debug("missing eth call:", "getRoundData", _roundId);
|
404
404
|
return await this.contract.getFunction("getRoundData(uint80)")(
|
405
405
|
_roundId,
|
406
406
|
overrides || {}
|
@@ -436,8 +436,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
436
436
|
.toArray();
|
437
437
|
return result.length == 1 ? result[0] : result;
|
438
438
|
}
|
439
|
+
console.log("missing eth call key:", "getTimestamp", _roundId, key);
|
439
440
|
}
|
440
|
-
console.debug("missing eth call:", "getTimestamp", _roundId);
|
441
441
|
return await this.contract.getFunction("getTimestamp(uint256)")(
|
442
442
|
_roundId,
|
443
443
|
overrides || {}
|
@@ -472,8 +472,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
472
472
|
.toArray();
|
473
473
|
return result.length == 1 ? result[0] : result;
|
474
474
|
}
|
475
|
+
console.log("missing eth call key:", "latestAnswer", key);
|
475
476
|
}
|
476
|
-
console.debug("missing eth call:", "latestAnswer");
|
477
477
|
return await this.contract.getFunction("latestAnswer()")(overrides || {});
|
478
478
|
} catch (e) {
|
479
479
|
const stack = new Error().stack;
|
@@ -505,8 +505,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
505
505
|
.toArray();
|
506
506
|
return result.length == 1 ? result[0] : result;
|
507
507
|
}
|
508
|
+
console.log("missing eth call key:", "latestRound", key);
|
508
509
|
}
|
509
|
-
console.debug("missing eth call:", "latestRound");
|
510
510
|
return await this.contract.getFunction("latestRound()")(overrides || {});
|
511
511
|
} catch (e) {
|
512
512
|
const stack = new Error().stack;
|
@@ -546,8 +546,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
546
546
|
.toArray();
|
547
547
|
return result.length == 1 ? result[0] : result;
|
548
548
|
}
|
549
|
+
console.log("missing eth call key:", "latestRoundData", key);
|
549
550
|
}
|
550
|
-
console.debug("missing eth call:", "latestRoundData");
|
551
551
|
return await this.contract.getFunction("latestRoundData()")(
|
552
552
|
overrides || {}
|
553
553
|
);
|
@@ -581,8 +581,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
581
581
|
.toArray();
|
582
582
|
return result.length == 1 ? result[0] : result;
|
583
583
|
}
|
584
|
+
console.log("missing eth call key:", "latestTimestamp", key);
|
584
585
|
}
|
585
|
-
console.debug("missing eth call:", "latestTimestamp");
|
586
586
|
return await this.contract.getFunction("latestTimestamp()")(
|
587
587
|
overrides || {}
|
588
588
|
);
|
@@ -614,8 +614,8 @@ 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.log("missing eth call key:", "owner", key);
|
617
618
|
}
|
618
|
-
console.debug("missing eth call:", "owner");
|
619
619
|
return await this.contract.getFunction("owner()")(overrides || {});
|
620
620
|
} catch (e) {
|
621
621
|
const stack = new Error().stack;
|
@@ -648,8 +648,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
648
648
|
.toArray();
|
649
649
|
return result.length == 1 ? result[0] : result;
|
650
650
|
}
|
651
|
+
console.log("missing eth call key:", "phaseAggregators", arg0, key);
|
651
652
|
}
|
652
|
-
console.debug("missing eth call:", "phaseAggregators", arg0);
|
653
653
|
return await this.contract.getFunction("phaseAggregators(uint16)")(
|
654
654
|
arg0,
|
655
655
|
overrides || {}
|
@@ -682,8 +682,8 @@ 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.log("missing eth call key:", "phaseId", key);
|
685
686
|
}
|
686
|
-
console.debug("missing eth call:", "phaseId");
|
687
687
|
return await this.contract.getFunction("phaseId()")(overrides || {});
|
688
688
|
} catch (e) {
|
689
689
|
const stack = new Error().stack;
|
@@ -715,8 +715,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
715
715
|
.toArray();
|
716
716
|
return result.length == 1 ? result[0] : result;
|
717
717
|
}
|
718
|
+
console.log("missing eth call key:", "proposedAggregator", key);
|
718
719
|
}
|
719
|
-
console.debug("missing eth call:", "proposedAggregator");
|
720
720
|
return await this.contract.getFunction("proposedAggregator()")(
|
721
721
|
overrides || {}
|
722
722
|
);
|
@@ -761,8 +761,13 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
761
761
|
.toArray();
|
762
762
|
return result.length == 1 ? result[0] : result;
|
763
763
|
}
|
764
|
+
console.log(
|
765
|
+
"missing eth call key:",
|
766
|
+
"proposedGetRoundData",
|
767
|
+
_roundId,
|
768
|
+
key
|
769
|
+
);
|
764
770
|
}
|
765
|
-
console.debug("missing eth call:", "proposedGetRoundData", _roundId);
|
766
771
|
return await this.contract.getFunction("proposedGetRoundData(uint80)")(
|
767
772
|
_roundId,
|
768
773
|
overrides || {}
|
@@ -808,8 +813,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
808
813
|
.toArray();
|
809
814
|
return result.length == 1 ? result[0] : result;
|
810
815
|
}
|
816
|
+
console.log("missing eth call key:", "proposedLatestRoundData", key);
|
811
817
|
}
|
812
|
-
console.debug("missing eth call:", "proposedLatestRoundData");
|
813
818
|
return await this.contract.getFunction("proposedLatestRoundData()")(
|
814
819
|
overrides || {}
|
815
820
|
);
|
@@ -841,8 +846,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
841
846
|
const result = iface.decodeFunctionResult("version", ret).toArray();
|
842
847
|
return result.length == 1 ? result[0] : result;
|
843
848
|
}
|
849
|
+
console.log("missing eth call key:", "version", key);
|
844
850
|
}
|
845
|
-
console.debug("missing eth call:", "version");
|
846
851
|
return await this.contract.getFunction("version()")(overrides || {});
|
847
852
|
} catch (e) {
|
848
853
|
const stack = new Error().stack;
|
@@ -877,8 +882,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
877
882
|
.toArray();
|
878
883
|
return result.length == 1 ? result[0] : result;
|
879
884
|
}
|
885
|
+
console.log("missing eth call key:", "acceptOwnership", key);
|
880
886
|
}
|
881
|
-
console.debug("missing eth call:", "acceptOwnership");
|
882
887
|
return await this.contract
|
883
888
|
.getFunction("acceptOwnership()")
|
884
889
|
.staticCall(overrides || {});
|
@@ -914,8 +919,13 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
914
919
|
.toArray();
|
915
920
|
return result.length == 1 ? result[0] : result;
|
916
921
|
}
|
922
|
+
console.log(
|
923
|
+
"missing eth call key:",
|
924
|
+
"confirmAggregator",
|
925
|
+
_aggregator,
|
926
|
+
key
|
927
|
+
);
|
917
928
|
}
|
918
|
-
console.debug("missing eth call:", "confirmAggregator", _aggregator);
|
919
929
|
return await this.contract
|
920
930
|
.getFunction("confirmAggregator(address)")
|
921
931
|
.staticCall(_aggregator, overrides || {});
|
@@ -951,8 +961,13 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
951
961
|
.toArray();
|
952
962
|
return result.length == 1 ? result[0] : result;
|
953
963
|
}
|
964
|
+
console.log(
|
965
|
+
"missing eth call key:",
|
966
|
+
"proposeAggregator",
|
967
|
+
_aggregator,
|
968
|
+
key
|
969
|
+
);
|
954
970
|
}
|
955
|
-
console.debug("missing eth call:", "proposeAggregator", _aggregator);
|
956
971
|
return await this.contract
|
957
972
|
.getFunction("proposeAggregator(address)")
|
958
973
|
.staticCall(_aggregator, overrides || {});
|
@@ -988,8 +1003,13 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
988
1003
|
.toArray();
|
989
1004
|
return result.length == 1 ? result[0] : result;
|
990
1005
|
}
|
1006
|
+
console.log(
|
1007
|
+
"missing eth call key:",
|
1008
|
+
"setController",
|
1009
|
+
_accessController,
|
1010
|
+
key
|
1011
|
+
);
|
991
1012
|
}
|
992
|
-
console.debug("missing eth call:", "setController", _accessController);
|
993
1013
|
return await this.contract
|
994
1014
|
.getFunction("setController(address)")
|
995
1015
|
.staticCall(_accessController, overrides || {});
|
@@ -1023,8 +1043,8 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
1023
1043
|
.toArray();
|
1024
1044
|
return result.length == 1 ? result[0] : result;
|
1025
1045
|
}
|
1046
|
+
console.log("missing eth call key:", "transferOwnership", _to, key);
|
1026
1047
|
}
|
1027
|
-
console.debug("missing eth call:", "transferOwnership", _to);
|
1028
1048
|
return await this.contract
|
1029
1049
|
.getFunction("transferOwnership(address)")
|
1030
1050
|
.staticCall(_to, overrides || {});
|
@@ -2237,7 +2257,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2237
2257
|
fetchConfig?: Partial<EthFetchConfig>,
|
2238
2258
|
preprocessHandler?: (
|
2239
2259
|
event: AnswerUpdatedEvent,
|
2240
|
-
ctx: EACAggregatorProxyContext
|
2260
|
+
ctx: EACAggregatorProxyContext,
|
2261
|
+
preprocessStore: { [k: string]: any }
|
2241
2262
|
) => Promise<PreprocessResult>
|
2242
2263
|
): this {
|
2243
2264
|
if (!filter) {
|
@@ -2254,7 +2275,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2254
2275
|
fetchConfig?: Partial<EthFetchConfig>,
|
2255
2276
|
preprocessHandler?: (
|
2256
2277
|
event: NewRoundEvent,
|
2257
|
-
ctx: EACAggregatorProxyContext
|
2278
|
+
ctx: EACAggregatorProxyContext,
|
2279
|
+
preprocessStore: { [k: string]: any }
|
2258
2280
|
) => Promise<PreprocessResult>
|
2259
2281
|
): this {
|
2260
2282
|
if (!filter) {
|
@@ -2278,7 +2300,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2278
2300
|
fetchConfig?: Partial<EthFetchConfig>,
|
2279
2301
|
preprocessHandler?: (
|
2280
2302
|
event: OwnershipTransferRequestedEvent,
|
2281
|
-
ctx: EACAggregatorProxyContext
|
2303
|
+
ctx: EACAggregatorProxyContext,
|
2304
|
+
preprocessStore: { [k: string]: any }
|
2282
2305
|
) => Promise<PreprocessResult>
|
2283
2306
|
): this {
|
2284
2307
|
if (!filter) {
|
@@ -2300,7 +2323,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
2300
2323
|
fetchConfig?: Partial<EthFetchConfig>,
|
2301
2324
|
preprocessHandler?: (
|
2302
2325
|
event: OwnershipTransferredEvent,
|
2303
|
-
ctx: EACAggregatorProxyContext
|
2326
|
+
ctx: EACAggregatorProxyContext,
|
2327
|
+
preprocessStore: { [k: string]: any }
|
2304
2328
|
) => Promise<PreprocessResult>
|
2305
2329
|
): this {
|
2306
2330
|
if (!filter) {
|
@@ -2821,7 +2845,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2821
2845
|
fetchConfig?: Partial<EthFetchConfig>,
|
2822
2846
|
preprocessHandler?: (
|
2823
2847
|
event: AnswerUpdatedEvent,
|
2824
|
-
ctx: EACAggregatorProxyContext
|
2848
|
+
ctx: EACAggregatorProxyContext,
|
2849
|
+
preprocessStore: { [k: string]: any }
|
2825
2850
|
) => Promise<PreprocessResult>
|
2826
2851
|
): this {
|
2827
2852
|
if (!filter) {
|
@@ -2838,7 +2863,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2838
2863
|
fetchConfig?: Partial<EthFetchConfig>,
|
2839
2864
|
preprocessHandler?: (
|
2840
2865
|
event: NewRoundEvent,
|
2841
|
-
ctx: EACAggregatorProxyContext
|
2866
|
+
ctx: EACAggregatorProxyContext,
|
2867
|
+
preprocessStore: { [k: string]: any }
|
2842
2868
|
) => Promise<PreprocessResult>
|
2843
2869
|
): this {
|
2844
2870
|
if (!filter) {
|
@@ -2862,7 +2888,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2862
2888
|
fetchConfig?: Partial<EthFetchConfig>,
|
2863
2889
|
preprocessHandler?: (
|
2864
2890
|
event: OwnershipTransferRequestedEvent,
|
2865
|
-
ctx: EACAggregatorProxyContext
|
2891
|
+
ctx: EACAggregatorProxyContext,
|
2892
|
+
preprocessStore: { [k: string]: any }
|
2866
2893
|
) => Promise<PreprocessResult>
|
2867
2894
|
): this {
|
2868
2895
|
if (!filter) {
|
@@ -2884,7 +2911,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
2884
2911
|
fetchConfig?: Partial<EthFetchConfig>,
|
2885
2912
|
preprocessHandler?: (
|
2886
2913
|
event: OwnershipTransferredEvent,
|
2887
|
-
ctx: EACAggregatorProxyContext
|
2914
|
+
ctx: EACAggregatorProxyContext,
|
2915
|
+
preprocessStore: { [k: string]: any }
|
2888
2916
|
) => Promise<PreprocessResult>
|
2889
2917
|
): this {
|
2890
2918
|
if (!filter) {
|