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