@sonarwatch/portfolio-plugins 0.12.127 → 0.12.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/CHANGELOG.md +2237 -2225
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +10 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/deepbook/airdropFetcher.d.ts +2 -0
  8. package/src/plugins/deepbook/airdropFetcher.js +66 -0
  9. package/src/plugins/deepbook/airdropFetcher.js.map +1 -0
  10. package/src/plugins/deepbook/constants.d.ts +7 -0
  11. package/src/plugins/deepbook/constants.js +24 -0
  12. package/src/plugins/deepbook/constants.js.map +1 -0
  13. package/src/plugins/deepbook/index.d.ts +8 -0
  14. package/src/plugins/deepbook/index.js +10 -0
  15. package/src/plugins/deepbook/index.js.map +1 -0
  16. package/src/plugins/quarry/calculatePositions.d.ts +3 -0
  17. package/src/plugins/quarry/calculatePositions.js +47 -0
  18. package/src/plugins/quarry/calculatePositions.js.map +1 -0
  19. package/src/plugins/quarry/constants.d.ts +4 -0
  20. package/src/plugins/quarry/constants.js +15 -1
  21. package/src/plugins/quarry/constants.js.map +1 -1
  22. package/src/plugins/quarry/filters.d.ts +3 -0
  23. package/src/plugins/quarry/filters.js +24 -0
  24. package/src/plugins/quarry/filters.js.map +1 -0
  25. package/src/plugins/quarry/helpers.d.ts +4 -16
  26. package/src/plugins/quarry/helpers.js +5 -4
  27. package/src/plugins/quarry/helpers.js.map +1 -1
  28. package/src/plugins/quarry/index.js +2 -1
  29. package/src/plugins/quarry/index.js.map +1 -1
  30. package/src/plugins/quarry/mergeMineIdl.d.ts +91 -0
  31. package/src/plugins/quarry/mergeMineIdl.js +1183 -0
  32. package/src/plugins/quarry/mergeMineIdl.js.map +1 -0
  33. package/src/plugins/quarry/positionsFetcher.js +43 -47
  34. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  35. package/src/plugins/quarry/redeemerIdl.d.ts +59 -0
  36. package/src/plugins/quarry/redeemerIdl.js +219 -0
  37. package/src/plugins/quarry/redeemerIdl.js.map +1 -0
  38. package/src/plugins/quarry/redeemersJob.d.ts +3 -0
  39. package/src/plugins/quarry/redeemersJob.js +56 -0
  40. package/src/plugins/quarry/redeemersJob.js.map +1 -0
  41. package/src/plugins/quarry/types.d.ts +39 -0
  42. package/src/plugins/suins/airdropFetcher.d.ts +2 -0
  43. package/src/plugins/suins/airdropFetcher.js +67 -0
  44. package/src/plugins/suins/airdropFetcher.js.map +1 -0
  45. package/src/plugins/suins/constants.d.ts +7 -0
  46. package/src/plugins/suins/constants.js +24 -0
  47. package/src/plugins/suins/constants.js.map +1 -0
  48. package/src/plugins/suins/index.d.ts +8 -0
  49. package/src/plugins/suins/index.js +10 -0
  50. package/src/plugins/suins/index.js.map +1 -0
  51. package/src/plugins/sushiswap/helpers.js +24 -24
  52. package/src/plugins/uniswap-v2/helpers.js +22 -22
  53. package/src/utils/sei/constants.js +8 -8
  54. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  55. package/src/utils/sui/types.d.ts +6 -0
