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