@varla/sdk 1.0.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 (61) hide show
  1. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.d.ts +240 -0
  2. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.d.ts.map +1 -0
  3. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.js +315 -0
  4. package/dist/abi/full/PolymarketCtfAdapter.d.ts +234 -0
  5. package/dist/abi/full/PolymarketCtfAdapter.d.ts.map +1 -0
  6. package/dist/abi/full/PolymarketCtfAdapter.js +307 -0
  7. package/dist/abi/full/VarlaAccessManager.d.ts +896 -0
  8. package/dist/abi/full/VarlaAccessManager.d.ts.map +1 -0
  9. package/dist/abi/full/VarlaAccessManager.js +1166 -0
  10. package/dist/abi/full/VarlaConvertLiquidator.d.ts +603 -0
  11. package/dist/abi/full/VarlaConvertLiquidator.d.ts.map +1 -0
  12. package/dist/abi/full/VarlaConvertLiquidator.js +784 -0
  13. package/dist/abi/full/VarlaCore.d.ts +1671 -0
  14. package/dist/abi/full/VarlaCore.d.ts.map +1 -0
  15. package/dist/abi/full/VarlaCore.js +2176 -0
  16. package/dist/abi/full/VarlaInterestRateStrategy.d.ts +337 -0
  17. package/dist/abi/full/VarlaInterestRateStrategy.d.ts.map +1 -0
  18. package/dist/abi/full/VarlaInterestRateStrategy.js +437 -0
  19. package/dist/abi/full/VarlaLiquidator.d.ts +669 -0
  20. package/dist/abi/full/VarlaLiquidator.d.ts.map +1 -0
  21. package/dist/abi/full/VarlaLiquidator.js +864 -0
  22. package/dist/abi/full/VarlaMergeLiquidator.d.ts +575 -0
  23. package/dist/abi/full/VarlaMergeLiquidator.d.ts.map +1 -0
  24. package/dist/abi/full/VarlaMergeLiquidator.js +747 -0
  25. package/dist/abi/full/VarlaOracle.d.ts +1278 -0
  26. package/dist/abi/full/VarlaOracle.d.ts.map +1 -0
  27. package/dist/abi/full/VarlaOracle.js +1673 -0
  28. package/dist/abi/full/VarlaPool.d.ts +1242 -0
  29. package/dist/abi/full/VarlaPool.d.ts.map +1 -0
  30. package/dist/abi/full/VarlaPool.js +1621 -0
  31. package/dist/abi/full/VarlaProxyAdmin.d.ts +227 -0
  32. package/dist/abi/full/VarlaProxyAdmin.d.ts.map +1 -0
  33. package/dist/abi/full/VarlaProxyAdmin.js +296 -0
  34. package/dist/abi/index.d.ts +13 -0
  35. package/dist/abi/index.d.ts.map +1 -0
  36. package/dist/abi/index.js +14 -0
  37. package/dist/abi/subsets/VarlaOracle.registry.d.ts +532 -0
  38. package/dist/abi/subsets/VarlaOracle.registry.d.ts.map +1 -0
  39. package/dist/abi/subsets/VarlaOracle.registry.js +695 -0
  40. package/dist/abi.d.ts +2 -0
  41. package/dist/abi.d.ts.map +1 -0
  42. package/dist/abi.js +2 -0
  43. package/dist/addresses/bsc.d.ts +3 -0
  44. package/dist/addresses/bsc.d.ts.map +1 -0
  45. package/dist/addresses/bsc.js +10 -0
  46. package/dist/addresses/index.d.ts +3 -0
  47. package/dist/addresses/index.d.ts.map +1 -0
  48. package/dist/addresses/index.js +4 -0
  49. package/dist/addresses/polygon.d.ts +3 -0
  50. package/dist/addresses/polygon.d.ts.map +1 -0
  51. package/dist/addresses/polygon.js +10 -0
  52. package/dist/addresses.d.ts +2 -0
  53. package/dist/addresses.d.ts.map +1 -0
  54. package/dist/addresses.js +2 -0
  55. package/dist/index.d.ts +2 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +2 -0
  58. package/dist/types.d.ts +20 -0
  59. package/dist/types.d.ts.map +1 -0
  60. package/dist/types.js +1 -0
  61. package/package.json +42 -0
