@sentio/sdk 1.40.5-rc.6 → 1.41.0-rc.1
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/builtin/eacaggregatorproxy/index.js +3 -16
- package/lib/builtin/eacaggregatorproxy/index.js.map +1 -1
- package/lib/builtin/eacaggregatorproxy/test-utils.d.ts +5 -5
- package/lib/builtin/eacaggregatorproxy/test-utils.js +8 -4
- package/lib/builtin/eacaggregatorproxy/test-utils.js.map +1 -1
- package/lib/builtin/erc1155/index.js +3 -16
- package/lib/builtin/erc1155/index.js.map +1 -1
- package/lib/builtin/erc1155/test-utils.d.ts +5 -5
- package/lib/builtin/erc1155/test-utils.js +8 -4
- package/lib/builtin/erc1155/test-utils.js.map +1 -1
- package/lib/builtin/erc20/index.js +3 -16
- package/lib/builtin/erc20/index.js.map +1 -1
- package/lib/builtin/erc20/test-utils.d.ts +4 -4
- package/lib/builtin/erc20/test-utils.js +6 -3
- package/lib/builtin/erc20/test-utils.js.map +1 -1
- package/lib/builtin/erc20bytes/index.js +3 -16
- package/lib/builtin/erc20bytes/index.js.map +1 -1
- package/lib/builtin/erc20bytes/test-utils.d.ts +3 -3
- package/lib/builtin/erc20bytes/test-utils.js +4 -2
- package/lib/builtin/erc20bytes/test-utils.js.map +1 -1
- package/lib/builtin/erc721/index.js +3 -16
- package/lib/builtin/erc721/index.js.map +1 -1
- package/lib/builtin/erc721/test-utils.d.ts +4 -4
- package/lib/builtin/erc721/test-utils.js +6 -3
- package/lib/builtin/erc721/test-utils.js.map +1 -1
- package/lib/builtin/index.js +5 -27
- package/lib/builtin/index.js.map +1 -1
- package/lib/builtin/internal/EACAggregatorProxy.d.ts +19 -430
- package/lib/builtin/internal/EACAggregatorProxy.js.map +1 -1
- package/lib/builtin/internal/ERC1155.d.ts +18 -161
- package/lib/builtin/internal/ERC1155.js.map +1 -1
- package/lib/builtin/internal/ERC20.d.ts +12 -279
- package/lib/builtin/internal/ERC20.js.map +1 -1
- package/lib/builtin/internal/ERC20Bytes.d.ts +11 -146
- package/lib/builtin/internal/ERC20Bytes.js.map +1 -1
- package/lib/builtin/internal/ERC721.d.ts +12 -222
- package/lib/builtin/internal/ERC721.js.map +1 -1
- package/lib/builtin/internal/WETH9.d.ts +16 -191
- package/lib/builtin/internal/WETH9.js.map +1 -1
- package/lib/builtin/internal/common.d.ts +3 -18
- package/lib/builtin/internal/common.js +6 -0
- package/lib/builtin/internal/common.js.map +1 -1
- package/lib/builtin/internal/eacaggregatorproxy_processor.d.ts +161 -168
- package/lib/builtin/internal/eacaggregatorproxy_processor.js +94 -288
- package/lib/builtin/internal/eacaggregatorproxy_processor.js.map +1 -1
- package/lib/builtin/internal/erc1155_processor.d.ts +45 -50
- package/lib/builtin/internal/erc1155_processor.js +68 -132
- package/lib/builtin/internal/erc1155_processor.js.map +1 -1
- package/lib/builtin/internal/erc20_processor.d.ts +59 -63
- package/lib/builtin/internal/erc20_processor.js +64 -155
- package/lib/builtin/internal/erc20_processor.js.map +1 -1
- package/lib/builtin/internal/erc20bytes_processor.d.ts +37 -40
- package/lib/builtin/internal/erc20bytes_processor.js +50 -118
- package/lib/builtin/internal/erc20bytes_processor.js.map +1 -1
- package/lib/builtin/internal/erc721_processor.d.ts +56 -60
- package/lib/builtin/internal/erc721_processor.js +66 -167
- package/lib/builtin/internal/erc721_processor.js.map +1 -1
- package/lib/builtin/internal/factories/EACAggregatorProxy__factory.d.ts +1 -2
- package/lib/builtin/internal/factories/EACAggregatorProxy__factory.js +1 -1
- package/lib/builtin/internal/factories/EACAggregatorProxy__factory.js.map +1 -1
- package/lib/builtin/internal/factories/ERC1155__factory.d.ts +1 -2
- package/lib/builtin/internal/factories/ERC1155__factory.js +1 -1
- package/lib/builtin/internal/factories/ERC1155__factory.js.map +1 -1
- package/lib/builtin/internal/factories/ERC20Bytes__factory.d.ts +1 -2
- package/lib/builtin/internal/factories/ERC20Bytes__factory.js +1 -1
- package/lib/builtin/internal/factories/ERC20Bytes__factory.js.map +1 -1
- package/lib/builtin/internal/factories/ERC20__factory.d.ts +1 -2
- package/lib/builtin/internal/factories/ERC20__factory.js +1 -1
- package/lib/builtin/internal/factories/ERC20__factory.js.map +1 -1
- package/lib/builtin/internal/factories/ERC721__factory.d.ts +1 -2
- package/lib/builtin/internal/factories/ERC721__factory.js +1 -1
- package/lib/builtin/internal/factories/ERC721__factory.js.map +1 -1
- package/lib/builtin/internal/factories/WETH9__factory.d.ts +1 -2
- package/lib/builtin/internal/factories/WETH9__factory.js +1 -1
- package/lib/builtin/internal/factories/WETH9__factory.js.map +1 -1
- package/lib/builtin/internal/index.js +2 -24
- package/lib/builtin/internal/index.js.map +1 -1
- package/lib/builtin/internal/weth9_processor.d.ts +44 -49
- package/lib/builtin/internal/weth9_processor.js +70 -144
- package/lib/builtin/internal/weth9_processor.js.map +1 -1
- package/lib/builtin/weth9/index.js +3 -16
- package/lib/builtin/weth9/index.js.map +1 -1
- package/lib/builtin/weth9/test-utils.d.ts +5 -5
- package/lib/builtin/weth9/test-utils.js +8 -4
- package/lib/builtin/weth9/test-utils.js.map +1 -1
- package/lib/core/big-decimal.d.ts +6 -0
- package/lib/core/big-decimal.js +6 -2
- package/lib/core/big-decimal.js.map +1 -1
- package/lib/core/bind-options.d.ts +1 -1
- package/lib/core/bind-options.js +2 -2
- package/lib/core/bind-options.js.map +1 -1
- package/lib/core/context.d.ts +8 -14
- package/lib/core/context.js +7 -6
- package/lib/core/context.js.map +1 -1
- package/lib/core/core-plugin.d.ts +1 -1
- package/lib/core/core-plugin.js +1 -1
- package/lib/core/core-plugin.js.map +1 -1
- package/lib/core/generic-processor.test.js.map +1 -1
- package/lib/core/index.d.ts +0 -5
- package/lib/core/index.js +1 -9
- package/lib/core/index.js.map +1 -1
- package/lib/core/numberish.d.ts +2 -3
- package/lib/core/numberish.js +35 -33
- package/lib/core/numberish.js.map +1 -1
- package/lib/core/numberish.test.js.map +1 -1
- package/lib/core/sui-plugin.d.ts +1 -1
- package/lib/core/sui-plugin.js +1 -1
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/error.js +2 -2
- package/lib/error.js.map +1 -1
- package/lib/eth/account-processor-state.d.ts +5 -0
- package/lib/eth/account-processor-state.js +9 -0
- package/lib/eth/account-processor-state.js.map +1 -0
- package/lib/{core → eth}/account-processor.d.ts +4 -8
- package/lib/{core → eth}/account-processor.js +33 -42
- package/lib/eth/account-processor.js.map +1 -0
- package/lib/{core → eth}/base-processor-template.d.ts +7 -8
- package/lib/{core → eth}/base-processor-template.js +3 -3
- package/lib/eth/base-processor-template.js.map +1 -0
- package/lib/{core → eth}/base-processor.d.ts +7 -7
- package/lib/{core → eth}/base-processor.js +13 -18
- package/lib/eth/base-processor.js.map +1 -0
- package/lib/{binds.d.ts → eth/binds.d.ts} +4 -3
- package/lib/{binds.js → eth/binds.js} +3 -3
- package/lib/eth/binds.js.map +1 -0
- package/lib/{core → eth}/eth-plugin.d.ts +2 -2
- package/lib/{core → eth}/eth-plugin.js +19 -13
- package/lib/eth/eth-plugin.js.map +1 -0
- package/lib/{core → eth}/generic-processor.d.ts +3 -3
- package/lib/{core → eth}/generic-processor.js +5 -5
- package/lib/eth/generic-processor.js.map +1 -0
- package/lib/eth/index.d.ts +6 -0
- package/lib/eth/index.js +15 -0
- package/lib/eth/index.js.map +1 -0
- package/lib/eth/provider.d.ts +4 -0
- package/lib/eth/provider.js +74 -0
- package/lib/eth/provider.js.map +1 -0
- package/lib/{core → eth}/trace.d.ts +2 -2
- package/lib/{core → eth}/trace.js +0 -0
- package/lib/eth/trace.js.map +1 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +7 -23
- package/lib/index.js.map +1 -1
- package/lib/target-ethers-sentio/event-handler.d.ts +1 -0
- package/lib/target-ethers-sentio/event-handler.js +21 -5
- package/lib/target-ethers-sentio/event-handler.js.map +1 -1
- package/lib/target-ethers-sentio/file.js +59 -57
- package/lib/target-ethers-sentio/file.js.map +1 -1
- package/lib/target-ethers-sentio/functions-handler.js +7 -4
- package/lib/target-ethers-sentio/functions-handler.js.map +1 -1
- package/lib/target-ethers-sentio/index.d.ts +1 -1
- package/lib/target-ethers-sentio/index.js +3 -5
- package/lib/target-ethers-sentio/index.js.map +1 -1
- package/lib/target-ethers-sentio/view-function.js +15 -15
- package/lib/target-ethers-sentio/view-function.js.map +1 -1
- package/lib/testing/metric-utils.js +2 -2
- package/lib/testing/metric-utils.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts +11 -11
- package/lib/testing/test-processor-server.js +7 -12
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/testing/test-provider.js +1 -6
- package/lib/testing/test-provider.js.map +1 -1
- package/lib/utils/conversion.d.ts +2 -2
- package/lib/utils/conversion.js +12 -5
- package/lib/utils/conversion.js.map +1 -1
- package/lib/utils/dex-price.d.ts +1 -1
- package/lib/utils/dex-price.js +5 -6
- package/lib/utils/dex-price.js.map +1 -1
- package/lib/utils/dex-price.test.js.map +1 -1
- package/lib/utils/erc20.test.js.map +1 -1
- package/lib/utils/index.js +5 -27
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/token.d.ts +2 -3
- package/lib/utils/token.js +5 -6
- package/lib/utils/token.js.map +1 -1
- package/lib/webpack.config.js +1 -1
- package/package.json +7 -13
- package/src/builtin/eacaggregatorproxy/test-utils.ts +13 -9
- package/src/builtin/erc1155/test-utils.ts +13 -9
- package/src/builtin/erc20/test-utils.ts +10 -7
- package/src/builtin/erc20bytes/test-utils.ts +7 -5
- package/src/builtin/erc721/test-utils.ts +10 -7
- package/src/builtin/internal/EACAggregatorProxy.ts +20 -815
- package/src/builtin/internal/ERC1155.ts +20 -483
- package/src/builtin/internal/ERC20.ts +15 -641
- package/src/builtin/internal/ERC20Bytes.ts +13 -357
- package/src/builtin/internal/ERC721.ts +15 -601
- package/src/builtin/internal/WETH9.ts +20 -439
- package/src/builtin/internal/common.ts +33 -33
- package/src/builtin/internal/eacaggregatorproxy_processor.ts +344 -425
- package/src/builtin/internal/erc1155_processor.ts +202 -209
- package/src/builtin/internal/erc20_processor.ts +191 -225
- package/src/builtin/internal/erc20bytes_processor.ts +136 -165
- package/src/builtin/internal/erc721_processor.ts +218 -242
- package/src/builtin/internal/factories/EACAggregatorProxy__factory.ts +2 -3
- package/src/builtin/internal/factories/ERC1155__factory.ts +2 -3
- package/src/builtin/internal/factories/ERC20Bytes__factory.ts +2 -3
- package/src/builtin/internal/factories/ERC20__factory.ts +2 -3
- package/src/builtin/internal/factories/ERC721__factory.ts +2 -3
- package/src/builtin/internal/factories/WETH9__factory.ts +2 -3
- package/src/builtin/internal/weth9_processor.ts +176 -208
- package/src/builtin/weth9/test-utils.ts +13 -9
- package/src/core/big-decimal.ts +11 -0
- package/src/core/bind-options.ts +2 -3
- package/src/core/context.ts +14 -13
- package/src/core/core-plugin.ts +1 -1
- package/src/core/index.ts +0 -6
- package/src/core/numberish.ts +39 -40
- package/src/core/sui-plugin.ts +1 -1
- package/src/error.ts +1 -1
- package/src/eth/account-processor-state.ts +6 -0
- package/src/{core → eth}/account-processor.ts +40 -50
- package/src/{core → eth}/base-processor-template.ts +11 -12
- package/src/{core → eth}/base-processor.ts +37 -31
- package/src/{binds.ts → eth/binds.ts} +6 -5
- package/src/{core → eth}/eth-plugin.ts +19 -12
- package/src/{core → eth}/generic-processor.ts +5 -5
- package/src/eth/index.ts +6 -0
- package/src/eth/provider.ts +82 -0
- package/src/{core → eth}/trace.ts +2 -3
- package/src/index.ts +2 -3
- package/src/target-ethers-sentio/event-handler.ts +22 -5
- package/src/target-ethers-sentio/file.ts +65 -65
- package/src/target-ethers-sentio/functions-handler.ts +8 -4
- package/src/target-ethers-sentio/index.ts +1 -1
- package/src/target-ethers-sentio/view-function.ts +17 -18
- package/src/testing/metric-utils.ts +2 -2
- package/src/testing/test-processor-server.ts +23 -24
- package/src/testing/test-provider.ts +2 -7
- package/src/utils/conversion.ts +12 -5
- package/src/utils/dex-price.ts +3 -3
- package/src/utils/token.ts +10 -11
- package/src/webpack.config.js +1 -1
- package/lib/binds.js.map +0 -1
- package/lib/core/account-processor.js.map +0 -1
- package/lib/core/base-processor-template.js.map +0 -1
- package/lib/core/base-processor.js.map +0 -1
- package/lib/core/eth-plugin.js.map +0 -1
- package/lib/core/generic-processor.js.map +0 -1
- package/lib/core/trace.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import {
|
|
5
|
-
import { Networkish } from "
|
|
4
|
+
import { BigNumberish, Overrides } from "ethers";
|
|
5
|
+
import { Networkish } from "ethers/providers";
|
|
6
6
|
import {
|
|
7
7
|
addContractByABI,
|
|
8
8
|
getContractByABI,
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
getProcessor,
|
|
11
11
|
getProvider,
|
|
12
12
|
transformEtherError,
|
|
13
|
+
Trace,
|
|
13
14
|
BindOptions,
|
|
14
15
|
BaseProcessor,
|
|
15
16
|
BaseProcessorTemplate,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
toBlockTag,
|
|
22
23
|
} from "@sentio/sdk";
|
|
23
24
|
import { EthFetchConfig } from "@sentio/protos";
|
|
24
|
-
|
|
25
|
+
|
|
25
26
|
import { EACAggregatorProxy, EACAggregatorProxy__factory } from "./index";
|
|
26
27
|
import {
|
|
27
28
|
AnswerUpdatedEvent,
|
|
@@ -39,18 +40,21 @@ export interface AcceptOwnershipCallObject {}
|
|
|
39
40
|
export type AcceptOwnershipCallTrace = TypedCallTrace<
|
|
40
41
|
[],
|
|
41
42
|
AcceptOwnershipCallObject
|
|
42
|
-
|
|
43
|
+
> &
|
|
44
|
+
Trace;
|
|
43
45
|
|
|
44
46
|
export interface AccessControllerCallObject {}
|
|
45
47
|
|
|
46
48
|
export type AccessControllerCallTrace = TypedCallTrace<
|
|
47
49
|
[],
|
|
48
50
|
AccessControllerCallObject
|
|
49
|
-
|
|
51
|
+
> &
|
|
52
|
+
Trace;
|
|
50
53
|
|
|
51
54
|
export interface AggregatorCallObject {}
|
|
52
55
|
|
|
53
|
-
export type AggregatorCallTrace = TypedCallTrace<[], AggregatorCallObject
|
|
56
|
+
export type AggregatorCallTrace = TypedCallTrace<[], AggregatorCallObject> &
|
|
57
|
+
Trace;
|
|
54
58
|
|
|
55
59
|
export interface ConfirmAggregatorCallObject {
|
|
56
60
|
_aggregator: string;
|
|
@@ -59,79 +63,86 @@ export interface ConfirmAggregatorCallObject {
|
|
|
59
63
|
export type ConfirmAggregatorCallTrace = TypedCallTrace<
|
|
60
64
|
[string],
|
|
61
65
|
ConfirmAggregatorCallObject
|
|
62
|
-
|
|
66
|
+
> &
|
|
67
|
+
Trace;
|
|
63
68
|
|
|
64
69
|
export interface DecimalsCallObject {}
|
|
65
70
|
|
|
66
|
-
export type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject
|
|
71
|
+
export type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject> & Trace;
|
|
67
72
|
|
|
68
73
|
export interface DescriptionCallObject {}
|
|
69
74
|
|
|
70
|
-
export type DescriptionCallTrace = TypedCallTrace<[], DescriptionCallObject
|
|
75
|
+
export type DescriptionCallTrace = TypedCallTrace<[], DescriptionCallObject> &
|
|
76
|
+
Trace;
|
|
71
77
|
|
|
72
78
|
export interface GetAnswerCallObject {
|
|
73
|
-
_roundId:
|
|
79
|
+
_roundId: bigint;
|
|
74
80
|
}
|
|
75
81
|
|
|
76
|
-
export type GetAnswerCallTrace = TypedCallTrace<
|
|
77
|
-
|
|
78
|
-
GetAnswerCallObject
|
|
79
|
-
>;
|
|
82
|
+
export type GetAnswerCallTrace = TypedCallTrace<[bigint], GetAnswerCallObject> &
|
|
83
|
+
Trace;
|
|
80
84
|
|
|
81
85
|
export interface GetRoundDataCallObject {
|
|
82
|
-
_roundId:
|
|
86
|
+
_roundId: bigint;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
export type GetRoundDataCallTrace = TypedCallTrace<
|
|
86
|
-
[
|
|
90
|
+
[bigint],
|
|
87
91
|
GetRoundDataCallObject
|
|
88
|
-
|
|
92
|
+
> &
|
|
93
|
+
Trace;
|
|
89
94
|
|
|
90
95
|
export interface GetTimestampCallObject {
|
|
91
|
-
_roundId:
|
|
96
|
+
_roundId: bigint;
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
export type GetTimestampCallTrace = TypedCallTrace<
|
|
95
|
-
[
|
|
100
|
+
[bigint],
|
|
96
101
|
GetTimestampCallObject
|
|
97
|
-
|
|
102
|
+
> &
|
|
103
|
+
Trace;
|
|
98
104
|
|
|
99
105
|
export interface LatestAnswerCallObject {}
|
|
100
106
|
|
|
101
|
-
export type LatestAnswerCallTrace = TypedCallTrace<[], LatestAnswerCallObject
|
|
107
|
+
export type LatestAnswerCallTrace = TypedCallTrace<[], LatestAnswerCallObject> &
|
|
108
|
+
Trace;
|
|
102
109
|
|
|
103
110
|
export interface LatestRoundCallObject {}
|
|
104
111
|
|
|
105
|
-
export type LatestRoundCallTrace = TypedCallTrace<[], LatestRoundCallObject
|
|
112
|
+
export type LatestRoundCallTrace = TypedCallTrace<[], LatestRoundCallObject> &
|
|
113
|
+
Trace;
|
|
106
114
|
|
|
107
115
|
export interface LatestRoundDataCallObject {}
|
|
108
116
|
|
|
109
117
|
export type LatestRoundDataCallTrace = TypedCallTrace<
|
|
110
118
|
[],
|
|
111
119
|
LatestRoundDataCallObject
|
|
112
|
-
|
|
120
|
+
> &
|
|
121
|
+
Trace;
|
|
113
122
|
|
|
114
123
|
export interface LatestTimestampCallObject {}
|
|
115
124
|
|
|
116
125
|
export type LatestTimestampCallTrace = TypedCallTrace<
|
|
117
126
|
[],
|
|
118
127
|
LatestTimestampCallObject
|
|
119
|
-
|
|
128
|
+
> &
|
|
129
|
+
Trace;
|
|
120
130
|
|
|
121
131
|
export interface OwnerCallObject {}
|
|
122
132
|
|
|
123
|
-
export type OwnerCallTrace = TypedCallTrace<[], OwnerCallObject
|
|
133
|
+
export type OwnerCallTrace = TypedCallTrace<[], OwnerCallObject> & Trace;
|
|
124
134
|
|
|
125
135
|
export interface PhaseAggregatorsCallObject {}
|
|
126
136
|
|
|
127
137
|
export type PhaseAggregatorsCallTrace = TypedCallTrace<
|
|
128
|
-
[
|
|
138
|
+
[bigint],
|
|
129
139
|
PhaseAggregatorsCallObject
|
|
130
|
-
|
|
140
|
+
> &
|
|
141
|
+
Trace;
|
|
131
142
|
|
|
132
143
|
export interface PhaseIdCallObject {}
|
|
133
144
|
|
|
134
|
-
export type PhaseIdCallTrace = TypedCallTrace<[], PhaseIdCallObject
|
|
145
|
+
export type PhaseIdCallTrace = TypedCallTrace<[], PhaseIdCallObject> & Trace;
|
|
135
146
|
|
|
136
147
|
export interface ProposeAggregatorCallObject {
|
|
137
148
|
_aggregator: string;
|
|
@@ -140,30 +151,34 @@ export interface ProposeAggregatorCallObject {
|
|
|
140
151
|
export type ProposeAggregatorCallTrace = TypedCallTrace<
|
|
141
152
|
[string],
|
|
142
153
|
ProposeAggregatorCallObject
|
|
143
|
-
|
|
154
|
+
> &
|
|
155
|
+
Trace;
|
|
144
156
|
|
|
145
157
|
export interface ProposedAggregatorCallObject {}
|
|
146
158
|
|
|
147
159
|
export type ProposedAggregatorCallTrace = TypedCallTrace<
|
|
148
160
|
[],
|
|
149
161
|
ProposedAggregatorCallObject
|
|
150
|
-
|
|
162
|
+
> &
|
|
163
|
+
Trace;
|
|
151
164
|
|
|
152
165
|
export interface ProposedGetRoundDataCallObject {
|
|
153
|
-
_roundId:
|
|
166
|
+
_roundId: bigint;
|
|
154
167
|
}
|
|
155
168
|
|
|
156
169
|
export type ProposedGetRoundDataCallTrace = TypedCallTrace<
|
|
157
|
-
[
|
|
170
|
+
[bigint],
|
|
158
171
|
ProposedGetRoundDataCallObject
|
|
159
|
-
|
|
172
|
+
> &
|
|
173
|
+
Trace;
|
|
160
174
|
|
|
161
175
|
export interface ProposedLatestRoundDataCallObject {}
|
|
162
176
|
|
|
163
177
|
export type ProposedLatestRoundDataCallTrace = TypedCallTrace<
|
|
164
178
|
[],
|
|
165
179
|
ProposedLatestRoundDataCallObject
|
|
166
|
-
|
|
180
|
+
> &
|
|
181
|
+
Trace;
|
|
167
182
|
|
|
168
183
|
export interface SetControllerCallObject {
|
|
169
184
|
_accessController: string;
|
|
@@ -172,7 +187,8 @@ export interface SetControllerCallObject {
|
|
|
172
187
|
export type SetControllerCallTrace = TypedCallTrace<
|
|
173
188
|
[string],
|
|
174
189
|
SetControllerCallObject
|
|
175
|
-
|
|
190
|
+
> &
|
|
191
|
+
Trace;
|
|
176
192
|
|
|
177
193
|
export interface TransferOwnershipCallObject {
|
|
178
194
|
_to: string;
|
|
@@ -181,281 +197,238 @@ export interface TransferOwnershipCallObject {
|
|
|
181
197
|
export type TransferOwnershipCallTrace = TypedCallTrace<
|
|
182
198
|
[string],
|
|
183
199
|
TransferOwnershipCallObject
|
|
184
|
-
|
|
200
|
+
> &
|
|
201
|
+
Trace;
|
|
185
202
|
|
|
186
203
|
export interface VersionCallObject {}
|
|
187
204
|
|
|
188
|
-
export type VersionCallTrace = TypedCallTrace<[], VersionCallObject
|
|
205
|
+
export type VersionCallTrace = TypedCallTrace<[], VersionCallObject> & Trace;
|
|
189
206
|
|
|
190
|
-
const templateContract = EACAggregatorProxy__factory.connect(
|
|
207
|
+
const templateContract = EACAggregatorProxy__factory.connect(
|
|
208
|
+
"0x0",
|
|
209
|
+
DummyProvider
|
|
210
|
+
);
|
|
191
211
|
|
|
192
212
|
export class EACAggregatorProxyContractView extends ContractView<EACAggregatorProxy> {
|
|
193
213
|
constructor(contract: EACAggregatorProxy) {
|
|
194
214
|
super(contract);
|
|
195
215
|
}
|
|
196
216
|
|
|
197
|
-
async accessController(overrides?:
|
|
217
|
+
async accessController(overrides?: Overrides): Promise<string> {
|
|
198
218
|
try {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return await this.contract.accessController();
|
|
203
|
-
}
|
|
219
|
+
return await this.contract.getFunction("accessController()")(
|
|
220
|
+
overrides || {}
|
|
221
|
+
);
|
|
204
222
|
} catch (e) {
|
|
205
223
|
throw transformEtherError(e, undefined);
|
|
206
224
|
}
|
|
207
225
|
}
|
|
208
226
|
|
|
209
|
-
async aggregator(overrides?:
|
|
227
|
+
async aggregator(overrides?: Overrides): Promise<string> {
|
|
210
228
|
try {
|
|
211
|
-
|
|
212
|
-
return await this.contract.aggregator(overrides);
|
|
213
|
-
} else {
|
|
214
|
-
return await this.contract.aggregator();
|
|
215
|
-
}
|
|
229
|
+
return await this.contract.getFunction("aggregator()")(overrides || {});
|
|
216
230
|
} catch (e) {
|
|
217
231
|
throw transformEtherError(e, undefined);
|
|
218
232
|
}
|
|
219
233
|
}
|
|
220
234
|
|
|
221
|
-
async decimals(overrides?:
|
|
235
|
+
async decimals(overrides?: Overrides): Promise<bigint> {
|
|
222
236
|
try {
|
|
223
|
-
|
|
224
|
-
return await this.contract.decimals(overrides);
|
|
225
|
-
} else {
|
|
226
|
-
return await this.contract.decimals();
|
|
227
|
-
}
|
|
237
|
+
return await this.contract.getFunction("decimals()")(overrides || {});
|
|
228
238
|
} catch (e) {
|
|
229
239
|
throw transformEtherError(e, undefined);
|
|
230
240
|
}
|
|
231
241
|
}
|
|
232
242
|
|
|
233
|
-
async description(overrides?:
|
|
243
|
+
async description(overrides?: Overrides): Promise<string> {
|
|
234
244
|
try {
|
|
235
|
-
|
|
236
|
-
return await this.contract.description(overrides);
|
|
237
|
-
} else {
|
|
238
|
-
return await this.contract.description();
|
|
239
|
-
}
|
|
245
|
+
return await this.contract.getFunction("description()")(overrides || {});
|
|
240
246
|
} catch (e) {
|
|
241
247
|
throw transformEtherError(e, undefined);
|
|
242
248
|
}
|
|
243
249
|
}
|
|
244
250
|
|
|
245
251
|
async getAnswer(
|
|
246
|
-
_roundId:
|
|
247
|
-
overrides?:
|
|
248
|
-
): Promise<
|
|
252
|
+
_roundId: BigNumberish,
|
|
253
|
+
overrides?: Overrides
|
|
254
|
+
): Promise<bigint> {
|
|
249
255
|
try {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
256
|
+
return await this.contract.getFunction("getAnswer(uint256)")(
|
|
257
|
+
_roundId,
|
|
258
|
+
overrides || {}
|
|
259
|
+
);
|
|
255
260
|
} catch (e) {
|
|
256
261
|
throw transformEtherError(e, undefined);
|
|
257
262
|
}
|
|
258
263
|
}
|
|
259
264
|
|
|
260
265
|
async getRoundData(
|
|
261
|
-
_roundId:
|
|
262
|
-
overrides?:
|
|
266
|
+
_roundId: BigNumberish,
|
|
267
|
+
overrides?: Overrides
|
|
263
268
|
): Promise<
|
|
264
|
-
[
|
|
265
|
-
roundId:
|
|
266
|
-
answer:
|
|
267
|
-
startedAt:
|
|
268
|
-
updatedAt:
|
|
269
|
-
answeredInRound:
|
|
269
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
270
|
+
roundId: bigint;
|
|
271
|
+
answer: bigint;
|
|
272
|
+
startedAt: bigint;
|
|
273
|
+
updatedAt: bigint;
|
|
274
|
+
answeredInRound: bigint;
|
|
270
275
|
}
|
|
271
276
|
> {
|
|
272
277
|
try {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
+
return await this.contract.getFunction("getRoundData(uint80)")(
|
|
279
|
+
_roundId,
|
|
280
|
+
overrides || {}
|
|
281
|
+
);
|
|
278
282
|
} catch (e) {
|
|
279
283
|
throw transformEtherError(e, undefined);
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
|
|
283
287
|
async getTimestamp(
|
|
284
|
-
_roundId:
|
|
285
|
-
overrides?:
|
|
286
|
-
): Promise<
|
|
288
|
+
_roundId: BigNumberish,
|
|
289
|
+
overrides?: Overrides
|
|
290
|
+
): Promise<bigint> {
|
|
287
291
|
try {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}
|
|
292
|
+
return await this.contract.getFunction("getTimestamp(uint256)")(
|
|
293
|
+
_roundId,
|
|
294
|
+
overrides || {}
|
|
295
|
+
);
|
|
293
296
|
} catch (e) {
|
|
294
297
|
throw transformEtherError(e, undefined);
|
|
295
298
|
}
|
|
296
299
|
}
|
|
297
300
|
|
|
298
|
-
async latestAnswer(overrides?:
|
|
301
|
+
async latestAnswer(overrides?: Overrides): Promise<bigint> {
|
|
299
302
|
try {
|
|
300
|
-
|
|
301
|
-
return await this.contract.latestAnswer(overrides);
|
|
302
|
-
} else {
|
|
303
|
-
return await this.contract.latestAnswer();
|
|
304
|
-
}
|
|
303
|
+
return await this.contract.getFunction("latestAnswer()")(overrides || {});
|
|
305
304
|
} catch (e) {
|
|
306
305
|
throw transformEtherError(e, undefined);
|
|
307
306
|
}
|
|
308
307
|
}
|
|
309
308
|
|
|
310
|
-
async latestRound(overrides?:
|
|
309
|
+
async latestRound(overrides?: Overrides): Promise<bigint> {
|
|
311
310
|
try {
|
|
312
|
-
|
|
313
|
-
return await this.contract.latestRound(overrides);
|
|
314
|
-
} else {
|
|
315
|
-
return await this.contract.latestRound();
|
|
316
|
-
}
|
|
311
|
+
return await this.contract.getFunction("latestRound()")(overrides || {});
|
|
317
312
|
} catch (e) {
|
|
318
313
|
throw transformEtherError(e, undefined);
|
|
319
314
|
}
|
|
320
315
|
}
|
|
321
316
|
|
|
322
317
|
async latestRoundData(
|
|
323
|
-
overrides?:
|
|
318
|
+
overrides?: Overrides
|
|
324
319
|
): Promise<
|
|
325
|
-
[
|
|
326
|
-
roundId:
|
|
327
|
-
answer:
|
|
328
|
-
startedAt:
|
|
329
|
-
updatedAt:
|
|
330
|
-
answeredInRound:
|
|
320
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
321
|
+
roundId: bigint;
|
|
322
|
+
answer: bigint;
|
|
323
|
+
startedAt: bigint;
|
|
324
|
+
updatedAt: bigint;
|
|
325
|
+
answeredInRound: bigint;
|
|
331
326
|
}
|
|
332
327
|
> {
|
|
333
328
|
try {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
return await this.contract.latestRoundData();
|
|
338
|
-
}
|
|
329
|
+
return await this.contract.getFunction("latestRoundData()")(
|
|
330
|
+
overrides || {}
|
|
331
|
+
);
|
|
339
332
|
} catch (e) {
|
|
340
333
|
throw transformEtherError(e, undefined);
|
|
341
334
|
}
|
|
342
335
|
}
|
|
343
336
|
|
|
344
|
-
async latestTimestamp(overrides?:
|
|
337
|
+
async latestTimestamp(overrides?: Overrides): Promise<bigint> {
|
|
345
338
|
try {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
return await this.contract.latestTimestamp();
|
|
350
|
-
}
|
|
339
|
+
return await this.contract.getFunction("latestTimestamp()")(
|
|
340
|
+
overrides || {}
|
|
341
|
+
);
|
|
351
342
|
} catch (e) {
|
|
352
343
|
throw transformEtherError(e, undefined);
|
|
353
344
|
}
|
|
354
345
|
}
|
|
355
346
|
|
|
356
|
-
async owner(overrides?:
|
|
347
|
+
async owner(overrides?: Overrides): Promise<string> {
|
|
357
348
|
try {
|
|
358
|
-
|
|
359
|
-
return await this.contract.owner(overrides);
|
|
360
|
-
} else {
|
|
361
|
-
return await this.contract.owner();
|
|
362
|
-
}
|
|
349
|
+
return await this.contract.getFunction("owner()")(overrides || {});
|
|
363
350
|
} catch (e) {
|
|
364
351
|
throw transformEtherError(e, undefined);
|
|
365
352
|
}
|
|
366
353
|
}
|
|
367
354
|
|
|
368
355
|
async phaseAggregators(
|
|
369
|
-
arg0:
|
|
370
|
-
overrides?:
|
|
356
|
+
arg0: BigNumberish,
|
|
357
|
+
overrides?: Overrides
|
|
371
358
|
): Promise<string> {
|
|
372
359
|
try {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
360
|
+
return await this.contract.getFunction("phaseAggregators(uint16)")(
|
|
361
|
+
arg0,
|
|
362
|
+
overrides || {}
|
|
363
|
+
);
|
|
378
364
|
} catch (e) {
|
|
379
365
|
throw transformEtherError(e, undefined);
|
|
380
366
|
}
|
|
381
367
|
}
|
|
382
368
|
|
|
383
|
-
async phaseId(overrides?:
|
|
369
|
+
async phaseId(overrides?: Overrides): Promise<bigint> {
|
|
384
370
|
try {
|
|
385
|
-
|
|
386
|
-
return await this.contract.phaseId(overrides);
|
|
387
|
-
} else {
|
|
388
|
-
return await this.contract.phaseId();
|
|
389
|
-
}
|
|
371
|
+
return await this.contract.getFunction("phaseId()")(overrides || {});
|
|
390
372
|
} catch (e) {
|
|
391
373
|
throw transformEtherError(e, undefined);
|
|
392
374
|
}
|
|
393
375
|
}
|
|
394
376
|
|
|
395
|
-
async proposedAggregator(overrides?:
|
|
377
|
+
async proposedAggregator(overrides?: Overrides): Promise<string> {
|
|
396
378
|
try {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
return await this.contract.proposedAggregator();
|
|
401
|
-
}
|
|
379
|
+
return await this.contract.getFunction("proposedAggregator()")(
|
|
380
|
+
overrides || {}
|
|
381
|
+
);
|
|
402
382
|
} catch (e) {
|
|
403
383
|
throw transformEtherError(e, undefined);
|
|
404
384
|
}
|
|
405
385
|
}
|
|
406
386
|
|
|
407
387
|
async proposedGetRoundData(
|
|
408
|
-
_roundId:
|
|
409
|
-
overrides?:
|
|
388
|
+
_roundId: BigNumberish,
|
|
389
|
+
overrides?: Overrides
|
|
410
390
|
): Promise<
|
|
411
|
-
[
|
|
412
|
-
roundId:
|
|
413
|
-
answer:
|
|
414
|
-
startedAt:
|
|
415
|
-
updatedAt:
|
|
416
|
-
answeredInRound:
|
|
391
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
392
|
+
roundId: bigint;
|
|
393
|
+
answer: bigint;
|
|
394
|
+
startedAt: bigint;
|
|
395
|
+
updatedAt: bigint;
|
|
396
|
+
answeredInRound: bigint;
|
|
417
397
|
}
|
|
418
398
|
> {
|
|
419
399
|
try {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}
|
|
400
|
+
return await this.contract.getFunction("proposedGetRoundData(uint80)")(
|
|
401
|
+
_roundId,
|
|
402
|
+
overrides || {}
|
|
403
|
+
);
|
|
425
404
|
} catch (e) {
|
|
426
405
|
throw transformEtherError(e, undefined);
|
|
427
406
|
}
|
|
428
407
|
}
|
|
429
408
|
|
|
430
409
|
async proposedLatestRoundData(
|
|
431
|
-
overrides?:
|
|
410
|
+
overrides?: Overrides
|
|
432
411
|
): Promise<
|
|
433
|
-
[
|
|
434
|
-
roundId:
|
|
435
|
-
answer:
|
|
436
|
-
startedAt:
|
|
437
|
-
updatedAt:
|
|
438
|
-
answeredInRound:
|
|
412
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
413
|
+
roundId: bigint;
|
|
414
|
+
answer: bigint;
|
|
415
|
+
startedAt: bigint;
|
|
416
|
+
updatedAt: bigint;
|
|
417
|
+
answeredInRound: bigint;
|
|
439
418
|
}
|
|
440
419
|
> {
|
|
441
420
|
try {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
return await this.contract.proposedLatestRoundData();
|
|
446
|
-
}
|
|
421
|
+
return await this.contract.getFunction("proposedLatestRoundData()")(
|
|
422
|
+
overrides || {}
|
|
423
|
+
);
|
|
447
424
|
} catch (e) {
|
|
448
425
|
throw transformEtherError(e, undefined);
|
|
449
426
|
}
|
|
450
427
|
}
|
|
451
428
|
|
|
452
|
-
async version(overrides?:
|
|
429
|
+
async version(overrides?: Overrides): Promise<bigint> {
|
|
453
430
|
try {
|
|
454
|
-
|
|
455
|
-
return await this.contract.version(overrides);
|
|
456
|
-
} else {
|
|
457
|
-
return await this.contract.version();
|
|
458
|
-
}
|
|
431
|
+
return await this.contract.getFunction("version()")(overrides || {});
|
|
459
432
|
} catch (e) {
|
|
460
433
|
throw transformEtherError(e, undefined);
|
|
461
434
|
}
|
|
@@ -466,108 +439,84 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
466
439
|
EACAggregatorProxy,
|
|
467
440
|
EACAggregatorProxyContractView
|
|
468
441
|
> {
|
|
469
|
-
|
|
470
|
-
// super(contract);
|
|
471
|
-
// }
|
|
472
|
-
|
|
473
|
-
async accessController(overrides?: CallOverrides): Promise<string> {
|
|
442
|
+
async accessController(overrides?: Overrides): Promise<string> {
|
|
474
443
|
try {
|
|
475
444
|
if (!overrides && this.context) {
|
|
476
445
|
overrides = {
|
|
477
446
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
478
447
|
};
|
|
479
448
|
}
|
|
480
|
-
|
|
481
|
-
return await this.view.accessController(overrides);
|
|
482
|
-
} else {
|
|
483
|
-
return await this.view.accessController();
|
|
484
|
-
}
|
|
449
|
+
return await this.view.accessController(overrides || {});
|
|
485
450
|
} catch (e) {
|
|
486
451
|
throw transformEtherError(e, this.context);
|
|
487
452
|
}
|
|
488
453
|
}
|
|
489
454
|
|
|
490
|
-
async aggregator(overrides?:
|
|
455
|
+
async aggregator(overrides?: Overrides): Promise<string> {
|
|
491
456
|
try {
|
|
492
457
|
if (!overrides && this.context) {
|
|
493
458
|
overrides = {
|
|
494
459
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
495
460
|
};
|
|
496
461
|
}
|
|
497
|
-
|
|
498
|
-
return await this.view.aggregator(overrides);
|
|
499
|
-
} else {
|
|
500
|
-
return await this.view.aggregator();
|
|
501
|
-
}
|
|
462
|
+
return await this.view.aggregator(overrides || {});
|
|
502
463
|
} catch (e) {
|
|
503
464
|
throw transformEtherError(e, this.context);
|
|
504
465
|
}
|
|
505
466
|
}
|
|
506
467
|
|
|
507
|
-
async decimals(overrides?:
|
|
468
|
+
async decimals(overrides?: Overrides): Promise<bigint> {
|
|
508
469
|
try {
|
|
509
470
|
if (!overrides && this.context) {
|
|
510
471
|
overrides = {
|
|
511
472
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
512
473
|
};
|
|
513
474
|
}
|
|
514
|
-
|
|
515
|
-
return await this.view.decimals(overrides);
|
|
516
|
-
} else {
|
|
517
|
-
return await this.view.decimals();
|
|
518
|
-
}
|
|
475
|
+
return await this.view.decimals(overrides || {});
|
|
519
476
|
} catch (e) {
|
|
520
477
|
throw transformEtherError(e, this.context);
|
|
521
478
|
}
|
|
522
479
|
}
|
|
523
480
|
|
|
524
|
-
async description(overrides?:
|
|
481
|
+
async description(overrides?: Overrides): Promise<string> {
|
|
525
482
|
try {
|
|
526
483
|
if (!overrides && this.context) {
|
|
527
484
|
overrides = {
|
|
528
485
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
529
486
|
};
|
|
530
487
|
}
|
|
531
|
-
|
|
532
|
-
return await this.view.description(overrides);
|
|
533
|
-
} else {
|
|
534
|
-
return await this.view.description();
|
|
535
|
-
}
|
|
488
|
+
return await this.view.description(overrides || {});
|
|
536
489
|
} catch (e) {
|
|
537
490
|
throw transformEtherError(e, this.context);
|
|
538
491
|
}
|
|
539
492
|
}
|
|
540
493
|
|
|
541
494
|
async getAnswer(
|
|
542
|
-
_roundId:
|
|
543
|
-
overrides?:
|
|
544
|
-
): Promise<
|
|
495
|
+
_roundId: BigNumberish,
|
|
496
|
+
overrides?: Overrides
|
|
497
|
+
): Promise<bigint> {
|
|
545
498
|
try {
|
|
546
499
|
if (!overrides && this.context) {
|
|
547
500
|
overrides = {
|
|
548
501
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
549
502
|
};
|
|
550
503
|
}
|
|
551
|
-
|
|
552
|
-
return await this.view.getAnswer(_roundId, overrides);
|
|
553
|
-
} else {
|
|
554
|
-
return await this.view.getAnswer(_roundId);
|
|
555
|
-
}
|
|
504
|
+
return await this.view.getAnswer(_roundId, overrides || {});
|
|
556
505
|
} catch (e) {
|
|
557
506
|
throw transformEtherError(e, this.context);
|
|
558
507
|
}
|
|
559
508
|
}
|
|
560
509
|
|
|
561
510
|
async getRoundData(
|
|
562
|
-
_roundId:
|
|
563
|
-
overrides?:
|
|
511
|
+
_roundId: BigNumberish,
|
|
512
|
+
overrides?: Overrides
|
|
564
513
|
): Promise<
|
|
565
|
-
[
|
|
566
|
-
roundId:
|
|
567
|
-
answer:
|
|
568
|
-
startedAt:
|
|
569
|
-
updatedAt:
|
|
570
|
-
answeredInRound:
|
|
514
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
515
|
+
roundId: bigint;
|
|
516
|
+
answer: bigint;
|
|
517
|
+
startedAt: bigint;
|
|
518
|
+
updatedAt: bigint;
|
|
519
|
+
answeredInRound: bigint;
|
|
571
520
|
}
|
|
572
521
|
> {
|
|
573
522
|
try {
|
|
@@ -576,79 +525,63 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
576
525
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
577
526
|
};
|
|
578
527
|
}
|
|
579
|
-
|
|
580
|
-
return await this.view.getRoundData(_roundId, overrides);
|
|
581
|
-
} else {
|
|
582
|
-
return await this.view.getRoundData(_roundId);
|
|
583
|
-
}
|
|
528
|
+
return await this.view.getRoundData(_roundId, overrides || {});
|
|
584
529
|
} catch (e) {
|
|
585
530
|
throw transformEtherError(e, this.context);
|
|
586
531
|
}
|
|
587
532
|
}
|
|
588
533
|
|
|
589
534
|
async getTimestamp(
|
|
590
|
-
_roundId:
|
|
591
|
-
overrides?:
|
|
592
|
-
): Promise<
|
|
535
|
+
_roundId: BigNumberish,
|
|
536
|
+
overrides?: Overrides
|
|
537
|
+
): Promise<bigint> {
|
|
593
538
|
try {
|
|
594
539
|
if (!overrides && this.context) {
|
|
595
540
|
overrides = {
|
|
596
541
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
597
542
|
};
|
|
598
543
|
}
|
|
599
|
-
|
|
600
|
-
return await this.view.getTimestamp(_roundId, overrides);
|
|
601
|
-
} else {
|
|
602
|
-
return await this.view.getTimestamp(_roundId);
|
|
603
|
-
}
|
|
544
|
+
return await this.view.getTimestamp(_roundId, overrides || {});
|
|
604
545
|
} catch (e) {
|
|
605
546
|
throw transformEtherError(e, this.context);
|
|
606
547
|
}
|
|
607
548
|
}
|
|
608
549
|
|
|
609
|
-
async latestAnswer(overrides?:
|
|
550
|
+
async latestAnswer(overrides?: Overrides): Promise<bigint> {
|
|
610
551
|
try {
|
|
611
552
|
if (!overrides && this.context) {
|
|
612
553
|
overrides = {
|
|
613
554
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
614
555
|
};
|
|
615
556
|
}
|
|
616
|
-
|
|
617
|
-
return await this.view.latestAnswer(overrides);
|
|
618
|
-
} else {
|
|
619
|
-
return await this.view.latestAnswer();
|
|
620
|
-
}
|
|
557
|
+
return await this.view.latestAnswer(overrides || {});
|
|
621
558
|
} catch (e) {
|
|
622
559
|
throw transformEtherError(e, this.context);
|
|
623
560
|
}
|
|
624
561
|
}
|
|
625
562
|
|
|
626
|
-
async latestRound(overrides?:
|
|
563
|
+
async latestRound(overrides?: Overrides): Promise<bigint> {
|
|
627
564
|
try {
|
|
628
565
|
if (!overrides && this.context) {
|
|
629
566
|
overrides = {
|
|
630
567
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
631
568
|
};
|
|
632
569
|
}
|
|
633
|
-
|
|
634
|
-
return await this.view.latestRound(overrides);
|
|
635
|
-
} else {
|
|
636
|
-
return await this.view.latestRound();
|
|
637
|
-
}
|
|
570
|
+
return await this.view.latestRound(overrides || {});
|
|
638
571
|
} catch (e) {
|
|
639
572
|
throw transformEtherError(e, this.context);
|
|
640
573
|
}
|
|
641
574
|
}
|
|
642
575
|
|
|
643
576
|
async latestRoundData(
|
|
644
|
-
overrides?:
|
|
577
|
+
overrides?: Overrides
|
|
645
578
|
): Promise<
|
|
646
|
-
[
|
|
647
|
-
roundId:
|
|
648
|
-
answer:
|
|
649
|
-
startedAt:
|
|
650
|
-
updatedAt:
|
|
651
|
-
answeredInRound:
|
|
579
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
580
|
+
roundId: bigint;
|
|
581
|
+
answer: bigint;
|
|
582
|
+
startedAt: bigint;
|
|
583
|
+
updatedAt: bigint;
|
|
584
|
+
answeredInRound: bigint;
|
|
652
585
|
}
|
|
653
586
|
> {
|
|
654
587
|
try {
|
|
@@ -657,53 +590,41 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
657
590
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
658
591
|
};
|
|
659
592
|
}
|
|
660
|
-
|
|
661
|
-
return await this.view.latestRoundData(overrides);
|
|
662
|
-
} else {
|
|
663
|
-
return await this.view.latestRoundData();
|
|
664
|
-
}
|
|
593
|
+
return await this.view.latestRoundData(overrides || {});
|
|
665
594
|
} catch (e) {
|
|
666
595
|
throw transformEtherError(e, this.context);
|
|
667
596
|
}
|
|
668
597
|
}
|
|
669
598
|
|
|
670
|
-
async latestTimestamp(overrides?:
|
|
599
|
+
async latestTimestamp(overrides?: Overrides): Promise<bigint> {
|
|
671
600
|
try {
|
|
672
601
|
if (!overrides && this.context) {
|
|
673
602
|
overrides = {
|
|
674
603
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
675
604
|
};
|
|
676
605
|
}
|
|
677
|
-
|
|
678
|
-
return await this.view.latestTimestamp(overrides);
|
|
679
|
-
} else {
|
|
680
|
-
return await this.view.latestTimestamp();
|
|
681
|
-
}
|
|
606
|
+
return await this.view.latestTimestamp(overrides || {});
|
|
682
607
|
} catch (e) {
|
|
683
608
|
throw transformEtherError(e, this.context);
|
|
684
609
|
}
|
|
685
610
|
}
|
|
686
611
|
|
|
687
|
-
async owner(overrides?:
|
|
612
|
+
async owner(overrides?: Overrides): Promise<string> {
|
|
688
613
|
try {
|
|
689
614
|
if (!overrides && this.context) {
|
|
690
615
|
overrides = {
|
|
691
616
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
692
617
|
};
|
|
693
618
|
}
|
|
694
|
-
|
|
695
|
-
return await this.view.owner(overrides);
|
|
696
|
-
} else {
|
|
697
|
-
return await this.view.owner();
|
|
698
|
-
}
|
|
619
|
+
return await this.view.owner(overrides || {});
|
|
699
620
|
} catch (e) {
|
|
700
621
|
throw transformEtherError(e, this.context);
|
|
701
622
|
}
|
|
702
623
|
}
|
|
703
624
|
|
|
704
625
|
async phaseAggregators(
|
|
705
|
-
arg0:
|
|
706
|
-
overrides?:
|
|
626
|
+
arg0: BigNumberish,
|
|
627
|
+
overrides?: Overrides
|
|
707
628
|
): Promise<string> {
|
|
708
629
|
try {
|
|
709
630
|
if (!overrides && this.context) {
|
|
@@ -711,60 +632,48 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
711
632
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
712
633
|
};
|
|
713
634
|
}
|
|
714
|
-
|
|
715
|
-
return await this.view.phaseAggregators(arg0, overrides);
|
|
716
|
-
} else {
|
|
717
|
-
return await this.view.phaseAggregators(arg0);
|
|
718
|
-
}
|
|
635
|
+
return await this.view.phaseAggregators(arg0, overrides || {});
|
|
719
636
|
} catch (e) {
|
|
720
637
|
throw transformEtherError(e, this.context);
|
|
721
638
|
}
|
|
722
639
|
}
|
|
723
640
|
|
|
724
|
-
async phaseId(overrides?:
|
|
641
|
+
async phaseId(overrides?: Overrides): Promise<bigint> {
|
|
725
642
|
try {
|
|
726
643
|
if (!overrides && this.context) {
|
|
727
644
|
overrides = {
|
|
728
645
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
729
646
|
};
|
|
730
647
|
}
|
|
731
|
-
|
|
732
|
-
return await this.view.phaseId(overrides);
|
|
733
|
-
} else {
|
|
734
|
-
return await this.view.phaseId();
|
|
735
|
-
}
|
|
648
|
+
return await this.view.phaseId(overrides || {});
|
|
736
649
|
} catch (e) {
|
|
737
650
|
throw transformEtherError(e, this.context);
|
|
738
651
|
}
|
|
739
652
|
}
|
|
740
653
|
|
|
741
|
-
async proposedAggregator(overrides?:
|
|
654
|
+
async proposedAggregator(overrides?: Overrides): Promise<string> {
|
|
742
655
|
try {
|
|
743
656
|
if (!overrides && this.context) {
|
|
744
657
|
overrides = {
|
|
745
658
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
746
659
|
};
|
|
747
660
|
}
|
|
748
|
-
|
|
749
|
-
return await this.view.proposedAggregator(overrides);
|
|
750
|
-
} else {
|
|
751
|
-
return await this.view.proposedAggregator();
|
|
752
|
-
}
|
|
661
|
+
return await this.view.proposedAggregator(overrides || {});
|
|
753
662
|
} catch (e) {
|
|
754
663
|
throw transformEtherError(e, this.context);
|
|
755
664
|
}
|
|
756
665
|
}
|
|
757
666
|
|
|
758
667
|
async proposedGetRoundData(
|
|
759
|
-
_roundId:
|
|
760
|
-
overrides?:
|
|
668
|
+
_roundId: BigNumberish,
|
|
669
|
+
overrides?: Overrides
|
|
761
670
|
): Promise<
|
|
762
|
-
[
|
|
763
|
-
roundId:
|
|
764
|
-
answer:
|
|
765
|
-
startedAt:
|
|
766
|
-
updatedAt:
|
|
767
|
-
answeredInRound:
|
|
671
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
672
|
+
roundId: bigint;
|
|
673
|
+
answer: bigint;
|
|
674
|
+
startedAt: bigint;
|
|
675
|
+
updatedAt: bigint;
|
|
676
|
+
answeredInRound: bigint;
|
|
768
677
|
}
|
|
769
678
|
> {
|
|
770
679
|
try {
|
|
@@ -773,25 +682,21 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
773
682
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
774
683
|
};
|
|
775
684
|
}
|
|
776
|
-
|
|
777
|
-
return await this.view.proposedGetRoundData(_roundId, overrides);
|
|
778
|
-
} else {
|
|
779
|
-
return await this.view.proposedGetRoundData(_roundId);
|
|
780
|
-
}
|
|
685
|
+
return await this.view.proposedGetRoundData(_roundId, overrides || {});
|
|
781
686
|
} catch (e) {
|
|
782
687
|
throw transformEtherError(e, this.context);
|
|
783
688
|
}
|
|
784
689
|
}
|
|
785
690
|
|
|
786
691
|
async proposedLatestRoundData(
|
|
787
|
-
overrides?:
|
|
692
|
+
overrides?: Overrides
|
|
788
693
|
): Promise<
|
|
789
|
-
[
|
|
790
|
-
roundId:
|
|
791
|
-
answer:
|
|
792
|
-
startedAt:
|
|
793
|
-
updatedAt:
|
|
794
|
-
answeredInRound:
|
|
694
|
+
[bigint, bigint, bigint, bigint, bigint] & {
|
|
695
|
+
roundId: bigint;
|
|
696
|
+
answer: bigint;
|
|
697
|
+
startedAt: bigint;
|
|
698
|
+
updatedAt: bigint;
|
|
699
|
+
answeredInRound: bigint;
|
|
795
700
|
}
|
|
796
701
|
> {
|
|
797
702
|
try {
|
|
@@ -800,28 +705,20 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView<
|
|
|
800
705
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
801
706
|
};
|
|
802
707
|
}
|
|
803
|
-
|
|
804
|
-
return await this.view.proposedLatestRoundData(overrides);
|
|
805
|
-
} else {
|
|
806
|
-
return await this.view.proposedLatestRoundData();
|
|
807
|
-
}
|
|
708
|
+
return await this.view.proposedLatestRoundData(overrides || {});
|
|
808
709
|
} catch (e) {
|
|
809
710
|
throw transformEtherError(e, this.context);
|
|
810
711
|
}
|
|
811
712
|
}
|
|
812
713
|
|
|
813
|
-
async version(overrides?:
|
|
714
|
+
async version(overrides?: Overrides): Promise<bigint> {
|
|
814
715
|
try {
|
|
815
716
|
if (!overrides && this.context) {
|
|
816
717
|
overrides = {
|
|
817
718
|
blockTag: toBlockTag(this.context.blockNumber),
|
|
818
719
|
};
|
|
819
720
|
}
|
|
820
|
-
|
|
821
|
-
return await this.view.version(overrides);
|
|
822
|
-
} else {
|
|
823
|
-
return await this.view.version();
|
|
824
|
-
}
|
|
721
|
+
return await this.view.version(overrides || {});
|
|
825
722
|
} catch (e) {
|
|
826
723
|
throw transformEtherError(e, this.context);
|
|
827
724
|
}
|
|
@@ -833,96 +730,6 @@ export type EACAggregatorProxyContext = ContractContext<
|
|
|
833
730
|
EACAggregatorProxyBoundContractView
|
|
834
731
|
>;
|
|
835
732
|
|
|
836
|
-
export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
837
|
-
EACAggregatorProxy,
|
|
838
|
-
EACAggregatorProxyBoundContractView
|
|
839
|
-
> {
|
|
840
|
-
bindInternal(options: BindOptions) {
|
|
841
|
-
if (!options.name) {
|
|
842
|
-
options.name = "EACAggregatorProxy";
|
|
843
|
-
}
|
|
844
|
-
let processor = getProcessor(options) as EACAggregatorProxyProcessor;
|
|
845
|
-
if (!processor) {
|
|
846
|
-
processor = new EACAggregatorProxyProcessor(options);
|
|
847
|
-
addProcessor(options, processor);
|
|
848
|
-
}
|
|
849
|
-
return processor;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
onEventAnswerUpdated(
|
|
853
|
-
handler: (
|
|
854
|
-
event: AnswerUpdatedEvent,
|
|
855
|
-
ctx: EACAggregatorProxyContext
|
|
856
|
-
) => void,
|
|
857
|
-
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
|
|
858
|
-
fetchConfig?: EthFetchConfig
|
|
859
|
-
) {
|
|
860
|
-
if (!filter) {
|
|
861
|
-
// @ts-ignore
|
|
862
|
-
filter = EACAggregatorProxyProcessor.filters[
|
|
863
|
-
// @ts-ignore
|
|
864
|
-
"AnswerUpdated(int256,uint256,uint256)"
|
|
865
|
-
](null, null, null);
|
|
866
|
-
}
|
|
867
|
-
return super.onEvent(handler, filter!, fetchConfig);
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
onEventNewRound(
|
|
871
|
-
handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
|
|
872
|
-
filter?: NewRoundEventFilter | NewRoundEventFilter[],
|
|
873
|
-
fetchConfig?: EthFetchConfig
|
|
874
|
-
) {
|
|
875
|
-
if (!filter) {
|
|
876
|
-
// @ts-ignore
|
|
877
|
-
filter = EACAggregatorProxyProcessor.filters[
|
|
878
|
-
// @ts-ignore
|
|
879
|
-
"NewRound(uint256,address,uint256)"
|
|
880
|
-
](null, null, null);
|
|
881
|
-
}
|
|
882
|
-
return super.onEvent(handler, filter!, fetchConfig);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
onEventOwnershipTransferRequested(
|
|
886
|
-
handler: (
|
|
887
|
-
event: OwnershipTransferRequestedEvent,
|
|
888
|
-
ctx: EACAggregatorProxyContext
|
|
889
|
-
) => void,
|
|
890
|
-
filter?:
|
|
891
|
-
| OwnershipTransferRequestedEventFilter
|
|
892
|
-
| OwnershipTransferRequestedEventFilter[],
|
|
893
|
-
fetchConfig?: EthFetchConfig
|
|
894
|
-
) {
|
|
895
|
-
if (!filter) {
|
|
896
|
-
// @ts-ignore
|
|
897
|
-
filter = EACAggregatorProxyProcessor.filters[
|
|
898
|
-
// @ts-ignore
|
|
899
|
-
"OwnershipTransferRequested(address,address)"
|
|
900
|
-
](null, null);
|
|
901
|
-
}
|
|
902
|
-
return super.onEvent(handler, filter!, fetchConfig);
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
onEventOwnershipTransferred(
|
|
906
|
-
handler: (
|
|
907
|
-
event: OwnershipTransferredEvent,
|
|
908
|
-
ctx: EACAggregatorProxyContext
|
|
909
|
-
) => void,
|
|
910
|
-
filter?:
|
|
911
|
-
| OwnershipTransferredEventFilter
|
|
912
|
-
| OwnershipTransferredEventFilter[],
|
|
913
|
-
fetchConfig?: EthFetchConfig
|
|
914
|
-
) {
|
|
915
|
-
if (!filter) {
|
|
916
|
-
// @ts-ignore
|
|
917
|
-
filter = EACAggregatorProxyProcessor.filters[
|
|
918
|
-
// @ts-ignore
|
|
919
|
-
"OwnershipTransferred(address,address)"
|
|
920
|
-
](null, null);
|
|
921
|
-
}
|
|
922
|
-
return super.onEvent(handler, filter!, fetchConfig);
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
|
|
926
733
|
export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
927
734
|
EACAggregatorProxy,
|
|
928
735
|
EACAggregatorProxyBoundContractView
|
|
@@ -936,9 +743,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
936
743
|
fetchConfig?: EthFetchConfig
|
|
937
744
|
) {
|
|
938
745
|
if (!filter) {
|
|
939
|
-
|
|
940
|
-
filter = EACAggregatorProxyProcessor.filters[
|
|
941
|
-
// @ts-ignore
|
|
746
|
+
filter = templateContract.filters[
|
|
942
747
|
"AnswerUpdated(int256,uint256,uint256)"
|
|
943
748
|
](null, null, null);
|
|
944
749
|
}
|
|
@@ -951,11 +756,11 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
951
756
|
fetchConfig?: EthFetchConfig
|
|
952
757
|
) {
|
|
953
758
|
if (!filter) {
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
759
|
+
filter = templateContract.filters["NewRound(uint256,address,uint256)"](
|
|
760
|
+
null,
|
|
761
|
+
null,
|
|
762
|
+
null
|
|
763
|
+
);
|
|
959
764
|
}
|
|
960
765
|
return super.onEvent(handler, filter!, fetchConfig);
|
|
961
766
|
}
|
|
@@ -971,9 +776,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
971
776
|
fetchConfig?: EthFetchConfig
|
|
972
777
|
) {
|
|
973
778
|
if (!filter) {
|
|
974
|
-
|
|
975
|
-
filter = EACAggregatorProxyProcessor.filters[
|
|
976
|
-
// @ts-ignore
|
|
779
|
+
filter = templateContract.filters[
|
|
977
780
|
"OwnershipTransferRequested(address,address)"
|
|
978
781
|
](null, null);
|
|
979
782
|
}
|
|
@@ -991,9 +794,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
991
794
|
fetchConfig?: EthFetchConfig
|
|
992
795
|
) {
|
|
993
796
|
if (!filter) {
|
|
994
|
-
|
|
995
|
-
filter = EACAggregatorProxyProcessor.filters[
|
|
996
|
-
// @ts-ignore
|
|
797
|
+
filter = templateContract.filters[
|
|
997
798
|
"OwnershipTransferred(address,address)"
|
|
998
799
|
](null, null);
|
|
999
800
|
}
|
|
@@ -1215,7 +1016,41 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
1215
1016
|
return super.onTrace("0x54fd4d50", handler, fetchConfig);
|
|
1216
1017
|
}
|
|
1217
1018
|
|
|
1218
|
-
public static filters =
|
|
1019
|
+
public static filters = {
|
|
1020
|
+
AnswerUpdated(
|
|
1021
|
+
current?: BigNumberish | null,
|
|
1022
|
+
roundId?: BigNumberish | null,
|
|
1023
|
+
updatedAt?: null
|
|
1024
|
+
) {
|
|
1025
|
+
return templateContract.filters["AnswerUpdated(int256,uint256,uint256)"](
|
|
1026
|
+
current,
|
|
1027
|
+
roundId,
|
|
1028
|
+
updatedAt
|
|
1029
|
+
);
|
|
1030
|
+
},
|
|
1031
|
+
NewRound(
|
|
1032
|
+
roundId?: BigNumberish | null,
|
|
1033
|
+
startedBy?: string | null,
|
|
1034
|
+
startedAt?: null
|
|
1035
|
+
) {
|
|
1036
|
+
return templateContract.filters["NewRound(uint256,address,uint256)"](
|
|
1037
|
+
roundId,
|
|
1038
|
+
startedBy,
|
|
1039
|
+
startedAt
|
|
1040
|
+
);
|
|
1041
|
+
},
|
|
1042
|
+
OwnershipTransferRequested(from?: string | null, to?: string | null) {
|
|
1043
|
+
return templateContract.filters[
|
|
1044
|
+
"OwnershipTransferRequested(address,address)"
|
|
1045
|
+
](from, to);
|
|
1046
|
+
},
|
|
1047
|
+
OwnershipTransferred(from?: string | null, to?: string | null) {
|
|
1048
|
+
return templateContract.filters["OwnershipTransferred(address,address)"](
|
|
1049
|
+
from,
|
|
1050
|
+
to
|
|
1051
|
+
);
|
|
1052
|
+
},
|
|
1053
|
+
};
|
|
1219
1054
|
|
|
1220
1055
|
protected CreateBoundContractView(): EACAggregatorProxyBoundContractView {
|
|
1221
1056
|
const view = getEACAggregatorProxyContract(
|
|
@@ -1238,6 +1073,90 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
1238
1073
|
}
|
|
1239
1074
|
}
|
|
1240
1075
|
|
|
1076
|
+
export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1077
|
+
EACAggregatorProxy,
|
|
1078
|
+
EACAggregatorProxyBoundContractView
|
|
1079
|
+
> {
|
|
1080
|
+
bindInternal(options: BindOptions) {
|
|
1081
|
+
if (!options.name) {
|
|
1082
|
+
options.name = "EACAggregatorProxy";
|
|
1083
|
+
}
|
|
1084
|
+
let processor = getProcessor(options) as EACAggregatorProxyProcessor;
|
|
1085
|
+
if (!processor) {
|
|
1086
|
+
processor = new EACAggregatorProxyProcessor(options);
|
|
1087
|
+
addProcessor(options, processor);
|
|
1088
|
+
}
|
|
1089
|
+
return processor;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
onEventAnswerUpdated(
|
|
1093
|
+
handler: (
|
|
1094
|
+
event: AnswerUpdatedEvent,
|
|
1095
|
+
ctx: EACAggregatorProxyContext
|
|
1096
|
+
) => void,
|
|
1097
|
+
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
|
|
1098
|
+
fetchConfig?: EthFetchConfig
|
|
1099
|
+
) {
|
|
1100
|
+
if (!filter) {
|
|
1101
|
+
filter = templateContract.filters[
|
|
1102
|
+
"AnswerUpdated(int256,uint256,uint256)"
|
|
1103
|
+
](null, null, null);
|
|
1104
|
+
}
|
|
1105
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
onEventNewRound(
|
|
1109
|
+
handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
|
|
1110
|
+
filter?: NewRoundEventFilter | NewRoundEventFilter[],
|
|
1111
|
+
fetchConfig?: EthFetchConfig
|
|
1112
|
+
) {
|
|
1113
|
+
if (!filter) {
|
|
1114
|
+
filter = templateContract.filters["NewRound(uint256,address,uint256)"](
|
|
1115
|
+
null,
|
|
1116
|
+
null,
|
|
1117
|
+
null
|
|
1118
|
+
);
|
|
1119
|
+
}
|
|
1120
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
onEventOwnershipTransferRequested(
|
|
1124
|
+
handler: (
|
|
1125
|
+
event: OwnershipTransferRequestedEvent,
|
|
1126
|
+
ctx: EACAggregatorProxyContext
|
|
1127
|
+
) => void,
|
|
1128
|
+
filter?:
|
|
1129
|
+
| OwnershipTransferRequestedEventFilter
|
|
1130
|
+
| OwnershipTransferRequestedEventFilter[],
|
|
1131
|
+
fetchConfig?: EthFetchConfig
|
|
1132
|
+
) {
|
|
1133
|
+
if (!filter) {
|
|
1134
|
+
filter = templateContract.filters[
|
|
1135
|
+
"OwnershipTransferRequested(address,address)"
|
|
1136
|
+
](null, null);
|
|
1137
|
+
}
|
|
1138
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
onEventOwnershipTransferred(
|
|
1142
|
+
handler: (
|
|
1143
|
+
event: OwnershipTransferredEvent,
|
|
1144
|
+
ctx: EACAggregatorProxyContext
|
|
1145
|
+
) => void,
|
|
1146
|
+
filter?:
|
|
1147
|
+
| OwnershipTransferredEventFilter
|
|
1148
|
+
| OwnershipTransferredEventFilter[],
|
|
1149
|
+
fetchConfig?: EthFetchConfig
|
|
1150
|
+
) {
|
|
1151
|
+
if (!filter) {
|
|
1152
|
+
filter = templateContract.filters[
|
|
1153
|
+
"OwnershipTransferred(address,address)"
|
|
1154
|
+
](null, null);
|
|
1155
|
+
}
|
|
1156
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1241
1160
|
export function getEACAggregatorProxyContract(
|
|
1242
1161
|
address: string,
|
|
1243
1162
|
network: Networkish = 1
|