@helium/spl-utils 0.9.19 → 0.9.20

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 (47) hide show
  1. package/lib/cjs/fetchBackwardsCompatibleIdl.js +31 -15475
  2. package/lib/cjs/fetchBackwardsCompatibleIdl.js.map +1 -1
  3. package/lib/cjs/idl/circuit_breaker.json +550 -0
  4. package/lib/cjs/idl/data_credits.json +1235 -0
  5. package/lib/cjs/idl/fanout.json +736 -0
  6. package/lib/cjs/idl/helium_entity_manager.json +4602 -0
  7. package/lib/cjs/idl/helium_sub_daos.json +3286 -0
  8. package/lib/cjs/idl/hexboosting.json +651 -0
  9. package/lib/cjs/idl/lazy_distributor.json +1239 -0
  10. package/lib/cjs/idl/lazy_transactions.json +538 -0
  11. package/lib/cjs/idl/mobile_entity_manager.json +1374 -0
  12. package/lib/cjs/idl/no_emit.json +92 -0
  13. package/lib/cjs/idl/price_oracle.json +256 -0
  14. package/lib/cjs/idl/rewards_oracle.json +167 -0
  15. package/lib/cjs/idl/treasury_management.json +423 -0
  16. package/lib/cjs/idl/voter_stake_registry.json +2224 -0
  17. package/lib/cjs/priorityFees.js +9 -6
  18. package/lib/cjs/priorityFees.js.map +1 -1
  19. package/lib/cjs/transaction.js +2 -2
  20. package/lib/cjs/transaction.js.map +1 -1
  21. package/lib/esm/src/fetchBackwardsCompatibleIdl.js +28 -15475
  22. package/lib/esm/src/fetchBackwardsCompatibleIdl.js.map +1 -1
  23. package/lib/esm/src/idl/circuit_breaker.json +550 -0
  24. package/lib/esm/src/idl/data_credits.json +1235 -0
  25. package/lib/esm/src/idl/fanout.json +736 -0
  26. package/lib/esm/src/idl/helium_entity_manager.json +4602 -0
  27. package/lib/esm/src/idl/helium_sub_daos.json +3286 -0
  28. package/lib/esm/src/idl/hexboosting.json +651 -0
  29. package/lib/esm/src/idl/lazy_distributor.json +1239 -0
  30. package/lib/esm/src/idl/lazy_transactions.json +538 -0
  31. package/lib/esm/src/idl/mobile_entity_manager.json +1374 -0
  32. package/lib/esm/src/idl/no_emit.json +92 -0
  33. package/lib/esm/src/idl/price_oracle.json +256 -0
  34. package/lib/esm/src/idl/rewards_oracle.json +167 -0
  35. package/lib/esm/src/idl/treasury_management.json +423 -0
  36. package/lib/esm/src/idl/voter_stake_registry.json +2224 -0
  37. package/lib/esm/src/priorityFees.js +12 -5
  38. package/lib/esm/src/priorityFees.js.map +1 -1
  39. package/lib/esm/src/transaction.js +3 -3
  40. package/lib/esm/src/transaction.js.map +1 -1
  41. package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
  42. package/lib/types/src/fetchBackwardsCompatibleIdl.d.ts.map +1 -1
  43. package/lib/types/src/priorityFees.d.ts +5 -2
  44. package/lib/types/src/priorityFees.d.ts.map +1 -1
  45. package/lib/types/src/transaction.d.ts +3 -1
  46. package/lib/types/src/transaction.d.ts.map +1 -1
  47. package/package.json +4 -4
