@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,1239 @@
1
+ {
2
+ "version": "0.2.1",
3
+ "name": "lazy_distributor",
4
+ "instructions": [
5
+ {
6
+ "name": "initializeLazyDistributorV0",
7
+ "accounts": [
8
+ {
9
+ "name": "payer",
10
+ "isMut": true,
11
+ "isSigner": true
12
+ },
13
+ {
14
+ "name": "lazyDistributor",
15
+ "isMut": true,
16
+ "isSigner": false,
17
+ "pda": {
18
+ "seeds": [
19
+ {
20
+ "kind": "const",
21
+ "type": "string",
22
+ "value": "lazy_distributor"
23
+ },
24
+ {
25
+ "kind": "account",
26
+ "type": "publicKey",
27
+ "account": "Mint",
28
+ "path": "rewards_mint"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ {
34
+ "name": "rewardsMint",
35
+ "isMut": true,
36
+ "isSigner": false
37
+ },
38
+ {
39
+ "name": "rewardsEscrow",
40
+ "isMut": true,
41
+ "isSigner": false
42
+ },
43
+ {
44
+ "name": "circuitBreaker",
45
+ "isMut": true,
46
+ "isSigner": false,
47
+ "pda": {
48
+ "seeds": [
49
+ {
50
+ "kind": "const",
51
+ "type": "string",
52
+ "value": "account_windowed_breaker"
53
+ },
54
+ {
55
+ "kind": "account",
56
+ "type": "publicKey",
57
+ "account": "TokenAccount",
58
+ "path": "rewards_escrow"
59
+ }
60
+ ],
61
+ "programId": {
62
+ "kind": "account",
63
+ "type": "publicKey",
64
+ "path": "circuit_breaker_program"
65
+ }
66
+ }
67
+ },
68
+ {
69
+ "name": "systemProgram",
70
+ "isMut": false,
71
+ "isSigner": false
72
+ },
73
+ {
74
+ "name": "associatedTokenProgram",
75
+ "isMut": false,
76
+ "isSigner": false
77
+ },
78
+ {
79
+ "name": "circuitBreakerProgram",
80
+ "isMut": false,
81
+ "isSigner": false
82
+ },
83
+ {
84
+ "name": "tokenProgram",
85
+ "isMut": false,
86
+ "isSigner": false
87
+ }
88
+ ],
89
+ "args": [
90
+ {
91
+ "name": "args",
92
+ "type": {
93
+ "defined": "InitializeLazyDistributorArgsV0"
94
+ }
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "name": "initializeRecipientV0",
100
+ "accounts": [
101
+ {
102
+ "name": "payer",
103
+ "isMut": true,
104
+ "isSigner": true
105
+ },
106
+ {
107
+ "name": "lazyDistributor",
108
+ "isMut": false,
109
+ "isSigner": false,
110
+ "pda": {
111
+ "seeds": [
112
+ {
113
+ "kind": "const",
114
+ "type": "string",
115
+ "value": "lazy_distributor"
116
+ },
117
+ {
118
+ "kind": "account",
119
+ "type": "publicKey",
120
+ "account": "LazyDistributorV0",
121
+ "path": "lazy_distributor.rewards_mint"
122
+ }
123
+ ]
124
+ }
125
+ },
126
+ {
127
+ "name": "recipient",
128
+ "isMut": true,
129
+ "isSigner": false,
130
+ "pda": {
131
+ "seeds": [
132
+ {
133
+ "kind": "const",
134
+ "type": "string",
135
+ "value": "recipient"
136
+ },
137
+ {
138
+ "kind": "account",
139
+ "type": "publicKey",
140
+ "account": "LazyDistributorV0",
141
+ "path": "lazy_distributor"
142
+ },
143
+ {
144
+ "kind": "account",
145
+ "type": "publicKey",
146
+ "account": "Mint",
147
+ "path": "mint"
148
+ }
149
+ ]
150
+ }
151
+ },
152
+ {
153
+ "name": "mint",
154
+ "isMut": false,
155
+ "isSigner": false
156
+ },
157
+ {
158
+ "name": "targetMetadata",
159
+ "isMut": false,
160
+ "isSigner": false,
161
+ "relations": ["mint"]
162
+ },
163
+ {
164
+ "name": "systemProgram",
165
+ "isMut": false,
166
+ "isSigner": false
167
+ }
168
+ ],
169
+ "args": []
170
+ },
171
+ {
172
+ "name": "initializeCompressionRecipientV0",
173
+ "accounts": [
174
+ {
175
+ "name": "payer",
176
+ "isMut": true,
177
+ "isSigner": true
178
+ },
179
+ {
180
+ "name": "lazyDistributor",
181
+ "isMut": false,
182
+ "isSigner": false,
183
+ "pda": {
184
+ "seeds": [
185
+ {
186
+ "kind": "const",
187
+ "type": "string",
188
+ "value": "lazy_distributor"
189
+ },
190
+ {
191
+ "kind": "account",
192
+ "type": "publicKey",
193
+ "account": "LazyDistributorV0",
194
+ "path": "lazy_distributor.rewards_mint"
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "name": "recipient",
201
+ "isMut": true,
202
+ "isSigner": false
203
+ },
204
+ {
205
+ "name": "merkleTree",
206
+ "isMut": false,
207
+ "isSigner": false
208
+ },
209
+ {
210
+ "name": "owner",
211
+ "isMut": false,
212
+ "isSigner": false
213
+ },
214
+ {
215
+ "name": "delegate",
216
+ "isMut": false,
217
+ "isSigner": false
218
+ },
219
+ {
220
+ "name": "compressionProgram",
221
+ "isMut": false,
222
+ "isSigner": false
223
+ },
224
+ {
225
+ "name": "systemProgram",
226
+ "isMut": false,
227
+ "isSigner": false
228
+ }
229
+ ],
230
+ "args": [
231
+ {
232
+ "name": "args",
233
+ "type": {
234
+ "defined": "InitializeCompressionRecipientArgsV0"
235
+ }
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "name": "setCurrentRewardsV0",
241
+ "accounts": [
242
+ {
243
+ "name": "payer",
244
+ "isMut": true,
245
+ "isSigner": true
246
+ },
247
+ {
248
+ "name": "lazyDistributor",
249
+ "isMut": false,
250
+ "isSigner": false
251
+ },
252
+ {
253
+ "name": "recipient",
254
+ "isMut": true,
255
+ "isSigner": false,
256
+ "relations": ["lazy_distributor"]
257
+ },
258
+ {
259
+ "name": "oracle",
260
+ "isMut": false,
261
+ "isSigner": true
262
+ },
263
+ {
264
+ "name": "systemProgram",
265
+ "isMut": false,
266
+ "isSigner": false
267
+ }
268
+ ],
269
+ "args": [
270
+ {
271
+ "name": "args",
272
+ "type": {
273
+ "defined": "SetCurrentRewardsArgsV0"
274
+ }
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "name": "distributeRewardsV0",
280
+ "accounts": [
281
+ {
282
+ "name": "common",
283
+ "accounts": [
284
+ {
285
+ "name": "payer",
286
+ "isMut": true,
287
+ "isSigner": true
288
+ },
289
+ {
290
+ "name": "lazyDistributor",
291
+ "isMut": false,
292
+ "isSigner": false,
293
+ "relations": ["rewards_mint", "rewards_escrow"]
294
+ },
295
+ {
296
+ "name": "recipient",
297
+ "isMut": true,
298
+ "isSigner": false,
299
+ "relations": ["lazy_distributor"]
300
+ },
301
+ {
302
+ "name": "rewardsMint",
303
+ "isMut": false,
304
+ "isSigner": false
305
+ },
306
+ {
307
+ "name": "rewardsEscrow",
308
+ "isMut": true,
309
+ "isSigner": false
310
+ },
311
+ {
312
+ "name": "circuitBreaker",
313
+ "isMut": true,
314
+ "isSigner": false,
315
+ "pda": {
316
+ "seeds": [
317
+ {
318
+ "kind": "const",
319
+ "type": "string",
320
+ "value": "account_windowed_breaker"
321
+ },
322
+ {
323
+ "kind": "account",
324
+ "type": "publicKey",
325
+ "account": "TokenAccount",
326
+ "path": "rewards_escrow"
327
+ }
328
+ ],
329
+ "programId": {
330
+ "kind": "account",
331
+ "type": "publicKey",
332
+ "path": "circuit_breaker_program"
333
+ }
334
+ }
335
+ },
336
+ {
337
+ "name": "owner",
338
+ "isMut": true,
339
+ "isSigner": false,
340
+ "docs": [
341
+ "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
342
+ ]
343
+ },
344
+ {
345
+ "name": "destinationAccount",
346
+ "isMut": true,
347
+ "isSigner": false
348
+ },
349
+ {
350
+ "name": "associatedTokenProgram",
351
+ "isMut": false,
352
+ "isSigner": false
353
+ },
354
+ {
355
+ "name": "circuitBreakerProgram",
356
+ "isMut": false,
357
+ "isSigner": false
358
+ },
359
+ {
360
+ "name": "systemProgram",
361
+ "isMut": false,
362
+ "isSigner": false
363
+ },
364
+ {
365
+ "name": "tokenProgram",
366
+ "isMut": false,
367
+ "isSigner": false
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ "name": "recipientMintAccount",
373
+ "isMut": false,
374
+ "isSigner": false
375
+ }
376
+ ],
377
+ "args": []
378
+ },
379
+ {
380
+ "name": "distributeCompressionRewardsV0",
381
+ "accounts": [
382
+ {
383
+ "name": "common",
384
+ "accounts": [
385
+ {
386
+ "name": "payer",
387
+ "isMut": true,
388
+ "isSigner": true
389
+ },
390
+ {
391
+ "name": "lazyDistributor",
392
+ "isMut": false,
393
+ "isSigner": false,
394
+ "relations": ["rewards_mint", "rewards_escrow"]
395
+ },
396
+ {
397
+ "name": "recipient",
398
+ "isMut": true,
399
+ "isSigner": false,
400
+ "relations": ["lazy_distributor"]
401
+ },
402
+ {
403
+ "name": "rewardsMint",
404
+ "isMut": false,
405
+ "isSigner": false
406
+ },
407
+ {
408
+ "name": "rewardsEscrow",
409
+ "isMut": true,
410
+ "isSigner": false
411
+ },
412
+ {
413
+ "name": "circuitBreaker",
414
+ "isMut": true,
415
+ "isSigner": false,
416
+ "pda": {
417
+ "seeds": [
418
+ {
419
+ "kind": "const",
420
+ "type": "string",
421
+ "value": "account_windowed_breaker"
422
+ },
423
+ {
424
+ "kind": "account",
425
+ "type": "publicKey",
426
+ "account": "TokenAccount",
427
+ "path": "rewards_escrow"
428
+ }
429
+ ],
430
+ "programId": {
431
+ "kind": "account",
432
+ "type": "publicKey",
433
+ "path": "circuit_breaker_program"
434
+ }
435
+ }
436
+ },
437
+ {
438
+ "name": "owner",
439
+ "isMut": true,
440
+ "isSigner": false,
441
+ "docs": [
442
+ "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
443
+ ]
444
+ },
445
+ {
446
+ "name": "destinationAccount",
447
+ "isMut": true,
448
+ "isSigner": false
449
+ },
450
+ {
451
+ "name": "associatedTokenProgram",
452
+ "isMut": false,
453
+ "isSigner": false
454
+ },
455
+ {
456
+ "name": "circuitBreakerProgram",
457
+ "isMut": false,
458
+ "isSigner": false
459
+ },
460
+ {
461
+ "name": "systemProgram",
462
+ "isMut": false,
463
+ "isSigner": false
464
+ },
465
+ {
466
+ "name": "tokenProgram",
467
+ "isMut": false,
468
+ "isSigner": false
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "name": "merkleTree",
474
+ "isMut": false,
475
+ "isSigner": false
476
+ },
477
+ {
478
+ "name": "compressionProgram",
479
+ "isMut": false,
480
+ "isSigner": false
481
+ }
482
+ ],
483
+ "args": [
484
+ {
485
+ "name": "args",
486
+ "type": {
487
+ "defined": "DistributeCompressionRewardsArgsV0"
488
+ }
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ "name": "updateLazyDistributorV0",
494
+ "accounts": [
495
+ {
496
+ "name": "lazyDistributor",
497
+ "isMut": true,
498
+ "isSigner": false,
499
+ "pda": {
500
+ "seeds": [
501
+ {
502
+ "kind": "const",
503
+ "type": "string",
504
+ "value": "lazy_distributor"
505
+ },
506
+ {
507
+ "kind": "account",
508
+ "type": "publicKey",
509
+ "account": "Mint",
510
+ "path": "rewards_mint"
511
+ }
512
+ ]
513
+ },
514
+ "relations": ["authority", "rewards_mint"]
515
+ },
516
+ {
517
+ "name": "rewardsMint",
518
+ "isMut": false,
519
+ "isSigner": false
520
+ },
521
+ {
522
+ "name": "authority",
523
+ "isMut": false,
524
+ "isSigner": true
525
+ }
526
+ ],
527
+ "args": [
528
+ {
529
+ "name": "args",
530
+ "type": {
531
+ "defined": "UpdateLazyDistributorArgsV0"
532
+ }
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ "name": "updateCompressionDestinationV0",
538
+ "accounts": [
539
+ {
540
+ "name": "recipient",
541
+ "isMut": true,
542
+ "isSigner": false
543
+ },
544
+ {
545
+ "name": "owner",
546
+ "isMut": false,
547
+ "isSigner": true
548
+ },
549
+ {
550
+ "name": "destination",
551
+ "isMut": false,
552
+ "isSigner": false
553
+ },
554
+ {
555
+ "name": "merkleTree",
556
+ "isMut": false,
557
+ "isSigner": false
558
+ },
559
+ {
560
+ "name": "compressionProgram",
561
+ "isMut": false,
562
+ "isSigner": false
563
+ }
564
+ ],
565
+ "args": [
566
+ {
567
+ "name": "args",
568
+ "type": {
569
+ "defined": "UpdateCompressionDestinationArgsV0"
570
+ }
571
+ }
572
+ ]
573
+ },
574
+ {
575
+ "name": "updateDestinationV0",
576
+ "accounts": [
577
+ {
578
+ "name": "recipient",
579
+ "isMut": true,
580
+ "isSigner": false
581
+ },
582
+ {
583
+ "name": "owner",
584
+ "isMut": false,
585
+ "isSigner": true
586
+ },
587
+ {
588
+ "name": "destination",
589
+ "isMut": false,
590
+ "isSigner": false
591
+ },
592
+ {
593
+ "name": "recipientMintAccount",
594
+ "isMut": false,
595
+ "isSigner": false
596
+ }
597
+ ],
598
+ "args": []
599
+ },
600
+ {
601
+ "name": "distributeCustomDestinationV0",
602
+ "accounts": [
603
+ {
604
+ "name": "common",
605
+ "accounts": [
606
+ {
607
+ "name": "payer",
608
+ "isMut": true,
609
+ "isSigner": true
610
+ },
611
+ {
612
+ "name": "lazyDistributor",
613
+ "isMut": false,
614
+ "isSigner": false,
615
+ "relations": ["rewards_mint", "rewards_escrow"]
616
+ },
617
+ {
618
+ "name": "recipient",
619
+ "isMut": true,
620
+ "isSigner": false,
621
+ "relations": ["lazy_distributor"]
622
+ },
623
+ {
624
+ "name": "rewardsMint",
625
+ "isMut": false,
626
+ "isSigner": false
627
+ },
628
+ {
629
+ "name": "rewardsEscrow",
630
+ "isMut": true,
631
+ "isSigner": false
632
+ },
633
+ {
634
+ "name": "circuitBreaker",
635
+ "isMut": true,
636
+ "isSigner": false,
637
+ "pda": {
638
+ "seeds": [
639
+ {
640
+ "kind": "const",
641
+ "type": "string",
642
+ "value": "account_windowed_breaker"
643
+ },
644
+ {
645
+ "kind": "account",
646
+ "type": "publicKey",
647
+ "account": "TokenAccount",
648
+ "path": "rewards_escrow"
649
+ }
650
+ ],
651
+ "programId": {
652
+ "kind": "account",
653
+ "type": "publicKey",
654
+ "path": "circuit_breaker_program"
655
+ }
656
+ }
657
+ },
658
+ {
659
+ "name": "owner",
660
+ "isMut": true,
661
+ "isSigner": false,
662
+ "docs": [
663
+ "TODO: Should this be permissioned? Should the owner have to sign to receive rewards?"
664
+ ]
665
+ },
666
+ {
667
+ "name": "destinationAccount",
668
+ "isMut": true,
669
+ "isSigner": false
670
+ },
671
+ {
672
+ "name": "associatedTokenProgram",
673
+ "isMut": false,
674
+ "isSigner": false
675
+ },
676
+ {
677
+ "name": "circuitBreakerProgram",
678
+ "isMut": false,
679
+ "isSigner": false
680
+ },
681
+ {
682
+ "name": "systemProgram",
683
+ "isMut": false,
684
+ "isSigner": false
685
+ },
686
+ {
687
+ "name": "tokenProgram",
688
+ "isMut": false,
689
+ "isSigner": false
690
+ }
691
+ ]
692
+ }
693
+ ],
694
+ "args": []
695
+ }
696
+ ],
697
+ "accounts": [
698
+ {
699
+ "name": "LazyDistributorV0",
700
+ "type": {
701
+ "kind": "struct",
702
+ "fields": [
703
+ {
704
+ "name": "version",
705
+ "type": "u16"
706
+ },
707
+ {
708
+ "name": "rewardsMint",
709
+ "type": "publicKey"
710
+ },
711
+ {
712
+ "name": "rewardsEscrow",
713
+ "type": "publicKey"
714
+ },
715
+ {
716
+ "name": "authority",
717
+ "type": "publicKey"
718
+ },
719
+ {
720
+ "name": "oracles",
721
+ "type": {
722
+ "vec": {
723
+ "defined": "OracleConfigV0"
724
+ }
725
+ }
726
+ },
727
+ {
728
+ "name": "bumpSeed",
729
+ "type": "u8"
730
+ },
731
+ {
732
+ "name": "approver",
733
+ "type": {
734
+ "option": "publicKey"
735
+ }
736
+ }
737
+ ]
738
+ }
739
+ },
740
+ {
741
+ "name": "RecipientV0",
742
+ "type": {
743
+ "kind": "struct",
744
+ "fields": [
745
+ {
746
+ "name": "lazyDistributor",
747
+ "type": "publicKey"
748
+ },
749
+ {
750
+ "name": "asset",
751
+ "type": "publicKey"
752
+ },
753
+ {
754
+ "name": "totalRewards",
755
+ "type": "u64"
756
+ },
757
+ {
758
+ "name": "currentConfigVersion",
759
+ "type": "u16"
760
+ },
761
+ {
762
+ "name": "currentRewards",
763
+ "type": {
764
+ "vec": {
765
+ "option": "u64"
766
+ }
767
+ }
768
+ },
769
+ {
770
+ "name": "bumpSeed",
771
+ "type": "u8"
772
+ },
773
+ {
774
+ "name": "reserved",
775
+ "type": "u64"
776
+ },
777
+ {
778
+ "name": "destination",
779
+ "docs": ["Pubkey::Default if not being used."],
780
+ "type": "publicKey"
781
+ }
782
+ ]
783
+ }
784
+ }
785
+ ],
786
+ "types": [
787
+ {
788
+ "name": "WindowedCircuitBreakerConfigV0",
789
+ "type": {
790
+ "kind": "struct",
791
+ "fields": [
792
+ {
793
+ "name": "windowSizeSeconds",
794
+ "type": "u64"
795
+ },
796
+ {
797
+ "name": "thresholdType",
798
+ "type": {
799
+ "defined": "ThresholdType"
800
+ }
801
+ },
802
+ {
803
+ "name": "threshold",
804
+ "type": "u64"
805
+ }
806
+ ]
807
+ }
808
+ },
809
+ {
810
+ "name": "DistributeCompressionRewardsArgsV0",
811
+ "type": {
812
+ "kind": "struct",
813
+ "fields": [
814
+ {
815
+ "name": "dataHash",
816
+ "type": {
817
+ "array": ["u8", 32]
818
+ }
819
+ },
820
+ {
821
+ "name": "creatorHash",
822
+ "type": {
823
+ "array": ["u8", 32]
824
+ }
825
+ },
826
+ {
827
+ "name": "root",
828
+ "type": {
829
+ "array": ["u8", 32]
830
+ }
831
+ },
832
+ {
833
+ "name": "index",
834
+ "type": "u32"
835
+ }
836
+ ]
837
+ }
838
+ },
839
+ {
840
+ "name": "InitializeCompressionRecipientArgsV0",
841
+ "type": {
842
+ "kind": "struct",
843
+ "fields": [
844
+ {
845
+ "name": "dataHash",
846
+ "type": {
847
+ "array": ["u8", 32]
848
+ }
849
+ },
850
+ {
851
+ "name": "creatorHash",
852
+ "type": {
853
+ "array": ["u8", 32]
854
+ }
855
+ },
856
+ {
857
+ "name": "root",
858
+ "type": {
859
+ "array": ["u8", 32]
860
+ }
861
+ },
862
+ {
863
+ "name": "index",
864
+ "type": "u32"
865
+ }
866
+ ]
867
+ }
868
+ },
869
+ {
870
+ "name": "InitializeLazyDistributorArgsV0",
871
+ "type": {
872
+ "kind": "struct",
873
+ "fields": [
874
+ {
875
+ "name": "oracles",
876
+ "type": {
877
+ "vec": {
878
+ "defined": "OracleConfigV0"
879
+ }
880
+ }
881
+ },
882
+ {
883
+ "name": "authority",
884
+ "type": "publicKey"
885
+ },
886
+ {
887
+ "name": "windowConfig",
888
+ "type": {
889
+ "defined": "WindowedCircuitBreakerConfigV0"
890
+ }
891
+ },
892
+ {
893
+ "name": "approver",
894
+ "type": {
895
+ "option": "publicKey"
896
+ }
897
+ }
898
+ ]
899
+ }
900
+ },
901
+ {
902
+ "name": "SetCurrentRewardsArgsV0",
903
+ "type": {
904
+ "kind": "struct",
905
+ "fields": [
906
+ {
907
+ "name": "oracleIndex",
908
+ "type": "u16"
909
+ },
910
+ {
911
+ "name": "currentRewards",
912
+ "type": "u64"
913
+ }
914
+ ]
915
+ }
916
+ },
917
+ {
918
+ "name": "UpdateCompressionDestinationArgsV0",
919
+ "type": {
920
+ "kind": "struct",
921
+ "fields": [
922
+ {
923
+ "name": "dataHash",
924
+ "type": {
925
+ "array": ["u8", 32]
926
+ }
927
+ },
928
+ {
929
+ "name": "creatorHash",
930
+ "type": {
931
+ "array": ["u8", 32]
932
+ }
933
+ },
934
+ {
935
+ "name": "root",
936
+ "type": {
937
+ "array": ["u8", 32]
938
+ }
939
+ },
940
+ {
941
+ "name": "index",
942
+ "type": "u32"
943
+ }
944
+ ]
945
+ }
946
+ },
947
+ {
948
+ "name": "UpdateLazyDistributorArgsV0",
949
+ "type": {
950
+ "kind": "struct",
951
+ "fields": [
952
+ {
953
+ "name": "oracles",
954
+ "type": {
955
+ "option": {
956
+ "vec": {
957
+ "defined": "OracleConfigV0"
958
+ }
959
+ }
960
+ }
961
+ },
962
+ {
963
+ "name": "authority",
964
+ "type": {
965
+ "option": "publicKey"
966
+ }
967
+ },
968
+ {
969
+ "name": "approver",
970
+ "type": {
971
+ "option": {
972
+ "option": "publicKey"
973
+ }
974
+ }
975
+ }
976
+ ]
977
+ }
978
+ },
979
+ {
980
+ "name": "OracleConfigV0",
981
+ "type": {
982
+ "kind": "struct",
983
+ "fields": [
984
+ {
985
+ "name": "oracle",
986
+ "type": "publicKey"
987
+ },
988
+ {
989
+ "name": "url",
990
+ "type": "string"
991
+ }
992
+ ]
993
+ }
994
+ },
995
+ {
996
+ "name": "Creator",
997
+ "type": {
998
+ "kind": "struct",
999
+ "fields": [
1000
+ {
1001
+ "name": "address",
1002
+ "type": "publicKey"
1003
+ },
1004
+ {
1005
+ "name": "verified",
1006
+ "type": "bool"
1007
+ },
1008
+ {
1009
+ "name": "share",
1010
+ "type": "u8"
1011
+ }
1012
+ ]
1013
+ }
1014
+ },
1015
+ {
1016
+ "name": "Uses",
1017
+ "type": {
1018
+ "kind": "struct",
1019
+ "fields": [
1020
+ {
1021
+ "name": "useMethod",
1022
+ "type": {
1023
+ "defined": "UseMethod"
1024
+ }
1025
+ },
1026
+ {
1027
+ "name": "remaining",
1028
+ "type": "u64"
1029
+ },
1030
+ {
1031
+ "name": "total",
1032
+ "type": "u64"
1033
+ }
1034
+ ]
1035
+ }
1036
+ },
1037
+ {
1038
+ "name": "Collection",
1039
+ "type": {
1040
+ "kind": "struct",
1041
+ "fields": [
1042
+ {
1043
+ "name": "verified",
1044
+ "type": "bool"
1045
+ },
1046
+ {
1047
+ "name": "key",
1048
+ "type": "publicKey"
1049
+ }
1050
+ ]
1051
+ }
1052
+ },
1053
+ {
1054
+ "name": "MetadataArgs",
1055
+ "type": {
1056
+ "kind": "struct",
1057
+ "fields": [
1058
+ {
1059
+ "name": "name",
1060
+ "docs": ["The name of the asset"],
1061
+ "type": "string"
1062
+ },
1063
+ {
1064
+ "name": "symbol",
1065
+ "docs": ["The symbol for the asset"],
1066
+ "type": "string"
1067
+ },
1068
+ {
1069
+ "name": "uri",
1070
+ "docs": ["URI pointing to JSON representing the asset"],
1071
+ "type": "string"
1072
+ },
1073
+ {
1074
+ "name": "sellerFeeBasisPoints",
1075
+ "docs": [
1076
+ "Royalty basis points that goes to creators in secondary sales (0-10000)"
1077
+ ],
1078
+ "type": "u16"
1079
+ },
1080
+ {
1081
+ "name": "primarySaleHappened",
1082
+ "type": "bool"
1083
+ },
1084
+ {
1085
+ "name": "isMutable",
1086
+ "type": "bool"
1087
+ },
1088
+ {
1089
+ "name": "editionNonce",
1090
+ "docs": ["nonce for easy calculation of editions, if present"],
1091
+ "type": {
1092
+ "option": "u8"
1093
+ }
1094
+ },
1095
+ {
1096
+ "name": "tokenStandard",
1097
+ "docs": [
1098
+ "Since we cannot easily change Metadata, we add the new DataV2 fields here at the end."
1099
+ ],
1100
+ "type": {
1101
+ "option": {
1102
+ "defined": "TokenStandard"
1103
+ }
1104
+ }
1105
+ },
1106
+ {
1107
+ "name": "collection",
1108
+ "docs": ["Collection"],
1109
+ "type": {
1110
+ "option": {
1111
+ "defined": "Collection"
1112
+ }
1113
+ }
1114
+ },
1115
+ {
1116
+ "name": "uses",
1117
+ "docs": ["Uses"],
1118
+ "type": {
1119
+ "option": {
1120
+ "defined": "Uses"
1121
+ }
1122
+ }
1123
+ },
1124
+ {
1125
+ "name": "tokenProgramVersion",
1126
+ "type": {
1127
+ "defined": "TokenProgramVersion"
1128
+ }
1129
+ },
1130
+ {
1131
+ "name": "creators",
1132
+ "type": {
1133
+ "vec": {
1134
+ "defined": "Creator"
1135
+ }
1136
+ }
1137
+ }
1138
+ ]
1139
+ }
1140
+ },
1141
+ {
1142
+ "name": "ThresholdType",
1143
+ "type": {
1144
+ "kind": "enum",
1145
+ "variants": [
1146
+ {
1147
+ "name": "Percent"
1148
+ },
1149
+ {
1150
+ "name": "Absolute"
1151
+ }
1152
+ ]
1153
+ }
1154
+ },
1155
+ {
1156
+ "name": "TokenProgramVersion",
1157
+ "type": {
1158
+ "kind": "enum",
1159
+ "variants": [
1160
+ {
1161
+ "name": "Original"
1162
+ },
1163
+ {
1164
+ "name": "Token2022"
1165
+ }
1166
+ ]
1167
+ }
1168
+ },
1169
+ {
1170
+ "name": "TokenStandard",
1171
+ "type": {
1172
+ "kind": "enum",
1173
+ "variants": [
1174
+ {
1175
+ "name": "NonFungible"
1176
+ },
1177
+ {
1178
+ "name": "FungibleAsset"
1179
+ },
1180
+ {
1181
+ "name": "Fungible"
1182
+ },
1183
+ {
1184
+ "name": "NonFungibleEdition"
1185
+ }
1186
+ ]
1187
+ }
1188
+ },
1189
+ {
1190
+ "name": "UseMethod",
1191
+ "type": {
1192
+ "kind": "enum",
1193
+ "variants": [
1194
+ {
1195
+ "name": "Burn"
1196
+ },
1197
+ {
1198
+ "name": "Multiple"
1199
+ },
1200
+ {
1201
+ "name": "Single"
1202
+ }
1203
+ ]
1204
+ }
1205
+ }
1206
+ ],
1207
+ "errors": [
1208
+ {
1209
+ "code": 6000,
1210
+ "name": "InvalidDataIncrease",
1211
+ "msg": "The realloc increase was too large"
1212
+ },
1213
+ {
1214
+ "code": 6001,
1215
+ "name": "ArithmeticError",
1216
+ "msg": "Error in arithmetic"
1217
+ },
1218
+ {
1219
+ "code": 6002,
1220
+ "name": "InvalidAsset",
1221
+ "msg": "Provided asset was invalid"
1222
+ },
1223
+ {
1224
+ "code": 6003,
1225
+ "name": "InvalidOracleIndex",
1226
+ "msg": "Oracle index was out of range"
1227
+ },
1228
+ {
1229
+ "code": 6004,
1230
+ "name": "InvalidApproverSignature",
1231
+ "msg": "Approver signature required"
1232
+ },
1233
+ {
1234
+ "code": 6005,
1235
+ "name": "CustomDestination",
1236
+ "msg": "This recipient uses a custom destination. Use distribute_custom_destination_v0"
1237
+ }
1238
+ ]
1239
+ }