@pearcurve/sdk 0.0.0-stage → 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 (113) hide show
  1. package/LICENSE +64 -0
  2. package/README.md +122 -2
  3. package/dist/abis/json/collateralTokenRegistry.json +257 -0
  4. package/dist/abis/json/errors.json +1034 -0
  5. package/dist/abis/json/feeManager.json +668 -0
  6. package/dist/abis/json/intentRegistry.json +1169 -0
  7. package/dist/abis/json/intentRegistryViews.json +958 -0
  8. package/dist/abis/json/loanAssetRegistry.json +220 -0
  9. package/dist/abis/json/loanHealthViewer.json +176 -0
  10. package/dist/abis/json/loanManager.json +1404 -0
  11. package/dist/abis/json/loanMarketCaps.json +1642 -0
  12. package/dist/abis/json/loanPositionToken.json +650 -0
  13. package/dist/abis/json/main.json +1951 -0
  14. package/dist/abis/json/matchingEngine.json +2060 -0
  15. package/dist/abis/json/priceOracle.json +453 -0
  16. package/dist/abis/json/protocolViewer.json +959 -0
  17. package/dist/abis/json/secondaryMarket.json +1348 -0
  18. package/dist/abis/json/strategyRegistry.json +237 -0
  19. package/dist/abis/json/termCurveOracle.json +346 -0
  20. package/dist/abis/json/yieldSource.json +298 -0
  21. package/dist/abis/json/yieldSourceRegistry.json +295 -0
  22. package/dist/abis.d.ts +21 -0
  23. package/dist/abis.d.ts.map +1 -0
  24. package/dist/abis.js +39 -0
  25. package/dist/abis.js.map +1 -0
  26. package/dist/borrowerSubmitPreflight.d.ts +14 -0
  27. package/dist/borrowerSubmitPreflight.d.ts.map +1 -0
  28. package/dist/borrowerSubmitPreflight.js +28 -0
  29. package/dist/borrowerSubmitPreflight.js.map +1 -0
  30. package/dist/bps.d.ts +11 -0
  31. package/dist/bps.d.ts.map +1 -0
  32. package/dist/bps.js +25 -0
  33. package/dist/bps.js.map +1 -0
  34. package/dist/clients.d.ts +23 -0
  35. package/dist/clients.d.ts.map +1 -0
  36. package/dist/clients.js +59 -0
  37. package/dist/clients.js.map +1 -0
  38. package/dist/decodeError.d.ts +24 -0
  39. package/dist/decodeError.d.ts.map +1 -0
  40. package/dist/decodeError.js +358 -0
  41. package/dist/decodeError.js.map +1 -0
  42. package/dist/encoding.d.ts +18 -0
  43. package/dist/encoding.d.ts.map +1 -0
  44. package/dist/encoding.js +94 -0
  45. package/dist/encoding.js.map +1 -0
  46. package/dist/index.d.ts +18 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +18 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/lenderSubmitPreflight.d.ts +20 -0
  51. package/dist/lenderSubmitPreflight.d.ts.map +1 -0
  52. package/dist/lenderSubmitPreflight.js +42 -0
  53. package/dist/lenderSubmitPreflight.js.map +1 -0
  54. package/dist/loanPositions.d.ts +23 -0
  55. package/dist/loanPositions.d.ts.map +1 -0
  56. package/dist/loanPositions.js +37 -0
  57. package/dist/loanPositions.js.map +1 -0
  58. package/dist/marketStats.d.ts +70 -0
  59. package/dist/marketStats.d.ts.map +1 -0
  60. package/dist/marketStats.js +117 -0
  61. package/dist/marketStats.js.map +1 -0
  62. package/dist/networkConfig.d.ts +48 -0
  63. package/dist/networkConfig.d.ts.map +1 -0
  64. package/dist/networkConfig.js +48 -0
  65. package/dist/networkConfig.js.map +1 -0
  66. package/dist/pause.d.ts +20 -0
  67. package/dist/pause.d.ts.map +1 -0
  68. package/dist/pause.js +40 -0
  69. package/dist/pause.js.map +1 -0
  70. package/dist/reads.d.ts +187 -0
  71. package/dist/reads.d.ts.map +1 -0
  72. package/dist/reads.js +353 -0
  73. package/dist/reads.js.map +1 -0
  74. package/dist/strategies.d.ts +14 -0
  75. package/dist/strategies.d.ts.map +1 -0
  76. package/dist/strategies.js +49 -0
  77. package/dist/strategies.js.map +1 -0
  78. package/dist/txGas.d.ts +19 -0
  79. package/dist/txGas.d.ts.map +1 -0
  80. package/dist/txGas.js +37 -0
  81. package/dist/txGas.js.map +1 -0
  82. package/dist/types.d.ts +69 -0
  83. package/dist/types.d.ts.map +1 -0
  84. package/dist/types.js +11 -0
  85. package/dist/types.js.map +1 -0
  86. package/dist/yieldMigrationPreflight.d.ts +29 -0
  87. package/dist/yieldMigrationPreflight.d.ts.map +1 -0
  88. package/dist/yieldMigrationPreflight.js +61 -0
  89. package/dist/yieldMigrationPreflight.js.map +1 -0
  90. package/dist/yieldSources.d.ts +33 -0
  91. package/dist/yieldSources.d.ts.map +1 -0
  92. package/dist/yieldSources.js +106 -0
  93. package/dist/yieldSources.js.map +1 -0
  94. package/package.json +47 -4
  95. package/src/abis/json/collateralTokenRegistry.json +257 -0
  96. package/src/abis/json/errors.json +1034 -0
  97. package/src/abis/json/feeManager.json +668 -0
  98. package/src/abis/json/intentRegistry.json +1169 -0
  99. package/src/abis/json/intentRegistryViews.json +958 -0
  100. package/src/abis/json/loanAssetRegistry.json +220 -0
  101. package/src/abis/json/loanHealthViewer.json +176 -0
  102. package/src/abis/json/loanManager.json +1404 -0
  103. package/src/abis/json/loanMarketCaps.json +1642 -0
  104. package/src/abis/json/loanPositionToken.json +650 -0
  105. package/src/abis/json/main.json +1951 -0
  106. package/src/abis/json/matchingEngine.json +2060 -0
  107. package/src/abis/json/priceOracle.json +453 -0
  108. package/src/abis/json/protocolViewer.json +959 -0
  109. package/src/abis/json/secondaryMarket.json +1348 -0
  110. package/src/abis/json/strategyRegistry.json +237 -0
  111. package/src/abis/json/termCurveOracle.json +346 -0
  112. package/src/abis/json/yieldSource.json +298 -0
  113. package/src/abis/json/yieldSourceRegistry.json +295 -0
