@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
@@ -21,8 +21,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
21
21
|
context: ethCallContext,
|
22
22
|
calldata,
|
23
23
|
});
|
24
|
+
console.debug("looking up eth call key:", key);
|
24
25
|
const ret = preparedData.ethCallResults[key];
|
25
26
|
if (ret) {
|
27
|
+
console.debug("prepared eth call found:", key);
|
26
28
|
const result = iface
|
27
29
|
.decodeFunctionResult("accessController", ret)
|
28
30
|
.toArray();
|
@@ -47,8 +49,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
47
49
|
context: ethCallContext,
|
48
50
|
calldata,
|
49
51
|
});
|
52
|
+
console.debug("looking up eth call key:", key);
|
50
53
|
const ret = preparedData.ethCallResults[key];
|
51
54
|
if (ret) {
|
55
|
+
console.debug("prepared eth call found:", key);
|
52
56
|
const result = iface
|
53
57
|
.decodeFunctionResult("aggregator", ret)
|
54
58
|
.toArray();
|
@@ -73,8 +77,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
73
77
|
context: ethCallContext,
|
74
78
|
calldata,
|
75
79
|
});
|
80
|
+
console.debug("looking up eth call key:", key);
|
76
81
|
const ret = preparedData.ethCallResults[key];
|
77
82
|
if (ret) {
|
83
|
+
console.debug("prepared eth call found:", key);
|
78
84
|
const result = iface.decodeFunctionResult("decimals", ret).toArray();
|
79
85
|
return result.length == 1 ? result[0] : result;
|
80
86
|
}
|
@@ -97,8 +103,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
97
103
|
context: ethCallContext,
|
98
104
|
calldata,
|
99
105
|
});
|
106
|
+
console.debug("looking up eth call key:", key);
|
100
107
|
const ret = preparedData.ethCallResults[key];
|
101
108
|
if (ret) {
|
109
|
+
console.debug("prepared eth call found:", key);
|
102
110
|
const result = iface
|
103
111
|
.decodeFunctionResult("description", ret)
|
104
112
|
.toArray();
|
@@ -123,8 +131,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
123
131
|
context: ethCallContext,
|
124
132
|
calldata,
|
125
133
|
});
|
134
|
+
console.debug("looking up eth call key:", key);
|
126
135
|
const ret = preparedData.ethCallResults[key];
|
127
136
|
if (ret) {
|
137
|
+
console.debug("prepared eth call found:", key);
|
128
138
|
const result = iface.decodeFunctionResult("getAnswer", ret).toArray();
|
129
139
|
return result.length == 1 ? result[0] : result;
|
130
140
|
}
|
@@ -147,8 +157,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
147
157
|
context: ethCallContext,
|
148
158
|
calldata,
|
149
159
|
});
|
160
|
+
console.debug("looking up eth call key:", key);
|
150
161
|
const ret = preparedData.ethCallResults[key];
|
151
162
|
if (ret) {
|
163
|
+
console.debug("prepared eth call found:", key);
|
152
164
|
const result = iface
|
153
165
|
.decodeFunctionResult("getRoundData", ret)
|
154
166
|
.toArray();
|
@@ -173,8 +185,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
173
185
|
context: ethCallContext,
|
174
186
|
calldata,
|
175
187
|
});
|
188
|
+
console.debug("looking up eth call key:", key);
|
176
189
|
const ret = preparedData.ethCallResults[key];
|
177
190
|
if (ret) {
|
191
|
+
console.debug("prepared eth call found:", key);
|
178
192
|
const result = iface
|
179
193
|
.decodeFunctionResult("getTimestamp", ret)
|
180
194
|
.toArray();
|
@@ -199,8 +213,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
199
213
|
context: ethCallContext,
|
200
214
|
calldata,
|
201
215
|
});
|
216
|
+
console.debug("looking up eth call key:", key);
|
202
217
|
const ret = preparedData.ethCallResults[key];
|
203
218
|
if (ret) {
|
219
|
+
console.debug("prepared eth call found:", key);
|
204
220
|
const result = iface
|
205
221
|
.decodeFunctionResult("latestAnswer", ret)
|
206
222
|
.toArray();
|
@@ -225,8 +241,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
225
241
|
context: ethCallContext,
|
226
242
|
calldata,
|
227
243
|
});
|
244
|
+
console.debug("looking up eth call key:", key);
|
228
245
|
const ret = preparedData.ethCallResults[key];
|
229
246
|
if (ret) {
|
247
|
+
console.debug("prepared eth call found:", key);
|
230
248
|
const result = iface
|
231
249
|
.decodeFunctionResult("latestRound", ret)
|
232
250
|
.toArray();
|
@@ -251,8 +269,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
251
269
|
context: ethCallContext,
|
252
270
|
calldata,
|
253
271
|
});
|
272
|
+
console.debug("looking up eth call key:", key);
|
254
273
|
const ret = preparedData.ethCallResults[key];
|
255
274
|
if (ret) {
|
275
|
+
console.debug("prepared eth call found:", key);
|
256
276
|
const result = iface
|
257
277
|
.decodeFunctionResult("latestRoundData", ret)
|
258
278
|
.toArray();
|
@@ -277,8 +297,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
277
297
|
context: ethCallContext,
|
278
298
|
calldata,
|
279
299
|
});
|
300
|
+
console.debug("looking up eth call key:", key);
|
280
301
|
const ret = preparedData.ethCallResults[key];
|
281
302
|
if (ret) {
|
303
|
+
console.debug("prepared eth call found:", key);
|
282
304
|
const result = iface
|
283
305
|
.decodeFunctionResult("latestTimestamp", ret)
|
284
306
|
.toArray();
|
@@ -303,8 +325,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
303
325
|
context: ethCallContext,
|
304
326
|
calldata,
|
305
327
|
});
|
328
|
+
console.debug("looking up eth call key:", key);
|
306
329
|
const ret = preparedData.ethCallResults[key];
|
307
330
|
if (ret) {
|
331
|
+
console.debug("prepared eth call found:", key);
|
308
332
|
const result = iface.decodeFunctionResult("owner", ret).toArray();
|
309
333
|
return result.length == 1 ? result[0] : result;
|
310
334
|
}
|
@@ -327,8 +351,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
327
351
|
context: ethCallContext,
|
328
352
|
calldata,
|
329
353
|
});
|
354
|
+
console.debug("looking up eth call key:", key);
|
330
355
|
const ret = preparedData.ethCallResults[key];
|
331
356
|
if (ret) {
|
357
|
+
console.debug("prepared eth call found:", key);
|
332
358
|
const result = iface
|
333
359
|
.decodeFunctionResult("phaseAggregators", ret)
|
334
360
|
.toArray();
|
@@ -353,8 +379,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
353
379
|
context: ethCallContext,
|
354
380
|
calldata,
|
355
381
|
});
|
382
|
+
console.debug("looking up eth call key:", key);
|
356
383
|
const ret = preparedData.ethCallResults[key];
|
357
384
|
if (ret) {
|
385
|
+
console.debug("prepared eth call found:", key);
|
358
386
|
const result = iface.decodeFunctionResult("phaseId", ret).toArray();
|
359
387
|
return result.length == 1 ? result[0] : result;
|
360
388
|
}
|
@@ -377,8 +405,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
377
405
|
context: ethCallContext,
|
378
406
|
calldata,
|
379
407
|
});
|
408
|
+
console.debug("looking up eth call key:", key);
|
380
409
|
const ret = preparedData.ethCallResults[key];
|
381
410
|
if (ret) {
|
411
|
+
console.debug("prepared eth call found:", key);
|
382
412
|
const result = iface
|
383
413
|
.decodeFunctionResult("proposedAggregator", ret)
|
384
414
|
.toArray();
|
@@ -405,8 +435,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
405
435
|
context: ethCallContext,
|
406
436
|
calldata,
|
407
437
|
});
|
438
|
+
console.debug("looking up eth call key:", key);
|
408
439
|
const ret = preparedData.ethCallResults[key];
|
409
440
|
if (ret) {
|
441
|
+
console.debug("prepared eth call found:", key);
|
410
442
|
const result = iface
|
411
443
|
.decodeFunctionResult("proposedGetRoundData", ret)
|
412
444
|
.toArray();
|
@@ -431,8 +463,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
431
463
|
context: ethCallContext,
|
432
464
|
calldata,
|
433
465
|
});
|
466
|
+
console.debug("looking up eth call key:", key);
|
434
467
|
const ret = preparedData.ethCallResults[key];
|
435
468
|
if (ret) {
|
469
|
+
console.debug("prepared eth call found:", key);
|
436
470
|
const result = iface
|
437
471
|
.decodeFunctionResult("proposedLatestRoundData", ret)
|
438
472
|
.toArray();
|
@@ -457,8 +491,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
457
491
|
context: ethCallContext,
|
458
492
|
calldata,
|
459
493
|
});
|
494
|
+
console.debug("looking up eth call key:", key);
|
460
495
|
const ret = preparedData.ethCallResults[key];
|
461
496
|
if (ret) {
|
497
|
+
console.debug("prepared eth call found:", key);
|
462
498
|
const result = iface.decodeFunctionResult("version", ret).toArray();
|
463
499
|
return result.length == 1 ? result[0] : result;
|
464
500
|
}
|
@@ -483,8 +519,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
483
519
|
context: ethCallContext,
|
484
520
|
calldata,
|
485
521
|
});
|
522
|
+
console.debug("looking up eth call key:", key);
|
486
523
|
const ret = preparedData.ethCallResults[key];
|
487
524
|
if (ret) {
|
525
|
+
console.debug("prepared eth call found:", key);
|
488
526
|
const result = iface
|
489
527
|
.decodeFunctionResult("acceptOwnership", ret)
|
490
528
|
.toArray();
|
@@ -513,8 +551,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
513
551
|
context: ethCallContext,
|
514
552
|
calldata,
|
515
553
|
});
|
554
|
+
console.debug("looking up eth call key:", key);
|
516
555
|
const ret = preparedData.ethCallResults[key];
|
517
556
|
if (ret) {
|
557
|
+
console.debug("prepared eth call found:", key);
|
518
558
|
const result = iface
|
519
559
|
.decodeFunctionResult("confirmAggregator", ret)
|
520
560
|
.toArray();
|
@@ -543,8 +583,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
543
583
|
context: ethCallContext,
|
544
584
|
calldata,
|
545
585
|
});
|
586
|
+
console.debug("looking up eth call key:", key);
|
546
587
|
const ret = preparedData.ethCallResults[key];
|
547
588
|
if (ret) {
|
589
|
+
console.debug("prepared eth call found:", key);
|
548
590
|
const result = iface
|
549
591
|
.decodeFunctionResult("proposeAggregator", ret)
|
550
592
|
.toArray();
|
@@ -573,8 +615,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
573
615
|
context: ethCallContext,
|
574
616
|
calldata,
|
575
617
|
});
|
618
|
+
console.debug("looking up eth call key:", key);
|
576
619
|
const ret = preparedData.ethCallResults[key];
|
577
620
|
if (ret) {
|
621
|
+
console.debug("prepared eth call found:", key);
|
578
622
|
const result = iface
|
579
623
|
.decodeFunctionResult("setController", ret)
|
580
624
|
.toArray();
|
@@ -601,8 +645,10 @@ export class EACAggregatorProxyContractView extends ContractView {
|
|
601
645
|
context: ethCallContext,
|
602
646
|
calldata,
|
603
647
|
});
|
648
|
+
console.debug("looking up eth call key:", key);
|
604
649
|
const ret = preparedData.ethCallResults[key];
|
605
650
|
if (ret) {
|
651
|
+
console.debug("prepared eth call found:", key);
|
606
652
|
const result = iface
|
607
653
|
.decodeFunctionResult("transferOwnership", ret)
|
608
654
|
.toArray();
|
@@ -956,7 +1002,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
956
1002
|
async accessController(overrides) {
|
957
1003
|
const ethCallContext = {
|
958
1004
|
chainId: this.context.chainId,
|
959
|
-
blockTag: this.context.blockNumber.toString(16),
|
1005
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
960
1006
|
address: this.context.address,
|
961
1007
|
};
|
962
1008
|
return await this.view.accessController({
|
@@ -967,7 +1013,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
967
1013
|
async aggregator(overrides) {
|
968
1014
|
const ethCallContext = {
|
969
1015
|
chainId: this.context.chainId,
|
970
|
-
blockTag: this.context.blockNumber.toString(16),
|
1016
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
971
1017
|
address: this.context.address,
|
972
1018
|
};
|
973
1019
|
return await this.view.aggregator({
|
@@ -978,7 +1024,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
978
1024
|
async decimals(overrides) {
|
979
1025
|
const ethCallContext = {
|
980
1026
|
chainId: this.context.chainId,
|
981
|
-
blockTag: this.context.blockNumber.toString(16),
|
1027
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
982
1028
|
address: this.context.address,
|
983
1029
|
};
|
984
1030
|
return await this.view.decimals({
|
@@ -989,7 +1035,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
989
1035
|
async description(overrides) {
|
990
1036
|
const ethCallContext = {
|
991
1037
|
chainId: this.context.chainId,
|
992
|
-
blockTag: this.context.blockNumber.toString(16),
|
1038
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
993
1039
|
address: this.context.address,
|
994
1040
|
};
|
995
1041
|
return await this.view.description({
|
@@ -1000,7 +1046,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1000
1046
|
async getAnswer(_roundId, overrides) {
|
1001
1047
|
const ethCallContext = {
|
1002
1048
|
chainId: this.context.chainId,
|
1003
|
-
blockTag: this.context.blockNumber.toString(16),
|
1049
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1004
1050
|
address: this.context.address,
|
1005
1051
|
};
|
1006
1052
|
return await this.view.getAnswer(_roundId, {
|
@@ -1011,7 +1057,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1011
1057
|
async getRoundData(_roundId, overrides) {
|
1012
1058
|
const ethCallContext = {
|
1013
1059
|
chainId: this.context.chainId,
|
1014
|
-
blockTag: this.context.blockNumber.toString(16),
|
1060
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1015
1061
|
address: this.context.address,
|
1016
1062
|
};
|
1017
1063
|
return await this.view.getRoundData(_roundId, {
|
@@ -1022,7 +1068,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1022
1068
|
async getTimestamp(_roundId, overrides) {
|
1023
1069
|
const ethCallContext = {
|
1024
1070
|
chainId: this.context.chainId,
|
1025
|
-
blockTag: this.context.blockNumber.toString(16),
|
1071
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1026
1072
|
address: this.context.address,
|
1027
1073
|
};
|
1028
1074
|
return await this.view.getTimestamp(_roundId, {
|
@@ -1033,7 +1079,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1033
1079
|
async latestAnswer(overrides) {
|
1034
1080
|
const ethCallContext = {
|
1035
1081
|
chainId: this.context.chainId,
|
1036
|
-
blockTag: this.context.blockNumber.toString(16),
|
1082
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1037
1083
|
address: this.context.address,
|
1038
1084
|
};
|
1039
1085
|
return await this.view.latestAnswer({
|
@@ -1044,7 +1090,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1044
1090
|
async latestRound(overrides) {
|
1045
1091
|
const ethCallContext = {
|
1046
1092
|
chainId: this.context.chainId,
|
1047
|
-
blockTag: this.context.blockNumber.toString(16),
|
1093
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1048
1094
|
address: this.context.address,
|
1049
1095
|
};
|
1050
1096
|
return await this.view.latestRound({
|
@@ -1055,7 +1101,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1055
1101
|
async latestRoundData(overrides) {
|
1056
1102
|
const ethCallContext = {
|
1057
1103
|
chainId: this.context.chainId,
|
1058
|
-
blockTag: this.context.blockNumber.toString(16),
|
1104
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1059
1105
|
address: this.context.address,
|
1060
1106
|
};
|
1061
1107
|
return await this.view.latestRoundData({
|
@@ -1066,7 +1112,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1066
1112
|
async latestTimestamp(overrides) {
|
1067
1113
|
const ethCallContext = {
|
1068
1114
|
chainId: this.context.chainId,
|
1069
|
-
blockTag: this.context.blockNumber.toString(16),
|
1115
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1070
1116
|
address: this.context.address,
|
1071
1117
|
};
|
1072
1118
|
return await this.view.latestTimestamp({
|
@@ -1077,7 +1123,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1077
1123
|
async owner(overrides) {
|
1078
1124
|
const ethCallContext = {
|
1079
1125
|
chainId: this.context.chainId,
|
1080
|
-
blockTag: this.context.blockNumber.toString(16),
|
1126
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1081
1127
|
address: this.context.address,
|
1082
1128
|
};
|
1083
1129
|
return await this.view.owner({
|
@@ -1088,7 +1134,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1088
1134
|
async phaseAggregators(arg0, overrides) {
|
1089
1135
|
const ethCallContext = {
|
1090
1136
|
chainId: this.context.chainId,
|
1091
|
-
blockTag: this.context.blockNumber.toString(16),
|
1137
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1092
1138
|
address: this.context.address,
|
1093
1139
|
};
|
1094
1140
|
return await this.view.phaseAggregators(arg0, {
|
@@ -1099,7 +1145,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1099
1145
|
async phaseId(overrides) {
|
1100
1146
|
const ethCallContext = {
|
1101
1147
|
chainId: this.context.chainId,
|
1102
|
-
blockTag: this.context.blockNumber.toString(16),
|
1148
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1103
1149
|
address: this.context.address,
|
1104
1150
|
};
|
1105
1151
|
return await this.view.phaseId({
|
@@ -1110,7 +1156,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1110
1156
|
async proposedAggregator(overrides) {
|
1111
1157
|
const ethCallContext = {
|
1112
1158
|
chainId: this.context.chainId,
|
1113
|
-
blockTag: this.context.blockNumber.toString(16),
|
1159
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1114
1160
|
address: this.context.address,
|
1115
1161
|
};
|
1116
1162
|
return await this.view.proposedAggregator({
|
@@ -1121,7 +1167,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1121
1167
|
async proposedGetRoundData(_roundId, overrides) {
|
1122
1168
|
const ethCallContext = {
|
1123
1169
|
chainId: this.context.chainId,
|
1124
|
-
blockTag: this.context.blockNumber.toString(16),
|
1170
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1125
1171
|
address: this.context.address,
|
1126
1172
|
};
|
1127
1173
|
return await this.view.proposedGetRoundData(_roundId, {
|
@@ -1132,7 +1178,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1132
1178
|
async proposedLatestRoundData(overrides) {
|
1133
1179
|
const ethCallContext = {
|
1134
1180
|
chainId: this.context.chainId,
|
1135
|
-
blockTag: this.context.blockNumber.toString(16),
|
1181
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1136
1182
|
address: this.context.address,
|
1137
1183
|
};
|
1138
1184
|
return await this.view.proposedLatestRoundData({
|
@@ -1143,7 +1189,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1143
1189
|
async version(overrides) {
|
1144
1190
|
const ethCallContext = {
|
1145
1191
|
chainId: this.context.chainId,
|
1146
|
-
blockTag: this.context.blockNumber.toString(16),
|
1192
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1147
1193
|
address: this.context.address,
|
1148
1194
|
};
|
1149
1195
|
return await this.view.version({
|
@@ -1157,7 +1203,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1157
1203
|
async acceptOwnership(overrides) {
|
1158
1204
|
const ethCallContext = {
|
1159
1205
|
chainId: this.context.chainId,
|
1160
|
-
blockTag: this.context.blockNumber.toString(16),
|
1206
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1161
1207
|
address: this.context.address,
|
1162
1208
|
};
|
1163
1209
|
return await this.view.callStatic.acceptOwnership({
|
@@ -1168,7 +1214,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1168
1214
|
async confirmAggregator(_aggregator, overrides) {
|
1169
1215
|
const ethCallContext = {
|
1170
1216
|
chainId: this.context.chainId,
|
1171
|
-
blockTag: this.context.blockNumber.toString(16),
|
1217
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1172
1218
|
address: this.context.address,
|
1173
1219
|
};
|
1174
1220
|
return await this.view.callStatic.confirmAggregator(_aggregator, {
|
@@ -1179,7 +1225,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1179
1225
|
async proposeAggregator(_aggregator, overrides) {
|
1180
1226
|
const ethCallContext = {
|
1181
1227
|
chainId: this.context.chainId,
|
1182
|
-
blockTag: this.context.blockNumber.toString(16),
|
1228
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1183
1229
|
address: this.context.address,
|
1184
1230
|
};
|
1185
1231
|
return await this.view.callStatic.proposeAggregator(_aggregator, {
|
@@ -1190,7 +1236,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1190
1236
|
async setController(_accessController, overrides) {
|
1191
1237
|
const ethCallContext = {
|
1192
1238
|
chainId: this.context.chainId,
|
1193
|
-
blockTag: this.context.blockNumber.toString(16),
|
1239
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1194
1240
|
address: this.context.address,
|
1195
1241
|
};
|
1196
1242
|
return await this.view.callStatic.setController(_accessController, {
|
@@ -1201,7 +1247,7 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1201
1247
|
async transferOwnership(_to, overrides) {
|
1202
1248
|
const ethCallContext = {
|
1203
1249
|
chainId: this.context.chainId,
|
1204
|
-
blockTag: this.context.blockNumber.toString(16),
|
1250
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1205
1251
|
address: this.context.address,
|
1206
1252
|
};
|
1207
1253
|
return await this.view.callStatic.transferOwnership(_to, {
|
@@ -1215,9 +1261,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1215
1261
|
context: this.context,
|
1216
1262
|
acceptOwnership(overrides) {
|
1217
1263
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1218
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1219
|
-
this.context.blockNumber.toString(16);
|
1220
1264
|
const address = this.context.address;
|
1265
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1266
|
+
if (overrides?.blockTag) {
|
1267
|
+
blockTag =
|
1268
|
+
typeof overrides.blockTag == "string"
|
1269
|
+
? overrides.blockTag
|
1270
|
+
: "0x" + overrides.blockTag.toString(16);
|
1271
|
+
}
|
1221
1272
|
return this.view.encodeCall.acceptOwnership({
|
1222
1273
|
chainId,
|
1223
1274
|
address,
|
@@ -1226,9 +1277,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1226
1277
|
},
|
1227
1278
|
accessController(overrides) {
|
1228
1279
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1229
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1230
|
-
this.context.blockNumber.toString(16);
|
1231
1280
|
const address = this.context.address;
|
1281
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1282
|
+
if (overrides?.blockTag) {
|
1283
|
+
blockTag =
|
1284
|
+
typeof overrides.blockTag == "string"
|
1285
|
+
? overrides.blockTag
|
1286
|
+
: "0x" + overrides.blockTag.toString(16);
|
1287
|
+
}
|
1232
1288
|
return this.view.encodeCall.accessController({
|
1233
1289
|
chainId,
|
1234
1290
|
address,
|
@@ -1237,16 +1293,26 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1237
1293
|
},
|
1238
1294
|
aggregator(overrides) {
|
1239
1295
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1240
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1241
|
-
this.context.blockNumber.toString(16);
|
1242
1296
|
const address = this.context.address;
|
1297
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1298
|
+
if (overrides?.blockTag) {
|
1299
|
+
blockTag =
|
1300
|
+
typeof overrides.blockTag == "string"
|
1301
|
+
? overrides.blockTag
|
1302
|
+
: "0x" + overrides.blockTag.toString(16);
|
1303
|
+
}
|
1243
1304
|
return this.view.encodeCall.aggregator({ chainId, address, blockTag });
|
1244
1305
|
},
|
1245
1306
|
confirmAggregator(_aggregator, overrides) {
|
1246
1307
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1247
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1248
|
-
this.context.blockNumber.toString(16);
|
1249
1308
|
const address = this.context.address;
|
1309
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1310
|
+
if (overrides?.blockTag) {
|
1311
|
+
blockTag =
|
1312
|
+
typeof overrides.blockTag == "string"
|
1313
|
+
? overrides.blockTag
|
1314
|
+
: "0x" + overrides.blockTag.toString(16);
|
1315
|
+
}
|
1250
1316
|
return this.view.encodeCall.confirmAggregator(_aggregator, {
|
1251
1317
|
chainId,
|
1252
1318
|
address,
|
@@ -1255,23 +1321,38 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1255
1321
|
},
|
1256
1322
|
decimals(overrides) {
|
1257
1323
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1258
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1259
|
-
this.context.blockNumber.toString(16);
|
1260
1324
|
const address = this.context.address;
|
1325
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1326
|
+
if (overrides?.blockTag) {
|
1327
|
+
blockTag =
|
1328
|
+
typeof overrides.blockTag == "string"
|
1329
|
+
? overrides.blockTag
|
1330
|
+
: "0x" + overrides.blockTag.toString(16);
|
1331
|
+
}
|
1261
1332
|
return this.view.encodeCall.decimals({ chainId, address, blockTag });
|
1262
1333
|
},
|
1263
1334
|
description(overrides) {
|
1264
1335
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1265
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1266
|
-
this.context.blockNumber.toString(16);
|
1267
1336
|
const address = this.context.address;
|
1337
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1338
|
+
if (overrides?.blockTag) {
|
1339
|
+
blockTag =
|
1340
|
+
typeof overrides.blockTag == "string"
|
1341
|
+
? overrides.blockTag
|
1342
|
+
: "0x" + overrides.blockTag.toString(16);
|
1343
|
+
}
|
1268
1344
|
return this.view.encodeCall.description({ chainId, address, blockTag });
|
1269
1345
|
},
|
1270
1346
|
getAnswer(_roundId, overrides) {
|
1271
1347
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1272
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1273
|
-
this.context.blockNumber.toString(16);
|
1274
1348
|
const address = this.context.address;
|
1349
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1350
|
+
if (overrides?.blockTag) {
|
1351
|
+
blockTag =
|
1352
|
+
typeof overrides.blockTag == "string"
|
1353
|
+
? overrides.blockTag
|
1354
|
+
: "0x" + overrides.blockTag.toString(16);
|
1355
|
+
}
|
1275
1356
|
return this.view.encodeCall.getAnswer(_roundId, {
|
1276
1357
|
chainId,
|
1277
1358
|
address,
|
@@ -1280,9 +1361,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1280
1361
|
},
|
1281
1362
|
getRoundData(_roundId, overrides) {
|
1282
1363
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1283
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1284
|
-
this.context.blockNumber.toString(16);
|
1285
1364
|
const address = this.context.address;
|
1365
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1366
|
+
if (overrides?.blockTag) {
|
1367
|
+
blockTag =
|
1368
|
+
typeof overrides.blockTag == "string"
|
1369
|
+
? overrides.blockTag
|
1370
|
+
: "0x" + overrides.blockTag.toString(16);
|
1371
|
+
}
|
1286
1372
|
return this.view.encodeCall.getRoundData(_roundId, {
|
1287
1373
|
chainId,
|
1288
1374
|
address,
|
@@ -1291,9 +1377,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1291
1377
|
},
|
1292
1378
|
getTimestamp(_roundId, overrides) {
|
1293
1379
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1294
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1295
|
-
this.context.blockNumber.toString(16);
|
1296
1380
|
const address = this.context.address;
|
1381
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1382
|
+
if (overrides?.blockTag) {
|
1383
|
+
blockTag =
|
1384
|
+
typeof overrides.blockTag == "string"
|
1385
|
+
? overrides.blockTag
|
1386
|
+
: "0x" + overrides.blockTag.toString(16);
|
1387
|
+
}
|
1297
1388
|
return this.view.encodeCall.getTimestamp(_roundId, {
|
1298
1389
|
chainId,
|
1299
1390
|
address,
|
@@ -1302,23 +1393,38 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1302
1393
|
},
|
1303
1394
|
latestAnswer(overrides) {
|
1304
1395
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1305
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1306
|
-
this.context.blockNumber.toString(16);
|
1307
1396
|
const address = this.context.address;
|
1397
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1398
|
+
if (overrides?.blockTag) {
|
1399
|
+
blockTag =
|
1400
|
+
typeof overrides.blockTag == "string"
|
1401
|
+
? overrides.blockTag
|
1402
|
+
: "0x" + overrides.blockTag.toString(16);
|
1403
|
+
}
|
1308
1404
|
return this.view.encodeCall.latestAnswer({ chainId, address, blockTag });
|
1309
1405
|
},
|
1310
1406
|
latestRound(overrides) {
|
1311
1407
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1312
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1313
|
-
this.context.blockNumber.toString(16);
|
1314
1408
|
const address = this.context.address;
|
1409
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1410
|
+
if (overrides?.blockTag) {
|
1411
|
+
blockTag =
|
1412
|
+
typeof overrides.blockTag == "string"
|
1413
|
+
? overrides.blockTag
|
1414
|
+
: "0x" + overrides.blockTag.toString(16);
|
1415
|
+
}
|
1315
1416
|
return this.view.encodeCall.latestRound({ chainId, address, blockTag });
|
1316
1417
|
},
|
1317
1418
|
latestRoundData(overrides) {
|
1318
1419
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1319
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1320
|
-
this.context.blockNumber.toString(16);
|
1321
1420
|
const address = this.context.address;
|
1421
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1422
|
+
if (overrides?.blockTag) {
|
1423
|
+
blockTag =
|
1424
|
+
typeof overrides.blockTag == "string"
|
1425
|
+
? overrides.blockTag
|
1426
|
+
: "0x" + overrides.blockTag.toString(16);
|
1427
|
+
}
|
1322
1428
|
return this.view.encodeCall.latestRoundData({
|
1323
1429
|
chainId,
|
1324
1430
|
address,
|
@@ -1327,9 +1433,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1327
1433
|
},
|
1328
1434
|
latestTimestamp(overrides) {
|
1329
1435
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1330
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1331
|
-
this.context.blockNumber.toString(16);
|
1332
1436
|
const address = this.context.address;
|
1437
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1438
|
+
if (overrides?.blockTag) {
|
1439
|
+
blockTag =
|
1440
|
+
typeof overrides.blockTag == "string"
|
1441
|
+
? overrides.blockTag
|
1442
|
+
: "0x" + overrides.blockTag.toString(16);
|
1443
|
+
}
|
1333
1444
|
return this.view.encodeCall.latestTimestamp({
|
1334
1445
|
chainId,
|
1335
1446
|
address,
|
@@ -1338,16 +1449,26 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1338
1449
|
},
|
1339
1450
|
owner(overrides) {
|
1340
1451
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1341
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1342
|
-
this.context.blockNumber.toString(16);
|
1343
1452
|
const address = this.context.address;
|
1453
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1454
|
+
if (overrides?.blockTag) {
|
1455
|
+
blockTag =
|
1456
|
+
typeof overrides.blockTag == "string"
|
1457
|
+
? overrides.blockTag
|
1458
|
+
: "0x" + overrides.blockTag.toString(16);
|
1459
|
+
}
|
1344
1460
|
return this.view.encodeCall.owner({ chainId, address, blockTag });
|
1345
1461
|
},
|
1346
1462
|
phaseAggregators(arg0, overrides) {
|
1347
1463
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1348
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1349
|
-
this.context.blockNumber.toString(16);
|
1350
1464
|
const address = this.context.address;
|
1465
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1466
|
+
if (overrides?.blockTag) {
|
1467
|
+
blockTag =
|
1468
|
+
typeof overrides.blockTag == "string"
|
1469
|
+
? overrides.blockTag
|
1470
|
+
: "0x" + overrides.blockTag.toString(16);
|
1471
|
+
}
|
1351
1472
|
return this.view.encodeCall.phaseAggregators(arg0, {
|
1352
1473
|
chainId,
|
1353
1474
|
address,
|
@@ -1356,16 +1477,26 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1356
1477
|
},
|
1357
1478
|
phaseId(overrides) {
|
1358
1479
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1359
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1360
|
-
this.context.blockNumber.toString(16);
|
1361
1480
|
const address = this.context.address;
|
1481
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1482
|
+
if (overrides?.blockTag) {
|
1483
|
+
blockTag =
|
1484
|
+
typeof overrides.blockTag == "string"
|
1485
|
+
? overrides.blockTag
|
1486
|
+
: "0x" + overrides.blockTag.toString(16);
|
1487
|
+
}
|
1362
1488
|
return this.view.encodeCall.phaseId({ chainId, address, blockTag });
|
1363
1489
|
},
|
1364
1490
|
proposeAggregator(_aggregator, overrides) {
|
1365
1491
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1366
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1367
|
-
this.context.blockNumber.toString(16);
|
1368
1492
|
const address = this.context.address;
|
1493
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1494
|
+
if (overrides?.blockTag) {
|
1495
|
+
blockTag =
|
1496
|
+
typeof overrides.blockTag == "string"
|
1497
|
+
? overrides.blockTag
|
1498
|
+
: "0x" + overrides.blockTag.toString(16);
|
1499
|
+
}
|
1369
1500
|
return this.view.encodeCall.proposeAggregator(_aggregator, {
|
1370
1501
|
chainId,
|
1371
1502
|
address,
|
@@ -1374,9 +1505,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1374
1505
|
},
|
1375
1506
|
proposedAggregator(overrides) {
|
1376
1507
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1377
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1378
|
-
this.context.blockNumber.toString(16);
|
1379
1508
|
const address = this.context.address;
|
1509
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1510
|
+
if (overrides?.blockTag) {
|
1511
|
+
blockTag =
|
1512
|
+
typeof overrides.blockTag == "string"
|
1513
|
+
? overrides.blockTag
|
1514
|
+
: "0x" + overrides.blockTag.toString(16);
|
1515
|
+
}
|
1380
1516
|
return this.view.encodeCall.proposedAggregator({
|
1381
1517
|
chainId,
|
1382
1518
|
address,
|
@@ -1385,9 +1521,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1385
1521
|
},
|
1386
1522
|
proposedGetRoundData(_roundId, overrides) {
|
1387
1523
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1388
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1389
|
-
this.context.blockNumber.toString(16);
|
1390
1524
|
const address = this.context.address;
|
1525
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1526
|
+
if (overrides?.blockTag) {
|
1527
|
+
blockTag =
|
1528
|
+
typeof overrides.blockTag == "string"
|
1529
|
+
? overrides.blockTag
|
1530
|
+
: "0x" + overrides.blockTag.toString(16);
|
1531
|
+
}
|
1391
1532
|
return this.view.encodeCall.proposedGetRoundData(_roundId, {
|
1392
1533
|
chainId,
|
1393
1534
|
address,
|
@@ -1396,9 +1537,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1396
1537
|
},
|
1397
1538
|
proposedLatestRoundData(overrides) {
|
1398
1539
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1399
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1400
|
-
this.context.blockNumber.toString(16);
|
1401
1540
|
const address = this.context.address;
|
1541
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1542
|
+
if (overrides?.blockTag) {
|
1543
|
+
blockTag =
|
1544
|
+
typeof overrides.blockTag == "string"
|
1545
|
+
? overrides.blockTag
|
1546
|
+
: "0x" + overrides.blockTag.toString(16);
|
1547
|
+
}
|
1402
1548
|
return this.view.encodeCall.proposedLatestRoundData({
|
1403
1549
|
chainId,
|
1404
1550
|
address,
|
@@ -1407,9 +1553,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1407
1553
|
},
|
1408
1554
|
setController(_accessController, overrides) {
|
1409
1555
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1410
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1411
|
-
this.context.blockNumber.toString(16);
|
1412
1556
|
const address = this.context.address;
|
1557
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1558
|
+
if (overrides?.blockTag) {
|
1559
|
+
blockTag =
|
1560
|
+
typeof overrides.blockTag == "string"
|
1561
|
+
? overrides.blockTag
|
1562
|
+
: "0x" + overrides.blockTag.toString(16);
|
1563
|
+
}
|
1413
1564
|
return this.view.encodeCall.setController(_accessController, {
|
1414
1565
|
chainId,
|
1415
1566
|
address,
|
@@ -1418,9 +1569,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1418
1569
|
},
|
1419
1570
|
transferOwnership(_to, overrides) {
|
1420
1571
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1421
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1422
|
-
this.context.blockNumber.toString(16);
|
1423
1572
|
const address = this.context.address;
|
1573
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1574
|
+
if (overrides?.blockTag) {
|
1575
|
+
blockTag =
|
1576
|
+
typeof overrides.blockTag == "string"
|
1577
|
+
? overrides.blockTag
|
1578
|
+
: "0x" + overrides.blockTag.toString(16);
|
1579
|
+
}
|
1424
1580
|
return this.view.encodeCall.transferOwnership(_to, {
|
1425
1581
|
chainId,
|
1426
1582
|
address,
|
@@ -1429,9 +1585,14 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1429
1585
|
},
|
1430
1586
|
version(overrides) {
|
1431
1587
|
const chainId = overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1432
|
-
const blockTag = overrides?.blockTag?.toString() ??
|
1433
|
-
this.context.blockNumber.toString(16);
|
1434
1588
|
const address = this.context.address;
|
1589
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1590
|
+
if (overrides?.blockTag) {
|
1591
|
+
blockTag =
|
1592
|
+
typeof overrides.blockTag == "string"
|
1593
|
+
? overrides.blockTag
|
1594
|
+
: "0x" + overrides.blockTag.toString(16);
|
1595
|
+
}
|
1435
1596
|
return this.view.encodeCall.version({ chainId, address, blockTag });
|
1436
1597
|
},
|
1437
1598
|
};
|