@pearcurve/sdk 0.1.0 → 0.1.1

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 (42) hide show
  1. package/README.md +2 -2
  2. package/dist/abis.js +19 -19
  3. package/dist/abis.js.map +1 -1
  4. package/package.json +5 -5
  5. package/dist/abis/json/collateralTokenRegistry.json +0 -257
  6. package/dist/abis/json/errors.json +0 -1034
  7. package/dist/abis/json/feeManager.json +0 -668
  8. package/dist/abis/json/intentRegistry.json +0 -1169
  9. package/dist/abis/json/intentRegistryViews.json +0 -958
  10. package/dist/abis/json/loanAssetRegistry.json +0 -220
  11. package/dist/abis/json/loanHealthViewer.json +0 -176
  12. package/dist/abis/json/loanManager.json +0 -1404
  13. package/dist/abis/json/loanMarketCaps.json +0 -1642
  14. package/dist/abis/json/loanPositionToken.json +0 -650
  15. package/dist/abis/json/main.json +0 -1951
  16. package/dist/abis/json/matchingEngine.json +0 -2060
  17. package/dist/abis/json/priceOracle.json +0 -453
  18. package/dist/abis/json/protocolViewer.json +0 -959
  19. package/dist/abis/json/secondaryMarket.json +0 -1348
  20. package/dist/abis/json/strategyRegistry.json +0 -237
  21. package/dist/abis/json/termCurveOracle.json +0 -346
  22. package/dist/abis/json/yieldSource.json +0 -298
  23. package/dist/abis/json/yieldSourceRegistry.json +0 -295
  24. package/src/abis/json/collateralTokenRegistry.json +0 -257
  25. package/src/abis/json/errors.json +0 -1034
  26. package/src/abis/json/feeManager.json +0 -668
  27. package/src/abis/json/intentRegistry.json +0 -1169
  28. package/src/abis/json/intentRegistryViews.json +0 -958
  29. package/src/abis/json/loanAssetRegistry.json +0 -220
  30. package/src/abis/json/loanHealthViewer.json +0 -176
  31. package/src/abis/json/loanManager.json +0 -1404
  32. package/src/abis/json/loanMarketCaps.json +0 -1642
  33. package/src/abis/json/loanPositionToken.json +0 -650
  34. package/src/abis/json/main.json +0 -1951
  35. package/src/abis/json/matchingEngine.json +0 -2060
  36. package/src/abis/json/priceOracle.json +0 -453
  37. package/src/abis/json/protocolViewer.json +0 -959
  38. package/src/abis/json/secondaryMarket.json +0 -1348
  39. package/src/abis/json/strategyRegistry.json +0 -237
  40. package/src/abis/json/termCurveOracle.json +0 -346
  41. package/src/abis/json/yieldSource.json +0 -298
  42. package/src/abis/json/yieldSourceRegistry.json +0 -295
