@raac/rpc 1.1.0-beta.46 → 1.1.0-beta.48
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/artifacts/core/collectors/Treasury.sol/Treasury.json +550 -0
- package/dist/configs/chains/11155111.json +3 -3
- package/dist/configs/chains/17000.json +3 -3
- package/dist/configs/chains/18453.json +3 -3
- package/dist/configs/chains/8453.json +6 -6
- package/dist/types/utils/artifacts.d.ts +100 -1
- package/dist/utils/artifacts.js +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "Treasury",
|
|
4
|
+
"sourceName": "contracts/core/collectors/Treasury.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "admin",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stateMutability": "nonpayable",
|
|
15
|
+
"type": "constructor"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"name": "AccessControlBadConfirmation",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [
|
|
24
|
+
{
|
|
25
|
+
"internalType": "address",
|
|
26
|
+
"name": "account",
|
|
27
|
+
"type": "address"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"internalType": "bytes32",
|
|
31
|
+
"name": "neededRole",
|
|
32
|
+
"type": "bytes32"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"name": "AccessControlUnauthorizedAccount",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "address",
|
|
42
|
+
"name": "target",
|
|
43
|
+
"type": "address"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"name": "AddressEmptyCode",
|
|
47
|
+
"type": "error"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "address",
|
|
53
|
+
"name": "account",
|
|
54
|
+
"type": "address"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "AddressInsufficientBalance",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [],
|
|
62
|
+
"name": "FailedInnerCall",
|
|
63
|
+
"type": "error"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputs": [],
|
|
67
|
+
"name": "InsufficientBalance",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [],
|
|
72
|
+
"name": "InvalidAddress",
|
|
73
|
+
"type": "error"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"inputs": [],
|
|
77
|
+
"name": "InvalidAmount",
|
|
78
|
+
"type": "error"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [],
|
|
82
|
+
"name": "InvalidRecipient",
|
|
83
|
+
"type": "error"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"inputs": [],
|
|
87
|
+
"name": "ReentrancyGuardReentrantCall",
|
|
88
|
+
"type": "error"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [
|
|
92
|
+
{
|
|
93
|
+
"internalType": "address",
|
|
94
|
+
"name": "token",
|
|
95
|
+
"type": "address"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"name": "SafeERC20FailedOperation",
|
|
99
|
+
"type": "error"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"inputs": [],
|
|
103
|
+
"name": "TokenAlreadySupported",
|
|
104
|
+
"type": "error"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [],
|
|
108
|
+
"name": "TokenNotSupported",
|
|
109
|
+
"type": "error"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"inputs": [],
|
|
113
|
+
"name": "UnauthorizedCaller",
|
|
114
|
+
"type": "error"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"anonymous": false,
|
|
118
|
+
"inputs": [
|
|
119
|
+
{
|
|
120
|
+
"indexed": true,
|
|
121
|
+
"internalType": "address",
|
|
122
|
+
"name": "token",
|
|
123
|
+
"type": "address"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"indexed": false,
|
|
127
|
+
"internalType": "uint256",
|
|
128
|
+
"name": "amount",
|
|
129
|
+
"type": "uint256"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"name": "Deposited",
|
|
133
|
+
"type": "event"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"anonymous": false,
|
|
137
|
+
"inputs": [
|
|
138
|
+
{
|
|
139
|
+
"indexed": true,
|
|
140
|
+
"internalType": "bytes32",
|
|
141
|
+
"name": "role",
|
|
142
|
+
"type": "bytes32"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"indexed": true,
|
|
146
|
+
"internalType": "bytes32",
|
|
147
|
+
"name": "previousAdminRole",
|
|
148
|
+
"type": "bytes32"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"indexed": true,
|
|
152
|
+
"internalType": "bytes32",
|
|
153
|
+
"name": "newAdminRole",
|
|
154
|
+
"type": "bytes32"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"name": "RoleAdminChanged",
|
|
158
|
+
"type": "event"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"anonymous": false,
|
|
162
|
+
"inputs": [
|
|
163
|
+
{
|
|
164
|
+
"indexed": true,
|
|
165
|
+
"internalType": "bytes32",
|
|
166
|
+
"name": "role",
|
|
167
|
+
"type": "bytes32"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"indexed": true,
|
|
171
|
+
"internalType": "address",
|
|
172
|
+
"name": "account",
|
|
173
|
+
"type": "address"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"indexed": true,
|
|
177
|
+
"internalType": "address",
|
|
178
|
+
"name": "sender",
|
|
179
|
+
"type": "address"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"name": "RoleGranted",
|
|
183
|
+
"type": "event"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"anonymous": false,
|
|
187
|
+
"inputs": [
|
|
188
|
+
{
|
|
189
|
+
"indexed": true,
|
|
190
|
+
"internalType": "bytes32",
|
|
191
|
+
"name": "role",
|
|
192
|
+
"type": "bytes32"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"indexed": true,
|
|
196
|
+
"internalType": "address",
|
|
197
|
+
"name": "account",
|
|
198
|
+
"type": "address"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"indexed": true,
|
|
202
|
+
"internalType": "address",
|
|
203
|
+
"name": "sender",
|
|
204
|
+
"type": "address"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"name": "RoleRevoked",
|
|
208
|
+
"type": "event"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"anonymous": false,
|
|
212
|
+
"inputs": [
|
|
213
|
+
{
|
|
214
|
+
"indexed": true,
|
|
215
|
+
"internalType": "address",
|
|
216
|
+
"name": "token",
|
|
217
|
+
"type": "address"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"name": "TokenAdded",
|
|
221
|
+
"type": "event"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"anonymous": false,
|
|
225
|
+
"inputs": [
|
|
226
|
+
{
|
|
227
|
+
"indexed": true,
|
|
228
|
+
"internalType": "address",
|
|
229
|
+
"name": "token",
|
|
230
|
+
"type": "address"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"name": "TokenRemoved",
|
|
234
|
+
"type": "event"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"anonymous": false,
|
|
238
|
+
"inputs": [
|
|
239
|
+
{
|
|
240
|
+
"indexed": true,
|
|
241
|
+
"internalType": "address",
|
|
242
|
+
"name": "token",
|
|
243
|
+
"type": "address"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"indexed": false,
|
|
247
|
+
"internalType": "uint256",
|
|
248
|
+
"name": "amount",
|
|
249
|
+
"type": "uint256"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"indexed": true,
|
|
253
|
+
"internalType": "address",
|
|
254
|
+
"name": "recipient",
|
|
255
|
+
"type": "address"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"name": "Withdrawn",
|
|
259
|
+
"type": "event"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"inputs": [],
|
|
263
|
+
"name": "DEFAULT_ADMIN_ROLE",
|
|
264
|
+
"outputs": [
|
|
265
|
+
{
|
|
266
|
+
"internalType": "bytes32",
|
|
267
|
+
"name": "",
|
|
268
|
+
"type": "bytes32"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"stateMutability": "view",
|
|
272
|
+
"type": "function"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"inputs": [],
|
|
276
|
+
"name": "MANAGER_ROLE",
|
|
277
|
+
"outputs": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "bytes32",
|
|
280
|
+
"name": "",
|
|
281
|
+
"type": "bytes32"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"stateMutability": "view",
|
|
285
|
+
"type": "function"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"inputs": [
|
|
289
|
+
{
|
|
290
|
+
"internalType": "address",
|
|
291
|
+
"name": "token",
|
|
292
|
+
"type": "address"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"name": "addSupportedToken",
|
|
296
|
+
"outputs": [],
|
|
297
|
+
"stateMutability": "nonpayable",
|
|
298
|
+
"type": "function"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"inputs": [
|
|
302
|
+
{
|
|
303
|
+
"internalType": "address",
|
|
304
|
+
"name": "token",
|
|
305
|
+
"type": "address"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"internalType": "uint256",
|
|
309
|
+
"name": "amount",
|
|
310
|
+
"type": "uint256"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"name": "deposit",
|
|
314
|
+
"outputs": [],
|
|
315
|
+
"stateMutability": "nonpayable",
|
|
316
|
+
"type": "function"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"inputs": [
|
|
320
|
+
{
|
|
321
|
+
"internalType": "address",
|
|
322
|
+
"name": "token",
|
|
323
|
+
"type": "address"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"internalType": "uint256",
|
|
327
|
+
"name": "amount",
|
|
328
|
+
"type": "uint256"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"name": "distributeRewards",
|
|
332
|
+
"outputs": [],
|
|
333
|
+
"stateMutability": "nonpayable",
|
|
334
|
+
"type": "function"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"inputs": [
|
|
338
|
+
{
|
|
339
|
+
"internalType": "address",
|
|
340
|
+
"name": "token",
|
|
341
|
+
"type": "address"
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"name": "getBalance",
|
|
345
|
+
"outputs": [
|
|
346
|
+
{
|
|
347
|
+
"internalType": "uint256",
|
|
348
|
+
"name": "",
|
|
349
|
+
"type": "uint256"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"stateMutability": "view",
|
|
353
|
+
"type": "function"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"inputs": [
|
|
357
|
+
{
|
|
358
|
+
"internalType": "bytes32",
|
|
359
|
+
"name": "role",
|
|
360
|
+
"type": "bytes32"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"name": "getRoleAdmin",
|
|
364
|
+
"outputs": [
|
|
365
|
+
{
|
|
366
|
+
"internalType": "bytes32",
|
|
367
|
+
"name": "",
|
|
368
|
+
"type": "bytes32"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"stateMutability": "view",
|
|
372
|
+
"type": "function"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"inputs": [
|
|
376
|
+
{
|
|
377
|
+
"internalType": "bytes32",
|
|
378
|
+
"name": "role",
|
|
379
|
+
"type": "bytes32"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"internalType": "address",
|
|
383
|
+
"name": "account",
|
|
384
|
+
"type": "address"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"name": "grantRole",
|
|
388
|
+
"outputs": [],
|
|
389
|
+
"stateMutability": "nonpayable",
|
|
390
|
+
"type": "function"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"inputs": [
|
|
394
|
+
{
|
|
395
|
+
"internalType": "bytes32",
|
|
396
|
+
"name": "role",
|
|
397
|
+
"type": "bytes32"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"internalType": "address",
|
|
401
|
+
"name": "account",
|
|
402
|
+
"type": "address"
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"name": "hasRole",
|
|
406
|
+
"outputs": [
|
|
407
|
+
{
|
|
408
|
+
"internalType": "bool",
|
|
409
|
+
"name": "",
|
|
410
|
+
"type": "bool"
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
"stateMutability": "view",
|
|
414
|
+
"type": "function"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"inputs": [
|
|
418
|
+
{
|
|
419
|
+
"internalType": "address",
|
|
420
|
+
"name": "",
|
|
421
|
+
"type": "address"
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"name": "isTokenSupported",
|
|
425
|
+
"outputs": [
|
|
426
|
+
{
|
|
427
|
+
"internalType": "bool",
|
|
428
|
+
"name": "",
|
|
429
|
+
"type": "bool"
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"stateMutability": "view",
|
|
433
|
+
"type": "function"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"inputs": [
|
|
437
|
+
{
|
|
438
|
+
"internalType": "address",
|
|
439
|
+
"name": "token",
|
|
440
|
+
"type": "address"
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
"name": "removeSupportedToken",
|
|
444
|
+
"outputs": [],
|
|
445
|
+
"stateMutability": "nonpayable",
|
|
446
|
+
"type": "function"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"inputs": [
|
|
450
|
+
{
|
|
451
|
+
"internalType": "bytes32",
|
|
452
|
+
"name": "role",
|
|
453
|
+
"type": "bytes32"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"internalType": "address",
|
|
457
|
+
"name": "callerConfirmation",
|
|
458
|
+
"type": "address"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"name": "renounceRole",
|
|
462
|
+
"outputs": [],
|
|
463
|
+
"stateMutability": "nonpayable",
|
|
464
|
+
"type": "function"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"inputs": [
|
|
468
|
+
{
|
|
469
|
+
"internalType": "bytes32",
|
|
470
|
+
"name": "role",
|
|
471
|
+
"type": "bytes32"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"internalType": "address",
|
|
475
|
+
"name": "account",
|
|
476
|
+
"type": "address"
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
"name": "revokeRole",
|
|
480
|
+
"outputs": [],
|
|
481
|
+
"stateMutability": "nonpayable",
|
|
482
|
+
"type": "function"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"inputs": [
|
|
486
|
+
{
|
|
487
|
+
"internalType": "uint256",
|
|
488
|
+
"name": "",
|
|
489
|
+
"type": "uint256"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"name": "supportedTokens",
|
|
493
|
+
"outputs": [
|
|
494
|
+
{
|
|
495
|
+
"internalType": "address",
|
|
496
|
+
"name": "",
|
|
497
|
+
"type": "address"
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"stateMutability": "view",
|
|
501
|
+
"type": "function"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"inputs": [
|
|
505
|
+
{
|
|
506
|
+
"internalType": "bytes4",
|
|
507
|
+
"name": "interfaceId",
|
|
508
|
+
"type": "bytes4"
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"name": "supportsInterface",
|
|
512
|
+
"outputs": [
|
|
513
|
+
{
|
|
514
|
+
"internalType": "bool",
|
|
515
|
+
"name": "",
|
|
516
|
+
"type": "bool"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"stateMutability": "view",
|
|
520
|
+
"type": "function"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"inputs": [
|
|
524
|
+
{
|
|
525
|
+
"internalType": "address",
|
|
526
|
+
"name": "token",
|
|
527
|
+
"type": "address"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"internalType": "uint256",
|
|
531
|
+
"name": "amount",
|
|
532
|
+
"type": "uint256"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"internalType": "address",
|
|
536
|
+
"name": "recipient",
|
|
537
|
+
"type": "address"
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"name": "withdraw",
|
|
541
|
+
"outputs": [],
|
|
542
|
+
"stateMutability": "nonpayable",
|
|
543
|
+
"type": "function"
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"bytecode": "0x60803461008e57601f610ee938819003918201601f19168301916001600160401b038311848410176100935780849260209460405283398101031261008e57516001600160a01b03811680820361008e57600180551561007c578061006661006c926100a9565b50610127565b50604051610d0190816101c88239f35b60405163e6c4247b60e01b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b031660008181527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205490919060ff1661012357818052816020526040822081835260205260408220600160ff198254161790553391600080516020610ec98339815191528180a4600190565b5090565b6001600160a01b031660008181527fe84508f2c7fa9c351146748b3025cb78b45df37d868e48c6a75102fecdeee64560205260408120549091907f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b089060ff166101c257808352826020526040832082845260205260408320600160ff19825416179055600080516020610ec9833981519152339380a4600190565b50509056fe608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a7146106d657508163248a9ca3146106ac5781632f2ff15d1461068257816336568abe1461063c57816347e7ef24146101bd57816369328dec146104e35781636d69fcaf1461040d57816375151b63146103cf578163763191901461025257816391d148541461020c578163a217fddf146101f1578163a8031a1d146101bd578163c62556261461017a578163d547741f1461013757508063ec87621c1461010f5763f8b2cb4f146100d557600080fd5b3461010b57602036600319011261010b5760209181906001600160a01b036100fb610744565b1681526002845220549051908152f35b5080fd5b503461010b578160031936011261010b5760209051600080516020610cac8339815191528152f35b91905034610176578060031936011261017657610172913561016d600161015c610729565b9383875286602052862001546107f3565b610897565b5080f35b8280fd5b8284346101ba5760203660031901126101ba57823592548310156101ba57506101a460209261075a565b905491519160018060a01b039160031b1c168152f35b80fd5b50503461010b573660031901126101ba576101ea6101d9610744565b6101e1610af6565b6024359061090c565b6001805580f35b50503461010b578160031936011261010b5751908152602090f35b9050346101765781600319360112610176578160209360ff9261022d610729565b903582528186528282206001600160a01b039091168252855220549151911615158152f35b8391503461010b57602036600319011261010b5761026e610744565b9261027761078b565b6001600160a01b0393841680845260036020819052828520549192909160ff16156103c05782855281602052842060ff198154169055835b8354808210156103b45783876102c48461075a565b905490861b1c16146102f5575060001981146102e2576001016102af565b634e487b7160e01b855260118452602485fd5b90600096929493959619918281019081116103a157906103288461031b6103479461075a565b905490891b1c169161075a565b90919082549060031b9160018060a01b03809116831b921b1916179055565b8254801561038e57019261035a8461075a565b81939154921b1b19169055555b7f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd38280a280f35b634e487b7160e01b875260318452602487fd5b634e487b7160e01b885260118552602488fd5b50505091925050610367565b51633dd1b30560e01b81528390fd5b50503461010b57602036600319011261010b5760209160ff9082906001600160a01b036103fa610744565b1681526003855220541690519015158152f35b83833461010b57602036600319011261010b57610428610744565b61043061078b565b6001600160a01b0381169182156104d457828452600360205260ff81852054166104c55782845260036020528320805460ff191660011790558354600160401b8110156104b257906103288286600161048b9501905561075a565b7f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a48280a280f35b634e487b7160e01b845260418552602484fd5b5163c78e82ad60e01b81528490fd5b5163e6c4247b60e01b81528490fd5b905034610176576060366003190112610176576104fe610744565b6044356001600160a01b038181169460243593909286900361063857610522610af6565b61052a61078b565b1692831561062a57841561061c57838652600260205282828720541061060e57838652600360205260ff828720541615610600578386526002602052818620610574848254610b52565b9055815163a9059cbb60e01b602082015260248101869052604480820185905281529060808201906001600160401b038211838310176105ed5750916105e17fcbcdbdf10631a43cc99c80acace8232649421c3f4f73919f16013d47c83a687a9492602094835286610b75565b51908152a36001805580f35b634e487b7160e01b885260419052602487fd5b9051633dd1b30560e01b8152fd5b9051631e9acf1760e31b8152fd5b9051634e46966960e11b8152fd5b905163e6c4247b60e01b8152fd5b8680fd5b83833461010b578060031936011261010b57610656610729565b90336001600160a01b038316036106735750610172919235610897565b5163334bd91960e11b81528390fd5b9190503461017657806003193601126101765761017291356106a7600161015c610729565b610819565b90503461017657602036600319011261017657816020936001923581528085522001549051908152f35b849134610176576020366003190112610176573563ffffffff60e01b81168091036101765760209250637965db0b60e01b8114908115610718575b5015158152f35b6301ffc9a760e01b14905083610711565b602435906001600160a01b038216820361073f57565b600080fd5b600435906001600160a01b038216820361073f57565b60045481101561077557600460005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b3360009081527fe84508f2c7fa9c351146748b3025cb78b45df37d868e48c6a75102fecdeee6456020526040902054600080516020610cac8339815191529060ff16156107d55750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b80600052600060205260406000203360005260205260ff60406000205416156107d55750565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054161560001461089257808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054166000146108925780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b6001600160a01b0316600081815260036020908152604080832054929594919290919060ff1615610ae5578315610ad4578015610ac35781516370a0823160e01b808252306004830152918482602481895afa918215610ab9578892610a86575b5083516323b872dd60e01b8682015233602482015230604482015260648082019290925290815260a081016001600160401b03811182821017610a725784526109b69086610b75565b82519182523060048301528382602481885afa8015610a68578790610a39575b6109e09250610b52565b9083865260028352808620805490838201809211610a25577f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4959697505551908152a2565b634e487b7160e01b88526011600452602488fd5b508382813d8311610a61575b610a4f8183610b19565b81010312610638576109e091516109d6565b503d610a45565b83513d89823e3d90fd5b634e487b7160e01b89526041600452602489fd5b9091508481813d8311610ab2575b610a9e8183610b19565b81010312610aae5751903861096d565b8780fd5b503d610a94565b84513d8a823e3d90fd5b815163162908e360e11b8152600490fd5b815163e6c4247b60e01b8152600490fd5b8151633dd1b30560e01b8152600490fd5b600260015414610b07576002600155565b604051633ee5aeb560e01b8152600490fd5b601f909101601f19168101906001600160401b03821190821017610b3c57604052565b634e487b7160e01b600052604160045260246000fd5b91908203918211610b5f57565b634e487b7160e01b600052601160045260246000fd5b60018060a01b031690600080826020829451910182865af13d15610c3c573d906001600160401b038211610c285790610bd09160405191610bc06020601f19601f8401160184610b19565b82523d84602084013e5b84610c48565b908151918215159283610c00575b505050610be85750565b60249060405190635274afe760e01b82526004820152fd5b81929350906020918101031261010b5760200151908115918215036101ba5750388080610bde565b634e487b7160e01b83526041600452602483fd5b610bd090606090610bca565b90610c6f5750805115610c5d57805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580610ca2575b610c80575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15610c7856fe241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08a26469706673582212205af73adbef28a182da1125aac604d019420b82e58395c99b3b244b343c45aea464736f6c634300081400332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d",
|
|
547
|
+
"deployedBytecode": "0x608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a7146106d657508163248a9ca3146106ac5781632f2ff15d1461068257816336568abe1461063c57816347e7ef24146101bd57816369328dec146104e35781636d69fcaf1461040d57816375151b63146103cf578163763191901461025257816391d148541461020c578163a217fddf146101f1578163a8031a1d146101bd578163c62556261461017a578163d547741f1461013757508063ec87621c1461010f5763f8b2cb4f146100d557600080fd5b3461010b57602036600319011261010b5760209181906001600160a01b036100fb610744565b1681526002845220549051908152f35b5080fd5b503461010b578160031936011261010b5760209051600080516020610cac8339815191528152f35b91905034610176578060031936011261017657610172913561016d600161015c610729565b9383875286602052862001546107f3565b610897565b5080f35b8280fd5b8284346101ba5760203660031901126101ba57823592548310156101ba57506101a460209261075a565b905491519160018060a01b039160031b1c168152f35b80fd5b50503461010b573660031901126101ba576101ea6101d9610744565b6101e1610af6565b6024359061090c565b6001805580f35b50503461010b578160031936011261010b5751908152602090f35b9050346101765781600319360112610176578160209360ff9261022d610729565b903582528186528282206001600160a01b039091168252855220549151911615158152f35b8391503461010b57602036600319011261010b5761026e610744565b9261027761078b565b6001600160a01b0393841680845260036020819052828520549192909160ff16156103c05782855281602052842060ff198154169055835b8354808210156103b45783876102c48461075a565b905490861b1c16146102f5575060001981146102e2576001016102af565b634e487b7160e01b855260118452602485fd5b90600096929493959619918281019081116103a157906103288461031b6103479461075a565b905490891b1c169161075a565b90919082549060031b9160018060a01b03809116831b921b1916179055565b8254801561038e57019261035a8461075a565b81939154921b1b19169055555b7f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd38280a280f35b634e487b7160e01b875260318452602487fd5b634e487b7160e01b885260118552602488fd5b50505091925050610367565b51633dd1b30560e01b81528390fd5b50503461010b57602036600319011261010b5760209160ff9082906001600160a01b036103fa610744565b1681526003855220541690519015158152f35b83833461010b57602036600319011261010b57610428610744565b61043061078b565b6001600160a01b0381169182156104d457828452600360205260ff81852054166104c55782845260036020528320805460ff191660011790558354600160401b8110156104b257906103288286600161048b9501905561075a565b7f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a48280a280f35b634e487b7160e01b845260418552602484fd5b5163c78e82ad60e01b81528490fd5b5163e6c4247b60e01b81528490fd5b905034610176576060366003190112610176576104fe610744565b6044356001600160a01b038181169460243593909286900361063857610522610af6565b61052a61078b565b1692831561062a57841561061c57838652600260205282828720541061060e57838652600360205260ff828720541615610600578386526002602052818620610574848254610b52565b9055815163a9059cbb60e01b602082015260248101869052604480820185905281529060808201906001600160401b038211838310176105ed5750916105e17fcbcdbdf10631a43cc99c80acace8232649421c3f4f73919f16013d47c83a687a9492602094835286610b75565b51908152a36001805580f35b634e487b7160e01b885260419052602487fd5b9051633dd1b30560e01b8152fd5b9051631e9acf1760e31b8152fd5b9051634e46966960e11b8152fd5b905163e6c4247b60e01b8152fd5b8680fd5b83833461010b578060031936011261010b57610656610729565b90336001600160a01b038316036106735750610172919235610897565b5163334bd91960e11b81528390fd5b9190503461017657806003193601126101765761017291356106a7600161015c610729565b610819565b90503461017657602036600319011261017657816020936001923581528085522001549051908152f35b849134610176576020366003190112610176573563ffffffff60e01b81168091036101765760209250637965db0b60e01b8114908115610718575b5015158152f35b6301ffc9a760e01b14905083610711565b602435906001600160a01b038216820361073f57565b600080fd5b600435906001600160a01b038216820361073f57565b60045481101561077557600460005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b3360009081527fe84508f2c7fa9c351146748b3025cb78b45df37d868e48c6a75102fecdeee6456020526040902054600080516020610cac8339815191529060ff16156107d55750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b80600052600060205260406000203360005260205260ff60406000205416156107d55750565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054161560001461089257808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054166000146108925780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b6001600160a01b0316600081815260036020908152604080832054929594919290919060ff1615610ae5578315610ad4578015610ac35781516370a0823160e01b808252306004830152918482602481895afa918215610ab9578892610a86575b5083516323b872dd60e01b8682015233602482015230604482015260648082019290925290815260a081016001600160401b03811182821017610a725784526109b69086610b75565b82519182523060048301528382602481885afa8015610a68578790610a39575b6109e09250610b52565b9083865260028352808620805490838201809211610a25577f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4959697505551908152a2565b634e487b7160e01b88526011600452602488fd5b508382813d8311610a61575b610a4f8183610b19565b81010312610638576109e091516109d6565b503d610a45565b83513d89823e3d90fd5b634e487b7160e01b89526041600452602489fd5b9091508481813d8311610ab2575b610a9e8183610b19565b81010312610aae5751903861096d565b8780fd5b503d610a94565b84513d8a823e3d90fd5b815163162908e360e11b8152600490fd5b815163e6c4247b60e01b8152600490fd5b8151633dd1b30560e01b8152600490fd5b600260015414610b07576002600155565b604051633ee5aeb560e01b8152600490fd5b601f909101601f19168101906001600160401b03821190821017610b3c57604052565b634e487b7160e01b600052604160045260246000fd5b91908203918211610b5f57565b634e487b7160e01b600052601160045260246000fd5b60018060a01b031690600080826020829451910182865af13d15610c3c573d906001600160401b038211610c285790610bd09160405191610bc06020601f19601f8401160184610b19565b82523d84602084013e5b84610c48565b908151918215159283610c00575b505050610be85750565b60249060405190635274afe760e01b82526004820152fd5b81929350906020918101031261010b5760200151908115918215036101ba5750388080610bde565b634e487b7160e01b83526041600452602483fd5b610bd090606090610bca565b90610c6f5750805115610c5d57805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580610ca2575b610c80575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15610c7856fe241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08a26469706673582212205af73adbef28a182da1125aac604d019420b82e58395c99b3b244b343c45aea464736f6c63430008140033",
|
|
548
|
+
"linkReferences": {},
|
|
549
|
+
"deployedLinkReferences": {}
|
|
550
|
+
}
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"name": "RWA Vault",
|
|
60
60
|
"contract": "0xc325841d6f4C0ff71EEB00Eb16B7eD1d2990e07f"
|
|
61
61
|
},
|
|
62
|
-
"
|
|
63
|
-
"id": "
|
|
64
|
-
"name": "
|
|
62
|
+
"complianceregistry": {
|
|
63
|
+
"id": "complianceregistry",
|
|
64
|
+
"name": "Compliance Registry",
|
|
65
65
|
"contract": "0xC367bd7633e52ef3cf0aEE13CEAfCA073d25be92"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"name": "RWA Vault",
|
|
60
60
|
"contract": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
|
|
61
61
|
},
|
|
62
|
-
"
|
|
63
|
-
"id": "
|
|
64
|
-
"name": "
|
|
62
|
+
"complianceregistry": {
|
|
63
|
+
"id": "complianceregistry",
|
|
64
|
+
"name": "Compliance Registry",
|
|
65
65
|
"contract": "0x0000000000000000000000000000000000000000"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"name": "RWA Vault",
|
|
60
60
|
"contract": "0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E"
|
|
61
61
|
},
|
|
62
|
-
"
|
|
63
|
-
"id": "
|
|
64
|
-
"name": "
|
|
62
|
+
"complianceregistry": {
|
|
63
|
+
"id": "complianceregistry",
|
|
64
|
+
"name": "Compliance Registry",
|
|
65
65
|
"contract": "0x0000000000000000000000000000000000000000"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"name": "RWA Vault",
|
|
60
60
|
"contract": "0x4A679253410272dd5232B3Ff7cF5dbB88f295319"
|
|
61
61
|
},
|
|
62
|
-
"
|
|
63
|
-
"id": "
|
|
64
|
-
"name": "
|
|
62
|
+
"complianceregistry": {
|
|
63
|
+
"id": "complianceregistry",
|
|
64
|
+
"name": "Compliance Registry",
|
|
65
65
|
"contract": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -133,9 +133,9 @@
|
|
|
133
133
|
"decimals": 18,
|
|
134
134
|
"contract": "0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f"
|
|
135
135
|
},
|
|
136
|
-
"
|
|
137
|
-
"id": "
|
|
138
|
-
"name": "
|
|
136
|
+
"complianceregistry": {
|
|
137
|
+
"id": "complianceregistry",
|
|
138
|
+
"name": "Compliance Registry",
|
|
139
139
|
"decimals": 18,
|
|
140
140
|
"contract": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"
|
|
141
141
|
}
|
|
@@ -1522,7 +1522,7 @@ declare const ABIS: {
|
|
|
1522
1522
|
type: string;
|
|
1523
1523
|
anonymous?: undefined;
|
|
1524
1524
|
})[];
|
|
1525
|
-
|
|
1525
|
+
complianceregistry: ({
|
|
1526
1526
|
inputs: any[];
|
|
1527
1527
|
stateMutability: string;
|
|
1528
1528
|
type: string;
|
|
@@ -1568,6 +1568,56 @@ declare const ABIS: {
|
|
|
1568
1568
|
type: string;
|
|
1569
1569
|
anonymous?: undefined;
|
|
1570
1570
|
})[];
|
|
1571
|
+
treasury: ({
|
|
1572
|
+
inputs: {
|
|
1573
|
+
internalType: string;
|
|
1574
|
+
name: string;
|
|
1575
|
+
type: string;
|
|
1576
|
+
}[];
|
|
1577
|
+
stateMutability: string;
|
|
1578
|
+
type: string;
|
|
1579
|
+
name?: undefined;
|
|
1580
|
+
anonymous?: undefined;
|
|
1581
|
+
outputs?: undefined;
|
|
1582
|
+
} | {
|
|
1583
|
+
inputs: {
|
|
1584
|
+
internalType: string;
|
|
1585
|
+
name: string;
|
|
1586
|
+
type: string;
|
|
1587
|
+
}[];
|
|
1588
|
+
name: string;
|
|
1589
|
+
type: string;
|
|
1590
|
+
stateMutability?: undefined;
|
|
1591
|
+
anonymous?: undefined;
|
|
1592
|
+
outputs?: undefined;
|
|
1593
|
+
} | {
|
|
1594
|
+
anonymous: boolean;
|
|
1595
|
+
inputs: {
|
|
1596
|
+
indexed: boolean;
|
|
1597
|
+
internalType: string;
|
|
1598
|
+
name: string;
|
|
1599
|
+
type: string;
|
|
1600
|
+
}[];
|
|
1601
|
+
name: string;
|
|
1602
|
+
type: string;
|
|
1603
|
+
stateMutability?: undefined;
|
|
1604
|
+
outputs?: undefined;
|
|
1605
|
+
} | {
|
|
1606
|
+
inputs: {
|
|
1607
|
+
internalType: string;
|
|
1608
|
+
name: string;
|
|
1609
|
+
type: string;
|
|
1610
|
+
}[];
|
|
1611
|
+
name: string;
|
|
1612
|
+
outputs: {
|
|
1613
|
+
internalType: string;
|
|
1614
|
+
name: string;
|
|
1615
|
+
type: string;
|
|
1616
|
+
}[];
|
|
1617
|
+
stateMutability: string;
|
|
1618
|
+
type: string;
|
|
1619
|
+
anonymous?: undefined;
|
|
1620
|
+
})[];
|
|
1571
1621
|
};
|
|
1572
1622
|
export type AssetType = keyof typeof ABIS | string;
|
|
1573
1623
|
export type ContractType = keyof typeof ABIS;
|
|
@@ -3064,5 +3114,54 @@ declare const getABI: (name: keyof typeof ABIS) => ({
|
|
|
3064
3114
|
stateMutability: string;
|
|
3065
3115
|
type: string;
|
|
3066
3116
|
anonymous?: undefined;
|
|
3117
|
+
})[] | ({
|
|
3118
|
+
inputs: {
|
|
3119
|
+
internalType: string;
|
|
3120
|
+
name: string;
|
|
3121
|
+
type: string;
|
|
3122
|
+
}[];
|
|
3123
|
+
stateMutability: string;
|
|
3124
|
+
type: string;
|
|
3125
|
+
name?: undefined;
|
|
3126
|
+
anonymous?: undefined;
|
|
3127
|
+
outputs?: undefined;
|
|
3128
|
+
} | {
|
|
3129
|
+
inputs: {
|
|
3130
|
+
internalType: string;
|
|
3131
|
+
name: string;
|
|
3132
|
+
type: string;
|
|
3133
|
+
}[];
|
|
3134
|
+
name: string;
|
|
3135
|
+
type: string;
|
|
3136
|
+
stateMutability?: undefined;
|
|
3137
|
+
anonymous?: undefined;
|
|
3138
|
+
outputs?: undefined;
|
|
3139
|
+
} | {
|
|
3140
|
+
anonymous: boolean;
|
|
3141
|
+
inputs: {
|
|
3142
|
+
indexed: boolean;
|
|
3143
|
+
internalType: string;
|
|
3144
|
+
name: string;
|
|
3145
|
+
type: string;
|
|
3146
|
+
}[];
|
|
3147
|
+
name: string;
|
|
3148
|
+
type: string;
|
|
3149
|
+
stateMutability?: undefined;
|
|
3150
|
+
outputs?: undefined;
|
|
3151
|
+
} | {
|
|
3152
|
+
inputs: {
|
|
3153
|
+
internalType: string;
|
|
3154
|
+
name: string;
|
|
3155
|
+
type: string;
|
|
3156
|
+
}[];
|
|
3157
|
+
name: string;
|
|
3158
|
+
outputs: {
|
|
3159
|
+
internalType: string;
|
|
3160
|
+
name: string;
|
|
3161
|
+
type: string;
|
|
3162
|
+
}[];
|
|
3163
|
+
stateMutability: string;
|
|
3164
|
+
type: string;
|
|
3165
|
+
anonymous?: undefined;
|
|
3067
3166
|
})[];
|
|
3068
3167
|
export { getABI, ABIS };
|
package/dist/utils/artifacts.js
CHANGED
|
@@ -31,6 +31,7 @@ const ERC721VaultAdapter_json_1 = __importDefault(require("../artifacts/core/vau
|
|
|
31
31
|
const RWAIndexToken_json_1 = __importDefault(require("../artifacts/core/tokens/RWAIndexToken.sol/RWAIndexToken.json"));
|
|
32
32
|
const RAACHousePriceOracle_json_1 = __importDefault(require("../artifacts/core/oracles/RAACHousePriceOracle.sol/RAACHousePriceOracle.json"));
|
|
33
33
|
const ComplianceRegistry_json_1 = __importDefault(require("../artifacts/core/primitives/ComplianceRegistry.sol/ComplianceRegistry.json"));
|
|
34
|
+
const Treasury_json_1 = __importDefault(require("../artifacts/core/collectors/Treasury.sol/Treasury.json"));
|
|
34
35
|
const CRVUSD_ABI = crvUSDToken_json_1.default.abi;
|
|
35
36
|
const RToken_json_2 = __importDefault(require("../artifacts/core/tokens/RToken.sol/RToken.json")); // assert { type: "json" }; // TODO: Isnt this same as rcrvusd?
|
|
36
37
|
const RTOKEN_ABI = RToken_json_2.default.abi;
|
|
@@ -85,7 +86,8 @@ const ABIS = {
|
|
|
85
86
|
erc20vaultadapter: ERC20VaultAdapter_json_1.default.abi,
|
|
86
87
|
erc721vaultadapter: ERC721VaultAdapter_json_1.default.abi,
|
|
87
88
|
rwaindextoken: RWAINDEXTOKEN_ABI,
|
|
88
|
-
|
|
89
|
+
complianceregistry: ComplianceRegistry_json_1.default.abi,
|
|
90
|
+
treasury: Treasury_json_1.default.abi,
|
|
89
91
|
};
|
|
90
92
|
exports.ABIS = ABIS;
|
|
91
93
|
const getABI = (name) => {
|