@helium/idls 0.0.4 → 0.0.5

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,893 @@
1
+ export declare type HeliumEntityManager = {
2
+ "version": "0.0.1";
3
+ "name": "helium_entity_manager";
4
+ "instructions": [
5
+ {
6
+ "name": "initializeHotspotConfigV0";
7
+ "accounts": [
8
+ {
9
+ "name": "payer";
10
+ "isMut": true;
11
+ "isSigner": true;
12
+ },
13
+ {
14
+ "name": "collection";
15
+ "isMut": true;
16
+ "isSigner": false;
17
+ "pda": {
18
+ "seeds": [
19
+ {
20
+ "kind": "const";
21
+ "type": "string";
22
+ "value": "collection";
23
+ },
24
+ {
25
+ "kind": "account";
26
+ "type": "publicKey";
27
+ "account": "SubDaoV0";
28
+ "path": "sub_dao";
29
+ },
30
+ {
31
+ "kind": "arg";
32
+ "type": {
33
+ "defined": "InitializeHotspotConfigArgsV0";
34
+ };
35
+ "path": "args.symbol";
36
+ }
37
+ ];
38
+ };
39
+ },
40
+ {
41
+ "name": "subDao";
42
+ "isMut": false;
43
+ "isSigner": false;
44
+ "relations": [
45
+ "authority"
46
+ ];
47
+ },
48
+ {
49
+ "name": "authority";
50
+ "isMut": false;
51
+ "isSigner": true;
52
+ },
53
+ {
54
+ "name": "metadata";
55
+ "isMut": true;
56
+ "isSigner": false;
57
+ "pda": {
58
+ "seeds": [
59
+ {
60
+ "kind": "const";
61
+ "type": "string";
62
+ "value": "metadata";
63
+ },
64
+ {
65
+ "kind": "account";
66
+ "type": "publicKey";
67
+ "path": "token_metadata_program";
68
+ },
69
+ {
70
+ "kind": "account";
71
+ "type": "publicKey";
72
+ "account": "Mint";
73
+ "path": "collection";
74
+ }
75
+ ];
76
+ "programId": {
77
+ "kind": "account";
78
+ "type": "publicKey";
79
+ "path": "token_metadata_program";
80
+ };
81
+ };
82
+ },
83
+ {
84
+ "name": "masterEdition";
85
+ "isMut": true;
86
+ "isSigner": false;
87
+ "pda": {
88
+ "seeds": [
89
+ {
90
+ "kind": "const";
91
+ "type": "string";
92
+ "value": "metadata";
93
+ },
94
+ {
95
+ "kind": "account";
96
+ "type": "publicKey";
97
+ "path": "token_metadata_program";
98
+ },
99
+ {
100
+ "kind": "account";
101
+ "type": "publicKey";
102
+ "account": "Mint";
103
+ "path": "collection";
104
+ },
105
+ {
106
+ "kind": "const";
107
+ "type": "string";
108
+ "value": "edition";
109
+ }
110
+ ];
111
+ "programId": {
112
+ "kind": "account";
113
+ "type": "publicKey";
114
+ "path": "token_metadata_program";
115
+ };
116
+ };
117
+ },
118
+ {
119
+ "name": "tokenAccount";
120
+ "isMut": true;
121
+ "isSigner": false;
122
+ },
123
+ {
124
+ "name": "hotspotConfig";
125
+ "isMut": true;
126
+ "isSigner": false;
127
+ "pda": {
128
+ "seeds": [
129
+ {
130
+ "kind": "const";
131
+ "type": "string";
132
+ "value": "hotspot_config";
133
+ },
134
+ {
135
+ "kind": "account";
136
+ "type": "publicKey";
137
+ "account": "SubDaoV0";
138
+ "path": "sub_dao";
139
+ },
140
+ {
141
+ "kind": "arg";
142
+ "type": {
143
+ "defined": "InitializeHotspotConfigArgsV0";
144
+ };
145
+ "path": "args.symbol";
146
+ }
147
+ ];
148
+ };
149
+ },
150
+ {
151
+ "name": "dcMint";
152
+ "isMut": false;
153
+ "isSigner": false;
154
+ },
155
+ {
156
+ "name": "tokenMetadataProgram";
157
+ "isMut": false;
158
+ "isSigner": false;
159
+ },
160
+ {
161
+ "name": "associatedTokenProgram";
162
+ "isMut": false;
163
+ "isSigner": false;
164
+ },
165
+ {
166
+ "name": "systemProgram";
167
+ "isMut": false;
168
+ "isSigner": false;
169
+ },
170
+ {
171
+ "name": "tokenProgram";
172
+ "isMut": false;
173
+ "isSigner": false;
174
+ },
175
+ {
176
+ "name": "rent";
177
+ "isMut": false;
178
+ "isSigner": false;
179
+ }
180
+ ];
181
+ "args": [
182
+ {
183
+ "name": "args";
184
+ "type": {
185
+ "defined": "InitializeHotspotConfigArgsV0";
186
+ };
187
+ }
188
+ ];
189
+ },
190
+ {
191
+ "name": "initializeHotspotIssuerV0";
192
+ "accounts": [
193
+ {
194
+ "name": "payer";
195
+ "isMut": true;
196
+ "isSigner": true;
197
+ },
198
+ {
199
+ "name": "hotspotConfig";
200
+ "isMut": false;
201
+ "isSigner": false;
202
+ "pda": {
203
+ "seeds": [
204
+ {
205
+ "kind": "const";
206
+ "type": "string";
207
+ "value": "hotspot_config";
208
+ },
209
+ {
210
+ "kind": "account";
211
+ "type": "publicKey";
212
+ "account": "HotspotConfigV0";
213
+ "path": "hotspot_config.sub_dao";
214
+ },
215
+ {
216
+ "kind": "account";
217
+ "type": "string";
218
+ "account": "HotspotConfigV0";
219
+ "path": "hotspot_config.symbol";
220
+ }
221
+ ];
222
+ };
223
+ },
224
+ {
225
+ "name": "hotspotIssuer";
226
+ "isMut": true;
227
+ "isSigner": false;
228
+ "pda": {
229
+ "seeds": [
230
+ {
231
+ "kind": "const";
232
+ "type": "string";
233
+ "value": "hotspot_issuer";
234
+ },
235
+ {
236
+ "kind": "account";
237
+ "type": "publicKey";
238
+ "account": "HotspotConfigV0";
239
+ "path": "hotspot_config";
240
+ },
241
+ {
242
+ "kind": "arg";
243
+ "type": {
244
+ "defined": "InitializeHotspotIssuerArgsV0";
245
+ };
246
+ "path": "args.maker";
247
+ }
248
+ ];
249
+ };
250
+ },
251
+ {
252
+ "name": "systemProgram";
253
+ "isMut": false;
254
+ "isSigner": false;
255
+ },
256
+ {
257
+ "name": "rent";
258
+ "isMut": false;
259
+ "isSigner": false;
260
+ }
261
+ ];
262
+ "args": [
263
+ {
264
+ "name": "args";
265
+ "type": {
266
+ "defined": "InitializeHotspotIssuerArgsV0";
267
+ };
268
+ }
269
+ ];
270
+ },
271
+ {
272
+ "name": "issueHotspotV0";
273
+ "accounts": [
274
+ {
275
+ "name": "payer";
276
+ "isMut": true;
277
+ "isSigner": true;
278
+ },
279
+ {
280
+ "name": "dcFeePayer";
281
+ "isMut": false;
282
+ "isSigner": true;
283
+ },
284
+ {
285
+ "name": "maker";
286
+ "isMut": false;
287
+ "isSigner": true;
288
+ },
289
+ {
290
+ "name": "hotspotOwner";
291
+ "isMut": false;
292
+ "isSigner": false;
293
+ },
294
+ {
295
+ "name": "collection";
296
+ "isMut": true;
297
+ "isSigner": false;
298
+ },
299
+ {
300
+ "name": "collectionMetadata";
301
+ "isMut": true;
302
+ "isSigner": false;
303
+ "pda": {
304
+ "seeds": [
305
+ {
306
+ "kind": "const";
307
+ "type": "string";
308
+ "value": "metadata";
309
+ },
310
+ {
311
+ "kind": "account";
312
+ "type": "publicKey";
313
+ "path": "token_metadata_program";
314
+ },
315
+ {
316
+ "kind": "account";
317
+ "type": "publicKey";
318
+ "account": "Mint";
319
+ "path": "collection";
320
+ }
321
+ ];
322
+ "programId": {
323
+ "kind": "account";
324
+ "type": "publicKey";
325
+ "path": "token_metadata_program";
326
+ };
327
+ };
328
+ },
329
+ {
330
+ "name": "collectionMasterEdition";
331
+ "isMut": true;
332
+ "isSigner": false;
333
+ "pda": {
334
+ "seeds": [
335
+ {
336
+ "kind": "const";
337
+ "type": "string";
338
+ "value": "metadata";
339
+ },
340
+ {
341
+ "kind": "account";
342
+ "type": "publicKey";
343
+ "path": "token_metadata_program";
344
+ },
345
+ {
346
+ "kind": "account";
347
+ "type": "publicKey";
348
+ "account": "Mint";
349
+ "path": "collection";
350
+ },
351
+ {
352
+ "kind": "const";
353
+ "type": "string";
354
+ "value": "edition";
355
+ }
356
+ ];
357
+ "programId": {
358
+ "kind": "account";
359
+ "type": "publicKey";
360
+ "path": "token_metadata_program";
361
+ };
362
+ };
363
+ },
364
+ {
365
+ "name": "hotspotConfig";
366
+ "isMut": false;
367
+ "isSigner": false;
368
+ "relations": [
369
+ "collection",
370
+ "dc_mint",
371
+ "sub_dao"
372
+ ];
373
+ },
374
+ {
375
+ "name": "hotspotIssuer";
376
+ "isMut": true;
377
+ "isSigner": false;
378
+ "pda": {
379
+ "seeds": [
380
+ {
381
+ "kind": "const";
382
+ "type": "string";
383
+ "value": "hotspot_issuer";
384
+ },
385
+ {
386
+ "kind": "account";
387
+ "type": "publicKey";
388
+ "account": "HotspotConfigV0";
389
+ "path": "hotspot_config";
390
+ },
391
+ {
392
+ "kind": "account";
393
+ "type": "publicKey";
394
+ "path": "maker";
395
+ }
396
+ ];
397
+ };
398
+ "relations": [
399
+ "hotspot_config",
400
+ "maker"
401
+ ];
402
+ },
403
+ {
404
+ "name": "hotspot";
405
+ "isMut": true;
406
+ "isSigner": false;
407
+ },
408
+ {
409
+ "name": "storage";
410
+ "isMut": true;
411
+ "isSigner": false;
412
+ "pda": {
413
+ "seeds": [
414
+ {
415
+ "kind": "const";
416
+ "type": "string";
417
+ "value": "storage";
418
+ },
419
+ {
420
+ "kind": "account";
421
+ "type": "publicKey";
422
+ "account": "Mint";
423
+ "path": "hotspot";
424
+ }
425
+ ];
426
+ };
427
+ },
428
+ {
429
+ "name": "metadata";
430
+ "isMut": true;
431
+ "isSigner": false;
432
+ "pda": {
433
+ "seeds": [
434
+ {
435
+ "kind": "const";
436
+ "type": "string";
437
+ "value": "metadata";
438
+ },
439
+ {
440
+ "kind": "account";
441
+ "type": "publicKey";
442
+ "path": "token_metadata_program";
443
+ },
444
+ {
445
+ "kind": "account";
446
+ "type": "publicKey";
447
+ "account": "Mint";
448
+ "path": "hotspot";
449
+ }
450
+ ];
451
+ "programId": {
452
+ "kind": "account";
453
+ "type": "publicKey";
454
+ "path": "token_metadata_program";
455
+ };
456
+ };
457
+ },
458
+ {
459
+ "name": "masterEdition";
460
+ "isMut": true;
461
+ "isSigner": false;
462
+ "pda": {
463
+ "seeds": [
464
+ {
465
+ "kind": "const";
466
+ "type": "string";
467
+ "value": "metadata";
468
+ },
469
+ {
470
+ "kind": "account";
471
+ "type": "publicKey";
472
+ "path": "token_metadata_program";
473
+ },
474
+ {
475
+ "kind": "account";
476
+ "type": "publicKey";
477
+ "account": "Mint";
478
+ "path": "hotspot";
479
+ },
480
+ {
481
+ "kind": "const";
482
+ "type": "string";
483
+ "value": "edition";
484
+ }
485
+ ];
486
+ "programId": {
487
+ "kind": "account";
488
+ "type": "publicKey";
489
+ "path": "token_metadata_program";
490
+ };
491
+ };
492
+ },
493
+ {
494
+ "name": "recipientTokenAccount";
495
+ "isMut": true;
496
+ "isSigner": false;
497
+ },
498
+ {
499
+ "name": "dc";
500
+ "isMut": false;
501
+ "isSigner": false;
502
+ "pda": {
503
+ "seeds": [
504
+ {
505
+ "kind": "const";
506
+ "type": "string";
507
+ "value": "dc";
508
+ },
509
+ {
510
+ "kind": "account";
511
+ "type": "publicKey";
512
+ "path": "dc_mint";
513
+ }
514
+ ];
515
+ "programId": {
516
+ "kind": "account";
517
+ "type": "publicKey";
518
+ "path": "data_credits_program";
519
+ };
520
+ };
521
+ "relations": [
522
+ "dc_mint"
523
+ ];
524
+ },
525
+ {
526
+ "name": "dcMint";
527
+ "isMut": true;
528
+ "isSigner": false;
529
+ },
530
+ {
531
+ "name": "dcBurner";
532
+ "isMut": true;
533
+ "isSigner": false;
534
+ },
535
+ {
536
+ "name": "subDaoEpochInfo";
537
+ "isMut": true;
538
+ "isSigner": false;
539
+ },
540
+ {
541
+ "name": "subDao";
542
+ "isMut": true;
543
+ "isSigner": false;
544
+ },
545
+ {
546
+ "name": "tokenMetadataProgram";
547
+ "isMut": false;
548
+ "isSigner": false;
549
+ },
550
+ {
551
+ "name": "dataCreditsProgram";
552
+ "isMut": false;
553
+ "isSigner": false;
554
+ },
555
+ {
556
+ "name": "heliumSubDaosProgram";
557
+ "isMut": false;
558
+ "isSigner": false;
559
+ },
560
+ {
561
+ "name": "associatedTokenProgram";
562
+ "isMut": false;
563
+ "isSigner": false;
564
+ },
565
+ {
566
+ "name": "systemProgram";
567
+ "isMut": false;
568
+ "isSigner": false;
569
+ },
570
+ {
571
+ "name": "tokenProgram";
572
+ "isMut": false;
573
+ "isSigner": false;
574
+ },
575
+ {
576
+ "name": "clock";
577
+ "isMut": false;
578
+ "isSigner": false;
579
+ },
580
+ {
581
+ "name": "rent";
582
+ "isMut": false;
583
+ "isSigner": false;
584
+ }
585
+ ];
586
+ "args": [
587
+ {
588
+ "name": "args";
589
+ "type": {
590
+ "defined": "IssueHotspotArgsV0";
591
+ };
592
+ }
593
+ ];
594
+ }
595
+ ];
596
+ "accounts": [
597
+ {
598
+ "name": "hotspotConfigV0";
599
+ "type": {
600
+ "kind": "struct";
601
+ "fields": [
602
+ {
603
+ "name": "dcFee";
604
+ "type": "u64";
605
+ },
606
+ {
607
+ "name": "collection";
608
+ "type": "publicKey";
609
+ },
610
+ {
611
+ "name": "dcMint";
612
+ "type": "publicKey";
613
+ },
614
+ {
615
+ "name": "onboardingServer";
616
+ "type": "publicKey";
617
+ },
618
+ {
619
+ "name": "authority";
620
+ "type": "publicKey";
621
+ },
622
+ {
623
+ "name": "symbol";
624
+ "type": "string";
625
+ },
626
+ {
627
+ "name": "subDao";
628
+ "type": "publicKey";
629
+ },
630
+ {
631
+ "name": "bumpSeed";
632
+ "type": "u8";
633
+ },
634
+ {
635
+ "name": "collectionBumpSeed";
636
+ "type": "u8";
637
+ }
638
+ ];
639
+ };
640
+ },
641
+ {
642
+ "name": "hotspotIssuerV0";
643
+ "type": {
644
+ "kind": "struct";
645
+ "fields": [
646
+ {
647
+ "name": "count";
648
+ "type": "u64";
649
+ },
650
+ {
651
+ "name": "maker";
652
+ "type": "publicKey";
653
+ },
654
+ {
655
+ "name": "hotspotConfig";
656
+ "type": "publicKey";
657
+ },
658
+ {
659
+ "name": "authority";
660
+ "type": "publicKey";
661
+ },
662
+ {
663
+ "name": "bumpSeed";
664
+ "type": "u8";
665
+ }
666
+ ];
667
+ };
668
+ },
669
+ {
670
+ "name": "hotspotStorageV0";
671
+ "type": {
672
+ "kind": "struct";
673
+ "fields": [
674
+ {
675
+ "name": "eccCompact";
676
+ "type": "bytes";
677
+ },
678
+ {
679
+ "name": "location";
680
+ "type": {
681
+ "option": "string";
682
+ };
683
+ },
684
+ {
685
+ "name": "authority";
686
+ "type": "publicKey";
687
+ },
688
+ {
689
+ "name": "bumpSeed";
690
+ "type": "u8";
691
+ }
692
+ ];
693
+ };
694
+ }
695
+ ];
696
+ "types": [
697
+ {
698
+ "name": "InitializeHotspotConfigArgsV0";
699
+ "type": {
700
+ "kind": "struct";
701
+ "fields": [
702
+ {
703
+ "name": "name";
704
+ "type": "string";
705
+ },
706
+ {
707
+ "name": "symbol";
708
+ "type": "string";
709
+ },
710
+ {
711
+ "name": "metadataUrl";
712
+ "type": "string";
713
+ },
714
+ {
715
+ "name": "dcFee";
716
+ "type": "u64";
717
+ },
718
+ {
719
+ "name": "onboardingServer";
720
+ "type": "publicKey";
721
+ }
722
+ ];
723
+ };
724
+ },
725
+ {
726
+ "name": "InitializeHotspotIssuerArgsV0";
727
+ "type": {
728
+ "kind": "struct";
729
+ "fields": [
730
+ {
731
+ "name": "maker";
732
+ "type": "publicKey";
733
+ },
734
+ {
735
+ "name": "authority";
736
+ "type": "publicKey";
737
+ }
738
+ ];
739
+ };
740
+ },
741
+ {
742
+ "name": "IssueHotspotArgsV0";
743
+ "type": {
744
+ "kind": "struct";
745
+ "fields": [
746
+ {
747
+ "name": "eccCompact";
748
+ "type": "bytes";
749
+ },
750
+ {
751
+ "name": "uri";
752
+ "type": "string";
753
+ }
754
+ ];
755
+ };
756
+ },
757
+ {
758
+ "name": "Collection";
759
+ "type": {
760
+ "kind": "struct";
761
+ "fields": [
762
+ {
763
+ "name": "verified";
764
+ "type": "bool";
765
+ },
766
+ {
767
+ "name": "key";
768
+ "type": "publicKey";
769
+ }
770
+ ];
771
+ };
772
+ },
773
+ {
774
+ "name": "CreateMetadataAccountArgs";
775
+ "type": {
776
+ "kind": "struct";
777
+ "fields": [
778
+ {
779
+ "name": "name";
780
+ "docs": [
781
+ "The name of the asset"
782
+ ];
783
+ "type": "string";
784
+ },
785
+ {
786
+ "name": "symbol";
787
+ "docs": [
788
+ "The symbol for the asset"
789
+ ];
790
+ "type": "string";
791
+ },
792
+ {
793
+ "name": "uri";
794
+ "docs": [
795
+ "URI pointing to JSON representing the asset"
796
+ ];
797
+ "type": "string";
798
+ },
799
+ {
800
+ "name": "collection";
801
+ "type": {
802
+ "option": {
803
+ "defined": "Collection";
804
+ };
805
+ };
806
+ },
807
+ {
808
+ "name": "collectionDetails";
809
+ "type": {
810
+ "option": {
811
+ "defined": "CollectionDetails";
812
+ };
813
+ };
814
+ }
815
+ ];
816
+ };
817
+ },
818
+ {
819
+ "name": "CreateMasterEditionArgs";
820
+ "type": {
821
+ "kind": "struct";
822
+ "fields": [
823
+ {
824
+ "name": "maxSupply";
825
+ "type": {
826
+ "option": "u64";
827
+ };
828
+ }
829
+ ];
830
+ };
831
+ },
832
+ {
833
+ "name": "VerifySizedCollectionItemArgs";
834
+ "type": {
835
+ "kind": "struct";
836
+ "fields": [
837
+ {
838
+ "name": "collectionAuthorityRecord";
839
+ "type": {
840
+ "option": "publicKey";
841
+ };
842
+ }
843
+ ];
844
+ };
845
+ },
846
+ {
847
+ "name": "CollectionDetails";
848
+ "type": {
849
+ "kind": "enum";
850
+ "variants": [
851
+ {
852
+ "name": "V1";
853
+ "fields": [
854
+ {
855
+ "name": "size";
856
+ "type": "u64";
857
+ }
858
+ ];
859
+ }
860
+ ];
861
+ };
862
+ }
863
+ ];
864
+ "errors": [
865
+ {
866
+ "code": 6000;
867
+ "name": "InvalidEccCompact";
868
+ "msg": "Invalid ecc compcat";
869
+ },
870
+ {
871
+ "code": 6001;
872
+ "name": "InvalidStringLength";
873
+ "msg": "Invalid string length, your string was likely too long";
874
+ },
875
+ {
876
+ "code": 6002;
877
+ "name": "StringNotAlphanumeric";
878
+ "msg": "The string was not alphanumeric";
879
+ },
880
+ {
881
+ "code": 6003;
882
+ "name": "InvalidMetadataProgram";
883
+ "msg": "Metadata Program Mismatch";
884
+ },
885
+ {
886
+ "code": 6004;
887
+ "name": "InvalidDataIncrease";
888
+ "msg": "The realloc increase was too large";
889
+ }
890
+ ];
891
+ };
892
+ export declare const IDL: HeliumEntityManager;
893
+ //# sourceMappingURL=helium_entity_manager.d.ts.map