@helium/idls 0.10.17 → 0.10.19

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.
@@ -0,0 +1,912 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/welcome_pack.json`.
6
+ */
7
+ export type WelcomePack = {
8
+ "address": "we1cGnTxTkDP9Sk49dw1d3T7ik7V2NfnY4qDGCDHXfC";
9
+ "metadata": {
10
+ "name": "welcomePack";
11
+ "version": "0.0.1";
12
+ "spec": "0.1.0";
13
+ "description": "Created with Anchor";
14
+ };
15
+ "instructions": [
16
+ {
17
+ "name": "claimWelcomePackV0";
18
+ "discriminator": [
19
+ 193,
20
+ 189,
21
+ 189,
22
+ 219,
23
+ 97,
24
+ 176,
25
+ 82,
26
+ 231
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "claimer";
31
+ "writable": true;
32
+ "signer": true;
33
+ },
34
+ {
35
+ "name": "rentRefund";
36
+ "writable": true;
37
+ },
38
+ {
39
+ "name": "assetReturnAddress";
40
+ },
41
+ {
42
+ "name": "owner";
43
+ "relations": [
44
+ "welcomePack"
45
+ ];
46
+ },
47
+ {
48
+ "name": "welcomePack";
49
+ "writable": true;
50
+ },
51
+ {
52
+ "name": "rewardsMint";
53
+ "relations": [
54
+ "welcomePack"
55
+ ];
56
+ },
57
+ {
58
+ "name": "recipient";
59
+ "writable": true;
60
+ },
61
+ {
62
+ "name": "rewardsRecipient";
63
+ "writable": true;
64
+ },
65
+ {
66
+ "name": "tokenAccount";
67
+ "writable": true;
68
+ },
69
+ {
70
+ "name": "queueAuthority";
71
+ },
72
+ {
73
+ "name": "taskQueue";
74
+ "writable": true;
75
+ },
76
+ {
77
+ "name": "taskQueueAuthority";
78
+ },
79
+ {
80
+ "name": "task";
81
+ "writable": true;
82
+ },
83
+ {
84
+ "name": "treeAuthority";
85
+ },
86
+ {
87
+ "name": "merkleTree";
88
+ "writable": true;
89
+ },
90
+ {
91
+ "name": "logWrapper";
92
+ "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV";
93
+ },
94
+ {
95
+ "name": "compressionProgram";
96
+ "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK";
97
+ },
98
+ {
99
+ "name": "systemProgram";
100
+ "address": "11111111111111111111111111111111";
101
+ },
102
+ {
103
+ "name": "miniFanoutProgram";
104
+ "address": "mfanLprNnaiP4RX9Zz1BMcDosYHCqnG24H1fMEbi9Gn";
105
+ },
106
+ {
107
+ "name": "associatedTokenProgram";
108
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
109
+ },
110
+ {
111
+ "name": "tokenProgram";
112
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
113
+ },
114
+ {
115
+ "name": "bubblegumProgram";
116
+ "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY";
117
+ },
118
+ {
119
+ "name": "tuktukProgram";
120
+ "address": "tuktukUrfhXT6ZT77QTU8RQtvgL967uRuVagWF57zVA";
121
+ },
122
+ {
123
+ "name": "lazyDistributorProgram";
124
+ "address": "1azyuavdMyvsivtNxPoz6SucD18eDHeXzFCUPq5XU7w";
125
+ }
126
+ ];
127
+ "args": [
128
+ {
129
+ "name": "args";
130
+ "type": {
131
+ "defined": {
132
+ "name": "claimWelcomePackArgsV0";
133
+ };
134
+ };
135
+ }
136
+ ];
137
+ },
138
+ {
139
+ "name": "closeWelcomePackV0";
140
+ "discriminator": [
141
+ 220,
142
+ 222,
143
+ 184,
144
+ 125,
145
+ 100,
146
+ 243,
147
+ 243,
148
+ 172
149
+ ];
150
+ "accounts": [
151
+ {
152
+ "name": "owner";
153
+ "signer": true;
154
+ "relations": [
155
+ "welcomePack"
156
+ ];
157
+ },
158
+ {
159
+ "name": "welcomePack";
160
+ "writable": true;
161
+ },
162
+ {
163
+ "name": "userWelcomePacks";
164
+ },
165
+ {
166
+ "name": "rentRefund";
167
+ "writable": true;
168
+ },
169
+ {
170
+ "name": "merkleTree";
171
+ "writable": true;
172
+ },
173
+ {
174
+ "name": "treeAuthority";
175
+ "pda": {
176
+ "seeds": [
177
+ {
178
+ "kind": "account";
179
+ "path": "merkleTree";
180
+ }
181
+ ];
182
+ "program": {
183
+ "kind": "const";
184
+ "value": [
185
+ 152,
186
+ 139,
187
+ 128,
188
+ 235,
189
+ 121,
190
+ 53,
191
+ 40,
192
+ 105,
193
+ 178,
194
+ 36,
195
+ 116,
196
+ 95,
197
+ 89,
198
+ 221,
199
+ 191,
200
+ 138,
201
+ 38,
202
+ 88,
203
+ 202,
204
+ 19,
205
+ 220,
206
+ 104,
207
+ 129,
208
+ 33,
209
+ 38,
210
+ 53,
211
+ 28,
212
+ 174,
213
+ 7,
214
+ 193,
215
+ 165,
216
+ 165
217
+ ];
218
+ };
219
+ };
220
+ },
221
+ {
222
+ "name": "logWrapper";
223
+ "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV";
224
+ },
225
+ {
226
+ "name": "compressionProgram";
227
+ "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK";
228
+ },
229
+ {
230
+ "name": "systemProgram";
231
+ "address": "11111111111111111111111111111111";
232
+ },
233
+ {
234
+ "name": "bubblegumProgram";
235
+ "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY";
236
+ }
237
+ ];
238
+ "args": [
239
+ {
240
+ "name": "args";
241
+ "type": {
242
+ "defined": {
243
+ "name": "closeWelcomePackArgsV0";
244
+ };
245
+ };
246
+ }
247
+ ];
248
+ },
249
+ {
250
+ "name": "initializeWelcomePackV0";
251
+ "discriminator": [
252
+ 30,
253
+ 11,
254
+ 218,
255
+ 24,
256
+ 48,
257
+ 198,
258
+ 32,
259
+ 90
260
+ ];
261
+ "accounts": [
262
+ {
263
+ "name": "owner";
264
+ "signer": true;
265
+ },
266
+ {
267
+ "name": "payer";
268
+ "writable": true;
269
+ "signer": true;
270
+ },
271
+ {
272
+ "name": "rentRefund";
273
+ },
274
+ {
275
+ "name": "lazyDistributor";
276
+ "relations": [
277
+ "recipient"
278
+ ];
279
+ },
280
+ {
281
+ "name": "recipient";
282
+ },
283
+ {
284
+ "name": "assetReturnAddress";
285
+ },
286
+ {
287
+ "name": "userWelcomePacks";
288
+ "writable": true;
289
+ "pda": {
290
+ "seeds": [
291
+ {
292
+ "kind": "const";
293
+ "value": [
294
+ 117,
295
+ 115,
296
+ 101,
297
+ 114,
298
+ 95,
299
+ 119,
300
+ 101,
301
+ 108,
302
+ 99,
303
+ 111,
304
+ 109,
305
+ 101,
306
+ 95,
307
+ 112,
308
+ 97,
309
+ 99,
310
+ 107,
311
+ 115
312
+ ];
313
+ },
314
+ {
315
+ "kind": "account";
316
+ "path": "owner";
317
+ }
318
+ ];
319
+ };
320
+ },
321
+ {
322
+ "name": "welcomePack";
323
+ "writable": true;
324
+ "pda": {
325
+ "seeds": [
326
+ {
327
+ "kind": "const";
328
+ "value": [
329
+ 119,
330
+ 101,
331
+ 108,
332
+ 99,
333
+ 111,
334
+ 109,
335
+ 101,
336
+ 95,
337
+ 112,
338
+ 97,
339
+ 99,
340
+ 107
341
+ ];
342
+ },
343
+ {
344
+ "kind": "account";
345
+ "path": "owner";
346
+ },
347
+ {
348
+ "kind": "account";
349
+ "path": "user_welcome_packs.next_id";
350
+ "account": "userWelcomePacksV0";
351
+ }
352
+ ];
353
+ };
354
+ },
355
+ {
356
+ "name": "treeAuthority";
357
+ "pda": {
358
+ "seeds": [
359
+ {
360
+ "kind": "account";
361
+ "path": "merkleTree";
362
+ }
363
+ ];
364
+ "program": {
365
+ "kind": "const";
366
+ "value": [
367
+ 152,
368
+ 139,
369
+ 128,
370
+ 235,
371
+ 121,
372
+ 53,
373
+ 40,
374
+ 105,
375
+ 178,
376
+ 36,
377
+ 116,
378
+ 95,
379
+ 89,
380
+ 221,
381
+ 191,
382
+ 138,
383
+ 38,
384
+ 88,
385
+ 202,
386
+ 19,
387
+ 220,
388
+ 104,
389
+ 129,
390
+ 33,
391
+ 38,
392
+ 53,
393
+ 28,
394
+ 174,
395
+ 7,
396
+ 193,
397
+ 165,
398
+ 165
399
+ ];
400
+ };
401
+ };
402
+ },
403
+ {
404
+ "name": "leafOwner";
405
+ "signer": true;
406
+ },
407
+ {
408
+ "name": "merkleTree";
409
+ "writable": true;
410
+ },
411
+ {
412
+ "name": "logWrapper";
413
+ "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV";
414
+ },
415
+ {
416
+ "name": "compressionProgram";
417
+ "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK";
418
+ },
419
+ {
420
+ "name": "systemProgram";
421
+ "address": "11111111111111111111111111111111";
422
+ },
423
+ {
424
+ "name": "bubblegumProgram";
425
+ "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY";
426
+ }
427
+ ];
428
+ "args": [
429
+ {
430
+ "name": "args";
431
+ "type": {
432
+ "defined": {
433
+ "name": "initializeWelcomePackArgsV0";
434
+ };
435
+ };
436
+ }
437
+ ];
438
+ }
439
+ ];
440
+ "accounts": [
441
+ {
442
+ "name": "lazyDistributorV0";
443
+ "discriminator": [
444
+ 135,
445
+ 186,
446
+ 185,
447
+ 252,
448
+ 10,
449
+ 77,
450
+ 99,
451
+ 167
452
+ ];
453
+ },
454
+ {
455
+ "name": "recipientV0";
456
+ "discriminator": [
457
+ 174,
458
+ 14,
459
+ 199,
460
+ 217,
461
+ 206,
462
+ 108,
463
+ 154,
464
+ 50
465
+ ];
466
+ },
467
+ {
468
+ "name": "userWelcomePacksV0";
469
+ "discriminator": [
470
+ 207,
471
+ 221,
472
+ 75,
473
+ 20,
474
+ 104,
475
+ 235,
476
+ 208,
477
+ 172
478
+ ];
479
+ },
480
+ {
481
+ "name": "welcomePackV0";
482
+ "discriminator": [
483
+ 240,
484
+ 173,
485
+ 154,
486
+ 20,
487
+ 194,
488
+ 189,
489
+ 93,
490
+ 7
491
+ ];
492
+ }
493
+ ];
494
+ "errors": [
495
+ {
496
+ "code": 6000;
497
+ "name": "invalidAssetReturnAddress";
498
+ "msg": "Invalid asset return address";
499
+ },
500
+ {
501
+ "code": 6001;
502
+ "name": "invalidAsset";
503
+ "msg": "Invalid asset";
504
+ },
505
+ {
506
+ "code": 6002;
507
+ "name": "invalidRewardsRecipient";
508
+ "msg": "Invalid rewards recipient";
509
+ },
510
+ {
511
+ "code": 6003;
512
+ "name": "claimApprovalExpired";
513
+ "msg": "Claim approval expired";
514
+ },
515
+ {
516
+ "code": 6004;
517
+ "name": "invalidClaimApprovalSignature";
518
+ "msg": "Invalid claim approval signature";
519
+ },
520
+ {
521
+ "code": 6005;
522
+ "name": "invalidRentRefund";
523
+ "msg": "Invalid rent refund";
524
+ }
525
+ ];
526
+ "types": [
527
+ {
528
+ "name": "claimWelcomePackArgsV0";
529
+ "type": {
530
+ "kind": "struct";
531
+ "fields": [
532
+ {
533
+ "name": "dataHash";
534
+ "type": {
535
+ "array": [
536
+ "u8",
537
+ 32
538
+ ];
539
+ };
540
+ },
541
+ {
542
+ "name": "creatorHash";
543
+ "type": {
544
+ "array": [
545
+ "u8",
546
+ 32
547
+ ];
548
+ };
549
+ },
550
+ {
551
+ "name": "root";
552
+ "type": {
553
+ "array": [
554
+ "u8",
555
+ 32
556
+ ];
557
+ };
558
+ },
559
+ {
560
+ "name": "index";
561
+ "type": "u32";
562
+ },
563
+ {
564
+ "name": "approvalExpirationTimestamp";
565
+ "type": "i64";
566
+ },
567
+ {
568
+ "name": "claimSignature";
569
+ "type": {
570
+ "array": [
571
+ "u8",
572
+ 64
573
+ ];
574
+ };
575
+ },
576
+ {
577
+ "name": "taskId";
578
+ "type": "u16";
579
+ }
580
+ ];
581
+ };
582
+ },
583
+ {
584
+ "name": "closeWelcomePackArgsV0";
585
+ "type": {
586
+ "kind": "struct";
587
+ "fields": [
588
+ {
589
+ "name": "dataHash";
590
+ "type": {
591
+ "array": [
592
+ "u8",
593
+ 32
594
+ ];
595
+ };
596
+ },
597
+ {
598
+ "name": "creatorHash";
599
+ "type": {
600
+ "array": [
601
+ "u8",
602
+ 32
603
+ ];
604
+ };
605
+ },
606
+ {
607
+ "name": "root";
608
+ "type": {
609
+ "array": [
610
+ "u8",
611
+ 32
612
+ ];
613
+ };
614
+ },
615
+ {
616
+ "name": "index";
617
+ "type": "u32";
618
+ }
619
+ ];
620
+ };
621
+ },
622
+ {
623
+ "name": "initializeWelcomePackArgsV0";
624
+ "type": {
625
+ "kind": "struct";
626
+ "fields": [
627
+ {
628
+ "name": "solAmount";
629
+ "type": "u64";
630
+ },
631
+ {
632
+ "name": "rewardsSplit";
633
+ "type": {
634
+ "vec": {
635
+ "defined": {
636
+ "name": "miniFanoutShareArgV0";
637
+ };
638
+ };
639
+ };
640
+ },
641
+ {
642
+ "name": "rewardsSchedule";
643
+ "type": "string";
644
+ },
645
+ {
646
+ "name": "dataHash";
647
+ "type": {
648
+ "array": [
649
+ "u8",
650
+ 32
651
+ ];
652
+ };
653
+ },
654
+ {
655
+ "name": "creatorHash";
656
+ "type": {
657
+ "array": [
658
+ "u8",
659
+ 32
660
+ ];
661
+ };
662
+ },
663
+ {
664
+ "name": "root";
665
+ "type": {
666
+ "array": [
667
+ "u8",
668
+ 32
669
+ ];
670
+ };
671
+ },
672
+ {
673
+ "name": "index";
674
+ "type": "u32";
675
+ }
676
+ ];
677
+ };
678
+ },
679
+ {
680
+ "name": "lazyDistributorV0";
681
+ "type": {
682
+ "kind": "struct";
683
+ "fields": [
684
+ {
685
+ "name": "version";
686
+ "type": "u16";
687
+ },
688
+ {
689
+ "name": "rewardsMint";
690
+ "type": "pubkey";
691
+ },
692
+ {
693
+ "name": "rewardsEscrow";
694
+ "type": "pubkey";
695
+ },
696
+ {
697
+ "name": "authority";
698
+ "type": "pubkey";
699
+ },
700
+ {
701
+ "name": "oracles";
702
+ "type": {
703
+ "vec": {
704
+ "defined": {
705
+ "name": "oracleConfigV0";
706
+ };
707
+ };
708
+ };
709
+ },
710
+ {
711
+ "name": "bumpSeed";
712
+ "type": "u8";
713
+ },
714
+ {
715
+ "name": "approver";
716
+ "type": {
717
+ "option": "pubkey";
718
+ };
719
+ }
720
+ ];
721
+ };
722
+ },
723
+ {
724
+ "name": "miniFanoutShareArgV0";
725
+ "type": {
726
+ "kind": "struct";
727
+ "fields": [
728
+ {
729
+ "name": "wallet";
730
+ "type": "pubkey";
731
+ },
732
+ {
733
+ "name": "share";
734
+ "type": {
735
+ "defined": {
736
+ "name": "share";
737
+ };
738
+ };
739
+ }
740
+ ];
741
+ };
742
+ },
743
+ {
744
+ "name": "oracleConfigV0";
745
+ "type": {
746
+ "kind": "struct";
747
+ "fields": [
748
+ {
749
+ "name": "oracle";
750
+ "type": "pubkey";
751
+ },
752
+ {
753
+ "name": "url";
754
+ "type": "string";
755
+ }
756
+ ];
757
+ };
758
+ },
759
+ {
760
+ "name": "recipientV0";
761
+ "type": {
762
+ "kind": "struct";
763
+ "fields": [
764
+ {
765
+ "name": "lazyDistributor";
766
+ "type": "pubkey";
767
+ },
768
+ {
769
+ "name": "asset";
770
+ "type": "pubkey";
771
+ },
772
+ {
773
+ "name": "totalRewards";
774
+ "type": "u64";
775
+ },
776
+ {
777
+ "name": "currentConfigVersion";
778
+ "type": "u16";
779
+ },
780
+ {
781
+ "name": "currentRewards";
782
+ "type": {
783
+ "vec": {
784
+ "option": "u64";
785
+ };
786
+ };
787
+ },
788
+ {
789
+ "name": "bumpSeed";
790
+ "type": "u8";
791
+ },
792
+ {
793
+ "name": "reserved";
794
+ "type": "u64";
795
+ },
796
+ {
797
+ "name": "destination";
798
+ "docs": [
799
+ "Pubkey::Default if not being used."
800
+ ];
801
+ "type": "pubkey";
802
+ }
803
+ ];
804
+ };
805
+ },
806
+ {
807
+ "name": "share";
808
+ "type": {
809
+ "kind": "enum";
810
+ "variants": [
811
+ {
812
+ "name": "share";
813
+ "fields": [
814
+ {
815
+ "name": "amount";
816
+ "type": "u32";
817
+ }
818
+ ];
819
+ },
820
+ {
821
+ "name": "fixed";
822
+ "fields": [
823
+ {
824
+ "name": "amount";
825
+ "type": "u64";
826
+ }
827
+ ];
828
+ }
829
+ ];
830
+ };
831
+ },
832
+ {
833
+ "name": "userWelcomePacksV0";
834
+ "type": {
835
+ "kind": "struct";
836
+ "fields": [
837
+ {
838
+ "name": "nextId";
839
+ "type": "u32";
840
+ },
841
+ {
842
+ "name": "owner";
843
+ "type": "pubkey";
844
+ },
845
+ {
846
+ "name": "bumpSeed";
847
+ "type": "u8";
848
+ }
849
+ ];
850
+ };
851
+ },
852
+ {
853
+ "name": "welcomePackV0";
854
+ "type": {
855
+ "kind": "struct";
856
+ "fields": [
857
+ {
858
+ "name": "id";
859
+ "type": "u32";
860
+ },
861
+ {
862
+ "name": "owner";
863
+ "type": "pubkey";
864
+ },
865
+ {
866
+ "name": "asset";
867
+ "type": "pubkey";
868
+ },
869
+ {
870
+ "name": "lazyDistributor";
871
+ "type": "pubkey";
872
+ },
873
+ {
874
+ "name": "rewardsMint";
875
+ "type": "pubkey";
876
+ },
877
+ {
878
+ "name": "rentRefund";
879
+ "type": "pubkey";
880
+ },
881
+ {
882
+ "name": "solAmount";
883
+ "type": "u64";
884
+ },
885
+ {
886
+ "name": "rewardsSplit";
887
+ "type": {
888
+ "vec": {
889
+ "defined": {
890
+ "name": "miniFanoutShareArgV0";
891
+ };
892
+ };
893
+ };
894
+ },
895
+ {
896
+ "name": "rewardsSchedule";
897
+ "type": "string";
898
+ },
899
+ {
900
+ "name": "assetReturnAddress";
901
+ "type": "pubkey";
902
+ },
903
+ {
904
+ "name": "bumpSeed";
905
+ "type": "u8";
906
+ }
907
+ ];
908
+ };
909
+ }
910
+ ];
911
+ };
912
+ //# sourceMappingURL=welcome_pack.d.ts.map