@sentio/sdk 2.45.2 → 2.45.3-rc.2

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.
Files changed (89) hide show
  1. package/lib/aptos/builtin/0x1.d.ts +2 -2
  2. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  3. package/lib/aptos/builtin/0x1.js +1 -2
  4. package/lib/aptos/builtin/0x1.js.map +1 -1
  5. package/lib/aptos/builtin/0x3.d.ts +2 -2
  6. package/lib/aptos/builtin/0x3.d.ts.map +1 -1
  7. package/lib/aptos/builtin/0x3.js +1 -2
  8. package/lib/aptos/builtin/0x3.js.map +1 -1
  9. package/lib/aptos/builtin/0x4.d.ts +2 -2
  10. package/lib/aptos/builtin/0x4.d.ts.map +1 -1
  11. package/lib/aptos/builtin/0x4.js +1 -2
  12. package/lib/aptos/builtin/0x4.js.map +1 -1
  13. package/lib/aptos/codegen/codegen.js +7 -1
  14. package/lib/aptos/codegen/codegen.js.map +1 -1
  15. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +23 -23
  16. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
  17. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +93 -659
  18. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
  19. package/lib/eth/builtin/internal/erc1155-processor.d.ts +8 -8
  20. package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
  21. package/lib/eth/builtin/internal/erc1155-processor.js +33 -264
  22. package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
  23. package/lib/eth/builtin/internal/erc20-processor.d.ts +18 -18
  24. package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
  25. package/lib/eth/builtin/internal/erc20-processor.js +75 -538
  26. package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
  27. package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +9 -9
  28. package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
  29. package/lib/eth/builtin/internal/erc20bytes-processor.js +37 -268
  30. package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
  31. package/lib/eth/builtin/internal/erc721-processor.d.ts +14 -14
  32. package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
  33. package/lib/eth/builtin/internal/erc721-processor.js +57 -430
  34. package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
  35. package/lib/eth/builtin/internal/weth9-processor.d.ts +11 -11
  36. package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
  37. package/lib/eth/builtin/internal/weth9-processor.js +45 -321
  38. package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
  39. package/lib/eth/codegen/file.d.ts.map +1 -1
  40. package/lib/eth/codegen/file.js +3 -6
  41. package/lib/eth/codegen/file.js.map +1 -1
  42. package/lib/eth/codegen/function-calls.d.ts.map +1 -1
  43. package/lib/eth/codegen/function-calls.js +5 -27
  44. package/lib/eth/codegen/function-calls.js.map +1 -1
  45. package/lib/eth/context.d.ts +4 -2
  46. package/lib/eth/context.d.ts.map +1 -1
  47. package/lib/eth/context.js +15 -0
  48. package/lib/eth/context.js.map +1 -1
  49. package/lib/eth/eth.d.ts +2 -0
  50. package/lib/eth/eth.d.ts.map +1 -1
  51. package/lib/eth/eth.js +15 -1
  52. package/lib/eth/eth.js.map +1 -1
  53. package/lib/move/shared-network-codegen.d.ts.map +1 -1
  54. package/lib/move/shared-network-codegen.js +2 -3
  55. package/lib/move/shared-network-codegen.js.map +1 -1
  56. package/lib/sui/builtin/0x1.d.ts +751 -12
  57. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  58. package/lib/sui/builtin/0x1.js +3857 -0
  59. package/lib/sui/builtin/0x1.js.map +1 -1
  60. package/lib/sui/builtin/0x2.d.ts +3876 -14
  61. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  62. package/lib/sui/builtin/0x2.js +14389 -188
  63. package/lib/sui/builtin/0x2.js.map +1 -1
  64. package/lib/sui/builtin/0x3.d.ts +1923 -0
  65. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  66. package/lib/sui/builtin/0x3.js +5425 -0
  67. package/lib/sui/builtin/0x3.js.map +1 -1
  68. package/lib/sui/codegen/codegen.js +5 -1
  69. package/lib/sui/codegen/codegen.js.map +1 -1
  70. package/package.json +6 -6
  71. package/src/aptos/builtin/0x1.ts +5 -5
  72. package/src/aptos/builtin/0x3.ts +5 -5
  73. package/src/aptos/builtin/0x4.ts +5 -5
  74. package/src/aptos/codegen/codegen.ts +7 -1
  75. package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +189 -662
  76. package/src/eth/builtin/internal/erc1155-processor.ts +69 -261
  77. package/src/eth/builtin/internal/erc20-processor.ts +136 -535
  78. package/src/eth/builtin/internal/erc20bytes-processor.ts +68 -265
  79. package/src/eth/builtin/internal/erc721-processor.ts +118 -433
  80. package/src/eth/builtin/internal/weth9-processor.ts +81 -318
  81. package/src/eth/codegen/file.ts +2 -6
  82. package/src/eth/codegen/function-calls.ts +7 -29
  83. package/src/eth/context.ts +19 -2
  84. package/src/eth/eth.ts +21 -1
  85. package/src/move/shared-network-codegen.ts +1 -4
  86. package/src/sui/builtin/0x1.ts +5590 -19
  87. package/src/sui/builtin/0x2.ts +21779 -92
  88. package/src/sui/builtin/0x3.ts +8825 -15
  89. package/src/sui/codegen/codegen.ts +6 -1
@@ -1,35 +1,6 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import { Interface } from "ethers";
5
- import { addContractByABI, getContractByABI, addProcessor, getProcessor, getProvider, transformEtherError, BaseProcessor, BaseProcessorTemplate, BoundContractView, ContractView, DummyProvider, } from "@sentio/sdk/eth";
1
+ import { addContractByABI, getContractByABI, addProcessor, getProcessor, getProvider, transformEtherError, BaseProcessor, BaseProcessorTemplate, BoundContractView, ContractView, DummyProvider, encodeCallData, } from "@sentio/sdk/eth";
6
2
  import { EACAggregatorProxy__factory } from "./index.js";
