@sentio/sdk 2.40.0-rc.13 → 2.40.0-rc.15
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/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +230 -69
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +80 -24
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +180 -54
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +90 -27
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +140 -42
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +110 -33
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/function-calls.d.ts.map +1 -1
- package/lib/eth/codegen/function-calls.js +7 -2
- package/lib/eth/codegen/function-calls.js.map +1 -1
- package/package.json +3 -3
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +230 -92
- package/src/eth/builtin/internal/erc1155-processor.ts +80 -32
- package/src/eth/builtin/internal/erc20-processor.ts +180 -72
- package/src/eth/builtin/internal/erc20bytes-processor.ts +90 -36
- package/src/eth/builtin/internal/erc721-processor.ts +140 -56
- package/src/eth/builtin/internal/weth9-processor.ts +110 -44
- package/src/eth/codegen/function-calls.ts +7 -2
@@ -214,8 +214,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
214
214
|
context: ethCallContext,
|
215
215
|
calldata,
|
216
216
|
});
|
217
|
+
console.debug("looking up eth call key:", key);
|
217
218
|
const ret = preparedData.ethCallResults[key];
|
218
219
|
if (ret) {
|
220
|
+
console.debug("prepared eth call found:", key);
|
219
221
|
const result = iface
|
220
222
|
.decodeFunctionResult("accessController", ret)
|
221
223
|
.toArray();
|
@@ -246,8 +248,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
246
248
|
context: ethCallContext,
|
247
249
|
calldata,
|
248
250
|
});
|
251
|
+
console.debug("looking up eth call key:", key);
|
249
252
|
const ret = preparedData.ethCallResults[key];
|
250
253
|
if (ret) {
|
254
|
+
console.debug("prepared eth call found:", key);
|
251
255
|
const result = iface
|
252
256
|
.decodeFunctionResult("aggregator", ret)
|
253
257
|
.toArray();
|
@@ -276,8 +280,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
276
280
|
context: ethCallContext,
|
277
281
|
calldata,
|
278
282
|
});
|
283
|
+
console.debug("looking up eth call key:", key);
|
279
284
|
const ret = preparedData.ethCallResults[key];
|
280
285
|
if (ret) {
|
286
|
+
console.debug("prepared eth call found:", key);
|
281
287
|
const result = iface.decodeFunctionResult("decimals", ret).toArray();
|
282
288
|
return result.length == 1 ? result[0] : result;
|
283
289
|
}
|
@@ -304,8 +310,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
304
310
|
context: ethCallContext,
|
305
311
|
calldata,
|
306
312
|
});
|
313
|
+
console.debug("looking up eth call key:", key);
|
307
314
|
const ret = preparedData.ethCallResults[key];
|
308
315
|
if (ret) {
|
316
|
+
console.debug("prepared eth call found:", key);
|
309
317
|
const result = iface
|
310
318
|
.decodeFunctionResult("description", ret)
|
311
319
|
.toArray();
|
@@ -335,8 +343,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
335
343
|
context: ethCallContext,
|
336
344
|
calldata,
|
337
345
|
});
|
346
|
+
console.debug("looking up eth call key:", key);
|
338
347
|
const ret = preparedData.ethCallResults[key];
|
339
348
|
if (ret) {
|
349
|
+
console.debug("prepared eth call found:", key);
|
340
350
|
const result = iface.decodeFunctionResult("getAnswer", ret).toArray();
|
341
351
|
return result.length == 1 ? result[0] : result;
|
342
352
|
}
|
@@ -375,8 +385,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
375
385
|
context: ethCallContext,
|
376
386
|
calldata,
|
377
387
|
});
|
388
|
+
console.debug("looking up eth call key:", key);
|
378
389
|
const ret = preparedData.ethCallResults[key];
|
379
390
|
if (ret) {
|
391
|
+
console.debug("prepared eth call found:", key);
|
380
392
|
const result = iface
|
381
393
|
.decodeFunctionResult("getRoundData", ret)
|
382
394
|
.toArray();
|
@@ -409,8 +421,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
409
421
|
context: ethCallContext,
|
410
422
|
calldata,
|
411
423
|
});
|
424
|
+
console.debug("looking up eth call key:", key);
|
412
425
|
const ret = preparedData.ethCallResults[key];
|
413
426
|
if (ret) {
|
427
|
+
console.debug("prepared eth call found:", key);
|
414
428
|
const result = iface
|
415
429
|
.decodeFunctionResult("getTimestamp", ret)
|
416
430
|
.toArray();
|
@@ -442,8 +456,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
442
456
|
context: ethCallContext,
|
443
457
|
calldata,
|
444
458
|
});
|
459
|
+
console.debug("looking up eth call key:", key);
|
445
460
|
const ret = preparedData.ethCallResults[key];
|
446
461
|
if (ret) {
|
462
|
+
console.debug("prepared eth call found:", key);
|
447
463
|
const result = iface
|
448
464
|
.decodeFunctionResult("latestAnswer", ret)
|
449
465
|
.toArray();
|
@@ -472,8 +488,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
472
488
|
context: ethCallContext,
|
473
489
|
calldata,
|
474
490
|
});
|
491
|
+
console.debug("looking up eth call key:", key);
|
475
492
|
const ret = preparedData.ethCallResults[key];
|
476
493
|
if (ret) {
|
494
|
+
console.debug("prepared eth call found:", key);
|
477
495
|
const result = iface
|
478
496
|
.decodeFunctionResult("latestRound", ret)
|
479
497
|
.toArray();
|
@@ -510,8 +528,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
510
528
|
context: ethCallContext,
|
511
529
|
calldata,
|
512
530
|
});
|
531
|
+
console.debug("looking up eth call key:", key);
|
513
532
|
const ret = preparedData.ethCallResults[key];
|
514
533
|
if (ret) {
|
534
|
+
console.debug("prepared eth call found:", key);
|
515
535
|
const result = iface
|
516
536
|
.decodeFunctionResult("latestRoundData", ret)
|
517
537
|
.toArray();
|
@@ -542,8 +562,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
542
562
|
context: ethCallContext,
|
543
563
|
calldata,
|
544
564
|
});
|
565
|
+
console.debug("looking up eth call key:", key);
|
545
566
|
const ret = preparedData.ethCallResults[key];
|
546
567
|
if (ret) {
|
568
|
+
console.debug("prepared eth call found:", key);
|
547
569
|
const result = iface
|
548
570
|
.decodeFunctionResult("latestTimestamp", ret)
|
549
571
|
.toArray();
|
@@ -574,8 +596,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
574
596
|
context: ethCallContext,
|
575
597
|
calldata,
|
576
598
|
});
|
599
|
+
console.debug("looking up eth call key:", key);
|
577
600
|
const ret = preparedData.ethCallResults[key];
|
578
601
|
if (ret) {
|
602
|
+
console.debug("prepared eth call found:", key);
|
579
603
|
const result = iface.decodeFunctionResult("owner", ret).toArray();
|
580
604
|
return result.length == 1 ? result[0] : result;
|
581
605
|
}
|
@@ -603,8 +627,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
603
627
|
context: ethCallContext,
|
604
628
|
calldata,
|
605
629
|
});
|
630
|
+
console.debug("looking up eth call key:", key);
|
606
631
|
const ret = preparedData.ethCallResults[key];
|
607
632
|
if (ret) {
|
633
|
+
console.debug("prepared eth call found:", key);
|
608
634
|
const result = iface
|
609
635
|
.decodeFunctionResult("phaseAggregators", ret)
|
610
636
|
.toArray();
|
@@ -636,8 +662,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
636
662
|
context: ethCallContext,
|
637
663
|
calldata,
|
638
664
|
});
|
665
|
+
console.debug("looking up eth call key:", key);
|
639
666
|
const ret = preparedData.ethCallResults[key];
|
640
667
|
if (ret) {
|
668
|
+
console.debug("prepared eth call found:", key);
|
641
669
|
const result = iface.decodeFunctionResult("phaseId", ret).toArray();
|
642
670
|
return result.length == 1 ? result[0] : result;
|
643
671
|
}
|
@@ -664,8 +692,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
664
692
|
context: ethCallContext,
|
665
693
|
calldata,
|
666
694
|
});
|
695
|
+
console.debug("looking up eth call key:", key);
|
667
696
|
const ret = preparedData.ethCallResults[key];
|
668
697
|
if (ret) {
|
698
|
+
console.debug("prepared eth call found:", key);
|
669
699
|
const result = iface
|
670
700
|
.decodeFunctionResult("proposedAggregator", ret)
|
671
701
|
.toArray();
|
@@ -707,8 +737,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
707
737
|
context: ethCallContext,
|
708
738
|
calldata,
|
709
739
|
});
|
740
|
+
console.debug("looking up eth call key:", key);
|
710
741
|
const ret = preparedData.ethCallResults[key];
|
711
742
|
if (ret) {
|
743
|
+
console.debug("prepared eth call found:", key);
|
712
744
|
const result = iface
|
713
745
|
.decodeFunctionResult("proposedGetRoundData", ret)
|
714
746
|
.toArray();
|
@@ -751,8 +783,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
751
783
|
context: ethCallContext,
|
752
784
|
calldata,
|
753
785
|
});
|
786
|
+
console.debug("looking up eth call key:", key);
|
754
787
|
const ret = preparedData.ethCallResults[key];
|
755
788
|
if (ret) {
|
789
|
+
console.debug("prepared eth call found:", key);
|
756
790
|
const result = iface
|
757
791
|
.decodeFunctionResult("proposedLatestRoundData", ret)
|
758
792
|
.toArray();
|
@@ -783,8 +817,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
783
817
|
context: ethCallContext,
|
784
818
|
calldata,
|
785
819
|
});
|
820
|
+
console.debug("looking up eth call key:", key);
|
786
821
|
const ret = preparedData.ethCallResults[key];
|
787
822
|
if (ret) {
|
823
|
+
console.debug("prepared eth call found:", key);
|
788
824
|
const result = iface.decodeFunctionResult("version", ret).toArray();
|
789
825
|
return result.length == 1 ? result[0] : result;
|
790
826
|
}
|
@@ -814,8 +850,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
814
850
|
context: ethCallContext,
|
815
851
|
calldata,
|
816
852
|
});
|
853
|
+
console.debug("looking up eth call key:", key);
|
817
854
|
const ret = preparedData.ethCallResults[key];
|
818
855
|
if (ret) {
|
856
|
+
console.debug("prepared eth call found:", key);
|
819
857
|
const result = iface
|
820
858
|
.decodeFunctionResult("acceptOwnership", ret)
|
821
859
|
.toArray();
|
@@ -848,8 +886,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
848
886
|
context: ethCallContext,
|
849
887
|
calldata,
|
850
888
|
});
|
889
|
+
console.debug("looking up eth call key:", key);
|
851
890
|
const ret = preparedData.ethCallResults[key];
|
852
891
|
if (ret) {
|
892
|
+
console.debug("prepared eth call found:", key);
|
853
893
|
const result = iface
|
854
894
|
.decodeFunctionResult("confirmAggregator", ret)
|
855
895
|
.toArray();
|
@@ -882,8 +922,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
882
922
|
context: ethCallContext,
|
883
923
|
calldata,
|
884
924
|
});
|
925
|
+
console.debug("looking up eth call key:", key);
|
885
926
|
const ret = preparedData.ethCallResults[key];
|
886
927
|
if (ret) {
|
928
|
+
console.debug("prepared eth call found:", key);
|
887
929
|
const result = iface
|
888
930
|
.decodeFunctionResult("proposeAggregator", ret)
|
889
931
|
.toArray();
|
@@ -916,8 +958,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
916
958
|
context: ethCallContext,
|
917
959
|
calldata,
|
918
960
|
});
|
961
|
+
console.debug("looking up eth call key:", key);
|
919
962
|
const ret = preparedData.ethCallResults[key];
|
920
963
|
if (ret) {
|
964
|
+
console.debug("prepared eth call found:", key);
|
921
965
|
const result = iface
|
922
966
|
.decodeFunctionResult("setController", ret)
|
923
967
|
.toArray();
|
@@ -948,8 +992,10 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
948
992
|
context: ethCallContext,
|
949
993
|
calldata,
|
950
994
|
});
|
995
|
+
console.debug("looking up eth call key:", key);
|
951
996
|
const ret = preparedData.ethCallResults[key];
|
952
997
|
if (ret) {
|
998
|
+
console.debug("prepared eth call found:", key);
|
953
999
|
const result = iface
|
954
1000
|
.decodeFunctionResult("transferOwnership", ret)
|
955
1001
|
.toArray();
|
@@ -1314,7 +1360,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1314
1360
|
async accessController(overrides?: Overrides): Promise<string> {
|
1315
1361
|
const ethCallContext = {
|
1316
1362
|
chainId: this.context.chainId,
|
1317
|
-
blockTag: this.context.blockNumber.toString(16),
|
1363
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1318
1364
|
address: this.context.address,
|
1319
1365
|
};
|
1320
1366
|
return await this.view.accessController(
|
@@ -1330,7 +1376,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1330
1376
|
async aggregator(overrides?: Overrides): Promise<string> {
|
1331
1377
|
const ethCallContext = {
|
1332
1378
|
chainId: this.context.chainId,
|
1333
|
-
blockTag: this.context.blockNumber.toString(16),
|
1379
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1334
1380
|
address: this.context.address,
|
1335
1381
|
};
|
1336
1382
|
return await this.view.aggregator(
|
@@ -1346,7 +1392,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1346
1392
|
async decimals(overrides?: Overrides): Promise<bigint> {
|
1347
1393
|
const ethCallContext = {
|
1348
1394
|
chainId: this.context.chainId,
|
1349
|
-
blockTag: this.context.blockNumber.toString(16),
|
1395
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1350
1396
|
address: this.context.address,
|
1351
1397
|
};
|
1352
1398
|
return await this.view.decimals(
|
@@ -1362,7 +1408,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1362
1408
|
async description(overrides?: Overrides): Promise<string> {
|
1363
1409
|
const ethCallContext = {
|
1364
1410
|
chainId: this.context.chainId,
|
1365
|
-
blockTag: this.context.blockNumber.toString(16),
|
1411
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1366
1412
|
address: this.context.address,
|
1367
1413
|
};
|
1368
1414
|
return await this.view.description(
|
@@ -1381,7 +1427,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1381
1427
|
): Promise<bigint> {
|
1382
1428
|
const ethCallContext = {
|
1383
1429
|
chainId: this.context.chainId,
|
1384
|
-
blockTag: this.context.blockNumber.toString(16),
|
1430
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1385
1431
|
address: this.context.address,
|
1386
1432
|
};
|
1387
1433
|
return await this.view.getAnswer(
|
@@ -1409,7 +1455,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1409
1455
|
> {
|
1410
1456
|
const ethCallContext = {
|
1411
1457
|
chainId: this.context.chainId,
|
1412
|
-
blockTag: this.context.blockNumber.toString(16),
|
1458
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1413
1459
|
address: this.context.address,
|
1414
1460
|
};
|
1415
1461
|
return await this.view.getRoundData(
|
@@ -1429,7 +1475,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1429
1475
|
): Promise<bigint> {
|
1430
1476
|
const ethCallContext = {
|
1431
1477
|
chainId: this.context.chainId,
|
1432
|
-
blockTag: this.context.blockNumber.toString(16),
|
1478
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1433
1479
|
address: this.context.address,
|
1434
1480
|
};
|
1435
1481
|
return await this.view.getTimestamp(
|
@@ -1446,7 +1492,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1446
1492
|
async latestAnswer(overrides?: Overrides): Promise<bigint> {
|
1447
1493
|
const ethCallContext = {
|
1448
1494
|
chainId: this.context.chainId,
|
1449
|
-
blockTag: this.context.blockNumber.toString(16),
|
1495
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1450
1496
|
address: this.context.address,
|
1451
1497
|
};
|
1452
1498
|
return await this.view.latestAnswer(
|
@@ -1462,7 +1508,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1462
1508
|
async latestRound(overrides?: Overrides): Promise<bigint> {
|
1463
1509
|
const ethCallContext = {
|
1464
1510
|
chainId: this.context.chainId,
|
1465
|
-
blockTag: this.context.blockNumber.toString(16),
|
1511
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1466
1512
|
address: this.context.address,
|
1467
1513
|
};
|
1468
1514
|
return await this.view.latestRound(
|
@@ -1488,7 +1534,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1488
1534
|
> {
|
1489
1535
|
const ethCallContext = {
|
1490
1536
|
chainId: this.context.chainId,
|
1491
|
-
blockTag: this.context.blockNumber.toString(16),
|
1537
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1492
1538
|
address: this.context.address,
|
1493
1539
|
};
|
1494
1540
|
return await this.view.latestRoundData(
|
@@ -1504,7 +1550,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1504
1550
|
async latestTimestamp(overrides?: Overrides): Promise<bigint> {
|
1505
1551
|
const ethCallContext = {
|
1506
1552
|
chainId: this.context.chainId,
|
1507
|
-
blockTag: this.context.blockNumber.toString(16),
|
1553
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1508
1554
|
address: this.context.address,
|
1509
1555
|
};
|
1510
1556
|
return await this.view.latestTimestamp(
|
@@ -1520,7 +1566,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1520
1566
|
async owner(overrides?: Overrides): Promise<string> {
|
1521
1567
|
const ethCallContext = {
|
1522
1568
|
chainId: this.context.chainId,
|
1523
|
-
blockTag: this.context.blockNumber.toString(16),
|
1569
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1524
1570
|
address: this.context.address,
|
1525
1571
|
};
|
1526
1572
|
return await this.view.owner(
|
@@ -1539,7 +1585,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1539
1585
|
): Promise<string> {
|
1540
1586
|
const ethCallContext = {
|
1541
1587
|
chainId: this.context.chainId,
|
1542
|
-
blockTag: this.context.blockNumber.toString(16),
|
1588
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1543
1589
|
address: this.context.address,
|
1544
1590
|
};
|
1545
1591
|
return await this.view.phaseAggregators(
|
@@ -1556,7 +1602,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1556
1602
|
async phaseId(overrides?: Overrides): Promise<bigint> {
|
1557
1603
|
const ethCallContext = {
|
1558
1604
|
chainId: this.context.chainId,
|
1559
|
-
blockTag: this.context.blockNumber.toString(16),
|
1605
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1560
1606
|
address: this.context.address,
|
1561
1607
|
};
|
1562
1608
|
return await this.view.phaseId(
|
@@ -1572,7 +1618,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1572
1618
|
async proposedAggregator(overrides?: Overrides): Promise<string> {
|
1573
1619
|
const ethCallContext = {
|
1574
1620
|
chainId: this.context.chainId,
|
1575
|
-
blockTag: this.context.blockNumber.toString(16),
|
1621
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1576
1622
|
address: this.context.address,
|
1577
1623
|
};
|
1578
1624
|
return await this.view.proposedAggregator(
|
@@ -1599,7 +1645,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1599
1645
|
> {
|
1600
1646
|
const ethCallContext = {
|
1601
1647
|
chainId: this.context.chainId,
|
1602
|
-
blockTag: this.context.blockNumber.toString(16),
|
1648
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1603
1649
|
address: this.context.address,
|
1604
1650
|
};
|
1605
1651
|
return await this.view.proposedGetRoundData(
|
@@ -1626,7 +1672,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1626
1672
|
> {
|
1627
1673
|
const ethCallContext = {
|
1628
1674
|
chainId: this.context.chainId,
|
1629
|
-
blockTag: this.context.blockNumber.toString(16),
|
1675
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1630
1676
|
address: this.context.address,
|
1631
1677
|
};
|
1632
1678
|
return await this.view.proposedLatestRoundData(
|
@@ -1642,7 +1688,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1642
1688
|
async version(overrides?: Overrides): Promise<bigint> {
|
1643
1689
|
const ethCallContext = {
|
1644
1690
|
chainId: this.context.chainId,
|
1645
|
-
blockTag: this.context.blockNumber.toString(16),
|
1691
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1646
1692
|
address: this.context.address,
|
1647
1693
|
};
|
1648
1694
|
return await this.view.version(
|
@@ -1662,7 +1708,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1662
1708
|
async acceptOwnership(overrides?: Overrides): Promise<void> {
|
1663
1709
|
const ethCallContext = {
|
1664
1710
|
chainId: this.context.chainId,
|
1665
|
-
blockTag: this.context.blockNumber.toString(16),
|
1711
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1666
1712
|
address: this.context.address,
|
1667
1713
|
};
|
1668
1714
|
return await this.view.callStatic.acceptOwnership(
|
@@ -1680,7 +1726,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1680
1726
|
): Promise<void> {
|
1681
1727
|
const ethCallContext = {
|
1682
1728
|
chainId: this.context.chainId,
|
1683
|
-
blockTag: this.context.blockNumber.toString(16),
|
1729
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1684
1730
|
address: this.context.address,
|
1685
1731
|
};
|
1686
1732
|
return await this.view.callStatic.confirmAggregator(
|
@@ -1699,7 +1745,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1699
1745
|
): Promise<void> {
|
1700
1746
|
const ethCallContext = {
|
1701
1747
|
chainId: this.context.chainId,
|
1702
|
-
blockTag: this.context.blockNumber.toString(16),
|
1748
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1703
1749
|
address: this.context.address,
|
1704
1750
|
};
|
1705
1751
|
return await this.view.callStatic.proposeAggregator(
|
@@ -1718,7 +1764,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1718
1764
|
): Promise<void> {
|
1719
1765
|
const ethCallContext = {
|
1720
1766
|
chainId: this.context.chainId,
|
1721
|
-
blockTag: this.context.blockNumber.toString(16),
|
1767
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1722
1768
|
address: this.context.address,
|
1723
1769
|
};
|
1724
1770
|
return await this.view.callStatic.setController(
|
@@ -1734,7 +1780,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1734
1780
|
async transferOwnership(_to: string, overrides?: Overrides): Promise<void> {
|
1735
1781
|
const ethCallContext = {
|
1736
1782
|
chainId: this.context.chainId,
|
1737
|
-
blockTag: this.context.blockNumber.toString(16),
|
1783
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1738
1784
|
address: this.context.address,
|
1739
1785
|
};
|
1740
1786
|
return await this.view.callStatic.transferOwnership(
|
@@ -1756,10 +1802,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1756
1802
|
acceptOwnership(overrides?: Overrides): EthCallParam {
|
1757
1803
|
const chainId =
|
1758
1804
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1759
|
-
const blockTag =
|
1760
|
-
overrides?.blockTag?.toString() ??
|
1761
|
-
this.context.blockNumber.toString(16);
|
1762
1805
|
const address = this.context.address;
|
1806
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1807
|
+
if (overrides?.blockTag) {
|
1808
|
+
blockTag =
|
1809
|
+
typeof overrides.blockTag == "string"
|
1810
|
+
? overrides.blockTag
|
1811
|
+
: "0x" + overrides.blockTag.toString(16);
|
1812
|
+
}
|
1763
1813
|
|
1764
1814
|
return this.view.encodeCall.acceptOwnership({
|
1765
1815
|
chainId,
|
@@ -1770,10 +1820,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1770
1820
|
accessController(overrides?: Overrides): EthCallParam {
|
1771
1821
|
const chainId =
|
1772
1822
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1773
|
-
const blockTag =
|
1774
|
-
overrides?.blockTag?.toString() ??
|
1775
|
-
this.context.blockNumber.toString(16);
|
1776
1823
|
const address = this.context.address;
|
1824
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1825
|
+
if (overrides?.blockTag) {
|
1826
|
+
blockTag =
|
1827
|
+
typeof overrides.blockTag == "string"
|
1828
|
+
? overrides.blockTag
|
1829
|
+
: "0x" + overrides.blockTag.toString(16);
|
1830
|
+
}
|
1777
1831
|
|
1778
1832
|
return this.view.encodeCall.accessController({
|
1779
1833
|
chainId,
|
@@ -1784,10 +1838,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1784
1838
|
aggregator(overrides?: Overrides): EthCallParam {
|
1785
1839
|
const chainId =
|
1786
1840
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1787
|
-
const blockTag =
|
1788
|
-
overrides?.blockTag?.toString() ??
|
1789
|
-
this.context.blockNumber.toString(16);
|
1790
1841
|
const address = this.context.address;
|
1842
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1843
|
+
if (overrides?.blockTag) {
|
1844
|
+
blockTag =
|
1845
|
+
typeof overrides.blockTag == "string"
|
1846
|
+
? overrides.blockTag
|
1847
|
+
: "0x" + overrides.blockTag.toString(16);
|
1848
|
+
}
|
1791
1849
|
|
1792
1850
|
return this.view.encodeCall.aggregator({ chainId, address, blockTag });
|
1793
1851
|
},
|
@@ -1797,10 +1855,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1797
1855
|
): EthCallParam {
|
1798
1856
|
const chainId =
|
1799
1857
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1800
|
-
const blockTag =
|
1801
|
-
overrides?.blockTag?.toString() ??
|
1802
|
-
this.context.blockNumber.toString(16);
|
1803
1858
|
const address = this.context.address;
|
1859
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1860
|
+
if (overrides?.blockTag) {
|
1861
|
+
blockTag =
|
1862
|
+
typeof overrides.blockTag == "string"
|
1863
|
+
? overrides.blockTag
|
1864
|
+
: "0x" + overrides.blockTag.toString(16);
|
1865
|
+
}
|
1804
1866
|
|
1805
1867
|
return this.view.encodeCall.confirmAggregator(_aggregator, {
|
1806
1868
|
chainId,
|
@@ -1811,30 +1873,42 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1811
1873
|
decimals(overrides?: Overrides): EthCallParam {
|
1812
1874
|
const chainId =
|
1813
1875
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1814
|
-
const blockTag =
|
1815
|
-
overrides?.blockTag?.toString() ??
|
1816
|
-
this.context.blockNumber.toString(16);
|
1817
1876
|
const address = this.context.address;
|
1877
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1878
|
+
if (overrides?.blockTag) {
|
1879
|
+
blockTag =
|
1880
|
+
typeof overrides.blockTag == "string"
|
1881
|
+
? overrides.blockTag
|
1882
|
+
: "0x" + overrides.blockTag.toString(16);
|
1883
|
+
}
|
1818
1884
|
|
1819
1885
|
return this.view.encodeCall.decimals({ chainId, address, blockTag });
|
1820
1886
|
},
|
1821
1887
|
description(overrides?: Overrides): EthCallParam {
|
1822
1888
|
const chainId =
|
1823
1889
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1824
|
-
const blockTag =
|
1825
|
-
overrides?.blockTag?.toString() ??
|
1826
|
-
this.context.blockNumber.toString(16);
|
1827
1890
|
const address = this.context.address;
|
1891
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1892
|
+
if (overrides?.blockTag) {
|
1893
|
+
blockTag =
|
1894
|
+
typeof overrides.blockTag == "string"
|
1895
|
+
? overrides.blockTag
|
1896
|
+
: "0x" + overrides.blockTag.toString(16);
|
1897
|
+
}
|
1828
1898
|
|
1829
1899
|
return this.view.encodeCall.description({ chainId, address, blockTag });
|
1830
1900
|
},
|
1831
1901
|
getAnswer(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1832
1902
|
const chainId =
|
1833
1903
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1834
|
-
const blockTag =
|
1835
|
-
overrides?.blockTag?.toString() ??
|
1836
|
-
this.context.blockNumber.toString(16);
|
1837
1904
|
const address = this.context.address;
|
1905
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1906
|
+
if (overrides?.blockTag) {
|
1907
|
+
blockTag =
|
1908
|
+
typeof overrides.blockTag == "string"
|
1909
|
+
? overrides.blockTag
|
1910
|
+
: "0x" + overrides.blockTag.toString(16);
|
1911
|
+
}
|
1838
1912
|
|
1839
1913
|
return this.view.encodeCall.getAnswer(_roundId, {
|
1840
1914
|
chainId,
|
@@ -1845,10 +1919,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1845
1919
|
getRoundData(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1846
1920
|
const chainId =
|
1847
1921
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1848
|
-
const blockTag =
|
1849
|
-
overrides?.blockTag?.toString() ??
|
1850
|
-
this.context.blockNumber.toString(16);
|
1851
1922
|
const address = this.context.address;
|
1923
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1924
|
+
if (overrides?.blockTag) {
|
1925
|
+
blockTag =
|
1926
|
+
typeof overrides.blockTag == "string"
|
1927
|
+
? overrides.blockTag
|
1928
|
+
: "0x" + overrides.blockTag.toString(16);
|
1929
|
+
}
|
1852
1930
|
|
1853
1931
|
return this.view.encodeCall.getRoundData(_roundId, {
|
1854
1932
|
chainId,
|
@@ -1859,10 +1937,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1859
1937
|
getTimestamp(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1860
1938
|
const chainId =
|
1861
1939
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1862
|
-
const blockTag =
|
1863
|
-
overrides?.blockTag?.toString() ??
|
1864
|
-
this.context.blockNumber.toString(16);
|
1865
1940
|
const address = this.context.address;
|
1941
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1942
|
+
if (overrides?.blockTag) {
|
1943
|
+
blockTag =
|
1944
|
+
typeof overrides.blockTag == "string"
|
1945
|
+
? overrides.blockTag
|
1946
|
+
: "0x" + overrides.blockTag.toString(16);
|
1947
|
+
}
|
1866
1948
|
|
1867
1949
|
return this.view.encodeCall.getTimestamp(_roundId, {
|
1868
1950
|
chainId,
|
@@ -1873,30 +1955,42 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1873
1955
|
latestAnswer(overrides?: Overrides): EthCallParam {
|
1874
1956
|
const chainId =
|
1875
1957
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1876
|
-
const blockTag =
|
1877
|
-
overrides?.blockTag?.toString() ??
|
1878
|
-
this.context.blockNumber.toString(16);
|
1879
1958
|
const address = this.context.address;
|
1959
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1960
|
+
if (overrides?.blockTag) {
|
1961
|
+
blockTag =
|
1962
|
+
typeof overrides.blockTag == "string"
|
1963
|
+
? overrides.blockTag
|
1964
|
+
: "0x" + overrides.blockTag.toString(16);
|
1965
|
+
}
|
1880
1966
|
|
1881
1967
|
return this.view.encodeCall.latestAnswer({ chainId, address, blockTag });
|
1882
1968
|
},
|
1883
1969
|
latestRound(overrides?: Overrides): EthCallParam {
|
1884
1970
|
const chainId =
|
1885
1971
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1886
|
-
const blockTag =
|
1887
|
-
overrides?.blockTag?.toString() ??
|
1888
|
-
this.context.blockNumber.toString(16);
|
1889
1972
|
const address = this.context.address;
|
1973
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1974
|
+
if (overrides?.blockTag) {
|
1975
|
+
blockTag =
|
1976
|
+
typeof overrides.blockTag == "string"
|
1977
|
+
? overrides.blockTag
|
1978
|
+
: "0x" + overrides.blockTag.toString(16);
|
1979
|
+
}
|
1890
1980
|
|
1891
1981
|
return this.view.encodeCall.latestRound({ chainId, address, blockTag });
|
1892
1982
|
},
|
1893
1983
|
latestRoundData(overrides?: Overrides): EthCallParam {
|
1894
1984
|
const chainId =
|
1895
1985
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1896
|
-
const blockTag =
|
1897
|
-
overrides?.blockTag?.toString() ??
|
1898
|
-
this.context.blockNumber.toString(16);
|
1899
1986
|
const address = this.context.address;
|
1987
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1988
|
+
if (overrides?.blockTag) {
|
1989
|
+
blockTag =
|
1990
|
+
typeof overrides.blockTag == "string"
|
1991
|
+
? overrides.blockTag
|
1992
|
+
: "0x" + overrides.blockTag.toString(16);
|
1993
|
+
}
|
1900
1994
|
|
1901
1995
|
return this.view.encodeCall.latestRoundData({
|
1902
1996
|
chainId,
|
@@ -1907,10 +2001,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1907
2001
|
latestTimestamp(overrides?: Overrides): EthCallParam {
|
1908
2002
|
const chainId =
|
1909
2003
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1910
|
-
const blockTag =
|
1911
|
-
overrides?.blockTag?.toString() ??
|
1912
|
-
this.context.blockNumber.toString(16);
|
1913
2004
|
const address = this.context.address;
|
2005
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2006
|
+
if (overrides?.blockTag) {
|
2007
|
+
blockTag =
|
2008
|
+
typeof overrides.blockTag == "string"
|
2009
|
+
? overrides.blockTag
|
2010
|
+
: "0x" + overrides.blockTag.toString(16);
|
2011
|
+
}
|
1914
2012
|
|
1915
2013
|
return this.view.encodeCall.latestTimestamp({
|
1916
2014
|
chainId,
|
@@ -1921,20 +2019,28 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1921
2019
|
owner(overrides?: Overrides): EthCallParam {
|
1922
2020
|
const chainId =
|
1923
2021
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1924
|
-
const blockTag =
|
1925
|
-
overrides?.blockTag?.toString() ??
|
1926
|
-
this.context.blockNumber.toString(16);
|
1927
2022
|
const address = this.context.address;
|
2023
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2024
|
+
if (overrides?.blockTag) {
|
2025
|
+
blockTag =
|
2026
|
+
typeof overrides.blockTag == "string"
|
2027
|
+
? overrides.blockTag
|
2028
|
+
: "0x" + overrides.blockTag.toString(16);
|
2029
|
+
}
|
1928
2030
|
|
1929
2031
|
return this.view.encodeCall.owner({ chainId, address, blockTag });
|
1930
2032
|
},
|
1931
2033
|
phaseAggregators(arg0: BigNumberish, overrides?: Overrides): EthCallParam {
|
1932
2034
|
const chainId =
|
1933
2035
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1934
|
-
const blockTag =
|
1935
|
-
overrides?.blockTag?.toString() ??
|
1936
|
-
this.context.blockNumber.toString(16);
|
1937
2036
|
const address = this.context.address;
|
2037
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2038
|
+
if (overrides?.blockTag) {
|
2039
|
+
blockTag =
|
2040
|
+
typeof overrides.blockTag == "string"
|
2041
|
+
? overrides.blockTag
|
2042
|
+
: "0x" + overrides.blockTag.toString(16);
|
2043
|
+
}
|
1938
2044
|
|
1939
2045
|
return this.view.encodeCall.phaseAggregators(arg0, {
|
1940
2046
|
chainId,
|
@@ -1945,10 +2051,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1945
2051
|
phaseId(overrides?: Overrides): EthCallParam {
|
1946
2052
|
const chainId =
|
1947
2053
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1948
|
-
const blockTag =
|
1949
|
-
overrides?.blockTag?.toString() ??
|
1950
|
-
this.context.blockNumber.toString(16);
|
1951
2054
|
const address = this.context.address;
|
2055
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2056
|
+
if (overrides?.blockTag) {
|
2057
|
+
blockTag =
|
2058
|
+
typeof overrides.blockTag == "string"
|
2059
|
+
? overrides.blockTag
|
2060
|
+
: "0x" + overrides.blockTag.toString(16);
|
2061
|
+
}
|
1952
2062
|
|
1953
2063
|
return this.view.encodeCall.phaseId({ chainId, address, blockTag });
|
1954
2064
|
},
|
@@ -1958,10 +2068,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1958
2068
|
): EthCallParam {
|
1959
2069
|
const chainId =
|
1960
2070
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1961
|
-
const blockTag =
|
1962
|
-
overrides?.blockTag?.toString() ??
|
1963
|
-
this.context.blockNumber.toString(16);
|
1964
2071
|
const address = this.context.address;
|
2072
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2073
|
+
if (overrides?.blockTag) {
|
2074
|
+
blockTag =
|
2075
|
+
typeof overrides.blockTag == "string"
|
2076
|
+
? overrides.blockTag
|
2077
|
+
: "0x" + overrides.blockTag.toString(16);
|
2078
|
+
}
|
1965
2079
|
|
1966
2080
|
return this.view.encodeCall.proposeAggregator(_aggregator, {
|
1967
2081
|
chainId,
|
@@ -1972,10 +2086,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1972
2086
|
proposedAggregator(overrides?: Overrides): EthCallParam {
|
1973
2087
|
const chainId =
|
1974
2088
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1975
|
-
const blockTag =
|
1976
|
-
overrides?.blockTag?.toString() ??
|
1977
|
-
this.context.blockNumber.toString(16);
|
1978
2089
|
const address = this.context.address;
|
2090
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2091
|
+
if (overrides?.blockTag) {
|
2092
|
+
blockTag =
|
2093
|
+
typeof overrides.blockTag == "string"
|
2094
|
+
? overrides.blockTag
|
2095
|
+
: "0x" + overrides.blockTag.toString(16);
|
2096
|
+
}
|
1979
2097
|
|
1980
2098
|
return this.view.encodeCall.proposedAggregator({
|
1981
2099
|
chainId,
|
@@ -1989,10 +2107,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
1989
2107
|
): EthCallParam {
|
1990
2108
|
const chainId =
|
1991
2109
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1992
|
-
const blockTag =
|
1993
|
-
overrides?.blockTag?.toString() ??
|
1994
|
-
this.context.blockNumber.toString(16);
|
1995
2110
|
const address = this.context.address;
|
2111
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2112
|
+
if (overrides?.blockTag) {
|
2113
|
+
blockTag =
|
2114
|
+
typeof overrides.blockTag == "string"
|
2115
|
+
? overrides.blockTag
|
2116
|
+
: "0x" + overrides.blockTag.toString(16);
|
2117
|
+
}
|
1996
2118
|
|
1997
2119
|
return this.view.encodeCall.proposedGetRoundData(_roundId, {
|
1998
2120
|
chainId,
|
@@ -2003,10 +2125,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
2003
2125
|
proposedLatestRoundData(overrides?: Overrides): EthCallParam {
|
2004
2126
|
const chainId =
|
2005
2127
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2006
|
-
const blockTag =
|
2007
|
-
overrides?.blockTag?.toString() ??
|
2008
|
-
this.context.blockNumber.toString(16);
|
2009
2128
|
const address = this.context.address;
|
2129
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2130
|
+
if (overrides?.blockTag) {
|
2131
|
+
blockTag =
|
2132
|
+
typeof overrides.blockTag == "string"
|
2133
|
+
? overrides.blockTag
|
2134
|
+
: "0x" + overrides.blockTag.toString(16);
|
2135
|
+
}
|
2010
2136
|
|
2011
2137
|
return this.view.encodeCall.proposedLatestRoundData({
|
2012
2138
|
chainId,
|
@@ -2020,10 +2146,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
2020
2146
|
): EthCallParam {
|
2021
2147
|
const chainId =
|
2022
2148
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2023
|
-
const blockTag =
|
2024
|
-
overrides?.blockTag?.toString() ??
|
2025
|
-
this.context.blockNumber.toString(16);
|
2026
2149
|
const address = this.context.address;
|
2150
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2151
|
+
if (overrides?.blockTag) {
|
2152
|
+
blockTag =
|
2153
|
+
typeof overrides.blockTag == "string"
|
2154
|
+
? overrides.blockTag
|
2155
|
+
: "0x" + overrides.blockTag.toString(16);
|
2156
|
+
}
|
2027
2157
|
|
2028
2158
|
return this.view.encodeCall.setController(_accessController, {
|
2029
2159
|
chainId,
|
@@ -2034,10 +2164,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
2034
2164
|
transferOwnership(_to: string, overrides?: Overrides): EthCallParam {
|
2035
2165
|
const chainId =
|
2036
2166
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2037
|
-
const blockTag =
|
2038
|
-
overrides?.blockTag?.toString() ??
|
2039
|
-
this.context.blockNumber.toString(16);
|
2040
2167
|
const address = this.context.address;
|
2168
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2169
|
+
if (overrides?.blockTag) {
|
2170
|
+
blockTag =
|
2171
|
+
typeof overrides.blockTag == "string"
|
2172
|
+
? overrides.blockTag
|
2173
|
+
: "0x" + overrides.blockTag.toString(16);
|
2174
|
+
}
|
2041
2175
|
|
2042
2176
|
return this.view.encodeCall.transferOwnership(_to, {
|
2043
2177
|
chainId,
|
@@ -2048,10 +2182,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
2048
2182
|
version(overrides?: Overrides): EthCallParam {
|
2049
2183
|
const chainId =
|
2050
2184
|
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2051
|
-
const blockTag =
|
2052
|
-
overrides?.blockTag?.toString() ??
|
2053
|
-
this.context.blockNumber.toString(16);
|
2054
2185
|
const address = this.context.address;
|
2186
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2187
|
+
if (overrides?.blockTag) {
|
2188
|
+
blockTag =
|
2189
|
+
typeof overrides.blockTag == "string"
|
2190
|
+
? overrides.blockTag
|
2191
|
+
: "0x" + overrides.blockTag.toString(16);
|
2192
|
+
}
|
2055
2193
|
|
2056
2194
|
return this.view.encodeCall.version({ chainId, address, blockTag });
|
2057
2195
|
},
|