@arcadia-finance/mcp-server 0.1.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.
Files changed (59) hide show
  1. package/LICENSE.md +97 -0
  2. package/README.md +186 -0
  3. package/dist/abis/account.json +1012 -0
  4. package/dist/abis/account_v4.json +1027 -0
  5. package/dist/abis/chainlink.json +509 -0
  6. package/dist/abis/erc20.json +299 -0
  7. package/dist/abis/factory.json +938 -0
  8. package/dist/abis/gauge_helper.json +84 -0
  9. package/dist/abis/index.js +26 -0
  10. package/dist/abis/mainreg.json +1172 -0
  11. package/dist/abis/nftmanager.json +1221 -0
  12. package/dist/abis/nftmanager_v4.json +1297 -0
  13. package/dist/abis/pool.json +2136 -0
  14. package/dist/abis/slipstream_nftmanager.json +1312 -0
  15. package/dist/abis/staked_aero_am.json +1220 -0
  16. package/dist/abis/staked_slipstream_am.json +1131 -0
  17. package/dist/abis/state_viewer.json +365 -0
  18. package/dist/abis/tranche.json +1004 -0
  19. package/dist/abis/wrapped_aero_am.json +1232 -0
  20. package/dist/abis/wrapped_staked_slipstream_am.json +338 -0
  21. package/dist/clients/api.js +189 -0
  22. package/dist/clients/chain.js +30 -0
  23. package/dist/config/addresses.js +94 -0
  24. package/dist/config/chains.js +31 -0
  25. package/dist/index.js +29 -0
  26. package/dist/skills/clamm-liquidity/SKILL.md +167 -0
  27. package/dist/skills/clamm-liquidity/automation.md +138 -0
  28. package/dist/skills/clamm-liquidity/selection.md +183 -0
  29. package/dist/skills/clamm-liquidity/strategies.md +337 -0
  30. package/dist/tools/advanced/account-metadata.js +46 -0
  31. package/dist/tools/advanced/add-liquidity.js +310 -0
  32. package/dist/tools/advanced/close-position.js +208 -0
  33. package/dist/tools/advanced/format-response.js +26 -0
  34. package/dist/tools/advanced/position-actions.js +95 -0
  35. package/dist/tools/advanced/remove-liquidity.js +68 -0
  36. package/dist/tools/advanced/repay-with-collateral.js +66 -0
  37. package/dist/tools/advanced/swap.js +64 -0
  38. package/dist/tools/index.js +52 -0
  39. package/dist/tools/read/accounts.js +243 -0
  40. package/dist/tools/read/allowances.js +86 -0
  41. package/dist/tools/read/assets.js +54 -0
  42. package/dist/tools/read/balances.js +93 -0
  43. package/dist/tools/read/guides.js +59 -0
  44. package/dist/tools/read/points.js +25 -0
  45. package/dist/tools/read/pools.js +48 -0
  46. package/dist/tools/read/protocol.js +94 -0
  47. package/dist/tools/write/approve.js +99 -0
  48. package/dist/tools/write/borrow.js +87 -0
  49. package/dist/tools/write/configure-asset-manager.js +258 -0
  50. package/dist/tools/write/create-account.js +112 -0
  51. package/dist/tools/write/deposit.js +104 -0
  52. package/dist/tools/write/repay.js +56 -0
  53. package/dist/tools/write/set-asset-manager.js +65 -0
  54. package/dist/tools/write/sign-and-send.js +90 -0
  55. package/dist/tools/write/withdraw.js +114 -0
  56. package/dist/types/api.js +5 -0
  57. package/dist/utils/attribution.js +20 -0
  58. package/dist/utils/validation.js +17 -0
  59. package/package.json +67 -0