7
3
  const templateContract = EACAggregatorProxy__factory.connect("0x0", DummyProvider);
8
- const iface = new Interface([
9
- "function acceptOwnership() returns ()",
10
- "function accessController() view returns (address)",
11
- "function aggregator() view returns (address)",
12
- "function confirmAggregator(address _aggregator) returns ()",
13
- "function decimals() view returns (uint8)",
14
- "function description() view returns (string)",
15
- "function getAnswer(uint256 _roundId) view returns (int256)",
16
- "function getRoundData(uint80 _roundId) view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
17
- "function getTimestamp(uint256 _roundId) view returns (uint256)",
18
- "function latestAnswer() view returns (int256)",
19
- "function latestRound() view returns (uint256)",
20
- "function latestRoundData() view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
21
- "function latestTimestamp() view returns (uint256)",
22
- "function owner() view returns (address)",
23
- "function phaseAggregators(uint16) view returns (address)",
24
- "function phaseId() view returns (uint16)",
25
- "function proposeAggregator(address _aggregator) returns ()",
26
- "function proposedAggregator() view returns (address)",
27
- "function proposedGetRoundData(uint80 _roundId) view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
28
- "function proposedLatestRoundData() view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
29
- "function setController(address _accessController) returns ()",
30
- "function transferOwnership(address _to) returns ()",
31
- "function version() view returns (uint256)",
32
- ]);
33
4
  export class EACAggregatorProxyContractView extends ContractView {
34
5
  constructor(contract) {
35
6
  super(contract);
@@ -256,919 +227,382 @@ export class EACAggregatorProxyContractView extends ContractView {
256
227
  },
257
228
  };
258
229
  encodeCall = {
259
- acceptOwnership(ethCallContext) {
260
- try {
261
- const iface = new Interface(["function acceptOwnership()"]);
262
- const calldata = iface.encodeFunctionData("acceptOwnership", []);
263
- return {
264
- context: ethCallContext,
265
- calldata,
266
- };
267
- }
268
- catch (e) {
269
- const stack = new Error().stack;
270
- throw transformEtherError(e, undefined, stack);
271
- }
230
+ acceptOwnership(callContext) {
231
+ return encodeCallData(callContext, "acceptOwnership", "function acceptOwnership()", []);
272
232
  },
273
- accessController(ethCallContext) {
274
- try {
275
- const iface = new Interface(["function accessController()"]);
276
- const calldata = iface.encodeFunctionData("accessController", []);
277
- return {
278
- context: ethCallContext,
279
- calldata,
280
- };
281
- }
282
- catch (e) {
283
- const stack = new Error().stack;
284
- throw transformEtherError(e, undefined, stack);
285
- }
233
+ accessController(callContext) {
234
+ return encodeCallData(callContext, "accessController", "function accessController()", []);
286
235
  },
287
- aggregator(ethCallContext) {
288
- try {
289
- const iface = new Interface(["function aggregator()"]);
290
- const calldata = iface.encodeFunctionData("aggregator", []);
291
- return {
292
- context: ethCallContext,
293
- calldata,
294
- };
295
- }
296
- catch (e) {
297
- const stack = new Error().stack;
298
- throw transformEtherError(e, undefined, stack);
299
- }
236
+ aggregator(callContext) {
237
+ return encodeCallData(callContext, "aggregator", "function aggregator()", []);
300
238
  },
301
- confirmAggregator(_aggregator, ethCallContext) {
302
- try {
303
- const iface = new Interface(["function confirmAggregator(address)"]);
304
- const calldata = iface.encodeFunctionData("confirmAggregator", [
305
- _aggregator,
306
- ]);
307
- return {
308
- context: ethCallContext,
309
- calldata,
310
- };
311
- }
312
- catch (e) {
313
- const stack = new Error().stack;
314
- throw transformEtherError(e, undefined, stack);
315
- }
239
+ confirmAggregator(_aggregator, callContext) {
240
+ return encodeCallData(callContext, "confirmAggregator", "function confirmAggregator(address)", [_aggregator]);
316
241
  },
317
- decimals(ethCallContext) {
318
- try {
319
- const iface = new Interface(["function decimals()"]);
320
- const calldata = iface.encodeFunctionData("decimals", []);
321
- return {
322
- context: ethCallContext,
323
- calldata,
324
- };
325
- }
326
- catch (e) {
327
- const stack = new Error().stack;
328
- throw transformEtherError(e, undefined, stack);
329
- }
242
+ decimals(callContext) {
243
+ return encodeCallData(callContext, "decimals", "function decimals()", []);
330
244
  },
331
- description(ethCallContext) {
332
- try {
333
- const iface = new Interface(["function description()"]);
334
- const calldata = iface.encodeFunctionData("description", []);
335
- return {
336
- context: ethCallContext,
337
- calldata,
338
- };
339
- }
340
- catch (e) {
341
- const stack = new Error().stack;
342
- throw transformEtherError(e, undefined, stack);
343
- }
245
+ description(callContext) {
246
+ return encodeCallData(callContext, "description", "function description()", []);
344
247
  },
345
- getAnswer(_roundId, ethCallContext) {
346
- try {
347
- const iface = new Interface(["function getAnswer(uint256)"]);
348
- const calldata = iface.encodeFunctionData("getAnswer", [_roundId]);
349
- return {
350
- context: ethCallContext,
351
- calldata,
352
- };
353
- }
354
- catch (e) {
355
- const stack = new Error().stack;
356
- throw transformEtherError(e, undefined, stack);
357
- }
248
+ getAnswer(_roundId, callContext) {
249
+ return encodeCallData(callContext, "getAnswer", "function getAnswer(uint256)", [_roundId]);
358
250
  },
359
- getRoundData(_roundId, ethCallContext) {
360
- try {
361
- const iface = new Interface(["function getRoundData(uint80)"]);
362
- const calldata = iface.encodeFunctionData("getRoundData", [_roundId]);
363
- return {
364
- context: ethCallContext,
365
- calldata,
366
- };
367
- }
368
- catch (e) {
369
- const stack = new Error().stack;
370
- throw transformEtherError(e, undefined, stack);
371
- }
251
+ getRoundData(_roundId, callContext) {
252
+ return encodeCallData(callContext, "getRoundData", "function getRoundData(uint80)", [_roundId]);
372
253
  },
373
- getTimestamp(_roundId, ethCallContext) {
374
- try {
375
- const iface = new Interface(["function getTimestamp(uint256)"]);
376
- const calldata = iface.encodeFunctionData("getTimestamp", [_roundId]);
377
- return {
378
- context: ethCallContext,
379
- calldata,
380
- };
381
- }
382
- catch (e) {
383
- const stack = new Error().stack;
384
- throw transformEtherError(e, undefined, stack);
385
- }
254
+ getTimestamp(_roundId, callContext) {
255
+ return encodeCallData(callContext, "getTimestamp", "function getTimestamp(uint256)", [_roundId]);
386
256
  },
387
- latestAnswer(ethCallContext) {
388
- try {
389
- const iface = new Interface(["function latestAnswer()"]);
390
- const calldata = iface.encodeFunctionData("latestAnswer", []);
391
- return {
392
- context: ethCallContext,
393
- calldata,
394
- };
395
- }
396
- catch (e) {
397
- const stack = new Error().stack;
398
- throw transformEtherError(e, undefined, stack);
399
- }
257
+ latestAnswer(callContext) {
258
+ return encodeCallData(callContext, "latestAnswer", "function latestAnswer()", []);
400
259
  },
401
- latestRound(ethCallContext) {
402
- try {
403
- const iface = new Interface(["function latestRound()"]);
404
- const calldata = iface.encodeFunctionData("latestRound", []);
405
- return {
406
- context: ethCallContext,
407
- calldata,
408
- };
409
- }
410
- catch (e) {
411
- const stack = new Error().stack;
412
- throw transformEtherError(e, undefined, stack);
413
- }
260
+ latestRound(callContext) {
261
+ return encodeCallData(callContext, "latestRound", "function latestRound()", []);
414
262
  },
415
- latestRoundData(ethCallContext) {
416
- try {
417
- const iface = new Interface(["function latestRoundData()"]);
418
- const calldata = iface.encodeFunctionData("latestRoundData", []);
419
- return {
420
- context: ethCallContext,
421
- calldata,
422
- };
423
- }
424
- catch (e) {
425
- const stack = new Error().stack;
426
- throw transformEtherError(e, undefined, stack);
427
- }
263
+ latestRoundData(callContext) {
264
+ return encodeCallData(callContext, "latestRoundData", "function latestRoundData()", []);
428
265
  },
429
- latestTimestamp(ethCallContext) {
430
- try {
431
- const iface = new Interface(["function latestTimestamp()"]);
432
- const calldata = iface.encodeFunctionData("latestTimestamp", []);
433
- return {
434
- context: ethCallContext,
435
- calldata,
436
- };
437
- }
438
- catch (e) {
439
- const stack = new Error().stack;
440
- throw transformEtherError(e, undefined, stack);
441
- }
266
+ latestTimestamp(callContext) {
267
+ return encodeCallData(callContext, "latestTimestamp", "function latestTimestamp()", []);
442
268
  },
443
- owner(ethCallContext) {
444
- try {
445
- const iface = new Interface(["function owner()"]);
446
- const calldata = iface.encodeFunctionData("owner", []);
447
- return {
448
- context: ethCallContext,
449
- calldata,
450
- };
451
- }
452
- catch (e) {
453
- const stack = new Error().stack;
454
- throw transformEtherError(e, undefined, stack);
455
- }
269
+ owner(callContext) {
270
+ return encodeCallData(callContext, "owner", "function owner()", []);
456
271
  },
457
- phaseAggregators(arg0, ethCallContext) {
458
- try {
459
- const iface = new Interface(["function phaseAggregators(uint16)"]);
460
- const calldata = iface.encodeFunctionData("phaseAggregators", [arg0]);
461
- return {
462
- context: ethCallContext,
463
- calldata,
464
- };
465
- }
466
- catch (e) {
467
- const stack = new Error().stack;
468
- throw transformEtherError(e, undefined, stack);
469
- }
272
+ phaseAggregators(arg0, callContext) {
273
+ return encodeCallData(callContext, "phaseAggregators", "function phaseAggregators(uint16)", [arg0]);
470
274
  },
471
- phaseId(ethCallContext) {
472
- try {
473
- const iface = new Interface(["function phaseId()"]);
474
- const calldata = iface.encodeFunctionData("phaseId", []);
475
- return {
476
- context: ethCallContext,
477
- calldata,
478
- };
479
- }
480
- catch (e) {
481
- const stack = new Error().stack;
482
- throw transformEtherError(e, undefined, stack);
483
- }
275
+ phaseId(callContext) {
276
+ return encodeCallData(callContext, "phaseId", "function phaseId()", []);
484
277
  },
485
- proposeAggregator(_aggregator, ethCallContext) {
486
- try {
487
- const iface = new Interface(["function proposeAggregator(address)"]);
488
- const calldata = iface.encodeFunctionData("proposeAggregator", [
489
- _aggregator,
490
- ]);
491
- return {
492
- context: ethCallContext,
493
- calldata,
494
- };
495
- }
496
- catch (e) {
497
- const stack = new Error().stack;
498
- throw transformEtherError(e, undefined, stack);
499
- }
278
+ proposeAggregator(_aggregator, callContext) {
279
+ return encodeCallData(callContext, "proposeAggregator", "function proposeAggregator(address)", [_aggregator]);
500
280
  },
501
- proposedAggregator(ethCallContext) {
502
- try {
503
- const iface = new Interface(["function proposedAggregator()"]);
504
- const calldata = iface.encodeFunctionData("proposedAggregator", []);
505
- return {
506
- context: ethCallContext,
507
- calldata,
508
- };
509
- }
510
- catch (e) {
511
- const stack = new Error().stack;
512
- throw transformEtherError(e, undefined, stack);
513
- }
281
+ proposedAggregator(callContext) {
282
+ return encodeCallData(callContext, "proposedAggregator", "function proposedAggregator()", []);
514
283
  },
515
- proposedGetRoundData(_roundId, ethCallContext) {
516
- try {
517
- const iface = new Interface(["function proposedGetRoundData(uint80)"]);
518
- const calldata = iface.encodeFunctionData("proposedGetRoundData", [
519
- _roundId,
520
- ]);
521
- return {
522
- context: ethCallContext,
523
- calldata,
524
- };
525
- }
526
- catch (e) {
527
- const stack = new Error().stack;
528
- throw transformEtherError(e, undefined, stack);
529
- }
284
+ proposedGetRoundData(_roundId, callContext) {
285
+ return encodeCallData(callContext, "proposedGetRoundData", "function proposedGetRoundData(uint80)", [_roundId]);
530
286
  },
531
- proposedLatestRoundData(ethCallContext) {
532
- try {
533
- const iface = new Interface(["function proposedLatestRoundData()"]);
534
- const calldata = iface.encodeFunctionData("proposedLatestRoundData", []);
535
- return {
536
- context: ethCallContext,
537
- calldata,
538
- };
539
- }
540
- catch (e) {
541
- const stack = new Error().stack;
542
- throw transformEtherError(e, undefined, stack);
543
- }
287
+ proposedLatestRoundData(callContext) {
288
+ return encodeCallData(callContext, "proposedLatestRoundData", "function proposedLatestRoundData()", []);
544
289
  },
545
- setController(_accessController, ethCallContext) {
546
- try {
547
- const iface = new Interface(["function setController(address)"]);
548
- const calldata = iface.encodeFunctionData("setController", [
549
- _accessController,
550
- ]);
551
- return {
552
- context: ethCallContext,
553
- calldata,
554
- };
555
- }
556
- catch (e) {
557
- const stack = new Error().stack;
558
- throw transformEtherError(e, undefined, stack);
559
- }
290
+ setController(_accessController, callContext) {
291
+ return encodeCallData(callContext, "setController", "function setController(address)", [_accessController]);
560
292
  },
561
- transferOwnership(_to, ethCallContext) {
562
- try {
563
- const iface = new Interface(["function transferOwnership(address)"]);
564
- const calldata = iface.encodeFunctionData("transferOwnership", [_to]);
565
- return {
566
- context: ethCallContext,
567
- calldata,
568
- };
569
- }
570
- catch (e) {
571
- const stack = new Error().stack;
572
- throw transformEtherError(e, undefined, stack);
573
- }
293
+ transferOwnership(_to, callContext) {
294
+ return encodeCallData(callContext, "transferOwnership", "function transferOwnership(address)", [_to]);
574
295
  },
575
- version(ethCallContext) {
576
- try {
577
- const iface = new Interface(["function version()"]);
578
- const calldata = iface.encodeFunctionData("version", []);
579
- return {
580
- context: ethCallContext,
581
- calldata,
582
- };
583
- }
584
- catch (e) {
585
- const stack = new Error().stack;
586
- throw transformEtherError(e, undefined, stack);
587
- }
296
+ version(callContext) {
297
+ return encodeCallData(callContext, "version", "function version()", []);
588
298
  },
589
299
  };
590
300
  }
591
301
  export class EACAggregatorProxyBoundContractView extends BoundContractView {
592
302
  async accessController(overrides) {
593
- const ethCallContext = {
594
- chainId: this.context.chainId,
595
- blockTag: "0x" + this.context.blockNumber.toString(16),
596
- address: this.context.address,
597
- };
598
303
  return await this.view.accessController({
599
304
  blockTag: this.context.blockNumber,
600
305
  ...overrides,
601
- }, this.context.preparedData, ethCallContext);
306
+ }, this.context.preparedData, this.context.getEthCallContext());
602
307
  }
603
308
  async aggregator(overrides) {
604
- const ethCallContext = {
605
- chainId: this.context.chainId,
606
- blockTag: "0x" + this.context.blockNumber.toString(16),
607
- address: this.context.address,
608
- };
609
309
  return await this.view.aggregator({
610
310
  blockTag: this.context.blockNumber,
611
311
  ...overrides,
612
- }, this.context.preparedData, ethCallContext);
312
+ }, this.context.preparedData, this.context.getEthCallContext());
613
313
  }
614
314
  async decimals(overrides) {
615
- const ethCallContext = {
616
- chainId: this.context.chainId,
617
- blockTag: "0x" + this.context.blockNumber.toString(16),
618
- address: this.context.address,
619
- };
620
315
  return await this.view.decimals({
621
316
  blockTag: this.context.blockNumber,
622
317
  ...overrides,
623
- }, this.context.preparedData, ethCallContext);
318
+ }, this.context.preparedData, this.context.getEthCallContext());
624
319
  }
625
320
  async description(overrides) {
626
- const ethCallContext = {
627
- chainId: this.context.chainId,
628
- blockTag: "0x" + this.context.blockNumber.toString(16),
629
- address: this.context.address,
630
- };
631
321
  return await this.view.description({
632
322
  blockTag: this.context.blockNumber,
633
323
  ...overrides,
634
- }, this.context.preparedData, ethCallContext);
324
+ }, this.context.preparedData, this.context.getEthCallContext());
635
325
  }
636
326
  async getAnswer(_roundId, overrides) {
637
- const ethCallContext = {
638
- chainId: this.context.chainId,
639
- blockTag: "0x" + this.context.blockNumber.toString(16),
640
- address: this.context.address,
641
- };
642
327
  return await this.view.getAnswer(_roundId, {
643
328
  blockTag: this.context.blockNumber,
644
329
  ...overrides,
645
- }, this.context.preparedData, ethCallContext);
330
+ }, this.context.preparedData, this.context.getEthCallContext());
646
331
  }
647
332
  async getRoundData(_roundId, overrides) {
648
- const ethCallContext = {
649
- chainId: this.context.chainId,
650
- blockTag: "0x" + this.context.blockNumber.toString(16),
651
- address: this.context.address,
652
- };
653
333
  return await this.view.getRoundData(_roundId, {
654
334
  blockTag: this.context.blockNumber,
655
335
  ...overrides,
656
- }, this.context.preparedData, ethCallContext);
336
+ }, this.context.preparedData, this.context.getEthCallContext());
657
337
  }
658
338
  async getTimestamp(_roundId, overrides) {
659
- const ethCallContext = {
660
- chainId: this.context.chainId,
661
- blockTag: "0x" + this.context.blockNumber.toString(16),
662
- address: this.context.address,
663
- };
664
339
  return await this.view.getTimestamp(_roundId, {
665
340
  blockTag: this.context.blockNumber,
666
341
  ...overrides,
667
- }, this.context.preparedData, ethCallContext);
342
+ }, this.context.preparedData, this.context.getEthCallContext());
668
343
  }
669
344
  async latestAnswer(overrides) {
670
- const ethCallContext = {
671
- chainId: this.context.chainId,
672
- blockTag: "0x" + this.context.blockNumber.toString(16),
673
- address: this.context.address,
674
- };
675
345
  return await this.view.latestAnswer({
676
346
  blockTag: this.context.blockNumber,
677
347
  ...overrides,
678
- }, this.context.preparedData, ethCallContext);
348
+ }, this.context.preparedData, this.context.getEthCallContext());
679
349
  }
680
350
  async latestRound(overrides) {
681
- const ethCallContext = {
682
- chainId: this.context.chainId,
683
- blockTag: "0x" + this.context.blockNumber.toString(16),
684
- address: this.context.address,
685
- };
686
351
  return await this.view.latestRound({
687
352
  blockTag: this.context.blockNumber,
688
353
  ...overrides,
689
- }, this.context.preparedData, ethCallContext);
354
+ }, this.context.preparedData, this.context.getEthCallContext());
690
355
  }
691
356
  async latestRoundData(overrides) {
692
- const ethCallContext = {
693
- chainId: this.context.chainId,
694
- blockTag: "0x" + this.context.blockNumber.toString(16),
695
- address: this.context.address,
696
- };
697
357
  return await this.view.latestRoundData({
698
358
  blockTag: this.context.blockNumber,
699
359
  ...overrides,
700
- }, this.context.preparedData, ethCallContext);
360
+ }, this.context.preparedData, this.context.getEthCallContext());
701
361
  }
702
362
  async latestTimestamp(overrides) {
703
- const ethCallContext = {
704
- chainId: this.context.chainId,
705
- blockTag: "0x" + this.context.blockNumber.toString(16),
706
- address: this.context.address,
707
- };
708
363
  return await this.view.latestTimestamp({
709
364
  blockTag: this.context.blockNumber,
710
365
  ...overrides,
711
- }, this.context.preparedData, ethCallContext);
366
+ }, this.context.preparedData, this.context.getEthCallContext());
712
367
  }
713
368
  async owner(overrides) {
714
- const ethCallContext = {
715
- chainId: this.context.chainId,
716
- blockTag: "0x" + this.context.blockNumber.toString(16),
717
- address: this.context.address,
718
- };
719
369
  return await this.view.owner({
720
370
  blockTag: this.context.blockNumber,
721
371
  ...overrides,
722
- }, this.context.preparedData, ethCallContext);
372
+ }, this.context.preparedData, this.context.getEthCallContext());
723
373
  }
