@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,1232 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "registry",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [],
15
+ "name": "ExposureNotInLimits",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "NotOwner",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "OnlyRegistry",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "Overflow",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "PoolNotAllowed",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "RiskFactorNotInLimits",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "ZeroAmount",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "anonymous": false,
50
+ "inputs": [
51
+ {
52
+ "indexed": true,
53
+ "internalType": "address",
54
+ "name": "owner",
55
+ "type": "address"
56
+ },
57
+ {
58
+ "indexed": true,
59
+ "internalType": "address",
60
+ "name": "spender",
61
+ "type": "address"
62
+ },
63
+ {
64
+ "indexed": true,
65
+ "internalType": "uint256",
66
+ "name": "id",
67
+ "type": "uint256"
68
+ }
69
+ ],
70
+ "name": "Approval",
71
+ "type": "event"
72
+ },
73
+ {
74
+ "anonymous": false,
75
+ "inputs": [
76
+ {
77
+ "indexed": true,
78
+ "internalType": "address",
79
+ "name": "owner",
80
+ "type": "address"
81
+ },
82
+ {
83
+ "indexed": true,
84
+ "internalType": "address",
85
+ "name": "operator",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "indexed": false,
90
+ "internalType": "bool",
91
+ "name": "approved",
92
+ "type": "bool"
93
+ }
94
+ ],
95
+ "name": "ApprovalForAll",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": true,
103
+ "internalType": "uint256",
104
+ "name": "positionId",
105
+ "type": "uint256"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "uint128",
110
+ "name": "fee0",
111
+ "type": "uint128"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "uint128",
116
+ "name": "fee1",
117
+ "type": "uint128"
118
+ }
119
+ ],
120
+ "name": "FeesPaid",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": true,
128
+ "internalType": "uint256",
129
+ "name": "positionId",
130
+ "type": "uint256"
131
+ },
132
+ {
133
+ "indexed": true,
134
+ "internalType": "address",
135
+ "name": "pool",
136
+ "type": "address"
137
+ },
138
+ {
139
+ "indexed": false,
140
+ "internalType": "uint128",
141
+ "name": "amount",
142
+ "type": "uint128"
143
+ }
144
+ ],
145
+ "name": "LiquidityDecreased",
146
+ "type": "event"
147
+ },
148
+ {
149
+ "anonymous": false,
150
+ "inputs": [
151
+ {
152
+ "indexed": true,
153
+ "internalType": "uint256",
154
+ "name": "positionId",
155
+ "type": "uint256"
156
+ },
157
+ {
158
+ "indexed": true,
159
+ "internalType": "address",
160
+ "name": "pool",
161
+ "type": "address"
162
+ },
163
+ {
164
+ "indexed": false,
165
+ "internalType": "uint128",
166
+ "name": "amount",
167
+ "type": "uint128"
168
+ }
169
+ ],
170
+ "name": "LiquidityIncreased",
171
+ "type": "event"
172
+ },
173
+ {
174
+ "anonymous": false,
175
+ "inputs": [
176
+ {
177
+ "indexed": true,
178
+ "internalType": "address",
179
+ "name": "user",
180
+ "type": "address"
181
+ },
182
+ {
183
+ "indexed": true,
184
+ "internalType": "address",
185
+ "name": "newOwner",
186
+ "type": "address"
187
+ }
188
+ ],
189
+ "name": "OwnershipTransferred",
190
+ "type": "event"
191
+ },
192
+ {
193
+ "anonymous": false,
194
+ "inputs": [
195
+ {
196
+ "indexed": true,
197
+ "internalType": "address",
198
+ "name": "from",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "indexed": true,
203
+ "internalType": "address",
204
+ "name": "to",
205
+ "type": "address"
206
+ },
207
+ {
208
+ "indexed": true,
209
+ "internalType": "uint256",
210
+ "name": "id",
211
+ "type": "uint256"
212
+ }
213
+ ],
214
+ "name": "Transfer",
215
+ "type": "event"
216
+ },
217
+ {
218
+ "inputs": [],
219
+ "name": "ASSET_TYPE",
220
+ "outputs": [
221
+ {
222
+ "internalType": "uint256",
223
+ "name": "",
224
+ "type": "uint256"
225
+ }
226
+ ],
227
+ "stateMutability": "view",
228
+ "type": "function"
229
+ },
230
+ {
231
+ "inputs": [],
232
+ "name": "REGISTRY",
233
+ "outputs": [
234
+ {
235
+ "internalType": "address",
236
+ "name": "",
237
+ "type": "address"
238
+ }
239
+ ],
240
+ "stateMutability": "view",
241
+ "type": "function"
242
+ },
243
+ {
244
+ "inputs": [
245
+ {
246
+ "internalType": "address",
247
+ "name": "pool",
248
+ "type": "address"
249
+ }
250
+ ],
251
+ "name": "addAsset",
252
+ "outputs": [],
253
+ "stateMutability": "nonpayable",
254
+ "type": "function"
255
+ },
256
+ {
257
+ "inputs": [
258
+ {
259
+ "internalType": "address",
260
+ "name": "spender",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "internalType": "uint256",
265
+ "name": "id",
266
+ "type": "uint256"
267
+ }
268
+ ],
269
+ "name": "approve",
270
+ "outputs": [],
271
+ "stateMutability": "nonpayable",
272
+ "type": "function"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "address",
278
+ "name": "owner",
279
+ "type": "address"
280
+ }
281
+ ],
282
+ "name": "balanceOf",
283
+ "outputs": [
284
+ {
285
+ "internalType": "uint256",
286
+ "name": "",
287
+ "type": "uint256"
288
+ }
289
+ ],
290
+ "stateMutability": "view",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "inputs": [],
295
+ "name": "baseURI",
296
+ "outputs": [
297
+ {
298
+ "internalType": "string",
299
+ "name": "",
300
+ "type": "string"
301
+ }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "uint256",
310
+ "name": "positionId",
311
+ "type": "uint256"
312
+ }
313
+ ],
314
+ "name": "burn",
315
+ "outputs": [
316
+ {
317
+ "internalType": "uint256",
318
+ "name": "fee0Position",
319
+ "type": "uint256"
320
+ },
321
+ {
322
+ "internalType": "uint256",
323
+ "name": "fee1Position",
324
+ "type": "uint256"
325
+ }
326
+ ],
327
+ "stateMutability": "nonpayable",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [
332
+ {
333
+ "internalType": "uint256",
334
+ "name": "positionId",
335
+ "type": "uint256"
336
+ }
337
+ ],
338
+ "name": "claimFees",
339
+ "outputs": [
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "fee0Position",
343
+ "type": "uint256"
344
+ },
345
+ {
346
+ "internalType": "uint256",
347
+ "name": "fee1Position",
348
+ "type": "uint256"
349
+ }
350
+ ],
351
+ "stateMutability": "nonpayable",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [
356
+ {
357
+ "internalType": "uint256",
358
+ "name": "positionId",
359
+ "type": "uint256"
360
+ },
361
+ {
362
+ "internalType": "uint128",
363
+ "name": "amount",
364
+ "type": "uint128"
365
+ }
366
+ ],
367
+ "name": "decreaseLiquidity",
368
+ "outputs": [
369
+ {
370
+ "internalType": "uint256",
371
+ "name": "fee0Position",
372
+ "type": "uint256"
373
+ },
374
+ {
375
+ "internalType": "uint256",
376
+ "name": "fee1Position",
377
+ "type": "uint256"
378
+ }
379
+ ],
380
+ "stateMutability": "nonpayable",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "positionId",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "name": "feesOf",
392
+ "outputs": [
393
+ {
394
+ "internalType": "uint256",
395
+ "name": "fee0Position",
396
+ "type": "uint256"
397
+ },
398
+ {
399
+ "internalType": "uint256",
400
+ "name": "fee1Position",
401
+ "type": "uint256"
402
+ }
403
+ ],
404
+ "stateMutability": "view",
405
+ "type": "function"
406
+ },
407
+ {
408
+ "inputs": [
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "",
412
+ "type": "uint256"
413
+ }
414
+ ],
415
+ "name": "getApproved",
416
+ "outputs": [
417
+ {
418
+ "internalType": "address",
419
+ "name": "",
420
+ "type": "address"
421
+ }
422
+ ],
423
+ "stateMutability": "view",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [
428
+ {
429
+ "internalType": "address",
430
+ "name": "creditor",
431
+ "type": "address"
432
+ },
433
+ {
434
+ "internalType": "address",
435
+ "name": "asset",
436
+ "type": "address"
437
+ },
438
+ {
439
+ "internalType": "uint256",
440
+ "name": "assetId",
441
+ "type": "uint256"
442
+ }
443
+ ],
444
+ "name": "getRiskFactors",
445
+ "outputs": [
446
+ {
447
+ "internalType": "uint16",
448
+ "name": "collateralFactor",
449
+ "type": "uint16"
450
+ },
451
+ {
452
+ "internalType": "uint16",
453
+ "name": "liquidationFactor",
454
+ "type": "uint16"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ {
463
+ "internalType": "address",
464
+ "name": "creditor",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "internalType": "address",
469
+ "name": "asset",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "internalType": "uint256",
474
+ "name": "assetId",
475
+ "type": "uint256"
476
+ },
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "assetAmount",
480
+ "type": "uint256"
481
+ }
482
+ ],
483
+ "name": "getValue",
484
+ "outputs": [
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "valueInUsd",
488
+ "type": "uint256"
489
+ },
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "collateralFactor",
493
+ "type": "uint256"
494
+ },
495
+ {
496
+ "internalType": "uint256",
497
+ "name": "liquidationFactor",
498
+ "type": "uint256"
499
+ }
500
+ ],
501
+ "stateMutability": "view",
502
+ "type": "function"
503
+ },
504
+ {
505
+ "inputs": [
506
+ {
507
+ "internalType": "address",
508
+ "name": "",
509
+ "type": "address"
510
+ }
511
+ ],
512
+ "name": "inAssetModule",
513
+ "outputs": [
514
+ {
515
+ "internalType": "bool",
516
+ "name": "",
517
+ "type": "bool"
518
+ }
519
+ ],
520
+ "stateMutability": "view",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [
525
+ {
526
+ "internalType": "uint256",
527
+ "name": "positionId",
528
+ "type": "uint256"
529
+ },
530
+ {
531
+ "internalType": "uint128",
532
+ "name": "amount",
533
+ "type": "uint128"
534
+ }
535
+ ],
536
+ "name": "increaseLiquidity",
537
+ "outputs": [],
538
+ "stateMutability": "nonpayable",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [],
543
+ "name": "initialize",
544
+ "outputs": [],
545
+ "stateMutability": "nonpayable",
546
+ "type": "function"
547
+ },
548
+ {
549
+ "inputs": [
550
+ {
551
+ "internalType": "address",
552
+ "name": "asset",
553
+ "type": "address"
554
+ },
555
+ {
556
+ "internalType": "uint256",
557
+ "name": "assetId",
558
+ "type": "uint256"
559
+ }
560
+ ],
561
+ "name": "isAllowed",
562
+ "outputs": [
563
+ {
564
+ "internalType": "bool",
565
+ "name": "allowed",
566
+ "type": "bool"
567
+ }
568
+ ],
569
+ "stateMutability": "view",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ {
575
+ "internalType": "address",
576
+ "name": "",
577
+ "type": "address"
578
+ },
579
+ {
580
+ "internalType": "address",
581
+ "name": "",
582
+ "type": "address"
583
+ }
584
+ ],
585
+ "name": "isApprovedForAll",
586
+ "outputs": [
587
+ {
588
+ "internalType": "bool",
589
+ "name": "",
590
+ "type": "bool"
591
+ }
592
+ ],
593
+ "stateMutability": "view",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "inputs": [
598
+ {
599
+ "internalType": "address",
600
+ "name": "creditor",
601
+ "type": "address"
602
+ },
603
+ {
604
+ "internalType": "bytes32",
605
+ "name": "assetKey",
606
+ "type": "bytes32"
607
+ },
608
+ {
609
+ "internalType": "bytes32",
610
+ "name": "underlyingAssetKey",
611
+ "type": "bytes32"
612
+ }
613
+ ],
614
+ "name": "lastExposureAssetToUnderlyingAsset",
615
+ "outputs": [
616
+ {
617
+ "internalType": "uint256",
618
+ "name": "exposure",
619
+ "type": "uint256"
620
+ }
621
+ ],
622
+ "stateMutability": "view",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [
627
+ {
628
+ "internalType": "address",
629
+ "name": "creditor",
630
+ "type": "address"
631
+ },
632
+ {
633
+ "internalType": "bytes32",
634
+ "name": "assetKey",
635
+ "type": "bytes32"
636
+ }
637
+ ],
638
+ "name": "lastExposuresAsset",
639
+ "outputs": [
640
+ {
641
+ "internalType": "uint112",
642
+ "name": "lastExposureAsset",
643
+ "type": "uint112"
644
+ },
645
+ {
646
+ "internalType": "uint112",
647
+ "name": "lastUsdExposureAsset",
648
+ "type": "uint112"
649
+ }
650
+ ],
651
+ "stateMutability": "view",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [
656
+ {
657
+ "internalType": "address",
658
+ "name": "pool",
659
+ "type": "address"
660
+ },
661
+ {
662
+ "internalType": "uint128",
663
+ "name": "amount",
664
+ "type": "uint128"
665
+ }
666
+ ],
667
+ "name": "mint",
668
+ "outputs": [
669
+ {
670
+ "internalType": "uint256",
671
+ "name": "positionId",
672
+ "type": "uint256"
673
+ }
674
+ ],
675
+ "stateMutability": "nonpayable",
676
+ "type": "function"
677
+ },
678
+ {
679
+ "inputs": [],
680
+ "name": "name",
681
+ "outputs": [
682
+ {
683
+ "internalType": "string",
684
+ "name": "",
685
+ "type": "string"
686
+ }
687
+ ],
688
+ "stateMutability": "view",
689
+ "type": "function"
690
+ },
691
+ {
692
+ "inputs": [],
693
+ "name": "owner",
694
+ "outputs": [
695
+ {
696
+ "internalType": "address",
697
+ "name": "",
698
+ "type": "address"
699
+ }
700
+ ],
701
+ "stateMutability": "view",
702
+ "type": "function"
703
+ },
704
+ {
705
+ "inputs": [
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "id",
709
+ "type": "uint256"
710
+ }
711
+ ],
712
+ "name": "ownerOf",
713
+ "outputs": [
714
+ {
715
+ "internalType": "address",
716
+ "name": "owner",
717
+ "type": "address"
718
+ }
719
+ ],
720
+ "stateMutability": "view",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "inputs": [
725
+ {
726
+ "internalType": "address",
727
+ "name": "pool",
728
+ "type": "address"
729
+ }
730
+ ],
731
+ "name": "poolState",
732
+ "outputs": [
733
+ {
734
+ "internalType": "uint128",
735
+ "name": "fee0PerLiquidity",
736
+ "type": "uint128"
737
+ },
738
+ {
739
+ "internalType": "uint128",
740
+ "name": "fee1PerLiquidity",
741
+ "type": "uint128"
742
+ },
743
+ {
744
+ "internalType": "uint128",
745
+ "name": "totalWrapped",
746
+ "type": "uint128"
747
+ }
748
+ ],
749
+ "stateMutability": "view",
750
+ "type": "function"
751
+ },
752
+ {
753
+ "inputs": [
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "position",
757
+ "type": "uint256"
758
+ }
759
+ ],
760
+ "name": "positionState",
761
+ "outputs": [
762
+ {
763
+ "internalType": "uint128",
764
+ "name": "fee0PerLiquidity",
765
+ "type": "uint128"
766
+ },
767
+ {
768
+ "internalType": "uint128",
769
+ "name": "fee1PerLiquidity",
770
+ "type": "uint128"
771
+ },
772
+ {
773
+ "internalType": "uint128",
774
+ "name": "fee0",
775
+ "type": "uint128"
776
+ },
777
+ {
778
+ "internalType": "uint128",
779
+ "name": "fee1",
780
+ "type": "uint128"
781
+ },
782
+ {
783
+ "internalType": "uint128",
784
+ "name": "amountWrapped",
785
+ "type": "uint128"
786
+ },
787
+ {
788
+ "internalType": "address",
789
+ "name": "pool",
790
+ "type": "address"
791
+ }
792
+ ],
793
+ "stateMutability": "view",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "inputs": [
798
+ {
799
+ "internalType": "address",
800
+ "name": "creditor",
801
+ "type": "address"
802
+ },
803
+ {
804
+ "internalType": "address",
805
+ "name": "asset",
806
+ "type": "address"
807
+ },
808
+ {
809
+ "internalType": "uint256",
810
+ "name": "assetId",
811
+ "type": "uint256"
812
+ },
813
+ {
814
+ "internalType": "uint256",
815
+ "name": "amount",
816
+ "type": "uint256"
817
+ }
818
+ ],
819
+ "name": "processDirectDeposit",
820
+ "outputs": [
821
+ {
822
+ "internalType": "uint256",
823
+ "name": "recursiveCalls",
824
+ "type": "uint256"
825
+ }
826
+ ],
827
+ "stateMutability": "nonpayable",
828
+ "type": "function"
829
+ },
830
+ {
831
+ "inputs": [
832
+ {
833
+ "internalType": "address",
834
+ "name": "creditor",
835
+ "type": "address"
836
+ },
837
+ {
838
+ "internalType": "address",
839
+ "name": "asset",
840
+ "type": "address"
841
+ },
842
+ {
843
+ "internalType": "uint256",
844
+ "name": "assetId",
845
+ "type": "uint256"
846
+ },
847
+ {
848
+ "internalType": "uint256",
849
+ "name": "amount",
850
+ "type": "uint256"
851
+ }
852
+ ],
853
+ "name": "processDirectWithdrawal",
854
+ "outputs": [],
855
+ "stateMutability": "nonpayable",
856
+ "type": "function"
857
+ },
858
+ {
859
+ "inputs": [
860
+ {
861
+ "internalType": "address",
862
+ "name": "creditor",
863
+ "type": "address"
864
+ },
865
+ {
866
+ "internalType": "address",
867
+ "name": "asset",
868
+ "type": "address"
869
+ },
870
+ {
871
+ "internalType": "uint256",
872
+ "name": "assetId",
873
+ "type": "uint256"
874
+ },
875
+ {
876
+ "internalType": "uint256",
877
+ "name": "exposureUpperAssetToAsset",
878
+ "type": "uint256"
879
+ },
880
+ {
881
+ "internalType": "int256",
882
+ "name": "deltaExposureUpperAssetToAsset",
883
+ "type": "int256"
884
+ }
885
+ ],
886
+ "name": "processIndirectDeposit",
887
+ "outputs": [
888
+ {
889
+ "internalType": "uint256",
890
+ "name": "recursiveCalls",
891
+ "type": "uint256"
892
+ },
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "usdExposureUpperAssetToAsset",
896
+ "type": "uint256"
897
+ }
898
+ ],
899
+ "stateMutability": "nonpayable",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [
904
+ {
905
+ "internalType": "address",
906
+ "name": "creditor",
907
+ "type": "address"
908
+ },
909
+ {
910
+ "internalType": "address",
911
+ "name": "asset",
912
+ "type": "address"
913
+ },
914
+ {
915
+ "internalType": "uint256",
916
+ "name": "assetId",
917
+ "type": "uint256"
918
+ },
919
+ {
920
+ "internalType": "uint256",
921
+ "name": "exposureUpperAssetToAsset",
922
+ "type": "uint256"
923
+ },
924
+ {
925
+ "internalType": "int256",
926
+ "name": "deltaExposureUpperAssetToAsset",
927
+ "type": "int256"
928
+ }
929
+ ],
930
+ "name": "processIndirectWithdrawal",
931
+ "outputs": [
932
+ {
933
+ "internalType": "uint256",
934
+ "name": "usdExposureUpperAssetToAsset",
935
+ "type": "uint256"
936
+ }
937
+ ],
938
+ "stateMutability": "nonpayable",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [
943
+ {
944
+ "internalType": "address",
945
+ "name": "creditor",
946
+ "type": "address"
947
+ }
948
+ ],
949
+ "name": "riskParams",
950
+ "outputs": [
951
+ {
952
+ "internalType": "uint112",
953
+ "name": "lastUsdExposureProtocol",
954
+ "type": "uint112"
955
+ },
956
+ {
957
+ "internalType": "uint112",
958
+ "name": "maxUsdExposureProtocol",
959
+ "type": "uint112"
960
+ },
961
+ {
962
+ "internalType": "uint16",
963
+ "name": "riskFactor",
964
+ "type": "uint16"
965
+ }
966
+ ],
967
+ "stateMutability": "view",
968
+ "type": "function"
969
+ },
970
+ {
971
+ "inputs": [
972
+ {
973
+ "internalType": "address",
974
+ "name": "from",
975
+ "type": "address"
976
+ },
977
+ {
978
+ "internalType": "address",
979
+ "name": "to",
980
+ "type": "address"
981
+ },
982
+ {
983
+ "internalType": "uint256",
984
+ "name": "id",
985
+ "type": "uint256"
986
+ }
987
+ ],
988
+ "name": "safeTransferFrom",
989
+ "outputs": [],
990
+ "stateMutability": "nonpayable",
991
+ "type": "function"
992
+ },
993
+ {
994
+ "inputs": [
995
+ {
996
+ "internalType": "address",
997
+ "name": "from",
998
+ "type": "address"
999
+ },
1000
+ {
1001
+ "internalType": "address",
1002
+ "name": "to",
1003
+ "type": "address"
1004
+ },
1005
+ {
1006
+ "internalType": "uint256",
1007
+ "name": "id",
1008
+ "type": "uint256"
1009
+ },
1010
+ {
1011
+ "internalType": "bytes",
1012
+ "name": "data",
1013
+ "type": "bytes"
1014
+ }
1015
+ ],
1016
+ "name": "safeTransferFrom",
1017
+ "outputs": [],
1018
+ "stateMutability": "nonpayable",
1019
+ "type": "function"
1020
+ },
1021
+ {
1022
+ "inputs": [
1023
+ {
1024
+ "internalType": "address",
1025
+ "name": "operator",
1026
+ "type": "address"
1027
+ },
1028
+ {
1029
+ "internalType": "bool",
1030
+ "name": "approved",
1031
+ "type": "bool"
1032
+ }
1033
+ ],
1034
+ "name": "setApprovalForAll",
1035
+ "outputs": [],
1036
+ "stateMutability": "nonpayable",
1037
+ "type": "function"
1038
+ },
1039
+ {
1040
+ "inputs": [
1041
+ {
1042
+ "internalType": "string",
1043
+ "name": "newBaseURI",
1044
+ "type": "string"
1045
+ }
1046
+ ],
1047
+ "name": "setBaseURI",
1048
+ "outputs": [],
1049
+ "stateMutability": "nonpayable",
1050
+ "type": "function"
1051
+ },
1052
+ {
1053
+ "inputs": [
1054
+ {
1055
+ "internalType": "address",
1056
+ "name": "creditor",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "internalType": "uint112",
1061
+ "name": "maxUsdExposureProtocol_",
1062
+ "type": "uint112"
1063
+ },
1064
+ {
1065
+ "internalType": "uint16",
1066
+ "name": "riskFactor",
1067
+ "type": "uint16"
1068
+ }
1069
+ ],
1070
+ "name": "setRiskParameters",
1071
+ "outputs": [],
1072
+ "stateMutability": "nonpayable",
1073
+ "type": "function"
1074
+ },
1075
+ {
1076
+ "inputs": [
1077
+ {
1078
+ "internalType": "address",
1079
+ "name": "pool",
1080
+ "type": "address"
1081
+ }
1082
+ ],
1083
+ "name": "skim",
1084
+ "outputs": [],
1085
+ "stateMutability": "nonpayable",
1086
+ "type": "function"
1087
+ },
1088
+ {
1089
+ "inputs": [
1090
+ {
1091
+ "internalType": "bytes4",
1092
+ "name": "interfaceId",
1093
+ "type": "bytes4"
1094
+ }
1095
+ ],
1096
+ "name": "supportsInterface",
1097
+ "outputs": [
1098
+ {
1099
+ "internalType": "bool",
1100
+ "name": "",
1101
+ "type": "bool"
1102
+ }
1103
+ ],
1104
+ "stateMutability": "view",
1105
+ "type": "function"
1106
+ },
1107
+ {
1108
+ "inputs": [],
1109
+ "name": "symbol",
1110
+ "outputs": [
1111
+ {
1112
+ "internalType": "string",
1113
+ "name": "",
1114
+ "type": "string"
1115
+ }
1116
+ ],
1117
+ "stateMutability": "view",
1118
+ "type": "function"
1119
+ },
1120
+ {
1121
+ "inputs": [
1122
+ {
1123
+ "internalType": "address",
1124
+ "name": "pool",
1125
+ "type": "address"
1126
+ }
1127
+ ],
1128
+ "name": "token0",
1129
+ "outputs": [
1130
+ {
1131
+ "internalType": "address",
1132
+ "name": "token0",
1133
+ "type": "address"
1134
+ }
1135
+ ],
1136
+ "stateMutability": "view",
1137
+ "type": "function"
1138
+ },
1139
+ {
1140
+ "inputs": [
1141
+ {
1142
+ "internalType": "address",
1143
+ "name": "pool",
1144
+ "type": "address"
1145
+ }
1146
+ ],
1147
+ "name": "token1",
1148
+ "outputs": [
1149
+ {
1150
+ "internalType": "address",
1151
+ "name": "token1",
1152
+ "type": "address"
1153
+ }
1154
+ ],
1155
+ "stateMutability": "view",
1156
+ "type": "function"
1157
+ },
1158
+ {
1159
+ "inputs": [
1160
+ {
1161
+ "internalType": "uint256",
1162
+ "name": "tokenId",
1163
+ "type": "uint256"
1164
+ }
1165
+ ],
1166
+ "name": "tokenURI",
1167
+ "outputs": [
1168
+ {
1169
+ "internalType": "string",
1170
+ "name": "uri",
1171
+ "type": "string"
1172
+ }
1173
+ ],
1174
+ "stateMutability": "view",
1175
+ "type": "function"
1176
+ },
1177
+ {
1178
+ "inputs": [
1179
+ {
1180
+ "internalType": "address",
1181
+ "name": "pool",
1182
+ "type": "address"
1183
+ }
1184
+ ],
1185
+ "name": "totalWrapped",
1186
+ "outputs": [
1187
+ {
1188
+ "internalType": "uint256",
1189
+ "name": "totalWrapped_",
1190
+ "type": "uint256"
1191
+ }
1192
+ ],
1193
+ "stateMutability": "view",
1194
+ "type": "function"
1195
+ },
1196
+ {
1197
+ "inputs": [
1198
+ {
1199
+ "internalType": "address",
1200
+ "name": "from",
1201
+ "type": "address"
1202
+ },
1203
+ {
1204
+ "internalType": "address",
1205
+ "name": "to",
1206
+ "type": "address"
1207
+ },
1208
+ {
1209
+ "internalType": "uint256",
1210
+ "name": "id",
1211
+ "type": "uint256"
1212
+ }
1213
+ ],
1214
+ "name": "transferFrom",
1215
+ "outputs": [],
1216
+ "stateMutability": "nonpayable",
1217
+ "type": "function"
1218
+ },
1219
+ {
1220
+ "inputs": [
1221
+ {
1222
+ "internalType": "address",
1223
+ "name": "newOwner",
1224
+ "type": "address"
1225
+ }
1226
+ ],
1227
+ "name": "transferOwnership",
1228
+ "outputs": [],
1229
+ "stateMutability": "nonpayable",
1230
+ "type": "function"
1231
+ }
1232
+ ]