@wildcatfi/wildcat-sdk 3.0.61-beta → 3.0.62-beta

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 (37) hide show
  1. package/dist/constants.d.ts +3 -1
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.js +7 -2
  4. package/dist/constants.js.map +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/typechain/Wildcat4626Wrapper.d.ts +427 -0
  10. package/dist/typechain/Wildcat4626Wrapper.d.ts.map +1 -0
  11. package/dist/typechain/Wildcat4626Wrapper.js +3 -0
  12. package/dist/typechain/Wildcat4626Wrapper.js.map +1 -0
  13. package/dist/typechain/Wildcat4626WrapperFactory.d.ts +83 -0
  14. package/dist/typechain/Wildcat4626WrapperFactory.d.ts.map +1 -0
  15. package/dist/typechain/Wildcat4626WrapperFactory.js +3 -0
  16. package/dist/typechain/Wildcat4626WrapperFactory.js.map +1 -0
  17. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.d.ts +82 -0
  18. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.d.ts.map +1 -0
  19. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.js +117 -0
  20. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.js.map +1 -0
  21. package/dist/typechain/factories/Wildcat4626Wrapper__factory.d.ts +586 -0
  22. package/dist/typechain/factories/Wildcat4626Wrapper__factory.d.ts.map +1 -0
  23. package/dist/typechain/factories/Wildcat4626Wrapper__factory.js +777 -0
  24. package/dist/typechain/factories/Wildcat4626Wrapper__factory.js.map +1 -0
  25. package/dist/typechain/factories/index.d.ts +2 -0
  26. package/dist/typechain/factories/index.d.ts.map +1 -1
  27. package/dist/typechain/factories/index.js +5 -1
  28. package/dist/typechain/factories/index.js.map +1 -1
  29. package/dist/typechain/index.d.ts +4 -0
  30. package/dist/typechain/index.d.ts.map +1 -1
  31. package/dist/typechain/index.js +5 -1
  32. package/dist/typechain/index.js.map +1 -1
  33. package/dist/wrapper/index.d.ts +76 -0
  34. package/dist/wrapper/index.d.ts.map +1 -0
  35. package/dist/wrapper/index.js +218 -0
  36. package/dist/wrapper/index.js.map +1 -0
  37. package/package.json +1 -1
