@sonarwatch/portfolio-plugins 0.12.53 → 0.12.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +8 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/allbridge/positionsFetcher.js +1 -1
  6. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  7. package/src/plugins/echelon/constants.d.ts +10 -0
  8. package/src/plugins/echelon/constants.js +20 -0
  9. package/src/plugins/echelon/constants.js.map +1 -0
  10. package/src/plugins/echelon/depositsFetcher.d.ts +3 -0
  11. package/src/plugins/echelon/depositsFetcher.js +178 -0
  12. package/src/plugins/echelon/depositsFetcher.js.map +1 -0
  13. package/src/plugins/echelon/helpers.d.ts +1 -0
  14. package/src/plugins/echelon/helpers.js +39 -0
  15. package/src/plugins/echelon/helpers.js.map +1 -0
  16. package/src/plugins/echelon/index.d.ts +6 -0
  17. package/src/plugins/echelon/index.js +13 -0
  18. package/src/plugins/echelon/index.js.map +1 -0
  19. package/src/plugins/echelon/marketsJob.d.ts +3 -0
  20. package/src/plugins/echelon/marketsJob.js +80 -0
  21. package/src/plugins/echelon/marketsJob.js.map +1 -0
  22. package/src/plugins/echelon/types.d.ts +78 -0
  23. package/src/plugins/echelon/types.js +3 -0
  24. package/src/plugins/echelon/types.js.map +1 -0
  25. package/src/plugins/famousfoxfederation/constants.d.ts +13 -0
  26. package/src/plugins/famousfoxfederation/constants.js +32 -0
  27. package/src/plugins/famousfoxfederation/constants.js.map +1 -0
  28. package/src/plugins/famousfoxfederation/helpers.d.ts +2 -0
  29. package/src/plugins/famousfoxfederation/helpers.js +11 -0
  30. package/src/plugins/famousfoxfederation/helpers.js.map +1 -0
  31. package/src/plugins/famousfoxfederation/index.d.ts +6 -0
  32. package/src/plugins/famousfoxfederation/index.js +14 -0
  33. package/src/plugins/famousfoxfederation/index.js.map +1 -0
  34. package/src/plugins/famousfoxfederation/stakingFetcher.d.ts +3 -0
  35. package/src/plugins/famousfoxfederation/stakingFetcher.js +70 -0
  36. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -0
  37. package/src/plugins/famousfoxfederation/stakingIdl.d.ts +31 -0
  38. package/src/plugins/famousfoxfederation/stakingIdl.js +226 -0
  39. package/src/plugins/famousfoxfederation/stakingIdl.js.map +1 -0
  40. package/src/plugins/famousfoxfederation/stakingJob.d.ts +3 -0
  41. package/src/plugins/famousfoxfederation/stakingJob.js +30 -0
  42. package/src/plugins/famousfoxfederation/stakingJob.js.map +1 -0
  43. package/src/plugins/famousfoxfederation/tokenMarketFetcher.d.ts +3 -0
  44. package/src/plugins/famousfoxfederation/tokenMarketFetcher.js +59 -0
  45. package/src/plugins/famousfoxfederation/tokenMarketFetcher.js.map +1 -0
  46. package/src/plugins/famousfoxfederation/tokenMarketIdl.d.ts +45 -0
  47. package/src/plugins/famousfoxfederation/tokenMarketIdl.js +792 -0
  48. package/src/plugins/famousfoxfederation/tokenMarketIdl.js.map +1 -0
  49. package/src/plugins/famousfoxfederation/types.d.ts +25 -0
  50. package/src/plugins/famousfoxfederation/types.js +3 -0
  51. package/src/plugins/famousfoxfederation/types.js.map +1 -0
  52. package/src/plugins/nxfinance/constants.d.ts +1 -0
  53. package/src/plugins/nxfinance/constants.js +2 -1
  54. package/src/plugins/nxfinance/constants.js.map +1 -1
  55. package/src/plugins/nxfinance/helpers.d.ts +4 -0
  56. package/src/plugins/nxfinance/helpers.js +52 -0
  57. package/src/plugins/nxfinance/helpers.js.map +1 -0
  58. package/src/plugins/nxfinance/positionsFetcher.js +57 -12
  59. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  60. package/src/plugins/nxfinance/types.d.ts +17 -0
  61. package/src/utils/solana/das/heliusAssetToAssetCollectible.js +1 -1
  62. package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
  63. package/src/utils/solana/das/heliusAssetToAssetToken.d.ts +6 -0
  64. package/src/utils/solana/das/heliusAssetToAssetToken.js +27 -0
  65. package/src/utils/solana/das/heliusAssetToAssetToken.js.map +1 -0
  66. package/src/utils/solana/mintsToAssets.d.ts +3 -0
  67. package/src/utils/solana/mintsToAssets.js +58 -0
  68. package/src/utils/solana/mintsToAssets.js.map +1 -0
  69. package/src/plugins/nxfinance/structs.d.ts +0 -19
  70. package/src/plugins/nxfinance/structs.js +0 -22
  71. package/src/plugins/nxfinance/structs.js.map +0 -1