724
374
  async phaseAggregators(arg0, overrides) {
725
- const ethCallContext = {
726
- chainId: this.context.chainId,
727
- blockTag: "0x" + this.context.blockNumber.toString(16),
728
- address: this.context.address,
729
- };
730
375
  return await this.view.phaseAggregators(arg0, {
731
376
  blockTag: this.context.blockNumber,
732
377
  ...overrides,
733
- }, this.context.preparedData, ethCallContext);
378
+ }, this.context.preparedData, this.context.getEthCallContext());
734
379
  }
735
380
  async phaseId(overrides) {
736
- const ethCallContext = {
737
- chainId: this.context.chainId,
738
- blockTag: "0x" + this.context.blockNumber.toString(16),
739
- address: this.context.address,
740
- };
741
381
  return await this.view.phaseId({
742
382
  blockTag: this.context.blockNumber,
743
383
  ...overrides,
744
- }, this.context.preparedData, ethCallContext);
384
+ }, this.context.preparedData, this.context.getEthCallContext());
745
385
  }
746
386
  async proposedAggregator(overrides) {
747
- const ethCallContext = {
748
- chainId: this.context.chainId,
749
- blockTag: "0x" + this.context.blockNumber.toString(16),
750
- address: this.context.address,
751
- };
752
387
  return await this.view.proposedAggregator({
753
388
  blockTag: this.context.blockNumber,
754
389
  ...overrides,
755
- }, this.context.preparedData, ethCallContext);
390
+ }, this.context.preparedData, this.context.getEthCallContext());
756
391
  }