@@ -0,0 +1,777 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Wildcat4626Wrapper__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "CannotSweepMarketAsset",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [],
16
+ name: "CapExceeded",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [],
21
+ name: "NotMarketOwner",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [
26
+ {
27
+ internalType: "address",
28
+ name: "account",
29
+ type: "address",
30
+ },
31
+ ],
32
+ name: "SanctionedAccount",
33
+ type: "error",
34
+ },
35
+ {
36
+ inputs: [
37
+ {
38
+ internalType: "uint256",
39
+ name: "expected",
40
+ type: "uint256",
41
+ },
42
+ {
43
+ internalType: "uint256",
44
+ name: "actual",
45
+ type: "uint256",
46
+ },
47
+ ],
48
+ name: "SharesMismatch",
49
+ type: "error",
50
+ },
51
+ {
52
+ inputs: [],
53
+ name: "ZeroAddress",
54
+ type: "error",
55
+ },
56
+ {
57
+ inputs: [],
58
+ name: "ZeroAssets",
59
+ type: "error",
60
+ },
61
+ {
62
+ inputs: [],
63
+ name: "ZeroShares",
64
+ type: "error",
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: true,
71
+ internalType: "address",
72
+ name: "owner",
73
+ type: "address",
74
+ },
75
+ {
76
+ indexed: true,
77
+ internalType: "address",
78
+ name: "spender",
79
+ type: "address",
80
+ },
81
+ {
82
+ indexed: false,
83
+ internalType: "uint256",
84
+ name: "amount",
85
+ type: "uint256",
86
+ },
87
+ ],
88
+ name: "Approval",
89
+ type: "event",
90
+ },
91
+ {
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ indexed: true,
96
+ internalType: "address",
97
+ name: "caller",
98
+ type: "address",
99
+ },
100
+ {
101
+ indexed: true,
102
+ internalType: "address",
103
+ name: "owner",
104
+ type: "address",
105
+ },
106
+ {
107
+ indexed: false,
108
+ internalType: "uint256",
109
+ name: "assets",
110
+ type: "uint256",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "uint256",
115
+ name: "shares",
116
+ type: "uint256",
117
+ },
118
+ ],
119
+ name: "Deposit",
120
+ type: "event",
121
+ },
122
+ {
123
+ anonymous: false,
124
+ inputs: [
125
+ {
126
+ indexed: true,
127
+ internalType: "address",
128
+ name: "token",
129
+ type: "address",
130
+ },
131
+ {
132
+ indexed: true,
133
+ internalType: "address",
134
+ name: "to",
135
+ type: "address",
136
+ },
137
+ {
138
+ indexed: false,
139
+ internalType: "uint256",
140
+ name: "amount",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ name: "TokensSwept",
145
+ type: "event",
146
+ },
147
+ {
148
+ anonymous: false,
149
+ inputs: [
150
+ {
151
+ indexed: true,
152
+ internalType: "address",
153
+ name: "from",
154
+ type: "address",
155
+ },
156
+ {
157
+ indexed: true,
158
+ internalType: "address",
159
+ name: "to",
160
+ type: "address",
161
+ },
162
+ {
163
+ indexed: false,
164
+ internalType: "uint256",
165
+ name: "amount",
166
+ type: "uint256",
167
+ },
168
+ ],
169
+ name: "Transfer",
170
+ type: "event",
171
+ },
172
+ {
173
+ anonymous: false,
174
+ inputs: [
175
+ {
176
+ indexed: true,
177
+ internalType: "address",
178
+ name: "caller",
179
+ type: "address",
180
+ },
181
+ {
182
+ indexed: true,
183
+ internalType: "address",
184
+ name: "receiver",
185
+ type: "address",
186
+ },
187
+ {
188
+ indexed: true,
189
+ internalType: "address",
190
+ name: "owner",
191
+ type: "address",
192
+ },
193
+ {
194
+ indexed: false,
195
+ internalType: "uint256",
196
+ name: "assets",
197
+ type: "uint256",
198
+ },
199
+ {
200
+ indexed: false,
201
+ internalType: "uint256",
202
+ name: "shares",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ name: "Withdraw",
207
+ type: "event",
208
+ },
209
+ {
210
+ inputs: [
211
+ {
212
+ internalType: "address",
213
+ name: "owner",
214
+ type: "address",
215
+ },
216
+ {
217
+ internalType: "address",
218
+ name: "spender",
219
+ type: "address",
220
+ },
221
+ ],
222
+ name: "allowance",
223
+ outputs: [
224
+ {
225
+ internalType: "uint256",
226
+ name: "",
227
+ type: "uint256",
228
+ },
229
+ ],
230
+ stateMutability: "view",
231
+ type: "function",
232
+ },
233
+ {
234
+ inputs: [
235
+ {
236
+ internalType: "address",
237
+ name: "spender",
238
+ type: "address",
239
+ },
240
+ {
241
+ internalType: "uint256",
242
+ name: "amount",
243
+ type: "uint256",
244
+ },
245
+ ],
246
+ name: "approve",
247
+ outputs: [
248
+ {
249
+ internalType: "bool",
250
+ name: "",
251
+ type: "bool",
252
+ },
253
+ ],
254
+ stateMutability: "nonpayable",
255
+ type: "function",
256
+ },
257
+ {
258
+ inputs: [],
259
+ name: "asset",
260
+ outputs: [
261
+ {
262
+ internalType: "address",
263
+ name: "",
264
+ type: "address",
265
+ },
266
+ ],
267
+ stateMutability: "view",
268
+ type: "function",
269
+ },
270
+ {
271
+ inputs: [],
272
+ name: "assetsPerShareRay",
273
+ outputs: [
274
+ {
275
+ internalType: "uint256",
276
+ name: "",
277
+ type: "uint256",
278
+ },
279
+ ],
280
+ stateMutability: "view",
281
+ type: "function",
282
+ },
283
+ {
284
+ inputs: [
285
+ {
286
+ internalType: "address",
287
+ name: "account",
288
+ type: "address",
289
+ },
290
+ ],
291
+ name: "balanceOf",
292
+ outputs: [
293
+ {
294
+ internalType: "uint256",
295
+ name: "",
296
+ type: "uint256",
297
+ },
298
+ ],
299
+ stateMutability: "view",
300
+ type: "function",
301
+ },
302
+ {
303
+ inputs: [
304
+ {
305
+ internalType: "uint256",
306
+ name: "shares",
307
+ type: "uint256",
308
+ },
309
+ ],
310
+ name: "convertToAssets",
311
+ outputs: [
312
+ {
313
+ internalType: "uint256",
314
+ name: "",
315
+ type: "uint256",
316
+ },
317
+ ],
318
+ stateMutability: "view",
319
+ type: "function",
320
+ },
321
+ {
322
+ inputs: [
323
+ {
324
+ internalType: "uint256",
325
+ name: "assets",
326
+ type: "uint256",
327
+ },
328
+ ],
329
+ name: "convertToShares",
330
+ outputs: [
331
+ {
332
+ internalType: "uint256",
333
+ name: "",
334
+ type: "uint256",
335
+ },
336
+ ],
337
+ stateMutability: "view",
338
+ type: "function",
339
+ },
340
+ {
341
+ inputs: [],
342
+ name: "decimals",
343
+ outputs: [
344
+ {
345
+ internalType: "uint8",
346
+ name: "",
347
+ type: "uint8",
348
+ },
349
+ ],
350
+ stateMutability: "view",
351
+ type: "function",
352
+ },
353
+ {
354
+ inputs: [
355
+ {
356
+ internalType: "uint256",
357
+ name: "assets",
358
+ type: "uint256",
359
+ },
360
+ {
361
+ internalType: "address",
362
+ name: "receiver",
363
+ type: "address",
364
+ },
365
+ ],
366
+ name: "deposit",
367
+ outputs: [
368
+ {
369
+ internalType: "uint256",
370
+ name: "shares",
371
+ type: "uint256",
372
+ },
373
+ ],
374
+ stateMutability: "nonpayable",
375
+ type: "function",
376
+ },
377
+ {
378
+ inputs: [],
379
+ name: "market",
380
+ outputs: [
381
+ {
382
+ internalType: "address",
383
+ name: "",
384
+ type: "address",
385
+ },
386
+ ],
387
+ stateMutability: "view",
388
+ type: "function",
389
+ },
390
+ {
391
+ inputs: [
392
+ {
393
+ internalType: "address",
394
+ name: "receiver",
395
+ type: "address",
396
+ },
397
+ ],
398
+ name: "maxDeposit",
399
+ outputs: [
400
+ {
401
+ internalType: "uint256",
402
+ name: "",
403
+ type: "uint256",
404
+ },
405
+ ],
406
+ stateMutability: "view",
407
+ type: "function",
408
+ },
409
+ {
410
+ inputs: [
411
+ {
412
+ internalType: "address",
413
+ name: "receiver",
414
+ type: "address",
415
+ },
416
+ ],
417
+ name: "maxMint",
418
+ outputs: [
419
+ {
420
+ internalType: "uint256",
421
+ name: "",
422
+ type: "uint256",
423
+ },
424
+ ],
425
+ stateMutability: "view",
426
+ type: "function",
427
+ },
428
+ {
429
+ inputs: [
430
+ {
431
+ internalType: "address",
432
+ name: "owner",
433
+ type: "address",
434
+ },
435
+ ],
436
+ name: "maxRedeem",
437
+ outputs: [
438
+ {
439
+ internalType: "uint256",
440
+ name: "",
441
+ type: "uint256",
442
+ },
443
+ ],
444
+ stateMutability: "view",
445
+ type: "function",
446
+ },
447
+ {
448
+ inputs: [
449
+ {
450
+ internalType: "address",
451
+ name: "owner",
452
+ type: "address",
453
+ },
454
+ ],
455
+ name: "maxWithdraw",
456
+ outputs: [
457
+ {
458
+ internalType: "uint256",
459
+ name: "",
460
+ type: "uint256",
461
+ },
462
+ ],
463
+ stateMutability: "view",
464
+ type: "function",
465
+ },
466
+ {
467
+ inputs: [
468
+ {
469
+ internalType: "uint256",
470
+ name: "shares",
471
+ type: "uint256",
472
+ },
473
+ {
474
+ internalType: "address",
475
+ name: "receiver",
476
+ type: "address",
477
+ },
478
+ ],
479
+ name: "mint",
480
+ outputs: [
481
+ {
482
+ internalType: "uint256",
483
+ name: "assets",
484
+ type: "uint256",
485
+ },
486
+ ],
487
+ stateMutability: "nonpayable",
488
+ type: "function",
489
+ },
490
+ {
491
+ inputs: [],
492
+ name: "name",
493
+ outputs: [
494
+ {
495
+ internalType: "string",
496
+ name: "",
497
+ type: "string",
498
+ },
499
+ ],
500
+ stateMutability: "view",
501
+ type: "function",
502
+ },
503
+ {
504
+ inputs: [
505
+ {
506
+ internalType: "uint256",
507
+ name: "assets",
508
+ type: "uint256",
509
+ },
510
+ ],
511
+ name: "previewDeposit",
512
+ outputs: [
513
+ {
514
+ internalType: "uint256",
515
+ name: "",
516
+ type: "uint256",
517
+ },
518
+ ],
519
+ stateMutability: "view",
520
+ type: "function",
521
+ },
522
+ {
523
+ inputs: [
524
+ {
525
+ internalType: "uint256",
526
+ name: "shares",
527
+ type: "uint256",
528
+ },
529
+ ],
530
+ name: "previewMint",
531
+ outputs: [
532
+ {
533
+ internalType: "uint256",
534
+ name: "",
535
+ type: "uint256",
536
+ },
537
+ ],
538
+ stateMutability: "view",
539
+ type: "function",
540
+ },
541
+ {
542
+ inputs: [
543
+ {
544
+ internalType: "uint256",
545
+ name: "shares",
546
+ type: "uint256",
547
+ },
548
+ ],
549
+ name: "previewRedeem",
550
+ outputs: [
551
+ {
552
+ internalType: "uint256",
553
+ name: "",
554
+ type: "uint256",
555
+ },
556
+ ],
557
+ stateMutability: "view",
558
+ type: "function",
559
+ },
560
+ {
561
+ inputs: [
562
+ {
563
+ internalType: "uint256",
564
+ name: "assets",
565
+ type: "uint256",
566
+ },
567
+ ],
568
+ name: "previewWithdraw",
569
+ outputs: [
570
+ {
571
+ internalType: "uint256",
572
+ name: "",
573
+ type: "uint256",
574
+ },
575
+ ],
576
+ stateMutability: "view",
577
+ type: "function",
578
+ },
579
+ {
580
+ inputs: [
581
+ {
582
+ internalType: "uint256",
583
+ name: "shares",
584
+ type: "uint256",
585
+ },
586
+ {
587
+ internalType: "address",
588
+ name: "receiver",
589
+ type: "address",
590
+ },
591
+ {
592
+ internalType: "address",
593
+ name: "owner",
594
+ type: "address",
595
+ },
596
+ ],
597
+ name: "redeem",
598
+ outputs: [
599
+ {
600
+ internalType: "uint256",
601
+ name: "assets",
602
+ type: "uint256",
603
+ },
604
+ ],
605
+ stateMutability: "nonpayable",
606
+ type: "function",
607
+ },
608
+ {
609
+ inputs: [],
610
+ name: "sharesPerAssetRay",
611
+ outputs: [
612
+ {
613
+ internalType: "uint256",
614
+ name: "",
615
+ type: "uint256",
616
+ },
617
+ ],
618
+ stateMutability: "view",
619
+ type: "function",
620
+ },
621
+ {
622
+ inputs: [
623
+ {
624
+ internalType: "address",
625
+ name: "token",
626
+ type: "address",
627
+ },
628
+ {
629
+ internalType: "address",
630
+ name: "to",
631
+ type: "address",
632
+ },
633
+ ],
634
+ name: "sweep",
635
+ outputs: [
636
+ {
637
+ internalType: "uint256",
638
+ name: "amount",
639
+ type: "uint256",
640
+ },
641
+ ],
642
+ stateMutability: "nonpayable",
643
+ type: "function",
644
+ },
645
+ {
646
+ inputs: [],
647
+ name: "symbol",
648
+ outputs: [
649
+ {
650
+ internalType: "string",
651
+ name: "",
652
+ type: "string",
653
+ },
654
+ ],
655
+ stateMutability: "view",
656
+ type: "function",
657
+ },
658
+ {
659
+ inputs: [],
660
+ name: "totalAssets",
661
+ outputs: [
662
+ {
663
+ internalType: "uint256",
664
+ name: "",
665
+ type: "uint256",
666
+ },
667
+ ],
668
+ stateMutability: "view",
669
+ type: "function",
670
+ },
671
+ {
672
+ inputs: [],
673
+ name: "totalSupply",
674
+ outputs: [
675
+ {
676
+ internalType: "uint256",
677
+ name: "",
678
+ type: "uint256",
679
+ },
680
+ ],
681
+ stateMutability: "view",
682
+ type: "function",
683
+ },
684
+ {
685
+ inputs: [
686
+ {
687
+ internalType: "address",
688
+ name: "recipient",
689
+ type: "address",
690
+ },
691
+ {
692
+ internalType: "uint256",
693
+ name: "amount",
694
+ type: "uint256",
695
+ },
696
+ ],
697
+ name: "transfer",
698
+ outputs: [
699
+ {
700
+ internalType: "bool",
701
+ name: "",
702
+ type: "bool",
703
+ },
704
+ ],
705
+ stateMutability: "nonpayable",
706
+ type: "function",
707
+ },
708
+ {
709
+ inputs: [
710
+ {
711
+ internalType: "address",
712
+ name: "sender",
713
+ type: "address",
714
+ },
715
+ {
716
+ internalType: "address",
717
+ name: "recipient",
718
+ type: "address",
719
+ },
720
+ {
721
+ internalType: "uint256",
722
+ name: "amount",
723
+ type: "uint256",
724
+ },
725
+ ],
726
+ name: "transferFrom",
727
+ outputs: [
728
+ {
729
+ internalType: "bool",
730
+ name: "",
731
+ type: "bool",
732
+ },
733
+ ],
734
+ stateMutability: "nonpayable",
735
+ type: "function",
736
+ },
737
+ {
738
+ inputs: [
739
+ {
740
+ internalType: "uint256",
741
+ name: "assets",
742
+ type: "uint256",
743
+ },
744
+ {
745
+ internalType: "address",
746
+ name: "receiver",
747
+ type: "address",
748
+ },
749
+ {
750
+ internalType: "address",
751
+ name: "owner",
752
+ type: "address",
753
+ },
754
+ ],
755
+ name: "withdraw",
756
+ outputs: [
757
+ {
758
+ internalType: "uint256",
759
+ name: "shares",
760
+ type: "uint256",
761
+ },
762
+ ],
763
+ stateMutability: "nonpayable",
764
+ type: "function",
765
+ },
766
+ ];
767
+ class Wildcat4626Wrapper__factory {
768
+ static createInterface() {
769
+ return new ethers_1.utils.Interface(_abi);
770
+ }
771
+ static connect(address, signerOrProvider) {
772
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
773
+ }
774
+ }
775
+ Wildcat4626Wrapper__factory.abi = _abi;
776
+ exports.Wildcat4626Wrapper__factory = Wildcat4626Wrapper__factory;
777
+ //# sourceMappingURL=Wildcat4626Wrapper__factory.js.map