@@ -1,650 +0,0 @@
1
- [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "_loanManager",
7
- "type": "address",
8
- "internalType": "address"
9
- },
10
- {
11
- "name": "_main",
12
- "type": "address",
13
- "internalType": "address"
14
- }
15
- ],
16
- "stateMutability": "nonpayable"
17
- },
18
- {
19
- "type": "function",
20
- "name": "MATURITY_BUFFER",
21
- "inputs": [],
22
- "outputs": [
23
- {
24
- "name": "",
25
- "type": "uint256",
26
- "internalType": "uint256"
27
- }
28
- ],
29
- "stateMutability": "view"
30
- },
31
- {
32
- "type": "function",
33
- "name": "approve",
34
- "inputs": [
35
- {
36
- "name": "to",
37
- "type": "address",
38
- "internalType": "address"
39
- },
40
- {
41
- "name": "tokenId",
42
- "type": "uint256",
43
- "internalType": "uint256"
44
- }
45
- ],
46
- "outputs": [],
47
- "stateMutability": "nonpayable"
48
- },
49
- {
50
- "type": "function",
51
- "name": "balanceOf",
52
- "inputs": [
53
- {
54
- "name": "owner",
55
- "type": "address",
56
- "internalType": "address"
57
- }
58
- ],
59
- "outputs": [
60
- {
61
- "name": "",
62
- "type": "uint256",
63
- "internalType": "uint256"
64
- }
65
- ],
66
- "stateMutability": "view"
67
- },
68
- {
69
- "type": "function",
70
- "name": "burn",
71
- "inputs": [
72
- {
73
- "name": "loanId",
74
- "type": "uint256",
75
- "internalType": "uint256"
76
- }
77
- ],
78
- "outputs": [],
79
- "stateMutability": "nonpayable"
80
- },
81
- {
82
- "type": "function",
83
- "name": "delistFromSale",
84
- "inputs": [
85
- {
86
- "name": "loanId",
87
- "type": "uint256",
88
- "internalType": "uint256"
89
- }
90
- ],
91
- "outputs": [],
92
- "stateMutability": "nonpayable"
93
- },
94
- {
95
- "type": "function",
96
- "name": "delistFromSaleFor",
97
- "inputs": [
98
- {
99
- "name": "loanId",
100
- "type": "uint256",
101
- "internalType": "uint256"
102
- },
103
- {
104
- "name": "caller",
105
- "type": "address",
106
- "internalType": "address"
107
- }
108
- ],
109
- "outputs": [],
110
- "stateMutability": "nonpayable"
111
- },
112
- {
113
- "type": "function",
114
- "name": "getApproved",
115
- "inputs": [
116
- {
117
- "name": "tokenId",
118
- "type": "uint256",
119
- "internalType": "uint256"
120
- }
121
- ],
122
- "outputs": [
123
- {
124
- "name": "",
125
- "type": "address",
126
- "internalType": "address"
127
- }
128
- ],
129
- "stateMutability": "view"
130
- },
131
- {
132
- "type": "function",
133
- "name": "isApprovedForAll",
134
- "inputs": [
135
- {
136
- "name": "owner",
137
- "type": "address",
138
- "internalType": "address"
139
- },
140
- {
141
- "name": "operator",
142
- "type": "address",
143
- "internalType": "address"
144
- }
145
- ],
146
- "outputs": [
147
- {
148
- "name": "",
149
- "type": "bool",
150
- "internalType": "bool"
151
- }
152
- ],
153
- "stateMutability": "view"
154
- },
155
- {
156
- "type": "function",
157
- "name": "listForSale",
158
- "inputs": [
159
- {
160
- "name": "loanId",
161
- "type": "uint256",
162
- "internalType": "uint256"
163
- }
164
- ],
165
- "outputs": [],
166
- "stateMutability": "nonpayable"
167
- },
168
- {
169
- "type": "function",
170
- "name": "listForSaleFor",
171
- "inputs": [
172
- {
173
- "name": "loanId",
174
- "type": "uint256",
175
- "internalType": "uint256"
176
- },
177
- {
178
- "name": "caller",
179
- "type": "address",
180
- "internalType": "address"
181
- }
182
- ],
183
- "outputs": [],
184
- "stateMutability": "nonpayable"
185
- },
186
- {
187
- "type": "function",
188
- "name": "loanManager",
189
- "inputs": [],
190
- "outputs": [
191
- {
192
- "name": "",
193
- "type": "address",
194
- "internalType": "address"
195
- }
196
- ],
197
- "stateMutability": "view"
198
- },
199
- {
200
- "type": "function",
201
- "name": "main",
202
- "inputs": [],
203
- "outputs": [
204
- {
205
- "name": "",
206
- "type": "address",
207
- "internalType": "address"
208
- }
209
- ],
210
- "stateMutability": "view"
211
- },
212
- {
213
- "type": "function",
214
- "name": "mint",
215
- "inputs": [
216
- {
217
- "name": "to",
218
- "type": "address",
219
- "internalType": "address"
220
- },
221
- {
222
- "name": "loanId",
223
- "type": "uint256",
224
- "internalType": "uint256"
225
- }
226
- ],
227
- "outputs": [],
228
- "stateMutability": "nonpayable"
229
- },
230
- {
231
- "type": "function",
232
- "name": "name",
233
- "inputs": [],
234
- "outputs": [
235
- {
236
- "name": "",
237
- "type": "string",
238
- "internalType": "string"
239
- }
240
- ],
241
- "stateMutability": "view"
242
- },
243
- {
244
- "type": "function",
245
- "name": "ownerOf",
246
- "inputs": [
247
- {
248
- "name": "tokenId",
249
- "type": "uint256",
250
- "internalType": "uint256"
251
- }
252
- ],
253
- "outputs": [
254
- {
255
- "name": "",
256
- "type": "address",
257
- "internalType": "address"
258
- }
259
- ],
260
- "stateMutability": "view"
261
- },
262
- {
263
- "type": "function",
264
- "name": "safeTransferFrom",
265
- "inputs": [
266
- {
267
- "name": "from",
268
- "type": "address",
269
- "internalType": "address"
270
- },
271
- {
272
- "name": "to",
273
- "type": "address",
274
- "internalType": "address"
275
- },
276
- {
277
- "name": "tokenId",
278
- "type": "uint256",
279
- "internalType": "uint256"
280
- }
281
- ],
282
- "outputs": [],
283
- "stateMutability": "nonpayable"
284
- },
285
- {
286
- "type": "function",
287
- "name": "safeTransferFrom",
288
- "inputs": [
289
- {
290
- "name": "from",
291
- "type": "address",
292
- "internalType": "address"
293
- },
294
- {
295
- "name": "to",
296
- "type": "address",
297
- "internalType": "address"
298
- },
299
- {
300
- "name": "tokenId",
301
- "type": "uint256",
302
- "internalType": "uint256"
303
- },
304
- {
305
- "name": "data",
306
- "type": "bytes",
307
- "internalType": "bytes"
308
- }
309
- ],
310
- "outputs": [],
311
- "stateMutability": "nonpayable"
312
- },
313
- {
314
- "type": "function",
315
- "name": "setApprovalForAll",
316
- "inputs": [
317
- {
318
- "name": "operator",
319
- "type": "address",
320
- "internalType": "address"
321
- },
322
- {
323
- "name": "approved",
324
- "type": "bool",
325
- "internalType": "bool"
326
- }
327
- ],
328
- "outputs": [],
329
- "stateMutability": "nonpayable"
330
- },
331
- {
332
- "type": "function",
333
- "name": "supportsInterface",
334
- "inputs": [
335
- {
336
- "name": "interfaceId",
337
- "type": "bytes4",
338
- "internalType": "bytes4"
339
- }
340
- ],
341
- "outputs": [
342
- {
343
- "name": "",
344
- "type": "bool",
345
- "internalType": "bool"
346
- }
347
- ],
348
- "stateMutability": "view"
349
- },
350
- {
351
- "type": "function",
352
- "name": "symbol",
353
- "inputs": [],
354
- "outputs": [
355
- {
356
- "name": "",
357
- "type": "string",
358
- "internalType": "string"
359
- }
360
- ],
361
- "stateMutability": "view"
362
- },
363
- {
364
- "type": "function",
365
- "name": "tokenURI",
366
- "inputs": [
367
- {
368
- "name": "tokenId",
369
- "type": "uint256",
370
- "internalType": "uint256"
371
- }
372
- ],
373
- "outputs": [
374
- {
375
- "name": "",
376
- "type": "string",
377
- "internalType": "string"
378
- }
379
- ],
380
- "stateMutability": "view"
381
- },
382
- {
383
- "type": "function",
384
- "name": "transferFrom",
385
- "inputs": [
386
- {
387
- "name": "from",
388
- "type": "address",
389
- "internalType": "address"
390
- },
391
- {
392
- "name": "to",
393
- "type": "address",
394
- "internalType": "address"
395
- },
396
- {
397
- "name": "tokenId",
398
- "type": "uint256",
399
- "internalType": "uint256"
400
- }
401
- ],
402
- "outputs": [],
403
- "stateMutability": "nonpayable"
404
- },
405
- {
406
- "type": "event",
407
- "name": "Approval",
408
- "inputs": [
409
- {
410
- "name": "owner",
411
- "type": "address",
412
- "indexed": true,
413
- "internalType": "address"
414
- },
415
- {
416
- "name": "approved",
417
- "type": "address",
418
- "indexed": true,
419
- "internalType": "address"
420
- },
421
- {
422
- "name": "tokenId",
423
- "type": "uint256",
424
- "indexed": true,
425
- "internalType": "uint256"
426
- }
427
- ],
428
- "anonymous": false
429
- },
430
- {
431
- "type": "event",
432
- "name": "ApprovalForAll",
433
- "inputs": [
434
- {
435
- "name": "owner",
436
- "type": "address",
437
- "indexed": true,
438
- "internalType": "address"
439
- },
440
- {
441
- "name": "operator",
442
- "type": "address",
443
- "indexed": true,
444
- "internalType": "address"
445
- },
446
- {
447
- "name": "approved",
448
- "type": "bool",
449
- "indexed": false,
450
- "internalType": "bool"
451
- }
452
- ],
453
- "anonymous": false
454
- },
455
- {
456
- "type": "event",
457
- "name": "Transfer",
458
- "inputs": [
459
- {
460
- "name": "from",
461
- "type": "address",
462
- "indexed": true,
463
- "internalType": "address"
464
- },
465
- {
466
- "name": "to",
467
- "type": "address",
468
- "indexed": true,
469
- "internalType": "address"
470
- },
471
- {
472
- "name": "tokenId",
473
- "type": "uint256",
474
- "indexed": true,
475
- "internalType": "uint256"
476
- }
477
- ],
478
- "anonymous": false
479
- },
480
- {
481
- "type": "error",
482
- "name": "CannotTransferInactivePosition",
483
- "inputs": []
484
- },
485
- {
486
- "type": "error",
487
- "name": "ERC721IncorrectOwner",
488
- "inputs": [
489
- {
490
- "name": "sender",
491
- "type": "address",
492
- "internalType": "address"
493
- },
494
- {
495
- "name": "tokenId",
496
- "type": "uint256",
497
- "internalType": "uint256"
498
- },
499
- {
500
- "name": "owner",
501
- "type": "address",
502
- "internalType": "address"
503
- }
504
- ]
505
- },
506
- {
507
- "type": "error",
508
- "name": "ERC721InsufficientApproval",
509
- "inputs": [
510
- {
511
- "name": "operator",
512
- "type": "address",
513
- "internalType": "address"
514
- },
515
- {
516
- "name": "tokenId",
517
- "type": "uint256",
518
- "internalType": "uint256"
519
- }
520
- ]
521
- },
522
- {
523
- "type": "error",
524
- "name": "ERC721InvalidApprover",
525
- "inputs": [
526
- {
527
- "name": "approver",
528
- "type": "address",
529
- "internalType": "address"
530
- }
531
- ]
532
- },
533
- {
534
- "type": "error",
535
- "name": "ERC721InvalidOperator",
536
- "inputs": [
537
- {
538
- "name": "operator",
539
- "type": "address",
540
- "internalType": "address"
541
- }
542
- ]
543
- },
544
- {
545
- "type": "error",
546
- "name": "ERC721InvalidOwner",
547
- "inputs": [
548
- {
549
- "name": "owner",
550
- "type": "address",
551
- "internalType": "address"
552
- }
553
- ]
554
- },
555
- {
556
- "type": "error",
557
- "name": "ERC721InvalidReceiver",
558
- "inputs": [
559
- {
560
- "name": "receiver",
561
- "type": "address",
562
- "internalType": "address"
563
- }
564
- ]
565
- },
566
- {
567
- "type": "error",
568
- "name": "ERC721InvalidSender",
569
- "inputs": [
570
- {
571
- "name": "sender",
572
- "type": "address",
573
- "internalType": "address"
574
- }
575
- ]
576
- },
577
- {
578
- "type": "error",
579
- "name": "ERC721NonexistentToken",
580
- "inputs": [
581
- {
582
- "name": "tokenId",
583
- "type": "uint256",
584
- "internalType": "uint256"
585
- }
586
- ]
587
- },
588
- {
589
- "type": "error",
590
- "name": "IntentRegistryEnforcedPause",
591
- "inputs": []
592
- },
593
- {
594
- "type": "error",
595
- "name": "LoanManagerEnforcedPause",
596
- "inputs": []
597
- },
598
- {
599
- "type": "error",
600
- "name": "MarketEnforcedPause",
601
- "inputs": [
602
- {
603
- "name": "market",
604
- "type": "address",
605
- "internalType": "address"
606
- }
607
- ]
608
- },
609
- {
610
- "type": "error",
611
- "name": "MarketFeatureEnforcedPause",
612
- "inputs": [
613
- {
614
- "name": "market",
615
- "type": "address",
616
- "internalType": "address"
617
- },
618
- {
619
- "name": "feature",
620
- "type": "uint8",
621
- "internalType": "uint8"
622
- }
623
- ]
624
- },
625
- {
626
- "type": "error",
627
- "name": "MatchingEngineEnforcedPause",
628
- "inputs": []
629
- },
630
- {
631
- "type": "error",
632
- "name": "PositionNearMaturity",
633
- "inputs": []
634
- },
635
- {
636
- "type": "error",
637
- "name": "SecondaryMarketEnforcedPause",
638
- "inputs": []
639
- },
640
- {
641
- "type": "error",
642
- "name": "Unauthorized",
643
- "inputs": []
644
- },
645
- {
646
- "type": "error",
647
- "name": "ZeroAddress",
648
- "inputs": []
649
- }
650
- ]