@sentio/sdk 1.16.3 → 1.17.0
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-processor.d.ts +21 -0
- package/lib/aptos-processor.js +65 -0
- package/lib/aptos-processor.js.map +1 -0
- package/lib/bind-options.d.ts +2 -0
- package/lib/bind-options.js +4 -1
- package/lib/bind-options.js.map +1 -1
- package/lib/builtin/eacaggregatorproxy/index.d.ts +2 -0
- package/lib/builtin/eacaggregatorproxy/index.js +22 -0
- package/lib/builtin/eacaggregatorproxy/index.js.map +1 -0
- package/lib/builtin/eacaggregatorproxy/test-utils.d.ts +6 -0
- package/lib/builtin/eacaggregatorproxy/test-utils.js +57 -0
- package/lib/builtin/eacaggregatorproxy/test-utils.js.map +1 -0
- package/lib/builtin/internal/EACAggregatorProxy.d.ts +460 -0
- package/lib/builtin/internal/EACAggregatorProxy.js +3 -0
- package/lib/builtin/internal/EACAggregatorProxy.js.map +1 -0
- package/lib/builtin/internal/eacaggregatorproxy_processor.d.ts +317 -0
- package/lib/builtin/internal/eacaggregatorproxy_processor.js +813 -0
- package/lib/builtin/internal/eacaggregatorproxy_processor.js.map +1 -0
- package/lib/builtin/internal/factories/EACAggregatorProxy__factory.d.ts +46 -0
- package/lib/builtin/internal/factories/EACAggregatorProxy__factory.js +527 -0
- package/lib/builtin/internal/factories/EACAggregatorProxy__factory.js.map +1 -0
- package/lib/builtin/internal/factories/index.d.ts +1 -0
- package/lib/builtin/internal/factories/index.js +3 -1
- package/lib/builtin/internal/factories/index.js.map +1 -1
- package/lib/builtin/internal/index.d.ts +2 -0
- package/lib/builtin/internal/index.js +3 -1
- package/lib/builtin/internal/index.js.map +1 -1
- package/lib/context.d.ts +5 -0
- package/lib/context.js +15 -3
- package/lib/context.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +2 -0
- package/lib/gen/processor/protos/processor.js +19 -0
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/meter.js +17 -0
- package/lib/meter.js.map +1 -1
- package/lib/numberish.js +7 -0
- package/lib/numberish.js.map +1 -1
- package/lib/processor-state.d.ts +2 -0
- package/lib/processor-state.js +1 -0
- package/lib/processor-state.js.map +1 -1
- package/lib/service.js +47 -0
- package/lib/service.js.map +1 -1
- package/lib/solana/builtin/spl-token-processor.d.ts +16 -1
- package/lib/solana/builtin/spl-token-processor.js +120 -0
- package/lib/solana/builtin/spl-token-processor.js.map +1 -1
- package/lib/solana/builtin/types.d.ts +97 -0
- package/lib/solana/builtin/types.js.map +1 -1
- package/lib/test/{mirrorworld.d.ts → aptos.test.d.ts} +0 -0
- package/lib/test/aptos.test.js +142 -0
- package/lib/test/aptos.test.js.map +1 -0
- package/lib/test/erc20-template.test.js +21 -2
- package/lib/test/erc20-template.test.js.map +1 -1
- package/lib/test/erc20.js +4 -5
- package/lib/test/erc20.js.map +1 -1
- package/lib/test/erc20.test.js +0 -13
- package/lib/test/erc20.test.js.map +1 -1
- package/lib/test/{tic-tac-toe.d.ts → error-capture.test.d.ts} +0 -0
- package/lib/test/error-capture.test.js +76 -0
- package/lib/test/error-capture.test.js.map +1 -0
- package/lib/test/solana.test.js +1 -17
- package/lib/test/solana.test.js.map +1 -1
- package/lib/test/souffl3.d.ts +1 -0
- package/lib/test/souffl3.js +24 -0
- package/lib/test/souffl3.js.map +1 -0
- package/lib/test/sui.test.js +28 -1
- package/lib/test/sui.test.js.map +1 -1
- package/lib/test/test-provider.d.ts +1 -1
- package/lib/test/test-provider.js +11 -5
- package/lib/test/test-provider.js.map +1 -1
- package/lib/test/types/{game_wallet.d.ts → basic_1.d.ts} +2 -21
- package/lib/test/types/basic_1.js +66 -0
- package/lib/test/types/basic_1.js.map +1 -0
- package/lib/test/types/basic_1_processor.d.ts +13 -0
- package/lib/test/types/basic_1_processor.js +41 -0
- package/lib/test/types/basic_1_processor.js.map +1 -0
- package/lib/utils/chainlink-oracles-goerli.csv +8 -0
- package/lib/utils/chainlink-oracles.csv +217 -0
- package/lib/utils/dex-price.d.ts +22 -0
- package/lib/utils/dex-price.js +114 -0
- package/lib/utils/dex-price.js.map +1 -0
- package/lib/utils/dex-price.test.d.ts +1 -0
- package/lib/utils/dex-price.test.js +22 -0
- package/lib/utils/dex-price.test.js.map +1 -0
- package/lib/utils/erc20.d.ts +1 -0
- package/lib/utils/erc20.js +7 -3
- package/lib/utils/erc20.js.map +1 -1
- package/lib/utils/index.d.ts +3 -1
- package/lib/utils/index.js +6 -1
- package/lib/utils/index.js.map +1 -1
- package/package.json +3 -3
- package/src/abis/EACAggregatorProxy.json +227 -0
- package/src/aptos-processor.ts +75 -0
- package/src/bind-options.ts +1 -0
- package/src/builtin/eacaggregatorproxy/index.ts +6 -0
- package/src/builtin/eacaggregatorproxy/test-utils.ts +89 -0
- package/src/builtin/internal/EACAggregatorProxy.ts +861 -0
- package/src/builtin/internal/eacaggregatorproxy_processor.ts +1417 -0
- package/src/builtin/internal/factories/EACAggregatorProxy__factory.ts +533 -0
- package/src/builtin/internal/factories/index.ts +1 -0
- package/src/builtin/internal/index.ts +2 -0
- package/src/context.ts +15 -2
- package/src/gen/processor/protos/processor.ts +20 -0
- package/src/index.ts +2 -1
- package/src/meter.ts +18 -2
- package/src/numberish.ts +7 -0
- package/src/processor-state.ts +3 -0
- package/src/service.ts +51 -0
- package/src/solana/builtin/spl-token-processor.ts +137 -1
- package/src/solana/builtin/types.ts +11 -0
- package/src/test/abis/solana/basic_1.json +62 -0
- package/src/test/aptos.test.ts +148 -0
- package/src/test/erc20-template.test.ts +26 -3
- package/src/test/erc20.test.ts +1 -15
- package/src/test/erc20.ts +4 -5
- package/src/test/error-capture.test.ts +82 -0
- package/src/test/solana.test.ts +1 -18
- package/src/test/souffl3.ts +24 -0
- package/src/test/sui.test.ts +31 -2
- package/src/test/test-provider.ts +11 -5
- package/src/test/types/basic_1.ts +62 -0
- package/src/test/types/basic_1_processor.ts +41 -0
- package/src/utils/chainlink-oracles-goerli.csv +8 -0
- package/src/utils/chainlink-oracles.csv +217 -0
- package/src/utils/dex-price.test.ts +24 -0
- package/src/utils/dex-price.ts +136 -0
- package/src/utils/erc20.ts +5 -1
- package/src/utils/index.ts +3 -1
- package/lib/test/erc20-template.d.ts +0 -1
- package/lib/test/erc20-template.js +0 -23
- package/lib/test/erc20-template.js.map +0 -1
- package/lib/test/mirrorworld.js +0 -42
- package/lib/test/mirrorworld.js.map +0 -1
- package/lib/test/tic-tac-toe.js +0 -31
- package/lib/test/tic-tac-toe.js.map +0 -1
- package/lib/test/types/game_wallet.js +0 -1396
- package/lib/test/types/game_wallet.js.map +0 -1
- package/lib/test/types/game_wallet_processor.d.ts +0 -107
- package/lib/test/types/game_wallet_processor.js +0 -105
- package/lib/test/types/game_wallet_processor.js.map +0 -1
- package/src/test/abis/solana/mirrorworld.json +0 -1392
- package/src/test/erc20-template.ts +0 -25
- package/src/test/mirrorworld.ts +0 -40
- package/src/test/sentio.yaml +0 -4
- package/src/test/tic-tac-toe.ts +0 -31
- package/src/test/types/game_wallet.ts +0 -1392
- package/src/test/types/game_wallet_processor.ts +0 -113
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
EACAggregatorProxy,
|
|
9
|
+
EACAggregatorProxyInterface,
|
|
10
|
+
} from "../EACAggregatorProxy";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "_aggregator",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "_accessController",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "nonpayable",
|
|
27
|
+
type: "constructor",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
anonymous: false,
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
indexed: true,
|
|
34
|
+
internalType: "int256",
|
|
35
|
+
name: "current",
|
|
36
|
+
type: "int256",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
indexed: true,
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "roundId",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
indexed: false,
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "updatedAt",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
name: "AnswerUpdated",
|
|
52
|
+
type: "event",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
anonymous: false,
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
indexed: true,
|
|
59
|
+
internalType: "uint256",
|
|
60
|
+
name: "roundId",
|
|
61
|
+
type: "uint256",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
indexed: true,
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "startedBy",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
indexed: false,
|
|
71
|
+
internalType: "uint256",
|
|
72
|
+
name: "startedAt",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
name: "NewRound",
|
|
77
|
+
type: "event",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
anonymous: false,
|
|
81
|
+
inputs: [
|
|
82
|
+
{
|
|
83
|
+
indexed: true,
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "from",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
indexed: true,
|
|
90
|
+
internalType: "address",
|
|
91
|
+
name: "to",
|
|
92
|
+
type: "address",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
name: "OwnershipTransferRequested",
|
|
96
|
+
type: "event",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
anonymous: false,
|
|
100
|
+
inputs: [
|
|
101
|
+
{
|
|
102
|
+
indexed: true,
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "from",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
indexed: true,
|
|
109
|
+
internalType: "address",
|
|
110
|
+
name: "to",
|
|
111
|
+
type: "address",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
name: "OwnershipTransferred",
|
|
115
|
+
type: "event",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [],
|
|
119
|
+
name: "acceptOwnership",
|
|
120
|
+
outputs: [],
|
|
121
|
+
stateMutability: "nonpayable",
|
|
122
|
+
type: "function",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
inputs: [],
|
|
126
|
+
name: "accessController",
|
|
127
|
+
outputs: [
|
|
128
|
+
{
|
|
129
|
+
internalType: "contract AccessControllerInterface",
|
|
130
|
+
name: "",
|
|
131
|
+
type: "address",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
stateMutability: "view",
|
|
135
|
+
type: "function",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
inputs: [],
|
|
139
|
+
name: "aggregator",
|
|
140
|
+
outputs: [
|
|
141
|
+
{
|
|
142
|
+
internalType: "address",
|
|
143
|
+
name: "",
|
|
144
|
+
type: "address",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
stateMutability: "view",
|
|
148
|
+
type: "function",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
inputs: [
|
|
152
|
+
{
|
|
153
|
+
internalType: "address",
|
|
154
|
+
name: "_aggregator",
|
|
155
|
+
type: "address",
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
name: "confirmAggregator",
|
|
159
|
+
outputs: [],
|
|
160
|
+
stateMutability: "nonpayable",
|
|
161
|
+
type: "function",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
inputs: [],
|
|
165
|
+
name: "decimals",
|
|
166
|
+
outputs: [
|
|
167
|
+
{
|
|
168
|
+
internalType: "uint8",
|
|
169
|
+
name: "",
|
|
170
|
+
type: "uint8",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
stateMutability: "view",
|
|
174
|
+
type: "function",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
inputs: [],
|
|
178
|
+
name: "description",
|
|
179
|
+
outputs: [
|
|
180
|
+
{
|
|
181
|
+
internalType: "string",
|
|
182
|
+
name: "",
|
|
183
|
+
type: "string",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
stateMutability: "view",
|
|
187
|
+
type: "function",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
internalType: "uint256",
|
|
193
|
+
name: "_roundId",
|
|
194
|
+
type: "uint256",
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
name: "getAnswer",
|
|
198
|
+
outputs: [
|
|
199
|
+
{
|
|
200
|
+
internalType: "int256",
|
|
201
|
+
name: "",
|
|
202
|
+
type: "int256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
stateMutability: "view",
|
|
206
|
+
type: "function",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
inputs: [
|
|
210
|
+
{
|
|
211
|
+
internalType: "uint80",
|
|
212
|
+
name: "_roundId",
|
|
213
|
+
type: "uint80",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
name: "getRoundData",
|
|
217
|
+
outputs: [
|
|
218
|
+
{
|
|
219
|
+
internalType: "uint80",
|
|
220
|
+
name: "roundId",
|
|
221
|
+
type: "uint80",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
internalType: "int256",
|
|
225
|
+
name: "answer",
|
|
226
|
+
type: "int256",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
internalType: "uint256",
|
|
230
|
+
name: "startedAt",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
internalType: "uint256",
|
|
235
|
+
name: "updatedAt",
|
|
236
|
+
type: "uint256",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
internalType: "uint80",
|
|
240
|
+
name: "answeredInRound",
|
|
241
|
+
type: "uint80",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
stateMutability: "view",
|
|
245
|
+
type: "function",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
inputs: [
|
|
249
|
+
{
|
|
250
|
+
internalType: "uint256",
|
|
251
|
+
name: "_roundId",
|
|
252
|
+
type: "uint256",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
name: "getTimestamp",
|
|
256
|
+
outputs: [
|
|
257
|
+
{
|
|
258
|
+
internalType: "uint256",
|
|
259
|
+
name: "",
|
|
260
|
+
type: "uint256",
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
stateMutability: "view",
|
|
264
|
+
type: "function",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [],
|
|
268
|
+
name: "latestAnswer",
|
|
269
|
+
outputs: [
|
|
270
|
+
{
|
|
271
|
+
internalType: "int256",
|
|
272
|
+
name: "",
|
|
273
|
+
type: "int256",
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
stateMutability: "view",
|
|
277
|
+
type: "function",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
inputs: [],
|
|
281
|
+
name: "latestRound",
|
|
282
|
+
outputs: [
|
|
283
|
+
{
|
|
284
|
+
internalType: "uint256",
|
|
285
|
+
name: "",
|
|
286
|
+
type: "uint256",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
stateMutability: "view",
|
|
290
|
+
type: "function",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
inputs: [],
|
|
294
|
+
name: "latestRoundData",
|
|
295
|
+
outputs: [
|
|
296
|
+
{
|
|
297
|
+
internalType: "uint80",
|
|
298
|
+
name: "roundId",
|
|
299
|
+
type: "uint80",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
internalType: "int256",
|
|
303
|
+
name: "answer",
|
|
304
|
+
type: "int256",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
internalType: "uint256",
|
|
308
|
+
name: "startedAt",
|
|
309
|
+
type: "uint256",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
internalType: "uint256",
|
|
313
|
+
name: "updatedAt",
|
|
314
|
+
type: "uint256",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
internalType: "uint80",
|
|
318
|
+
name: "answeredInRound",
|
|
319
|
+
type: "uint80",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
stateMutability: "view",
|
|
323
|
+
type: "function",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
inputs: [],
|
|
327
|
+
name: "latestTimestamp",
|
|
328
|
+
outputs: [
|
|
329
|
+
{
|
|
330
|
+
internalType: "uint256",
|
|
331
|
+
name: "",
|
|
332
|
+
type: "uint256",
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
stateMutability: "view",
|
|
336
|
+
type: "function",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
inputs: [],
|
|
340
|
+
name: "owner",
|
|
341
|
+
outputs: [
|
|
342
|
+
{
|
|
343
|
+
internalType: "address payable",
|
|
344
|
+
name: "",
|
|
345
|
+
type: "address",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
stateMutability: "view",
|
|
349
|
+
type: "function",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
inputs: [
|
|
353
|
+
{
|
|
354
|
+
internalType: "uint16",
|
|
355
|
+
name: "",
|
|
356
|
+
type: "uint16",
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
name: "phaseAggregators",
|
|
360
|
+
outputs: [
|
|
361
|
+
{
|
|
362
|
+
internalType: "contract AggregatorV2V3Interface",
|
|
363
|
+
name: "",
|
|
364
|
+
type: "address",
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
stateMutability: "view",
|
|
368
|
+
type: "function",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
inputs: [],
|
|
372
|
+
name: "phaseId",
|
|
373
|
+
outputs: [
|
|
374
|
+
{
|
|
375
|
+
internalType: "uint16",
|
|
376
|
+
name: "",
|
|
377
|
+
type: "uint16",
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
stateMutability: "view",
|
|
381
|
+
type: "function",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
inputs: [
|
|
385
|
+
{
|
|
386
|
+
internalType: "address",
|
|
387
|
+
name: "_aggregator",
|
|
388
|
+
type: "address",
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
name: "proposeAggregator",
|
|
392
|
+
outputs: [],
|
|
393
|
+
stateMutability: "nonpayable",
|
|
394
|
+
type: "function",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
inputs: [],
|
|
398
|
+
name: "proposedAggregator",
|
|
399
|
+
outputs: [
|
|
400
|
+
{
|
|
401
|
+
internalType: "contract AggregatorV2V3Interface",
|
|
402
|
+
name: "",
|
|
403
|
+
type: "address",
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
stateMutability: "view",
|
|
407
|
+
type: "function",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
inputs: [
|
|
411
|
+
{
|
|
412
|
+
internalType: "uint80",
|
|
413
|
+
name: "_roundId",
|
|
414
|
+
type: "uint80",
|
|
415
|
+
},
|
|
416
|
+
],
|
|
417
|
+
name: "proposedGetRoundData",
|
|
418
|
+
outputs: [
|
|
419
|
+
{
|
|
420
|
+
internalType: "uint80",
|
|
421
|
+
name: "roundId",
|
|
422
|
+
type: "uint80",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
internalType: "int256",
|
|
426
|
+
name: "answer",
|
|
427
|
+
type: "int256",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
internalType: "uint256",
|
|
431
|
+
name: "startedAt",
|
|
432
|
+
type: "uint256",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
internalType: "uint256",
|
|
436
|
+
name: "updatedAt",
|
|
437
|
+
type: "uint256",
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
internalType: "uint80",
|
|
441
|
+
name: "answeredInRound",
|
|
442
|
+
type: "uint80",
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
stateMutability: "view",
|
|
446
|
+
type: "function",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
inputs: [],
|
|
450
|
+
name: "proposedLatestRoundData",
|
|
451
|
+
outputs: [
|
|
452
|
+
{
|
|
453
|
+
internalType: "uint80",
|
|
454
|
+
name: "roundId",
|
|
455
|
+
type: "uint80",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
internalType: "int256",
|
|
459
|
+
name: "answer",
|
|
460
|
+
type: "int256",
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
internalType: "uint256",
|
|
464
|
+
name: "startedAt",
|
|
465
|
+
type: "uint256",
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
internalType: "uint256",
|
|
469
|
+
name: "updatedAt",
|
|
470
|
+
type: "uint256",
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
internalType: "uint80",
|
|
474
|
+
name: "answeredInRound",
|
|
475
|
+
type: "uint80",
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
stateMutability: "view",
|
|
479
|
+
type: "function",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
inputs: [
|
|
483
|
+
{
|
|
484
|
+
internalType: "address",
|
|
485
|
+
name: "_accessController",
|
|
486
|
+
type: "address",
|
|
487
|
+
},
|
|
488
|
+
],
|
|
489
|
+
name: "setController",
|
|
490
|
+
outputs: [],
|
|
491
|
+
stateMutability: "nonpayable",
|
|
492
|
+
type: "function",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
inputs: [
|
|
496
|
+
{
|
|
497
|
+
internalType: "address",
|
|
498
|
+
name: "_to",
|
|
499
|
+
type: "address",
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
name: "transferOwnership",
|
|
503
|
+
outputs: [],
|
|
504
|
+
stateMutability: "nonpayable",
|
|
505
|
+
type: "function",
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
inputs: [],
|
|
509
|
+
name: "version",
|
|
510
|
+
outputs: [
|
|
511
|
+
{
|
|
512
|
+
internalType: "uint256",
|
|
513
|
+
name: "",
|
|
514
|
+
type: "uint256",
|
|
515
|
+
},
|
|
516
|
+
],
|
|
517
|
+
stateMutability: "view",
|
|
518
|
+
type: "function",
|
|
519
|
+
},
|
|
520
|
+
];
|
|
521
|
+
|
|
522
|
+
export class EACAggregatorProxy__factory {
|
|
523
|
+
static readonly abi = _abi;
|
|
524
|
+
static createInterface(): EACAggregatorProxyInterface {
|
|
525
|
+
return new utils.Interface(_abi) as EACAggregatorProxyInterface;
|
|
526
|
+
}
|
|
527
|
+
static connect(
|
|
528
|
+
address: string,
|
|
529
|
+
signerOrProvider: Signer | Provider
|
|
530
|
+
): EACAggregatorProxy {
|
|
531
|
+
return new Contract(address, _abi, signerOrProvider) as EACAggregatorProxy;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
export { EACAggregatorProxy__factory } from "./EACAggregatorProxy__factory";
|
|
4
5
|
export { ERC20__factory } from "./ERC20__factory";
|
|
5
6
|
export { ERC20Bytes__factory } from "./ERC20Bytes__factory";
|
|
6
7
|
export { WETH9__factory } from "./WETH9__factory";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
export type { EACAggregatorProxy } from "./EACAggregatorProxy";
|
|
4
5
|
export type { ERC20 } from "./ERC20";
|
|
5
6
|
export type { ERC20Bytes } from "./ERC20Bytes";
|
|
6
7
|
export type { WETH9 } from "./WETH9";
|
|
7
8
|
export * as factories from "./factories";
|
|
9
|
+
export { EACAggregatorProxy__factory } from "./factories/EACAggregatorProxy__factory";
|
|
8
10
|
export { ERC20__factory } from "./factories/ERC20__factory";
|
|
9
11
|
export { ERC20Bytes__factory } from "./factories/ERC20Bytes__factory";
|
|
10
12
|
export { WETH9__factory } from "./factories/WETH9__factory";
|
package/src/context.ts
CHANGED
|
@@ -22,6 +22,7 @@ export class EthContext extends BaseContext {
|
|
|
22
22
|
block?: Block
|
|
23
23
|
trace?: Trace
|
|
24
24
|
blockNumber: Long
|
|
25
|
+
transactionHash?: string
|
|
25
26
|
|
|
26
27
|
constructor(chainId: number, block?: Block, log?: Log, trace?: Trace) {
|
|
27
28
|
super()
|
|
@@ -31,9 +32,14 @@ export class EthContext extends BaseContext {
|
|
|
31
32
|
this.trace = trace
|
|
32
33
|
if (log) {
|
|
33
34
|
this.blockNumber = Long.fromNumber(log.blockNumber)
|
|
35
|
+
this.transactionHash = log.transactionHash
|
|
34
36
|
} else if (block) {
|
|
35
37
|
this.blockNumber = Long.fromNumber(block.number)
|
|
36
38
|
}
|
|
39
|
+
if (trace) {
|
|
40
|
+
this.blockNumber = Long.fromNumber(trace.blockNumber)
|
|
41
|
+
this.transactionHash = trace.transactionHash
|
|
42
|
+
}
|
|
37
43
|
}
|
|
38
44
|
}
|
|
39
45
|
|
|
@@ -97,7 +103,6 @@ export class SolanaContext extends BaseContext {
|
|
|
97
103
|
|
|
98
104
|
constructor(address: string) {
|
|
99
105
|
super()
|
|
100
|
-
this.meter = new Meter(this)
|
|
101
106
|
this.address = address
|
|
102
107
|
}
|
|
103
108
|
}
|
|
@@ -107,7 +112,15 @@ export class SuiContext extends BaseContext {
|
|
|
107
112
|
|
|
108
113
|
constructor(address: string) {
|
|
109
114
|
super()
|
|
110
|
-
this.
|
|
115
|
+
this.address = address
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export class AptosContext extends BaseContext {
|
|
120
|
+
address: string
|
|
121
|
+
|
|
122
|
+
constructor(address: string) {
|
|
123
|
+
super()
|
|
111
124
|
this.address = address
|
|
112
125
|
}
|
|
113
126
|
}
|
|
@@ -66,6 +66,7 @@ export enum LogLevel {
|
|
|
66
66
|
INFO = 1,
|
|
67
67
|
WARNING = 2,
|
|
68
68
|
ERROR = 3,
|
|
69
|
+
CRITICAL = 4,
|
|
69
70
|
UNRECOGNIZED = -1,
|
|
70
71
|
}
|
|
71
72
|
|
|
@@ -83,6 +84,9 @@ export function logLevelFromJSON(object: any): LogLevel {
|
|
|
83
84
|
case 3:
|
|
84
85
|
case "ERROR":
|
|
85
86
|
return LogLevel.ERROR;
|
|
87
|
+
case 4:
|
|
88
|
+
case "CRITICAL":
|
|
89
|
+
return LogLevel.CRITICAL;
|
|
86
90
|
case -1:
|
|
87
91
|
case "UNRECOGNIZED":
|
|
88
92
|
default:
|
|
@@ -100,6 +104,8 @@ export function logLevelToJSON(object: LogLevel): string {
|
|
|
100
104
|
return "WARNING";
|
|
101
105
|
case LogLevel.ERROR:
|
|
102
106
|
return "ERROR";
|
|
107
|
+
case LogLevel.CRITICAL:
|
|
108
|
+
return "CRITICAL";
|
|
103
109
|
case LogLevel.UNRECOGNIZED:
|
|
104
110
|
default:
|
|
105
111
|
return "UNRECOGNIZED";
|
|
@@ -274,6 +280,7 @@ export interface MetricDescriptor {
|
|
|
274
280
|
export interface RecordMetaData {
|
|
275
281
|
contractAddress: string;
|
|
276
282
|
blockNumber: Long;
|
|
283
|
+
transactionHash: string;
|
|
277
284
|
transactionIndex: number;
|
|
278
285
|
logIndex: number;
|
|
279
286
|
chainId: string;
|
|
@@ -2770,6 +2777,7 @@ function createBaseRecordMetaData(): RecordMetaData {
|
|
|
2770
2777
|
return {
|
|
2771
2778
|
contractAddress: "",
|
|
2772
2779
|
blockNumber: Long.UZERO,
|
|
2780
|
+
transactionHash: "",
|
|
2773
2781
|
transactionIndex: 0,
|
|
2774
2782
|
logIndex: 0,
|
|
2775
2783
|
chainId: "",
|
|
@@ -2789,6 +2797,9 @@ export const RecordMetaData = {
|
|
|
2789
2797
|
if (!message.blockNumber.isZero()) {
|
|
2790
2798
|
writer.uint32(16).uint64(message.blockNumber);
|
|
2791
2799
|
}
|
|
2800
|
+
if (message.transactionHash !== "") {
|
|
2801
|
+
writer.uint32(50).string(message.transactionHash);
|
|
2802
|
+
}
|
|
2792
2803
|
if (message.transactionIndex !== 0) {
|
|
2793
2804
|
writer.uint32(24).int32(message.transactionIndex);
|
|
2794
2805
|
}
|
|
@@ -2826,6 +2837,9 @@ export const RecordMetaData = {
|
|
|
2826
2837
|
case 2:
|
|
2827
2838
|
message.blockNumber = reader.uint64() as Long;
|
|
2828
2839
|
break;
|
|
2840
|
+
case 6:
|
|
2841
|
+
message.transactionHash = reader.string();
|
|
2842
|
+
break;
|
|
2829
2843
|
case 3:
|
|
2830
2844
|
message.transactionIndex = reader.int32();
|
|
2831
2845
|
break;
|
|
@@ -2863,6 +2877,9 @@ export const RecordMetaData = {
|
|
|
2863
2877
|
blockNumber: isSet(object.blockNumber)
|
|
2864
2878
|
? Long.fromValue(object.blockNumber)
|
|
2865
2879
|
: Long.UZERO,
|
|
2880
|
+
transactionHash: isSet(object.transactionHash)
|
|
2881
|
+
? String(object.transactionHash)
|
|
2882
|
+
: "",
|
|
2866
2883
|
transactionIndex: isSet(object.transactionIndex)
|
|
2867
2884
|
? Number(object.transactionIndex)
|
|
2868
2885
|
: 0,
|
|
@@ -2889,6 +2906,8 @@ export const RecordMetaData = {
|
|
|
2889
2906
|
(obj.contractAddress = message.contractAddress);
|
|
2890
2907
|
message.blockNumber !== undefined &&
|
|
2891
2908
|
(obj.blockNumber = (message.blockNumber || Long.UZERO).toString());
|
|
2909
|
+
message.transactionHash !== undefined &&
|
|
2910
|
+
(obj.transactionHash = message.transactionHash);
|
|
2892
2911
|
message.transactionIndex !== undefined &&
|
|
2893
2912
|
(obj.transactionIndex = Math.round(message.transactionIndex));
|
|
2894
2913
|
message.logIndex !== undefined &&
|
|
@@ -2914,6 +2933,7 @@ export const RecordMetaData = {
|
|
|
2914
2933
|
object.blockNumber !== undefined && object.blockNumber !== null
|
|
2915
2934
|
? Long.fromValue(object.blockNumber)
|
|
2916
2935
|
: Long.UZERO;
|
|
2936
|
+
message.transactionHash = object.transactionHash ?? "";
|
|
2917
2937
|
message.transactionIndex = object.transactionIndex ?? 0;
|
|
2918
2938
|
message.logIndex = object.logIndex ?? 0;
|
|
2919
2939
|
message.chainId = object.chainId ?? "";
|
package/src/index.ts
CHANGED
|
@@ -7,8 +7,9 @@ export { CounterBinding, Meter, GaugeBinding, Counter, Gauge, MetricDescriptorOp
|
|
|
7
7
|
export { getProvider, setProvider, DummyProvider } from './provider'
|
|
8
8
|
export { SolanaBaseProcessor } from './solana-processor'
|
|
9
9
|
export { SuiBaseProcessor } from './sui-processor'
|
|
10
|
+
export { AptosBaseProcessor } from './aptos-processor'
|
|
10
11
|
export { ContractNamer } from './contract-namer'
|
|
11
|
-
export { BindOptions, SolanaBindOptions, SuiBindOptions } from './bind-options'
|
|
12
|
+
export { BindOptions, SolanaBindOptions, SuiBindOptions, AptosBindOptions } from './bind-options'
|
|
12
13
|
export { transformEtherError } from './error'
|
|
13
14
|
export { ProcessorState } from './processor-state'
|
|
14
15
|
export { BigNumber as BigDecimal } from 'bignumber.js'
|