@raac/rpc 1.1.0-beta.74 → 1.1.0-beta.75
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.
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "CrvUSDToUSDOracle",
|
|
4
|
+
"sourceName": "contracts/core/oracles/CrvUSDToUSDOracle.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "initialOwner",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "_K",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "nonpayable",
|
|
20
|
+
"type": "constructor"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [],
|
|
24
|
+
"name": "CircuitBreakerTriggered",
|
|
25
|
+
"type": "error"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"name": "InvalidFallbackPrice",
|
|
30
|
+
"type": "error"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "InvalidThresholds",
|
|
35
|
+
"type": "error"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [],
|
|
39
|
+
"name": "MinThresholdMustBePositive",
|
|
40
|
+
"type": "error"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"internalType": "address",
|
|
46
|
+
"name": "owner",
|
|
47
|
+
"type": "address"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"name": "OwnableInvalidOwner",
|
|
51
|
+
"type": "error"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"internalType": "address",
|
|
57
|
+
"name": "account",
|
|
58
|
+
"type": "address"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"name": "OwnableUnauthorizedAccount",
|
|
62
|
+
"type": "error"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"anonymous": false,
|
|
66
|
+
"inputs": [
|
|
67
|
+
{
|
|
68
|
+
"indexed": false,
|
|
69
|
+
"internalType": "bool",
|
|
70
|
+
"name": "enabled",
|
|
71
|
+
"type": "bool"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"indexed": false,
|
|
75
|
+
"internalType": "uint256",
|
|
76
|
+
"name": "minThreshold",
|
|
77
|
+
"type": "uint256"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"indexed": false,
|
|
81
|
+
"internalType": "uint256",
|
|
82
|
+
"name": "maxThreshold",
|
|
83
|
+
"type": "uint256"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"name": "CircuitBreakerConfigUpdated",
|
|
87
|
+
"type": "event"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"anonymous": false,
|
|
91
|
+
"inputs": [
|
|
92
|
+
{
|
|
93
|
+
"indexed": false,
|
|
94
|
+
"internalType": "address",
|
|
95
|
+
"name": "newCrvUSDDataFeed",
|
|
96
|
+
"type": "address"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"name": "CrvUSDDataFeedUpdated",
|
|
100
|
+
"type": "event"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"anonymous": false,
|
|
104
|
+
"inputs": [
|
|
105
|
+
{
|
|
106
|
+
"indexed": false,
|
|
107
|
+
"internalType": "address",
|
|
108
|
+
"name": "newCurveOracle",
|
|
109
|
+
"type": "address"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"name": "CurveOracleUpdated",
|
|
113
|
+
"type": "event"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"anonymous": false,
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"indexed": false,
|
|
120
|
+
"internalType": "address",
|
|
121
|
+
"name": "newEthDataFeed",
|
|
122
|
+
"type": "address"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"name": "EthDataFeedUpdated",
|
|
126
|
+
"type": "event"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"anonymous": false,
|
|
130
|
+
"inputs": [
|
|
131
|
+
{
|
|
132
|
+
"indexed": false,
|
|
133
|
+
"internalType": "uint256",
|
|
134
|
+
"name": "newFallbackPriceInUSD",
|
|
135
|
+
"type": "uint256"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"name": "FallbackPriceInUSDUpdated",
|
|
139
|
+
"type": "event"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"anonymous": false,
|
|
143
|
+
"inputs": [
|
|
144
|
+
{
|
|
145
|
+
"indexed": false,
|
|
146
|
+
"internalType": "uint256",
|
|
147
|
+
"name": "newK",
|
|
148
|
+
"type": "uint256"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"name": "KUpdated",
|
|
152
|
+
"type": "event"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"anonymous": false,
|
|
156
|
+
"inputs": [
|
|
157
|
+
{
|
|
158
|
+
"indexed": false,
|
|
159
|
+
"internalType": "uint256",
|
|
160
|
+
"name": "newMaxStableStaleTime",
|
|
161
|
+
"type": "uint256"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"name": "MaxStableStaleTimeUpdated",
|
|
165
|
+
"type": "event"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"anonymous": false,
|
|
169
|
+
"inputs": [
|
|
170
|
+
{
|
|
171
|
+
"indexed": false,
|
|
172
|
+
"internalType": "uint256",
|
|
173
|
+
"name": "newMaxUnstableStaleTime",
|
|
174
|
+
"type": "uint256"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"name": "MaxUnstableStaleTimeUpdated",
|
|
178
|
+
"type": "event"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"anonymous": false,
|
|
182
|
+
"inputs": [
|
|
183
|
+
{
|
|
184
|
+
"indexed": true,
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "previousOwner",
|
|
187
|
+
"type": "address"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"indexed": true,
|
|
191
|
+
"internalType": "address",
|
|
192
|
+
"name": "newOwner",
|
|
193
|
+
"type": "address"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"name": "OwnershipTransferred",
|
|
197
|
+
"type": "event"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"inputs": [],
|
|
201
|
+
"name": "DECIMALS",
|
|
202
|
+
"outputs": [
|
|
203
|
+
{
|
|
204
|
+
"internalType": "uint8",
|
|
205
|
+
"name": "",
|
|
206
|
+
"type": "uint8"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"stateMutability": "view",
|
|
210
|
+
"type": "function"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"inputs": [],
|
|
214
|
+
"name": "K",
|
|
215
|
+
"outputs": [
|
|
216
|
+
{
|
|
217
|
+
"internalType": "uint256",
|
|
218
|
+
"name": "",
|
|
219
|
+
"type": "uint256"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"stateMutability": "view",
|
|
223
|
+
"type": "function"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"inputs": [],
|
|
227
|
+
"name": "circuitBreakerEnabled",
|
|
228
|
+
"outputs": [
|
|
229
|
+
{
|
|
230
|
+
"internalType": "bool",
|
|
231
|
+
"name": "",
|
|
232
|
+
"type": "bool"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"stateMutability": "view",
|
|
236
|
+
"type": "function"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"inputs": [],
|
|
240
|
+
"name": "crvUSDDataFeed",
|
|
241
|
+
"outputs": [
|
|
242
|
+
{
|
|
243
|
+
"internalType": "contract AggregatorV3Interface",
|
|
244
|
+
"name": "",
|
|
245
|
+
"type": "address"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"stateMutability": "view",
|
|
249
|
+
"type": "function"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"inputs": [],
|
|
253
|
+
"name": "curveOracle",
|
|
254
|
+
"outputs": [
|
|
255
|
+
{
|
|
256
|
+
"internalType": "contract ICrvUsdCurveOracle",
|
|
257
|
+
"name": "",
|
|
258
|
+
"type": "address"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"stateMutability": "view",
|
|
262
|
+
"type": "function"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"inputs": [],
|
|
266
|
+
"name": "decimals",
|
|
267
|
+
"outputs": [
|
|
268
|
+
{
|
|
269
|
+
"internalType": "uint8",
|
|
270
|
+
"name": "",
|
|
271
|
+
"type": "uint8"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"stateMutability": "pure",
|
|
275
|
+
"type": "function"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"inputs": [],
|
|
279
|
+
"name": "ethDataFeed",
|
|
280
|
+
"outputs": [
|
|
281
|
+
{
|
|
282
|
+
"internalType": "contract AggregatorV3Interface",
|
|
283
|
+
"name": "",
|
|
284
|
+
"type": "address"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"stateMutability": "view",
|
|
288
|
+
"type": "function"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"inputs": [],
|
|
292
|
+
"name": "fallbackPriceInUSD",
|
|
293
|
+
"outputs": [
|
|
294
|
+
{
|
|
295
|
+
"internalType": "uint256",
|
|
296
|
+
"name": "",
|
|
297
|
+
"type": "uint256"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"stateMutability": "view",
|
|
301
|
+
"type": "function"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"inputs": [],
|
|
305
|
+
"name": "getLatestPrice",
|
|
306
|
+
"outputs": [
|
|
307
|
+
{
|
|
308
|
+
"internalType": "uint256",
|
|
309
|
+
"name": "price",
|
|
310
|
+
"type": "uint256"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"internalType": "uint256",
|
|
314
|
+
"name": "timestamp",
|
|
315
|
+
"type": "uint256"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"internalType": "uint256",
|
|
319
|
+
"name": "fallbackLevel",
|
|
320
|
+
"type": "uint256"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"stateMutability": "view",
|
|
324
|
+
"type": "function"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"inputs": [],
|
|
328
|
+
"name": "getPrice",
|
|
329
|
+
"outputs": [
|
|
330
|
+
{
|
|
331
|
+
"internalType": "uint256",
|
|
332
|
+
"name": "price",
|
|
333
|
+
"type": "uint256"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"stateMutability": "view",
|
|
337
|
+
"type": "function"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"inputs": [],
|
|
341
|
+
"name": "lastFallbackUpdateTimestamp",
|
|
342
|
+
"outputs": [
|
|
343
|
+
{
|
|
344
|
+
"internalType": "uint256",
|
|
345
|
+
"name": "",
|
|
346
|
+
"type": "uint256"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"stateMutability": "view",
|
|
350
|
+
"type": "function"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"inputs": [],
|
|
354
|
+
"name": "maxPriceThreshold",
|
|
355
|
+
"outputs": [
|
|
356
|
+
{
|
|
357
|
+
"internalType": "uint256",
|
|
358
|
+
"name": "",
|
|
359
|
+
"type": "uint256"
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"stateMutability": "view",
|
|
363
|
+
"type": "function"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"inputs": [],
|
|
367
|
+
"name": "maxStableStaleTime",
|
|
368
|
+
"outputs": [
|
|
369
|
+
{
|
|
370
|
+
"internalType": "uint256",
|
|
371
|
+
"name": "",
|
|
372
|
+
"type": "uint256"
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"stateMutability": "view",
|
|
376
|
+
"type": "function"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"inputs": [],
|
|
380
|
+
"name": "maxUnstableStaleTime",
|
|
381
|
+
"outputs": [
|
|
382
|
+
{
|
|
383
|
+
"internalType": "uint256",
|
|
384
|
+
"name": "",
|
|
385
|
+
"type": "uint256"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"stateMutability": "view",
|
|
389
|
+
"type": "function"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"inputs": [],
|
|
393
|
+
"name": "minPriceThreshold",
|
|
394
|
+
"outputs": [
|
|
395
|
+
{
|
|
396
|
+
"internalType": "uint256",
|
|
397
|
+
"name": "",
|
|
398
|
+
"type": "uint256"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"stateMutability": "view",
|
|
402
|
+
"type": "function"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"inputs": [],
|
|
406
|
+
"name": "owner",
|
|
407
|
+
"outputs": [
|
|
408
|
+
{
|
|
409
|
+
"internalType": "address",
|
|
410
|
+
"name": "",
|
|
411
|
+
"type": "address"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"stateMutability": "view",
|
|
415
|
+
"type": "function"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"inputs": [],
|
|
419
|
+
"name": "renounceOwnership",
|
|
420
|
+
"outputs": [],
|
|
421
|
+
"stateMutability": "nonpayable",
|
|
422
|
+
"type": "function"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"inputs": [
|
|
426
|
+
{
|
|
427
|
+
"internalType": "bool",
|
|
428
|
+
"name": "_enabled",
|
|
429
|
+
"type": "bool"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"internalType": "uint256",
|
|
433
|
+
"name": "_minThreshold",
|
|
434
|
+
"type": "uint256"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"internalType": "uint256",
|
|
438
|
+
"name": "_maxThreshold",
|
|
439
|
+
"type": "uint256"
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"name": "setCircuitBreakerConfig",
|
|
443
|
+
"outputs": [],
|
|
444
|
+
"stateMutability": "nonpayable",
|
|
445
|
+
"type": "function"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"inputs": [
|
|
449
|
+
{
|
|
450
|
+
"internalType": "address",
|
|
451
|
+
"name": "_crvUSDDataFeed",
|
|
452
|
+
"type": "address"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"name": "setCrvUSDDataFeed",
|
|
456
|
+
"outputs": [],
|
|
457
|
+
"stateMutability": "nonpayable",
|
|
458
|
+
"type": "function"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"inputs": [
|
|
462
|
+
{
|
|
463
|
+
"internalType": "address",
|
|
464
|
+
"name": "_curveOracle",
|
|
465
|
+
"type": "address"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"name": "setCurveOracle",
|
|
469
|
+
"outputs": [],
|
|
470
|
+
"stateMutability": "nonpayable",
|
|
471
|
+
"type": "function"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"inputs": [
|
|
475
|
+
{
|
|
476
|
+
"internalType": "address",
|
|
477
|
+
"name": "_ethDataFeed",
|
|
478
|
+
"type": "address"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"name": "setEthDataFeed",
|
|
482
|
+
"outputs": [],
|
|
483
|
+
"stateMutability": "nonpayable",
|
|
484
|
+
"type": "function"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"inputs": [
|
|
488
|
+
{
|
|
489
|
+
"internalType": "uint256",
|
|
490
|
+
"name": "_fallbackPriceInUSD",
|
|
491
|
+
"type": "uint256"
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"name": "setFallbackPriceInUSD",
|
|
495
|
+
"outputs": [],
|
|
496
|
+
"stateMutability": "nonpayable",
|
|
497
|
+
"type": "function"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"inputs": [
|
|
501
|
+
{
|
|
502
|
+
"internalType": "uint256",
|
|
503
|
+
"name": "_K",
|
|
504
|
+
"type": "uint256"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"name": "setK",
|
|
508
|
+
"outputs": [],
|
|
509
|
+
"stateMutability": "nonpayable",
|
|
510
|
+
"type": "function"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"inputs": [
|
|
514
|
+
{
|
|
515
|
+
"internalType": "uint256",
|
|
516
|
+
"name": "_maxStableStaleTime",
|
|
517
|
+
"type": "uint256"
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"name": "setMaxStableStaleTime",
|
|
521
|
+
"outputs": [],
|
|
522
|
+
"stateMutability": "nonpayable",
|
|
523
|
+
"type": "function"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"inputs": [
|
|
527
|
+
{
|
|
528
|
+
"internalType": "uint256",
|
|
529
|
+
"name": "_maxUnstableStaleTime",
|
|
530
|
+
"type": "uint256"
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"name": "setMaxUnstableStaleTime",
|
|
534
|
+
"outputs": [],
|
|
535
|
+
"stateMutability": "nonpayable",
|
|
536
|
+
"type": "function"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"inputs": [
|
|
540
|
+
{
|
|
541
|
+
"internalType": "address",
|
|
542
|
+
"name": "newOwner",
|
|
543
|
+
"type": "address"
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"name": "transferOwnership",
|
|
547
|
+
"outputs": [],
|
|
548
|
+
"stateMutability": "nonpayable",
|
|
549
|
+
"type": "function"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"bytecode": "0x60803461010b57601f610d4638819003918201601f19168301916001600160401b0383118484101761011057808492604094855283398101031261010b5780516001600160a01b038116919082900361010b576020015181156100f557600080546001600160a01b031981168417825560405193916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a362015f90600455611068600555600160ff196008541617600855670c7d713b49da0000600955670f43fc2c04ee0000600a55600b55670de0b6b3a764000060065542600755610c1f90816101278239f35b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe608080604052600436101561001357600080fd5b60003560e01c90816307a3b20214610722575080631a3bbb50146106b55780631cc24d37146106975780632e0f26251461067b578063313ce5671461067b57806338276a55146105cf5780633b7471ee146105675780633cbb3a121461054957806345efcae1146104dc578063527caebf1461046f578063530b33ea1461045157806367de8be9146104055780636b3e18de146103b95780636d79ba3a146103905780637074d9e214610367578063715018a6146103205780637e8f3474146102d45780638da5cb5b146102ab5780638e15f4731461027d57806398d5fdca14610258578063a932492f1461023a578063ab9068fa14610217578063be8b4226146101f9578063d04cc436146101db578063d42443e5146101bd5763f2fde38b1461013d57600080fd5b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85761016b610746565b80156101a257600080546001600160a01b03198116831782556001600160a01b031690600080516020610bca8339815191529080a3005b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b346101b85760003660031901126101b8576020600954604051908152f35b346101b85760003660031901126101b8576020600754604051908152f35b346101b85760003660031901126101b8576020600454604051908152f35b346101b85760003660031901126101b857602060ff600854166040519015158152f35b346101b85760003660031901126101b8576020600b54604051908152f35b346101b85760003660031901126101b857602061027361082d565b5050604051908152f35b346101b85760003660031901126101b857606061029861082d565b9060405192835260208301526040820152f35b346101b85760003660031901126101b8576000546040516001600160a01b039091168152602090f35b346101b85760203660031901126101b8577f9e21e8671fbb91ce849aa3eb1c99bbc9e7723706347973e98f5d302b9b7152256020600435610313610746565b80600455604051908152a1005b346101b85760003660031901126101b857610339610746565b600080546001600160a01b0319811682556001600160a01b0316600080516020610bca8339815191528280a3005b346101b85760003660031901126101b8576001546040516001600160a01b039091168152602090f35b346101b85760003660031901126101b8576002546040516001600160a01b039091168152602090f35b346101b85760203660031901126101b8577fa262d269b3f6cd4aa1db136302d0d3cdc7f0298a55d806e84c68854ac346452e60206004356103f8610746565b80600555604051908152a1005b346101b85760203660031901126101b8577f2e88a2d0a480beaf8dd33fa2607a21a2b337d879dff1273e7ca7cc5f32c4c16a6020600435610444610746565b80600b55604051908152a1005b346101b85760003660031901126101b8576020600554604051908152f35b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85760207f10807b53547b1866598bf7a7c618ca670cd954b6c5e77edc2c2c27334536c3ea916104c1610746565b600180546001600160a01b03191682179055604051908152a1005b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85760207f3e0a2fd098a41bcd16da665c899c915ff053601608cdc95de38155fa13c9950b9161052e610746565b600380546001600160a01b03191682179055604051908152a1005b346101b85760003660031901126101b8576020600a54604051908152f35b346101b85760203660031901126101b857600435610583610746565b80156105be576020817f0d360c6aedae88084f3df2f58db4219e33454eb40fa286236f7d171d0e2b537a9260065542600755604051908152a1005b639c25bfb560e01b60005260046000fd5b346101b85760603660031901126101b8576004358015158091036101b857602435604435916105fc610746565b811561066a5782821015610659577f4219c0488eab8e33b581d3e29fb4fb066aa86f75e6c6e443ba90dff9aebf10ff9260609260ff196008541660ff8416176008558060095581600a5560405192835260208301526040820152a1005b632e83089360e11b60005260046000fd5b632dee6d8360e11b60005260046000fd5b346101b85760003660031901126101b857602060405160128152f35b346101b85760003660031901126101b8576020600654604051908152f35b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85760207f4f7c30256c73b93e03c702babfb31e7e149c2fac1a66238abb5fa9b859dfca1891610707610746565b600280546001600160a01b03191682179055604051908152a1005b346101b85760003660031901126101b8576003546001600160a01b03168152602090f35b6000546001600160a01b0316330361075a57565b63118cdaa760e01b6000523360045260246000fd5b601f909101601f19168101906001600160401b0382119082101761079257604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160501b03821682036101b857565b908160a09103126101b8576107d0816107a8565b916020820151916040810151916107ee6080606084015193016107a8565b90565b919082039182116107fe57565b634e487b7160e01b600052601160045260246000fd5b908160209103126101b8575160ff811681036101b85790565b6001546001600160a01b0316806108aa575b506003546001600160a01b0316151580610896575b61086e575b610864600654610a4d565b9060075490600290565b610876610a76565b9291909261088657509050610859565b61088f90610a4d565b9190600190565b506002546001600160a01b03161515610854565b90604051633fabe5a360e21b815260a081600481865afa92831561095b5760009160009461097c575b506000821380610967575b6108ea5750509061083f565b60206004916040519283809263313ce56760e01b82525afa801561095b576109239261091e9260009261092a575b506109f8565b610a4d565b9190600090565b61094d91925060203d602011610954575b610945818361076f565b810190610814565b9038610918565b503d61093b565b6040513d6000823e3d90fd5b5061097284426107f1565b60045410156108de565b9093506109a1915060a03d60a0116109ad575b610999818361076f565b8101906107bc565b509250509092386108d3565b503d61098f565b60ff16604d81116107fe57600a0a90565b81156109cf570490565b634e487b7160e01b600052601260045260246000fd5b818102929181159184041417156107fe57565b9060ff1660128114610a495760128111610a2a576012039060ff82116107fe57610a246107ee926109b4565b906109e5565b601119019060ff82116107fe57610a436107ee926109b4565b906109c5565b5090565b60ff60085416156107ee57600954808210610a715750600a54808211610a71575090565b905090565b600254604051633fabe5a360e21b81526001600160a01b03909116919060a081600481865afa92831561095b57600091600094610ba1575b506000821315610b5957610ac284426107f1565b6005541115610b59579060206004926040519384809263313ce56760e01b82525afa90811561095b57610afc9260009261092a57506109f8565b60018060a01b0360035416906020600b54602460405180958193636872765360e01b835260048301525afa91821561095b57600092610b6d575b508115610b595790610b5461088f92670de0b6b3a7640000906109e5565b6109c5565b50670de0b6b3a76400009250600091829150565b9091506020813d602011610b99575b81610b896020938361076f565b810103126101b857519038610b36565b3d9150610b7c565b909350610bbd915060a03d60a0116109ad57610999818361076f565b50925050909238610aae56fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220ce048d9ad0cc1f3ff4d0add9d33f156dc5ff0ff897dd13d83390053ea54bf14c64736f6c634300081e0033",
|
|
553
|
+
"deployedBytecode": "0x608080604052600436101561001357600080fd5b60003560e01c90816307a3b20214610722575080631a3bbb50146106b55780631cc24d37146106975780632e0f26251461067b578063313ce5671461067b57806338276a55146105cf5780633b7471ee146105675780633cbb3a121461054957806345efcae1146104dc578063527caebf1461046f578063530b33ea1461045157806367de8be9146104055780636b3e18de146103b95780636d79ba3a146103905780637074d9e214610367578063715018a6146103205780637e8f3474146102d45780638da5cb5b146102ab5780638e15f4731461027d57806398d5fdca14610258578063a932492f1461023a578063ab9068fa14610217578063be8b4226146101f9578063d04cc436146101db578063d42443e5146101bd5763f2fde38b1461013d57600080fd5b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85761016b610746565b80156101a257600080546001600160a01b03198116831782556001600160a01b031690600080516020610bca8339815191529080a3005b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b346101b85760003660031901126101b8576020600954604051908152f35b346101b85760003660031901126101b8576020600754604051908152f35b346101b85760003660031901126101b8576020600454604051908152f35b346101b85760003660031901126101b857602060ff600854166040519015158152f35b346101b85760003660031901126101b8576020600b54604051908152f35b346101b85760003660031901126101b857602061027361082d565b5050604051908152f35b346101b85760003660031901126101b857606061029861082d565b9060405192835260208301526040820152f35b346101b85760003660031901126101b8576000546040516001600160a01b039091168152602090f35b346101b85760203660031901126101b8577f9e21e8671fbb91ce849aa3eb1c99bbc9e7723706347973e98f5d302b9b7152256020600435610313610746565b80600455604051908152a1005b346101b85760003660031901126101b857610339610746565b600080546001600160a01b0319811682556001600160a01b0316600080516020610bca8339815191528280a3005b346101b85760003660031901126101b8576001546040516001600160a01b039091168152602090f35b346101b85760003660031901126101b8576002546040516001600160a01b039091168152602090f35b346101b85760203660031901126101b8577fa262d269b3f6cd4aa1db136302d0d3cdc7f0298a55d806e84c68854ac346452e60206004356103f8610746565b80600555604051908152a1005b346101b85760203660031901126101b8577f2e88a2d0a480beaf8dd33fa2607a21a2b337d879dff1273e7ca7cc5f32c4c16a6020600435610444610746565b80600b55604051908152a1005b346101b85760003660031901126101b8576020600554604051908152f35b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85760207f10807b53547b1866598bf7a7c618ca670cd954b6c5e77edc2c2c27334536c3ea916104c1610746565b600180546001600160a01b03191682179055604051908152a1005b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85760207f3e0a2fd098a41bcd16da665c899c915ff053601608cdc95de38155fa13c9950b9161052e610746565b600380546001600160a01b03191682179055604051908152a1005b346101b85760003660031901126101b8576020600a54604051908152f35b346101b85760203660031901126101b857600435610583610746565b80156105be576020817f0d360c6aedae88084f3df2f58db4219e33454eb40fa286236f7d171d0e2b537a9260065542600755604051908152a1005b639c25bfb560e01b60005260046000fd5b346101b85760603660031901126101b8576004358015158091036101b857602435604435916105fc610746565b811561066a5782821015610659577f4219c0488eab8e33b581d3e29fb4fb066aa86f75e6c6e443ba90dff9aebf10ff9260609260ff196008541660ff8416176008558060095581600a5560405192835260208301526040820152a1005b632e83089360e11b60005260046000fd5b632dee6d8360e11b60005260046000fd5b346101b85760003660031901126101b857602060405160128152f35b346101b85760003660031901126101b8576020600654604051908152f35b346101b85760203660031901126101b8576004356001600160a01b038116908190036101b85760207f4f7c30256c73b93e03c702babfb31e7e149c2fac1a66238abb5fa9b859dfca1891610707610746565b600280546001600160a01b03191682179055604051908152a1005b346101b85760003660031901126101b8576003546001600160a01b03168152602090f35b6000546001600160a01b0316330361075a57565b63118cdaa760e01b6000523360045260246000fd5b601f909101601f19168101906001600160401b0382119082101761079257604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160501b03821682036101b857565b908160a09103126101b8576107d0816107a8565b916020820151916040810151916107ee6080606084015193016107a8565b90565b919082039182116107fe57565b634e487b7160e01b600052601160045260246000fd5b908160209103126101b8575160ff811681036101b85790565b6001546001600160a01b0316806108aa575b506003546001600160a01b0316151580610896575b61086e575b610864600654610a4d565b9060075490600290565b610876610a76565b9291909261088657509050610859565b61088f90610a4d565b9190600190565b506002546001600160a01b03161515610854565b90604051633fabe5a360e21b815260a081600481865afa92831561095b5760009160009461097c575b506000821380610967575b6108ea5750509061083f565b60206004916040519283809263313ce56760e01b82525afa801561095b576109239261091e9260009261092a575b506109f8565b610a4d565b9190600090565b61094d91925060203d602011610954575b610945818361076f565b810190610814565b9038610918565b503d61093b565b6040513d6000823e3d90fd5b5061097284426107f1565b60045410156108de565b9093506109a1915060a03d60a0116109ad575b610999818361076f565b8101906107bc565b509250509092386108d3565b503d61098f565b60ff16604d81116107fe57600a0a90565b81156109cf570490565b634e487b7160e01b600052601260045260246000fd5b818102929181159184041417156107fe57565b9060ff1660128114610a495760128111610a2a576012039060ff82116107fe57610a246107ee926109b4565b906109e5565b601119019060ff82116107fe57610a436107ee926109b4565b906109c5565b5090565b60ff60085416156107ee57600954808210610a715750600a54808211610a71575090565b905090565b600254604051633fabe5a360e21b81526001600160a01b03909116919060a081600481865afa92831561095b57600091600094610ba1575b506000821315610b5957610ac284426107f1565b6005541115610b59579060206004926040519384809263313ce56760e01b82525afa90811561095b57610afc9260009261092a57506109f8565b60018060a01b0360035416906020600b54602460405180958193636872765360e01b835260048301525afa91821561095b57600092610b6d575b508115610b595790610b5461088f92670de0b6b3a7640000906109e5565b6109c5565b50670de0b6b3a76400009250600091829150565b9091506020813d602011610b99575b81610b896020938361076f565b810103126101b857519038610b36565b3d9150610b7c565b909350610bbd915060a03d60a0116109ad57610999818361076f565b50925050909238610aae56fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220ce048d9ad0cc1f3ff4d0add9d33f156dc5ff0ff897dd13d83390053ea54bf14c64736f6c634300081e0033",
|
|
554
|
+
"linkReferences": {},
|
|
555
|
+
"deployedLinkReferences": {}
|
|
556
|
+
}
|
|
@@ -83,6 +83,11 @@
|
|
|
83
83
|
"id": "raacprimerateoracle",
|
|
84
84
|
"name": "RAAC Prime Rate Oracle",
|
|
85
85
|
"contract": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
|
|
86
|
+
},
|
|
87
|
+
"crvusdtousdoracle": {
|
|
88
|
+
"id": "crvusdtousdoracle",
|
|
89
|
+
"name": "CRVUSD to USD Oracle",
|
|
90
|
+
"contract": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"
|
|
86
91
|
}
|
|
87
92
|
},
|
|
88
93
|
"pools": {
|
|
@@ -1718,6 +1718,63 @@ declare const ABIS: {
|
|
|
1718
1718
|
type: string;
|
|
1719
1719
|
anonymous?: undefined;
|
|
1720
1720
|
})[];
|
|
1721
|
+
crvusdtousdoracle: ({
|
|
1722
|
+
inputs: {
|
|
1723
|
+
internalType: string;
|
|
1724
|
+
name: string;
|
|
1725
|
+
type: string;
|
|
1726
|
+
}[];
|
|
1727
|
+
stateMutability: string;
|
|
1728
|
+
type: string;
|
|
1729
|
+
name?: undefined;
|
|
1730
|
+
anonymous?: undefined;
|
|
1731
|
+
outputs?: undefined;
|
|
1732
|
+
} | {
|
|
1733
|
+
inputs: {
|
|
1734
|
+
internalType: string;
|
|
1735
|
+
name: string;
|
|
1736
|
+
type: string;
|
|
1737
|
+
}[];
|
|
1738
|
+
name: string;
|
|
1739
|
+
type: string;
|
|
1740
|
+
stateMutability?: undefined;
|
|
1741
|
+
anonymous?: undefined;
|
|
1742
|
+
outputs?: undefined;
|
|
1743
|
+
} | {
|
|
1744
|
+
anonymous: boolean;
|
|
1745
|
+
inputs: {
|
|
1746
|
+
indexed: boolean;
|
|
1747
|
+
internalType: string;
|
|
1748
|
+
name: string;
|
|
1749
|
+
type: string;
|
|
1750
|
+
}[];
|
|
1751
|
+
name: string;
|
|
1752
|
+
type: string;
|
|
1753
|
+
stateMutability?: undefined;
|
|
1754
|
+
outputs?: undefined;
|
|
1755
|
+
} | {
|
|
1756
|
+
inputs: any[];
|
|
1757
|
+
name: string;
|
|
1758
|
+
outputs: {
|
|
1759
|
+
internalType: string;
|
|
1760
|
+
name: string;
|
|
1761
|
+
type: string;
|
|
1762
|
+
}[];
|
|
1763
|
+
stateMutability: string;
|
|
1764
|
+
type: string;
|
|
1765
|
+
anonymous?: undefined;
|
|
1766
|
+
} | {
|
|
1767
|
+
inputs: {
|
|
1768
|
+
internalType: string;
|
|
1769
|
+
name: string;
|
|
1770
|
+
type: string;
|
|
1771
|
+
}[];
|
|
1772
|
+
name: string;
|
|
1773
|
+
outputs: any[];
|
|
1774
|
+
stateMutability: string;
|
|
1775
|
+
type: string;
|
|
1776
|
+
anonymous?: undefined;
|
|
1777
|
+
})[];
|
|
1721
1778
|
};
|
|
1722
1779
|
export type AssetType = keyof typeof ABIS | string;
|
|
1723
1780
|
export type ContractType = keyof typeof ABIS;
|
|
@@ -3361,5 +3418,61 @@ declare const getABI: (name: keyof typeof ABIS) => ({
|
|
|
3361
3418
|
stateMutability: string;
|
|
3362
3419
|
type: string;
|
|
3363
3420
|
anonymous?: undefined;
|
|
3421
|
+
})[] | ({
|
|
3422
|
+
inputs: {
|
|
3423
|
+
internalType: string;
|
|
3424
|
+
name: string;
|
|
3425
|
+
type: string;
|
|
3426
|
+
}[];
|
|
3427
|
+
stateMutability: string;
|
|
3428
|
+
type: string;
|
|
3429
|
+
name?: undefined;
|
|
3430
|
+
anonymous?: undefined;
|
|
3431
|
+
outputs?: undefined;
|
|
3432
|
+
} | {
|
|
3433
|
+
inputs: {
|
|
3434
|
+
internalType: string;
|
|
3435
|
+
name: string;
|
|
3436
|
+
type: string;
|
|
3437
|
+
}[];
|
|
3438
|
+
name: string;
|
|
3439
|
+
type: string;
|
|
3440
|
+
stateMutability?: undefined;
|
|
3441
|
+
anonymous?: undefined;
|
|
3442
|
+
outputs?: undefined;
|
|
3443
|
+
} | {
|
|
3444
|
+
anonymous: boolean;
|
|
3445
|
+
inputs: {
|
|
3446
|
+
indexed: boolean;
|
|
3447
|
+
internalType: string;
|
|
3448
|
+
name: string;
|
|
3449
|
+
type: string;
|
|
3450
|
+
}[];
|
|
3451
|
+
name: string;
|
|
3452
|
+
type: string;
|
|
3453
|
+
stateMutability?: undefined;
|
|
3454
|
+
outputs?: undefined;
|
|
3455
|
+
} | {
|
|
3456
|
+
inputs: any[];
|
|
3457
|
+
name: string;
|
|
3458
|
+
outputs: {
|
|
3459
|
+
internalType: string;
|
|
3460
|
+
name: string;
|
|
3461
|
+
type: string;
|
|
3462
|
+
}[];
|
|
3463
|
+
stateMutability: string;
|
|
3464
|
+
type: string;
|
|
3465
|
+
anonymous?: undefined;
|
|
3466
|
+
} | {
|
|
3467
|
+
inputs: {
|
|
3468
|
+
internalType: string;
|
|
3469
|
+
name: string;
|
|
3470
|
+
type: string;
|
|
3471
|
+
}[];
|
|
3472
|
+
name: string;
|
|
3473
|
+
outputs: any[];
|
|
3474
|
+
stateMutability: string;
|
|
3475
|
+
type: string;
|
|
3476
|
+
anonymous?: undefined;
|
|
3364
3477
|
})[];
|
|
3365
3478
|
export { getABI, ABIS };
|
package/dist/utils/artifacts.js
CHANGED
|
@@ -34,6 +34,7 @@ const ComplianceRegistry_json_1 = __importDefault(require("../artifacts/core/pri
|
|
|
34
34
|
const Treasury_json_1 = __importDefault(require("../artifacts/core/collectors/Treasury.sol/Treasury.json"));
|
|
35
35
|
const RWAIndexTokenCollector_json_1 = __importDefault(require("../artifacts/core/collectors/RWAIndexTokenCollector.sol/RWAIndexTokenCollector.json"));
|
|
36
36
|
const RAACTokenCollector_json_1 = __importDefault(require("../artifacts/core/collectors/RAACTokenCollector.sol/RAACTokenCollector.json"));
|
|
37
|
+
const CrvUSDToUSDOracle_json_1 = __importDefault(require("../artifacts/core/oracles/CrvUSDToUSDOracle.sol/CrvUSDToUSDOracle.json"));
|
|
37
38
|
const CRVUSD_ABI = crvUSDToken_json_1.default.abi;
|
|
38
39
|
const RToken_json_2 = __importDefault(require("../artifacts/core/tokens/RToken.sol/RToken.json")); // assert { type: "json" }; // TODO: Isnt this same as rcrvusd?
|
|
39
40
|
const RTOKEN_ABI = RToken_json_2.default.abi;
|
|
@@ -53,6 +54,7 @@ const ERC20ASSETADAPTER_ABI = ERC20AssetAdapter_json_1.default.abi;
|
|
|
53
54
|
const ERC721ASSETADAPTER_ABI = ERC721AssetAdapter_json_1.default.abi;
|
|
54
55
|
const RWAINDEXTOKEN_ABI = RWAIndexToken_json_1.default.abi;
|
|
55
56
|
const RAACHOUSEPRICEORACLE_ABI = RAACHousePriceOracle_json_1.default.abi;
|
|
57
|
+
const CRVUSDTOUSDORACLE_ABI = CrvUSDToUSDOracle_json_1.default.abi;
|
|
56
58
|
const ABIS = {
|
|
57
59
|
// Tokens
|
|
58
60
|
crvusd: CRVUSD_ABI,
|
|
@@ -92,6 +94,7 @@ const ABIS = {
|
|
|
92
94
|
treasury: Treasury_json_1.default.abi,
|
|
93
95
|
rwaindextokencollector: RWAIndexTokenCollector_json_1.default.abi,
|
|
94
96
|
raactokencollector: RAACTokenCollector_json_1.default.abi,
|
|
97
|
+
crvusdtousdoracle: CRVUSDTOUSDORACLE_ABI,
|
|
95
98
|
};
|
|
96
99
|
exports.ABIS = ABIS;
|
|
97
100
|
const getABI = (name) => {
|