@@ -0,0 +1,1172 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "factory",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ },
10
+ {
11
+ "name": "sequencerUptimeOracle_",
12
+ "type": "address",
13
+ "internalType": "address"
14
+ }
15
+ ],
16
+ "stateMutability": "nonpayable"
17
+ },
18
+ {
19
+ "type": "function",
20
+ "name": "FACTORY",
21
+ "inputs": [],
22
+ "outputs": [
23
+ {
24
+ "name": "",
25
+ "type": "address",
26
+ "internalType": "address"
27
+ }
28
+ ],
29
+ "stateMutability": "view"
30
+ },
31
+ {
32
+ "type": "function",
33
+ "name": "addAsset",
34
+ "inputs": [
35
+ {
36
+ "name": "assetAddress",
37
+ "type": "address",
38
+ "internalType": "address"
39
+ }
40
+ ],
41
+ "outputs": [],
42
+ "stateMutability": "nonpayable"
43
+ },
44
+ {
45
+ "type": "function",
46
+ "name": "addAssetModule",
47
+ "inputs": [
48
+ {
49
+ "name": "assetModule",
50
+ "type": "address",
51
+ "internalType": "address"
52
+ }
53
+ ],
54
+ "outputs": [],
55
+ "stateMutability": "nonpayable"
56
+ },
57
+ {
58
+ "type": "function",
59
+ "name": "addOracle",
60
+ "inputs": [],
61
+ "outputs": [
62
+ {
63
+ "name": "oracleId",
64
+ "type": "uint256",
65
+ "internalType": "uint256"
66
+ }
67
+ ],
68
+ "stateMutability": "nonpayable"
69
+ },
70
+ {
71
+ "type": "function",
72
+ "name": "addOracleModule",
73
+ "inputs": [
74
+ {
75
+ "name": "oracleModule",
76
+ "type": "address",
77
+ "internalType": "address"
78
+ }
79
+ ],
80
+ "outputs": [],
81
+ "stateMutability": "nonpayable"
82
+ },
83
+ {
84
+ "type": "function",
85
+ "name": "assetToAssetModule",
86
+ "inputs": [
87
+ {
88
+ "name": "",
89
+ "type": "address",
90
+ "internalType": "address"
91
+ }
92
+ ],
93
+ "outputs": [
94
+ {
95
+ "name": "",
96
+ "type": "address",
97
+ "internalType": "address"
98
+ }
99
+ ],
100
+ "stateMutability": "view"
101
+ },
102
+ {
103
+ "type": "function",
104
+ "name": "batchProcessDeposit",
105
+ "inputs": [
106
+ {
107
+ "name": "creditor",
108
+ "type": "address",
109
+ "internalType": "address"
110
+ },
111
+ {
112
+ "name": "assetAddresses",
113
+ "type": "address[]",
114
+ "internalType": "address[]"
115
+ },
116
+ {
117
+ "name": "assetIds",
118
+ "type": "uint256[]",
119
+ "internalType": "uint256[]"
120
+ },
121
+ {
122
+ "name": "amounts",
123
+ "type": "uint256[]",
124
+ "internalType": "uint256[]"
125
+ }
126
+ ],
127
+ "outputs": [
128
+ {
129
+ "name": "assetTypes",
130
+ "type": "uint256[]",
131
+ "internalType": "uint256[]"
132
+ }
133
+ ],
134
+ "stateMutability": "nonpayable"
135
+ },
136
+ {
137
+ "type": "function",
138
+ "name": "batchProcessWithdrawal",
139
+ "inputs": [
140
+ {
141
+ "name": "creditor",
142
+ "type": "address",
143
+ "internalType": "address"
144
+ },
145
+ {
146
+ "name": "assetAddresses",
147
+ "type": "address[]",
148
+ "internalType": "address[]"
149
+ },
150
+ {
151
+ "name": "assetIds",
152
+ "type": "uint256[]",
153
+ "internalType": "uint256[]"
154
+ },
155
+ {
156
+ "name": "amounts",
157
+ "type": "uint256[]",
158
+ "internalType": "uint256[]"
159
+ }
160
+ ],
161
+ "outputs": [
162
+ {
163
+ "name": "assetTypes",
164
+ "type": "uint256[]",
165
+ "internalType": "uint256[]"
166
+ }
167
+ ],
168
+ "stateMutability": "nonpayable"
169
+ },
170
+ {
171
+ "type": "function",
172
+ "name": "changeGuardian",
173
+ "inputs": [
174
+ {
175
+ "name": "guardian_",
176
+ "type": "address",
177
+ "internalType": "address"
178
+ }
179
+ ],
180
+ "outputs": [],
181
+ "stateMutability": "nonpayable"
182
+ },
183
+ {
184
+ "type": "function",
185
+ "name": "checkOracleSequence",
186
+ "inputs": [
187
+ {
188
+ "name": "oracleSequence",
189
+ "type": "bytes32",
190
+ "internalType": "bytes32"
191
+ }
192
+ ],
193
+ "outputs": [
194
+ {
195
+ "name": "",
196
+ "type": "bool",
197
+ "internalType": "bool"
198
+ }
199
+ ],
200
+ "stateMutability": "view"
201
+ },
202
+ {
203
+ "type": "function",
204
+ "name": "depositPaused",
205
+ "inputs": [],
206
+ "outputs": [
207
+ {
208
+ "name": "",
209
+ "type": "bool",
210
+ "internalType": "bool"
211
+ }
212
+ ],
213
+ "stateMutability": "view"
214
+ },
215
+ {
216
+ "type": "function",
217
+ "name": "getCollateralValue",
218
+ "inputs": [
219
+ {
220
+ "name": "numeraire",
221
+ "type": "address",
222
+ "internalType": "address"
223
+ },
224
+ {
225
+ "name": "creditor",
226
+ "type": "address",
227
+ "internalType": "address"
228
+ },
229
+ {
230
+ "name": "assetAddresses",
231
+ "type": "address[]",
232
+ "internalType": "address[]"
233
+ },
234
+ {
235
+ "name": "assetIds",
236
+ "type": "uint256[]",
237
+ "internalType": "uint256[]"
238
+ },
239
+ {
240
+ "name": "assetAmounts",
241
+ "type": "uint256[]",
242
+ "internalType": "uint256[]"
243
+ }
244
+ ],
245
+ "outputs": [
246
+ {
247
+ "name": "collateralValue",
248
+ "type": "uint256",
249
+ "internalType": "uint256"
250
+ }
251
+ ],
252
+ "stateMutability": "view"
253
+ },
254
+ {
255
+ "type": "function",
256
+ "name": "getLiquidationValue",
257
+ "inputs": [
258
+ {
259
+ "name": "numeraire",
260
+ "type": "address",
261
+ "internalType": "address"
262
+ },
263
+ {
264
+ "name": "creditor",
265
+ "type": "address",
266
+ "internalType": "address"
267
+ },
268
+ {
269
+ "name": "assetAddresses",
270
+ "type": "address[]",
271
+ "internalType": "address[]"
272
+ },
273
+ {
274
+ "name": "assetIds",
275
+ "type": "uint256[]",
276
+ "internalType": "uint256[]"
277
+ },
278
+ {
279
+ "name": "assetAmounts",
280
+ "type": "uint256[]",
281
+ "internalType": "uint256[]"
282
+ }
283
+ ],
284
+ "outputs": [
285
+ {
286
+ "name": "liquidationValue",
287
+ "type": "uint256",
288
+ "internalType": "uint256"
289
+ }
290
+ ],
291
+ "stateMutability": "view"
292
+ },
293
+ {
294
+ "type": "function",
295
+ "name": "getRateInUsd",
296
+ "inputs": [
297
+ {
298
+ "name": "oracleSequence",
299
+ "type": "bytes32",
300
+ "internalType": "bytes32"
301
+ }
302
+ ],
303
+ "outputs": [
304
+ {
305
+ "name": "rate",
306
+ "type": "uint256",
307
+ "internalType": "uint256"
308
+ }
309
+ ],
310
+ "stateMutability": "view"
311
+ },
312
+ {
313
+ "type": "function",
314
+ "name": "getRiskFactors",
315
+ "inputs": [
316
+ {
317
+ "name": "creditor",
318
+ "type": "address",
319
+ "internalType": "address"
320
+ },
321
+ {
322
+ "name": "assetAddresses",
323
+ "type": "address[]",
324
+ "internalType": "address[]"
325
+ },
326
+ {
327
+ "name": "assetIds",
328
+ "type": "uint256[]",
329
+ "internalType": "uint256[]"
330
+ }
331
+ ],
332
+ "outputs": [
333
+ {
334
+ "name": "collateralFactors",
335
+ "type": "uint16[]",
336
+ "internalType": "uint16[]"
337
+ },
338
+ {
339
+ "name": "liquidationFactors",
340
+ "type": "uint16[]",
341
+ "internalType": "uint16[]"
342
+ }
343
+ ],
344
+ "stateMutability": "view"
345
+ },
346
+ {
347
+ "type": "function",
348
+ "name": "getTotalValue",
349
+ "inputs": [
350
+ {
351
+ "name": "numeraire",
352
+ "type": "address",
353
+ "internalType": "address"
354
+ },
355
+ {
356
+ "name": "creditor",
357
+ "type": "address",
358
+ "internalType": "address"
359
+ },
360
+ {
361
+ "name": "assetAddresses",
362
+ "type": "address[]",
363
+ "internalType": "address[]"
364
+ },
365
+ {
366
+ "name": "assetIds",
367
+ "type": "uint256[]",
368
+ "internalType": "uint256[]"
369
+ },
370
+ {
371
+ "name": "assetAmounts",
372
+ "type": "uint256[]",
373
+ "internalType": "uint256[]"
374
+ }
375
+ ],
376
+ "outputs": [
377
+ {
378
+ "name": "assetValue",
379
+ "type": "uint256",
380
+ "internalType": "uint256"
381
+ }
382
+ ],
383
+ "stateMutability": "view"
384
+ },
385
+ {
386
+ "type": "function",
387
+ "name": "getUsdValueExposureToUnderlyingAssetAfterDeposit",
388
+ "inputs": [
389
+ {
390
+ "name": "creditor",
391
+ "type": "address",
392
+ "internalType": "address"
393
+ },
394
+ {
395
+ "name": "underlyingAsset",
396
+ "type": "address",
397
+ "internalType": "address"
398
+ },
399
+ {
400
+ "name": "underlyingAssetId",
401
+ "type": "uint256",
402
+ "internalType": "uint256"
403
+ },
404
+ {
405
+ "name": "exposureAssetToUnderlyingAsset",
406
+ "type": "uint256",
407
+ "internalType": "uint256"
408
+ },
409
+ {
410
+ "name": "deltaExposureAssetToUnderlyingAsset",
411
+ "type": "int256",
412
+ "internalType": "int256"
413
+ }
414
+ ],
415
+ "outputs": [
416
+ {
417
+ "name": "recursiveCalls",
418
+ "type": "uint256",
419
+ "internalType": "uint256"
420
+ },
421
+ {
422
+ "name": "usdExposureAssetToUnderlyingAsset",
423
+ "type": "uint256",
424
+ "internalType": "uint256"
425
+ }
426
+ ],
427
+ "stateMutability": "nonpayable"
428
+ },
429
+ {
430
+ "type": "function",
431
+ "name": "getUsdValueExposureToUnderlyingAssetAfterWithdrawal",
432
+ "inputs": [
433
+ {
434
+ "name": "creditor",
435
+ "type": "address",
436
+ "internalType": "address"
437
+ },
438
+ {
439
+ "name": "underlyingAsset",
440
+ "type": "address",
441
+ "internalType": "address"
442
+ },
443
+ {
444
+ "name": "underlyingAssetId",
445
+ "type": "uint256",
446
+ "internalType": "uint256"
447
+ },
448
+ {
449
+ "name": "exposureAssetToUnderlyingAsset",
450
+ "type": "uint256",
451
+ "internalType": "uint256"
452
+ },
453
+ {
454
+ "name": "deltaExposureAssetToUnderlyingAsset",
455
+ "type": "int256",
456
+ "internalType": "int256"
457
+ }
458
+ ],
459
+ "outputs": [
460
+ {
461
+ "name": "usdExposureAssetToUnderlyingAsset",
462
+ "type": "uint256",
463
+ "internalType": "uint256"
464
+ }
465
+ ],
466
+ "stateMutability": "nonpayable"
467
+ },
468
+ {
469
+ "type": "function",
470
+ "name": "getValuesInNumeraire",
471
+ "inputs": [
472
+ {
473
+ "name": "numeraire",
474
+ "type": "address",
475
+ "internalType": "address"
476
+ },
477
+ {
478
+ "name": "creditor",
479
+ "type": "address",
480
+ "internalType": "address"
481
+ },
482
+ {
483
+ "name": "assetAddresses",
484
+ "type": "address[]",
485
+ "internalType": "address[]"
486
+ },
487
+ {
488
+ "name": "assetIds",
489
+ "type": "uint256[]",
490
+ "internalType": "uint256[]"
491
+ },
492
+ {
493
+ "name": "assetAmounts",
494
+ "type": "uint256[]",
495
+ "internalType": "uint256[]"
496
+ }
497
+ ],
498
+ "outputs": [
499
+ {
500
+ "name": "valuesAndRiskFactors",
501
+ "type": "tuple[]",
502
+ "internalType": "struct AssetValueAndRiskFactors[]",
503
+ "components": [
504
+ {
505
+ "name": "assetValue",
506
+ "type": "uint256",
507
+ "internalType": "uint256"
508
+ },
509
+ {
510
+ "name": "collateralFactor",
511
+ "type": "uint256",
512
+ "internalType": "uint256"
513
+ },
514
+ {
515
+ "name": "liquidationFactor",
516
+ "type": "uint256",
517
+ "internalType": "uint256"
518
+ }
519
+ ]
520
+ }
521
+ ],
522
+ "stateMutability": "view"
523
+ },
524
+ {
525
+ "type": "function",
526
+ "name": "getValuesInUsd",
527
+ "inputs": [
528
+ {
529
+ "name": "creditor",
530
+ "type": "address",
531
+ "internalType": "address"
532
+ },
533
+ {
534
+ "name": "assets",
535
+ "type": "address[]",
536
+ "internalType": "address[]"
537
+ },
538
+ {
539
+ "name": "assetIds",
540
+ "type": "uint256[]",
541
+ "internalType": "uint256[]"
542
+ },
543
+ {
544
+ "name": "assetAmounts",
545
+ "type": "uint256[]",
546
+ "internalType": "uint256[]"
547
+ }
548
+ ],
549
+ "outputs": [
550
+ {
551
+ "name": "valuesAndRiskFactors",
552
+ "type": "tuple[]",
553
+ "internalType": "struct AssetValueAndRiskFactors[]",
554
+ "components": [
555
+ {
556
+ "name": "assetValue",
557
+ "type": "uint256",
558
+ "internalType": "uint256"
559
+ },
560
+ {
561
+ "name": "collateralFactor",
562
+ "type": "uint256",
563
+ "internalType": "uint256"
564
+ },
565
+ {
566
+ "name": "liquidationFactor",
567
+ "type": "uint256",
568
+ "internalType": "uint256"
569
+ }
570
+ ]
571
+ }
572
+ ],
573
+ "stateMutability": "view"
574
+ },
575
+ {
576
+ "type": "function",
577
+ "name": "getValuesInUsdRecursive",
578
+ "inputs": [
579
+ {
580
+ "name": "creditor",
581
+ "type": "address",
582
+ "internalType": "address"
583
+ },
584
+ {
585
+ "name": "assets",
586
+ "type": "address[]",
587
+ "internalType": "address[]"
588
+ },
589
+ {
590
+ "name": "assetIds",
591
+ "type": "uint256[]",
592
+ "internalType": "uint256[]"
593
+ },
594
+ {
595
+ "name": "assetAmounts",
596
+ "type": "uint256[]",
597
+ "internalType": "uint256[]"
598
+ }
599
+ ],
600
+ "outputs": [
601
+ {
602
+ "name": "valuesAndRiskFactors",
603
+ "type": "tuple[]",
604
+ "internalType": "struct AssetValueAndRiskFactors[]",
605
+ "components": [
606
+ {
607
+ "name": "assetValue",
608
+ "type": "uint256",
609
+ "internalType": "uint256"
610
+ },
611
+ {
612
+ "name": "collateralFactor",
613
+ "type": "uint256",
614
+ "internalType": "uint256"
615
+ },
616
+ {
617
+ "name": "liquidationFactor",
618
+ "type": "uint256",
619
+ "internalType": "uint256"
620
+ }
621
+ ]
622
+ }
623
+ ],
624
+ "stateMutability": "view"
625
+ },
626
+ {
627
+ "type": "function",
628
+ "name": "guardian",
629
+ "inputs": [],
630
+ "outputs": [
631
+ {
632
+ "name": "",
633
+ "type": "address",
634
+ "internalType": "address"
635
+ }
636
+ ],
637
+ "stateMutability": "view"
638
+ },
639
+ {
640
+ "type": "function",
641
+ "name": "inRegistry",
642
+ "inputs": [
643
+ {
644
+ "name": "",
645
+ "type": "address",
646
+ "internalType": "address"
647
+ }
648
+ ],
649
+ "outputs": [
650
+ {
651
+ "name": "",
652
+ "type": "bool",
653
+ "internalType": "bool"
654
+ }
655
+ ],
656
+ "stateMutability": "view"
657
+ },
658
+ {
659
+ "type": "function",
660
+ "name": "isAllowed",
661
+ "inputs": [
662
+ {
663
+ "name": "asset",
664
+ "type": "address",
665
+ "internalType": "address"
666
+ },
667
+ {
668
+ "name": "assetId",
669
+ "type": "uint256",
670
+ "internalType": "uint256"
671
+ }
672
+ ],
673
+ "outputs": [
674
+ {
675
+ "name": "",
676
+ "type": "bool",
677
+ "internalType": "bool"
678
+ }
679
+ ],
680
+ "stateMutability": "view"
681
+ },
682
+ {
683
+ "type": "function",
684
+ "name": "isAssetModule",
685
+ "inputs": [
686
+ {
687
+ "name": "",
688
+ "type": "address",
689
+ "internalType": "address"
690
+ }
691
+ ],
692
+ "outputs": [
693
+ {
694
+ "name": "",
695
+ "type": "bool",
696
+ "internalType": "bool"
697
+ }
698
+ ],
699
+ "stateMutability": "view"
700
+ },
701
+ {
702
+ "type": "function",
703
+ "name": "isOracleModule",
704
+ "inputs": [
705
+ {
706
+ "name": "",
707
+ "type": "address",
708
+ "internalType": "address"
709
+ }
710
+ ],
711
+ "outputs": [
712
+ {
713
+ "name": "",
714
+ "type": "bool",
715
+ "internalType": "bool"
716
+ }
717
+ ],
718
+ "stateMutability": "view"
719
+ },
720
+ {
721
+ "type": "function",
722
+ "name": "owner",
723
+ "inputs": [],
724
+ "outputs": [
725
+ {
726
+ "name": "",
727
+ "type": "address",
728
+ "internalType": "address"
729
+ }
730
+ ],
731
+ "stateMutability": "view"
732
+ },
733
+ {
734
+ "type": "function",
735
+ "name": "pause",
736
+ "inputs": [],
737
+ "outputs": [],
738
+ "stateMutability": "nonpayable"
739
+ },
740
+ {
741
+ "type": "function",
742
+ "name": "pauseTimestamp",
743
+ "inputs": [],
744
+ "outputs": [
745
+ {
746
+ "name": "",
747
+ "type": "uint96",
748
+ "internalType": "uint96"
749
+ }
750
+ ],
751
+ "stateMutability": "view"
752
+ },
753
+ {
754
+ "type": "function",
755
+ "name": "riskParams",
756
+ "inputs": [
757
+ {
758
+ "name": "creditor",
759
+ "type": "address",
760
+ "internalType": "address"
761
+ }
762
+ ],
763
+ "outputs": [
764
+ {
765
+ "name": "minUsdValue",
766
+ "type": "uint128",
767
+ "internalType": "uint128"
768
+ },
769
+ {
770
+ "name": "gracePeriod",
771
+ "type": "uint64",
772
+ "internalType": "uint64"
773
+ },
774
+ {
775
+ "name": "maxRecursiveCalls",
776
+ "type": "uint64",
777
+ "internalType": "uint64"
778
+ }
779
+ ],
780
+ "stateMutability": "view"
781
+ },
782
+ {
783
+ "type": "function",
784
+ "name": "setRiskParameters",
785
+ "inputs": [
786
+ {
787
+ "name": "creditor",
788
+ "type": "address",
789
+ "internalType": "address"
790
+ },
791
+ {
792
+ "name": "minUsdValue",
793
+ "type": "uint128",
794
+ "internalType": "uint128"
795
+ },
796
+ {
797
+ "name": "gracePeriod",
798
+ "type": "uint64",
799
+ "internalType": "uint64"
800
+ },
801
+ {
802
+ "name": "maxRecursiveCalls",
803
+ "type": "uint64",
804
+ "internalType": "uint64"
805
+ }
806
+ ],
807
+ "outputs": [],
808
+ "stateMutability": "nonpayable"
809
+ },
810
+ {
811
+ "type": "function",
812
+ "name": "setRiskParametersOfDerivedAM",
813
+ "inputs": [
814
+ {
815
+ "name": "creditor",
816
+ "type": "address",
817
+ "internalType": "address"
818
+ },
819
+ {
820
+ "name": "assetModule",
821
+ "type": "address",
822
+ "internalType": "address"
823
+ },
824
+ {
825
+ "name": "maxUsdExposureProtocol",
826
+ "type": "uint112",
827
+ "internalType": "uint112"
828
+ },
829
+ {
830
+ "name": "riskFactor",
831
+ "type": "uint16",
832
+ "internalType": "uint16"
833
+ }
834
+ ],
835
+ "outputs": [],
836
+ "stateMutability": "nonpayable"
837
+ },
838
+ {
839
+ "type": "function",
840
+ "name": "setRiskParametersOfPrimaryAsset",
841
+ "inputs": [
842
+ {
843
+ "name": "creditor",
844
+ "type": "address",
845
+ "internalType": "address"
846
+ },
847
+ {
848
+ "name": "asset",
849
+ "type": "address",
850
+ "internalType": "address"
851
+ },
852
+ {
853
+ "name": "assetId",
854
+ "type": "uint256",
855
+ "internalType": "uint256"
856
+ },
857
+ {
858
+ "name": "maxExposure",
859
+ "type": "uint112",
860
+ "internalType": "uint112"
861
+ },
862
+ {
863
+ "name": "collateralFactor",
864
+ "type": "uint16",
865
+ "internalType": "uint16"
866
+ },
867
+ {
868
+ "name": "liquidationFactor",
869
+ "type": "uint16",
870
+ "internalType": "uint16"
871
+ }
872
+ ],
873
+ "outputs": [],
874
+ "stateMutability": "nonpayable"
875
+ },
876
+ {
877
+ "type": "function",
878
+ "name": "setSequencerUptimeOracle",
879
+ "inputs": [
880
+ {
881
+ "name": "sequencerUptimeOracle_",
882
+ "type": "address",
883
+ "internalType": "address"
884
+ }
885
+ ],
886
+ "outputs": [],
887
+ "stateMutability": "nonpayable"
888
+ },
889
+ {
890
+ "type": "function",
891
+ "name": "transferOwnership",
892
+ "inputs": [
893
+ {
894
+ "name": "newOwner",
895
+ "type": "address",
896
+ "internalType": "address"
897
+ }
898
+ ],
899
+ "outputs": [],
900
+ "stateMutability": "nonpayable"
901
+ },
902
+ {
903
+ "type": "function",
904
+ "name": "unpause",
905
+ "inputs": [],
906
+ "outputs": [],
907
+ "stateMutability": "nonpayable"
908
+ },
909
+ {
910
+ "type": "function",
911
+ "name": "unpause",
912
+ "inputs": [
913
+ {
914
+ "name": "withdrawPaused_",
915
+ "type": "bool",
916
+ "internalType": "bool"
917
+ },
918
+ {
919
+ "name": "depositPaused_",
920
+ "type": "bool",
921
+ "internalType": "bool"
922
+ }
923
+ ],
924
+ "outputs": [],
925
+ "stateMutability": "nonpayable"
926
+ },
927
+ {
928
+ "type": "function",
929
+ "name": "withdrawPaused",
930
+ "inputs": [],
931
+ "outputs": [
932
+ {
933
+ "name": "",
934
+ "type": "bool",
935
+ "internalType": "bool"
936
+ }
937
+ ],
938
+ "stateMutability": "view"
939
+ },
940
+ {
941
+ "type": "event",
942
+ "name": "AssetAdded",
943
+ "inputs": [
944
+ {
945
+ "name": "assetAddress",
946
+ "type": "address",
947
+ "indexed": true,
948
+ "internalType": "address"
949
+ },
950
+ {
951
+ "name": "assetModule",
952
+ "type": "address",
953
+ "indexed": true,
954
+ "internalType": "address"
955
+ }
956
+ ],
957
+ "anonymous": false
958
+ },
959
+ {
960
+ "type": "event",
961
+ "name": "AssetModuleAdded",
962
+ "inputs": [
963
+ {
964
+ "name": "assetModule",
965
+ "type": "address",
966
+ "indexed": false,
967
+ "internalType": "address"
968
+ }
969
+ ],
970
+ "anonymous": false
971
+ },
972
+ {
973
+ "type": "event",
974
+ "name": "Deposit",
975
+ "inputs": [
976
+ {
977
+ "name": "account",
978
+ "type": "address",
979
+ "indexed": false,
980
+ "internalType": "address"
981
+ }
982
+ ],
983
+ "anonymous": false
984
+ },
985
+ {
986
+ "type": "event",
987
+ "name": "GuardianChanged",
988
+ "inputs": [
989
+ {
990
+ "name": "user",
991
+ "type": "address",
992
+ "indexed": true,
993
+ "internalType": "address"
994
+ },
995
+ {
996
+ "name": "newGuardian",
997
+ "type": "address",
998
+ "indexed": true,
999
+ "internalType": "address"
1000
+ }
1001
+ ],
1002
+ "anonymous": false
1003
+ },
1004
+ {
1005
+ "type": "event",
1006
+ "name": "OracleAdded",
1007
+ "inputs": [
1008
+ {
1009
+ "name": "oracleId",
1010
+ "type": "uint256",
1011
+ "indexed": true,
1012
+ "internalType": "uint256"
1013
+ },
1014
+ {
1015
+ "name": "oracleModule",
1016
+ "type": "address",
1017
+ "indexed": true,
1018
+ "internalType": "address"
1019
+ }
1020
+ ],
1021
+ "anonymous": false
1022
+ },
1023
+ {
1024
+ "type": "event",
1025
+ "name": "OracleModuleAdded",
1026
+ "inputs": [
1027
+ {
1028
+ "name": "oracleModule",
1029
+ "type": "address",
1030
+ "indexed": false,
1031
+ "internalType": "address"
1032
+ }
1033
+ ],
1034
+ "anonymous": false
1035
+ },
1036
+ {
1037
+ "type": "event",
1038
+ "name": "OwnershipTransferred",
1039
+ "inputs": [
1040
+ {
1041
+ "name": "user",
1042
+ "type": "address",
1043
+ "indexed": true,
1044
+ "internalType": "address"
1045
+ },
1046
+ {
1047
+ "name": "newOwner",
1048
+ "type": "address",
1049
+ "indexed": true,
1050
+ "internalType": "address"
1051
+ }
1052
+ ],
1053
+ "anonymous": false
1054
+ },
1055
+ {
1056
+ "type": "event",
1057
+ "name": "PauseFlagsUpdated",
1058
+ "inputs": [
1059
+ {
1060
+ "name": "withdrawPauseUpdate",
1061
+ "type": "bool",
1062
+ "indexed": false,
1063
+ "internalType": "bool"
1064
+ },
1065
+ {
1066
+ "name": "depositPauseUpdate",
1067
+ "type": "bool",
1068
+ "indexed": false,
1069
+ "internalType": "bool"
1070
+ }
1071
+ ],
1072
+ "anonymous": false
1073
+ },
1074
+ {
1075
+ "type": "event",
1076
+ "name": "Withdrawal",
1077
+ "inputs": [
1078
+ {
1079
+ "name": "account",
1080
+ "type": "address",
1081
+ "indexed": false,
1082
+ "internalType": "address"
1083
+ }
1084
+ ],
1085
+ "anonymous": false
1086
+ },
1087
+ {
1088
+ "type": "error",
1089
+ "name": "AssetAlreadyInRegistry",
1090
+ "inputs": []
1091
+ },
1092
+ {
1093
+ "type": "error",
1094
+ "name": "AssetModNotUnique",
1095
+ "inputs": []
1096
+ },
1097
+ {
1098
+ "type": "error",
1099
+ "name": "AssetNotAllowed",
1100
+ "inputs": []
1101
+ },
1102
+ {
1103
+ "type": "error",
1104
+ "name": "CoolDownPeriodNotPassed",
1105
+ "inputs": []
1106
+ },
1107
+ {
1108
+ "type": "error",
1109
+ "name": "FunctionIsPaused",
1110
+ "inputs": []
1111
+ },
1112
+ {
1113
+ "type": "error",
1114
+ "name": "LengthMismatch",
1115
+ "inputs": []
1116
+ },
1117
+ {
1118
+ "type": "error",
1119
+ "name": "MaxRecursiveCallsReached",
1120
+ "inputs": []
1121
+ },
1122
+ {
1123
+ "type": "error",
1124
+ "name": "Min1Oracle",
1125
+ "inputs": []
1126
+ },
1127
+ {
1128
+ "type": "error",
1129
+ "name": "OnlyAccount",
1130
+ "inputs": []
1131
+ },
1132
+ {
1133
+ "type": "error",
1134
+ "name": "OnlyAssetModule",
1135
+ "inputs": []
1136
+ },
1137
+ {
1138
+ "type": "error",
1139
+ "name": "OnlyGuardian",
1140
+ "inputs": []
1141
+ },
1142
+ {
1143
+ "type": "error",
1144
+ "name": "OnlyOracleModule",
1145
+ "inputs": []
1146
+ },
1147
+ {
1148
+ "type": "error",
1149
+ "name": "OracleModNotUnique",
1150
+ "inputs": []
1151
+ },
1152
+ {
1153
+ "type": "error",
1154
+ "name": "OracleNotReverting",
1155
+ "inputs": []
1156
+ },
1157
+ {
1158
+ "type": "error",
1159
+ "name": "OracleReverting",
1160
+ "inputs": []
1161
+ },
1162
+ {
1163
+ "type": "error",
1164
+ "name": "SequencerDown",
1165
+ "inputs": []
1166
+ },
1167
+ {
1168
+ "type": "error",
1169
+ "name": "Unauthorized",
1170
+ "inputs": []
1171
+ }
1172
+ ]