@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,1012 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "factory",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "fallback",
15
+ "stateMutability": "nonpayable"
16
+ },
17
+ {
18
+ "type": "function",
19
+ "name": "ACCOUNT_VERSION",
20
+ "inputs": [],
21
+ "outputs": [
22
+ {
23
+ "name": "",
24
+ "type": "uint256",
25
+ "internalType": "uint256"
26
+ }
27
+ ],
28
+ "stateMutability": "view"
29
+ },
30
+ {
31
+ "type": "function",
32
+ "name": "ASSET_LIMIT",
33
+ "inputs": [],
34
+ "outputs": [
35
+ {
36
+ "name": "",
37
+ "type": "uint256",
38
+ "internalType": "uint256"
39
+ }
40
+ ],
41
+ "stateMutability": "view"
42
+ },
43
+ {
44
+ "type": "function",
45
+ "name": "FACTORY",
46
+ "inputs": [],
47
+ "outputs": [
48
+ {
49
+ "name": "",
50
+ "type": "address",
51
+ "internalType": "address"
52
+ }
53
+ ],
54
+ "stateMutability": "view"
55
+ },
56
+ {
57
+ "type": "function",
58
+ "name": "approvedCreditor",
59
+ "inputs": [
60
+ {
61
+ "name": "",
62
+ "type": "address",
63
+ "internalType": "address"
64
+ }
65
+ ],
66
+ "outputs": [
67
+ {
68
+ "name": "",
69
+ "type": "address",
70
+ "internalType": "address"
71
+ }
72
+ ],
73
+ "stateMutability": "view"
74
+ },
75
+ {
76
+ "type": "function",
77
+ "name": "auctionBid",
78
+ "inputs": [
79
+ {
80
+ "name": "assetAddresses",
81
+ "type": "address[]",
82
+ "internalType": "address[]"
83
+ },
84
+ {
85
+ "name": "assetIds",
86
+ "type": "uint256[]",
87
+ "internalType": "uint256[]"
88
+ },
89
+ {
90
+ "name": "assetAmounts",
91
+ "type": "uint256[]",
92
+ "internalType": "uint256[]"
93
+ },
94
+ {
95
+ "name": "bidder",
96
+ "type": "address",
97
+ "internalType": "address"
98
+ }
99
+ ],
100
+ "outputs": [
101
+ {
102
+ "name": "assetAmounts_",
103
+ "type": "uint256[]",
104
+ "internalType": "uint256[]"
105
+ }
106
+ ],
107
+ "stateMutability": "nonpayable"
108
+ },
109
+ {
110
+ "type": "function",
111
+ "name": "auctionBoughtIn",
112
+ "inputs": [
113
+ {
114
+ "name": "recipient",
115
+ "type": "address",
116
+ "internalType": "address"
117
+ }
118
+ ],
119
+ "outputs": [],
120
+ "stateMutability": "nonpayable"
121
+ },
122
+ {
123
+ "type": "function",
124
+ "name": "closeMarginAccount",
125
+ "inputs": [],
126
+ "outputs": [],
127
+ "stateMutability": "nonpayable"
128
+ },
129
+ {
130
+ "type": "function",
131
+ "name": "creditor",
132
+ "inputs": [],
133
+ "outputs": [
134
+ {
135
+ "name": "",
136
+ "type": "address",
137
+ "internalType": "address"
138
+ }
139
+ ],
140
+ "stateMutability": "view"
141
+ },
142
+ {
143
+ "type": "function",
144
+ "name": "deposit",
145
+ "inputs": [
146
+ {
147
+ "name": "assetAddresses",
148
+ "type": "address[]",
149
+ "internalType": "address[]"
150
+ },
151
+ {
152
+ "name": "assetIds",
153
+ "type": "uint256[]",
154
+ "internalType": "uint256[]"
155
+ },
156
+ {
157
+ "name": "assetAmounts",
158
+ "type": "uint256[]",
159
+ "internalType": "uint256[]"
160
+ }
161
+ ],
162
+ "outputs": [],
163
+ "stateMutability": "nonpayable"
164
+ },
165
+ {
166
+ "type": "function",
167
+ "name": "endAuction",
168
+ "inputs": [],
169
+ "outputs": [],
170
+ "stateMutability": "nonpayable"
171
+ },
172
+ {
173
+ "type": "function",
174
+ "name": "erc1155Balances",
175
+ "inputs": [
176
+ {
177
+ "name": "",
178
+ "type": "address",
179
+ "internalType": "address"
180
+ },
181
+ {
182
+ "name": "",
183
+ "type": "uint256",
184
+ "internalType": "uint256"
185
+ }
186
+ ],
187
+ "outputs": [
188
+ {
189
+ "name": "",
190
+ "type": "uint256",
191
+ "internalType": "uint256"
192
+ }
193
+ ],
194
+ "stateMutability": "view"
195
+ },
196
+ {
197
+ "type": "function",
198
+ "name": "erc20Balances",
199
+ "inputs": [
200
+ {
201
+ "name": "",
202
+ "type": "address",
203
+ "internalType": "address"
204
+ }
205
+ ],
206
+ "outputs": [
207
+ {
208
+ "name": "",
209
+ "type": "uint256",
210
+ "internalType": "uint256"
211
+ }
212
+ ],
213
+ "stateMutability": "view"
214
+ },
215
+ {
216
+ "type": "function",
217
+ "name": "flashAction",
218
+ "inputs": [
219
+ {
220
+ "name": "actionTarget",
221
+ "type": "address",
222
+ "internalType": "address"
223
+ },
224
+ {
225
+ "name": "actionData",
226
+ "type": "bytes",
227
+ "internalType": "bytes"
228
+ }
229
+ ],
230
+ "outputs": [],
231
+ "stateMutability": "nonpayable"
232
+ },
233
+ {
234
+ "type": "function",
235
+ "name": "flashActionByCreditor",
236
+ "inputs": [
237
+ {
238
+ "name": "callbackData",
239
+ "type": "bytes",
240
+ "internalType": "bytes"
241
+ },
242
+ {
243
+ "name": "actionTarget",
244
+ "type": "address",
245
+ "internalType": "address"
246
+ },
247
+ {
248
+ "name": "actionData",
249
+ "type": "bytes",
250
+ "internalType": "bytes"
251
+ }
252
+ ],
253
+ "outputs": [
254
+ {
255
+ "name": "accountVersion",
256
+ "type": "uint256",
257
+ "internalType": "uint256"
258
+ }
259
+ ],
260
+ "stateMutability": "nonpayable"
261
+ },
262
+ {
263
+ "type": "function",
264
+ "name": "generateAssetData",
265
+ "inputs": [],
266
+ "outputs": [
267
+ {
268
+ "name": "assetAddresses",
269
+ "type": "address[]",
270
+ "internalType": "address[]"
271
+ },
272
+ {
273
+ "name": "assetIds",
274
+ "type": "uint256[]",
275
+ "internalType": "uint256[]"
276
+ },
277
+ {
278
+ "name": "assetAmounts",
279
+ "type": "uint256[]",
280
+ "internalType": "uint256[]"
281
+ }
282
+ ],
283
+ "stateMutability": "view"
284
+ },
285
+ {
286
+ "type": "function",
287
+ "name": "getAccountValue",
288
+ "inputs": [
289
+ {
290
+ "name": "numeraire_",
291
+ "type": "address",
292
+ "internalType": "address"
293
+ }
294
+ ],
295
+ "outputs": [
296
+ {
297
+ "name": "accountValue",
298
+ "type": "uint256",
299
+ "internalType": "uint256"
300
+ }
301
+ ],
302
+ "stateMutability": "view"
303
+ },
304
+ {
305
+ "type": "function",
306
+ "name": "getCollateralValue",
307
+ "inputs": [],
308
+ "outputs": [
309
+ {
310
+ "name": "collateralValue",
311
+ "type": "uint256",
312
+ "internalType": "uint256"
313
+ }
314
+ ],
315
+ "stateMutability": "view"
316
+ },
317
+ {
318
+ "type": "function",
319
+ "name": "getFreeMargin",
320
+ "inputs": [],
321
+ "outputs": [
322
+ {
323
+ "name": "freeMargin",
324
+ "type": "uint256",
325
+ "internalType": "uint256"
326
+ }
327
+ ],
328
+ "stateMutability": "view"
329
+ },
330
+ {
331
+ "type": "function",
332
+ "name": "getLiquidationValue",
333
+ "inputs": [],
334
+ "outputs": [
335
+ {
336
+ "name": "liquidationValue",
337
+ "type": "uint256",
338
+ "internalType": "uint256"
339
+ }
340
+ ],
341
+ "stateMutability": "view"
342
+ },
343
+ {
344
+ "type": "function",
345
+ "name": "getUsedMargin",
346
+ "inputs": [],
347
+ "outputs": [
348
+ {
349
+ "name": "usedMargin",
350
+ "type": "uint256",
351
+ "internalType": "uint256"
352
+ }
353
+ ],
354
+ "stateMutability": "view"
355
+ },
356
+ {
357
+ "type": "function",
358
+ "name": "inAuction",
359
+ "inputs": [],
360
+ "outputs": [
361
+ {
362
+ "name": "",
363
+ "type": "bool",
364
+ "internalType": "bool"
365
+ }
366
+ ],
367
+ "stateMutability": "view"
368
+ },
369
+ {
370
+ "type": "function",
371
+ "name": "increaseOpenPosition",
372
+ "inputs": [
373
+ {
374
+ "name": "openPosition",
375
+ "type": "uint256",
376
+ "internalType": "uint256"
377
+ }
378
+ ],
379
+ "outputs": [
380
+ {
381
+ "name": "accountVersion",
382
+ "type": "uint256",
383
+ "internalType": "uint256"
384
+ }
385
+ ],
386
+ "stateMutability": "nonpayable"
387
+ },
388
+ {
389
+ "type": "function",
390
+ "name": "initialize",
391
+ "inputs": [
392
+ {
393
+ "name": "owner_",
394
+ "type": "address",
395
+ "internalType": "address"
396
+ },
397
+ {
398
+ "name": "registry_",
399
+ "type": "address",
400
+ "internalType": "address"
401
+ },
402
+ {
403
+ "name": "creditor_",
404
+ "type": "address",
405
+ "internalType": "address"
406
+ }
407
+ ],
408
+ "outputs": [],
409
+ "stateMutability": "nonpayable"
410
+ },
411
+ {
412
+ "type": "function",
413
+ "name": "isAccountLiquidatable",
414
+ "inputs": [],
415
+ "outputs": [
416
+ {
417
+ "name": "success",
418
+ "type": "bool",
419
+ "internalType": "bool"
420
+ }
421
+ ],
422
+ "stateMutability": "view"
423
+ },
424
+ {
425
+ "type": "function",
426
+ "name": "isAccountUnhealthy",
427
+ "inputs": [],
428
+ "outputs": [
429
+ {
430
+ "name": "isUnhealthy",
431
+ "type": "bool",
432
+ "internalType": "bool"
433
+ }
434
+ ],
435
+ "stateMutability": "view"
436
+ },
437
+ {
438
+ "type": "function",
439
+ "name": "isAssetManager",
440
+ "inputs": [
441
+ {
442
+ "name": "",
443
+ "type": "address",
444
+ "internalType": "address"
445
+ },
446
+ {
447
+ "name": "",
448
+ "type": "address",
449
+ "internalType": "address"
450
+ }
451
+ ],
452
+ "outputs": [
453
+ {
454
+ "name": "",
455
+ "type": "bool",
456
+ "internalType": "bool"
457
+ }
458
+ ],
459
+ "stateMutability": "view"
460
+ },
461
+ {
462
+ "type": "function",
463
+ "name": "lastActionTimestamp",
464
+ "inputs": [],
465
+ "outputs": [
466
+ {
467
+ "name": "",
468
+ "type": "uint32",
469
+ "internalType": "uint32"
470
+ }
471
+ ],
472
+ "stateMutability": "view"
473
+ },
474
+ {
475
+ "type": "function",
476
+ "name": "liquidator",
477
+ "inputs": [],
478
+ "outputs": [
479
+ {
480
+ "name": "",
481
+ "type": "address",
482
+ "internalType": "address"
483
+ }
484
+ ],
485
+ "stateMutability": "view"
486
+ },
487
+ {
488
+ "type": "function",
489
+ "name": "minimumMargin",
490
+ "inputs": [],
491
+ "outputs": [
492
+ {
493
+ "name": "",
494
+ "type": "uint96",
495
+ "internalType": "uint96"
496
+ }
497
+ ],
498
+ "stateMutability": "view"
499
+ },
500
+ {
501
+ "type": "function",
502
+ "name": "numeraire",
503
+ "inputs": [],
504
+ "outputs": [
505
+ {
506
+ "name": "",
507
+ "type": "address",
508
+ "internalType": "address"
509
+ }
510
+ ],
511
+ "stateMutability": "view"
512
+ },
513
+ {
514
+ "type": "function",
515
+ "name": "onERC1155Received",
516
+ "inputs": [
517
+ {
518
+ "name": "",
519
+ "type": "address",
520
+ "internalType": "address"
521
+ },
522
+ {
523
+ "name": "",
524
+ "type": "address",
525
+ "internalType": "address"
526
+ },
527
+ {
528
+ "name": "",
529
+ "type": "uint256",
530
+ "internalType": "uint256"
531
+ },
532
+ {
533
+ "name": "",
534
+ "type": "uint256",
535
+ "internalType": "uint256"
536
+ },
537
+ {
538
+ "name": "",
539
+ "type": "bytes",
540
+ "internalType": "bytes"
541
+ }
542
+ ],
543
+ "outputs": [
544
+ {
545
+ "name": "",
546
+ "type": "bytes4",
547
+ "internalType": "bytes4"
548
+ }
549
+ ],
550
+ "stateMutability": "pure"
551
+ },
552
+ {
553
+ "type": "function",
554
+ "name": "onERC721Received",
555
+ "inputs": [
556
+ {
557
+ "name": "",
558
+ "type": "address",
559
+ "internalType": "address"
560
+ },
561
+ {
562
+ "name": "",
563
+ "type": "address",
564
+ "internalType": "address"
565
+ },
566
+ {
567
+ "name": "",
568
+ "type": "uint256",
569
+ "internalType": "uint256"
570
+ },
571
+ {
572
+ "name": "",
573
+ "type": "bytes",
574
+ "internalType": "bytes"
575
+ }
576
+ ],
577
+ "outputs": [
578
+ {
579
+ "name": "",
580
+ "type": "bytes4",
581
+ "internalType": "bytes4"
582
+ }
583
+ ],
584
+ "stateMutability": "pure"
585
+ },
586
+ {
587
+ "type": "function",
588
+ "name": "openMarginAccount",
589
+ "inputs": [
590
+ {
591
+ "name": "newCreditor",
592
+ "type": "address",
593
+ "internalType": "address"
594
+ }
595
+ ],
596
+ "outputs": [],
597
+ "stateMutability": "nonpayable"
598
+ },
599
+ {
600
+ "type": "function",
601
+ "name": "owner",
602
+ "inputs": [],
603
+ "outputs": [
604
+ {
605
+ "name": "",
606
+ "type": "address",
607
+ "internalType": "address"
608
+ }
609
+ ],
610
+ "stateMutability": "view"
611
+ },
612
+ {
613
+ "type": "function",
614
+ "name": "registry",
615
+ "inputs": [],
616
+ "outputs": [
617
+ {
618
+ "name": "",
619
+ "type": "address",
620
+ "internalType": "address"
621
+ }
622
+ ],
623
+ "stateMutability": "view"
624
+ },
625
+ {
626
+ "type": "function",
627
+ "name": "setApprovedCreditor",
628
+ "inputs": [
629
+ {
630
+ "name": "creditor_",
631
+ "type": "address",
632
+ "internalType": "address"
633
+ }
634
+ ],
635
+ "outputs": [],
636
+ "stateMutability": "nonpayable"
637
+ },
638
+ {
639
+ "type": "function",
640
+ "name": "setAssetManager",
641
+ "inputs": [
642
+ {
643
+ "name": "assetManager",
644
+ "type": "address",
645
+ "internalType": "address"
646
+ },
647
+ {
648
+ "name": "value",
649
+ "type": "bool",
650
+ "internalType": "bool"
651
+ }
652
+ ],
653
+ "outputs": [],
654
+ "stateMutability": "nonpayable"
655
+ },
656
+ {
657
+ "type": "function",
658
+ "name": "setNumeraire",
659
+ "inputs": [
660
+ {
661
+ "name": "numeraire_",
662
+ "type": "address",
663
+ "internalType": "address"
664
+ }
665
+ ],
666
+ "outputs": [],
667
+ "stateMutability": "nonpayable"
668
+ },
669
+ {
670
+ "type": "function",
671
+ "name": "skim",
672
+ "inputs": [
673
+ {
674
+ "name": "token",
675
+ "type": "address",
676
+ "internalType": "address"
677
+ },
678
+ {
679
+ "name": "id",
680
+ "type": "uint256",
681
+ "internalType": "uint256"
682
+ },
683
+ {
684
+ "name": "type_",
685
+ "type": "uint256",
686
+ "internalType": "uint256"
687
+ }
688
+ ],
689
+ "outputs": [],
690
+ "stateMutability": "nonpayable"
691
+ },
692
+ {
693
+ "type": "function",
694
+ "name": "startLiquidation",
695
+ "inputs": [
696
+ {
697
+ "name": "initiator",
698
+ "type": "address",
699
+ "internalType": "address"
700
+ }
701
+ ],
702
+ "outputs": [
703
+ {
704
+ "name": "assetAddresses",
705
+ "type": "address[]",
706
+ "internalType": "address[]"
707
+ },
708
+ {
709
+ "name": "assetIds",
710
+ "type": "uint256[]",
711
+ "internalType": "uint256[]"
712
+ },
713
+ {
714
+ "name": "assetAmounts",
715
+ "type": "uint256[]",
716
+ "internalType": "uint256[]"
717
+ },
718
+ {
719
+ "name": "creditor_",
720
+ "type": "address",
721
+ "internalType": "address"
722
+ },
723
+ {
724
+ "name": "minimumMargin_",
725
+ "type": "uint96",
726
+ "internalType": "uint96"
727
+ },
728
+ {
729
+ "name": "openPosition",
730
+ "type": "uint256",
731
+ "internalType": "uint256"
732
+ },
733
+ {
734
+ "name": "assetAndRiskValues",
735
+ "type": "tuple[]",
736
+ "internalType": "struct AssetValueAndRiskFactors[]",
737
+ "components": [
738
+ {
739
+ "name": "assetValue",
740
+ "type": "uint256",
741
+ "internalType": "uint256"
742
+ },
743
+ {
744
+ "name": "collateralFactor",
745
+ "type": "uint256",
746
+ "internalType": "uint256"
747
+ },
748
+ {
749
+ "name": "liquidationFactor",
750
+ "type": "uint256",
751
+ "internalType": "uint256"
752
+ }
753
+ ]
754
+ }
755
+ ],
756
+ "stateMutability": "nonpayable"
757
+ },
758
+ {
759
+ "type": "function",
760
+ "name": "transferOwnership",
761
+ "inputs": [
762
+ {
763
+ "name": "newOwner",
764
+ "type": "address",
765
+ "internalType": "address"
766
+ }
767
+ ],
768
+ "outputs": [],
769
+ "stateMutability": "nonpayable"
770
+ },
771
+ {
772
+ "type": "function",
773
+ "name": "upgradeAccount",
774
+ "inputs": [
775
+ {
776
+ "name": "newImplementation",
777
+ "type": "address",
778
+ "internalType": "address"
779
+ },
780
+ {
781
+ "name": "newRegistry",
782
+ "type": "address",
783
+ "internalType": "address"
784
+ },
785
+ {
786
+ "name": "newVersion",
787
+ "type": "uint256",
788
+ "internalType": "uint256"
789
+ },
790
+ {
791
+ "name": "data",
792
+ "type": "bytes",
793
+ "internalType": "bytes"
794
+ }
795
+ ],
796
+ "outputs": [],
797
+ "stateMutability": "nonpayable"
798
+ },
799
+ {
800
+ "type": "function",
801
+ "name": "upgradeHook",
802
+ "inputs": [
803
+ {
804
+ "name": "oldImplementation",
805
+ "type": "address",
806
+ "internalType": "address"
807
+ },
808
+ {
809
+ "name": "oldRegistry",
810
+ "type": "address",
811
+ "internalType": "address"
812
+ },
813
+ {
814
+ "name": "oldVersion",
815
+ "type": "uint256",
816
+ "internalType": "uint256"
817
+ },
818
+ {
819
+ "name": "data",
820
+ "type": "bytes",
821
+ "internalType": "bytes"
822
+ }
823
+ ],
824
+ "outputs": [],
825
+ "stateMutability": "nonpayable"
826
+ },
827
+ {
828
+ "type": "function",
829
+ "name": "withdraw",
830
+ "inputs": [
831
+ {
832
+ "name": "assetAddresses",
833
+ "type": "address[]",
834
+ "internalType": "address[]"
835
+ },
836
+ {
837
+ "name": "assetIds",
838
+ "type": "uint256[]",
839
+ "internalType": "uint256[]"
840
+ },
841
+ {
842
+ "name": "assetAmounts",
843
+ "type": "uint256[]",
844
+ "internalType": "uint256[]"
845
+ }
846
+ ],
847
+ "outputs": [],
848
+ "stateMutability": "nonpayable"
849
+ },
850
+ {
851
+ "type": "event",
852
+ "name": "AssetManagerSet",
853
+ "inputs": [
854
+ {
855
+ "name": "owner",
856
+ "type": "address",
857
+ "indexed": true,
858
+ "internalType": "address"
859
+ },
860
+ {
861
+ "name": "assetManager",
862
+ "type": "address",
863
+ "indexed": true,
864
+ "internalType": "address"
865
+ },
866
+ {
867
+ "name": "value",
868
+ "type": "bool",
869
+ "indexed": false,
870
+ "internalType": "bool"
871
+ }
872
+ ],
873
+ "anonymous": false
874
+ },
875
+ {
876
+ "type": "event",
877
+ "name": "MarginAccountChanged",
878
+ "inputs": [
879
+ {
880
+ "name": "creditor",
881
+ "type": "address",
882
+ "indexed": true,
883
+ "internalType": "address"
884
+ },
885
+ {
886
+ "name": "liquidator",
887
+ "type": "address",
888
+ "indexed": true,
889
+ "internalType": "address"
890
+ }
891
+ ],
892
+ "anonymous": false
893
+ },
894
+ {
895
+ "type": "event",
896
+ "name": "NumeraireSet",
897
+ "inputs": [
898
+ {
899
+ "name": "numeraire",
900
+ "type": "address",
901
+ "indexed": true,
902
+ "internalType": "address"
903
+ }
904
+ ],
905
+ "anonymous": false
906
+ },
907
+ {
908
+ "type": "error",
909
+ "name": "AccountInAuction",
910
+ "inputs": []
911
+ },
912
+ {
913
+ "type": "error",
914
+ "name": "AccountNotLiquidatable",
915
+ "inputs": []
916
+ },
917
+ {
918
+ "type": "error",
919
+ "name": "AccountUnhealthy",
920
+ "inputs": []
921
+ },
922
+ {
923
+ "type": "error",
924
+ "name": "AlreadyInitialized",
925
+ "inputs": []
926
+ },
927
+ {
928
+ "type": "error",
929
+ "name": "CoolDownPeriodNotPassed",
930
+ "inputs": []
931
+ },
932
+ {
933
+ "type": "error",
934
+ "name": "CreditorAlreadySet",
935
+ "inputs": []
936
+ },
937
+ {
938
+ "type": "error",
939
+ "name": "CreditorNotSet",
940
+ "inputs": []
941
+ },
942
+ {
943
+ "type": "error",
944
+ "name": "InvalidAccountVersion",
945
+ "inputs": []
946
+ },
947
+ {
948
+ "type": "error",
949
+ "name": "InvalidERC20Id",
950
+ "inputs": []
951
+ },
952
+ {
953
+ "type": "error",
954
+ "name": "InvalidERC721Amount",
955
+ "inputs": []
956
+ },
957
+ {
958
+ "type": "error",
959
+ "name": "InvalidRegistry",
960
+ "inputs": []
961
+ },
962
+ {
963
+ "type": "error",
964
+ "name": "NoFallback",
965
+ "inputs": []
966
+ },
967
+ {
968
+ "type": "error",
969
+ "name": "NoReentry",
970
+ "inputs": []
971
+ },
972
+ {
973
+ "type": "error",
974
+ "name": "NumeraireNotFound",
975
+ "inputs": []
976
+ },
977
+ {
978
+ "type": "error",
979
+ "name": "OnlyCreditor",
980
+ "inputs": []
981
+ },
982
+ {
983
+ "type": "error",
984
+ "name": "OnlyFactory",
985
+ "inputs": []
986
+ },
987
+ {
988
+ "type": "error",
989
+ "name": "OnlyLiquidator",
990
+ "inputs": []
991
+ },
992
+ {
993
+ "type": "error",
994
+ "name": "OnlyOwner",
995
+ "inputs": []
996
+ },
997
+ {
998
+ "type": "error",
999
+ "name": "TooManyAssets",
1000
+ "inputs": []
1001
+ },
1002
+ {
1003
+ "type": "error",
1004
+ "name": "UnknownAsset",
1005
+ "inputs": []
1006
+ },
1007
+ {
1008
+ "type": "error",
1009
+ "name": "UnknownAssetType",
1010
+ "inputs": []
1011
+ }
1012
+ ]