@sonarwatch/portfolio-plugins 0.12.29 → 0.12.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/CHANGELOG.md +1819 -1806
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +8 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/banx/calculateLoanRepayValue.d.ts +4 -0
  8. package/src/plugins/banx/calculateLoanRepayValue.js +37 -0
  9. package/src/plugins/banx/calculateLoanRepayValue.js.map +1 -0
  10. package/src/plugins/banx/collectionsJob.d.ts +3 -0
  11. package/src/plugins/banx/collectionsJob.js +40 -0
  12. package/src/plugins/banx/collectionsJob.js.map +1 -0
  13. package/src/plugins/banx/constants.d.ts +8 -0
  14. package/src/plugins/banx/constants.js +13 -1
  15. package/src/plugins/banx/constants.js.map +1 -1
  16. package/src/plugins/banx/filters.d.ts +2 -0
  17. package/src/plugins/banx/filters.js +26 -1
  18. package/src/plugins/banx/filters.js.map +1 -1
  19. package/src/plugins/banx/idl.d.ts +115 -0
  20. package/src/plugins/banx/idl.js +2256 -0
  21. package/src/plugins/banx/idl.js.map +1 -0
  22. package/src/plugins/banx/index.js +9 -2
  23. package/src/plugins/banx/index.js.map +1 -1
  24. package/src/plugins/banx/loansFetcher.d.ts +3 -0
  25. package/src/plugins/banx/loansFetcher.js +158 -0
  26. package/src/plugins/banx/loansFetcher.js.map +1 -0
  27. package/src/plugins/banx/offersFetcher.d.ts +3 -0
  28. package/src/plugins/banx/offersFetcher.js +99 -0
  29. package/src/plugins/banx/offersFetcher.js.map +1 -0
  30. package/src/plugins/banx/types.d.ts +200 -0
  31. package/src/plugins/citrus/collectionsJob.d.ts +3 -0
  32. package/src/plugins/citrus/collectionsJob.js +40 -0
  33. package/src/plugins/citrus/collectionsJob.js.map +1 -0
  34. package/src/plugins/citrus/constants.d.ts +12 -0
  35. package/src/plugins/citrus/constants.js +26 -0
  36. package/src/plugins/citrus/constants.js.map +1 -0
  37. package/src/plugins/citrus/filters.d.ts +2 -0
  38. package/src/plugins/citrus/filters.js +32 -0
  39. package/src/plugins/citrus/filters.js.map +1 -0
  40. package/src/plugins/citrus/idl.d.ts +73 -0
  41. package/src/plugins/citrus/idl.js +292 -0
  42. package/src/plugins/citrus/idl.js.map +1 -0
  43. package/src/plugins/citrus/index.d.ts +6 -0
  44. package/src/plugins/citrus/index.js +13 -0
  45. package/src/plugins/citrus/index.js.map +1 -0
  46. package/src/plugins/citrus/loansFetcher.d.ts +3 -0
  47. package/src/plugins/citrus/loansFetcher.js +150 -0
  48. package/src/plugins/citrus/loansFetcher.js.map +1 -0
  49. package/src/plugins/citrus/types.d.ts +54 -0
  50. package/src/plugins/citrus/types.js +3 -0
  51. package/src/plugins/citrus/types.js.map +1 -0
  52. package/src/plugins/raydium/clmmJob.js +4 -2
  53. package/src/plugins/raydium/clmmJob.js.map +1 -1
  54. package/src/plugins/sharky/collectionsJob.d.ts +3 -0
  55. package/src/plugins/sharky/collectionsJob.js +75 -0
  56. package/src/plugins/sharky/collectionsJob.js.map +1 -0
  57. package/src/plugins/sharky/constants.d.ts +12 -0
  58. package/src/plugins/sharky/constants.js +26 -0
  59. package/src/plugins/sharky/constants.js.map +1 -0
  60. package/src/plugins/sharky/filters.d.ts +6 -0
  61. package/src/plugins/sharky/filters.js +43 -0
  62. package/src/plugins/sharky/filters.js.map +1 -0
  63. package/src/plugins/sharky/idl.d.ts +135 -0
  64. package/src/plugins/sharky/idl.js +388 -0
  65. package/src/plugins/sharky/idl.js.map +1 -0
  66. package/src/plugins/sharky/index.d.ts +6 -0
  67. package/src/plugins/sharky/index.js +13 -0
  68. package/src/plugins/sharky/index.js.map +1 -0
  69. package/src/plugins/sharky/loansFetcher.d.ts +3 -0
  70. package/src/plugins/sharky/loansFetcher.js +141 -0
  71. package/src/plugins/sharky/loansFetcher.js.map +1 -0
  72. package/src/plugins/sharky/types.d.ts +66 -0
  73. package/src/plugins/sharky/types.js +11 -0
  74. package/src/plugins/sharky/types.js.map +1 -0
  75. package/src/plugins/sushiswap/helpers.js +24 -24
  76. package/src/plugins/uniswap-v2/helpers.js +22 -22
  77. package/src/utils/sei/constants.js +8 -8
  78. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  79. package/src/utils/solana/das/getAssetBatchDas.d.ts +4 -0
  80. package/src/utils/solana/das/getAssetBatchDas.js +68 -0
  81. package/src/utils/solana/das/getAssetBatchDas.js.map +1 -0
  82. package/src/utils/solana/das/heliusAssetToAssetCollectible.d.ts +7 -1
  83. package/src/utils/solana/das/heliusAssetToAssetCollectible.js +13 -9
  84. package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
  85. package/src/utils/solana/das/types.d.ts +5 -0
  86. package/src/utils/solana/getAutoParsedMultipleAccountsInfo.d.ts +4 -0
  87. package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +33 -0
  88. package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -0
  89. package/src/utils/solana/getAutoParsedProgramAccounts.d.ts +4 -0
  90. package/src/utils/solana/getAutoParsedProgramAccounts.js +37 -0
  91. package/src/utils/solana/getAutoParsedProgramAccounts.js.map +1 -0
  92. package/src/utils/solana/getMultipleAccountsInfoSafe.d.ts +2 -2
  93. package/src/utils/solana/getMultipleAccountsInfoSafe.js +3 -3
  94. package/src/utils/solana/getMultipleAccountsInfoSafe.js.map +1 -1
  95. package/src/utils/solana/getParsedMultipleAccountsInfo.d.ts +2 -2
  96. package/src/utils/solana/getParsedMultipleAccountsInfo.js +2 -2
  97. package/src/utils/solana/getParsedMultipleAccountsInfo.js.map +1 -1
  98. package/src/utils/solana/index.d.ts +2 -0
  99. package/src/utils/solana/index.js +2 -0
  100. package/src/utils/solana/index.js.map +1 -1