757
392
  async proposedGetRoundData(_roundId, overrides) {
758
- const ethCallContext = {
759
- chainId: this.context.chainId,
760
- blockTag: "0x" + this.context.blockNumber.toString(16),
761
- address: this.context.address,
762
- };
763
393
  return await this.view.proposedGetRoundData(_roundId, {
764
394
  blockTag: this.context.blockNumber,
765
395
  ...overrides,
766
- }, this.context.preparedData, ethCallContext);
396
+ }, this.context.preparedData, this.context.getEthCallContext());
767
397
  }
768
398
  async proposedLatestRoundData(overrides) {
769
- const ethCallContext = {
770
- chainId: this.context.chainId,
771
- blockTag: "0x" + this.context.blockNumber.toString(16),
772
- address: this.context.address,
773
- };
774
399
  return await this.view.proposedLatestRoundData({
775
400
  blockTag: this.context.blockNumber,
776
401
  ...overrides,
777
- }, this.context.preparedData, ethCallContext);
402
+ }, this.context.preparedData, this.context.getEthCallContext());
778
403
  }
779
404
  async version(overrides) {
780
- const ethCallContext = {
781
- chainId: this.context.chainId,
782
- blockTag: "0x" + this.context.blockNumber.toString(16),
783
- address: this.context.address,
784
- };
785
405
  return await this.view.version({
786
406
  blockTag: this.context.blockNumber,
787
407
  ...overrides,
788
- }, this.context.preparedData, ethCallContext);
408
+ }, this.context.preparedData, this.context.getEthCallContext());
789
409
  }