@@ -0,0 +1,736 @@
1
+ {
2
+ "version": "0.1.1",
3
+ "name": "fanout",
4
+ "instructions": [
5
+ {
6
+ "name": "initializeFanoutV0",
7
+ "accounts": [
8
+ {
9
+ "name": "payer",
10
+ "isMut": true,
11
+ "isSigner": true
12
+ },
13
+ {
14
+ "name": "authority",
15
+ "isMut": false,
16
+ "isSigner": false
17
+ },
18
+ {
19
+ "name": "fanout",
20
+ "isMut": true,
21
+ "isSigner": false,
22
+ "pda": {
23
+ "seeds": [
24
+ {
25
+ "kind": "const",
26
+ "type": "string",
27
+ "value": "fanout"
28
+ },
29
+ {
30
+ "kind": "arg",
31
+ "type": {
32
+ "defined": "InitializeFanoutArgsV0"
33
+ },
34
+ "path": "args.name"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "name": "tokenAccount",
41
+ "isMut": true,
42
+ "isSigner": false
43
+ },
44
+ {
45
+ "name": "fanoutMint",
46
+ "isMut": false,
47
+ "isSigner": false
48
+ },
49
+ {
50
+ "name": "collection",
51
+ "isMut": true,
52
+ "isSigner": false,
53
+ "pda": {
54
+ "seeds": [
55
+ {
56
+ "kind": "const",
57
+ "type": "string",
58
+ "value": "collection"
59
+ },
60
+ {
61
+ "kind": "account",
62
+ "type": "publicKey",
63
+ "account": "FanoutV0",
64
+ "path": "fanout"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "name": "collectionAccount",
71
+ "isMut": true,
72
+ "isSigner": false
73
+ },
74
+ {
75
+ "name": "membershipMint",
76
+ "isMut": false,
77
+ "isSigner": false
78
+ },
79
+ {
80
+ "name": "metadata",
81
+ "isMut": true,
82
+ "isSigner": false,
83
+ "pda": {
84
+ "seeds": [
85
+ {
86
+ "kind": "const",
87
+ "type": "string",
88
+ "value": "metadata"
89
+ },
90
+ {
91
+ "kind": "account",
92
+ "type": "publicKey",
93
+ "path": "token_metadata_program"
94
+ },
95
+ {
96
+ "kind": "account",
97
+ "type": "publicKey",
98
+ "account": "Mint",
99
+ "path": "collection"
100
+ }
101
+ ],
102
+ "programId": {
103
+ "kind": "account",
104
+ "type": "publicKey",
105
+ "path": "token_metadata_program"
106
+ }
107
+ }
108
+ },
109
+ {
110
+ "name": "masterEdition",
111
+ "isMut": true,
112
+ "isSigner": false,
113
+ "pda": {
114
+ "seeds": [
115
+ {
116
+ "kind": "const",
117
+ "type": "string",
118
+ "value": "metadata"
119
+ },
120
+ {
121
+ "kind": "account",
122
+ "type": "publicKey",
123
+ "path": "token_metadata_program"
124
+ },
125
+ {
126
+ "kind": "account",
127
+ "type": "publicKey",
128
+ "account": "Mint",
129
+ "path": "collection"
130
+ },
131
+ {
132
+ "kind": "const",
133
+ "type": "string",
134
+ "value": "edition"
135
+ }
136
+ ],
137
+ "programId": {
138
+ "kind": "account",
139
+ "type": "publicKey",
140
+ "path": "token_metadata_program"
141
+ }
142
+ }
143
+ },
144
+ {
145
+ "name": "tokenProgram",
146
+ "isMut": false,
147
+ "isSigner": false
148
+ },
149
+ {
150
+ "name": "tokenMetadataProgram",
151
+ "isMut": false,
152
+ "isSigner": false
153
+ },
154
+ {
155
+ "name": "associatedTokenProgram",
156
+ "isMut": false,
157
+ "isSigner": false
158
+ },
159
+ {
160
+ "name": "systemProgram",
161
+ "isMut": false,
162
+ "isSigner": false
163
+ },
164
+ {
165
+ "name": "rent",
166
+ "isMut": false,
167
+ "isSigner": false
168
+ }
169
+ ],
170
+ "args": [
171
+ {
172
+ "name": "args",
173
+ "type": {
174
+ "defined": "InitializeFanoutArgsV0"
175
+ }
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "name": "stakeV0",
181
+ "accounts": [
182
+ {
183
+ "name": "payer",
184
+ "isMut": true,
185
+ "isSigner": true
186
+ },
187
+ {
188
+ "name": "staker",
189
+ "isMut": false,
190
+ "isSigner": true
191
+ },
192
+ {
193
+ "name": "recipient",
194
+ "isMut": false,
195
+ "isSigner": false
196
+ },
197
+ {
198
+ "name": "fanout",
199
+ "isMut": true,
200
+ "isSigner": false,
201
+ "relations": [
202
+ "membership_mint",
203
+ "token_account",
204
+ "membership_collection"
205
+ ]
206
+ },
207
+ {
208
+ "name": "membershipMint",
209
+ "isMut": false,
210
+ "isSigner": false
211
+ },
212
+ {
213
+ "name": "tokenAccount",
214
+ "isMut": false,
215
+ "isSigner": false
216
+ },
217
+ {
218
+ "name": "membershipCollection",
219
+ "isMut": false,
220
+ "isSigner": false
221
+ },
222
+ {
223
+ "name": "collectionMetadata",
224
+ "isMut": true,
225
+ "isSigner": false,
226
+ "pda": {
227
+ "seeds": [
228
+ {
229
+ "kind": "const",
230
+ "type": "string",
231
+ "value": "metadata"
232
+ },
233
+ {
234
+ "kind": "account",
235
+ "type": "publicKey",
236
+ "path": "token_metadata_program"
237
+ },
238
+ {
239
+ "kind": "account",
240
+ "type": "publicKey",
241
+ "account": "Mint",
242
+ "path": "membership_collection"
243
+ }
244
+ ],
245
+ "programId": {
246
+ "kind": "account",
247
+ "type": "publicKey",
248
+ "path": "token_metadata_program"
249
+ }
250
+ }
251
+ },
252
+ {
253
+ "name": "collectionMasterEdition",
254
+ "isMut": false,
255
+ "isSigner": false,
256
+ "pda": {
257
+ "seeds": [
258
+ {
259
+ "kind": "const",
260
+ "type": "string",
261
+ "value": "metadata"
262
+ },
263
+ {
264
+ "kind": "account",
265
+ "type": "publicKey",
266
+ "path": "token_metadata_program"
267
+ },
268
+ {
269
+ "kind": "account",
270
+ "type": "publicKey",
271
+ "account": "Mint",
272
+ "path": "membership_collection"
273
+ },
274
+ {
275
+ "kind": "const",
276
+ "type": "string",
277
+ "value": "edition"
278
+ }
279
+ ],
280
+ "programId": {
281
+ "kind": "account",
282
+ "type": "publicKey",
283
+ "path": "token_metadata_program"
284
+ }
285
+ }
286
+ },
287
+ {
288
+ "name": "fromAccount",
289
+ "isMut": true,
290
+ "isSigner": false
291
+ },
292
+ {
293
+ "name": "stakeAccount",
294
+ "isMut": true,
295
+ "isSigner": false
296
+ },
297
+ {
298
+ "name": "receiptAccount",
299
+ "isMut": true,
300
+ "isSigner": false
301
+ },
302
+ {
303
+ "name": "voucher",
304
+ "isMut": true,
305
+ "isSigner": false,
306
+ "pda": {
307
+ "seeds": [
308
+ {
309
+ "kind": "const",
310
+ "type": "string",
311
+ "value": "fanout_voucher"
312
+ },
313
+ {
314
+ "kind": "account",
315
+ "type": "publicKey",
316
+ "account": "Mint",
317
+ "path": "mint"
318
+ }
319
+ ]
320
+ }
321
+ },
322
+ {
323
+ "name": "mint",
324
+ "isMut": true,
325
+ "isSigner": false
326
+ },
327
+ {
328
+ "name": "metadata",
329
+ "isMut": true,
330
+ "isSigner": false,
331
+ "pda": {
332
+ "seeds": [
333
+ {
334
+ "kind": "const",
335
+ "type": "string",
336
+ "value": "metadata"
337
+ },
338
+ {
339
+ "kind": "account",
340
+ "type": "publicKey",
341
+ "path": "token_metadata_program"
342
+ },
343
+ {
344
+ "kind": "account",
345
+ "type": "publicKey",
346
+ "account": "Mint",
347
+ "path": "mint"
348
+ }
349
+ ],
350
+ "programId": {
351
+ "kind": "account",
352
+ "type": "publicKey",
353
+ "path": "token_metadata_program"
354
+ }
355
+ }
356
+ },
357
+ {
358
+ "name": "masterEdition",
359
+ "isMut": true,
360
+ "isSigner": false,
361
+ "pda": {
362
+ "seeds": [
363
+ {
364
+ "kind": "const",
365
+ "type": "string",
366
+ "value": "metadata"
367
+ },
368
+ {
369
+ "kind": "account",
370
+ "type": "publicKey",
371
+ "path": "token_metadata_program"
372
+ },
373
+ {
374
+ "kind": "account",
375
+ "type": "publicKey",
376
+ "account": "Mint",
377
+ "path": "mint"
378
+ },
379
+ {
380
+ "kind": "const",
381
+ "type": "string",
382
+ "value": "edition"
383
+ }
384
+ ],
385
+ "programId": {
386
+ "kind": "account",
387
+ "type": "publicKey",
388
+ "path": "token_metadata_program"
389
+ }
390
+ }
391
+ },
392
+ {
393
+ "name": "tokenProgram",
394
+ "isMut": false,
395
+ "isSigner": false
396
+ },
397
+ {
398
+ "name": "associatedTokenProgram",
399
+ "isMut": false,
400
+ "isSigner": false
401
+ },
402
+ {
403
+ "name": "systemProgram",
404
+ "isMut": false,
405
+ "isSigner": false
406
+ },
407
+ {
408
+ "name": "tokenMetadataProgram",
409
+ "isMut": false,
410
+ "isSigner": false
411
+ }
412
+ ],
413
+ "args": [
414
+ {
415
+ "name": "args",
416
+ "type": {
417
+ "defined": "StakeArgsV0"
418
+ }
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "name": "unstakeV0",
424
+ "accounts": [
425
+ {
426
+ "name": "payer",
427
+ "isMut": true,
428
+ "isSigner": true
429
+ },
430
+ {
431
+ "name": "solDestination",
432
+ "isMut": true,
433
+ "isSigner": false
434
+ },
435
+ {
436
+ "name": "voucher",
437
+ "isMut": true,
438
+ "isSigner": false,
439
+ "pda": {
440
+ "seeds": [
441
+ {
442
+ "kind": "const",
443
+ "type": "string",
444
+ "value": "fanout_voucher"
445
+ },
446
+ {
447
+ "kind": "account",
448
+ "type": "publicKey",
449
+ "account": "Mint",
450
+ "path": "mint"
451
+ }
452
+ ]
453
+ },
454
+ "relations": [
455
+ "mint",
456
+ "fanout",
457
+ "stake_account"
458
+ ]
459
+ },
460
+ {
461
+ "name": "mint",
462
+ "isMut": true,
463
+ "isSigner": false
464
+ },
465
+ {
466
+ "name": "fanout",
467
+ "isMut": true,
468
+ "isSigner": false,
469
+ "relations": [
470
+ "membership_mint"
471
+ ]
472
+ },
473
+ {
474
+ "name": "membershipMint",
475
+ "isMut": false,
476
+ "isSigner": false
477
+ },
478
+ {
479
+ "name": "receiptAccount",
480
+ "isMut": true,
481
+ "isSigner": false
482
+ },
483
+ {
484
+ "name": "voucherAuthority",
485
+ "isMut": false,
486
+ "isSigner": true
487
+ },
488
+ {
489
+ "name": "toAccount",
490
+ "isMut": true,
491
+ "isSigner": false
492
+ },
493
+ {
494
+ "name": "stakeAccount",
495
+ "isMut": true,
496
+ "isSigner": false
497
+ },
498
+ {
499
+ "name": "tokenProgram",
500
+ "isMut": false,
501
+ "isSigner": false
502
+ },
503
+ {
504
+ "name": "associatedTokenProgram",
505
+ "isMut": false,
506
+ "isSigner": false
507
+ },
508
+ {
509
+ "name": "systemProgram",
510
+ "isMut": false,
511
+ "isSigner": false
512
+ }
513
+ ],
514
+ "args": []
515
+ },
516
+ {
517
+ "name": "distributeV0",
518
+ "accounts": [
519
+ {
520
+ "name": "payer",
521
+ "isMut": true,
522
+ "isSigner": true
523
+ },
524
+ {
525
+ "name": "fanout",
526
+ "isMut": true,
527
+ "isSigner": false,
528
+ "relations": [
529
+ "token_account",
530
+ "fanout_mint"
531
+ ]
532
+ },
533
+ {
534
+ "name": "fanoutMint",
535
+ "isMut": false,
536
+ "isSigner": false
537
+ },
538
+ {
539
+ "name": "tokenAccount",
540
+ "isMut": true,
541
+ "isSigner": false
542
+ },
543
+ {
544
+ "name": "owner",
545
+ "isMut": false,
546
+ "isSigner": false
547
+ },
548
+ {
549
+ "name": "toAccount",
550
+ "isMut": true,
551
+ "isSigner": false
552
+ },
553
+ {
554
+ "name": "voucher",
555
+ "isMut": true,
556
+ "isSigner": false,
557
+ "pda": {
558
+ "seeds": [
559
+ {
560
+ "kind": "const",
561
+ "type": "string",
562
+ "value": "fanout_voucher"
563
+ },
564
+ {
565
+ "kind": "account",
566
+ "type": "publicKey",
567
+ "account": "Mint",
568
+ "path": "mint"
569
+ }
570
+ ]
571
+ },
572
+ "relations": [
573
+ "fanout",
574
+ "mint"
575
+ ]
576
+ },
577
+ {
578
+ "name": "mint",
579
+ "isMut": false,
580
+ "isSigner": false
581
+ },
582
+ {
583
+ "name": "receiptAccount",
584
+ "isMut": false,
585
+ "isSigner": false
586
+ },
587
+ {
588
+ "name": "tokenProgram",
589
+ "isMut": false,
590
+ "isSigner": false
591
+ },
592
+ {
593
+ "name": "associatedTokenProgram",
594
+ "isMut": false,
595
+ "isSigner": false
596
+ },
597
+ {
598
+ "name": "systemProgram",
599
+ "isMut": false,
600
+ "isSigner": false
601
+ }
602
+ ],
603
+ "args": []
604
+ }
605
+ ],
606
+ "accounts": [
607
+ {
608
+ "name": "FanoutV0",
609
+ "type": {
610
+ "kind": "struct",
611
+ "fields": [
612
+ {
613
+ "name": "authority",
614
+ "type": "publicKey"
615
+ },
616
+ {
617
+ "name": "tokenAccount",
618
+ "type": "publicKey"
619
+ },
620
+ {
621
+ "name": "fanoutMint",
622
+ "type": "publicKey"
623
+ },
624
+ {
625
+ "name": "membershipMint",
626
+ "type": "publicKey"
627
+ },
628
+ {
629
+ "name": "totalShares",
630
+ "type": "u64"
631
+ },
632
+ {
633
+ "name": "totalStakedShares",
634
+ "type": "u64"
635
+ },
636
+ {
637
+ "name": "membershipCollection",
638
+ "type": "publicKey"
639
+ },
640
+ {
641
+ "name": "totalInflow",
642
+ "type": "u64"
643
+ },
644
+ {
645
+ "name": "lastSnapshotAmount",
646
+ "type": "u64"
647
+ },
648
+ {
649
+ "name": "name",
650
+ "type": "string"
651
+ },
652
+ {
653
+ "name": "bumpSeed",
654
+ "type": "u8"
655
+ }
656
+ ]
657
+ }
658
+ },
659
+ {
660
+ "name": "FanoutVoucherV0",
661
+ "type": {
662
+ "kind": "struct",
663
+ "fields": [
664
+ {
665
+ "name": "fanout",
666
+ "type": "publicKey"
667
+ },
668
+ {
669
+ "name": "mint",
670
+ "type": "publicKey"
671
+ },
672
+ {
673
+ "name": "stakeAccount",
674
+ "type": "publicKey"
675
+ },
676
+ {
677
+ "name": "shares",
678
+ "type": "u64"
679
+ },
680
+ {
681
+ "name": "totalInflow",
682
+ "type": "u64"
683
+ },
684
+ {
685
+ "name": "totalDistributed",
686
+ "type": "u64"
687
+ },
688
+ {
689
+ "name": "totalDust",
690
+ "type": "u64"
691
+ },
692
+ {
693
+ "name": "bumpSeed",
694
+ "type": "u8"
695
+ }
696
+ ]
697
+ }
698
+ }
699
+ ],
700
+ "types": [
701
+ {
702
+ "name": "InitializeFanoutArgsV0",
703
+ "type": {
704
+ "kind": "struct",
705
+ "fields": [
706
+ {
707
+ "name": "name",
708
+ "type": "string"
709
+ }
710
+ ]
711
+ }
712
+ },
713
+ {
714
+ "name": "StakeArgsV0",
715
+ "type": {
716
+ "kind": "struct",
717
+ "fields": [
718
+ {
719
+ "name": "amount",
720
+ "type": "u64"
721
+ }
722
+ ]
723
+ }
724
+ }
725
+ ],
726
+ "errors": [
727
+ {
728
+ "code": 6000,
729
+ "name": "ArithmeticError",
730
+ "msg": "Error in arithmetic"
731
+ }
732
+ ],
733
+ "metadata": {
734
+ "address": "fanqeMu3fw8R4LwKNbahPtYXJsyLL6NXyfe2BqzhfB6"
735
+ }
736
+ }