@@ -0,0 +1,2256 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BanxIDL = void 0;
4
+ exports.BanxIDL = {
5
+ version: '0.1.0',
6
+ name: 'bonds',
7
+ accounts: [
8
+ {
9
+ name: 'banxAdventureSubscription',
10
+ type: {
11
+ kind: 'struct',
12
+ fields: [
13
+ {
14
+ name: 'adventureSubscriptionState',
15
+ type: {
16
+ defined: 'BanxAdventureSubscriptionState',
17
+ },
18
+ },
19
+ {
20
+ name: 'user',
21
+ type: 'publicKey',
22
+ },
23
+ {
24
+ name: 'adventure',
25
+ type: 'publicKey',
26
+ },
27
+ {
28
+ name: 'banxTokenStake',
29
+ type: 'publicKey',
30
+ },
31
+ {
32
+ name: 'stakeTokensAmount',
33
+ type: 'u64',
34
+ },
35
+ {
36
+ name: 'stakeNftAmount',
37
+ type: 'u64',
38
+ },
39
+ {
40
+ name: 'stakePartnerPointsAmount',
41
+ type: 'u64',
42
+ },
43
+ {
44
+ name: 'stakePlayerPointsAmount',
45
+ type: 'u64',
46
+ },
47
+ {
48
+ name: 'subscribedAt',
49
+ type: 'u64',
50
+ },
51
+ {
52
+ name: 'unsubscribedAt',
53
+ type: 'u64',
54
+ },
55
+ {
56
+ name: 'harvestedAt',
57
+ type: 'u64',
58
+ },
59
+ {
60
+ name: 'amountOfTokensHarvested',
61
+ type: 'u64',
62
+ },
63
+ {
64
+ name: 'placeholderOne',
65
+ type: 'u64',
66
+ },
67
+ {
68
+ name: 'placeholderTwo',
69
+ type: 'u64',
70
+ },
71
+ {
72
+ name: 'placeholderThree',
73
+ type: 'publicKey',
74
+ },
75
+ ],
76
+ },
77
+ },
78
+ {
79
+ name: 'banxAdventure',
80
+ type: {
81
+ kind: 'struct',
82
+ fields: [
83
+ {
84
+ name: 'adventureState',
85
+ type: {
86
+ defined: 'BanxAdventureState',
87
+ },
88
+ },
89
+ {
90
+ name: 'tokensPerPoints',
91
+ type: 'u64',
92
+ },
93
+ {
94
+ name: 'week',
95
+ type: 'u64',
96
+ },
97
+ {
98
+ name: 'periodStartedAt',
99
+ type: 'u64',
100
+ },
101
+ {
102
+ name: 'periodEndingAt',
103
+ type: 'u64',
104
+ },
105
+ {
106
+ name: 'rewardsToBeDistributed',
107
+ type: 'u64',
108
+ },
109
+ {
110
+ name: 'totalPartnerPoints',
111
+ type: 'u64',
112
+ },
113
+ {
114
+ name: 'totalPlayerPoints',
115
+ type: 'u64',
116
+ },
117
+ {
118
+ name: 'totalTokensStaked',
119
+ type: 'u64',
120
+ },
121
+ {
122
+ name: 'totalBanxSubscribed',
123
+ type: 'u64',
124
+ },
125
+ {
126
+ name: 'amountOfTokensHarvested',
127
+ type: 'u64',
128
+ },
129
+ {
130
+ name: 'placeholderOne',
131
+ type: 'publicKey',
132
+ },
133
+ ],
134
+ },
135
+ },
136
+ {
137
+ name: 'banxStakingSettings',
138
+ type: {
139
+ kind: 'struct',
140
+ fields: [
141
+ {
142
+ name: 'banxStakingSettingsState',
143
+ type: {
144
+ defined: 'BanxStakingSettingsState',
145
+ },
146
+ },
147
+ {
148
+ name: 'maxTokenStakeAmount',
149
+ type: 'u64',
150
+ },
151
+ {
152
+ name: 'tokensPerPartnerPoints',
153
+ type: 'u64',
154
+ },
155
+ {
156
+ name: 'tokensStaked',
157
+ type: 'u64',
158
+ },
159
+ {
160
+ name: 'banxStaked',
161
+ type: 'u64',
162
+ },
163
+ {
164
+ name: 'tokensPerWeek',
165
+ type: 'u64',
166
+ },
167
+ {
168
+ name: 'rewardsHarvested',
169
+ type: 'u64',
170
+ },
171
+ {
172
+ name: 'placeholderOne',
173
+ type: 'publicKey',
174
+ },
175
+ ],
176
+ },
177
+ },
178
+ {
179
+ name: 'banxTokenStake',
180
+ type: {
181
+ kind: 'struct',
182
+ fields: [
183
+ {
184
+ name: 'banxStakeState',
185
+ type: {
186
+ defined: 'BanxTokenStakeState',
187
+ },
188
+ },
189
+ {
190
+ name: 'user',
191
+ type: 'publicKey',
192
+ },
193
+ {
194
+ name: 'adventureSubscriptionsQuantity',
195
+ type: 'u64',
196
+ },
197
+ {
198
+ name: 'tokensStaked',
199
+ type: 'u64',
200
+ },
201
+ {
202
+ name: 'partnerPointsStaked',
203
+ type: 'u64',
204
+ },
205
+ {
206
+ name: 'playerPointsStaked',
207
+ type: 'u64',
208
+ },
209
+ {
210
+ name: 'banxNftsStakedQuantity',
211
+ type: 'u64',
212
+ },
213
+ {
214
+ name: 'stakedAt',
215
+ type: 'u64',
216
+ },
217
+ {
218
+ name: 'unstakedAt',
219
+ type: 'u64',
220
+ },
221
+ {
222
+ name: 'farmedAmount',
223
+ type: 'u64',
224
+ },
225
+ {
226
+ name: 'nftsStakedAt',
227
+ type: 'u64',
228
+ },
229
+ {
230
+ name: 'nftsUnstakedAt',
231
+ type: 'u64',
232
+ },
233
+ {
234
+ name: 'placeholderOne',
235
+ type: 'publicKey',
236
+ },
237
+ ],
238
+ },
239
+ },
240
+ {
241
+ name: 'collateralBox',
242
+ type: {
243
+ kind: 'struct',
244
+ fields: [
245
+ {
246
+ name: 'fbond',
247
+ type: 'publicKey',
248
+ },
249
+ {
250
+ name: 'collateralBoxType',
251
+ type: {
252
+ defined: 'CollateralBoxType',
253
+ },
254
+ },
255
+ {
256
+ name: 'collateralTokenMint',
257
+ type: 'publicKey',
258
+ },
259
+ {
260
+ name: 'collateralTokenAccount',
261
+ type: 'publicKey',
262
+ },
263
+ {
264
+ name: 'collateralAmount',
265
+ type: 'u64',
266
+ },
267
+ ],
268
+ },
269
+ },
270
+ {
271
+ name: 'fraktBond',
272
+ type: {
273
+ kind: 'struct',
274
+ fields: [
275
+ {
276
+ name: 'fraktBondState',
277
+ type: {
278
+ defined: 'FraktBondState',
279
+ },
280
+ },
281
+ {
282
+ name: 'bondTradeTransactionsCounter',
283
+ type: 'u8',
284
+ },
285
+ {
286
+ name: 'borrowedAmount',
287
+ type: 'u64',
288
+ },
289
+ {
290
+ name: 'banxStake',
291
+ type: 'publicKey',
292
+ },
293
+ {
294
+ name: 'fraktMarket',
295
+ type: 'publicKey',
296
+ },
297
+ {
298
+ name: 'amountToReturn',
299
+ type: 'u64',
300
+ },
301
+ {
302
+ name: 'actualReturnedAmount',
303
+ type: 'u64',
304
+ },
305
+ {
306
+ name: 'terminatedCounter',
307
+ type: 'u8',
308
+ },
309
+ {
310
+ name: 'fbondTokenMint',
311
+ type: 'publicKey',
312
+ },
313
+ {
314
+ name: 'fbondTokenSupply',
315
+ type: 'u64',
316
+ },
317
+ {
318
+ name: 'activatedAt',
319
+ type: 'u64',
320
+ },
321
+ {
322
+ name: 'liquidatingAt',
323
+ type: 'u64',
324
+ },
325
+ {
326
+ name: 'fbondIssuer',
327
+ type: 'publicKey',
328
+ },
329
+ {
330
+ name: 'repaidOrLiquidatedAt',
331
+ type: 'u64',
332
+ },
333
+ {
334
+ name: 'currentPerpetualBorrowed',
335
+ type: 'u64',
336
+ },
337
+ {
338
+ name: 'lastTransactedAt',
339
+ type: 'u64',
340
+ },
341
+ {
342
+ name: 'refinanceAuctionStartedAt',
343
+ type: 'u64',
344
+ },
345
+ ],
346
+ },
347
+ },
348
+ {
349
+ name: 'flashLoanPool',
350
+ type: {
351
+ kind: 'struct',
352
+ fields: [
353
+ {
354
+ name: 'authority',
355
+ type: 'publicKey',
356
+ },
357
+ {
358
+ name: 'borrowing',
359
+ type: 'bool',
360
+ },
361
+ {
362
+ name: 'balance',
363
+ type: 'u64',
364
+ },
365
+ {
366
+ name: 'loanFeePoints',
367
+ type: 'u16',
368
+ },
369
+ ],
370
+ },
371
+ },
372
+ {
373
+ name: 'hadespinLeaderboardEntry',
374
+ type: {
375
+ kind: 'struct',
376
+ fields: [
377
+ {
378
+ name: 'user',
379
+ type: 'publicKey',
380
+ },
381
+ {
382
+ name: 'totalSolDeposited',
383
+ type: 'u64',
384
+ },
385
+ {
386
+ name: 'totalSolInNftDeposited',
387
+ type: 'u64',
388
+ },
389
+ {
390
+ name: 'totalNftDeposited',
391
+ type: 'u64',
392
+ },
393
+ {
394
+ name: 'totalFeePayed',
395
+ type: 'u64',
396
+ },
397
+ {
398
+ name: 'totalSolWon',
399
+ type: 'u64',
400
+ },
401
+ {
402
+ name: 'lastTransactedAt',
403
+ type: 'u64',
404
+ },
405
+ {
406
+ name: 'placeholderOne',
407
+ type: 'publicKey',
408
+ },
409
+ {
410
+ name: 'placeholderTwo',
411
+ type: 'publicKey',
412
+ },
413
+ ],
414
+ },
415
+ },
416
+ {
417
+ name: 'hadespinLeaderboardWeekEntry',
418
+ type: {
419
+ kind: 'struct',
420
+ fields: [
421
+ {
422
+ name: 'user',
423
+ type: 'publicKey',
424
+ },
425
+ {
426
+ name: 'week',
427
+ type: 'u64',
428
+ },
429
+ {
430
+ name: 'totalSolDeposited',
431
+ type: 'u64',
432
+ },
433
+ {
434
+ name: 'totalSolInNftDeposited',
435
+ type: 'u64',
436
+ },
437
+ {
438
+ name: 'totalNftDeposited',
439
+ type: 'u64',
440
+ },
441
+ {
442
+ name: 'totalFeePayed',
443
+ type: 'u64',
444
+ },
445
+ {
446
+ name: 'totalSolWon',
447
+ type: 'u64',
448
+ },
449
+ {
450
+ name: 'lastTransactedAt',
451
+ type: 'u64',
452
+ },
453
+ {
454
+ name: 'placeholderOne',
455
+ type: 'publicKey',
456
+ },
457
+ {
458
+ name: 'placeholderTwo',
459
+ type: 'publicKey',
460
+ },
461
+ ],
462
+ },
463
+ },
464
+ {
465
+ name: 'hadespinRakeback',
466
+ type: {
467
+ kind: 'struct',
468
+ fields: [
469
+ {
470
+ name: 'user',
471
+ type: 'publicKey',
472
+ },
473
+ {
474
+ name: 'hadesToClaimAmount',
475
+ type: 'u64',
476
+ },
477
+ {
478
+ name: 'claimTimestamp',
479
+ type: 'u64',
480
+ },
481
+ {
482
+ name: 'claimedAt',
483
+ type: 'u64',
484
+ },
485
+ {
486
+ name: 'claimed',
487
+ type: 'bool',
488
+ },
489
+ {
490
+ name: 'lastTransactedAt',
491
+ type: 'u64',
492
+ },
493
+ {
494
+ name: 'placeholderOne',
495
+ type: 'publicKey',
496
+ },
497
+ ],
498
+ },
499
+ },
500
+ {
501
+ name: 'roundSetting',
502
+ type: {
503
+ kind: 'struct',
504
+ fields: [
505
+ {
506
+ name: 'completedRounds',
507
+ type: 'u64',
508
+ },
509
+ {
510
+ name: 'totalSolDeposited',
511
+ type: 'u64',
512
+ },
513
+ {
514
+ name: 'totalFeeCollected',
515
+ type: 'u64',
516
+ },
517
+ {
518
+ name: 'totalParticipants',
519
+ type: 'u64',
520
+ },
521
+ {
522
+ name: 'roundDuration',
523
+ type: 'u64',
524
+ },
525
+ {
526
+ name: 'minSolToDeposit',
527
+ type: 'u64',
528
+ },
529
+ {
530
+ name: 'feePercent',
531
+ type: 'u64',
532
+ },
533
+ {
534
+ name: 'canInitializeNextRound',
535
+ type: 'bool',
536
+ },
537
+ {
538
+ name: 'lastRoundEndsAt',
539
+ type: 'u64',
540
+ },
541
+ {
542
+ name: 'lastTransactedAt',
543
+ type: 'u64',
544
+ },
545
+ {
546
+ name: 'rakebackHadesForSol',
547
+ type: 'u64',
548
+ },
549
+ {
550
+ name: 'contractBid',
551
+ type: 'u64',
552
+ },
553
+ {
554
+ name: 'placeholdeOne',
555
+ type: 'u64',
556
+ },
557
+ {
558
+ name: 'placeholdeTwo',
559
+ type: 'u64',
560
+ },
561
+ ],
562
+ },
563
+ },
564
+ {
565
+ name: 'round',
566
+ type: {
567
+ kind: 'struct',
568
+ fields: [
569
+ {
570
+ name: 'roundState',
571
+ type: {
572
+ defined: 'RoundState',
573
+ },
574
+ },
575
+ {
576
+ name: 'roundValue',
577
+ type: 'u64',
578
+ },
579
+ {
580
+ name: 'startedAt',
581
+ type: 'u64',
582
+ },
583
+ {
584
+ name: 'solAmount',
585
+ type: 'u64',
586
+ },
587
+ {
588
+ name: 'feeAmount',
589
+ type: 'u64',
590
+ },
591
+ {
592
+ name: 'participants',
593
+ type: 'u64',
594
+ },
595
+ {
596
+ name: 'roundEndsAt',
597
+ type: 'u64',
598
+ },
599
+ {
600
+ name: 'lastTransactedAt',
601
+ type: 'u64',
602
+ },
603
+ {
604
+ name: 'winner',
605
+ type: 'publicKey',
606
+ },
607
+ {
608
+ name: 'roundNumber',
609
+ type: 'u64',
610
+ },
611
+ {
612
+ name: 'solInNftAmount',
613
+ type: 'u64',
614
+ },
615
+ {
616
+ name: 'contractBid',
617
+ type: 'u64',
618
+ },
619
+ {
620
+ name: 'placeholderOne',
621
+ type: 'u64',
622
+ },
623
+ {
624
+ name: 'placeholderTwo',
625
+ type: 'u64',
626
+ },
627
+ {
628
+ name: 'placeholderThree',
629
+ type: 'u64',
630
+ },
631
+ ],
632
+ },
633
+ },
634
+ {
635
+ name: 'userRound',
636
+ type: {
637
+ kind: 'struct',
638
+ fields: [
639
+ {
640
+ name: 'round',
641
+ type: 'publicKey',
642
+ },
643
+ {
644
+ name: 'solDeposited',
645
+ type: 'u64',
646
+ },
647
+ {
648
+ name: 'startSolPosition',
649
+ type: 'u64',
650
+ },
651
+ {
652
+ name: 'user',
653
+ type: 'publicKey',
654
+ },
655
+ {
656
+ name: 'lastTransactedAt',
657
+ type: 'u64',
658
+ },
659
+ {
660
+ name: 'depositedAt',
661
+ type: 'u64',
662
+ },
663
+ {
664
+ name: 'nftMint',
665
+ type: 'publicKey',
666
+ },
667
+ {
668
+ name: 'jackpotSolAmount',
669
+ type: 'u64',
670
+ },
671
+ {
672
+ name: 'jackpotClaimedAt',
673
+ type: 'u64',
674
+ },
675
+ {
676
+ name: 'jackpotClaimed',
677
+ type: 'bool',
678
+ },
679
+ {
680
+ name: 'placeholderOne',
681
+ type: 'u64',
682
+ },
683
+ {
684
+ name: 'placeholderTwo',
685
+ type: 'u32',
686
+ },
687
+ {
688
+ name: 'placeholderThree',
689
+ type: 'bool',
690
+ },
691
+ {
692
+ name: 'placeholderFour',
693
+ type: 'bool',
694
+ },
695
+ {
696
+ name: 'placeholderFive',
697
+ type: 'bool',
698
+ },
699
+ ],
700
+ },
701
+ },
702
+ {
703
+ name: 'hadoMarketRegistry',
704
+ type: {
705
+ kind: 'struct',
706
+ fields: [
707
+ {
708
+ name: 'hadoMarket',
709
+ type: 'publicKey',
710
+ },
711
+ {
712
+ name: 'fraktMarket',
713
+ type: 'publicKey',
714
+ },
715
+ ],
716
+ },
717
+ },
718
+ {
719
+ name: 'hadoMarketValidation',
720
+ type: {
721
+ kind: 'struct',
722
+ fields: [
723
+ {
724
+ name: 'hadoMarket',
725
+ type: 'publicKey',
726
+ },
727
+ {
728
+ name: 'creatorHash',
729
+ type: {
730
+ array: ['u8', 32],
731
+ },
732
+ },
733
+ {
734
+ name: 'placeholderOne',
735
+ type: 'publicKey',
736
+ },
737
+ {
738
+ name: 'placeholderTwo',
739
+ type: 'publicKey',
740
+ },
741
+ ],
742
+ },
743
+ },
744
+ {
745
+ name: 'hadoMarket',
746
+ type: {
747
+ kind: 'struct',
748
+ fields: [
749
+ {
750
+ name: 'marketAuthority',
751
+ type: 'publicKey',
752
+ },
753
+ {
754
+ name: 'marketState',
755
+ type: {
756
+ defined: 'MarketState',
757
+ },
758
+ },
759
+ {
760
+ name: 'marketTrustType',
761
+ type: {
762
+ defined: 'MarketTrustType',
763
+ },
764
+ },
765
+ {
766
+ name: 'pairValidationType',
767
+ type: {
768
+ defined: 'PairValidationType',
769
+ },
770
+ },
771
+ {
772
+ name: 'fraktMarket',
773
+ type: 'publicKey',
774
+ },
775
+ {
776
+ name: 'minBidCap',
777
+ type: 'u64',
778
+ },
779
+ {
780
+ name: 'minMarketFee',
781
+ type: 'u64',
782
+ },
783
+ {
784
+ name: 'whitelistType',
785
+ type: {
786
+ defined: 'NftValidationWhitelistTypeHado',
787
+ },
788
+ },
789
+ {
790
+ name: 'whitelistedAddress',
791
+ type: 'publicKey',
792
+ },
793
+ ],
794
+ },
795
+ },
796
+ {
797
+ name: 'banxSolStakingOffer',
798
+ type: {
799
+ kind: 'struct',
800
+ fields: [
801
+ {
802
+ name: 'user',
803
+ type: 'publicKey',
804
+ },
805
+ {
806
+ name: 'banxSolStakingOfferState',
807
+ type: {
808
+ defined: 'BanxSolStakingOfferState',
809
+ },
810
+ },
811
+ {
812
+ name: 'lastClaimedAt',
813
+ type: 'u64',
814
+ },
815
+ {
816
+ name: 'totalClaimedAmount',
817
+ type: 'u64',
818
+ },
819
+ {
820
+ name: 'totalInterestRewards',
821
+ type: 'u64',
822
+ },
823
+ {
824
+ name: 'createdAt',
825
+ type: 'u64',
826
+ },
827
+ {
828
+ name: 'totalLent',
829
+ type: 'u64',
830
+ },
831
+ {
832
+ name: 'currentInOffer',
833
+ type: 'u64',
834
+ },
835
+ {
836
+ name: 'placeholderOne',
837
+ type: 'publicKey',
838
+ },
839
+ ],
840
+ },
841
+ },
842
+ {
843
+ name: 'bondOfferV2',
844
+ type: {
845
+ kind: 'struct',
846
+ fields: [
847
+ {
848
+ name: 'hadoMarket',
849
+ type: 'publicKey',
850
+ },
851
+ {
852
+ name: 'pairState',
853
+ type: {
854
+ defined: 'PairState',
855
+ },
856
+ },
857
+ {
858
+ name: 'bondingCurve',
859
+ type: {
860
+ defined: 'BondOfferBondingCurve',
861
+ },
862
+ },
863
+ {
864
+ name: 'baseSpotPrice',
865
+ type: 'u64',
866
+ },
867
+ {
868
+ name: 'mathCounter',
869
+ type: 'i64',
870
+ },
871
+ {
872
+ name: 'currentSpotPrice',
873
+ type: 'u64',
874
+ },
875
+ {
876
+ name: 'concentrationIndex',
877
+ type: 'u64',
878
+ },
879
+ {
880
+ name: 'bidCap',
881
+ type: 'u64',
882
+ },
883
+ {
884
+ name: 'bidSettlement',
885
+ type: 'i64',
886
+ },
887
+ {
888
+ name: 'edgeSettlement',
889
+ type: 'u64',
890
+ },
891
+ {
892
+ name: 'fundsSolOrTokenBalance',
893
+ type: 'u64',
894
+ },
895
+ {
896
+ name: 'buyOrdersQuantity',
897
+ type: 'u64',
898
+ },
899
+ {
900
+ name: 'lastTransactedAt',
901
+ type: 'u64',
902
+ },
903
+ {
904
+ name: 'assetReceiver',
905
+ type: 'publicKey',
906
+ },
907
+ {
908
+ name: 'validation',
909
+ type: {
910
+ defined: 'BondOfferValidation',
911
+ },
912
+ },
913
+ ],
914
+ },
915
+ },
916
+ {
917
+ name: 'bondTradeTransactionV2',
918
+ type: {
919
+ kind: 'struct',
920
+ fields: [
921
+ {
922
+ name: 'bondTradeTransactionState',
923
+ type: {
924
+ defined: 'BondTradeTransactionV2State',
925
+ },
926
+ },
927
+ {
928
+ name: 'bondOffer',
929
+ type: 'publicKey',
930
+ },
931
+ {
932
+ name: 'user',
933
+ type: 'publicKey',
934
+ },
935
+ {
936
+ name: 'amountOfBonds',
937
+ type: 'u64',
938
+ },
939
+ {
940
+ name: 'solAmount',
941
+ type: 'u64',
942
+ },
943
+ {
944
+ name: 'feeAmount',
945
+ type: 'u64',
946
+ },
947
+ {
948
+ name: 'bondTradeTransactionType',
949
+ type: {
950
+ defined: 'BondTradeTransactionV2Type',
951
+ },
952
+ },
953
+ {
954
+ name: 'fbondTokenMint',
955
+ type: 'publicKey',
956
+ },
957
+ {
958
+ name: 'soldAt',
959
+ type: 'u64',
960
+ },
961
+ {
962
+ name: 'redeemedAt',
963
+ type: 'u64',
964
+ },
965
+ {
966
+ name: 'redeemResult',
967
+ type: {
968
+ defined: 'RedeemResult',
969
+ },
970
+ },
971
+ {
972
+ name: 'seller',
973
+ type: 'publicKey',
974
+ },
975
+ {
976
+ name: 'isDirectSell',
977
+ type: 'bool',
978
+ },
979
+ ],
980
+ },
981
+ },
982
+ {
983
+ name: 'bondTradeTransactionV3',
984
+ type: {
985
+ kind: 'struct',
986
+ fields: [
987
+ {
988
+ name: 'bondTradeTransactionState',
989
+ type: {
990
+ defined: 'BondTradeTransactionV2State',
991
+ },
992
+ },
993
+ {
994
+ name: 'bondOffer',
995
+ type: 'publicKey',
996
+ },
997
+ {
998
+ name: 'user',
999
+ type: 'publicKey',
1000
+ },
1001
+ {
1002
+ name: 'amountOfBonds',
1003
+ type: 'u64',
1004
+ },
1005
+ {
1006
+ name: 'solAmount',
1007
+ type: 'u64',
1008
+ },
1009
+ {
1010
+ name: 'feeAmount',
1011
+ type: 'u64',
1012
+ },
1013
+ {
1014
+ name: 'bondTradeTransactionType',
1015
+ type: {
1016
+ defined: 'BondTradeTransactionV2Type',
1017
+ },
1018
+ },
1019
+ {
1020
+ name: 'fbondTokenMint',
1021
+ type: 'publicKey',
1022
+ },
1023
+ {
1024
+ name: 'soldAt',
1025
+ type: 'u64',
1026
+ },
1027
+ {
1028
+ name: 'redeemedAt',
1029
+ type: 'u64',
1030
+ },
1031
+ {
1032
+ name: 'redeemResult',
1033
+ type: {
1034
+ defined: 'RedeemResult',
1035
+ },
1036
+ },
1037
+ {
1038
+ name: 'seller',
1039
+ type: 'publicKey',
1040
+ },
1041
+ {
1042
+ name: 'isDirectSell',
1043
+ type: 'bool',
1044
+ },
1045
+ {
1046
+ name: 'lendingToken',
1047
+ type: {
1048
+ defined: 'LendingTokenType',
1049
+ },
1050
+ },
1051
+ {
1052
+ name: 'currentRemainingLent',
1053
+ type: 'u64',
1054
+ },
1055
+ {
1056
+ name: 'interestSnapshot',
1057
+ type: 'u64',
1058
+ },
1059
+ {
1060
+ name: 'partialRepaySnapshot',
1061
+ type: 'u64',
1062
+ },
1063
+ {
1064
+ name: 'terminationStartedAt',
1065
+ type: 'u64',
1066
+ },
1067
+ {
1068
+ name: 'lenderOriginalLent',
1069
+ type: 'u64',
1070
+ },
1071
+ {
1072
+ name: 'lenderFullRepaidAmount',
1073
+ type: 'u64',
1074
+ },
1075
+ {
1076
+ name: 'borrowerOriginalLent',
1077
+ type: 'u64',
1078
+ },
1079
+ {
1080
+ name: 'borrowerFullRepaidAmount',
1081
+ type: 'u64',
1082
+ },
1083
+ {
1084
+ name: 'repayDestination',
1085
+ type: {
1086
+ defined: 'RepayDestination',
1087
+ },
1088
+ },
1089
+ {
1090
+ name: 'repaymentCallAmount',
1091
+ type: 'u64',
1092
+ },
1093
+ {
1094
+ name: 'terminationFreeze',
1095
+ type: 'u64',
1096
+ },
1097
+ {
1098
+ name: 'placeholder3',
1099
+ type: 'u64',
1100
+ },
1101
+ {
1102
+ name: 'placeholder4',
1103
+ type: 'u64',
1104
+ },
1105
+ {
1106
+ name: 'placeholder5',
1107
+ type: 'u64',
1108
+ },
1109
+ {
1110
+ name: 'placeholder6',
1111
+ type: 'u64',
1112
+ },
1113
+ {
1114
+ name: 'placeholder7',
1115
+ type: 'u64',
1116
+ },
1117
+ {
1118
+ name: 'placeholder8',
1119
+ type: 'publicKey',
1120
+ },
1121
+ ],
1122
+ },
1123
+ },
1124
+ {
1125
+ name: 'repaymentCall',
1126
+ type: {
1127
+ kind: 'struct',
1128
+ fields: [
1129
+ {
1130
+ name: 'callState',
1131
+ type: {
1132
+ defined: 'CallState',
1133
+ },
1134
+ },
1135
+ {
1136
+ name: 'user',
1137
+ type: 'publicKey',
1138
+ },
1139
+ {
1140
+ name: 'bond',
1141
+ type: 'publicKey',
1142
+ },
1143
+ {
1144
+ name: 'bondTradeTransaction',
1145
+ type: 'publicKey',
1146
+ },
1147
+ {
1148
+ name: 'callAmount',
1149
+ type: 'u64',
1150
+ },
1151
+ {
1152
+ name: 'lastUpdatedAt',
1153
+ type: 'u64',
1154
+ },
1155
+ {
1156
+ name: 'lastCallAt',
1157
+ type: 'u64',
1158
+ },
1159
+ {
1160
+ name: 'lastRepaidAt',
1161
+ type: 'u64',
1162
+ },
1163
+ {
1164
+ name: 'placeholderOne',
1165
+ type: 'publicKey',
1166
+ },
1167
+ ],
1168
+ },
1169
+ },
1170
+ {
1171
+ name: 'adventureSubscription',
1172
+ type: {
1173
+ kind: 'struct',
1174
+ fields: [
1175
+ {
1176
+ name: 'user',
1177
+ type: 'publicKey',
1178
+ },
1179
+ {
1180
+ name: 'stake',
1181
+ type: 'publicKey',
1182
+ },
1183
+ {
1184
+ name: 'adventure',
1185
+ type: 'publicKey',
1186
+ },
1187
+ {
1188
+ name: 'subscribedAt',
1189
+ type: 'u64',
1190
+ },
1191
+ {
1192
+ name: 'unsubscribedAt',
1193
+ type: 'u64',
1194
+ },
1195
+ {
1196
+ name: 'harvestedAt',
1197
+ type: 'u64',
1198
+ },
1199
+ {
1200
+ name: 'amountOfSolHarvested',
1201
+ type: 'u64',
1202
+ },
1203
+ {
1204
+ name: 'placeholderOne',
1205
+ type: 'publicKey',
1206
+ },
1207
+ ],
1208
+ },
1209
+ },
1210
+ {
1211
+ name: 'adventure',
1212
+ type: {
1213
+ kind: 'struct',
1214
+ fields: [
1215
+ {
1216
+ name: 'adventureState',
1217
+ type: {
1218
+ defined: 'AdventureState',
1219
+ },
1220
+ },
1221
+ {
1222
+ name: 'periodStartedAt',
1223
+ type: 'u64',
1224
+ },
1225
+ {
1226
+ name: 'periodEndingAt',
1227
+ type: 'u64',
1228
+ },
1229
+ {
1230
+ name: 'rewardsUpperLimit',
1231
+ type: 'u64',
1232
+ },
1233
+ {
1234
+ name: 'rewardsLowerLimit',
1235
+ type: 'u64',
1236
+ },
1237
+ {
1238
+ name: 'totalPeriodRevenue',
1239
+ type: 'u64',
1240
+ },
1241
+ {
1242
+ name: 'rewardsToBeDistributed',
1243
+ type: 'u64',
1244
+ },
1245
+ {
1246
+ name: 'totalBanxSubscribed',
1247
+ type: 'u64',
1248
+ },
1249
+ {
1250
+ name: 'totalPartnerPoints',
1251
+ type: 'u64',
1252
+ },
1253
+ {
1254
+ name: 'totalPlayerPoints',
1255
+ type: 'u64',
1256
+ },
1257
+ {
1258
+ name: 'banxSubscribedLeft',
1259
+ type: 'u64',
1260
+ },
1261
+ {
1262
+ name: 'partnerPointsLeft',
1263
+ type: 'u64',
1264
+ },
1265
+ {
1266
+ name: 'playerPointsLeft',
1267
+ type: 'u64',
1268
+ },
1269
+ {
1270
+ name: 'rewardsLeft',
1271
+ type: 'u64',
1272
+ },
1273
+ ],
1274
+ },
1275
+ },
1276
+ {
1277
+ name: 'banxPointsMap',
1278
+ type: {
1279
+ kind: 'struct',
1280
+ fields: [
1281
+ {
1282
+ name: 'banxMint',
1283
+ type: 'publicKey',
1284
+ },
1285
+ {
1286
+ name: 'playerPoints',
1287
+ type: 'u64',
1288
+ },
1289
+ {
1290
+ name: 'partnerPoints',
1291
+ type: 'u64',
1292
+ },
1293
+ ],
1294
+ },
1295
+ },
1296
+ {
1297
+ name: 'banxStake',
1298
+ type: {
1299
+ kind: 'struct',
1300
+ fields: [
1301
+ {
1302
+ name: 'banxStakeState',
1303
+ type: {
1304
+ defined: 'BanxStakeState',
1305
+ },
1306
+ },
1307
+ {
1308
+ name: 'adventureSubscriptionsQuantity',
1309
+ type: 'u64',
1310
+ },
1311
+ {
1312
+ name: 'nftMint',
1313
+ type: 'publicKey',
1314
+ },
1315
+ {
1316
+ name: 'collateralTokenAccount',
1317
+ type: 'publicKey',
1318
+ },
1319
+ {
1320
+ name: 'user',
1321
+ type: 'publicKey',
1322
+ },
1323
+ {
1324
+ name: 'stakedAt',
1325
+ type: 'u64',
1326
+ },
1327
+ {
1328
+ name: 'unstakedOrLiquidatedAt',
1329
+ type: 'u64',
1330
+ },
1331
+ {
1332
+ name: 'isLoaned',
1333
+ type: 'bool',
1334
+ },
1335
+ {
1336
+ name: 'bond',
1337
+ type: 'publicKey',
1338
+ },
1339
+ {
1340
+ name: 'playerPoints',
1341
+ type: 'u64',
1342
+ },
1343
+ {
1344
+ name: 'partnerPoints',
1345
+ type: 'u64',
1346
+ },
1347
+ {
1348
+ name: 'farmedAmount',
1349
+ type: 'u64',
1350
+ },
1351
+ {
1352
+ name: 'placeholderOne',
1353
+ type: 'publicKey',
1354
+ },
1355
+ ],
1356
+ },
1357
+ },
1358
+ {
1359
+ name: 'banxUser',
1360
+ type: {
1361
+ kind: 'struct',
1362
+ fields: [
1363
+ {
1364
+ name: 'user',
1365
+ type: 'publicKey',
1366
+ },
1367
+ {
1368
+ name: 'stakedPlayerPoints',
1369
+ type: 'u64',
1370
+ },
1371
+ {
1372
+ name: 'stakedPartnerPoints',
1373
+ type: 'u64',
1374
+ },
1375
+ {
1376
+ name: 'stakedBanx',
1377
+ type: 'u64',
1378
+ },
1379
+ {
1380
+ name: 'totalHarvestedRewards',
1381
+ type: 'u64',
1382
+ },
1383
+ {
1384
+ name: 'freeLiquidityCurrent',
1385
+ type: 'u64',
1386
+ },
1387
+ {
1388
+ name: 'placeholderOne',
1389
+ type: 'publicKey',
1390
+ },
1391
+ ],
1392
+ },
1393
+ },
1394
+ {
1395
+ name: 'stakingSettings',
1396
+ type: {
1397
+ kind: 'struct',
1398
+ fields: [
1399
+ {
1400
+ name: 'mainVaultBalance',
1401
+ type: 'u64',
1402
+ },
1403
+ {
1404
+ name: 'upperRewardsLimit',
1405
+ type: 'u64',
1406
+ },
1407
+ {
1408
+ name: 'lowerRewardsLimit',
1409
+ type: 'u64',
1410
+ },
1411
+ {
1412
+ name: 'placeholderOne',
1413
+ type: 'publicKey',
1414
+ },
1415
+ ],
1416
+ },
1417
+ },
1418
+ ],
1419
+ types: [
1420
+ {
1421
+ name: 'InitializeHadoMarketParams',
1422
+ type: {
1423
+ kind: 'struct',
1424
+ fields: [
1425
+ {
1426
+ name: 'minBidCap',
1427
+ type: 'u64',
1428
+ },
1429
+ {
1430
+ name: 'minMarketFee',
1431
+ type: 'u64',
1432
+ },
1433
+ ],
1434
+ },
1435
+ },
1436
+ {
1437
+ name: 'BorrowPerpetualParams',
1438
+ type: {
1439
+ kind: 'struct',
1440
+ fields: [
1441
+ {
1442
+ name: 'minAmountToGet',
1443
+ type: 'u64',
1444
+ },
1445
+ {
1446
+ name: 'amountOfSolToGet',
1447
+ type: 'u64',
1448
+ },
1449
+ {
1450
+ name: 'bondTradeTransactionBump',
1451
+ type: 'u8',
1452
+ },
1453
+ {
1454
+ name: 'fraktBondBump',
1455
+ type: 'u8',
1456
+ },
1457
+ {
1458
+ name: 'bondOfferVaultBump',
1459
+ type: 'u8',
1460
+ },
1461
+ ],
1462
+ },
1463
+ },
1464
+ {
1465
+ name: 'MakePerpetualMarketParams',
1466
+ type: {
1467
+ kind: 'struct',
1468
+ fields: [
1469
+ {
1470
+ name: 'minBidCap',
1471
+ type: 'u64',
1472
+ },
1473
+ {
1474
+ name: 'minMarketFee',
1475
+ type: 'u64',
1476
+ },
1477
+ {
1478
+ name: 'marketState',
1479
+ type: {
1480
+ defined: 'MarketState',
1481
+ },
1482
+ },
1483
+ ],
1484
+ },
1485
+ },
1486
+ {
1487
+ name: 'SubscribeBanxAdventureParams',
1488
+ type: {
1489
+ kind: 'struct',
1490
+ fields: [
1491
+ {
1492
+ name: 'week',
1493
+ type: 'u64',
1494
+ },
1495
+ {
1496
+ name: 'adventureBump',
1497
+ type: 'u8',
1498
+ },
1499
+ {
1500
+ name: 'subscriptionBump',
1501
+ type: 'u8',
1502
+ },
1503
+ ],
1504
+ },
1505
+ },
1506
+ {
1507
+ name: 'BondOfferValidation',
1508
+ type: {
1509
+ kind: 'struct',
1510
+ fields: [
1511
+ {
1512
+ name: 'loanToValueFilter',
1513
+ type: 'u64',
1514
+ },
1515
+ {
1516
+ name: 'durationFilter',
1517
+ type: 'u64',
1518
+ },
1519
+ {
1520
+ name: 'maxReturnAmountFilter',
1521
+ type: 'u64',
1522
+ },
1523
+ {
1524
+ name: 'bondFeatures',
1525
+ type: {
1526
+ defined: 'BondFeatures',
1527
+ },
1528
+ },
1529
+ ],
1530
+ },
1531
+ },
1532
+ {
1533
+ name: 'BondOfferBondingCurve',
1534
+ type: {
1535
+ kind: 'struct',
1536
+ fields: [
1537
+ {
1538
+ name: 'delta',
1539
+ type: 'u64',
1540
+ },
1541
+ {
1542
+ name: 'bondingType',
1543
+ type: {
1544
+ defined: 'BondOfferBondingCurveType',
1545
+ },
1546
+ },
1547
+ ],
1548
+ },
1549
+ },
1550
+ {
1551
+ name: 'AuthorizationDataLocal',
1552
+ type: {
1553
+ kind: 'struct',
1554
+ fields: [
1555
+ {
1556
+ name: 'payload',
1557
+ type: {
1558
+ vec: {
1559
+ defined: 'TaggedPayload',
1560
+ },
1561
+ },
1562
+ },
1563
+ ],
1564
+ },
1565
+ },
1566
+ {
1567
+ name: 'TaggedPayload',
1568
+ type: {
1569
+ kind: 'struct',
1570
+ fields: [
1571
+ {
1572
+ name: 'name',
1573
+ type: 'string',
1574
+ },
1575
+ {
1576
+ name: 'payload',
1577
+ type: {
1578
+ defined: 'PayloadTypeLocal',
1579
+ },
1580
+ },
1581
+ ],
1582
+ },
1583
+ },
1584
+ {
1585
+ name: 'SeedsVecLocal',
1586
+ type: {
1587
+ kind: 'struct',
1588
+ fields: [
1589
+ {
1590
+ name: 'seeds',
1591
+ docs: ['The vector of derivation seeds.'],
1592
+ type: {
1593
+ vec: 'bytes',
1594
+ },
1595
+ },
1596
+ ],
1597
+ },
1598
+ },
1599
+ {
1600
+ name: 'ProofInfoLocal',
1601
+ type: {
1602
+ kind: 'struct',
1603
+ fields: [
1604
+ {
1605
+ name: 'proof',
1606
+ docs: ['The merkle proof.'],
1607
+ type: {
1608
+ vec: {
1609
+ array: ['u8', 32],
1610
+ },
1611
+ },
1612
+ },
1613
+ ],
1614
+ },
1615
+ },
1616
+ {
1617
+ name: 'BanxAdventureSubscriptionState',
1618
+ type: {
1619
+ kind: 'enum',
1620
+ variants: [
1621
+ {
1622
+ name: 'None',
1623
+ },
1624
+ {
1625
+ name: 'Active',
1626
+ },
1627
+ {
1628
+ name: 'Claimed',
1629
+ },
1630
+ ],
1631
+ },
1632
+ },
1633
+ {
1634
+ name: 'BanxAdventureState',
1635
+ type: {
1636
+ kind: 'enum',
1637
+ variants: [
1638
+ {
1639
+ name: 'None',
1640
+ },
1641
+ {
1642
+ name: 'Active',
1643
+ },
1644
+ ],
1645
+ },
1646
+ },
1647
+ {
1648
+ name: 'BanxStakingSettingsState',
1649
+ type: {
1650
+ kind: 'enum',
1651
+ variants: [
1652
+ {
1653
+ name: 'None',
1654
+ },
1655
+ {
1656
+ name: 'Active',
1657
+ },
1658
+ ],
1659
+ },
1660
+ },
1661
+ {
1662
+ name: 'BanxTokenStakeState',
1663
+ type: {
1664
+ kind: 'enum',
1665
+ variants: [
1666
+ {
1667
+ name: 'None',
1668
+ },
1669
+ {
1670
+ name: 'Staked',
1671
+ },
1672
+ {
1673
+ name: 'Unstaked',
1674
+ },
1675
+ ],
1676
+ },
1677
+ },
1678
+ {
1679
+ name: 'CollateralBoxType',
1680
+ type: {
1681
+ kind: 'enum',
1682
+ variants: [
1683
+ {
1684
+ name: 'Escrow',
1685
+ },
1686
+ {
1687
+ name: 'Escrowless',
1688
+ },
1689
+ ],
1690
+ },
1691
+ },
1692
+ {
1693
+ name: 'FraktBondState',
1694
+ type: {
1695
+ kind: 'enum',
1696
+ variants: [
1697
+ {
1698
+ name: 'Initialized',
1699
+ },
1700
+ {
1701
+ name: 'Active',
1702
+ },
1703
+ {
1704
+ name: 'Repaid',
1705
+ },
1706
+ {
1707
+ name: 'Liquidating',
1708
+ },
1709
+ {
1710
+ name: 'Liquidated',
1711
+ },
1712
+ {
1713
+ name: 'PerpetualActive',
1714
+ },
1715
+ {
1716
+ name: 'PerpetualRepaid',
1717
+ },
1718
+ {
1719
+ name: 'PerpetualLiquidatedByAuction',
1720
+ },
1721
+ {
1722
+ name: 'PerpetualLiquidatedByClaim',
1723
+ },
1724
+ ],
1725
+ },
1726
+ },
1727
+ {
1728
+ name: 'RoundState',
1729
+ type: {
1730
+ kind: 'enum',
1731
+ variants: [
1732
+ {
1733
+ name: 'Uninitialized',
1734
+ },
1735
+ {
1736
+ name: 'Initialized',
1737
+ },
1738
+ {
1739
+ name: 'Open',
1740
+ },
1741
+ {
1742
+ name: 'Drawn',
1743
+ },
1744
+ ],
1745
+ },
1746
+ },
1747
+ {
1748
+ name: 'NftValidationWhitelistTypeHado',
1749
+ type: {
1750
+ kind: 'enum',
1751
+ variants: [
1752
+ {
1753
+ name: 'Creator',
1754
+ },
1755
+ {
1756
+ name: 'Nft',
1757
+ },
1758
+ {
1759
+ name: 'MerkleTree',
1760
+ },
1761
+ {
1762
+ name: 'CollectionId',
1763
+ },
1764
+ ],
1765
+ },
1766
+ },
1767
+ {
1768
+ name: 'MarketTrustType',
1769
+ type: {
1770
+ kind: 'enum',
1771
+ variants: [
1772
+ {
1773
+ name: 'Unverified',
1774
+ },
1775
+ {
1776
+ name: 'Verified',
1777
+ },
1778
+ ],
1779
+ },
1780
+ },
1781
+ {
1782
+ name: 'MarketState',
1783
+ type: {
1784
+ kind: 'enum',
1785
+ variants: [
1786
+ {
1787
+ name: 'Initializing',
1788
+ },
1789
+ {
1790
+ name: 'Available',
1791
+ },
1792
+ {
1793
+ name: 'InitializingPerpetual',
1794
+ },
1795
+ {
1796
+ name: 'AvailablePerpetual',
1797
+ },
1798
+ {
1799
+ name: 'PrivateAvailablePerpetual',
1800
+ },
1801
+ ],
1802
+ },
1803
+ },
1804
+ {
1805
+ name: 'PairValidationType',
1806
+ type: {
1807
+ kind: 'enum',
1808
+ variants: [
1809
+ {
1810
+ name: 'ClassicValidation',
1811
+ },
1812
+ {
1813
+ name: 'CustomValidation',
1814
+ },
1815
+ ],
1816
+ },
1817
+ },
1818
+ {
1819
+ name: 'PairTokenType',
1820
+ type: {
1821
+ kind: 'enum',
1822
+ variants: [
1823
+ {
1824
+ name: 'NativeSol',
1825
+ },
1826
+ {
1827
+ name: 'Spl',
1828
+ },
1829
+ ],
1830
+ },
1831
+ },
1832
+ {
1833
+ name: 'BanxSolStakingOfferState',
1834
+ type: {
1835
+ kind: 'enum',
1836
+ variants: [
1837
+ {
1838
+ name: 'Uninitialized',
1839
+ },
1840
+ {
1841
+ name: 'Initialized',
1842
+ },
1843
+ {
1844
+ name: 'Closed',
1845
+ },
1846
+ ],
1847
+ },
1848
+ },
1849
+ {
1850
+ name: 'BondFeatures',
1851
+ type: {
1852
+ kind: 'enum',
1853
+ variants: [
1854
+ {
1855
+ name: 'None',
1856
+ },
1857
+ {
1858
+ name: 'Autocompound',
1859
+ },
1860
+ {
1861
+ name: 'ReceiveNftOnLiquidation',
1862
+ },
1863
+ {
1864
+ name: 'AutoreceiveSol',
1865
+ },
1866
+ {
1867
+ name: 'AutoCompoundAndReceiveNft',
1868
+ },
1869
+ {
1870
+ name: 'AutoReceiveAndReceiveNft',
1871
+ },
1872
+ ],
1873
+ },
1874
+ },
1875
+ {
1876
+ name: 'PairState',
1877
+ type: {
1878
+ kind: 'enum',
1879
+ variants: [
1880
+ {
1881
+ name: 'PairState',
1882
+ },
1883
+ {
1884
+ name: 'OnMarketVirtual',
1885
+ },
1886
+ {
1887
+ name: 'OnMarketTokenized',
1888
+ },
1889
+ {
1890
+ name: 'Frozen',
1891
+ },
1892
+ {
1893
+ name: 'Closed',
1894
+ },
1895
+ {
1896
+ name: 'PerpetualOnMarket',
1897
+ },
1898
+ {
1899
+ name: 'PerpetualClosed',
1900
+ },
1901
+ {
1902
+ name: 'PerpetualBondingCurveOnMarket',
1903
+ },
1904
+ {
1905
+ name: 'PerpetualMigrated',
1906
+ },
1907
+ {
1908
+ name: 'PerpetualBondingCurveClosed',
1909
+ },
1910
+ {
1911
+ name: 'PerpetualListing',
1912
+ },
1913
+ ],
1914
+ },
1915
+ },
1916
+ {
1917
+ name: 'BondOfferBondingCurveType',
1918
+ type: {
1919
+ kind: 'enum',
1920
+ variants: [
1921
+ {
1922
+ name: 'Linear',
1923
+ },
1924
+ {
1925
+ name: 'Exponential',
1926
+ },
1927
+ {
1928
+ name: 'LinearUsdc',
1929
+ },
1930
+ {
1931
+ name: 'ExponentialUsdc',
1932
+ },
1933
+ {
1934
+ name: 'LinearBanxSol',
1935
+ },
1936
+ {
1937
+ name: 'ExponentialBanxSol',
1938
+ },
1939
+ ],
1940
+ },
1941
+ },
1942
+ {
1943
+ name: 'BondTradeTransactionV2State',
1944
+ type: {
1945
+ kind: 'enum',
1946
+ variants: [
1947
+ {
1948
+ name: 'NotActive',
1949
+ },
1950
+ {
1951
+ name: 'Active',
1952
+ },
1953
+ {
1954
+ name: 'PerpetualActive',
1955
+ },
1956
+ {
1957
+ name: 'PerpetualRepaid',
1958
+ },
1959
+ {
1960
+ name: 'PerpetualLiquidatedByAuction',
1961
+ },
1962
+ {
1963
+ name: 'PerpetualLiquidatedByClaim',
1964
+ },
1965
+ {
1966
+ name: 'PerpetualManualTerminating',
1967
+ },
1968
+ {
1969
+ name: 'PerpetualPartialRepaid',
1970
+ },
1971
+ {
1972
+ name: 'PerpetualRefinanceRepaid',
1973
+ },
1974
+ {
1975
+ name: 'PerpetualRefinancedActive',
1976
+ },
1977
+ {
1978
+ name: 'Migrated',
1979
+ },
1980
+ {
1981
+ name: 'PerpetualBorrowerListing',
1982
+ },
1983
+ {
1984
+ name: 'PerpetualLenderListing',
1985
+ },
1986
+ ],
1987
+ },
1988
+ },
1989
+ {
1990
+ name: 'BondTradeTransactionV2Type',
1991
+ type: {
1992
+ kind: 'enum',
1993
+ variants: [
1994
+ {
1995
+ name: 'None',
1996
+ },
1997
+ {
1998
+ name: 'Autocompound',
1999
+ },
2000
+ {
2001
+ name: 'ReceiveNftOnLiquidation',
2002
+ },
2003
+ {
2004
+ name: 'AutoreceiveSol',
2005
+ },
2006
+ {
2007
+ name: 'AutoCompoundAndReceiveNft',
2008
+ },
2009
+ {
2010
+ name: 'AutoReceiveAndReceiveNft',
2011
+ },
2012
+ ],
2013
+ },
2014
+ },
2015
+ {
2016
+ name: 'RedeemResult',
2017
+ type: {
2018
+ kind: 'enum',
2019
+ variants: [
2020
+ {
2021
+ name: 'None',
2022
+ },
2023
+ {
2024
+ name: 'DirectBorrow',
2025
+ },
2026
+ {
2027
+ name: 'Reborrow',
2028
+ },
2029
+ {
2030
+ name: 'InstantRefinanced',
2031
+ },
2032
+ {
2033
+ name: 'RefinancedByAuction',
2034
+ },
2035
+ {
2036
+ name: 'PartialRepay',
2037
+ },
2038
+ {
2039
+ name: 'DirectRepaid',
2040
+ },
2041
+ {
2042
+ name: 'Claimed',
2043
+ },
2044
+ {
2045
+ name: 'DirectBorrowAndDirectRepaid',
2046
+ },
2047
+ {
2048
+ name: 'DirectBorrowAndReborrowRepaid',
2049
+ },
2050
+ {
2051
+ name: 'DirectBorrowAndInstantRefinancedRepaid',
2052
+ },
2053
+ {
2054
+ name: 'DirectBorrowAndRefinancedByAuctionRepaid',
2055
+ },
2056
+ {
2057
+ name: 'DirectBorrowAndPartialRepaid',
2058
+ },
2059
+ {
2060
+ name: 'DirectBorrowAndClaimed',
2061
+ },
2062
+ {
2063
+ name: 'ReborrowAndDirectRepaid',
2064
+ },
2065
+ {
2066
+ name: 'ReborrowAndReborrowRepaid',
2067
+ },
2068
+ {
2069
+ name: 'ReborrowAndInstantRefinancedRepaid',
2070
+ },
2071
+ {
2072
+ name: 'ReborrowAndRefinancedByAuctionRepaid',
2073
+ },
2074
+ {
2075
+ name: 'ReborrowAndPartialRepaid',
2076
+ },
2077
+ {
2078
+ name: 'ReborrowAndClaimed',
2079
+ },
2080
+ {
2081
+ name: 'InstantRefinancedAndDirectRepaid',
2082
+ },
2083
+ {
2084
+ name: 'InstantRefinancedAndReborrowRepaid',
2085
+ },
2086
+ {
2087
+ name: 'InstantRefinancedAndInstantRefinancedRepaid',
2088
+ },
2089
+ {
2090
+ name: 'InstantRefinancedAndRefinancedByAuctionRepaid',
2091
+ },
2092
+ {
2093
+ name: 'InstantRefinancedAndPartialRepaid',
2094
+ },
2095
+ {
2096
+ name: 'InstantRefinancedAndClaimed',
2097
+ },
2098
+ {
2099
+ name: 'RefinancedByAuctionAndDirectRepaid',
2100
+ },
2101
+ {
2102
+ name: 'RefinancedByAuctionAndReborrowRepaid',
2103
+ },
2104
+ {
2105
+ name: 'RefinancedByAuctionAndInstantRefinancedRepaid',
2106
+ },
2107
+ {
2108
+ name: 'RefinancedByAuctionAndRefinancedByAuctionRepaid',
2109
+ },
2110
+ {
2111
+ name: 'RefinancedByAuctionAndPartialRepaid',
2112
+ },
2113
+ {
2114
+ name: 'RefinancedByAuctionAndClaimed',
2115
+ },
2116
+ {
2117
+ name: 'PartialRepaidAndDirectRepaid',
2118
+ },
2119
+ {
2120
+ name: 'PartialRepaidAndReborrowRepaid',
2121
+ },
2122
+ {
2123
+ name: 'PartialRepaidAndInstantRefinancedRepaid',
2124
+ },
2125
+ {
2126
+ name: 'PartialRepaidAndRefinancedByAuctionRepaid',
2127
+ },
2128
+ {
2129
+ name: 'PartialRepaidAndPartialRepaid',
2130
+ },
2131
+ {
2132
+ name: 'PartialRepaidAndClaimed',
2133
+ },
2134
+ ],
2135
+ },
2136
+ },
2137
+ {
2138
+ name: 'LendingTokenType',
2139
+ type: {
2140
+ kind: 'enum',
2141
+ variants: [
2142
+ {
2143
+ name: 'NativeSol',
2144
+ },
2145
+ {
2146
+ name: 'Usdc',
2147
+ },
2148
+ {
2149
+ name: 'BanxSol',
2150
+ },
2151
+ ],
2152
+ },
2153
+ },
2154
+ {
2155
+ name: 'RepayDestination',
2156
+ type: {
2157
+ kind: 'enum',
2158
+ variants: [
2159
+ {
2160
+ name: 'None',
2161
+ },
2162
+ {
2163
+ name: 'Offer',
2164
+ },
2165
+ {
2166
+ name: 'Wallet',
2167
+ },
2168
+ {
2169
+ name: 'Vault',
2170
+ },
2171
+ ],
2172
+ },
2173
+ },
2174
+ {
2175
+ name: 'CallState',
2176
+ type: {
2177
+ kind: 'enum',
2178
+ variants: [
2179
+ {
2180
+ name: 'Uninitialized',
2181
+ },
2182
+ {
2183
+ name: 'Initialized',
2184
+ },
2185
+ ],
2186
+ },
2187
+ },
2188
+ {
2189
+ name: 'AdventureState',
2190
+ type: {
2191
+ kind: 'enum',
2192
+ variants: [
2193
+ {
2194
+ name: 'Uninitialized',
2195
+ },
2196
+ {
2197
+ name: 'Initialized',
2198
+ },
2199
+ {
2200
+ name: 'DistributingInitialized',
2201
+ },
2202
+ ],
2203
+ },
2204
+ },
2205
+ {
2206
+ name: 'BanxStakeState',
2207
+ type: {
2208
+ kind: 'enum',
2209
+ variants: [
2210
+ {
2211
+ name: 'Staked',
2212
+ },
2213
+ {
2214
+ name: 'Unstaked',
2215
+ },
2216
+ {
2217
+ name: 'Liquidated',
2218
+ },
2219
+ ],
2220
+ },
2221
+ },
2222
+ {
2223
+ name: 'PayloadTypeLocal',
2224
+ type: {
2225
+ kind: 'enum',
2226
+ variants: [
2227
+ {
2228
+ name: 'Pubkey',
2229
+ fields: ['publicKey'],
2230
+ },
2231
+ {
2232
+ name: 'Seeds',
2233
+ fields: [
2234
+ {
2235
+ defined: 'SeedsVecLocal',
2236
+ },
2237
+ ],
2238
+ },
2239
+ {
2240
+ name: 'MerkleProof',
2241
+ fields: [
2242
+ {
2243
+ defined: 'ProofInfoLocal',
2244
+ },
2245
+ ],
2246
+ },
2247
+ {
2248
+ name: 'Number',
2249
+ fields: ['u64'],
2250
+ },
2251
+ ],
2252
+ },
2253
+ },
2254
+ ],
2255
+ };
2256
+ //# sourceMappingURL=idl.js.map