@@ -0,0 +1,864 @@
1
+ export const VARLALIQUIDATOR_ABI = [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_core",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_treasury",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_authority",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "address",
27
+ "name": "authority",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "AccessManagedInvalidAuthority",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "address",
38
+ "name": "caller",
39
+ "type": "address"
40
+ },
41
+ {
42
+ "internalType": "uint32",
43
+ "name": "delay",
44
+ "type": "uint32"
45
+ }
46
+ ],
47
+ "name": "AccessManagedRequiredDelay",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "address",
54
+ "name": "caller",
55
+ "type": "address"
56
+ }
57
+ ],
58
+ "name": "AccessManagedUnauthorized",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [
63
+ {
64
+ "internalType": "uint256",
65
+ "name": "healthFactorAfter",
66
+ "type": "uint256"
67
+ },
68
+ {
69
+ "internalType": "uint256",
70
+ "name": "targetHealthFactor",
71
+ "type": "uint256"
72
+ }
73
+ ],
74
+ "name": "CannotReachTargetHealthFactor",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "internalType": "uint256",
81
+ "name": "positionId",
82
+ "type": "uint256"
83
+ }
84
+ ],
85
+ "name": "DuplicatePositionId",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "EmptyPositionIds",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "uint256",
97
+ "name": "requiredValue",
98
+ "type": "uint256"
99
+ },
100
+ {
101
+ "internalType": "uint256",
102
+ "name": "availableValue",
103
+ "type": "uint256"
104
+ }
105
+ ],
106
+ "name": "InsufficientCollateralInList",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "InvalidDebtToCover",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "LiquidationBlockedByOracleGuards",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "MustNotLeaveDust",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "NoCollateralToSeize",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "healthFactor",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "NotLiquidatable",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "positionId",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "name": "OraclePriceUnavailable",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "uint256",
155
+ "name": "positionId",
156
+ "type": "uint256"
157
+ }
158
+ ],
159
+ "name": "OracleZeroPrice",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "ReentrancyGuardReentrantCall",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [
169
+ {
170
+ "internalType": "address",
171
+ "name": "token",
172
+ "type": "address"
173
+ }
174
+ ],
175
+ "name": "SafeERC20FailedOperation",
176
+ "type": "error"
177
+ },
178
+ {
179
+ "inputs": [],
180
+ "name": "SelfLiquidation",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "ZeroAddress",
186
+ "type": "error"
187
+ },
188
+ {
189
+ "inputs": [],
190
+ "name": "ZeroMaxRepay",
191
+ "type": "error"
192
+ },
193
+ {
194
+ "anonymous": false,
195
+ "inputs": [
196
+ {
197
+ "indexed": false,
198
+ "internalType": "address",
199
+ "name": "authority",
200
+ "type": "address"
201
+ }
202
+ ],
203
+ "name": "AuthorityUpdated",
204
+ "type": "event"
205
+ },
206
+ {
207
+ "anonymous": false,
208
+ "inputs": [
209
+ {
210
+ "indexed": true,
211
+ "internalType": "address",
212
+ "name": "liquidator",
213
+ "type": "address"
214
+ },
215
+ {
216
+ "indexed": true,
217
+ "internalType": "address",
218
+ "name": "user",
219
+ "type": "address"
220
+ },
221
+ {
222
+ "indexed": false,
223
+ "internalType": "uint256",
224
+ "name": "totalCollateralSeized",
225
+ "type": "uint256"
226
+ },
227
+ {
228
+ "indexed": false,
229
+ "internalType": "uint256",
230
+ "name": "debtRepaid",
231
+ "type": "uint256"
232
+ },
233
+ {
234
+ "indexed": false,
235
+ "internalType": "uint256",
236
+ "name": "badDebtWrittenOff",
237
+ "type": "uint256"
238
+ }
239
+ ],
240
+ "name": "BadDebtLiquidation",
241
+ "type": "event"
242
+ },
243
+ {
244
+ "anonymous": false,
245
+ "inputs": [
246
+ {
247
+ "indexed": true,
248
+ "internalType": "address",
249
+ "name": "liquidator",
250
+ "type": "address"
251
+ },
252
+ {
253
+ "indexed": true,
254
+ "internalType": "address",
255
+ "name": "user",
256
+ "type": "address"
257
+ },
258
+ {
259
+ "indexed": true,
260
+ "internalType": "uint256",
261
+ "name": "positionId",
262
+ "type": "uint256"
263
+ },
264
+ {
265
+ "indexed": false,
266
+ "internalType": "uint256",
267
+ "name": "debtRepaid",
268
+ "type": "uint256"
269
+ },
270
+ {
271
+ "indexed": false,
272
+ "internalType": "uint256",
273
+ "name": "collateralSeized",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "indexed": false,
278
+ "internalType": "uint256",
279
+ "name": "bonusAmount",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "indexed": false,
284
+ "internalType": "uint256",
285
+ "name": "protocolFee",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "indexed": false,
290
+ "internalType": "bool",
291
+ "name": "usedMerge",
292
+ "type": "bool"
293
+ }
294
+ ],
295
+ "name": "Liquidation",
296
+ "type": "event"
297
+ },
298
+ {
299
+ "anonymous": false,
300
+ "inputs": [
301
+ {
302
+ "indexed": true,
303
+ "internalType": "address",
304
+ "name": "liquidator",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "user",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": false,
315
+ "internalType": "uint256",
316
+ "name": "debtRepaid",
317
+ "type": "uint256"
318
+ },
319
+ {
320
+ "indexed": false,
321
+ "internalType": "uint256",
322
+ "name": "collateralSeizedValue",
323
+ "type": "uint256"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "internalType": "uint256",
328
+ "name": "bonusAmount",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "uint256",
334
+ "name": "protocolFee",
335
+ "type": "uint256"
336
+ }
337
+ ],
338
+ "name": "MultiLiquidation",
339
+ "type": "event"
340
+ },
341
+ {
342
+ "anonymous": false,
343
+ "inputs": [
344
+ {
345
+ "indexed": true,
346
+ "internalType": "address",
347
+ "name": "oldTreasury",
348
+ "type": "address"
349
+ },
350
+ {
351
+ "indexed": true,
352
+ "internalType": "address",
353
+ "name": "newTreasury",
354
+ "type": "address"
355
+ }
356
+ ],
357
+ "name": "TreasuryUpdated",
358
+ "type": "event"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "BPS",
363
+ "outputs": [
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [],
375
+ "name": "HEALTH_FACTOR_LIQUIDATION_THRESHOLD",
376
+ "outputs": [
377
+ {
378
+ "internalType": "uint256",
379
+ "name": "",
380
+ "type": "uint256"
381
+ }
382
+ ],
383
+ "stateMutability": "view",
384
+ "type": "function"
385
+ },
386
+ {
387
+ "inputs": [],
388
+ "name": "PRECISION",
389
+ "outputs": [
390
+ {
391
+ "internalType": "uint256",
392
+ "name": "",
393
+ "type": "uint256"
394
+ }
395
+ ],
396
+ "stateMutability": "view",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [],
401
+ "name": "authority",
402
+ "outputs": [
403
+ {
404
+ "internalType": "address",
405
+ "name": "",
406
+ "type": "address"
407
+ }
408
+ ],
409
+ "stateMutability": "view",
410
+ "type": "function"
411
+ },
412
+ {
413
+ "inputs": [
414
+ {
415
+ "internalType": "uint256",
416
+ "name": "healthFactor",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "name": "calculateLiquidationBonus",
421
+ "outputs": [
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [
433
+ {
434
+ "internalType": "address",
435
+ "name": "user",
436
+ "type": "address"
437
+ }
438
+ ],
439
+ "name": "canLiquidate",
440
+ "outputs": [
441
+ {
442
+ "internalType": "bool",
443
+ "name": "canLiquidate_",
444
+ "type": "bool"
445
+ },
446
+ {
447
+ "internalType": "uint256",
448
+ "name": "healthFactor",
449
+ "type": "uint256"
450
+ },
451
+ {
452
+ "internalType": "uint256",
453
+ "name": "currentBonus",
454
+ "type": "uint256"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ {
463
+ "internalType": "address",
464
+ "name": "user",
465
+ "type": "address"
466
+ }
467
+ ],
468
+ "name": "checkBadDebt",
469
+ "outputs": [
470
+ {
471
+ "internalType": "bool",
472
+ "name": "hasBadDebt",
473
+ "type": "bool"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "collateralValue",
478
+ "type": "uint256"
479
+ },
480
+ {
481
+ "internalType": "uint256",
482
+ "name": "debtValue",
483
+ "type": "uint256"
484
+ },
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "shortfall",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "stateMutability": "view",
492
+ "type": "function"
493
+ },
494
+ {
495
+ "inputs": [],
496
+ "name": "collateralToken",
497
+ "outputs": [
498
+ {
499
+ "internalType": "contract IERC20",
500
+ "name": "",
501
+ "type": "address"
502
+ }
503
+ ],
504
+ "stateMutability": "view",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [],
509
+ "name": "core",
510
+ "outputs": [
511
+ {
512
+ "internalType": "contract IVarlaCore",
513
+ "name": "",
514
+ "type": "address"
515
+ }
516
+ ],
517
+ "stateMutability": "view",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [],
522
+ "name": "isConsumingScheduledOp",
523
+ "outputs": [
524
+ {
525
+ "internalType": "bytes4",
526
+ "name": "",
527
+ "type": "bytes4"
528
+ }
529
+ ],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "address",
537
+ "name": "user",
538
+ "type": "address"
539
+ },
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "positionId",
543
+ "type": "uint256"
544
+ },
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "debtToCover",
548
+ "type": "uint256"
549
+ }
550
+ ],
551
+ "name": "liquidate",
552
+ "outputs": [],
553
+ "stateMutability": "nonpayable",
554
+ "type": "function"
555
+ },
556
+ {
557
+ "inputs": [
558
+ {
559
+ "internalType": "address",
560
+ "name": "user",
561
+ "type": "address"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "maxRepayAmount",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "name": "liquidateBadDebt",
570
+ "outputs": [],
571
+ "stateMutability": "nonpayable",
572
+ "type": "function"
573
+ },
574
+ {
575
+ "inputs": [
576
+ {
577
+ "internalType": "address",
578
+ "name": "user",
579
+ "type": "address"
580
+ },
581
+ {
582
+ "internalType": "uint256[]",
583
+ "name": "positionIds",
584
+ "type": "uint256[]"
585
+ },
586
+ {
587
+ "internalType": "uint256",
588
+ "name": "debtToCover",
589
+ "type": "uint256"
590
+ }
591
+ ],
592
+ "name": "liquidateMulti",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [
599
+ {
600
+ "internalType": "address",
601
+ "name": "",
602
+ "type": "address"
603
+ },
604
+ {
605
+ "internalType": "address",
606
+ "name": "",
607
+ "type": "address"
608
+ },
609
+ {
610
+ "internalType": "uint256[]",
611
+ "name": "",
612
+ "type": "uint256[]"
613
+ },
614
+ {
615
+ "internalType": "uint256[]",
616
+ "name": "",
617
+ "type": "uint256[]"
618
+ },
619
+ {
620
+ "internalType": "bytes",
621
+ "name": "",
622
+ "type": "bytes"
623
+ }
624
+ ],
625
+ "name": "onERC1155BatchReceived",
626
+ "outputs": [
627
+ {
628
+ "internalType": "bytes4",
629
+ "name": "",
630
+ "type": "bytes4"
631
+ }
632
+ ],
633
+ "stateMutability": "nonpayable",
634
+ "type": "function"
635
+ },
636
+ {
637
+ "inputs": [
638
+ {
639
+ "internalType": "address",
640
+ "name": "",
641
+ "type": "address"
642
+ },
643
+ {
644
+ "internalType": "address",
645
+ "name": "",
646
+ "type": "address"
647
+ },
648
+ {
649
+ "internalType": "uint256",
650
+ "name": "",
651
+ "type": "uint256"
652
+ },
653
+ {
654
+ "internalType": "uint256",
655
+ "name": "",
656
+ "type": "uint256"
657
+ },
658
+ {
659
+ "internalType": "bytes",
660
+ "name": "",
661
+ "type": "bytes"
662
+ }
663
+ ],
664
+ "name": "onERC1155Received",
665
+ "outputs": [
666
+ {
667
+ "internalType": "bytes4",
668
+ "name": "",
669
+ "type": "bytes4"
670
+ }
671
+ ],
672
+ "stateMutability": "nonpayable",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [],
677
+ "name": "positionsToken",
678
+ "outputs": [
679
+ {
680
+ "internalType": "contract ICTF",
681
+ "name": "",
682
+ "type": "address"
683
+ }
684
+ ],
685
+ "stateMutability": "view",
686
+ "type": "function"
687
+ },
688
+ {
689
+ "inputs": [
690
+ {
691
+ "internalType": "address",
692
+ "name": "user",
693
+ "type": "address"
694
+ },
695
+ {
696
+ "internalType": "uint256",
697
+ "name": "positionId",
698
+ "type": "uint256"
699
+ },
700
+ {
701
+ "internalType": "uint256",
702
+ "name": "debtToCover",
703
+ "type": "uint256"
704
+ }
705
+ ],
706
+ "name": "previewLiquidation",
707
+ "outputs": [
708
+ {
709
+ "internalType": "uint256",
710
+ "name": "debtToLiquidate",
711
+ "type": "uint256"
712
+ },
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "collateralToSeize",
716
+ "type": "uint256"
717
+ },
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "bonusAmount",
721
+ "type": "uint256"
722
+ },
723
+ {
724
+ "internalType": "uint256",
725
+ "name": "protocolFeeAmount",
726
+ "type": "uint256"
727
+ },
728
+ {
729
+ "internalType": "uint256",
730
+ "name": "liquidatorProfitMerge",
731
+ "type": "uint256"
732
+ }
733
+ ],
734
+ "stateMutability": "view",
735
+ "type": "function"
736
+ },
737
+ {
738
+ "inputs": [
739
+ {
740
+ "internalType": "address",
741
+ "name": "token",
742
+ "type": "address"
743
+ },
744
+ {
745
+ "internalType": "address",
746
+ "name": "to",
747
+ "type": "address"
748
+ },
749
+ {
750
+ "internalType": "uint256",
751
+ "name": "id",
752
+ "type": "uint256"
753
+ },
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "amount",
757
+ "type": "uint256"
758
+ }
759
+ ],
760
+ "name": "rescueERC1155",
761
+ "outputs": [],
762
+ "stateMutability": "nonpayable",
763
+ "type": "function"
764
+ },
765
+ {
766
+ "inputs": [
767
+ {
768
+ "internalType": "address",
769
+ "name": "token",
770
+ "type": "address"
771
+ },
772
+ {
773
+ "internalType": "address",
774
+ "name": "to",
775
+ "type": "address"
776
+ },
777
+ {
778
+ "internalType": "uint256",
779
+ "name": "amount",
780
+ "type": "uint256"
781
+ }
782
+ ],
783
+ "name": "rescueERC20",
784
+ "outputs": [],
785
+ "stateMutability": "nonpayable",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [
790
+ {
791
+ "internalType": "address",
792
+ "name": "user",
793
+ "type": "address"
794
+ },
795
+ {
796
+ "internalType": "uint256",
797
+ "name": "expectedScaledDebt",
798
+ "type": "uint256"
799
+ }
800
+ ],
801
+ "name": "resolveBadDebtWithReserve",
802
+ "outputs": [],
803
+ "stateMutability": "nonpayable",
804
+ "type": "function"
805
+ },
806
+ {
807
+ "inputs": [
808
+ {
809
+ "internalType": "address",
810
+ "name": "newAuthority",
811
+ "type": "address"
812
+ }
813
+ ],
814
+ "name": "setAuthority",
815
+ "outputs": [],
816
+ "stateMutability": "nonpayable",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "inputs": [
821
+ {
822
+ "internalType": "address",
823
+ "name": "_treasury",
824
+ "type": "address"
825
+ }
826
+ ],
827
+ "name": "setTreasury",
828
+ "outputs": [],
829
+ "stateMutability": "nonpayable",
830
+ "type": "function"
831
+ },
832
+ {
833
+ "inputs": [
834
+ {
835
+ "internalType": "bytes4",
836
+ "name": "interfaceId",
837
+ "type": "bytes4"
838
+ }
839
+ ],
840
+ "name": "supportsInterface",
841
+ "outputs": [
842
+ {
843
+ "internalType": "bool",
844
+ "name": "",
845
+ "type": "bool"
846
+ }
847
+ ],
848
+ "stateMutability": "view",
849
+ "type": "function"
850
+ },
851
+ {
852
+ "inputs": [],
853
+ "name": "treasury",
854
+ "outputs": [
855
+ {
856
+ "internalType": "address",
857
+ "name": "",
858
+ "type": "address"
859
+ }
860
+ ],
861
+ "stateMutability": "view",
862
+ "type": "function"
863
+ }
864
+ ];