@@ -0,0 +1,792 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tokenMarketIdl = void 0;
4
+ exports.tokenMarketIdl = {
5
+ version: '0.1.0',
6
+ name: 'wlmarket',
7
+ instructions: [
8
+ {
9
+ name: 'addItem',
10
+ accounts: [
11
+ {
12
+ name: 'item',
13
+ isMut: !0,
14
+ isSigner: !1,
15
+ },
16
+ {
17
+ name: 'owner',
18
+ isMut: !0,
19
+ isSigner: !0,
20
+ },
21
+ {
22
+ name: 'mint',
23
+ isMut: !1,
24
+ isSigner: !1,
25
+ },
26
+ {
27
+ name: 'systemProgram',
28
+ isMut: !1,
29
+ isSigner: !1,
30
+ },
31
+ ],
32
+ args: [
33
+ {
34
+ name: 'bump',
35
+ type: 'u8',
36
+ },
37
+ {
38
+ name: 'foxy',
39
+ type: 'bool',
40
+ },
41
+ ],
42
+ },
43
+ {
44
+ name: 'updateItem',
45
+ accounts: [
46
+ {
47
+ name: 'item',
48
+ isMut: !0,
49
+ isSigner: !1,
50
+ },
51
+ {
52
+ name: 'owner',
53
+ isMut: !0,
54
+ isSigner: !0,
55
+ },
56
+ {
57
+ name: 'mint',
58
+ isMut: !1,
59
+ isSigner: !1,
60
+ },
61
+ ],
62
+ args: [
63
+ {
64
+ name: 'cost',
65
+ type: 'u64',
66
+ },
67
+ ],
68
+ },
69
+ {
70
+ name: 'listItem',
71
+ accounts: [
72
+ {
73
+ name: 'item',
74
+ isMut: !0,
75
+ isSigner: !1,
76
+ },
77
+ {
78
+ name: 'owner',
79
+ isMut: !0,
80
+ isSigner: !0,
81
+ },
82
+ {
83
+ name: 'mint',
84
+ isMut: !1,
85
+ isSigner: !1,
86
+ },
87
+ {
88
+ name: 'mintAccount',
89
+ isMut: !0,
90
+ isSigner: !1,
91
+ },
92
+ {
93
+ name: 'mintMarketAccount',
94
+ isMut: !0,
95
+ isSigner: !1,
96
+ },
97
+ {
98
+ name: 'associatedTokenProgram',
99
+ isMut: !1,
100
+ isSigner: !1,
101
+ },
102
+ {
103
+ name: 'tokenProgram',
104
+ isMut: !1,
105
+ isSigner: !1,
106
+ },
107
+ {
108
+ name: 'systemProgram',
109
+ isMut: !1,
110
+ isSigner: !1,
111
+ },
112
+ {
113
+ name: 'rent',
114
+ isMut: !1,
115
+ isSigner: !1,
116
+ },
117
+ ],
118
+ args: [
119
+ {
120
+ name: 'amount',
121
+ type: 'u64',
122
+ },
123
+ {
124
+ name: 'cost',
125
+ type: 'u64',
126
+ },
127
+ ],
128
+ },
129
+ {
130
+ name: 'delistItem',
131
+ accounts: [
132
+ {
133
+ name: 'item',
134
+ isMut: !0,
135
+ isSigner: !1,
136
+ },
137
+ {
138
+ name: 'owner',
139
+ isMut: !0,
140
+ isSigner: !0,
141
+ },
142
+ {
143
+ name: 'mint',
144
+ isMut: !0,
145
+ isSigner: !1,
146
+ },
147
+ {
148
+ name: 'mintAccount',
149
+ isMut: !0,
150
+ isSigner: !1,
151
+ },
152
+ {
153
+ name: 'mintMarketAccount',
154
+ isMut: !0,
155
+ isSigner: !1,
156
+ },
157
+ {
158
+ name: 'associatedTokenProgram',
159
+ isMut: !1,
160
+ isSigner: !1,
161
+ },
162
+ {
163
+ name: 'tokenProgram',
164
+ isMut: !1,
165
+ isSigner: !1,
166
+ },
167
+ {
168
+ name: 'systemProgram',
169
+ isMut: !1,
170
+ isSigner: !1,
171
+ },
172
+ {
173
+ name: 'rent',
174
+ isMut: !1,
175
+ isSigner: !1,
176
+ },
177
+ ],
178
+ args: [],
179
+ },
180
+ {
181
+ name: 'closeItem',
182
+ accounts: [
183
+ {
184
+ name: 'item',
185
+ isMut: !0,
186
+ isSigner: !1,
187
+ },
188
+ {
189
+ name: 'owner',
190
+ isMut: !0,
191
+ isSigner: !1,
192
+ },
193
+ {
194
+ name: 'signer',
195
+ isMut: !1,
196
+ isSigner: !0,
197
+ },
198
+ {
199
+ name: 'mint',
200
+ isMut: !0,
201
+ isSigner: !1,
202
+ },
203
+ ],
204
+ args: [],
205
+ },
206
+ {
207
+ name: 'buyItem',
208
+ accounts: [
209
+ {
210
+ name: 'item',
211
+ isMut: !0,
212
+ isSigner: !1,
213
+ },
214
+ {
215
+ name: 'signer',
216
+ isMut: !0,
217
+ isSigner: !0,
218
+ },
219
+ {
220
+ name: 'owner',
221
+ isMut: !0,
222
+ isSigner: !1,
223
+ },
224
+ {
225
+ name: 'mint',
226
+ isMut: !1,
227
+ isSigner: !1,
228
+ },
229
+ {
230
+ name: 'payment',
231
+ isMut: !0,
232
+ isSigner: !1,
233
+ },
234
+ {
235
+ name: 'mintMarketAccount',
236
+ isMut: !0,
237
+ isSigner: !1,
238
+ },
239
+ {
240
+ name: 'mintUserAccount',
241
+ isMut: !0,
242
+ isSigner: !1,
243
+ },
244
+ {
245
+ name: 'foxy',
246
+ isMut: !0,
247
+ isSigner: !1,
248
+ },
249
+ {
250
+ name: 'sellerFoxyAccount',
251
+ isMut: !0,
252
+ isSigner: !1,
253
+ isOptional: !0,
254
+ },
255
+ {
256
+ name: 'buyerFoxyAccount',
257
+ isMut: !0,
258
+ isSigner: !1,
259
+ },
260
+ {
261
+ name: 'associatedTokenProgram',
262
+ isMut: !1,
263
+ isSigner: !1,
264
+ },
265
+ {
266
+ name: 'tokenProgram',
267
+ isMut: !1,
268
+ isSigner: !1,
269
+ },
270
+ {
271
+ name: 'systemProgram',
272
+ isMut: !1,
273
+ isSigner: !1,
274
+ },
275
+ {
276
+ name: 'rent',
277
+ isMut: !1,
278
+ isSigner: !1,
279
+ },
280
+ ],
281
+ args: [
282
+ {
283
+ name: 'amount',
284
+ type: 'u64',
285
+ },
286
+ {
287
+ name: 'price',
288
+ type: 'u64',
289
+ },
290
+ ],
291
+ },
292
+ {
293
+ name: 'kickItem',
294
+ accounts: [
295
+ {
296
+ name: 'item',
297
+ isMut: !0,
298
+ isSigner: !1,
299
+ },
300
+ {
301
+ name: 'authority',
302
+ isMut: !0,
303
+ isSigner: !0,
304
+ },
305
+ {
306
+ name: 'owner',
307
+ isMut: !0,
308
+ isSigner: !1,
309
+ },
310
+ {
311
+ name: 'mint',
312
+ isMut: !0,
313
+ isSigner: !1,
314
+ },
315
+ {
316
+ name: 'mintAccount',
317
+ isMut: !0,
318
+ isSigner: !1,
319
+ },
320
+ {
321
+ name: 'mintMarketAccount',
322
+ isMut: !0,
323
+ isSigner: !1,
324
+ },
325
+ {
326
+ name: 'associatedTokenProgram',
327
+ isMut: !1,
328
+ isSigner: !1,
329
+ },
330
+ {
331
+ name: 'tokenProgram',
332
+ isMut: !1,
333
+ isSigner: !1,
334
+ },
335
+ {
336
+ name: 'systemProgram',
337
+ isMut: !1,
338
+ isSigner: !1,
339
+ },
340
+ {
341
+ name: 'rent',
342
+ isMut: !1,
343
+ isSigner: !1,
344
+ },
345
+ ],
346
+ args: [],
347
+ },
348
+ {
349
+ name: 'createOrder',
350
+ accounts: [
351
+ {
352
+ name: 'order',
353
+ isMut: !0,
354
+ isSigner: !1,
355
+ },
356
+ {
357
+ name: 'owner',
358
+ isMut: !0,
359
+ isSigner: !0,
360
+ },
361
+ {
362
+ name: 'mint',
363
+ isMut: !1,
364
+ isSigner: !1,
365
+ },
366
+ {
367
+ name: 'systemProgram',
368
+ isMut: !1,
369
+ isSigner: !1,
370
+ },
371
+ {
372
+ name: 'rent',
373
+ isMut: !1,
374
+ isSigner: !1,
375
+ },
376
+ ],
377
+ args: [
378
+ {
379
+ name: 'bump',
380
+ type: 'u8',
381
+ },
382
+ {
383
+ name: 'cost',
384
+ type: 'u64',
385
+ },
386
+ {
387
+ name: 'amount',
388
+ type: 'u64',
389
+ },
390
+ {
391
+ name: 'foxy',
392
+ type: 'bool',
393
+ },
394
+ {
395
+ name: 'expiry',
396
+ type: 'u64',
397
+ },
398
+ ],
399
+ },
400
+ {
401
+ name: 'cancelOrder',
402
+ accounts: [
403
+ {
404
+ name: 'order',
405
+ isMut: !0,
406
+ isSigner: !1,
407
+ },
408
+ {
409
+ name: 'mint',
410
+ isMut: !1,
411
+ isSigner: !1,
412
+ },
413
+ {
414
+ name: 'owner',
415
+ isMut: !0,
416
+ isSigner: !0,
417
+ },
418
+ ],
419
+ args: [],
420
+ },
421
+ {
422
+ name: 'updateOrder',
423
+ accounts: [
424
+ {
425
+ name: 'order',
426
+ isMut: !0,
427
+ isSigner: !1,
428
+ },
429
+ {
430
+ name: 'mint',
431
+ isMut: !1,
432
+ isSigner: !1,
433
+ },
434
+ {
435
+ name: 'owner',
436
+ isMut: !0,
437
+ isSigner: !0,
438
+ },
439
+ {
440
+ name: 'systemProgram',
441
+ isMut: !1,
442
+ isSigner: !1,
443
+ },
444
+ ],
445
+ args: [
446
+ {
447
+ name: 'amount',
448
+ type: 'u64',
449
+ },
450
+ {
451
+ name: 'cost',
452
+ type: 'u64',
453
+ },
454
+ {
455
+ name: 'expiry',
456
+ type: 'u64',
457
+ },
458
+ ],
459
+ },
460
+ {
461
+ name: 'fillOrder',
462
+ accounts: [
463
+ {
464
+ name: 'order',
465
+ isMut: !0,
466
+ isSigner: !1,
467
+ },
468
+ {
469
+ name: 'mint',
470
+ isMut: !1,
471
+ isSigner: !1,
472
+ },
473
+ {
474
+ name: 'owner',
475
+ isMut: !0,
476
+ isSigner: !1,
477
+ },
478
+ {
479
+ name: 'seller',
480
+ isMut: !0,
481
+ isSigner: !0,
482
+ },
483
+ {
484
+ name: 'sellerAccount',
485
+ isMut: !0,
486
+ isSigner: !1,
487
+ },
488
+ {
489
+ name: 'buyerAccount',
490
+ isMut: !0,
491
+ isSigner: !1,
492
+ },
493
+ {
494
+ name: 'payment',
495
+ isMut: !0,
496
+ isSigner: !1,
497
+ },
498
+ {
499
+ name: 'associatedTokenProgram',
500
+ isMut: !1,
501
+ isSigner: !1,
502
+ },
503
+ {
504
+ name: 'tokenProgram',
505
+ isMut: !1,
506
+ isSigner: !1,
507
+ },
508
+ {
509
+ name: 'systemProgram',
510
+ isMut: !1,
511
+ isSigner: !1,
512
+ },
513
+ {
514
+ name: 'rent',
515
+ isMut: !1,
516
+ isSigner: !1,
517
+ },
518
+ ],
519
+ args: [
520
+ {
521
+ name: 'amount',
522
+ type: 'u64',
523
+ },
524
+ {
525
+ name: 'price',
526
+ type: 'u64',
527
+ },
528
+ ],
529
+ },
530
+ {
531
+ name: 'closeOrder',
532
+ accounts: [
533
+ {
534
+ name: 'order',
535
+ isMut: !0,
536
+ isSigner: !1,
537
+ },
538
+ {
539
+ name: 'mint',
540
+ isMut: !1,
541
+ isSigner: !1,
542
+ },
543
+ {
544
+ name: 'owner',
545
+ isMut: !0,
546
+ isSigner: !1,
547
+ },
548
+ {
549
+ name: 'signer',
550
+ isMut: !1,
551
+ isSigner: !0,
552
+ },
553
+ ],
554
+ args: [],
555
+ },
556
+ ],
557
+ accounts: [
558
+ {
559
+ name: 'item',
560
+ type: {
561
+ kind: 'struct',
562
+ fields: [
563
+ {
564
+ name: 'bump',
565
+ type: 'u8',
566
+ },
567
+ {
568
+ name: 'mint',
569
+ type: 'publicKey',
570
+ },
571
+ {
572
+ name: 'owner',
573
+ type: 'publicKey',
574
+ },
575
+ {
576
+ name: 'cost',
577
+ type: 'u64',
578
+ },
579
+ {
580
+ name: 'count',
581
+ type: 'u64',
582
+ },
583
+ {
584
+ name: 'foxy',
585
+ type: 'bool',
586
+ },
587
+ {
588
+ name: 'staked',
589
+ type: 'bool',
590
+ },
591
+ ],
592
+ },
593
+ },
594
+ {
595
+ name: 'order',
596
+ type: {
597
+ kind: 'struct',
598
+ fields: [
599
+ {
600
+ name: 'bump',
601
+ type: 'u8',
602
+ },
603
+ {
604
+ name: 'mint',
605
+ type: 'publicKey',
606
+ },
607
+ {
608
+ name: 'owner',
609
+ type: 'publicKey',
610
+ },
611
+ {
612
+ name: 'cost',
613
+ type: 'u64',
614
+ },
615
+ {
616
+ name: 'count',
617
+ type: 'u64',
618
+ },
619
+ {
620
+ name: 'foxy',
621
+ type: 'bool',
622
+ },
623
+ {
624
+ name: 'time',
625
+ type: 'u64',
626
+ },
627
+ {
628
+ name: 'expiry',
629
+ type: 'u64',
630
+ },
631
+ ],
632
+ },
633
+ },
634
+ {
635
+ name: 'fox',
636
+ type: {
637
+ kind: 'struct',
638
+ fields: [
639
+ {
640
+ name: 'fox',
641
+ type: 'publicKey',
642
+ },
643
+ {
644
+ name: 'owner',
645
+ type: 'publicKey',
646
+ },
647
+ {
648
+ name: 'tff',
649
+ type: 'bool',
650
+ },
651
+ {
652
+ name: 'other',
653
+ type: 'bool',
654
+ },
655
+ {
656
+ name: 'xp',
657
+ type: 'u64',
658
+ },
659
+ {
660
+ name: 'missions',
661
+ type: 'u64',
662
+ },
663
+ {
664
+ name: 'multiplier',
665
+ type: 'u64',
666
+ },
667
+ ],
668
+ },
669
+ },
670
+ {
671
+ name: 'stakingAccount',
672
+ type: {
673
+ kind: 'struct',
674
+ fields: [
675
+ {
676
+ name: 'bump',
677
+ type: 'u8',
678
+ },
679
+ {
680
+ name: 'fox',
681
+ type: 'publicKey',
682
+ },
683
+ {
684
+ name: 'owner',
685
+ type: 'publicKey',
686
+ },
687
+ {
688
+ name: 'lock',
689
+ type: 'i64',
690
+ },
691
+ {
692
+ name: 'lastClaim',
693
+ type: 'i64',
694
+ },
695
+ {
696
+ name: 'tff',
697
+ type: 'bool',
698
+ },
699
+ {
700
+ name: 'v2',
701
+ type: 'bool',
702
+ },
703
+ ],
704
+ },
705
+ },
706
+ ],
707
+ events: [
708
+ {
709
+ name: 'Sale',
710
+ fields: [
711
+ {
712
+ name: 'mint',
713
+ type: 'publicKey',
714
+ index: !1,
715
+ },
716
+ {
717
+ name: 'seller',
718
+ type: 'publicKey',
719
+ index: !1,
720
+ },
721
+ {
722
+ name: 'buyer',
723
+ type: 'publicKey',
724
+ index: !1,
725
+ },
726
+ {
727
+ name: 'amount',
728
+ type: 'u64',
729
+ index: !1,
730
+ },
731
+ {
732
+ name: 'cost',
733
+ type: 'u64',
734
+ index: !1,
735
+ },
736
+ {
737
+ name: 'foxy',
738
+ type: 'bool',
739
+ index: !1,
740
+ },
741
+ {
742
+ name: 'fill',
743
+ type: 'bool',
744
+ index: !1,
745
+ },
746
+ ],
747
+ },
748
+ ],
749
+ errors: [
750
+ {
751
+ code: 6e3,
752
+ name: 'InsufficientBalance',
753
+ msg: 'Insufficient SOL balance',
754
+ },
755
+ {
756
+ code: 6001,
757
+ name: 'InsufficientItemBalance',
758
+ msg: 'Insufficient item balance',
759
+ },
760
+ {
761
+ code: 6002,
762
+ name: 'PriceUpdated',
763
+ msg: 'Price Updated',
764
+ },
765
+ {
766
+ code: 6003,
767
+ name: 'InvalidPrice',
768
+ msg: 'Invalid Price',
769
+ },
770
+ {
771
+ code: 6004,
772
+ name: 'InvalidQty',
773
+ msg: 'Invalid Qty',
774
+ },
775
+ {
776
+ code: 6005,
777
+ name: 'InvalidStake',
778
+ msg: 'Invalid Stake',
779
+ },
780
+ {
781
+ code: 6006,
782
+ name: 'InvalidAmount',
783
+ msg: 'Invalid Amount',
784
+ },
785
+ {
786
+ code: 6007,
787
+ name: 'OrderExpired',
788
+ msg: 'Order expired',
789
+ },
790
+ ],
791
+ };
792
+ //# sourceMappingURL=tokenMarketIdl.js.map