@1delta/margin-fetcher 0.0.107 → 0.0.109
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/dist/abis/oracle/ChainLinkAggregator.d.ts +5 -223
- package/dist/abis/oracle/ChainLinkAggregator.d.ts.map +1 -1
- package/dist/index.js +230 -424
- package/dist/index.js.map +1 -1
- package/dist/lending/compound-v2/getters/venus.d.ts +1 -1
- package/dist/lending/compound-v2/getters/venus.d.ts.map +1 -1
- package/dist/prices/main-prices/fetchOracleData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,134 +1,4 @@
|
|
|
1
1
|
export declare const ChainLinkAggregatorAbi: readonly [{
|
|
2
|
-
readonly anonymous: false;
|
|
3
|
-
readonly inputs: readonly [{
|
|
4
|
-
readonly indexed: true;
|
|
5
|
-
readonly internalType: "int256";
|
|
6
|
-
readonly name: "current";
|
|
7
|
-
readonly type: "int256";
|
|
8
|
-
}, {
|
|
9
|
-
readonly indexed: true;
|
|
10
|
-
readonly internalType: "uint256";
|
|
11
|
-
readonly name: "roundId";
|
|
12
|
-
readonly type: "uint256";
|
|
13
|
-
}, {
|
|
14
|
-
readonly indexed: false;
|
|
15
|
-
readonly internalType: "uint256";
|
|
16
|
-
readonly name: "updatedAt";
|
|
17
|
-
readonly type: "uint256";
|
|
18
|
-
}];
|
|
19
|
-
readonly name: "AnswerUpdated";
|
|
20
|
-
readonly type: "event";
|
|
21
|
-
}, {
|
|
22
|
-
readonly anonymous: false;
|
|
23
|
-
readonly inputs: readonly [{
|
|
24
|
-
readonly indexed: true;
|
|
25
|
-
readonly internalType: "uint256";
|
|
26
|
-
readonly name: "roundId";
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
}, {
|
|
29
|
-
readonly indexed: true;
|
|
30
|
-
readonly internalType: "address";
|
|
31
|
-
readonly name: "startedBy";
|
|
32
|
-
readonly type: "address";
|
|
33
|
-
}, {
|
|
34
|
-
readonly indexed: false;
|
|
35
|
-
readonly internalType: "uint256";
|
|
36
|
-
readonly name: "startedAt";
|
|
37
|
-
readonly type: "uint256";
|
|
38
|
-
}];
|
|
39
|
-
readonly name: "NewRound";
|
|
40
|
-
readonly type: "event";
|
|
41
|
-
}, {
|
|
42
|
-
readonly anonymous: false;
|
|
43
|
-
readonly inputs: readonly [{
|
|
44
|
-
readonly indexed: true;
|
|
45
|
-
readonly internalType: "address";
|
|
46
|
-
readonly name: "from";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
}, {
|
|
49
|
-
readonly indexed: true;
|
|
50
|
-
readonly internalType: "address";
|
|
51
|
-
readonly name: "to";
|
|
52
|
-
readonly type: "address";
|
|
53
|
-
}];
|
|
54
|
-
readonly name: "OwnershipTransferRequested";
|
|
55
|
-
readonly type: "event";
|
|
56
|
-
}, {
|
|
57
|
-
readonly anonymous: false;
|
|
58
|
-
readonly inputs: readonly [{
|
|
59
|
-
readonly indexed: true;
|
|
60
|
-
readonly internalType: "address";
|
|
61
|
-
readonly name: "from";
|
|
62
|
-
readonly type: "address";
|
|
63
|
-
}, {
|
|
64
|
-
readonly indexed: true;
|
|
65
|
-
readonly internalType: "address";
|
|
66
|
-
readonly name: "to";
|
|
67
|
-
readonly type: "address";
|
|
68
|
-
}];
|
|
69
|
-
readonly name: "OwnershipTransferred";
|
|
70
|
-
readonly type: "event";
|
|
71
|
-
}, {
|
|
72
|
-
readonly inputs: readonly [];
|
|
73
|
-
readonly name: "acceptOwnership";
|
|
74
|
-
readonly outputs: readonly [];
|
|
75
|
-
readonly stateMutability: "nonpayable";
|
|
76
|
-
readonly type: "function";
|
|
77
|
-
}, {
|
|
78
|
-
readonly inputs: readonly [];
|
|
79
|
-
readonly name: "accessController";
|
|
80
|
-
readonly outputs: readonly [{
|
|
81
|
-
readonly internalType: "contract AccessControllerInterface";
|
|
82
|
-
readonly name: "";
|
|
83
|
-
readonly type: "address";
|
|
84
|
-
}];
|
|
85
|
-
readonly stateMutability: "view";
|
|
86
|
-
readonly type: "function";
|
|
87
|
-
}, {
|
|
88
|
-
readonly inputs: readonly [];
|
|
89
|
-
readonly name: "aggregator";
|
|
90
|
-
readonly outputs: readonly [{
|
|
91
|
-
readonly internalType: "address";
|
|
92
|
-
readonly name: "";
|
|
93
|
-
readonly type: "address";
|
|
94
|
-
}];
|
|
95
|
-
readonly stateMutability: "view";
|
|
96
|
-
readonly type: "function";
|
|
97
|
-
}, {
|
|
98
|
-
readonly inputs: readonly [{
|
|
99
|
-
readonly internalType: "address";
|
|
100
|
-
readonly name: "_aggregator";
|
|
101
|
-
readonly type: "address";
|
|
102
|
-
}];
|
|
103
|
-
readonly name: "confirmAggregator";
|
|
104
|
-
readonly outputs: readonly [];
|
|
105
|
-
readonly stateMutability: "nonpayable";
|
|
106
|
-
readonly type: "function";
|
|
107
|
-
}, {
|
|
108
|
-
readonly inputs: readonly [];
|
|
109
|
-
readonly name: "description";
|
|
110
|
-
readonly outputs: readonly [{
|
|
111
|
-
readonly internalType: "string";
|
|
112
|
-
readonly name: "";
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
}];
|
|
115
|
-
readonly stateMutability: "view";
|
|
116
|
-
readonly type: "function";
|
|
117
|
-
}, {
|
|
118
|
-
readonly inputs: readonly [{
|
|
119
|
-
readonly internalType: "uint256";
|
|
120
|
-
readonly name: "_roundId";
|
|
121
|
-
readonly type: "uint256";
|
|
122
|
-
}];
|
|
123
|
-
readonly name: "getAnswer";
|
|
124
|
-
readonly outputs: readonly [{
|
|
125
|
-
readonly internalType: "int256";
|
|
126
|
-
readonly name: "";
|
|
127
|
-
readonly type: "int256";
|
|
128
|
-
}];
|
|
129
|
-
readonly stateMutability: "view";
|
|
130
|
-
readonly type: "function";
|
|
131
|
-
}, {
|
|
132
2
|
readonly inputs: readonly [{
|
|
133
3
|
readonly internalType: "uint80";
|
|
134
4
|
readonly name: "_roundId";
|
|
@@ -238,80 +108,6 @@ export declare const ChainLinkAggregatorAbi: readonly [{
|
|
|
238
108
|
}];
|
|
239
109
|
readonly stateMutability: "view";
|
|
240
110
|
readonly type: "function";
|
|
241
|
-
}, {
|
|
242
|
-
readonly inputs: readonly [{
|
|
243
|
-
readonly internalType: "uint16";
|
|
244
|
-
readonly name: "";
|
|
245
|
-
readonly type: "uint16";
|
|
246
|
-
}];
|
|
247
|
-
readonly name: "phaseAggregators";
|
|
248
|
-
readonly outputs: readonly [{
|
|
249
|
-
readonly internalType: "contract AggregatorV2V3Interface";
|
|
250
|
-
readonly name: "";
|
|
251
|
-
readonly type: "address";
|
|
252
|
-
}];
|
|
253
|
-
readonly stateMutability: "view";
|
|
254
|
-
readonly type: "function";
|
|
255
|
-
}, {
|
|
256
|
-
readonly inputs: readonly [];
|
|
257
|
-
readonly name: "phaseId";
|
|
258
|
-
readonly outputs: readonly [{
|
|
259
|
-
readonly internalType: "uint16";
|
|
260
|
-
readonly name: "";
|
|
261
|
-
readonly type: "uint16";
|
|
262
|
-
}];
|
|
263
|
-
readonly stateMutability: "view";
|
|
264
|
-
readonly type: "function";
|
|
265
|
-
}, {
|
|
266
|
-
readonly inputs: readonly [{
|
|
267
|
-
readonly internalType: "address";
|
|
268
|
-
readonly name: "_aggregator";
|
|
269
|
-
readonly type: "address";
|
|
270
|
-
}];
|
|
271
|
-
readonly name: "proposeAggregator";
|
|
272
|
-
readonly outputs: readonly [];
|
|
273
|
-
readonly stateMutability: "nonpayable";
|
|
274
|
-
readonly type: "function";
|
|
275
|
-
}, {
|
|
276
|
-
readonly inputs: readonly [];
|
|
277
|
-
readonly name: "proposedAggregator";
|
|
278
|
-
readonly outputs: readonly [{
|
|
279
|
-
readonly internalType: "contract AggregatorV2V3Interface";
|
|
280
|
-
readonly name: "";
|
|
281
|
-
readonly type: "address";
|
|
282
|
-
}];
|
|
283
|
-
readonly stateMutability: "view";
|
|
284
|
-
readonly type: "function";
|
|
285
|
-
}, {
|
|
286
|
-
readonly inputs: readonly [{
|
|
287
|
-
readonly internalType: "uint80";
|
|
288
|
-
readonly name: "_roundId";
|
|
289
|
-
readonly type: "uint80";
|
|
290
|
-
}];
|
|
291
|
-
readonly name: "proposedGetRoundData";
|
|
292
|
-
readonly outputs: readonly [{
|
|
293
|
-
readonly internalType: "uint80";
|
|
294
|
-
readonly name: "roundId";
|
|
295
|
-
readonly type: "uint80";
|
|
296
|
-
}, {
|
|
297
|
-
readonly internalType: "int256";
|
|
298
|
-
readonly name: "answer";
|
|
299
|
-
readonly type: "int256";
|
|
300
|
-
}, {
|
|
301
|
-
readonly internalType: "uint256";
|
|
302
|
-
readonly name: "startedAt";
|
|
303
|
-
readonly type: "uint256";
|
|
304
|
-
}, {
|
|
305
|
-
readonly internalType: "uint256";
|
|
306
|
-
readonly name: "updatedAt";
|
|
307
|
-
readonly type: "uint256";
|
|
308
|
-
}, {
|
|
309
|
-
readonly internalType: "uint80";
|
|
310
|
-
readonly name: "answeredInRound";
|
|
311
|
-
readonly type: "uint80";
|
|
312
|
-
}];
|
|
313
|
-
readonly stateMutability: "view";
|
|
314
|
-
readonly type: "function";
|
|
315
111
|
}, {
|
|
316
112
|
readonly inputs: readonly [];
|
|
317
113
|
readonly name: "proposedLatestRoundData";
|
|
@@ -339,33 +135,19 @@ export declare const ChainLinkAggregatorAbi: readonly [{
|
|
|
339
135
|
readonly stateMutability: "view";
|
|
340
136
|
readonly type: "function";
|
|
341
137
|
}, {
|
|
138
|
+
readonly constant: true;
|
|
342
139
|
readonly inputs: readonly [{
|
|
343
|
-
readonly internalType: "
|
|
344
|
-
readonly name: "
|
|
140
|
+
readonly internalType: "contract MToken";
|
|
141
|
+
readonly name: "mToken";
|
|
345
142
|
readonly type: "address";
|
|
346
143
|
}];
|
|
347
|
-
readonly name: "
|
|
348
|
-
readonly outputs: readonly [];
|
|
349
|
-
readonly stateMutability: "nonpayable";
|
|
350
|
-
readonly type: "function";
|
|
351
|
-
}, {
|
|
352
|
-
readonly inputs: readonly [{
|
|
353
|
-
readonly internalType: "address";
|
|
354
|
-
readonly name: "_to";
|
|
355
|
-
readonly type: "address";
|
|
356
|
-
}];
|
|
357
|
-
readonly name: "transferOwnership";
|
|
358
|
-
readonly outputs: readonly [];
|
|
359
|
-
readonly stateMutability: "nonpayable";
|
|
360
|
-
readonly type: "function";
|
|
361
|
-
}, {
|
|
362
|
-
readonly inputs: readonly [];
|
|
363
|
-
readonly name: "version";
|
|
144
|
+
readonly name: "getUnderlyingPrice";
|
|
364
145
|
readonly outputs: readonly [{
|
|
365
146
|
readonly internalType: "uint256";
|
|
366
147
|
readonly name: "";
|
|
367
148
|
readonly type: "uint256";
|
|
368
149
|
}];
|
|
150
|
+
readonly payable: false;
|
|
369
151
|
readonly stateMutability: "view";
|
|
370
152
|
readonly type: "function";
|
|
371
153
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainLinkAggregator.d.ts","sourceRoot":"","sources":["../../../src/abis/oracle/ChainLinkAggregator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"ChainLinkAggregator.d.ts","sourceRoot":"","sources":["../../../src/abis/oracle/ChainLinkAggregator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4LzB,CAAA"}
|