@sentio/sdk 2.40.0-rc.4 → 2.40.0-rc.41
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/aptos/aptos-processor.d.ts +1 -1
- package/lib/aptos/aptos-processor.d.ts.map +1 -1
- package/lib/aptos/aptos-processor.js +1 -1
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/context.d.ts +2 -2
- package/lib/aptos/context.d.ts.map +1 -1
- package/lib/aptos/context.js +1 -1
- package/lib/aptos/ext/aptos-dex.d.ts +1 -1
- package/lib/aptos/ext/aptos-dex.d.ts.map +1 -1
- package/lib/aptos/ext/aptos-dex.js +1 -1
- package/lib/aptos/ext/aptos-dex.js.map +1 -1
- package/lib/aptos/ext/coin-event.d.ts +1 -1
- package/lib/aptos/ext/coin-event.d.ts.map +1 -1
- package/lib/aptos/ext/coin.js +2 -2
- package/lib/aptos/ext/coin.js.map +1 -1
- package/lib/aptos/move-coder.d.ts.map +1 -1
- package/lib/aptos/move-coder.js +6 -5
- package/lib/aptos/move-coder.js.map +1 -1
- package/lib/aptos/network.d.ts +2 -0
- package/lib/aptos/network.d.ts.map +1 -1
- package/lib/aptos/network.js +7 -1
- package/lib/aptos/network.js.map +1 -1
- package/lib/eth/account-processor.d.ts +21 -7
- package/lib/eth/account-processor.d.ts.map +1 -1
- package/lib/eth/account-processor.js +2 -2
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +24 -8
- package/lib/eth/base-processor-template.d.ts.map +1 -1
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +30 -10
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +6 -6
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +100 -31
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +1226 -46
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +55 -16
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +486 -16
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +79 -24
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +985 -36
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +46 -13
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +485 -18
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +67 -20
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +784 -28
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +64 -19
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +574 -22
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/event-handler.js +1 -1
- package/lib/eth/codegen/file.d.ts.map +1 -1
- package/lib/eth/codegen/file.js +21 -3
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/codegen/function-calls.d.ts +4 -0
- package/lib/eth/codegen/function-calls.d.ts.map +1 -1
- package/lib/eth/codegen/function-calls.js +80 -5
- package/lib/eth/codegen/function-calls.js.map +1 -1
- package/lib/eth/codegen/types.d.ts +1 -0
- package/lib/eth/codegen/types.d.ts.map +1 -1
- package/lib/eth/codegen/types.js +13 -0
- package/lib/eth/codegen/types.js.map +1 -1
- package/lib/eth/context.d.ts +4 -0
- package/lib/eth/context.d.ts.map +1 -1
- package/lib/eth/context.js +4 -0
- package/lib/eth/context.js.map +1 -1
- package/lib/eth/eth-plugin.d.ts +27 -9
- package/lib/eth/eth-plugin.d.ts.map +1 -1
- package/lib/eth/eth-plugin.js +20 -17
- package/lib/eth/eth-plugin.js.map +1 -1
- package/lib/eth/eth.d.ts.map +1 -1
- package/lib/eth/eth.js +1 -1
- package/lib/eth/eth.js.map +1 -1
- package/lib/eth/generic-processor.js +1 -1
- package/lib/eth/generic-processor.js.map +1 -1
- package/lib/eth/generic-processor.test.js.map +1 -1
- package/lib/eth/index.d.ts +2 -1
- package/lib/eth/index.d.ts.map +1 -1
- package/lib/eth/index.js +2 -1
- package/lib/eth/index.js.map +1 -1
- package/lib/solana/builtin/spl-token-processor.d.ts +1 -1
- package/lib/solana/builtin/spl-token-processor.d.ts.map +1 -1
- package/lib/solana/builtin/spl-token-processor.js +1 -1
- package/lib/solana/builtin/spl-token-processor.js.map +1 -1
- package/lib/solana/solana-context.d.ts +1 -1
- package/lib/solana/solana-context.js +2 -2
- package/lib/stark/codegen/codegen.d.ts +2 -0
- package/lib/stark/codegen/codegen.d.ts.map +1 -0
- package/lib/stark/codegen/codegen.js +109 -0
- package/lib/stark/codegen/codegen.js.map +1 -0
- package/lib/stark/codegen/index.d.ts +2 -0
- package/lib/stark/codegen/index.d.ts.map +1 -0
- package/lib/stark/codegen/index.js +2 -0
- package/lib/stark/codegen/index.js.map +1 -0
- package/lib/stark/codegen/run.d.ts +2 -0
- package/lib/stark/codegen/run.d.ts.map +1 -0
- package/lib/stark/codegen/run.js +11 -0
- package/lib/stark/codegen/run.js.map +1 -0
- package/lib/stark/codegen/utils.d.ts +2 -0
- package/lib/stark/codegen/utils.d.ts.map +1 -0
- package/lib/stark/codegen/utils.js +4 -0
- package/lib/stark/codegen/utils.js.map +1 -0
- package/lib/stark/context.d.ts +28 -0
- package/lib/stark/context.d.ts.map +1 -0
- package/lib/stark/context.js +59 -0
- package/lib/stark/context.js.map +1 -0
- package/lib/stark/contract.d.ts +12 -0
- package/lib/stark/contract.d.ts.map +1 -0
- package/lib/stark/contract.js +43 -0
- package/lib/stark/contract.js.map +1 -0
- package/lib/stark/event.d.ts +7 -0
- package/lib/stark/event.d.ts.map +1 -0
- package/lib/stark/event.js +11 -0
- package/lib/stark/event.js.map +1 -0
- package/lib/stark/index.d.ts +7 -0
- package/lib/stark/index.d.ts.map +1 -0
- package/lib/stark/index.js +7 -0
- package/lib/stark/index.js.map +1 -0
- package/lib/stark/starknet-plugin.d.ts +17 -0
- package/lib/stark/starknet-plugin.d.ts.map +1 -0
- package/lib/stark/starknet-plugin.js +78 -0
- package/lib/stark/starknet-plugin.js.map +1 -0
- package/lib/stark/starknet-processor.d.ts +32 -0
- package/lib/stark/starknet-processor.d.ts.map +1 -0
- package/lib/stark/starknet-processor.js +111 -0
- package/lib/stark/starknet-processor.js.map +1 -0
- package/lib/stark/types.d.ts +11 -0
- package/lib/stark/types.d.ts.map +1 -0
- package/lib/stark/types.js +2 -0
- package/lib/stark/types.js.map +1 -0
- package/lib/store/cache.d.ts +14 -0
- package/lib/store/cache.d.ts.map +1 -0
- package/lib/store/cache.js +35 -0
- package/lib/store/cache.js.map +1 -0
- package/lib/store/store.d.ts +2 -3
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +34 -9
- package/lib/store/store.js.map +1 -1
- package/lib/sui/context.d.ts +1 -1
- package/lib/sui/context.d.ts.map +1 -1
- package/lib/sui/sui-processor.d.ts +1 -1
- package/lib/sui/sui-processor.d.ts.map +1 -1
- package/lib/sui/sui-processor.js +1 -1
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/testing/aptos-facet.d.ts +1 -1
- package/lib/testing/aptos-facet.js +2 -2
- package/lib/testing/starknet-facet.d.ts +9 -0
- package/lib/testing/starknet-facet.d.ts.map +1 -0
- package/lib/testing/starknet-facet.js +52 -0
- package/lib/testing/starknet-facet.js.map +1 -0
- package/lib/testing/sui-facet.js +1 -1
- package/lib/testing/test-processor-server.d.ts +2 -0
- package/lib/testing/test-processor-server.d.ts.map +1 -1
- package/lib/testing/test-processor-server.js +3 -0
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/tsup.config.ts +3 -15
- package/lib/utils/dex-price.d.ts +1 -0
- package/lib/utils/dex-price.d.ts.map +1 -1
- package/lib/utils/dex-price.js +13 -2
- package/lib/utils/dex-price.js.map +1 -1
- package/package.json +21 -10
- package/src/aptos/aptos-processor.ts +1 -1
- package/src/aptos/context.ts +2 -2
- package/src/aptos/ext/aptos-dex.ts +1 -1
- package/src/aptos/ext/coin-event.ts +1 -1
- package/src/aptos/ext/coin.ts +2 -2
- package/src/aptos/move-coder.ts +7 -5
- package/src/aptos/network.ts +7 -1
- package/src/bundle.config.ts +23 -0
- package/src/eth/account-processor.ts +28 -12
- package/src/eth/base-processor-template.ts +16 -8
- package/src/eth/base-processor.ts +25 -16
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +1554 -123
- package/src/eth/builtin/internal/erc1155-processor.ts +659 -42
- package/src/eth/builtin/internal/erc20-processor.ts +1266 -90
- package/src/eth/builtin/internal/erc20bytes-processor.ts +639 -49
- package/src/eth/builtin/internal/erc721-processor.ts +1035 -70
- package/src/eth/builtin/internal/weth9-processor.ts +758 -63
- package/src/eth/codegen/event-handler.ts +1 -1
- package/src/eth/codegen/file.ts +26 -3
- package/src/eth/codegen/function-calls.ts +96 -8
- package/src/eth/codegen/types.ts +22 -1
- package/src/eth/context.ts +7 -0
- package/src/eth/eth-plugin.ts +34 -26
- package/src/eth/eth.ts +1 -2
- package/src/eth/generic-processor.ts +1 -1
- package/src/eth/index.ts +5 -1
- package/src/solana/builtin/spl-token-processor.ts +1 -1
- package/src/solana/solana-context.ts +2 -2
- package/src/stark/codegen/codegen.ts +124 -0
- package/src/stark/codegen/index.ts +1 -0
- package/src/stark/codegen/run.ts +10 -0
- package/src/stark/codegen/utils.ts +3 -0
- package/src/stark/context.ts +78 -0
- package/src/stark/contract.ts +55 -0
- package/src/stark/event.ts +7 -0
- package/src/stark/index.ts +9 -0
- package/src/stark/starknet-plugin.ts +108 -0
- package/src/stark/starknet-processor.ts +140 -0
- package/src/stark/types.ts +11 -0
- package/src/store/cache.ts +46 -0
- package/src/store/store.ts +40 -22
- package/src/sui/context.ts +1 -1
- package/src/sui/sui-processor.ts +1 -1
- package/src/testing/aptos-facet.ts +2 -2
- package/src/testing/starknet-facet.ts +61 -0
- package/src/testing/sui-facet.ts +1 -1
- package/src/testing/test-processor-server.ts +3 -0
- package/src/tsup.config.ts +3 -15
- package/src/utils/dex-price.ts +15 -2
- package/lib/eth/provider.d.ts +0 -5
- package/lib/eth/provider.d.ts.map +0 -1
- package/lib/eth/provider.js +0 -134
- package/lib/eth/provider.js.map +0 -1
- package/lib/utils/chainlink-oracles-sepolia.csv +0 -19
- package/lib/utils/chainlink-oracles.csv +0 -217
- package/src/eth/provider.ts +0 -163
@@ -1,7 +1,7 @@
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
2
2
|
/* tslint:disable */
|
3
3
|
/* eslint-disable */
|
4
|
-
import { BigNumberish, Overrides } from "ethers";
|
4
|
+
import { BigNumberish, Overrides, Interface } from "ethers";
|
5
5
|
import {
|
6
6
|
addContractByABI,
|
7
7
|
getContractByABI,
|
@@ -21,7 +21,9 @@ import {
|
|
21
21
|
EthContext,
|
22
22
|
EthFetchConfig,
|
23
23
|
PreprocessResult,
|
24
|
+
makeEthCallKey,
|
24
25
|
} from "@sentio/sdk/eth";
|
26
|
+
import { EthCallParam, EthCallContext, PreparedData } from "@sentio/protos";
|
25
27
|
|
26
28
|
import { EACAggregatorProxy__factory } from "./index.js";
|
27
29
|
import {
|
@@ -197,8 +199,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
197
199
|
this.callStatic.contract = contract;
|
198
200
|
}
|
199
201
|
|
200
|
-
async accessController(
|
202
|
+
async accessController(
|
203
|
+
overrides?: Overrides,
|
204
|
+
preparedData?: PreparedData,
|
205
|
+
ethCallContext?: EthCallContext
|
206
|
+
): Promise<string> {
|
201
207
|
try {
|
208
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
209
|
+
const iface = new Interface([
|
210
|
+
"function accessController() view returns (address)",
|
211
|
+
]);
|
212
|
+
const calldata = iface.encodeFunctionData("accessController", []);
|
213
|
+
const key = makeEthCallKey({
|
214
|
+
context: ethCallContext,
|
215
|
+
calldata,
|
216
|
+
});
|
217
|
+
const ret = preparedData.ethCallResults[key];
|
218
|
+
if (ret) {
|
219
|
+
const result = iface
|
220
|
+
.decodeFunctionResult("accessController", ret)
|
221
|
+
.toArray();
|
222
|
+
return result.length == 1 ? result[0] : result;
|
223
|
+
}
|
224
|
+
}
|
202
225
|
return await this.contract.getFunction("accessController()")(
|
203
226
|
overrides || {}
|
204
227
|
);
|
@@ -208,8 +231,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
208
231
|
}
|
209
232
|
}
|
210
233
|
|
211
|
-
async aggregator(
|
234
|
+
async aggregator(
|
235
|
+
overrides?: Overrides,
|
236
|
+
preparedData?: PreparedData,
|
237
|
+
ethCallContext?: EthCallContext
|
238
|
+
): Promise<string> {
|
212
239
|
try {
|
240
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
241
|
+
const iface = new Interface([
|
242
|
+
"function aggregator() view returns (address)",
|
243
|
+
]);
|
244
|
+
const calldata = iface.encodeFunctionData("aggregator", []);
|
245
|
+
const key = makeEthCallKey({
|
246
|
+
context: ethCallContext,
|
247
|
+
calldata,
|
248
|
+
});
|
249
|
+
const ret = preparedData.ethCallResults[key];
|
250
|
+
if (ret) {
|
251
|
+
const result = iface
|
252
|
+
.decodeFunctionResult("aggregator", ret)
|
253
|
+
.toArray();
|
254
|
+
return result.length == 1 ? result[0] : result;
|
255
|
+
}
|
256
|
+
}
|
213
257
|
return await this.contract.getFunction("aggregator()")(overrides || {});
|
214
258
|
} catch (e) {
|
215
259
|
const stack = new Error().stack;
|
@@ -217,8 +261,27 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
217
261
|
}
|
218
262
|
}
|
219
263
|
|
220
|
-
async decimals(
|
264
|
+
async decimals(
|
265
|
+
overrides?: Overrides,
|
266
|
+
preparedData?: PreparedData,
|
267
|
+
ethCallContext?: EthCallContext
|
268
|
+
): Promise<bigint> {
|
221
269
|
try {
|
270
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
271
|
+
const iface = new Interface([
|
272
|
+
"function decimals() view returns (uint8)",
|
273
|
+
]);
|
274
|
+
const calldata = iface.encodeFunctionData("decimals", []);
|
275
|
+
const key = makeEthCallKey({
|
276
|
+
context: ethCallContext,
|
277
|
+
calldata,
|
278
|
+
});
|
279
|
+
const ret = preparedData.ethCallResults[key];
|
280
|
+
if (ret) {
|
281
|
+
const result = iface.decodeFunctionResult("decimals", ret).toArray();
|
282
|
+
return result.length == 1 ? result[0] : result;
|
283
|
+
}
|
284
|
+
}
|
222
285
|
return await this.contract.getFunction("decimals()")(overrides || {});
|
223
286
|
} catch (e) {
|
224
287
|
const stack = new Error().stack;
|
@@ -226,8 +289,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
226
289
|
}
|
227
290
|
}
|
228
291
|
|
229
|
-
async description(
|
292
|
+
async description(
|
293
|
+
overrides?: Overrides,
|
294
|
+
preparedData?: PreparedData,
|
295
|
+
ethCallContext?: EthCallContext
|
296
|
+
): Promise<string> {
|
230
297
|
try {
|
298
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
299
|
+
const iface = new Interface([
|
300
|
+
"function description() view returns (string)",
|
301
|
+
]);
|
302
|
+
const calldata = iface.encodeFunctionData("description", []);
|
303
|
+
const key = makeEthCallKey({
|
304
|
+
context: ethCallContext,
|
305
|
+
calldata,
|
306
|
+
});
|
307
|
+
const ret = preparedData.ethCallResults[key];
|
308
|
+
if (ret) {
|
309
|
+
const result = iface
|
310
|
+
.decodeFunctionResult("description", ret)
|
311
|
+
.toArray();
|
312
|
+
return result.length == 1 ? result[0] : result;
|
313
|
+
}
|
314
|
+
}
|
231
315
|
return await this.contract.getFunction("description()")(overrides || {});
|
232
316
|
} catch (e) {
|
233
317
|
const stack = new Error().stack;
|
@@ -237,9 +321,26 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
237
321
|
|
238
322
|
async getAnswer(
|
239
323
|
_roundId: BigNumberish,
|
240
|
-
overrides?: Overrides
|
324
|
+
overrides?: Overrides,
|
325
|
+
preparedData?: PreparedData,
|
326
|
+
ethCallContext?: EthCallContext
|
241
327
|
): Promise<bigint> {
|
242
328
|
try {
|
329
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
330
|
+
const iface = new Interface([
|
331
|
+
"function getAnswer(uint256) view returns (int256)",
|
332
|
+
]);
|
333
|
+
const calldata = iface.encodeFunctionData("getAnswer", [_roundId]);
|
334
|
+
const key = makeEthCallKey({
|
335
|
+
context: ethCallContext,
|
336
|
+
calldata,
|
337
|
+
});
|
338
|
+
const ret = preparedData.ethCallResults[key];
|
339
|
+
if (ret) {
|
340
|
+
const result = iface.decodeFunctionResult("getAnswer", ret).toArray();
|
341
|
+
return result.length == 1 ? result[0] : result;
|
342
|
+
}
|
343
|
+
}
|
243
344
|
return await this.contract.getFunction("getAnswer(uint256)")(
|
244
345
|
_roundId,
|
245
346
|
overrides || {}
|
@@ -252,7 +353,9 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
252
353
|
|
253
354
|
async getRoundData(
|
254
355
|
_roundId: BigNumberish,
|
255
|
-
overrides?: Overrides
|
356
|
+
overrides?: Overrides,
|
357
|
+
preparedData?: PreparedData,
|
358
|
+
ethCallContext?: EthCallContext
|
256
359
|
): Promise<
|
257
360
|
[bigint, bigint, bigint, bigint, bigint] & {
|
258
361
|
roundId: bigint;
|
@@ -263,6 +366,23 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
263
366
|
}
|
264
367
|
> {
|
265
368
|
try {
|
369
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
370
|
+
const iface = new Interface([
|
371
|
+
"function getRoundData(uint80) view returns (uint80,int256,uint256,uint256,uint80)",
|
372
|
+
]);
|
373
|
+
const calldata = iface.encodeFunctionData("getRoundData", [_roundId]);
|
374
|
+
const key = makeEthCallKey({
|
375
|
+
context: ethCallContext,
|
376
|
+
calldata,
|
377
|
+
});
|
378
|
+
const ret = preparedData.ethCallResults[key];
|
379
|
+
if (ret) {
|
380
|
+
const result = iface
|
381
|
+
.decodeFunctionResult("getRoundData", ret)
|
382
|
+
.toArray();
|
383
|
+
return result.length == 1 ? result[0] : result;
|
384
|
+
}
|
385
|
+
}
|
266
386
|
return await this.contract.getFunction("getRoundData(uint80)")(
|
267
387
|
_roundId,
|
268
388
|
overrides || {}
|
@@ -275,9 +395,28 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
275
395
|
|
276
396
|
async getTimestamp(
|
277
397
|
_roundId: BigNumberish,
|
278
|
-
overrides?: Overrides
|
398
|
+
overrides?: Overrides,
|
399
|
+
preparedData?: PreparedData,
|
400
|
+
ethCallContext?: EthCallContext
|
279
401
|
): Promise<bigint> {
|
280
402
|
try {
|
403
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
404
|
+
const iface = new Interface([
|
405
|
+
"function getTimestamp(uint256) view returns (uint256)",
|
406
|
+
]);
|
407
|
+
const calldata = iface.encodeFunctionData("getTimestamp", [_roundId]);
|
408
|
+
const key = makeEthCallKey({
|
409
|
+
context: ethCallContext,
|
410
|
+
calldata,
|
411
|
+
});
|
412
|
+
const ret = preparedData.ethCallResults[key];
|
413
|
+
if (ret) {
|
414
|
+
const result = iface
|
415
|
+
.decodeFunctionResult("getTimestamp", ret)
|
416
|
+
.toArray();
|
417
|
+
return result.length == 1 ? result[0] : result;
|
418
|
+
}
|
419
|
+
}
|
281
420
|
return await this.contract.getFunction("getTimestamp(uint256)")(
|
282
421
|
_roundId,
|
283
422
|
overrides || {}
|
@@ -288,8 +427,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
288
427
|
}
|
289
428
|
}
|
290
429
|
|
291
|
-
async latestAnswer(
|
430
|
+
async latestAnswer(
|
431
|
+
overrides?: Overrides,
|
432
|
+
preparedData?: PreparedData,
|
433
|
+
ethCallContext?: EthCallContext
|
434
|
+
): Promise<bigint> {
|
292
435
|
try {
|
436
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
437
|
+
const iface = new Interface([
|
438
|
+
"function latestAnswer() view returns (int256)",
|
439
|
+
]);
|
440
|
+
const calldata = iface.encodeFunctionData("latestAnswer", []);
|
441
|
+
const key = makeEthCallKey({
|
442
|
+
context: ethCallContext,
|
443
|
+
calldata,
|
444
|
+
});
|
445
|
+
const ret = preparedData.ethCallResults[key];
|
446
|
+
if (ret) {
|
447
|
+
const result = iface
|
448
|
+
.decodeFunctionResult("latestAnswer", ret)
|
449
|
+
.toArray();
|
450
|
+
return result.length == 1 ? result[0] : result;
|
451
|
+
}
|
452
|
+
}
|
293
453
|
return await this.contract.getFunction("latestAnswer()")(overrides || {});
|
294
454
|
} catch (e) {
|
295
455
|
const stack = new Error().stack;
|
@@ -297,8 +457,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
297
457
|
}
|
298
458
|
}
|
299
459
|
|
300
|
-
async latestRound(
|
460
|
+
async latestRound(
|
461
|
+
overrides?: Overrides,
|
462
|
+
preparedData?: PreparedData,
|
463
|
+
ethCallContext?: EthCallContext
|
464
|
+
): Promise<bigint> {
|
301
465
|
try {
|
466
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
467
|
+
const iface = new Interface([
|
468
|
+
"function latestRound() view returns (uint256)",
|
469
|
+
]);
|
470
|
+
const calldata = iface.encodeFunctionData("latestRound", []);
|
471
|
+
const key = makeEthCallKey({
|
472
|
+
context: ethCallContext,
|
473
|
+
calldata,
|
474
|
+
});
|
475
|
+
const ret = preparedData.ethCallResults[key];
|
476
|
+
if (ret) {
|
477
|
+
const result = iface
|
478
|
+
.decodeFunctionResult("latestRound", ret)
|
479
|
+
.toArray();
|
480
|
+
return result.length == 1 ? result[0] : result;
|
481
|
+
}
|
482
|
+
}
|
302
483
|
return await this.contract.getFunction("latestRound()")(overrides || {});
|
303
484
|
} catch (e) {
|
304
485
|
const stack = new Error().stack;
|
@@ -307,7 +488,9 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
307
488
|
}
|
308
489
|
|
309
490
|
async latestRoundData(
|
310
|
-
overrides?: Overrides
|
491
|
+
overrides?: Overrides,
|
492
|
+
preparedData?: PreparedData,
|
493
|
+
ethCallContext?: EthCallContext
|
311
494
|
): Promise<
|
312
495
|
[bigint, bigint, bigint, bigint, bigint] & {
|
313
496
|
roundId: bigint;
|
@@ -318,6 +501,23 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
318
501
|
}
|
319
502
|
> {
|
320
503
|
try {
|
504
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
505
|
+
const iface = new Interface([
|
506
|
+
"function latestRoundData() view returns (uint80,int256,uint256,uint256,uint80)",
|
507
|
+
]);
|
508
|
+
const calldata = iface.encodeFunctionData("latestRoundData", []);
|
509
|
+
const key = makeEthCallKey({
|
510
|
+
context: ethCallContext,
|
511
|
+
calldata,
|
512
|
+
});
|
513
|
+
const ret = preparedData.ethCallResults[key];
|
514
|
+
if (ret) {
|
515
|
+
const result = iface
|
516
|
+
.decodeFunctionResult("latestRoundData", ret)
|
517
|
+
.toArray();
|
518
|
+
return result.length == 1 ? result[0] : result;
|
519
|
+
}
|
520
|
+
}
|
321
521
|
return await this.contract.getFunction("latestRoundData()")(
|
322
522
|
overrides || {}
|
323
523
|
);
|
@@ -327,8 +527,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
327
527
|
}
|
328
528
|
}
|
329
529
|
|
330
|
-
async latestTimestamp(
|
530
|
+
async latestTimestamp(
|
531
|
+
overrides?: Overrides,
|
532
|
+
preparedData?: PreparedData,
|
533
|
+
ethCallContext?: EthCallContext
|
534
|
+
): Promise<bigint> {
|
331
535
|
try {
|
536
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
537
|
+
const iface = new Interface([
|
538
|
+
"function latestTimestamp() view returns (uint256)",
|
539
|
+
]);
|
540
|
+
const calldata = iface.encodeFunctionData("latestTimestamp", []);
|
541
|
+
const key = makeEthCallKey({
|
542
|
+
context: ethCallContext,
|
543
|
+
calldata,
|
544
|
+
});
|
545
|
+
const ret = preparedData.ethCallResults[key];
|
546
|
+
if (ret) {
|
547
|
+
const result = iface
|
548
|
+
.decodeFunctionResult("latestTimestamp", ret)
|
549
|
+
.toArray();
|
550
|
+
return result.length == 1 ? result[0] : result;
|
551
|
+
}
|
552
|
+
}
|
332
553
|
return await this.contract.getFunction("latestTimestamp()")(
|
333
554
|
overrides || {}
|
334
555
|
);
|
@@ -338,8 +559,27 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
338
559
|
}
|
339
560
|
}
|
340
561
|
|
341
|
-
async owner(
|
562
|
+
async owner(
|
563
|
+
overrides?: Overrides,
|
564
|
+
preparedData?: PreparedData,
|
565
|
+
ethCallContext?: EthCallContext
|
566
|
+
): Promise<string> {
|
342
567
|
try {
|
568
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
569
|
+
const iface = new Interface([
|
570
|
+
"function owner() view returns (address)",
|
571
|
+
]);
|
572
|
+
const calldata = iface.encodeFunctionData("owner", []);
|
573
|
+
const key = makeEthCallKey({
|
574
|
+
context: ethCallContext,
|
575
|
+
calldata,
|
576
|
+
});
|
577
|
+
const ret = preparedData.ethCallResults[key];
|
578
|
+
if (ret) {
|
579
|
+
const result = iface.decodeFunctionResult("owner", ret).toArray();
|
580
|
+
return result.length == 1 ? result[0] : result;
|
581
|
+
}
|
582
|
+
}
|
343
583
|
return await this.contract.getFunction("owner()")(overrides || {});
|
344
584
|
} catch (e) {
|
345
585
|
const stack = new Error().stack;
|
@@ -349,9 +589,28 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
349
589
|
|
350
590
|
async phaseAggregators(
|
351
591
|
arg0: BigNumberish,
|
352
|
-
overrides?: Overrides
|
592
|
+
overrides?: Overrides,
|
593
|
+
preparedData?: PreparedData,
|
594
|
+
ethCallContext?: EthCallContext
|
353
595
|
): Promise<string> {
|
354
596
|
try {
|
597
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
598
|
+
const iface = new Interface([
|
599
|
+
"function phaseAggregators(uint16) view returns (address)",
|
600
|
+
]);
|
601
|
+
const calldata = iface.encodeFunctionData("phaseAggregators", [arg0]);
|
602
|
+
const key = makeEthCallKey({
|
603
|
+
context: ethCallContext,
|
604
|
+
calldata,
|
605
|
+
});
|
606
|
+
const ret = preparedData.ethCallResults[key];
|
607
|
+
if (ret) {
|
608
|
+
const result = iface
|
609
|
+
.decodeFunctionResult("phaseAggregators", ret)
|
610
|
+
.toArray();
|
611
|
+
return result.length == 1 ? result[0] : result;
|
612
|
+
}
|
613
|
+
}
|
355
614
|
return await this.contract.getFunction("phaseAggregators(uint16)")(
|
356
615
|
arg0,
|
357
616
|
overrides || {}
|
@@ -362,8 +621,27 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
362
621
|
}
|
363
622
|
}
|
364
623
|
|
365
|
-
async phaseId(
|
624
|
+
async phaseId(
|
625
|
+
overrides?: Overrides,
|
626
|
+
preparedData?: PreparedData,
|
627
|
+
ethCallContext?: EthCallContext
|
628
|
+
): Promise<bigint> {
|
366
629
|
try {
|
630
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
631
|
+
const iface = new Interface([
|
632
|
+
"function phaseId() view returns (uint16)",
|
633
|
+
]);
|
634
|
+
const calldata = iface.encodeFunctionData("phaseId", []);
|
635
|
+
const key = makeEthCallKey({
|
636
|
+
context: ethCallContext,
|
637
|
+
calldata,
|
638
|
+
});
|
639
|
+
const ret = preparedData.ethCallResults[key];
|
640
|
+
if (ret) {
|
641
|
+
const result = iface.decodeFunctionResult("phaseId", ret).toArray();
|
642
|
+
return result.length == 1 ? result[0] : result;
|
643
|
+
}
|
644
|
+
}
|
367
645
|
return await this.contract.getFunction("phaseId()")(overrides || {});
|
368
646
|
} catch (e) {
|
369
647
|
const stack = new Error().stack;
|
@@ -371,8 +649,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
371
649
|
}
|
372
650
|
}
|
373
651
|
|
374
|
-
async proposedAggregator(
|
652
|
+
async proposedAggregator(
|
653
|
+
overrides?: Overrides,
|
654
|
+
preparedData?: PreparedData,
|
655
|
+
ethCallContext?: EthCallContext
|
656
|
+
): Promise<string> {
|
375
657
|
try {
|
658
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
659
|
+
const iface = new Interface([
|
660
|
+
"function proposedAggregator() view returns (address)",
|
661
|
+
]);
|
662
|
+
const calldata = iface.encodeFunctionData("proposedAggregator", []);
|
663
|
+
const key = makeEthCallKey({
|
664
|
+
context: ethCallContext,
|
665
|
+
calldata,
|
666
|
+
});
|
667
|
+
const ret = preparedData.ethCallResults[key];
|
668
|
+
if (ret) {
|
669
|
+
const result = iface
|
670
|
+
.decodeFunctionResult("proposedAggregator", ret)
|
671
|
+
.toArray();
|
672
|
+
return result.length == 1 ? result[0] : result;
|
673
|
+
}
|
674
|
+
}
|
376
675
|
return await this.contract.getFunction("proposedAggregator()")(
|
377
676
|
overrides || {}
|
378
677
|
);
|
@@ -384,7 +683,9 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
384
683
|
|
385
684
|
async proposedGetRoundData(
|
386
685
|
_roundId: BigNumberish,
|
387
|
-
overrides?: Overrides
|
686
|
+
overrides?: Overrides,
|
687
|
+
preparedData?: PreparedData,
|
688
|
+
ethCallContext?: EthCallContext
|
388
689
|
): Promise<
|
389
690
|
[bigint, bigint, bigint, bigint, bigint] & {
|
390
691
|
roundId: bigint;
|
@@ -395,6 +696,25 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
395
696
|
}
|
396
697
|
> {
|
397
698
|
try {
|
699
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
700
|
+
const iface = new Interface([
|
701
|
+
"function proposedGetRoundData(uint80) view returns (uint80,int256,uint256,uint256,uint80)",
|
702
|
+
]);
|
703
|
+
const calldata = iface.encodeFunctionData("proposedGetRoundData", [
|
704
|
+
_roundId,
|
705
|
+
]);
|
706
|
+
const key = makeEthCallKey({
|
707
|
+
context: ethCallContext,
|
708
|
+
calldata,
|
709
|
+
});
|
710
|
+
const ret = preparedData.ethCallResults[key];
|
711
|
+
if (ret) {
|
712
|
+
const result = iface
|
713
|
+
.decodeFunctionResult("proposedGetRoundData", ret)
|
714
|
+
.toArray();
|
715
|
+
return result.length == 1 ? result[0] : result;
|
716
|
+
}
|
717
|
+
}
|
398
718
|
return await this.contract.getFunction("proposedGetRoundData(uint80)")(
|
399
719
|
_roundId,
|
400
720
|
overrides || {}
|
@@ -406,7 +726,9 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
406
726
|
}
|
407
727
|
|
408
728
|
async proposedLatestRoundData(
|
409
|
-
overrides?: Overrides
|
729
|
+
overrides?: Overrides,
|
730
|
+
preparedData?: PreparedData,
|
731
|
+
ethCallContext?: EthCallContext
|
410
732
|
): Promise<
|
411
733
|
[bigint, bigint, bigint, bigint, bigint] & {
|
412
734
|
roundId: bigint;
|
@@ -417,6 +739,26 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
417
739
|
}
|
418
740
|
> {
|
419
741
|
try {
|
742
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
743
|
+
const iface = new Interface([
|
744
|
+
"function proposedLatestRoundData() view returns (uint80,int256,uint256,uint256,uint80)",
|
745
|
+
]);
|
746
|
+
const calldata = iface.encodeFunctionData(
|
747
|
+
"proposedLatestRoundData",
|
748
|
+
[]
|
749
|
+
);
|
750
|
+
const key = makeEthCallKey({
|
751
|
+
context: ethCallContext,
|
752
|
+
calldata,
|
753
|
+
});
|
754
|
+
const ret = preparedData.ethCallResults[key];
|
755
|
+
if (ret) {
|
756
|
+
const result = iface
|
757
|
+
.decodeFunctionResult("proposedLatestRoundData", ret)
|
758
|
+
.toArray();
|
759
|
+
return result.length == 1 ? result[0] : result;
|
760
|
+
}
|
761
|
+
}
|
420
762
|
return await this.contract.getFunction("proposedLatestRoundData()")(
|
421
763
|
overrides || {}
|
422
764
|
);
|
@@ -426,8 +768,27 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
426
768
|
}
|
427
769
|
}
|
428
770
|
|
429
|
-
async version(
|
771
|
+
async version(
|
772
|
+
overrides?: Overrides,
|
773
|
+
preparedData?: PreparedData,
|
774
|
+
ethCallContext?: EthCallContext
|
775
|
+
): Promise<bigint> {
|
430
776
|
try {
|
777
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
778
|
+
const iface = new Interface([
|
779
|
+
"function version() view returns (uint256)",
|
780
|
+
]);
|
781
|
+
const calldata = iface.encodeFunctionData("version", []);
|
782
|
+
const key = makeEthCallKey({
|
783
|
+
context: ethCallContext,
|
784
|
+
calldata,
|
785
|
+
});
|
786
|
+
const ret = preparedData.ethCallResults[key];
|
787
|
+
if (ret) {
|
788
|
+
const result = iface.decodeFunctionResult("version", ret).toArray();
|
789
|
+
return result.length == 1 ? result[0] : result;
|
790
|
+
}
|
791
|
+
}
|
431
792
|
return await this.contract.getFunction("version()")(overrides || {});
|
432
793
|
} catch (e) {
|
433
794
|
const stack = new Error().stack;
|
@@ -438,8 +799,29 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
438
799
|
callStatic = {
|
439
800
|
contract: this.contract,
|
440
801
|
|
441
|
-
async acceptOwnership(
|
802
|
+
async acceptOwnership(
|
803
|
+
overrides?: Overrides,
|
804
|
+
preparedData?: PreparedData,
|
805
|
+
ethCallContext?: EthCallContext
|
806
|
+
): Promise<void> {
|
442
807
|
try {
|
808
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
809
|
+
const iface = new Interface([
|
810
|
+
"function acceptOwnership() nonpayable returns ()",
|
811
|
+
]);
|
812
|
+
const calldata = iface.encodeFunctionData("acceptOwnership", []);
|
813
|
+
const key = makeEthCallKey({
|
814
|
+
context: ethCallContext,
|
815
|
+
calldata,
|
816
|
+
});
|
817
|
+
const ret = preparedData.ethCallResults[key];
|
818
|
+
if (ret) {
|
819
|
+
const result = iface
|
820
|
+
.decodeFunctionResult("acceptOwnership", ret)
|
821
|
+
.toArray();
|
822
|
+
return result.length == 1 ? result[0] : result;
|
823
|
+
}
|
824
|
+
}
|
443
825
|
return await this.contract
|
444
826
|
.getFunction("acceptOwnership()")
|
445
827
|
.staticCall(overrides || {});
|
@@ -450,9 +832,30 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
450
832
|
},
|
451
833
|
async confirmAggregator(
|
452
834
|
_aggregator: string,
|
453
|
-
overrides?: Overrides
|
835
|
+
overrides?: Overrides,
|
836
|
+
preparedData?: PreparedData,
|
837
|
+
ethCallContext?: EthCallContext
|
454
838
|
): Promise<void> {
|
455
839
|
try {
|
840
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
841
|
+
const iface = new Interface([
|
842
|
+
"function confirmAggregator(address) nonpayable returns ()",
|
843
|
+
]);
|
844
|
+
const calldata = iface.encodeFunctionData("confirmAggregator", [
|
845
|
+
_aggregator,
|
846
|
+
]);
|
847
|
+
const key = makeEthCallKey({
|
848
|
+
context: ethCallContext,
|
849
|
+
calldata,
|
850
|
+
});
|
851
|
+
const ret = preparedData.ethCallResults[key];
|
852
|
+
if (ret) {
|
853
|
+
const result = iface
|
854
|
+
.decodeFunctionResult("confirmAggregator", ret)
|
855
|
+
.toArray();
|
856
|
+
return result.length == 1 ? result[0] : result;
|
857
|
+
}
|
858
|
+
}
|
456
859
|
return await this.contract
|
457
860
|
.getFunction("confirmAggregator(address)")
|
458
861
|
.staticCall(_aggregator, overrides || {});
|
@@ -463,9 +866,30 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
463
866
|
},
|
464
867
|
async proposeAggregator(
|
465
868
|
_aggregator: string,
|
466
|
-
overrides?: Overrides
|
869
|
+
overrides?: Overrides,
|
870
|
+
preparedData?: PreparedData,
|
871
|
+
ethCallContext?: EthCallContext
|
467
872
|
): Promise<void> {
|
468
873
|
try {
|
874
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
875
|
+
const iface = new Interface([
|
876
|
+
"function proposeAggregator(address) nonpayable returns ()",
|
877
|
+
]);
|
878
|
+
const calldata = iface.encodeFunctionData("proposeAggregator", [
|
879
|
+
_aggregator,
|
880
|
+
]);
|
881
|
+
const key = makeEthCallKey({
|
882
|
+
context: ethCallContext,
|
883
|
+
calldata,
|
884
|
+
});
|
885
|
+
const ret = preparedData.ethCallResults[key];
|
886
|
+
if (ret) {
|
887
|
+
const result = iface
|
888
|
+
.decodeFunctionResult("proposeAggregator", ret)
|
889
|
+
.toArray();
|
890
|
+
return result.length == 1 ? result[0] : result;
|
891
|
+
}
|
892
|
+
}
|
469
893
|
return await this.contract
|
470
894
|
.getFunction("proposeAggregator(address)")
|
471
895
|
.staticCall(_aggregator, overrides || {});
|
@@ -476,9 +900,30 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
476
900
|
},
|
477
901
|
async setController(
|
478
902
|
_accessController: string,
|
479
|
-
overrides?: Overrides
|
903
|
+
overrides?: Overrides,
|
904
|
+
preparedData?: PreparedData,
|
905
|
+
ethCallContext?: EthCallContext
|
480
906
|
): Promise<void> {
|
481
907
|
try {
|
908
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
909
|
+
const iface = new Interface([
|
910
|
+
"function setController(address) nonpayable returns ()",
|
911
|
+
]);
|
912
|
+
const calldata = iface.encodeFunctionData("setController", [
|
913
|
+
_accessController,
|
914
|
+
]);
|
915
|
+
const key = makeEthCallKey({
|
916
|
+
context: ethCallContext,
|
917
|
+
calldata,
|
918
|
+
});
|
919
|
+
const ret = preparedData.ethCallResults[key];
|
920
|
+
if (ret) {
|
921
|
+
const result = iface
|
922
|
+
.decodeFunctionResult("setController", ret)
|
923
|
+
.toArray();
|
924
|
+
return result.length == 1 ? result[0] : result;
|
925
|
+
}
|
926
|
+
}
|
482
927
|
return await this.contract
|
483
928
|
.getFunction("setController(address)")
|
484
929
|
.staticCall(_accessController, overrides || {});
|
@@ -487,8 +932,30 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
487
932
|
throw transformEtherError(e, undefined, stack);
|
488
933
|
}
|
489
934
|
},
|
490
|
-
async transferOwnership(
|
935
|
+
async transferOwnership(
|
936
|
+
_to: string,
|
937
|
+
overrides?: Overrides,
|
938
|
+
preparedData?: PreparedData,
|
939
|
+
ethCallContext?: EthCallContext
|
940
|
+
): Promise<void> {
|
491
941
|
try {
|
942
|
+
if (preparedData?.ethCallResults && ethCallContext) {
|
943
|
+
const iface = new Interface([
|
944
|
+
"function transferOwnership(address) nonpayable returns ()",
|
945
|
+
]);
|
946
|
+
const calldata = iface.encodeFunctionData("transferOwnership", [_to]);
|
947
|
+
const key = makeEthCallKey({
|
948
|
+
context: ethCallContext,
|
949
|
+
calldata,
|
950
|
+
});
|
951
|
+
const ret = preparedData.ethCallResults[key];
|
952
|
+
if (ret) {
|
953
|
+
const result = iface
|
954
|
+
.decodeFunctionResult("transferOwnership", ret)
|
955
|
+
.toArray();
|
956
|
+
return result.length == 1 ? result[0] : result;
|
957
|
+
}
|
958
|
+
}
|
492
959
|
return await this.contract
|
493
960
|
.getFunction("transferOwnership(address)")
|
494
961
|
.staticCall(_to, overrides || {});
|
@@ -498,6 +965,346 @@ export class EACAggregatorProxyContractView extends ContractView<EACAggregatorPr
|
|
498
965
|
}
|
499
966
|
},
|
500
967
|
};
|
968
|
+
|
969
|
+
encodeCall = {
|
970
|
+
acceptOwnership(ethCallContext: EthCallContext): EthCallParam {
|
971
|
+
try {
|
972
|
+
const iface = new Interface(["function acceptOwnership()"]);
|
973
|
+
const calldata = iface.encodeFunctionData("acceptOwnership", []);
|
974
|
+
return {
|
975
|
+
context: ethCallContext,
|
976
|
+
calldata,
|
977
|
+
};
|
978
|
+
} catch (e) {
|
979
|
+
const stack = new Error().stack;
|
980
|
+
throw transformEtherError(e, undefined, stack);
|
981
|
+
}
|
982
|
+
},
|
983
|
+
accessController(ethCallContext: EthCallContext): EthCallParam {
|
984
|
+
try {
|
985
|
+
const iface = new Interface(["function accessController()"]);
|
986
|
+
const calldata = iface.encodeFunctionData("accessController", []);
|
987
|
+
return {
|
988
|
+
context: ethCallContext,
|
989
|
+
calldata,
|
990
|
+
};
|
991
|
+
} catch (e) {
|
992
|
+
const stack = new Error().stack;
|
993
|
+
throw transformEtherError(e, undefined, stack);
|
994
|
+
}
|
995
|
+
},
|
996
|
+
aggregator(ethCallContext: EthCallContext): EthCallParam {
|
997
|
+
try {
|
998
|
+
const iface = new Interface(["function aggregator()"]);
|
999
|
+
const calldata = iface.encodeFunctionData("aggregator", []);
|
1000
|
+
return {
|
1001
|
+
context: ethCallContext,
|
1002
|
+
calldata,
|
1003
|
+
};
|
1004
|
+
} catch (e) {
|
1005
|
+
const stack = new Error().stack;
|
1006
|
+
throw transformEtherError(e, undefined, stack);
|
1007
|
+
}
|
1008
|
+
},
|
1009
|
+
confirmAggregator(
|
1010
|
+
_aggregator: string,
|
1011
|
+
ethCallContext: EthCallContext
|
1012
|
+
): EthCallParam {
|
1013
|
+
try {
|
1014
|
+
const iface = new Interface(["function confirmAggregator(address)"]);
|
1015
|
+
const calldata = iface.encodeFunctionData("confirmAggregator", [
|
1016
|
+
_aggregator,
|
1017
|
+
]);
|
1018
|
+
return {
|
1019
|
+
context: ethCallContext,
|
1020
|
+
calldata,
|
1021
|
+
};
|
1022
|
+
} catch (e) {
|
1023
|
+
const stack = new Error().stack;
|
1024
|
+
throw transformEtherError(e, undefined, stack);
|
1025
|
+
}
|
1026
|
+
},
|
1027
|
+
decimals(ethCallContext: EthCallContext): EthCallParam {
|
1028
|
+
try {
|
1029
|
+
const iface = new Interface(["function decimals()"]);
|
1030
|
+
const calldata = iface.encodeFunctionData("decimals", []);
|
1031
|
+
return {
|
1032
|
+
context: ethCallContext,
|
1033
|
+
calldata,
|
1034
|
+
};
|
1035
|
+
} catch (e) {
|
1036
|
+
const stack = new Error().stack;
|
1037
|
+
throw transformEtherError(e, undefined, stack);
|
1038
|
+
}
|
1039
|
+
},
|
1040
|
+
description(ethCallContext: EthCallContext): EthCallParam {
|
1041
|
+
try {
|
1042
|
+
const iface = new Interface(["function description()"]);
|
1043
|
+
const calldata = iface.encodeFunctionData("description", []);
|
1044
|
+
return {
|
1045
|
+
context: ethCallContext,
|
1046
|
+
calldata,
|
1047
|
+
};
|
1048
|
+
} catch (e) {
|
1049
|
+
const stack = new Error().stack;
|
1050
|
+
throw transformEtherError(e, undefined, stack);
|
1051
|
+
}
|
1052
|
+
},
|
1053
|
+
getAnswer(
|
1054
|
+
_roundId: BigNumberish,
|
1055
|
+
ethCallContext: EthCallContext
|
1056
|
+
): EthCallParam {
|
1057
|
+
try {
|
1058
|
+
const iface = new Interface(["function getAnswer(uint256)"]);
|
1059
|
+
const calldata = iface.encodeFunctionData("getAnswer", [_roundId]);
|
1060
|
+
return {
|
1061
|
+
context: ethCallContext,
|
1062
|
+
calldata,
|
1063
|
+
};
|
1064
|
+
} catch (e) {
|
1065
|
+
const stack = new Error().stack;
|
1066
|
+
throw transformEtherError(e, undefined, stack);
|
1067
|
+
}
|
1068
|
+
},
|
1069
|
+
getRoundData(
|
1070
|
+
_roundId: BigNumberish,
|
1071
|
+
ethCallContext: EthCallContext
|
1072
|
+
): EthCallParam {
|
1073
|
+
try {
|
1074
|
+
const iface = new Interface(["function getRoundData(uint80)"]);
|
1075
|
+
const calldata = iface.encodeFunctionData("getRoundData", [_roundId]);
|
1076
|
+
return {
|
1077
|
+
context: ethCallContext,
|
1078
|
+
calldata,
|
1079
|
+
};
|
1080
|
+
} catch (e) {
|
1081
|
+
const stack = new Error().stack;
|
1082
|
+
throw transformEtherError(e, undefined, stack);
|
1083
|
+
}
|
1084
|
+
},
|
1085
|
+
getTimestamp(
|
1086
|
+
_roundId: BigNumberish,
|
1087
|
+
ethCallContext: EthCallContext
|
1088
|
+
): EthCallParam {
|
1089
|
+
try {
|
1090
|
+
const iface = new Interface(["function getTimestamp(uint256)"]);
|
1091
|
+
const calldata = iface.encodeFunctionData("getTimestamp", [_roundId]);
|
1092
|
+
return {
|
1093
|
+
context: ethCallContext,
|
1094
|
+
calldata,
|
1095
|
+
};
|
1096
|
+
} catch (e) {
|
1097
|
+
const stack = new Error().stack;
|
1098
|
+
throw transformEtherError(e, undefined, stack);
|
1099
|
+
}
|
1100
|
+
},
|
1101
|
+
latestAnswer(ethCallContext: EthCallContext): EthCallParam {
|
1102
|
+
try {
|
1103
|
+
const iface = new Interface(["function latestAnswer()"]);
|
1104
|
+
const calldata = iface.encodeFunctionData("latestAnswer", []);
|
1105
|
+
return {
|
1106
|
+
context: ethCallContext,
|
1107
|
+
calldata,
|
1108
|
+
};
|
1109
|
+
} catch (e) {
|
1110
|
+
const stack = new Error().stack;
|
1111
|
+
throw transformEtherError(e, undefined, stack);
|
1112
|
+
}
|
1113
|
+
},
|
1114
|
+
latestRound(ethCallContext: EthCallContext): EthCallParam {
|
1115
|
+
try {
|
1116
|
+
const iface = new Interface(["function latestRound()"]);
|
1117
|
+
const calldata = iface.encodeFunctionData("latestRound", []);
|
1118
|
+
return {
|
1119
|
+
context: ethCallContext,
|
1120
|
+
calldata,
|
1121
|
+
};
|
1122
|
+
} catch (e) {
|
1123
|
+
const stack = new Error().stack;
|
1124
|
+
throw transformEtherError(e, undefined, stack);
|
1125
|
+
}
|
1126
|
+
},
|
1127
|
+
latestRoundData(ethCallContext: EthCallContext): EthCallParam {
|
1128
|
+
try {
|
1129
|
+
const iface = new Interface(["function latestRoundData()"]);
|
1130
|
+
const calldata = iface.encodeFunctionData("latestRoundData", []);
|
1131
|
+
return {
|
1132
|
+
context: ethCallContext,
|
1133
|
+
calldata,
|
1134
|
+
};
|
1135
|
+
} catch (e) {
|
1136
|
+
const stack = new Error().stack;
|
1137
|
+
throw transformEtherError(e, undefined, stack);
|
1138
|
+
}
|
1139
|
+
},
|
1140
|
+
latestTimestamp(ethCallContext: EthCallContext): EthCallParam {
|
1141
|
+
try {
|
1142
|
+
const iface = new Interface(["function latestTimestamp()"]);
|
1143
|
+
const calldata = iface.encodeFunctionData("latestTimestamp", []);
|
1144
|
+
return {
|
1145
|
+
context: ethCallContext,
|
1146
|
+
calldata,
|
1147
|
+
};
|
1148
|
+
} catch (e) {
|
1149
|
+
const stack = new Error().stack;
|
1150
|
+
throw transformEtherError(e, undefined, stack);
|
1151
|
+
}
|
1152
|
+
},
|
1153
|
+
owner(ethCallContext: EthCallContext): EthCallParam {
|
1154
|
+
try {
|
1155
|
+
const iface = new Interface(["function owner()"]);
|
1156
|
+
const calldata = iface.encodeFunctionData("owner", []);
|
1157
|
+
return {
|
1158
|
+
context: ethCallContext,
|
1159
|
+
calldata,
|
1160
|
+
};
|
1161
|
+
} catch (e) {
|
1162
|
+
const stack = new Error().stack;
|
1163
|
+
throw transformEtherError(e, undefined, stack);
|
1164
|
+
}
|
1165
|
+
},
|
1166
|
+
phaseAggregators(
|
1167
|
+
arg0: BigNumberish,
|
1168
|
+
ethCallContext: EthCallContext
|
1169
|
+
): EthCallParam {
|
1170
|
+
try {
|
1171
|
+
const iface = new Interface(["function phaseAggregators(uint16)"]);
|
1172
|
+
const calldata = iface.encodeFunctionData("phaseAggregators", [arg0]);
|
1173
|
+
return {
|
1174
|
+
context: ethCallContext,
|
1175
|
+
calldata,
|
1176
|
+
};
|
1177
|
+
} catch (e) {
|
1178
|
+
const stack = new Error().stack;
|
1179
|
+
throw transformEtherError(e, undefined, stack);
|
1180
|
+
}
|
1181
|
+
},
|
1182
|
+
phaseId(ethCallContext: EthCallContext): EthCallParam {
|
1183
|
+
try {
|
1184
|
+
const iface = new Interface(["function phaseId()"]);
|
1185
|
+
const calldata = iface.encodeFunctionData("phaseId", []);
|
1186
|
+
return {
|
1187
|
+
context: ethCallContext,
|
1188
|
+
calldata,
|
1189
|
+
};
|
1190
|
+
} catch (e) {
|
1191
|
+
const stack = new Error().stack;
|
1192
|
+
throw transformEtherError(e, undefined, stack);
|
1193
|
+
}
|
1194
|
+
},
|
1195
|
+
proposeAggregator(
|
1196
|
+
_aggregator: string,
|
1197
|
+
ethCallContext: EthCallContext
|
1198
|
+
): EthCallParam {
|
1199
|
+
try {
|
1200
|
+
const iface = new Interface(["function proposeAggregator(address)"]);
|
1201
|
+
const calldata = iface.encodeFunctionData("proposeAggregator", [
|
1202
|
+
_aggregator,
|
1203
|
+
]);
|
1204
|
+
return {
|
1205
|
+
context: ethCallContext,
|
1206
|
+
calldata,
|
1207
|
+
};
|
1208
|
+
} catch (e) {
|
1209
|
+
const stack = new Error().stack;
|
1210
|
+
throw transformEtherError(e, undefined, stack);
|
1211
|
+
}
|
1212
|
+
},
|
1213
|
+
proposedAggregator(ethCallContext: EthCallContext): EthCallParam {
|
1214
|
+
try {
|
1215
|
+
const iface = new Interface(["function proposedAggregator()"]);
|
1216
|
+
const calldata = iface.encodeFunctionData("proposedAggregator", []);
|
1217
|
+
return {
|
1218
|
+
context: ethCallContext,
|
1219
|
+
calldata,
|
1220
|
+
};
|
1221
|
+
} catch (e) {
|
1222
|
+
const stack = new Error().stack;
|
1223
|
+
throw transformEtherError(e, undefined, stack);
|
1224
|
+
}
|
1225
|
+
},
|
1226
|
+
proposedGetRoundData(
|
1227
|
+
_roundId: BigNumberish,
|
1228
|
+
ethCallContext: EthCallContext
|
1229
|
+
): EthCallParam {
|
1230
|
+
try {
|
1231
|
+
const iface = new Interface(["function proposedGetRoundData(uint80)"]);
|
1232
|
+
const calldata = iface.encodeFunctionData("proposedGetRoundData", [
|
1233
|
+
_roundId,
|
1234
|
+
]);
|
1235
|
+
return {
|
1236
|
+
context: ethCallContext,
|
1237
|
+
calldata,
|
1238
|
+
};
|
1239
|
+
} catch (e) {
|
1240
|
+
const stack = new Error().stack;
|
1241
|
+
throw transformEtherError(e, undefined, stack);
|
1242
|
+
}
|
1243
|
+
},
|
1244
|
+
proposedLatestRoundData(ethCallContext: EthCallContext): EthCallParam {
|
1245
|
+
try {
|
1246
|
+
const iface = new Interface(["function proposedLatestRoundData()"]);
|
1247
|
+
const calldata = iface.encodeFunctionData(
|
1248
|
+
"proposedLatestRoundData",
|
1249
|
+
[]
|
1250
|
+
);
|
1251
|
+
return {
|
1252
|
+
context: ethCallContext,
|
1253
|
+
calldata,
|
1254
|
+
};
|
1255
|
+
} catch (e) {
|
1256
|
+
const stack = new Error().stack;
|
1257
|
+
throw transformEtherError(e, undefined, stack);
|
1258
|
+
}
|
1259
|
+
},
|
1260
|
+
setController(
|
1261
|
+
_accessController: string,
|
1262
|
+
ethCallContext: EthCallContext
|
1263
|
+
): EthCallParam {
|
1264
|
+
try {
|
1265
|
+
const iface = new Interface(["function setController(address)"]);
|
1266
|
+
const calldata = iface.encodeFunctionData("setController", [
|
1267
|
+
_accessController,
|
1268
|
+
]);
|
1269
|
+
return {
|
1270
|
+
context: ethCallContext,
|
1271
|
+
calldata,
|
1272
|
+
};
|
1273
|
+
} catch (e) {
|
1274
|
+
const stack = new Error().stack;
|
1275
|
+
throw transformEtherError(e, undefined, stack);
|
1276
|
+
}
|
1277
|
+
},
|
1278
|
+
transferOwnership(
|
1279
|
+
_to: string,
|
1280
|
+
ethCallContext: EthCallContext
|
1281
|
+
): EthCallParam {
|
1282
|
+
try {
|
1283
|
+
const iface = new Interface(["function transferOwnership(address)"]);
|
1284
|
+
const calldata = iface.encodeFunctionData("transferOwnership", [_to]);
|
1285
|
+
return {
|
1286
|
+
context: ethCallContext,
|
1287
|
+
calldata,
|
1288
|
+
};
|
1289
|
+
} catch (e) {
|
1290
|
+
const stack = new Error().stack;
|
1291
|
+
throw transformEtherError(e, undefined, stack);
|
1292
|
+
}
|
1293
|
+
},
|
1294
|
+
version(ethCallContext: EthCallContext): EthCallParam {
|
1295
|
+
try {
|
1296
|
+
const iface = new Interface(["function version()"]);
|
1297
|
+
const calldata = iface.encodeFunctionData("version", []);
|
1298
|
+
return {
|
1299
|
+
context: ethCallContext,
|
1300
|
+
calldata,
|
1301
|
+
};
|
1302
|
+
} catch (e) {
|
1303
|
+
const stack = new Error().stack;
|
1304
|
+
throw transformEtherError(e, undefined, stack);
|
1305
|
+
}
|
1306
|
+
},
|
1307
|
+
};
|
501
1308
|
}
|
502
1309
|
|
503
1310
|
export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
@@ -505,41 +1312,87 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
505
1312
|
EACAggregatorProxyContractView
|
506
1313
|
> {
|
507
1314
|
async accessController(overrides?: Overrides): Promise<string> {
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
1315
|
+
const ethCallContext = {
|
1316
|
+
chainId: this.context.chainId,
|
1317
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1318
|
+
address: this.context.address,
|
1319
|
+
};
|
1320
|
+
return await this.view.accessController(
|
1321
|
+
{
|
1322
|
+
blockTag: this.context.blockNumber,
|
1323
|
+
...overrides,
|
1324
|
+
},
|
1325
|
+
this.context.preparedData,
|
1326
|
+
ethCallContext
|
1327
|
+
);
|
512
1328
|
}
|
513
1329
|
|
514
1330
|
async aggregator(overrides?: Overrides): Promise<string> {
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
1331
|
+
const ethCallContext = {
|
1332
|
+
chainId: this.context.chainId,
|
1333
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1334
|
+
address: this.context.address,
|
1335
|
+
};
|
1336
|
+
return await this.view.aggregator(
|
1337
|
+
{
|
1338
|
+
blockTag: this.context.blockNumber,
|
1339
|
+
...overrides,
|
1340
|
+
},
|
1341
|
+
this.context.preparedData,
|
1342
|
+
ethCallContext
|
1343
|
+
);
|
519
1344
|
}
|
520
1345
|
|
521
1346
|
async decimals(overrides?: Overrides): Promise<bigint> {
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
1347
|
+
const ethCallContext = {
|
1348
|
+
chainId: this.context.chainId,
|
1349
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1350
|
+
address: this.context.address,
|
1351
|
+
};
|
1352
|
+
return await this.view.decimals(
|
1353
|
+
{
|
1354
|
+
blockTag: this.context.blockNumber,
|
1355
|
+
...overrides,
|
1356
|
+
},
|
1357
|
+
this.context.preparedData,
|
1358
|
+
ethCallContext
|
1359
|
+
);
|
526
1360
|
}
|
527
1361
|
|
528
1362
|
async description(overrides?: Overrides): Promise<string> {
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
1363
|
+
const ethCallContext = {
|
1364
|
+
chainId: this.context.chainId,
|
1365
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1366
|
+
address: this.context.address,
|
1367
|
+
};
|
1368
|
+
return await this.view.description(
|
1369
|
+
{
|
1370
|
+
blockTag: this.context.blockNumber,
|
1371
|
+
...overrides,
|
1372
|
+
},
|
1373
|
+
this.context.preparedData,
|
1374
|
+
ethCallContext
|
1375
|
+
);
|
533
1376
|
}
|
534
1377
|
|
535
1378
|
async getAnswer(
|
536
1379
|
_roundId: BigNumberish,
|
537
1380
|
overrides?: Overrides
|
538
1381
|
): Promise<bigint> {
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
1382
|
+
const ethCallContext = {
|
1383
|
+
chainId: this.context.chainId,
|
1384
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1385
|
+
address: this.context.address,
|
1386
|
+
};
|
1387
|
+
return await this.view.getAnswer(
|
1388
|
+
_roundId,
|
1389
|
+
{
|
1390
|
+
blockTag: this.context.blockNumber,
|
1391
|
+
...overrides,
|
1392
|
+
},
|
1393
|
+
this.context.preparedData,
|
1394
|
+
ethCallContext
|
1395
|
+
);
|
543
1396
|
}
|
544
1397
|
|
545
1398
|
async getRoundData(
|
@@ -554,34 +1407,72 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
554
1407
|
answeredInRound: bigint;
|
555
1408
|
}
|
556
1409
|
> {
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
1410
|
+
const ethCallContext = {
|
1411
|
+
chainId: this.context.chainId,
|
1412
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1413
|
+
address: this.context.address,
|
1414
|
+
};
|
1415
|
+
return await this.view.getRoundData(
|
1416
|
+
_roundId,
|
1417
|
+
{
|
1418
|
+
blockTag: this.context.blockNumber,
|
1419
|
+
...overrides,
|
1420
|
+
},
|
1421
|
+
this.context.preparedData,
|
1422
|
+
ethCallContext
|
1423
|
+
);
|
561
1424
|
}
|
562
1425
|
|
563
1426
|
async getTimestamp(
|
564
1427
|
_roundId: BigNumberish,
|
565
1428
|
overrides?: Overrides
|
566
1429
|
): Promise<bigint> {
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
1430
|
+
const ethCallContext = {
|
1431
|
+
chainId: this.context.chainId,
|
1432
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1433
|
+
address: this.context.address,
|
1434
|
+
};
|
1435
|
+
return await this.view.getTimestamp(
|
1436
|
+
_roundId,
|
1437
|
+
{
|
1438
|
+
blockTag: this.context.blockNumber,
|
1439
|
+
...overrides,
|
1440
|
+
},
|
1441
|
+
this.context.preparedData,
|
1442
|
+
ethCallContext
|
1443
|
+
);
|
571
1444
|
}
|
572
1445
|
|
573
1446
|
async latestAnswer(overrides?: Overrides): Promise<bigint> {
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
1447
|
+
const ethCallContext = {
|
1448
|
+
chainId: this.context.chainId,
|
1449
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1450
|
+
address: this.context.address,
|
1451
|
+
};
|
1452
|
+
return await this.view.latestAnswer(
|
1453
|
+
{
|
1454
|
+
blockTag: this.context.blockNumber,
|
1455
|
+
...overrides,
|
1456
|
+
},
|
1457
|
+
this.context.preparedData,
|
1458
|
+
ethCallContext
|
1459
|
+
);
|
578
1460
|
}
|
579
1461
|
|
580
1462
|
async latestRound(overrides?: Overrides): Promise<bigint> {
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
1463
|
+
const ethCallContext = {
|
1464
|
+
chainId: this.context.chainId,
|
1465
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1466
|
+
address: this.context.address,
|
1467
|
+
};
|
1468
|
+
return await this.view.latestRound(
|
1469
|
+
{
|
1470
|
+
blockTag: this.context.blockNumber,
|
1471
|
+
...overrides,
|
1472
|
+
},
|
1473
|
+
this.context.preparedData,
|
1474
|
+
ethCallContext
|
1475
|
+
);
|
585
1476
|
}
|
586
1477
|
|
587
1478
|
async latestRoundData(
|
@@ -595,48 +1486,103 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
595
1486
|
answeredInRound: bigint;
|
596
1487
|
}
|
597
1488
|
> {
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
1489
|
+
const ethCallContext = {
|
1490
|
+
chainId: this.context.chainId,
|
1491
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1492
|
+
address: this.context.address,
|
1493
|
+
};
|
1494
|
+
return await this.view.latestRoundData(
|
1495
|
+
{
|
1496
|
+
blockTag: this.context.blockNumber,
|
1497
|
+
...overrides,
|
1498
|
+
},
|
1499
|
+
this.context.preparedData,
|
1500
|
+
ethCallContext
|
1501
|
+
);
|
602
1502
|
}
|
603
1503
|
|
604
1504
|
async latestTimestamp(overrides?: Overrides): Promise<bigint> {
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
1505
|
+
const ethCallContext = {
|
1506
|
+
chainId: this.context.chainId,
|
1507
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1508
|
+
address: this.context.address,
|
1509
|
+
};
|
1510
|
+
return await this.view.latestTimestamp(
|
1511
|
+
{
|
1512
|
+
blockTag: this.context.blockNumber,
|
1513
|
+
...overrides,
|
1514
|
+
},
|
1515
|
+
this.context.preparedData,
|
1516
|
+
ethCallContext
|
1517
|
+
);
|
609
1518
|
}
|
610
1519
|
|
611
1520
|
async owner(overrides?: Overrides): Promise<string> {
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
1521
|
+
const ethCallContext = {
|
1522
|
+
chainId: this.context.chainId,
|
1523
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1524
|
+
address: this.context.address,
|
1525
|
+
};
|
1526
|
+
return await this.view.owner(
|
1527
|
+
{
|
1528
|
+
blockTag: this.context.blockNumber,
|
1529
|
+
...overrides,
|
1530
|
+
},
|
1531
|
+
this.context.preparedData,
|
1532
|
+
ethCallContext
|
1533
|
+
);
|
616
1534
|
}
|
617
1535
|
|
618
1536
|
async phaseAggregators(
|
619
1537
|
arg0: BigNumberish,
|
620
1538
|
overrides?: Overrides
|
621
1539
|
): Promise<string> {
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
1540
|
+
const ethCallContext = {
|
1541
|
+
chainId: this.context.chainId,
|
1542
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1543
|
+
address: this.context.address,
|
1544
|
+
};
|
1545
|
+
return await this.view.phaseAggregators(
|
1546
|
+
arg0,
|
1547
|
+
{
|
1548
|
+
blockTag: this.context.blockNumber,
|
1549
|
+
...overrides,
|
1550
|
+
},
|
1551
|
+
this.context.preparedData,
|
1552
|
+
ethCallContext
|
1553
|
+
);
|
626
1554
|
}
|
627
1555
|
|
628
1556
|
async phaseId(overrides?: Overrides): Promise<bigint> {
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
1557
|
+
const ethCallContext = {
|
1558
|
+
chainId: this.context.chainId,
|
1559
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1560
|
+
address: this.context.address,
|
1561
|
+
};
|
1562
|
+
return await this.view.phaseId(
|
1563
|
+
{
|
1564
|
+
blockTag: this.context.blockNumber,
|
1565
|
+
...overrides,
|
1566
|
+
},
|
1567
|
+
this.context.preparedData,
|
1568
|
+
ethCallContext
|
1569
|
+
);
|
633
1570
|
}
|
634
1571
|
|
635
1572
|
async proposedAggregator(overrides?: Overrides): Promise<string> {
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
1573
|
+
const ethCallContext = {
|
1574
|
+
chainId: this.context.chainId,
|
1575
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1576
|
+
address: this.context.address,
|
1577
|
+
};
|
1578
|
+
return await this.view.proposedAggregator(
|
1579
|
+
{
|
1580
|
+
blockTag: this.context.blockNumber,
|
1581
|
+
...overrides,
|
1582
|
+
},
|
1583
|
+
this.context.preparedData,
|
1584
|
+
ethCallContext
|
1585
|
+
);
|
640
1586
|
}
|
641
1587
|
|
642
1588
|
async proposedGetRoundData(
|
@@ -651,10 +1597,20 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
651
1597
|
answeredInRound: bigint;
|
652
1598
|
}
|
653
1599
|
> {
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
1600
|
+
const ethCallContext = {
|
1601
|
+
chainId: this.context.chainId,
|
1602
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1603
|
+
address: this.context.address,
|
1604
|
+
};
|
1605
|
+
return await this.view.proposedGetRoundData(
|
1606
|
+
_roundId,
|
1607
|
+
{
|
1608
|
+
blockTag: this.context.blockNumber,
|
1609
|
+
...overrides,
|
1610
|
+
},
|
1611
|
+
this.context.preparedData,
|
1612
|
+
ethCallContext
|
1613
|
+
);
|
658
1614
|
}
|
659
1615
|
|
660
1616
|
async proposedLatestRoundData(
|
@@ -668,17 +1624,35 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
668
1624
|
answeredInRound: bigint;
|
669
1625
|
}
|
670
1626
|
> {
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
1627
|
+
const ethCallContext = {
|
1628
|
+
chainId: this.context.chainId,
|
1629
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1630
|
+
address: this.context.address,
|
1631
|
+
};
|
1632
|
+
return await this.view.proposedLatestRoundData(
|
1633
|
+
{
|
1634
|
+
blockTag: this.context.blockNumber,
|
1635
|
+
...overrides,
|
1636
|
+
},
|
1637
|
+
this.context.preparedData,
|
1638
|
+
ethCallContext
|
1639
|
+
);
|
675
1640
|
}
|
676
1641
|
|
677
1642
|
async version(overrides?: Overrides): Promise<bigint> {
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
1643
|
+
const ethCallContext = {
|
1644
|
+
chainId: this.context.chainId,
|
1645
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1646
|
+
address: this.context.address,
|
1647
|
+
};
|
1648
|
+
return await this.view.version(
|
1649
|
+
{
|
1650
|
+
blockTag: this.context.blockNumber,
|
1651
|
+
...overrides,
|
1652
|
+
},
|
1653
|
+
this.context.preparedData,
|
1654
|
+
ethCallContext
|
1655
|
+
);
|
682
1656
|
}
|
683
1657
|
|
684
1658
|
callStatic = {
|
@@ -686,44 +1660,493 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
686
1660
|
context: this.context,
|
687
1661
|
|
688
1662
|
async acceptOwnership(overrides?: Overrides): Promise<void> {
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
1663
|
+
const ethCallContext = {
|
1664
|
+
chainId: this.context.chainId,
|
1665
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1666
|
+
address: this.context.address,
|
1667
|
+
};
|
1668
|
+
return await this.view.callStatic.acceptOwnership(
|
1669
|
+
{
|
1670
|
+
blockTag: this.context.blockNumber,
|
1671
|
+
...overrides,
|
1672
|
+
},
|
1673
|
+
this.context.preparedData,
|
1674
|
+
ethCallContext
|
1675
|
+
);
|
693
1676
|
},
|
694
1677
|
async confirmAggregator(
|
695
1678
|
_aggregator: string,
|
696
1679
|
overrides?: Overrides
|
697
1680
|
): Promise<void> {
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
1681
|
+
const ethCallContext = {
|
1682
|
+
chainId: this.context.chainId,
|
1683
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1684
|
+
address: this.context.address,
|
1685
|
+
};
|
1686
|
+
return await this.view.callStatic.confirmAggregator(
|
1687
|
+
_aggregator,
|
1688
|
+
{
|
1689
|
+
blockTag: this.context.blockNumber,
|
1690
|
+
...overrides,
|
1691
|
+
},
|
1692
|
+
this.context.preparedData,
|
1693
|
+
ethCallContext
|
1694
|
+
);
|
702
1695
|
},
|
703
1696
|
async proposeAggregator(
|
704
1697
|
_aggregator: string,
|
705
1698
|
overrides?: Overrides
|
706
1699
|
): Promise<void> {
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
1700
|
+
const ethCallContext = {
|
1701
|
+
chainId: this.context.chainId,
|
1702
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1703
|
+
address: this.context.address,
|
1704
|
+
};
|
1705
|
+
return await this.view.callStatic.proposeAggregator(
|
1706
|
+
_aggregator,
|
1707
|
+
{
|
1708
|
+
blockTag: this.context.blockNumber,
|
1709
|
+
...overrides,
|
1710
|
+
},
|
1711
|
+
this.context.preparedData,
|
1712
|
+
ethCallContext
|
1713
|
+
);
|
711
1714
|
},
|
712
1715
|
async setController(
|
713
1716
|
_accessController: string,
|
714
1717
|
overrides?: Overrides
|
715
1718
|
): Promise<void> {
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
1719
|
+
const ethCallContext = {
|
1720
|
+
chainId: this.context.chainId,
|
1721
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1722
|
+
address: this.context.address,
|
1723
|
+
};
|
1724
|
+
return await this.view.callStatic.setController(
|
1725
|
+
_accessController,
|
1726
|
+
{
|
1727
|
+
blockTag: this.context.blockNumber,
|
1728
|
+
...overrides,
|
1729
|
+
},
|
1730
|
+
this.context.preparedData,
|
1731
|
+
ethCallContext
|
1732
|
+
);
|
720
1733
|
},
|
721
1734
|
async transferOwnership(_to: string, overrides?: Overrides): Promise<void> {
|
722
|
-
|
723
|
-
|
724
|
-
|
1735
|
+
const ethCallContext = {
|
1736
|
+
chainId: this.context.chainId,
|
1737
|
+
blockTag: "0x" + this.context.blockNumber.toString(16),
|
1738
|
+
address: this.context.address,
|
1739
|
+
};
|
1740
|
+
return await this.view.callStatic.transferOwnership(
|
1741
|
+
_to,
|
1742
|
+
{
|
1743
|
+
blockTag: this.context.blockNumber,
|
1744
|
+
...overrides,
|
1745
|
+
},
|
1746
|
+
this.context.preparedData,
|
1747
|
+
ethCallContext
|
1748
|
+
);
|
1749
|
+
},
|
1750
|
+
};
|
1751
|
+
|
1752
|
+
encodeCall = {
|
1753
|
+
view: this.view,
|
1754
|
+
context: this.context,
|
1755
|
+
|
1756
|
+
acceptOwnership(overrides?: Overrides): EthCallParam {
|
1757
|
+
const chainId =
|
1758
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1759
|
+
const address = this.context.address;
|
1760
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1761
|
+
if (overrides?.blockTag) {
|
1762
|
+
blockTag =
|
1763
|
+
typeof overrides.blockTag == "string"
|
1764
|
+
? overrides.blockTag
|
1765
|
+
: "0x" + overrides.blockTag.toString(16);
|
1766
|
+
}
|
1767
|
+
|
1768
|
+
return this.view.encodeCall.acceptOwnership({
|
1769
|
+
chainId,
|
1770
|
+
address,
|
1771
|
+
blockTag,
|
1772
|
+
});
|
1773
|
+
},
|
1774
|
+
accessController(overrides?: Overrides): EthCallParam {
|
1775
|
+
const chainId =
|
1776
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1777
|
+
const address = this.context.address;
|
1778
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1779
|
+
if (overrides?.blockTag) {
|
1780
|
+
blockTag =
|
1781
|
+
typeof overrides.blockTag == "string"
|
1782
|
+
? overrides.blockTag
|
1783
|
+
: "0x" + overrides.blockTag.toString(16);
|
1784
|
+
}
|
1785
|
+
|
1786
|
+
return this.view.encodeCall.accessController({
|
1787
|
+
chainId,
|
1788
|
+
address,
|
1789
|
+
blockTag,
|
1790
|
+
});
|
1791
|
+
},
|
1792
|
+
aggregator(overrides?: Overrides): EthCallParam {
|
1793
|
+
const chainId =
|
1794
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1795
|
+
const address = this.context.address;
|
1796
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1797
|
+
if (overrides?.blockTag) {
|
1798
|
+
blockTag =
|
1799
|
+
typeof overrides.blockTag == "string"
|
1800
|
+
? overrides.blockTag
|
1801
|
+
: "0x" + overrides.blockTag.toString(16);
|
1802
|
+
}
|
1803
|
+
|
1804
|
+
return this.view.encodeCall.aggregator({ chainId, address, blockTag });
|
1805
|
+
},
|
1806
|
+
confirmAggregator(
|
1807
|
+
_aggregator: string,
|
1808
|
+
overrides?: Overrides
|
1809
|
+
): EthCallParam {
|
1810
|
+
const chainId =
|
1811
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1812
|
+
const address = this.context.address;
|
1813
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1814
|
+
if (overrides?.blockTag) {
|
1815
|
+
blockTag =
|
1816
|
+
typeof overrides.blockTag == "string"
|
1817
|
+
? overrides.blockTag
|
1818
|
+
: "0x" + overrides.blockTag.toString(16);
|
1819
|
+
}
|
1820
|
+
|
1821
|
+
return this.view.encodeCall.confirmAggregator(_aggregator, {
|
1822
|
+
chainId,
|
1823
|
+
address,
|
1824
|
+
blockTag,
|
1825
|
+
});
|
1826
|
+
},
|
1827
|
+
decimals(overrides?: Overrides): EthCallParam {
|
1828
|
+
const chainId =
|
1829
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1830
|
+
const address = this.context.address;
|
1831
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1832
|
+
if (overrides?.blockTag) {
|
1833
|
+
blockTag =
|
1834
|
+
typeof overrides.blockTag == "string"
|
1835
|
+
? overrides.blockTag
|
1836
|
+
: "0x" + overrides.blockTag.toString(16);
|
1837
|
+
}
|
1838
|
+
|
1839
|
+
return this.view.encodeCall.decimals({ chainId, address, blockTag });
|
1840
|
+
},
|
1841
|
+
description(overrides?: Overrides): EthCallParam {
|
1842
|
+
const chainId =
|
1843
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1844
|
+
const address = this.context.address;
|
1845
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1846
|
+
if (overrides?.blockTag) {
|
1847
|
+
blockTag =
|
1848
|
+
typeof overrides.blockTag == "string"
|
1849
|
+
? overrides.blockTag
|
1850
|
+
: "0x" + overrides.blockTag.toString(16);
|
1851
|
+
}
|
1852
|
+
|
1853
|
+
return this.view.encodeCall.description({ chainId, address, blockTag });
|
1854
|
+
},
|
1855
|
+
getAnswer(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1856
|
+
const chainId =
|
1857
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
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
|
+
}
|
1866
|
+
|
1867
|
+
return this.view.encodeCall.getAnswer(_roundId, {
|
1868
|
+
chainId,
|
1869
|
+
address,
|
1870
|
+
blockTag,
|
725
1871
|
});
|
726
1872
|
},
|
1873
|
+
getRoundData(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1874
|
+
const chainId =
|
1875
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
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
|
+
}
|
1884
|
+
|
1885
|
+
return this.view.encodeCall.getRoundData(_roundId, {
|
1886
|
+
chainId,
|
1887
|
+
address,
|
1888
|
+
blockTag,
|
1889
|
+
});
|
1890
|
+
},
|
1891
|
+
getTimestamp(_roundId: BigNumberish, overrides?: Overrides): EthCallParam {
|
1892
|
+
const chainId =
|
1893
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1894
|
+
const address = this.context.address;
|
1895
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1896
|
+
if (overrides?.blockTag) {
|
1897
|
+
blockTag =
|
1898
|
+
typeof overrides.blockTag == "string"
|
1899
|
+
? overrides.blockTag
|
1900
|
+
: "0x" + overrides.blockTag.toString(16);
|
1901
|
+
}
|
1902
|
+
|
1903
|
+
return this.view.encodeCall.getTimestamp(_roundId, {
|
1904
|
+
chainId,
|
1905
|
+
address,
|
1906
|
+
blockTag,
|
1907
|
+
});
|
1908
|
+
},
|
1909
|
+
latestAnswer(overrides?: Overrides): EthCallParam {
|
1910
|
+
const chainId =
|
1911
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1912
|
+
const address = this.context.address;
|
1913
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1914
|
+
if (overrides?.blockTag) {
|
1915
|
+
blockTag =
|
1916
|
+
typeof overrides.blockTag == "string"
|
1917
|
+
? overrides.blockTag
|
1918
|
+
: "0x" + overrides.blockTag.toString(16);
|
1919
|
+
}
|
1920
|
+
|
1921
|
+
return this.view.encodeCall.latestAnswer({ chainId, address, blockTag });
|
1922
|
+
},
|
1923
|
+
latestRound(overrides?: Overrides): EthCallParam {
|
1924
|
+
const chainId =
|
1925
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1926
|
+
const address = this.context.address;
|
1927
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1928
|
+
if (overrides?.blockTag) {
|
1929
|
+
blockTag =
|
1930
|
+
typeof overrides.blockTag == "string"
|
1931
|
+
? overrides.blockTag
|
1932
|
+
: "0x" + overrides.blockTag.toString(16);
|
1933
|
+
}
|
1934
|
+
|
1935
|
+
return this.view.encodeCall.latestRound({ chainId, address, blockTag });
|
1936
|
+
},
|
1937
|
+
latestRoundData(overrides?: Overrides): EthCallParam {
|
1938
|
+
const chainId =
|
1939
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
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
|
+
}
|
1948
|
+
|
1949
|
+
return this.view.encodeCall.latestRoundData({
|
1950
|
+
chainId,
|
1951
|
+
address,
|
1952
|
+
blockTag,
|
1953
|
+
});
|
1954
|
+
},
|
1955
|
+
latestTimestamp(overrides?: Overrides): EthCallParam {
|
1956
|
+
const chainId =
|
1957
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
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
|
+
}
|
1966
|
+
|
1967
|
+
return this.view.encodeCall.latestTimestamp({
|
1968
|
+
chainId,
|
1969
|
+
address,
|
1970
|
+
blockTag,
|
1971
|
+
});
|
1972
|
+
},
|
1973
|
+
owner(overrides?: Overrides): EthCallParam {
|
1974
|
+
const chainId =
|
1975
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1976
|
+
const address = this.context.address;
|
1977
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1978
|
+
if (overrides?.blockTag) {
|
1979
|
+
blockTag =
|
1980
|
+
typeof overrides.blockTag == "string"
|
1981
|
+
? overrides.blockTag
|
1982
|
+
: "0x" + overrides.blockTag.toString(16);
|
1983
|
+
}
|
1984
|
+
|
1985
|
+
return this.view.encodeCall.owner({ chainId, address, blockTag });
|
1986
|
+
},
|
1987
|
+
phaseAggregators(arg0: BigNumberish, overrides?: Overrides): EthCallParam {
|
1988
|
+
const chainId =
|
1989
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
1990
|
+
const address = this.context.address;
|
1991
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1992
|
+
if (overrides?.blockTag) {
|
1993
|
+
blockTag =
|
1994
|
+
typeof overrides.blockTag == "string"
|
1995
|
+
? overrides.blockTag
|
1996
|
+
: "0x" + overrides.blockTag.toString(16);
|
1997
|
+
}
|
1998
|
+
|
1999
|
+
return this.view.encodeCall.phaseAggregators(arg0, {
|
2000
|
+
chainId,
|
2001
|
+
address,
|
2002
|
+
blockTag,
|
2003
|
+
});
|
2004
|
+
},
|
2005
|
+
phaseId(overrides?: Overrides): EthCallParam {
|
2006
|
+
const chainId =
|
2007
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2008
|
+
const address = this.context.address;
|
2009
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2010
|
+
if (overrides?.blockTag) {
|
2011
|
+
blockTag =
|
2012
|
+
typeof overrides.blockTag == "string"
|
2013
|
+
? overrides.blockTag
|
2014
|
+
: "0x" + overrides.blockTag.toString(16);
|
2015
|
+
}
|
2016
|
+
|
2017
|
+
return this.view.encodeCall.phaseId({ chainId, address, blockTag });
|
2018
|
+
},
|
2019
|
+
proposeAggregator(
|
2020
|
+
_aggregator: string,
|
2021
|
+
overrides?: Overrides
|
2022
|
+
): EthCallParam {
|
2023
|
+
const chainId =
|
2024
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2025
|
+
const address = this.context.address;
|
2026
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2027
|
+
if (overrides?.blockTag) {
|
2028
|
+
blockTag =
|
2029
|
+
typeof overrides.blockTag == "string"
|
2030
|
+
? overrides.blockTag
|
2031
|
+
: "0x" + overrides.blockTag.toString(16);
|
2032
|
+
}
|
2033
|
+
|
2034
|
+
return this.view.encodeCall.proposeAggregator(_aggregator, {
|
2035
|
+
chainId,
|
2036
|
+
address,
|
2037
|
+
blockTag,
|
2038
|
+
});
|
2039
|
+
},
|
2040
|
+
proposedAggregator(overrides?: Overrides): EthCallParam {
|
2041
|
+
const chainId =
|
2042
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2043
|
+
const address = this.context.address;
|
2044
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2045
|
+
if (overrides?.blockTag) {
|
2046
|
+
blockTag =
|
2047
|
+
typeof overrides.blockTag == "string"
|
2048
|
+
? overrides.blockTag
|
2049
|
+
: "0x" + overrides.blockTag.toString(16);
|
2050
|
+
}
|
2051
|
+
|
2052
|
+
return this.view.encodeCall.proposedAggregator({
|
2053
|
+
chainId,
|
2054
|
+
address,
|
2055
|
+
blockTag,
|
2056
|
+
});
|
2057
|
+
},
|
2058
|
+
proposedGetRoundData(
|
2059
|
+
_roundId: BigNumberish,
|
2060
|
+
overrides?: Overrides
|
2061
|
+
): EthCallParam {
|
2062
|
+
const chainId =
|
2063
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2064
|
+
const address = this.context.address;
|
2065
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2066
|
+
if (overrides?.blockTag) {
|
2067
|
+
blockTag =
|
2068
|
+
typeof overrides.blockTag == "string"
|
2069
|
+
? overrides.blockTag
|
2070
|
+
: "0x" + overrides.blockTag.toString(16);
|
2071
|
+
}
|
2072
|
+
|
2073
|
+
return this.view.encodeCall.proposedGetRoundData(_roundId, {
|
2074
|
+
chainId,
|
2075
|
+
address,
|
2076
|
+
blockTag,
|
2077
|
+
});
|
2078
|
+
},
|
2079
|
+
proposedLatestRoundData(overrides?: Overrides): EthCallParam {
|
2080
|
+
const chainId =
|
2081
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2082
|
+
const address = this.context.address;
|
2083
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2084
|
+
if (overrides?.blockTag) {
|
2085
|
+
blockTag =
|
2086
|
+
typeof overrides.blockTag == "string"
|
2087
|
+
? overrides.blockTag
|
2088
|
+
: "0x" + overrides.blockTag.toString(16);
|
2089
|
+
}
|
2090
|
+
|
2091
|
+
return this.view.encodeCall.proposedLatestRoundData({
|
2092
|
+
chainId,
|
2093
|
+
address,
|
2094
|
+
blockTag,
|
2095
|
+
});
|
2096
|
+
},
|
2097
|
+
setController(
|
2098
|
+
_accessController: string,
|
2099
|
+
overrides?: Overrides
|
2100
|
+
): EthCallParam {
|
2101
|
+
const chainId =
|
2102
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2103
|
+
const address = this.context.address;
|
2104
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2105
|
+
if (overrides?.blockTag) {
|
2106
|
+
blockTag =
|
2107
|
+
typeof overrides.blockTag == "string"
|
2108
|
+
? overrides.blockTag
|
2109
|
+
: "0x" + overrides.blockTag.toString(16);
|
2110
|
+
}
|
2111
|
+
|
2112
|
+
return this.view.encodeCall.setController(_accessController, {
|
2113
|
+
chainId,
|
2114
|
+
address,
|
2115
|
+
blockTag,
|
2116
|
+
});
|
2117
|
+
},
|
2118
|
+
transferOwnership(_to: string, overrides?: Overrides): EthCallParam {
|
2119
|
+
const chainId =
|
2120
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2121
|
+
const address = this.context.address;
|
2122
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2123
|
+
if (overrides?.blockTag) {
|
2124
|
+
blockTag =
|
2125
|
+
typeof overrides.blockTag == "string"
|
2126
|
+
? overrides.blockTag
|
2127
|
+
: "0x" + overrides.blockTag.toString(16);
|
2128
|
+
}
|
2129
|
+
|
2130
|
+
return this.view.encodeCall.transferOwnership(_to, {
|
2131
|
+
chainId,
|
2132
|
+
address,
|
2133
|
+
blockTag,
|
2134
|
+
});
|
2135
|
+
},
|
2136
|
+
version(overrides?: Overrides): EthCallParam {
|
2137
|
+
const chainId =
|
2138
|
+
overrides?.chainId?.toString() ?? this.context.chainId.toString();
|
2139
|
+
const address = this.context.address;
|
2140
|
+
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
2141
|
+
if (overrides?.blockTag) {
|
2142
|
+
blockTag =
|
2143
|
+
typeof overrides.blockTag == "string"
|
2144
|
+
? overrides.blockTag
|
2145
|
+
: "0x" + overrides.blockTag.toString(16);
|
2146
|
+
}
|
2147
|
+
|
2148
|
+
return this.view.encodeCall.version({ chainId, address, blockTag });
|
2149
|
+
},
|
727
2150
|
};
|
728
2151
|
}
|
729
2152
|
|
@@ -745,7 +2168,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
745
2168
|
fetchConfig?: Partial<EthFetchConfig>,
|
746
2169
|
preprocessHandler?: (
|
747
2170
|
event: AnswerUpdatedEvent,
|
748
|
-
ctx: EACAggregatorProxyContext
|
2171
|
+
ctx: EACAggregatorProxyContext,
|
2172
|
+
preprocessStore: { [k: string]: any }
|
749
2173
|
) => Promise<PreprocessResult>
|
750
2174
|
): this {
|
751
2175
|
if (!filter) {
|
@@ -762,7 +2186,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
762
2186
|
fetchConfig?: Partial<EthFetchConfig>,
|
763
2187
|
preprocessHandler?: (
|
764
2188
|
event: NewRoundEvent,
|
765
|
-
ctx: EACAggregatorProxyContext
|
2189
|
+
ctx: EACAggregatorProxyContext,
|
2190
|
+
preprocessStore: { [k: string]: any }
|
766
2191
|
) => Promise<PreprocessResult>
|
767
2192
|
): this {
|
768
2193
|
if (!filter) {
|
@@ -786,7 +2211,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
786
2211
|
fetchConfig?: Partial<EthFetchConfig>,
|
787
2212
|
preprocessHandler?: (
|
788
2213
|
event: OwnershipTransferRequestedEvent,
|
789
|
-
ctx: EACAggregatorProxyContext
|
2214
|
+
ctx: EACAggregatorProxyContext,
|
2215
|
+
preprocessStore: { [k: string]: any }
|
790
2216
|
) => Promise<PreprocessResult>
|
791
2217
|
): this {
|
792
2218
|
if (!filter) {
|
@@ -808,7 +2234,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
808
2234
|
fetchConfig?: Partial<EthFetchConfig>,
|
809
2235
|
preprocessHandler?: (
|
810
2236
|
event: OwnershipTransferredEvent,
|
811
|
-
ctx: EACAggregatorProxyContext
|
2237
|
+
ctx: EACAggregatorProxyContext,
|
2238
|
+
preprocessStore: { [k: string]: any }
|
812
2239
|
) => Promise<PreprocessResult>
|
813
2240
|
): this {
|
814
2241
|
if (!filter) {
|
@@ -1329,7 +2756,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1329
2756
|
fetchConfig?: Partial<EthFetchConfig>,
|
1330
2757
|
preprocessHandler?: (
|
1331
2758
|
event: AnswerUpdatedEvent,
|
1332
|
-
ctx: EACAggregatorProxyContext
|
2759
|
+
ctx: EACAggregatorProxyContext,
|
2760
|
+
preprocessStore: { [k: string]: any }
|
1333
2761
|
) => Promise<PreprocessResult>
|
1334
2762
|
): this {
|
1335
2763
|
if (!filter) {
|
@@ -1346,7 +2774,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1346
2774
|
fetchConfig?: Partial<EthFetchConfig>,
|
1347
2775
|
preprocessHandler?: (
|
1348
2776
|
event: NewRoundEvent,
|
1349
|
-
ctx: EACAggregatorProxyContext
|
2777
|
+
ctx: EACAggregatorProxyContext,
|
2778
|
+
preprocessStore: { [k: string]: any }
|
1350
2779
|
) => Promise<PreprocessResult>
|
1351
2780
|
): this {
|
1352
2781
|
if (!filter) {
|
@@ -1370,7 +2799,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1370
2799
|
fetchConfig?: Partial<EthFetchConfig>,
|
1371
2800
|
preprocessHandler?: (
|
1372
2801
|
event: OwnershipTransferRequestedEvent,
|
1373
|
-
ctx: EACAggregatorProxyContext
|
2802
|
+
ctx: EACAggregatorProxyContext,
|
2803
|
+
preprocessStore: { [k: string]: any }
|
1374
2804
|
) => Promise<PreprocessResult>
|
1375
2805
|
): this {
|
1376
2806
|
if (!filter) {
|
@@ -1392,7 +2822,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1392
2822
|
fetchConfig?: Partial<EthFetchConfig>,
|
1393
2823
|
preprocessHandler?: (
|
1394
2824
|
event: OwnershipTransferredEvent,
|
1395
|
-
ctx: EACAggregatorProxyContext
|
2825
|
+
ctx: EACAggregatorProxyContext,
|
2826
|
+
preprocessStore: { [k: string]: any }
|
1396
2827
|
) => Promise<PreprocessResult>
|
1397
2828
|
): this {
|
1398
2829
|
if (!filter) {
|