790
410
  callStatic = {
791
411
  view: this.view,
792
412
  context: this.context,
793
413
  async acceptOwnership(overrides) {
794
- const ethCallContext = {
795
- chainId: this.context.chainId,
796
- blockTag: "0x" + this.context.blockNumber.toString(16),
797
- address: this.context.address,
798
- };
799
414
  return await this.view.callStatic.acceptOwnership({
800
415
  blockTag: this.context.blockNumber,
801
416
  ...overrides,
802
- }, this.context.preparedData, ethCallContext);
417
+ }, this.context.preparedData, this.context.getEthCallContext());
803
418
  },
804
419
  async confirmAggregator(_aggregator, overrides) {
805
- const ethCallContext = {
806
- chainId: this.context.chainId,
807
- blockTag: "0x" + this.context.blockNumber.toString(16),
808
- address: this.context.address,
809
- };
810
420
  return await this.view.callStatic.confirmAggregator(_aggregator, {
811
421
  blockTag: this.context.blockNumber,
812
422
  ...overrides,
813
- }, this.context.preparedData, ethCallContext);
423
+ }, this.context.preparedData, this.context.getEthCallContext());
814
424
  },
815
425
  async proposeAggregator(_aggregator, overrides) {
816
- const ethCallContext = {
817
- chainId: this.context.chainId,
818
- blockTag: "0x" + this.context.blockNumber.toString(16),
819
- address: this.context.address,
820
- };
821
426
  return await this.view.callStatic.proposeAggregator(_aggregator, {
822
427
  blockTag: this.context.blockNumber,
823
428
  ...overrides,
824
- }, this.context.preparedData, ethCallContext);
429
+ }, this.context.preparedData, this.context.getEthCallContext());
825
430
  },