@@ -0,0 +1,1034 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "ActiveLoanCountUnderflow",
5
+ "inputs": []
6
+ },
7
+ {
8
+ "type": "error",
9
+ "name": "ArrayLengthMismatch",
10
+ "inputs": []
11
+ },
12
+ {
13
+ "type": "error",
14
+ "name": "AuctionAlreadyExists",
15
+ "inputs": []
16
+ },
17
+ {
18
+ "type": "error",
19
+ "name": "AuctionEnded",
20
+ "inputs": []
21
+ },
22
+ {
23
+ "type": "error",
24
+ "name": "AuctionHasBids",
25
+ "inputs": []
26
+ },
27
+ {
28
+ "type": "error",
29
+ "name": "AuctionNotActive",
30
+ "inputs": []
31
+ },
32
+ {
33
+ "type": "error",
34
+ "name": "AuctionNotEnded",
35
+ "inputs": []
36
+ },
37
+ {
38
+ "type": "error",
39
+ "name": "AutoMatchNotFound",
40
+ "inputs": []
41
+ },
42
+ {
43
+ "type": "error",
44
+ "name": "AutoMatchScanLimitExceeded",
45
+ "inputs": []
46
+ },
47
+ {
48
+ "type": "error",
49
+ "name": "AutoRefinanceNotEnabled",
50
+ "inputs": []
51
+ },
52
+ {
53
+ "type": "error",
54
+ "name": "AutoRefinanceScanLimitExceeded",
55
+ "inputs": []
56
+ },
57
+ {
58
+ "type": "error",
59
+ "name": "BadDebtCollateralRemaining",
60
+ "inputs": []
61
+ },
62
+ {
63
+ "type": "error",
64
+ "name": "BelowReservePrice",
65
+ "inputs": []
66
+ },
67
+ {
68
+ "type": "error",
69
+ "name": "BidExpired",
70
+ "inputs": []
71
+ },
72
+ {
73
+ "type": "error",
74
+ "name": "BidInvalidated",
75
+ "inputs": []
76
+ },
77
+ {
78
+ "type": "error",
79
+ "name": "BidNotActive",
80
+ "inputs": []
81
+ },
82
+ {
83
+ "type": "error",
84
+ "name": "BidTooLow",
85
+ "inputs": []
86
+ },
87
+ {
88
+ "type": "error",
89
+ "name": "BorrowCapExceeded",
90
+ "inputs": [
91
+ {
92
+ "name": "borrower",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "name": "loanAsset",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "name": "currentOutstanding",
101
+ "type": "uint256"
102
+ },
103
+ {
104
+ "name": "add",
105
+ "type": "uint256"
106
+ },
107
+ {
108
+ "name": "cap",
109
+ "type": "uint256"
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "type": "error",
115
+ "name": "BucketExists",
116
+ "inputs": []
117
+ },
118
+ {
119
+ "type": "error",
120
+ "name": "CallerIsNotGovernor",
121
+ "inputs": []
122
+ },
123
+ {
124
+ "type": "error",
125
+ "name": "CallerIsNotPendingGovernor",
126
+ "inputs": []
127
+ },
128
+ {
129
+ "type": "error",
130
+ "name": "CannotTransferInactivePosition",
131
+ "inputs": []
132
+ },
133
+ {
134
+ "type": "error",
135
+ "name": "ChainlinkFeedDecimalsMismatch",
136
+ "inputs": [
137
+ {
138
+ "name": "underlyingDecimals",
139
+ "type": "uint8",
140
+ "internalType": "uint8"
141
+ },
142
+ {
143
+ "name": "quoteDecimals",
144
+ "type": "uint8",
145
+ "internalType": "uint8"
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "type": "error",
151
+ "name": "CollateralExceedsBorrowerCap",
152
+ "inputs": [
153
+ {
154
+ "name": "required",
155
+ "type": "uint256",
156
+ "internalType": "uint256"
157
+ },
158
+ {
159
+ "name": "max",
160
+ "type": "uint256",
161
+ "internalType": "uint256"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "type": "error",
167
+ "name": "CollateralOraclePriceZero",
168
+ "inputs": [
169
+ {
170
+ "name": "token",
171
+ "type": "address",
172
+ "internalType": "address"
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "type": "error",
178
+ "name": "ConflictingAuction",
179
+ "inputs": []
180
+ },
181
+ {
182
+ "type": "error",
183
+ "name": "ConflictingListing",
184
+ "inputs": []
185
+ },
186
+ {
187
+ "type": "error",
188
+ "name": "Create2AddressMismatch",
189
+ "inputs": [
190
+ {
191
+ "name": "expected",
192
+ "type": "address",
193
+ "internalType": "address"
194
+ },
195
+ {
196
+ "name": "actual",
197
+ "type": "address",
198
+ "internalType": "address"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "type": "error",
204
+ "name": "DeadlineTooCloseToMaturity",
205
+ "inputs": [
206
+ {
207
+ "name": "deadline",
208
+ "type": "uint256",
209
+ "internalType": "uint256"
210
+ },
211
+ {
212
+ "name": "maturity",
213
+ "type": "uint256",
214
+ "internalType": "uint256"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "type": "error",
220
+ "name": "EarlyRepaymentNotAllowed",
221
+ "inputs": []
222
+ },
223
+ {
224
+ "type": "error",
225
+ "name": "EnforcedPause",
226
+ "inputs": []
227
+ },
228
+ {
229
+ "type": "error",
230
+ "name": "Error",
231
+ "inputs": [
232
+ {
233
+ "name": "message",
234
+ "type": "string"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "type": "error",
240
+ "name": "ExceedsPerBorrowerCap",
241
+ "inputs": []
242
+ },
243
+ {
244
+ "type": "error",
245
+ "name": "ExitPathNotPausable",
246
+ "inputs": [
247
+ {
248
+ "name": "feature",
249
+ "type": "uint8",
250
+ "internalType": "uint8"
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "type": "error",
256
+ "name": "ExpectedPause",
257
+ "inputs": []
258
+ },
259
+ {
260
+ "type": "error",
261
+ "name": "FeeExceedsMax",
262
+ "inputs": []
263
+ },
264
+ {
265
+ "type": "error",
266
+ "name": "FeeExceedsMaximum",
267
+ "inputs": [
268
+ {
269
+ "name": "provided",
270
+ "type": "uint256",
271
+ "internalType": "uint256"
272
+ },
273
+ {
274
+ "name": "maximum",
275
+ "type": "uint256",
276
+ "internalType": "uint256"
277
+ }
278
+ ]
279
+ },
280
+ {
281
+ "type": "error",
282
+ "name": "FillBelowDustFloor",
283
+ "inputs": []
284
+ },
285
+ {
286
+ "type": "error",
287
+ "name": "FillBelowMinimum",
288
+ "inputs": []
289
+ },
290
+ {
291
+ "type": "error",
292
+ "name": "FillExceedsCapacity",
293
+ "inputs": []
294
+ },
295
+ {
296
+ "type": "error",
297
+ "name": "GracePeriodExceedsMaximum",
298
+ "inputs": [
299
+ {
300
+ "name": "provided",
301
+ "type": "uint256",
302
+ "internalType": "uint256"
303
+ },
304
+ {
305
+ "name": "maximum",
306
+ "type": "uint256",
307
+ "internalType": "uint256"
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "type": "error",
313
+ "name": "IncompatibleIntents",
314
+ "inputs": []
315
+ },
316
+ {
317
+ "type": "error",
318
+ "name": "InsufficientShares",
319
+ "inputs": []
320
+ },
321
+ {
322
+ "type": "error",
323
+ "name": "InsufficientSharesMinted",
324
+ "inputs": []
325
+ },
326
+ {
327
+ "type": "error",
328
+ "name": "InsufficientWalletBalanceOrAllowance",
329
+ "inputs": [
330
+ {
331
+ "name": "asset",
332
+ "type": "address",
333
+ "internalType": "address"
334
+ },
335
+ {
336
+ "name": "owner",
337
+ "type": "address",
338
+ "internalType": "address"
339
+ },
340
+ {
341
+ "name": "needed",
342
+ "type": "uint256",
343
+ "internalType": "uint256"
344
+ },
345
+ {
346
+ "name": "balance",
347
+ "type": "uint256",
348
+ "internalType": "uint256"
349
+ },
350
+ {
351
+ "name": "allowance",
352
+ "type": "uint256",
353
+ "internalType": "uint256"
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "type": "error",
359
+ "name": "InsufficientYieldSourceBalance",
360
+ "inputs": []
361
+ },
362
+ {
363
+ "type": "error",
364
+ "name": "IntentExpired",
365
+ "inputs": []
366
+ },
367
+ {
368
+ "type": "error",
369
+ "name": "IntentNotActive",
370
+ "inputs": []
371
+ },
372
+ {
373
+ "type": "error",
374
+ "name": "IntentNotFound",
375
+ "inputs": []
376
+ },
377
+ {
378
+ "type": "error",
379
+ "name": "IntentRegistryEnforcedPause",
380
+ "inputs": []
381
+ },
382
+ {
383
+ "type": "error",
384
+ "name": "InvalidAsset",
385
+ "inputs": []
386
+ },
387
+ {
388
+ "type": "error",
389
+ "name": "InvalidCollateralConfig",
390
+ "inputs": []
391
+ },
392
+ {
393
+ "type": "error",
394
+ "name": "InvalidContractAddress",
395
+ "inputs": [
396
+ {
397
+ "name": "candidate",
398
+ "type": "address"
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ "type": "error",
404
+ "name": "InvalidCreditStrategy",
405
+ "inputs": []
406
+ },
407
+ {
408
+ "type": "error",
409
+ "name": "InvalidCurrencyAddress",
410
+ "inputs": [
411
+ {
412
+ "name": "currency",
413
+ "type": "address",
414
+ "internalType": "address"
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ "type": "error",
420
+ "name": "InvalidDuration",
421
+ "inputs": []
422
+ },
423
+ {
424
+ "type": "error",
425
+ "name": "InvalidExpiry",
426
+ "inputs": []
427
+ },
428
+ {
429
+ "type": "error",
430
+ "name": "InvalidFee",
431
+ "inputs": []
432
+ },
433
+ {
434
+ "type": "error",
435
+ "name": "InvalidFeeRecipient",
436
+ "inputs": []
437
+ },
438
+ {
439
+ "type": "error",
440
+ "name": "InvalidLiquidationCover",
441
+ "inputs": []
442
+ },
443
+ {
444
+ "type": "error",
445
+ "name": "InvalidPaginationCursor",
446
+ "inputs": [
447
+ {
448
+ "name": "asset",
449
+ "type": "address",
450
+ "internalType": "address"
451
+ },
452
+ {
453
+ "name": "startId",
454
+ "type": "uint256",
455
+ "internalType": "uint256"
456
+ }
457
+ ]
458
+ },
459
+ {
460
+ "type": "error",
461
+ "name": "InvalidPriceScale",
462
+ "inputs": []
463
+ },
464
+ {
465
+ "type": "error",
466
+ "name": "InvalidPrincipal",
467
+ "inputs": []
468
+ },
469
+ {
470
+ "type": "error",
471
+ "name": "InvalidRate",
472
+ "inputs": []
473
+ },
474
+ {
475
+ "type": "error",
476
+ "name": "InvalidRetargetIntent",
477
+ "inputs": [
478
+ {
479
+ "name": "intentId",
480
+ "type": "uint256",
481
+ "internalType": "uint256"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "type": "error",
487
+ "name": "InvalidSignature",
488
+ "inputs": []
489
+ },
490
+ {
491
+ "type": "error",
492
+ "name": "LenderWalletOutstandingInvariant",
493
+ "inputs": [
494
+ {
495
+ "name": "lender",
496
+ "type": "address",
497
+ "internalType": "address"
498
+ },
499
+ {
500
+ "name": "asset",
501
+ "type": "address",
502
+ "internalType": "address"
503
+ },
504
+ {
505
+ "name": "principal",
506
+ "type": "uint256",
507
+ "internalType": "uint256"
508
+ },
509
+ {
510
+ "name": "tracked",
511
+ "type": "uint256",
512
+ "internalType": "uint256"
513
+ }
514
+ ]
515
+ },
516
+ {
517
+ "type": "error",
518
+ "name": "LiquidationFacetDirectCall",
519
+ "inputs": []
520
+ },
521
+ {
522
+ "type": "error",
523
+ "name": "LiquidationFacetNotSet",
524
+ "inputs": []
525
+ },
526
+ {
527
+ "type": "error",
528
+ "name": "ListingExpired",
529
+ "inputs": []
530
+ },
531
+ {
532
+ "type": "error",
533
+ "name": "ListingNotActive",
534
+ "inputs": []
535
+ },
536
+ {
537
+ "type": "error",
538
+ "name": "LoanManagerEnforcedPause",
539
+ "inputs": []
540
+ },
541
+ {
542
+ "type": "error",
543
+ "name": "LoanNotActive",
544
+ "inputs": []
545
+ },
546
+ {
547
+ "type": "error",
548
+ "name": "LoanNotLiquidatable",
549
+ "inputs": []
550
+ },
551
+ {
552
+ "type": "error",
553
+ "name": "LoanNotListed",
554
+ "inputs": []
555
+ },
556
+ {
557
+ "type": "error",
558
+ "name": "LoanNotMatured",
559
+ "inputs": []
560
+ },
561
+ {
562
+ "type": "error",
563
+ "name": "LoanStartTimeInvalid",
564
+ "inputs": []
565
+ },
566
+ {
567
+ "type": "error",
568
+ "name": "MarketBorrowCapBelowOutstanding",
569
+ "inputs": [
570
+ {
571
+ "name": "loanAsset",
572
+ "type": "address"
573
+ },
574
+ {
575
+ "name": "cap",
576
+ "type": "uint256"
577
+ },
578
+ {
579
+ "name": "outstanding",
580
+ "type": "uint256"
581
+ }
582
+ ]
583
+ },
584
+ {
585
+ "type": "error",
586
+ "name": "MarketBorrowCapExceeded",
587
+ "inputs": [
588
+ {
589
+ "name": "loanAsset",
590
+ "type": "address"
591
+ },
592
+ {
593
+ "name": "currentOutstanding",
594
+ "type": "uint256"
595
+ },
596
+ {
597
+ "name": "add",
598
+ "type": "uint256"
599
+ },
600
+ {
601
+ "name": "cap",
602
+ "type": "uint256"
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "type": "error",
608
+ "name": "MarketEnforcedPause",
609
+ "inputs": [
610
+ {
611
+ "name": "market",
612
+ "type": "address",
613
+ "internalType": "address"
614
+ }
615
+ ]
616
+ },
617
+ {
618
+ "type": "error",
619
+ "name": "MarketFeatureEnforcedPause",
620
+ "inputs": [
621
+ {
622
+ "name": "market",
623
+ "type": "address",
624
+ "internalType": "address"
625
+ },
626
+ {
627
+ "name": "feature",
628
+ "type": "uint8",
629
+ "internalType": "uint8"
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ "type": "error",
635
+ "name": "MatchingEngineEnforcedPause",
636
+ "inputs": []
637
+ },
638
+ {
639
+ "type": "error",
640
+ "name": "MatchingIntentInactive",
641
+ "inputs": []
642
+ },
643
+ {
644
+ "type": "error",
645
+ "name": "MigrationInsufficientForRetarget",
646
+ "inputs": [
647
+ {
648
+ "name": "required",
649
+ "type": "uint256",
650
+ "internalType": "uint256"
651
+ },
652
+ {
653
+ "name": "migrated",
654
+ "type": "uint256",
655
+ "internalType": "uint256"
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ "type": "error",
661
+ "name": "MinFillBpsAboveMaximum",
662
+ "inputs": [
663
+ {
664
+ "name": "provided",
665
+ "type": "uint16",
666
+ "internalType": "uint16"
667
+ }
668
+ ]
669
+ },
670
+ {
671
+ "type": "error",
672
+ "name": "NoActiveLenderIntent",
673
+ "inputs": []
674
+ },
675
+ {
676
+ "type": "error",
677
+ "name": "NoBuckets",
678
+ "inputs": []
679
+ },
680
+ {
681
+ "type": "error",
682
+ "name": "NoPendingRefund",
683
+ "inputs": []
684
+ },
685
+ {
686
+ "type": "error",
687
+ "name": "NotBorrower",
688
+ "inputs": []
689
+ },
690
+ {
691
+ "type": "error",
692
+ "name": "NothingToClaim",
693
+ "inputs": []
694
+ },
695
+ {
696
+ "type": "error",
697
+ "name": "NotLender",
698
+ "inputs": []
699
+ },
700
+ {
701
+ "type": "error",
702
+ "name": "OnlyBidder",
703
+ "inputs": []
704
+ },
705
+ {
706
+ "type": "error",
707
+ "name": "OnlyRecorder",
708
+ "inputs": []
709
+ },
710
+ {
711
+ "type": "error",
712
+ "name": "OnlySeller",
713
+ "inputs": []
714
+ },
715
+ {
716
+ "type": "error",
717
+ "name": "OraclePriceStale",
718
+ "inputs": []
719
+ },
720
+ {
721
+ "type": "error",
722
+ "name": "OraclePriceStale",
723
+ "inputs": [
724
+ {
725
+ "name": "token",
726
+ "type": "address"
727
+ },
728
+ {
729
+ "name": "quote",
730
+ "type": "address"
731
+ }
732
+ ]
733
+ },
734
+ {
735
+ "type": "error",
736
+ "name": "OraclePriceUnavailable",
737
+ "inputs": []
738
+ },
739
+ {
740
+ "type": "error",
741
+ "name": "OracleRegistryMismatch",
742
+ "inputs": []
743
+ },
744
+ {
745
+ "type": "error",
746
+ "name": "Panic",
747
+ "inputs": [
748
+ {
749
+ "name": "code",
750
+ "type": "uint256"
751
+ }
752
+ ]
753
+ },
754
+ {
755
+ "type": "error",
756
+ "name": "PartialFillNotAllowed",
757
+ "inputs": []
758
+ },
759
+ {
760
+ "type": "error",
761
+ "name": "PartialLiquidationRequiresNoStrategy",
762
+ "inputs": []
763
+ },
764
+ {
765
+ "type": "error",
766
+ "name": "PositionNearMaturity",
767
+ "inputs": []
768
+ },
769
+ {
770
+ "type": "error",
771
+ "name": "PositionNotTransferable",
772
+ "inputs": []
773
+ },
774
+ {
775
+ "type": "error",
776
+ "name": "PriceNotAboveThreshold",
777
+ "inputs": [
778
+ {
779
+ "name": "price",
780
+ "type": "uint256"
781
+ },
782
+ {
783
+ "name": "minPrice",
784
+ "type": "uint256"
785
+ }
786
+ ]
787
+ },
788
+ {
789
+ "type": "error",
790
+ "name": "ReentrancyGuardReentrantCall",
791
+ "inputs": []
792
+ },
793
+ {
794
+ "type": "error",
795
+ "name": "RefinanceCollateralShortfall",
796
+ "inputs": []
797
+ },
798
+ {
799
+ "type": "error",
800
+ "name": "RefinanceFillMismatch",
801
+ "inputs": []
802
+ },
803
+ {
804
+ "type": "error",
805
+ "name": "RefinancePayoffDeficit",
806
+ "inputs": []
807
+ },
808
+ {
809
+ "type": "error",
810
+ "name": "RepayFacetDirectCall",
811
+ "inputs": []
812
+ },
813
+ {
814
+ "type": "error",
815
+ "name": "RepayFacetNotSet",
816
+ "inputs": []
817
+ },
818
+ {
819
+ "type": "error",
820
+ "name": "SafeERC20FailedOperation",
821
+ "inputs": [
822
+ {
823
+ "name": "token",
824
+ "type": "address"
825
+ }
826
+ ]
827
+ },
828
+ {
829
+ "type": "error",
830
+ "name": "SecondaryMarketAlreadySet",
831
+ "inputs": []
832
+ },
833
+ {
834
+ "type": "error",
835
+ "name": "SecondaryMarketEnforcedPause",
836
+ "inputs": []
837
+ },
838
+ {
839
+ "type": "error",
840
+ "name": "SignatureExpired",
841
+ "inputs": []
842
+ },
843
+ {
844
+ "type": "error",
845
+ "name": "StaleListingSeller",
846
+ "inputs": []
847
+ },
848
+ {
849
+ "type": "error",
850
+ "name": "StrategyAlreadyRegistered",
851
+ "inputs": [
852
+ {
853
+ "name": "strategy",
854
+ "type": "address",
855
+ "internalType": "address"
856
+ }
857
+ ]
858
+ },
859
+ {
860
+ "type": "error",
861
+ "name": "StrategyNotApproved",
862
+ "inputs": [
863
+ {
864
+ "name": "strategy",
865
+ "type": "address",
866
+ "internalType": "address"
867
+ }
868
+ ]
869
+ },
870
+ {
871
+ "type": "error",
872
+ "name": "SupplyCapExceeded",
873
+ "inputs": [
874
+ {
875
+ "name": "lender",
876
+ "type": "address"
877
+ },
878
+ {
879
+ "name": "loanAsset",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "name": "currentIdle",
884
+ "type": "uint256"
885
+ },
886
+ {
887
+ "name": "add",
888
+ "type": "uint256"
889
+ },
890
+ {
891
+ "name": "cap",
892
+ "type": "uint256"
893
+ }
894
+ ]
895
+ },
896
+ {
897
+ "type": "error",
898
+ "name": "Unauthorized",
899
+ "inputs": []
900
+ },
901
+ {
902
+ "type": "error",
903
+ "name": "UnauthorizedPause",
904
+ "inputs": []
905
+ },
906
+ {
907
+ "type": "error",
908
+ "name": "UnsupportedCollateral",
909
+ "inputs": [
910
+ {
911
+ "name": "token",
912
+ "type": "address",
913
+ "internalType": "address"
914
+ }
915
+ ]
916
+ },
917
+ {
918
+ "type": "error",
919
+ "name": "UnsupportedCurrency",
920
+ "inputs": [
921
+ {
922
+ "name": "currency",
923
+ "type": "address",
924
+ "internalType": "address"
925
+ }
926
+ ]
927
+ },
928
+ {
929
+ "type": "error",
930
+ "name": "UnsupportedLoanAsset",
931
+ "inputs": [
932
+ {
933
+ "name": "token",
934
+ "type": "address",
935
+ "internalType": "address"
936
+ }
937
+ ]
938
+ },
939
+ {
940
+ "type": "error",
941
+ "name": "WalletModeSupplyCapExceeded",
942
+ "inputs": [
943
+ {
944
+ "name": "lender",
945
+ "type": "address"
946
+ },
947
+ {
948
+ "name": "loanAsset",
949
+ "type": "address"
950
+ },
951
+ {
952
+ "name": "current",
953
+ "type": "uint256"
954
+ },
955
+ {
956
+ "name": "add",
957
+ "type": "uint256"
958
+ },
959
+ {
960
+ "name": "cap",
961
+ "type": "uint256"
962
+ }
963
+ ]
964
+ },
965
+ {
966
+ "type": "error",
967
+ "name": "YieldSourceAlreadyRegistered",
968
+ "inputs": [
969
+ {
970
+ "name": "source",
971
+ "type": "address",
972
+ "internalType": "address"
973
+ }
974
+ ]
975
+ },
976
+ {
977
+ "type": "error",
978
+ "name": "YieldSourceNotApproved",
979
+ "inputs": [
980
+ {
981
+ "name": "source",
982
+ "type": "address",
983
+ "internalType": "address"
984
+ }
985
+ ]
986
+ },
987
+ {
988
+ "type": "error",
989
+ "name": "YieldWithdrawShortfall",
990
+ "inputs": [
991
+ {
992
+ "name": "expected",
993
+ "type": "uint256",
994
+ "internalType": "uint256"
995
+ },
996
+ {
997
+ "name": "received",
998
+ "type": "uint256",
999
+ "internalType": "uint256"
1000
+ }
1001
+ ]
1002
+ },
1003
+ {
1004
+ "type": "error",
1005
+ "name": "YieldWithdrawWouldInsolventIntents",
1006
+ "inputs": [
1007
+ {
1008
+ "name": "committed",
1009
+ "type": "uint256",
1010
+ "internalType": "uint256"
1011
+ },
1012
+ {
1013
+ "name": "balanceAfterWithdraw",
1014
+ "type": "uint256",
1015
+ "internalType": "uint256"
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "type": "error",
1021
+ "name": "ZeroAddress",
1022
+ "inputs": []
1023
+ },
1024
+ {
1025
+ "type": "error",
1026
+ "name": "ZeroDuration",
1027
+ "inputs": []
1028
+ },
1029
+ {
1030
+ "type": "error",
1031
+ "name": "ZeroPrice",
1032
+ "inputs": []
1033
+ }
1034
+ ]