@@ -0,0 +1,1183 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeMineIdl = void 0;
4
+ exports.mergeMineIdl = {
5
+ version: '5.0.2',
6
+ name: 'quarry_merge_mine',
7
+ instructions: [
8
+ {
9
+ name: 'newPool',
10
+ accounts: [
11
+ {
12
+ name: 'pool',
13
+ isMut: !0,
14
+ isSigner: !1,
15
+ pda: {
16
+ seeds: [
17
+ {
18
+ kind: 'const',
19
+ type: 'string',
20
+ value: 'MergePool',
21
+ },
22
+ {
23
+ kind: 'account',
24
+ type: 'publicKey',
25
+ account: 'Mint',
26
+ path: 'primary_mint',
27
+ },
28
+ ],
29
+ },
30
+ },
31
+ {
32
+ name: 'primaryMint',
33
+ isMut: !1,
34
+ isSigner: !1,
35
+ },
36
+ {
37
+ name: 'replicaMint',
38
+ isMut: !0,
39
+ isSigner: !1,
40
+ pda: {
41
+ seeds: [
42
+ {
43
+ kind: 'const',
44
+ type: 'string',
45
+ value: 'ReplicaMint',
46
+ },
47
+ {
48
+ kind: 'account',
49
+ type: 'publicKey',
50
+ account: 'MergePool',
51
+ path: 'pool',
52
+ },
53
+ ],
54
+ },
55
+ },
56
+ {
57
+ name: 'payer',
58
+ isMut: !0,
59
+ isSigner: !0,
60
+ },
61
+ {
62
+ name: 'tokenProgram',
63
+ isMut: !1,
64
+ isSigner: !1,
65
+ },
66
+ {
67
+ name: 'systemProgram',
68
+ isMut: !1,
69
+ isSigner: !1,
70
+ },
71
+ {
72
+ name: 'rent',
73
+ isMut: !1,
74
+ isSigner: !1,
75
+ },
76
+ ],
77
+ args: [
78
+ {
79
+ name: 'bump',
80
+ type: 'u8',
81
+ },
82
+ {
83
+ name: 'mintBump',
84
+ type: 'u8',
85
+ },
86
+ ],
87
+ },
88
+ {
89
+ name: 'newPoolV2',
90
+ accounts: [
91
+ {
92
+ name: 'pool',
93
+ isMut: !0,
94
+ isSigner: !1,
95
+ pda: {
96
+ seeds: [
97
+ {
98
+ kind: 'const',
99
+ type: 'string',
100
+ value: 'MergePool',
101
+ },
102
+ {
103
+ kind: 'account',
104
+ type: 'publicKey',
105
+ account: 'Mint',
106
+ path: 'primary_mint',
107
+ },
108
+ ],
109
+ },
110
+ },
111
+ {
112
+ name: 'primaryMint',
113
+ isMut: !1,
114
+ isSigner: !1,
115
+ },
116
+ {
117
+ name: 'replicaMint',
118
+ isMut: !0,
119
+ isSigner: !1,
120
+ pda: {
121
+ seeds: [
122
+ {
123
+ kind: 'const',
124
+ type: 'string',
125
+ value: 'ReplicaMint',
126
+ },
127
+ {
128
+ kind: 'account',
129
+ type: 'publicKey',
130
+ account: 'MergePool',
131
+ path: 'pool',
132
+ },
133
+ ],
134
+ },
135
+ },
136
+ {
137
+ name: 'payer',
138
+ isMut: !0,
139
+ isSigner: !0,
140
+ },
141
+ {
142
+ name: 'tokenProgram',
143
+ isMut: !1,
144
+ isSigner: !1,
145
+ },
146
+ {
147
+ name: 'systemProgram',
148
+ isMut: !1,
149
+ isSigner: !1,
150
+ },
151
+ {
152
+ name: 'rent',
153
+ isMut: !1,
154
+ isSigner: !1,
155
+ },
156
+ ],
157
+ args: [],
158
+ },
159
+ {
160
+ name: 'initMergeMiner',
161
+ accounts: [
162
+ {
163
+ name: 'pool',
164
+ isMut: !1,
165
+ isSigner: !1,
166
+ },
167
+ {
168
+ name: 'owner',
169
+ isMut: !1,
170
+ isSigner: !1,
171
+ },
172
+ {
173
+ name: 'mm',
174
+ isMut: !0,
175
+ isSigner: !1,
176
+ pda: {
177
+ seeds: [
178
+ {
179
+ kind: 'const',
180
+ type: 'string',
181
+ value: 'MergeMiner',
182
+ },
183
+ {
184
+ kind: 'account',
185
+ type: 'publicKey',
186
+ account: 'MergePool',
187
+ path: 'pool',
188
+ },
189
+ {
190
+ kind: 'account',
191
+ type: 'publicKey',
192
+ path: 'owner',
193
+ },
194
+ ],
195
+ },
196
+ },
197
+ {
198
+ name: 'payer',
199
+ isMut: !0,
200
+ isSigner: !0,
201
+ },
202
+ {
203
+ name: 'systemProgram',
204
+ isMut: !1,
205
+ isSigner: !1,
206
+ },
207
+ ],
208
+ args: [
209
+ {
210
+ name: 'bump',
211
+ type: 'u8',
212
+ },
213
+ ],
214
+ },
215
+ {
216
+ name: 'initMergeMinerV2',
217
+ accounts: [
218
+ {
219
+ name: 'pool',
220
+ isMut: !1,
221
+ isSigner: !1,
222
+ },
223
+ {
224
+ name: 'owner',
225
+ isMut: !1,
226
+ isSigner: !1,
227
+ },
228
+ {
229
+ name: 'mm',
230
+ isMut: !0,
231
+ isSigner: !1,
232
+ pda: {
233
+ seeds: [
234
+ {
235
+ kind: 'const',
236
+ type: 'string',
237
+ value: 'MergeMiner',
238
+ },
239
+ {
240
+ kind: 'account',
241
+ type: 'publicKey',
242
+ account: 'MergePool',
243
+ path: 'pool',
244
+ },
245
+ {
246
+ kind: 'account',
247
+ type: 'publicKey',
248
+ path: 'owner',
249
+ },
250
+ ],
251
+ },
252
+ },
253
+ {
254
+ name: 'payer',
255
+ isMut: !0,
256
+ isSigner: !0,
257
+ },
258
+ {
259
+ name: 'systemProgram',
260
+ isMut: !1,
261
+ isSigner: !1,
262
+ },
263
+ ],
264
+ args: [],
265
+ },
266
+ {
267
+ name: 'initMiner',
268
+ accounts: [
269
+ {
270
+ name: 'pool',
271
+ isMut: !1,
272
+ isSigner: !1,
273
+ },
274
+ {
275
+ name: 'mm',
276
+ isMut: !1,
277
+ isSigner: !1,
278
+ },
279
+ {
280
+ name: 'miner',
281
+ isMut: !0,
282
+ isSigner: !1,
283
+ },
284
+ {
285
+ name: 'quarry',
286
+ isMut: !0,
287
+ isSigner: !1,
288
+ },
289
+ {
290
+ name: 'rewarder',
291
+ isMut: !1,
292
+ isSigner: !1,
293
+ },
294
+ {
295
+ name: 'tokenMint',
296
+ isMut: !1,
297
+ isSigner: !1,
298
+ },
299
+ {
300
+ name: 'minerVault',
301
+ isMut: !1,
302
+ isSigner: !1,
303
+ },
304
+ {
305
+ name: 'payer',
306
+ isMut: !0,
307
+ isSigner: !0,
308
+ },
309
+ {
310
+ name: 'mineProgram',
311
+ isMut: !1,
312
+ isSigner: !1,
313
+ },
314
+ {
315
+ name: 'systemProgram',
316
+ isMut: !1,
317
+ isSigner: !1,
318
+ },
319
+ {
320
+ name: 'tokenProgram',
321
+ isMut: !1,
322
+ isSigner: !1,
323
+ },
324
+ ],
325
+ args: [
326
+ {
327
+ name: 'bump',
328
+ type: 'u8',
329
+ },
330
+ ],
331
+ },
332
+ {
333
+ name: 'initMinerV2',
334
+ accounts: [
335
+ {
336
+ name: 'pool',
337
+ isMut: !1,
338
+ isSigner: !1,
339
+ },
340
+ {
341
+ name: 'mm',
342
+ isMut: !1,
343
+ isSigner: !1,
344
+ },
345
+ {
346
+ name: 'miner',
347
+ isMut: !0,
348
+ isSigner: !1,
349
+ },
350
+ {
351
+ name: 'quarry',
352
+ isMut: !0,
353
+ isSigner: !1,
354
+ },
355
+ {
356
+ name: 'rewarder',
357
+ isMut: !1,
358
+ isSigner: !1,
359
+ },
360
+ {
361
+ name: 'tokenMint',
362
+ isMut: !1,
363
+ isSigner: !1,
364
+ },
365
+ {
366
+ name: 'minerVault',
367
+ isMut: !1,
368
+ isSigner: !1,
369
+ },
370
+ {
371
+ name: 'payer',
372
+ isMut: !0,
373
+ isSigner: !0,
374
+ },
375
+ {
376
+ name: 'mineProgram',
377
+ isMut: !1,
378
+ isSigner: !1,
379
+ },
380
+ {
381
+ name: 'systemProgram',
382
+ isMut: !1,
383
+ isSigner: !1,
384
+ },
385
+ {
386
+ name: 'tokenProgram',
387
+ isMut: !1,
388
+ isSigner: !1,
389
+ },
390
+ ],
391
+ args: [],
392
+ },
393
+ {
394
+ name: 'stakePrimaryMiner',
395
+ accounts: [
396
+ {
397
+ name: 'mmOwner',
398
+ isMut: !1,
399
+ isSigner: !0,
400
+ },
401
+ {
402
+ name: 'mmPrimaryTokenAccount',
403
+ isMut: !0,
404
+ isSigner: !1,
405
+ },
406
+ {
407
+ name: 'stake',
408
+ accounts: [
409
+ {
410
+ name: 'pool',
411
+ isMut: !0,
412
+ isSigner: !1,
413
+ },
414
+ {
415
+ name: 'mm',
416
+ isMut: !0,
417
+ isSigner: !1,
418
+ },
419
+ {
420
+ name: 'rewarder',
421
+ isMut: !1,
422
+ isSigner: !1,
423
+ },
424
+ {
425
+ name: 'quarry',
426
+ isMut: !0,
427
+ isSigner: !1,
428
+ },
429
+ {
430
+ name: 'miner',
431
+ isMut: !0,
432
+ isSigner: !1,
433
+ },
434
+ {
435
+ name: 'minerVault',
436
+ isMut: !0,
437
+ isSigner: !1,
438
+ },
439
+ {
440
+ name: 'tokenProgram',
441
+ isMut: !1,
442
+ isSigner: !1,
443
+ },
444
+ {
445
+ name: 'mineProgram',
446
+ isMut: !1,
447
+ isSigner: !1,
448
+ },
449
+ ],
450
+ },
451
+ ],
452
+ args: [],
453
+ },
454
+ {
455
+ name: 'stakeReplicaMiner',
456
+ accounts: [
457
+ {
458
+ name: 'mmOwner',
459
+ isMut: !1,
460
+ isSigner: !0,
461
+ },
462
+ {
463
+ name: 'replicaMint',
464
+ isMut: !0,
465
+ isSigner: !1,
466
+ },
467
+ {
468
+ name: 'replicaMintTokenAccount',
469
+ isMut: !0,
470
+ isSigner: !1,
471
+ },
472
+ {
473
+ name: 'stake',
474
+ accounts: [
475
+ {
476
+ name: 'pool',
477
+ isMut: !0,
478
+ isSigner: !1,
479
+ },
480
+ {
481
+ name: 'mm',
482
+ isMut: !0,
483
+ isSigner: !1,
484
+ },
485
+ {
486
+ name: 'rewarder',
487
+ isMut: !1,
488
+ isSigner: !1,
489
+ },
490
+ {
491
+ name: 'quarry',
492
+ isMut: !0,
493
+ isSigner: !1,
494
+ },
495
+ {
496
+ name: 'miner',
497
+ isMut: !0,
498
+ isSigner: !1,
499
+ },
500
+ {
501
+ name: 'minerVault',
502
+ isMut: !0,
503
+ isSigner: !1,
504
+ },
505
+ {
506
+ name: 'tokenProgram',
507
+ isMut: !1,
508
+ isSigner: !1,
509
+ },
510
+ {
511
+ name: 'mineProgram',
512
+ isMut: !1,
513
+ isSigner: !1,
514
+ },
515
+ ],
516
+ },
517
+ ],
518
+ args: [],
519
+ },
520
+ {
521
+ name: 'unstakePrimaryMiner',
522
+ accounts: [
523
+ {
524
+ name: 'mmOwner',
525
+ isMut: !1,
526
+ isSigner: !0,
527
+ },
528
+ {
529
+ name: 'mmPrimaryTokenAccount',
530
+ isMut: !0,
531
+ isSigner: !1,
532
+ },
533
+ {
534
+ name: 'stake',
535
+ accounts: [
536
+ {
537
+ name: 'pool',
538
+ isMut: !0,
539
+ isSigner: !1,
540
+ },
541
+ {
542
+ name: 'mm',
543
+ isMut: !0,
544
+ isSigner: !1,
545
+ },
546
+ {
547
+ name: 'rewarder',
548
+ isMut: !1,
549
+ isSigner: !1,
550
+ },
551
+ {
552
+ name: 'quarry',
553
+ isMut: !0,
554
+ isSigner: !1,
555
+ },
556
+ {
557
+ name: 'miner',
558
+ isMut: !0,
559
+ isSigner: !1,
560
+ },
561
+ {
562
+ name: 'minerVault',
563
+ isMut: !0,
564
+ isSigner: !1,
565
+ },
566
+ {
567
+ name: 'tokenProgram',
568
+ isMut: !1,
569
+ isSigner: !1,
570
+ },
571
+ {
572
+ name: 'mineProgram',
573
+ isMut: !1,
574
+ isSigner: !1,
575
+ },
576
+ ],
577
+ },
578
+ ],
579
+ args: [
580
+ {
581
+ name: 'amount',
582
+ type: 'u64',
583
+ },
584
+ ],
585
+ },
586
+ {
587
+ name: 'unstakeAllReplicaMiner',
588
+ accounts: [
589
+ {
590
+ name: 'mmOwner',
591
+ isMut: !1,
592
+ isSigner: !0,
593
+ },
594
+ {
595
+ name: 'replicaMint',
596
+ isMut: !0,
597
+ isSigner: !1,
598
+ },
599
+ {
600
+ name: 'replicaMintTokenAccount',
601
+ isMut: !0,
602
+ isSigner: !1,
603
+ },
604
+ {
605
+ name: 'stake',
606
+ accounts: [
607
+ {
608
+ name: 'pool',
609
+ isMut: !0,
610
+ isSigner: !1,
611
+ },
612
+ {
613
+ name: 'mm',
614
+ isMut: !0,
615
+ isSigner: !1,
616
+ },
617
+ {
618
+ name: 'rewarder',
619
+ isMut: !1,
620
+ isSigner: !1,
621
+ },
622
+ {
623
+ name: 'quarry',
624
+ isMut: !0,
625
+ isSigner: !1,
626
+ },
627
+ {
628
+ name: 'miner',
629
+ isMut: !0,
630
+ isSigner: !1,
631
+ },
632
+ {
633
+ name: 'minerVault',
634
+ isMut: !0,
635
+ isSigner: !1,
636
+ },
637
+ {
638
+ name: 'tokenProgram',
639
+ isMut: !1,
640
+ isSigner: !1,
641
+ },
642
+ {
643
+ name: 'mineProgram',
644
+ isMut: !1,
645
+ isSigner: !1,
646
+ },
647
+ ],
648
+ },
649
+ ],
650
+ args: [],
651
+ },
652
+ {
653
+ name: 'withdrawTokens',
654
+ accounts: [
655
+ {
656
+ name: 'owner',
657
+ isMut: !1,
658
+ isSigner: !0,
659
+ },
660
+ {
661
+ name: 'pool',
662
+ isMut: !1,
663
+ isSigner: !1,
664
+ },
665
+ {
666
+ name: 'mm',
667
+ isMut: !0,
668
+ isSigner: !1,
669
+ },
670
+ {
671
+ name: 'withdrawMint',
672
+ isMut: !1,
673
+ isSigner: !1,
674
+ },
675
+ {
676
+ name: 'mmTokenAccount',
677
+ isMut: !0,
678
+ isSigner: !1,
679
+ },
680
+ {
681
+ name: 'tokenDestination',
682
+ isMut: !0,
683
+ isSigner: !1,
684
+ },
685
+ {
686
+ name: 'tokenProgram',
687
+ isMut: !1,
688
+ isSigner: !1,
689
+ },
690
+ ],
691
+ args: [],
692
+ },
693
+ {
694
+ name: 'rescueTokens',
695
+ accounts: [
696
+ {
697
+ name: 'mmOwner',
698
+ isMut: !1,
699
+ isSigner: !0,
700
+ },
701
+ {
702
+ name: 'mergePool',
703
+ isMut: !1,
704
+ isSigner: !1,
705
+ },
706
+ {
707
+ name: 'mm',
708
+ isMut: !1,
709
+ isSigner: !1,
710
+ },
711
+ {
712
+ name: 'miner',
713
+ isMut: !1,
714
+ isSigner: !1,
715
+ },
716
+ {
717
+ name: 'minerTokenAccount',
718
+ isMut: !0,
719
+ isSigner: !1,
720
+ },
721
+ {
722
+ name: 'destinationTokenAccount',
723
+ isMut: !0,
724
+ isSigner: !1,
725
+ },
726
+ {
727
+ name: 'quarryMineProgram',
728
+ isMut: !1,
729
+ isSigner: !1,
730
+ },
731
+ {
732
+ name: 'tokenProgram',
733
+ isMut: !1,
734
+ isSigner: !1,
735
+ },
736
+ ],
737
+ args: [],
738
+ },
739
+ {
740
+ name: 'claimRewards',
741
+ accounts: [
742
+ {
743
+ name: 'mintWrapper',
744
+ isMut: !0,
745
+ isSigner: !1,
746
+ },
747
+ {
748
+ name: 'mintWrapperProgram',
749
+ isMut: !1,
750
+ isSigner: !1,
751
+ },
752
+ {
753
+ name: 'minter',
754
+ isMut: !0,
755
+ isSigner: !1,
756
+ },
757
+ {
758
+ name: 'rewardsTokenMint',
759
+ isMut: !0,
760
+ isSigner: !1,
761
+ },
762
+ {
763
+ name: 'rewardsTokenAccount',
764
+ isMut: !0,
765
+ isSigner: !1,
766
+ },
767
+ {
768
+ name: 'claimFeeTokenAccount',
769
+ isMut: !0,
770
+ isSigner: !1,
771
+ },
772
+ {
773
+ name: 'stakeTokenAccount',
774
+ isMut: !0,
775
+ isSigner: !1,
776
+ },
777
+ {
778
+ name: 'stake',
779
+ accounts: [
780
+ {
781
+ name: 'pool',
782
+ isMut: !0,
783
+ isSigner: !1,
784
+ },
785
+ {
786
+ name: 'mm',
787
+ isMut: !0,
788
+ isSigner: !1,
789
+ },
790
+ {
791
+ name: 'rewarder',
792
+ isMut: !1,
793
+ isSigner: !1,
794
+ },
795
+ {
796
+ name: 'quarry',
797
+ isMut: !0,
798
+ isSigner: !1,
799
+ },
800
+ {
801
+ name: 'miner',
802
+ isMut: !0,
803
+ isSigner: !1,
804
+ },
805
+ {
806
+ name: 'minerVault',
807
+ isMut: !0,
808
+ isSigner: !1,
809
+ },
810
+ {
811
+ name: 'tokenProgram',
812
+ isMut: !1,
813
+ isSigner: !1,
814
+ },
815
+ {
816
+ name: 'mineProgram',
817
+ isMut: !1,
818
+ isSigner: !1,
819
+ },
820
+ ],
821
+ },
822
+ ],
823
+ args: [],
824
+ },
825
+ ],
826
+ accounts: [
827
+ {
828
+ name: 'MergePool',
829
+ type: {
830
+ kind: 'struct',
831
+ fields: [
832
+ {
833
+ name: 'primaryMint',
834
+ type: 'publicKey',
835
+ },
836
+ {
837
+ name: 'bump',
838
+ type: 'u8',
839
+ },
840
+ {
841
+ name: 'replicaMint',
842
+ type: 'publicKey',
843
+ },
844
+ {
845
+ name: 'mmCount',
846
+ type: 'u64',
847
+ },
848
+ {
849
+ name: 'totalPrimaryBalance',
850
+ type: 'u64',
851
+ },
852
+ {
853
+ name: 'totalReplicaBalance',
854
+ type: 'u64',
855
+ },
856
+ {
857
+ name: 'reserved',
858
+ type: {
859
+ array: ['u64', 16],
860
+ },
861
+ },
862
+ ],
863
+ },
864
+ },
865
+ {
866
+ name: 'MergeMiner',
867
+ type: {
868
+ kind: 'struct',
869
+ fields: [
870
+ {
871
+ name: 'pool',
872
+ type: 'publicKey',
873
+ },
874
+ {
875
+ name: 'owner',
876
+ type: 'publicKey',
877
+ },
878
+ {
879
+ name: 'bump',
880
+ type: 'u8',
881
+ },
882
+ {
883
+ name: 'index',
884
+ type: 'u64',
885
+ },
886
+ {
887
+ name: 'primaryBalance',
888
+ type: 'u64',
889
+ },
890
+ {
891
+ name: 'replicaBalance',
892
+ type: 'u64',
893
+ },
894
+ ],
895
+ },
896
+ },
897
+ ],
898
+ events: [
899
+ {
900
+ name: 'NewMergePoolEvent',
901
+ fields: [
902
+ {
903
+ name: 'pool',
904
+ type: 'publicKey',
905
+ index: !1,
906
+ },
907
+ {
908
+ name: 'primaryMint',
909
+ type: 'publicKey',
910
+ index: !1,
911
+ },
912
+ ],
913
+ },
914
+ {
915
+ name: 'InitMergeMinerEvent',
916
+ fields: [
917
+ {
918
+ name: 'pool',
919
+ type: 'publicKey',
920
+ index: !1,
921
+ },
922
+ {
923
+ name: 'mm',
924
+ type: 'publicKey',
925
+ index: !1,
926
+ },
927
+ {
928
+ name: 'primaryMint',
929
+ type: 'publicKey',
930
+ index: !1,
931
+ },
932
+ {
933
+ name: 'owner',
934
+ type: 'publicKey',
935
+ index: !1,
936
+ },
937
+ ],
938
+ },
939
+ {
940
+ name: 'InitMinerEvent',
941
+ fields: [
942
+ {
943
+ name: 'pool',
944
+ type: 'publicKey',
945
+ index: !1,
946
+ },
947
+ {
948
+ name: 'mm',
949
+ type: 'publicKey',
950
+ index: !1,
951
+ },
952
+ {
953
+ name: 'miner',
954
+ type: 'publicKey',
955
+ index: !1,
956
+ },
957
+ ],
958
+ },
959
+ {
960
+ name: 'StakePrimaryEvent',
961
+ fields: [
962
+ {
963
+ name: 'pool',
964
+ type: 'publicKey',
965
+ index: !1,
966
+ },
967
+ {
968
+ name: 'mm',
969
+ type: 'publicKey',
970
+ index: !1,
971
+ },
972
+ {
973
+ name: 'miner',
974
+ type: 'publicKey',
975
+ index: !1,
976
+ },
977
+ {
978
+ name: 'owner',
979
+ type: 'publicKey',
980
+ index: !1,
981
+ },
982
+ {
983
+ name: 'amount',
984
+ type: 'u64',
985
+ index: !1,
986
+ },
987
+ ],
988
+ },
989
+ {
990
+ name: 'StakeReplicaEvent',
991
+ fields: [
992
+ {
993
+ name: 'pool',
994
+ type: 'publicKey',
995
+ index: !1,
996
+ },
997
+ {
998
+ name: 'mm',
999
+ type: 'publicKey',
1000
+ index: !1,
1001
+ },
1002
+ {
1003
+ name: 'miner',
1004
+ type: 'publicKey',
1005
+ index: !1,
1006
+ },
1007
+ {
1008
+ name: 'owner',
1009
+ type: 'publicKey',
1010
+ index: !1,
1011
+ },
1012
+ {
1013
+ name: 'amount',
1014
+ type: 'u64',
1015
+ index: !1,
1016
+ },
1017
+ ],
1018
+ },
1019
+ {
1020
+ name: 'UnstakePrimaryEvent',
1021
+ fields: [
1022
+ {
1023
+ name: 'pool',
1024
+ type: 'publicKey',
1025
+ index: !1,
1026
+ },
1027
+ {
1028
+ name: 'mm',
1029
+ type: 'publicKey',
1030
+ index: !1,
1031
+ },
1032
+ {
1033
+ name: 'miner',
1034
+ type: 'publicKey',
1035
+ index: !1,
1036
+ },
1037
+ {
1038
+ name: 'owner',
1039
+ type: 'publicKey',
1040
+ index: !1,
1041
+ },
1042
+ {
1043
+ name: 'amount',
1044
+ type: 'u64',
1045
+ index: !1,
1046
+ },
1047
+ ],
1048
+ },
1049
+ {
1050
+ name: 'UnstakeReplicaEvent',
1051
+ fields: [
1052
+ {
1053
+ name: 'pool',
1054
+ type: 'publicKey',
1055
+ index: !1,
1056
+ },
1057
+ {
1058
+ name: 'mm',
1059
+ type: 'publicKey',
1060
+ index: !1,
1061
+ },
1062
+ {
1063
+ name: 'miner',
1064
+ type: 'publicKey',
1065
+ index: !1,
1066
+ },
1067
+ {
1068
+ name: 'owner',
1069
+ type: 'publicKey',
1070
+ index: !1,
1071
+ },
1072
+ {
1073
+ name: 'amount',
1074
+ type: 'u64',
1075
+ index: !1,
1076
+ },
1077
+ ],
1078
+ },
1079
+ {
1080
+ name: 'WithdrawTokensEvent',
1081
+ fields: [
1082
+ {
1083
+ name: 'pool',
1084
+ type: 'publicKey',
1085
+ index: !1,
1086
+ },
1087
+ {
1088
+ name: 'mm',
1089
+ type: 'publicKey',
1090
+ index: !1,
1091
+ },
1092
+ {
1093
+ name: 'owner',
1094
+ type: 'publicKey',
1095
+ index: !1,
1096
+ },
1097
+ {
1098
+ name: 'mint',
1099
+ type: 'publicKey',
1100
+ index: !1,
1101
+ },
1102
+ {
1103
+ name: 'amount',
1104
+ type: 'u64',
1105
+ index: !1,
1106
+ },
1107
+ ],
1108
+ },
1109
+ {
1110
+ name: 'ClaimEvent',
1111
+ fields: [
1112
+ {
1113
+ name: 'pool',
1114
+ type: 'publicKey',
1115
+ index: !1,
1116
+ },
1117
+ {
1118
+ name: 'mm',
1119
+ type: 'publicKey',
1120
+ index: !1,
1121
+ },
1122
+ {
1123
+ name: 'mint',
1124
+ type: 'publicKey',
1125
+ index: !1,
1126
+ },
1127
+ {
1128
+ name: 'amount',
1129
+ type: 'u64',
1130
+ index: !1,
1131
+ },
1132
+ {
1133
+ name: 'initialBalance',
1134
+ type: 'u64',
1135
+ index: !1,
1136
+ },
1137
+ {
1138
+ name: 'endBalance',
1139
+ type: 'u64',
1140
+ index: !1,
1141
+ },
1142
+ ],
1143
+ },
1144
+ ],
1145
+ errors: [
1146
+ {
1147
+ code: 6e3,
1148
+ name: 'Unauthorized',
1149
+ msg: 'Unauthorized.',
1150
+ },
1151
+ {
1152
+ code: 6001,
1153
+ name: 'InsufficientBalance',
1154
+ msg: 'Insufficient balance.',
1155
+ },
1156
+ {
1157
+ code: 6002,
1158
+ name: 'InvalidMiner',
1159
+ msg: 'Invalid miner for the given quarry.',
1160
+ },
1161
+ {
1162
+ code: 6003,
1163
+ name: 'CannotWithdrawReplicaMint',
1164
+ msg: 'Cannot withdraw a replica mint.',
1165
+ },
1166
+ {
1167
+ code: 6004,
1168
+ name: 'OutstandingReplicaTokens',
1169
+ msg: 'User must first withdraw from all replica quarries.',
1170
+ },
1171
+ {
1172
+ code: 6005,
1173
+ name: 'ReplicaDecimalsMismatch',
1174
+ msg: 'The replica mint must have the same number of decimals as the primary mint.',
1175
+ },
1176
+ {
1177
+ code: 6006,
1178
+ name: 'ReplicaNonZeroSupply',
1179
+ msg: 'The replica mint must have zero supply.',
1180
+ },
1181
+ ],
1182
+ };
1183
+ //# sourceMappingURL=mergeMineIdl.js.map