826
431
  async setController(_accessController, overrides) {
827
- const ethCallContext = {
828
- chainId: this.context.chainId,
829
- blockTag: "0x" + this.context.blockNumber.toString(16),
830
- address: this.context.address,
831
- };
832
432
  return await this.view.callStatic.setController(_accessController, {
833
433
  blockTag: this.context.blockNumber,
834
434
  ...overrides,
835
- }, this.context.preparedData, ethCallContext);
435
+ }, this.context.preparedData, this.context.getEthCallContext());
836
436
  },
837
437
  async transferOwnership(_to, overrides) {
838
- const ethCallContext = {
839
- chainId: this.context.chainId,
840
- blockTag: "0x" + this.context.blockNumber.toString(16),
841
- address: this.context.address,
842
- };
843
438
  return await this.view.callStatic.transferOwnership(_to, {
844
439
  blockTag: this.context.blockNumber,
845
440
  ...overrides,
846
- }, this.context.preparedData, ethCallContext);
441
+ }, this.context.preparedData, this.context.getEthCallContext());
847
442
  },
848
443
  };
849
444
  encodeCall = {
850
445
  view: this.view,
851
446
  context: this.context,
852
447
  acceptOwnership(overrides) {
853
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
854
- if (overrides?.blockTag) {
855
- blockTagWithOverride =
856
- typeof overrides.blockTag == "string"
857
- ? overrides.blockTag
858
- : "0x" + overrides.blockTag.toString(16);
859
- }
860
448
  return this.view.encodeCall.acceptOwnership({
861
449
  chainId: this.context.chainId.toString(),
862
450
  address: this.context.address,
863
- blockTag: blockTagWithOverride,
451
+ blockTag: this.context.getBlockTag(overrides),
864
452
  });
865
453
  },
866
454
  accessController(overrides) {
867
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
868
- if (overrides?.blockTag) {
869
- blockTagWithOverride =
870
- typeof overrides.blockTag == "string"
871
- ? overrides.blockTag
872
- : "0x" + overrides.blockTag.toString(16);
873
- }
874
455
  return this.view.encodeCall.accessController({
875
456
  chainId: this.context.chainId.toString(),
876
457
  address: this.context.address,
877
- blockTag: blockTagWithOverride,
458
+ blockTag: this.context.getBlockTag(overrides),
878
459
  });
879
460
  },
880
461
  aggregator(overrides) {
881
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
882
- if (overrides?.blockTag) {
883
- blockTagWithOverride =
884
- typeof overrides.blockTag == "string"
885
- ? overrides.blockTag
886
- : "0x" + overrides.blockTag.toString(16);
887
- }
888
462
  return this.view.encodeCall.aggregator({
889
463
  chainId: this.context.chainId.toString(),
890
464
  address: this.context.address,
891
- blockTag: blockTagWithOverride,
465
+ blockTag: this.context.getBlockTag(overrides),
892
466
  });
893
467
  },
894
468
  confirmAggregator(_aggregator, overrides) {
895
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
896
- if (overrides?.blockTag) {
897
- blockTagWithOverride =
898
- typeof overrides.blockTag == "string"
899
- ? overrides.blockTag
900
- : "0x" + overrides.blockTag.toString(16);
901
- }
902
469
  return this.view.encodeCall.confirmAggregator(_aggregator, {
903
470
  chainId: this.context.chainId.toString(),
904
471
  address: this.context.address,
905
- blockTag: blockTagWithOverride,
472
+ blockTag: this.context.getBlockTag(overrides),
906
473
  });
907
474
  },
908
475
  decimals(overrides) {
909
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
910
- if (overrides?.blockTag) {
911
- blockTagWithOverride =
912
- typeof overrides.blockTag == "string"
913
- ? overrides.blockTag
914
- : "0x" + overrides.blockTag.toString(16);
915
- }
916
476
  return this.view.encodeCall.decimals({
917
477
  chainId: this.context.chainId.toString(),
918
478
  address: this.context.address,
919
- blockTag: blockTagWithOverride,
479
+ blockTag: this.context.getBlockTag(overrides),
920
480
  });
921
481
  },
922
482
  description(overrides) {
923
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
924
- if (overrides?.blockTag) {
925
- blockTagWithOverride =
926
- typeof overrides.blockTag == "string"
927
- ? overrides.blockTag
928
- : "0x" + overrides.blockTag.toString(16);
929
- }
930
483
  return this.view.encodeCall.description({
931
484
  chainId: this.context.chainId.toString(),
932
485
  address: this.context.address,
933
- blockTag: blockTagWithOverride,
486
+ blockTag: this.context.getBlockTag(overrides),
934
487
  });
935
488
  },
936
489
  getAnswer(_roundId, overrides) {
937
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
938
- if (overrides?.blockTag) {
939
- blockTagWithOverride =
940
- typeof overrides.blockTag == "string"
941
- ? overrides.blockTag
942
- : "0x" + overrides.blockTag.toString(16);
943
- }
944
490
  return this.view.encodeCall.getAnswer(_roundId, {
945
491
  chainId: this.context.chainId.toString(),
946
492
  address: this.context.address,
947
- blockTag: blockTagWithOverride,
493
+ blockTag: this.context.getBlockTag(overrides),
948
494
  });
949
495
  },
950
496
  getRoundData(_roundId, overrides) {
951
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
952
- if (overrides?.blockTag) {
953
- blockTagWithOverride =
954
- typeof overrides.blockTag == "string"
955
- ? overrides.blockTag
956
- : "0x" + overrides.blockTag.toString(16);
957
- }
958
497
  return this.view.encodeCall.getRoundData(_roundId, {
959
498
  chainId: this.context.chainId.toString(),
960
499
  address: this.context.address,
961
- blockTag: blockTagWithOverride,
500
+ blockTag: this.context.getBlockTag(overrides),
962
501
  });
963
502
  },
964
503
  getTimestamp(_roundId, overrides) {
965
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
966
- if (overrides?.blockTag) {
967
- blockTagWithOverride =
968
- typeof overrides.blockTag == "string"
969
- ? overrides.blockTag
970
- : "0x" + overrides.blockTag.toString(16);
971
- }
972
504
  return this.view.encodeCall.getTimestamp(_roundId, {
973
505
  chainId: this.context.chainId.toString(),
974
506
  address: this.context.address,
975
- blockTag: blockTagWithOverride,
507
+ blockTag: this.context.getBlockTag(overrides),
976
508
  });
977
509
  },
978
510
  latestAnswer(overrides) {
979
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
980
- if (overrides?.blockTag) {
981
- blockTagWithOverride =
982
- typeof overrides.blockTag == "string"
983
- ? overrides.blockTag
984
- : "0x" + overrides.blockTag.toString(16);
985
- }
986
511
  return this.view.encodeCall.latestAnswer({
987
512
  chainId: this.context.chainId.toString(),
988
513
  address: this.context.address,
989
- blockTag: blockTagWithOverride,
514
+ blockTag: this.context.getBlockTag(overrides),
990
515
  });
991
516
  },
992
517
  latestRound(overrides) {
993
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
994
- if (overrides?.blockTag) {
995
- blockTagWithOverride =
996
- typeof overrides.blockTag == "string"
997
- ? overrides.blockTag
998
- : "0x" + overrides.blockTag.toString(16);
999
- }
1000
518
  return this.view.encodeCall.latestRound({
1001
519
  chainId: this.context.chainId.toString(),
1002
520
  address: this.context.address,
1003
- blockTag: blockTagWithOverride,
521
+ blockTag: this.context.getBlockTag(overrides),
1004
522
  });
1005
523
  },
1006
524
  latestRoundData(overrides) {
1007
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1008
- if (overrides?.blockTag) {
1009
- blockTagWithOverride =
1010
- typeof overrides.blockTag == "string"
1011
- ? overrides.blockTag
1012
- : "0x" + overrides.blockTag.toString(16);
1013
- }
1014
525
  return this.view.encodeCall.latestRoundData({
1015
526
  chainId: this.context.chainId.toString(),
1016
527
  address: this.context.address,
1017
- blockTag: blockTagWithOverride,
528
+ blockTag: this.context.getBlockTag(overrides),
1018
529
  });
1019
530
  },
1020
531
  latestTimestamp(overrides) {
1021
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1022
- if (overrides?.blockTag) {
1023
- blockTagWithOverride =
1024
- typeof overrides.blockTag == "string"
1025
- ? overrides.blockTag
1026
- : "0x" + overrides.blockTag.toString(16);
1027
- }
1028
532
  return this.view.encodeCall.latestTimestamp({
1029
533
  chainId: this.context.chainId.toString(),
1030
534
  address: this.context.address,
1031
- blockTag: blockTagWithOverride,
535
+ blockTag: this.context.getBlockTag(overrides),
1032
536
  });
1033
537
  },
1034
538
  owner(overrides) {
1035
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1036
- if (overrides?.blockTag) {
1037
- blockTagWithOverride =
1038
- typeof overrides.blockTag == "string"
1039
- ? overrides.blockTag
1040
- : "0x" + overrides.blockTag.toString(16);
1041
- }
1042
539
  return this.view.encodeCall.owner({
1043
540
  chainId: this.context.chainId.toString(),
1044
541
  address: this.context.address,
1045
- blockTag: blockTagWithOverride,
542
+ blockTag: this.context.getBlockTag(overrides),
1046
543
  });
1047
544
  },
1048
545
  phaseAggregators(arg0, overrides) {
1049
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1050
- if (overrides?.blockTag) {
1051
- blockTagWithOverride =
1052
- typeof overrides.blockTag == "string"
1053
- ? overrides.blockTag
1054
- : "0x" + overrides.blockTag.toString(16);
1055
- }
1056
546
  return this.view.encodeCall.phaseAggregators(arg0, {
1057
547
  chainId: this.context.chainId.toString(),
1058
548
  address: this.context.address,
1059
- blockTag: blockTagWithOverride,
549
+ blockTag: this.context.getBlockTag(overrides),
1060
550
  });
1061
551
  },
1062
552
  phaseId(overrides) {
1063
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1064
- if (overrides?.blockTag) {
1065
- blockTagWithOverride =
1066
- typeof overrides.blockTag == "string"
1067
- ? overrides.blockTag
1068
- : "0x" + overrides.blockTag.toString(16);
1069
- }
1070
553
  return this.view.encodeCall.phaseId({
1071
554
  chainId: this.context.chainId.toString(),
1072
555
  address: this.context.address,
1073
- blockTag: blockTagWithOverride,
556
+ blockTag: this.context.getBlockTag(overrides),
1074
557
  });
1075
558
  },
1076
559
  proposeAggregator(_aggregator, overrides) {
1077
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1078
- if (overrides?.blockTag) {
1079
- blockTagWithOverride =
1080
- typeof overrides.blockTag == "string"
1081
- ? overrides.blockTag
1082
- : "0x" + overrides.blockTag.toString(16);
1083
- }
1084
560
  return this.view.encodeCall.proposeAggregator(_aggregator, {
1085
561
  chainId: this.context.chainId.toString(),
1086
562
  address: this.context.address,
1087
- blockTag: blockTagWithOverride,
563
+ blockTag: this.context.getBlockTag(overrides),
1088
564
  });
1089
565
  },
1090
566
  proposedAggregator(overrides) {
1091
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1092
- if (overrides?.blockTag) {
1093
- blockTagWithOverride =
1094
- typeof overrides.blockTag == "string"
1095
- ? overrides.blockTag
1096
- : "0x" + overrides.blockTag.toString(16);
1097
- }
1098
567
  return this.view.encodeCall.proposedAggregator({
1099
568
  chainId: this.context.chainId.toString(),
1100
569
  address: this.context.address,
1101
- blockTag: blockTagWithOverride,
570
+ blockTag: this.context.getBlockTag(overrides),
1102
571
  });
1103
572
  },
1104
573
  proposedGetRoundData(_roundId, overrides) {
1105
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1106
- if (overrides?.blockTag) {
1107
- blockTagWithOverride =
1108
- typeof overrides.blockTag == "string"
1109
- ? overrides.blockTag
1110
- : "0x" + overrides.blockTag.toString(16);
1111
- }
1112
574
  return this.view.encodeCall.proposedGetRoundData(_roundId, {
1113
575
  chainId: this.context.chainId.toString(),
1114
576
  address: this.context.address,
1115
- blockTag: blockTagWithOverride,
577
+ blockTag: this.context.getBlockTag(overrides),
1116
578
  });
1117
579
  },
1118
580
  proposedLatestRoundData(overrides) {
1119
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1120
- if (overrides?.blockTag) {
1121
- blockTagWithOverride =
1122
- typeof overrides.blockTag == "string"
1123
- ? overrides.blockTag
1124
- : "0x" + overrides.blockTag.toString(16);
1125
- }
1126
581
  return this.view.encodeCall.proposedLatestRoundData({
1127
582
  chainId: this.context.chainId.toString(),
1128
583
  address: this.context.address,
1129
- blockTag: blockTagWithOverride,
584
+ blockTag: this.context.getBlockTag(overrides),
1130
585
  });
1131
586
  },
1132
587
  setController(_accessController, overrides) {
1133
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1134
- if (overrides?.blockTag) {
1135
- blockTagWithOverride =
1136
- typeof overrides.blockTag == "string"
1137
- ? overrides.blockTag
1138
- : "0x" + overrides.blockTag.toString(16);
1139
- }
1140
588
  return this.view.encodeCall.setController(_accessController, {
1141
589
  chainId: this.context.chainId.toString(),
1142
590
  address: this.context.address,
1143
- blockTag: blockTagWithOverride,
591
+ blockTag: this.context.getBlockTag(overrides),
1144
592
  });
1145
593
  },
1146
594
  transferOwnership(_to, overrides) {
1147
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1148
- if (overrides?.blockTag) {
1149
- blockTagWithOverride =
1150
- typeof overrides.blockTag == "string"
1151
- ? overrides.blockTag
1152
- : "0x" + overrides.blockTag.toString(16);
1153
- }
1154
595
  return this.view.encodeCall.transferOwnership(_to, {
1155
596
  chainId: this.context.chainId.toString(),
1156
597
  address: this.context.address,
1157
- blockTag: blockTagWithOverride,
598
+ blockTag: this.context.getBlockTag(overrides),
1158
599
  });
1159
600
  },
1160
601
  version(overrides) {
1161
- let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
1162
- if (overrides?.blockTag) {
1163
- blockTagWithOverride =
1164
- typeof overrides.blockTag == "string"
1165
- ? overrides.blockTag
1166
- : "0x" + overrides.blockTag.toString(16);
1167
- }
1168
602
  return this.view.encodeCall.version({
1169
603
  chainId: this.context.chainId.toString(),
1170
604
  address: this.context.address,
1171
- blockTag: blockTagWithOverride,
605
+ blockTag: this.context.getBlockTag(overrides),
1172
606
  });
1173
607
  },
1174
608
  };