@bonkit/airdrop-sdk 0.3.2

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,4850 @@
1
+ import { BN, IdlTypes, IdlEvents, IdlAccounts, Idl, Program, AnchorError } from '@coral-xyz/anchor';
2
+ import * as _solana_web3_js from '@solana/web3.js';
3
+ import { PublicKey, TransactionInstruction, Connection, Commitment, Signer, VersionedTransaction, SimulatedTransactionResponse } from '@solana/web3.js';
4
+ import { ExtensionType } from '@solana/spl-token';
5
+
6
+ /**
7
+ * Program IDL in camelCase format in order to be used in JS/TS.
8
+ *
9
+ * Note that this is only a type helper and is not the actual IDL. The original
10
+ * IDL can be found at `target/idl/airdrop_studio_contract.json`.
11
+ */
12
+ type AirdropStudioContract = {
13
+ "address": "bonkAZceSmwJCcBXknvMjqdUSVJUjnj211w68d2VCei";
14
+ "metadata": {
15
+ "name": "airdropStudioContract";
16
+ "version": "0.1.0";
17
+ "spec": "0.1.0";
18
+ "description": "Airdrop studio for bonkit.dev";
19
+ };
20
+ "instructions": [
21
+ {
22
+ "name": "appendOnchainRecipients";
23
+ "discriminator": [
24
+ 88,
25
+ 187,
26
+ 192,
27
+ 252,
28
+ 105,
29
+ 199,
30
+ 193,
31
+ 33
32
+ ];
33
+ "accounts": [
34
+ {
35
+ "name": "creator";
36
+ "writable": true;
37
+ "signer": true;
38
+ },
39
+ {
40
+ "name": "studioConfig";
41
+ "pda": {
42
+ "seeds": [
43
+ {
44
+ "kind": "const";
45
+ "value": [
46
+ 97,
47
+ 105,
48
+ 114,
49
+ 100,
50
+ 114,
51
+ 111,
52
+ 112,
53
+ 45,
54
+ 115,
55
+ 116,
56
+ 117,
57
+ 100,
58
+ 105,
59
+ 111,
60
+ 45,
61
+ 99,
62
+ 111,
63
+ 110,
64
+ 102,
65
+ 105,
66
+ 103
67
+ ];
68
+ }
69
+ ];
70
+ };
71
+ },
72
+ {
73
+ "name": "protocolConfig";
74
+ },
75
+ {
76
+ "name": "airdrop";
77
+ "writable": true;
78
+ },
79
+ {
80
+ "name": "listRoot";
81
+ "writable": true;
82
+ "pda": {
83
+ "seeds": [
84
+ {
85
+ "kind": "const";
86
+ "value": [
87
+ 108,
88
+ 105,
89
+ 115,
90
+ 116,
91
+ 45,
92
+ 114,
93
+ 111,
94
+ 111,
95
+ 116
96
+ ];
97
+ },
98
+ {
99
+ "kind": "account";
100
+ "path": "airdrop";
101
+ }
102
+ ];
103
+ };
104
+ },
105
+ {
106
+ "name": "listChunk";
107
+ "writable": true;
108
+ "pda": {
109
+ "seeds": [
110
+ {
111
+ "kind": "const";
112
+ "value": [
113
+ 108,
114
+ 105,
115
+ 115,
116
+ 116,
117
+ 45,
118
+ 99,
119
+ 104,
120
+ 117,
121
+ 110,
122
+ 107
123
+ ];
124
+ },
125
+ {
126
+ "kind": "account";
127
+ "path": "airdrop";
128
+ }
129
+ ];
130
+ };
131
+ },
132
+ {
133
+ "name": "protocolVault";
134
+ "writable": true;
135
+ },
136
+ {
137
+ "name": "systemProgram";
138
+ "address": "11111111111111111111111111111111";
139
+ },
140
+ {
141
+ "name": "eventAuthority";
142
+ "pda": {
143
+ "seeds": [
144
+ {
145
+ "kind": "const";
146
+ "value": [
147
+ 95,
148
+ 95,
149
+ 101,
150
+ 118,
151
+ 101,
152
+ 110,
153
+ 116,
154
+ 95,
155
+ 97,
156
+ 117,
157
+ 116,
158
+ 104,
159
+ 111,
160
+ 114,
161
+ 105,
162
+ 116,
163
+ 121
164
+ ];
165
+ }
166
+ ];
167
+ };
168
+ },
169
+ {
170
+ "name": "program";
171
+ }
172
+ ];
173
+ "args": [
174
+ {
175
+ "name": "params";
176
+ "type": {
177
+ "defined": {
178
+ "name": "appendOnchainRecipientsParams";
179
+ };
180
+ };
181
+ }
182
+ ];
183
+ },
184
+ {
185
+ "name": "cancelMerkleAirdrop";
186
+ "discriminator": [
187
+ 208,
188
+ 155,
189
+ 251,
190
+ 61,
191
+ 70,
192
+ 56,
193
+ 14,
194
+ 106
195
+ ];
196
+ "accounts": [
197
+ {
198
+ "name": "creator";
199
+ "writable": true;
200
+ "signer": true;
201
+ },
202
+ {
203
+ "name": "airdrop";
204
+ "writable": true;
205
+ },
206
+ {
207
+ "name": "mint";
208
+ },
209
+ {
210
+ "name": "vault";
211
+ "writable": true;
212
+ },
213
+ {
214
+ "name": "creatorTokenAccount";
215
+ "writable": true;
216
+ },
217
+ {
218
+ "name": "tokenProgram";
219
+ },
220
+ {
221
+ "name": "memoProgram";
222
+ "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
223
+ },
224
+ {
225
+ "name": "systemProgram";
226
+ "address": "11111111111111111111111111111111";
227
+ },
228
+ {
229
+ "name": "associatedTokenProgram";
230
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
231
+ },
232
+ {
233
+ "name": "eventAuthority";
234
+ "pda": {
235
+ "seeds": [
236
+ {
237
+ "kind": "const";
238
+ "value": [
239
+ 95,
240
+ 95,
241
+ 101,
242
+ 118,
243
+ 101,
244
+ 110,
245
+ 116,
246
+ 95,
247
+ 97,
248
+ 117,
249
+ 116,
250
+ 104,
251
+ 111,
252
+ 114,
253
+ 105,
254
+ 116,
255
+ 121
256
+ ];
257
+ }
258
+ ];
259
+ };
260
+ },
261
+ {
262
+ "name": "program";
263
+ }
264
+ ];
265
+ "args": [];
266
+ },
267
+ {
268
+ "name": "cancelOnchainAirdrop";
269
+ "discriminator": [
270
+ 180,
271
+ 220,
272
+ 146,
273
+ 21,
274
+ 119,
275
+ 240,
276
+ 183,
277
+ 34
278
+ ];
279
+ "accounts": [
280
+ {
281
+ "name": "creator";
282
+ "writable": true;
283
+ "signer": true;
284
+ },
285
+ {
286
+ "name": "airdrop";
287
+ "writable": true;
288
+ },
289
+ {
290
+ "name": "mint";
291
+ },
292
+ {
293
+ "name": "vault";
294
+ "writable": true;
295
+ },
296
+ {
297
+ "name": "creatorTokenAccount";
298
+ "writable": true;
299
+ },
300
+ {
301
+ "name": "tokenProgram";
302
+ },
303
+ {
304
+ "name": "memoProgram";
305
+ "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
306
+ },
307
+ {
308
+ "name": "systemProgram";
309
+ "address": "11111111111111111111111111111111";
310
+ },
311
+ {
312
+ "name": "associatedTokenProgram";
313
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
314
+ },
315
+ {
316
+ "name": "eventAuthority";
317
+ "pda": {
318
+ "seeds": [
319
+ {
320
+ "kind": "const";
321
+ "value": [
322
+ 95,
323
+ 95,
324
+ 101,
325
+ 118,
326
+ 101,
327
+ 110,
328
+ 116,
329
+ 95,
330
+ 97,
331
+ 117,
332
+ 116,
333
+ 104,
334
+ 111,
335
+ 114,
336
+ 105,
337
+ 116,
338
+ 121
339
+ ];
340
+ }
341
+ ];
342
+ };
343
+ },
344
+ {
345
+ "name": "program";
346
+ }
347
+ ];
348
+ "args": [];
349
+ },
350
+ {
351
+ "name": "claimMerkleTokens";
352
+ "discriminator": [
353
+ 84,
354
+ 58,
355
+ 147,
356
+ 32,
357
+ 78,
358
+ 173,
359
+ 23,
360
+ 246
361
+ ];
362
+ "accounts": [
363
+ {
364
+ "name": "airdrop";
365
+ "docs": [
366
+ "Airdrop round – must be `Approved`"
367
+ ];
368
+ "writable": true;
369
+ },
370
+ {
371
+ "name": "claimer";
372
+ "docs": [
373
+ "Claimant"
374
+ ];
375
+ "writable": true;
376
+ "signer": true;
377
+ },
378
+ {
379
+ "name": "studioConfig";
380
+ "pda": {
381
+ "seeds": [
382
+ {
383
+ "kind": "const";
384
+ "value": [
385
+ 97,
386
+ 105,
387
+ 114,
388
+ 100,
389
+ 114,
390
+ 111,
391
+ 112,
392
+ 45,
393
+ 115,
394
+ 116,
395
+ 117,
396
+ 100,
397
+ 105,
398
+ 111,
399
+ 45,
400
+ 99,
401
+ 111,
402
+ 110,
403
+ 102,
404
+ 105,
405
+ 103
406
+ ];
407
+ }
408
+ ];
409
+ };
410
+ },
411
+ {
412
+ "name": "protocolVault";
413
+ "docs": [
414
+ "Protocol vault receiving claim costs."
415
+ ];
416
+ "writable": true;
417
+ },
418
+ {
419
+ "name": "claimerAta";
420
+ "docs": [
421
+ "Claimant's ATA"
422
+ ];
423
+ "writable": true;
424
+ },
425
+ {
426
+ "name": "mint";
427
+ },
428
+ {
429
+ "name": "vault";
430
+ "docs": [
431
+ "Vault holding undistributed tokens"
432
+ ];
433
+ "writable": true;
434
+ },
435
+ {
436
+ "name": "claimStatus";
437
+ "docs": [
438
+ "Claim status PDA: prevents double-claim per leaf hash"
439
+ ];
440
+ "writable": true;
441
+ "pda": {
442
+ "seeds": [
443
+ {
444
+ "kind": "const";
445
+ "value": [
446
+ 99,
447
+ 108,
448
+ 97,
449
+ 105,
450
+ 109,
451
+ 45,
452
+ 115,
453
+ 116,
454
+ 97,
455
+ 116,
456
+ 117,
457
+ 115
458
+ ];
459
+ },
460
+ {
461
+ "kind": "account";
462
+ "path": "airdrop";
463
+ },
464
+ {
465
+ "kind": "arg";
466
+ "path": "params.leaf";
467
+ }
468
+ ];
469
+ };
470
+ },
471
+ {
472
+ "name": "tokenProgram";
473
+ },
474
+ {
475
+ "name": "memoProgram";
476
+ "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
477
+ },
478
+ {
479
+ "name": "systemProgram";
480
+ "address": "11111111111111111111111111111111";
481
+ },
482
+ {
483
+ "name": "associatedTokenProgram";
484
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
485
+ }
486
+ ];
487
+ "args": [
488
+ {
489
+ "name": "params";
490
+ "type": {
491
+ "defined": {
492
+ "name": "claimMerkleParams";
493
+ };
494
+ };
495
+ }
496
+ ];
497
+ },
498
+ {
499
+ "name": "claimOnchainTokens";
500
+ "discriminator": [
501
+ 118,
502
+ 57,
503
+ 121,
504
+ 11,
505
+ 13,
506
+ 43,
507
+ 180,
508
+ 105
509
+ ];
510
+ "accounts": [
511
+ {
512
+ "name": "airdrop";
513
+ "writable": true;
514
+ },
515
+ {
516
+ "name": "listRoot";
517
+ "pda": {
518
+ "seeds": [
519
+ {
520
+ "kind": "const";
521
+ "value": [
522
+ 108,
523
+ 105,
524
+ 115,
525
+ 116,
526
+ 45,
527
+ 114,
528
+ 111,
529
+ 111,
530
+ 116
531
+ ];
532
+ },
533
+ {
534
+ "kind": "account";
535
+ "path": "airdrop";
536
+ }
537
+ ];
538
+ };
539
+ },
540
+ {
541
+ "name": "listChunk";
542
+ "writable": true;
543
+ "pda": {
544
+ "seeds": [
545
+ {
546
+ "kind": "const";
547
+ "value": [
548
+ 108,
549
+ 105,
550
+ 115,
551
+ 116,
552
+ 45,
553
+ 99,
554
+ 104,
555
+ 117,
556
+ 110,
557
+ 107
558
+ ];
559
+ },
560
+ {
561
+ "kind": "account";
562
+ "path": "airdrop";
563
+ }
564
+ ];
565
+ };
566
+ },
567
+ {
568
+ "name": "claimer";
569
+ "writable": true;
570
+ "signer": true;
571
+ },
572
+ {
573
+ "name": "studioConfig";
574
+ "pda": {
575
+ "seeds": [
576
+ {
577
+ "kind": "const";
578
+ "value": [
579
+ 97,
580
+ 105,
581
+ 114,
582
+ 100,
583
+ 114,
584
+ 111,
585
+ 112,
586
+ 45,
587
+ 115,
588
+ 116,
589
+ 117,
590
+ 100,
591
+ 105,
592
+ 111,
593
+ 45,
594
+ 99,
595
+ 111,
596
+ 110,
597
+ 102,
598
+ 105,
599
+ 103
600
+ ];
601
+ }
602
+ ];
603
+ };
604
+ },
605
+ {
606
+ "name": "protocolVault";
607
+ "docs": [
608
+ "Protocol vault receiving claim costs."
609
+ ];
610
+ "writable": true;
611
+ },
612
+ {
613
+ "name": "claimerAta";
614
+ "writable": true;
615
+ },
616
+ {
617
+ "name": "mint";
618
+ },
619
+ {
620
+ "name": "vault";
621
+ "writable": true;
622
+ },
623
+ {
624
+ "name": "claimStatus";
625
+ "writable": true;
626
+ "pda": {
627
+ "seeds": [
628
+ {
629
+ "kind": "const";
630
+ "value": [
631
+ 99,
632
+ 108,
633
+ 97,
634
+ 105,
635
+ 109,
636
+ 45,
637
+ 115,
638
+ 116,
639
+ 97,
640
+ 116,
641
+ 117,
642
+ 115
643
+ ];
644
+ },
645
+ {
646
+ "kind": "account";
647
+ "path": "airdrop";
648
+ },
649
+ {
650
+ "kind": "arg";
651
+ "path": "params.entry_index";
652
+ }
653
+ ];
654
+ };
655
+ },
656
+ {
657
+ "name": "tokenProgram";
658
+ },
659
+ {
660
+ "name": "memoProgram";
661
+ "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
662
+ },
663
+ {
664
+ "name": "systemProgram";
665
+ "address": "11111111111111111111111111111111";
666
+ },
667
+ {
668
+ "name": "associatedTokenProgram";
669
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
670
+ },
671
+ {
672
+ "name": "eventAuthority";
673
+ "pda": {
674
+ "seeds": [
675
+ {
676
+ "kind": "const";
677
+ "value": [
678
+ 95,
679
+ 95,
680
+ 101,
681
+ 118,
682
+ 101,
683
+ 110,
684
+ 116,
685
+ 95,
686
+ 97,
687
+ 117,
688
+ 116,
689
+ 104,
690
+ 111,
691
+ 114,
692
+ 105,
693
+ 116,
694
+ 121
695
+ ];
696
+ }
697
+ ];
698
+ };
699
+ },
700
+ {
701
+ "name": "program";
702
+ }
703
+ ];
704
+ "args": [
705
+ {
706
+ "name": "params";
707
+ "type": {
708
+ "defined": {
709
+ "name": "claimOnchainParams";
710
+ };
711
+ };
712
+ }
713
+ ];
714
+ },
715
+ {
716
+ "name": "createMerkleAirdrop";
717
+ "discriminator": [
718
+ 90,
719
+ 140,
720
+ 123,
721
+ 107,
722
+ 48,
723
+ 144,
724
+ 3,
725
+ 37
726
+ ];
727
+ "accounts": [
728
+ {
729
+ "name": "studioConfig";
730
+ "pda": {
731
+ "seeds": [
732
+ {
733
+ "kind": "const";
734
+ "value": [
735
+ 97,
736
+ 105,
737
+ 114,
738
+ 100,
739
+ 114,
740
+ 111,
741
+ 112,
742
+ 45,
743
+ 115,
744
+ 116,
745
+ 117,
746
+ 100,
747
+ 105,
748
+ 111,
749
+ 45,
750
+ 99,
751
+ 111,
752
+ 110,
753
+ 102,
754
+ 105,
755
+ 103
756
+ ];
757
+ }
758
+ ];
759
+ };
760
+ },
761
+ {
762
+ "name": "protocolConfig";
763
+ },
764
+ {
765
+ "name": "creator";
766
+ "writable": true;
767
+ "signer": true;
768
+ },
769
+ {
770
+ "name": "draftRegistry";
771
+ "writable": true;
772
+ "pda": {
773
+ "seeds": [
774
+ {
775
+ "kind": "const";
776
+ "value": [
777
+ 100,
778
+ 114,
779
+ 97,
780
+ 102,
781
+ 116,
782
+ 45,
783
+ 114,
784
+ 101,
785
+ 103
786
+ ];
787
+ },
788
+ {
789
+ "kind": "account";
790
+ "path": "creator";
791
+ }
792
+ ];
793
+ };
794
+ },
795
+ {
796
+ "name": "airdrop";
797
+ "writable": true;
798
+ "pda": {
799
+ "seeds": [
800
+ {
801
+ "kind": "const";
802
+ "value": [
803
+ 97,
804
+ 105,
805
+ 114,
806
+ 100,
807
+ 114,
808
+ 111,
809
+ 112
810
+ ];
811
+ },
812
+ {
813
+ "kind": "account";
814
+ "path": "creator";
815
+ },
816
+ {
817
+ "kind": "arg";
818
+ "path": "params.draft_index";
819
+ }
820
+ ];
821
+ };
822
+ },
823
+ {
824
+ "name": "draftIndex";
825
+ "writable": true;
826
+ "pda": {
827
+ "seeds": [
828
+ {
829
+ "kind": "const";
830
+ "value": [
831
+ 100,
832
+ 114,
833
+ 97,
834
+ 102,
835
+ 116,
836
+ 45,
837
+ 105,
838
+ 100,
839
+ 120
840
+ ];
841
+ },
842
+ {
843
+ "kind": "account";
844
+ "path": "creator";
845
+ },
846
+ {
847
+ "kind": "arg";
848
+ "path": "params.draft_index";
849
+ }
850
+ ];
851
+ };
852
+ },
853
+ {
854
+ "name": "vault";
855
+ "writable": true;
856
+ "pda": {
857
+ "seeds": [
858
+ {
859
+ "kind": "account";
860
+ "path": "airdrop";
861
+ },
862
+ {
863
+ "kind": "account";
864
+ "path": "tokenProgram";
865
+ },
866
+ {
867
+ "kind": "account";
868
+ "path": "mint";
869
+ }
870
+ ];
871
+ "program": {
872
+ "kind": "const";
873
+ "value": [
874
+ 140,
875
+ 151,
876
+ 37,
877
+ 143,
878
+ 78,
879
+ 36,
880
+ 137,
881
+ 241,
882
+ 187,
883
+ 61,
884
+ 16,
885
+ 41,
886
+ 20,
887
+ 142,
888
+ 13,
889
+ 131,
890
+ 11,
891
+ 90,
892
+ 19,
893
+ 153,
894
+ 218,
895
+ 255,
896
+ 16,
897
+ 132,
898
+ 4,
899
+ 142,
900
+ 123,
901
+ 216,
902
+ 219,
903
+ 233,
904
+ 248,
905
+ 89
906
+ ];
907
+ };
908
+ };
909
+ },
910
+ {
911
+ "name": "mint";
912
+ },
913
+ {
914
+ "name": "protocolVault";
915
+ "docs": [
916
+ "Protocol vault receiving creation costs."
917
+ ];
918
+ "writable": true;
919
+ },
920
+ {
921
+ "name": "systemProgram";
922
+ "address": "11111111111111111111111111111111";
923
+ },
924
+ {
925
+ "name": "tokenProgram";
926
+ },
927
+ {
928
+ "name": "associatedTokenProgram";
929
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
930
+ },
931
+ {
932
+ "name": "eventAuthority";
933
+ "pda": {
934
+ "seeds": [
935
+ {
936
+ "kind": "const";
937
+ "value": [
938
+ 95,
939
+ 95,
940
+ 101,
941
+ 118,
942
+ 101,
943
+ 110,
944
+ 116,
945
+ 95,
946
+ 97,
947
+ 117,
948
+ 116,
949
+ 104,
950
+ 111,
951
+ 114,
952
+ 105,
953
+ 116,
954
+ 121
955
+ ];
956
+ }
957
+ ];
958
+ };
959
+ },
960
+ {
961
+ "name": "program";
962
+ }
963
+ ];
964
+ "args": [
965
+ {
966
+ "name": "params";
967
+ "type": {
968
+ "defined": {
969
+ "name": "createMerkleAirdropParams";
970
+ };
971
+ };
972
+ }
973
+ ];
974
+ },
975
+ {
976
+ "name": "createOnchainAirdrop";
977
+ "discriminator": [
978
+ 30,
979
+ 165,
980
+ 141,
981
+ 73,
982
+ 117,
983
+ 1,
984
+ 123,
985
+ 246
986
+ ];
987
+ "accounts": [
988
+ {
989
+ "name": "studioConfig";
990
+ "pda": {
991
+ "seeds": [
992
+ {
993
+ "kind": "const";
994
+ "value": [
995
+ 97,
996
+ 105,
997
+ 114,
998
+ 100,
999
+ 114,
1000
+ 111,
1001
+ 112,
1002
+ 45,
1003
+ 115,
1004
+ 116,
1005
+ 117,
1006
+ 100,
1007
+ 105,
1008
+ 111,
1009
+ 45,
1010
+ 99,
1011
+ 111,
1012
+ 110,
1013
+ 102,
1014
+ 105,
1015
+ 103
1016
+ ];
1017
+ }
1018
+ ];
1019
+ };
1020
+ },
1021
+ {
1022
+ "name": "protocolConfig";
1023
+ },
1024
+ {
1025
+ "name": "creator";
1026
+ "writable": true;
1027
+ "signer": true;
1028
+ },
1029
+ {
1030
+ "name": "draftRegistry";
1031
+ "writable": true;
1032
+ "pda": {
1033
+ "seeds": [
1034
+ {
1035
+ "kind": "const";
1036
+ "value": [
1037
+ 100,
1038
+ 114,
1039
+ 97,
1040
+ 102,
1041
+ 116,
1042
+ 45,
1043
+ 114,
1044
+ 101,
1045
+ 103
1046
+ ];
1047
+ },
1048
+ {
1049
+ "kind": "account";
1050
+ "path": "creator";
1051
+ }
1052
+ ];
1053
+ };
1054
+ },
1055
+ {
1056
+ "name": "airdrop";
1057
+ "writable": true;
1058
+ "pda": {
1059
+ "seeds": [
1060
+ {
1061
+ "kind": "const";
1062
+ "value": [
1063
+ 97,
1064
+ 105,
1065
+ 114,
1066
+ 100,
1067
+ 114,
1068
+ 111,
1069
+ 112
1070
+ ];
1071
+ },
1072
+ {
1073
+ "kind": "account";
1074
+ "path": "creator";
1075
+ },
1076
+ {
1077
+ "kind": "arg";
1078
+ "path": "params.draft_index";
1079
+ }
1080
+ ];
1081
+ };
1082
+ },
1083
+ {
1084
+ "name": "draftIndex";
1085
+ "writable": true;
1086
+ "pda": {
1087
+ "seeds": [
1088
+ {
1089
+ "kind": "const";
1090
+ "value": [
1091
+ 100,
1092
+ 114,
1093
+ 97,
1094
+ 102,
1095
+ 116,
1096
+ 45,
1097
+ 105,
1098
+ 100,
1099
+ 120
1100
+ ];
1101
+ },
1102
+ {
1103
+ "kind": "account";
1104
+ "path": "creator";
1105
+ },
1106
+ {
1107
+ "kind": "arg";
1108
+ "path": "params.draft_index";
1109
+ }
1110
+ ];
1111
+ };
1112
+ },
1113
+ {
1114
+ "name": "listRoot";
1115
+ "writable": true;
1116
+ "pda": {
1117
+ "seeds": [
1118
+ {
1119
+ "kind": "const";
1120
+ "value": [
1121
+ 108,
1122
+ 105,
1123
+ 115,
1124
+ 116,
1125
+ 45,
1126
+ 114,
1127
+ 111,
1128
+ 111,
1129
+ 116
1130
+ ];
1131
+ },
1132
+ {
1133
+ "kind": "account";
1134
+ "path": "airdrop";
1135
+ }
1136
+ ];
1137
+ };
1138
+ },
1139
+ {
1140
+ "name": "listChunk";
1141
+ "writable": true;
1142
+ "pda": {
1143
+ "seeds": [
1144
+ {
1145
+ "kind": "const";
1146
+ "value": [
1147
+ 108,
1148
+ 105,
1149
+ 115,
1150
+ 116,
1151
+ 45,
1152
+ 99,
1153
+ 104,
1154
+ 117,
1155
+ 110,
1156
+ 107
1157
+ ];
1158
+ },
1159
+ {
1160
+ "kind": "account";
1161
+ "path": "airdrop";
1162
+ }
1163
+ ];
1164
+ };
1165
+ },
1166
+ {
1167
+ "name": "vault";
1168
+ "writable": true;
1169
+ "pda": {
1170
+ "seeds": [
1171
+ {
1172
+ "kind": "account";
1173
+ "path": "airdrop";
1174
+ },
1175
+ {
1176
+ "kind": "account";
1177
+ "path": "tokenProgram";
1178
+ },
1179
+ {
1180
+ "kind": "account";
1181
+ "path": "mint";
1182
+ }
1183
+ ];
1184
+ "program": {
1185
+ "kind": "const";
1186
+ "value": [
1187
+ 140,
1188
+ 151,
1189
+ 37,
1190
+ 143,
1191
+ 78,
1192
+ 36,
1193
+ 137,
1194
+ 241,
1195
+ 187,
1196
+ 61,
1197
+ 16,
1198
+ 41,
1199
+ 20,
1200
+ 142,
1201
+ 13,
1202
+ 131,
1203
+ 11,
1204
+ 90,
1205
+ 19,
1206
+ 153,
1207
+ 218,
1208
+ 255,
1209
+ 16,
1210
+ 132,
1211
+ 4,
1212
+ 142,
1213
+ 123,
1214
+ 216,
1215
+ 219,
1216
+ 233,
1217
+ 248,
1218
+ 89
1219
+ ];
1220
+ };
1221
+ };
1222
+ },
1223
+ {
1224
+ "name": "mint";
1225
+ },
1226
+ {
1227
+ "name": "protocolVault";
1228
+ "docs": [
1229
+ "Protocol vault receiving creation costs."
1230
+ ];
1231
+ "writable": true;
1232
+ },
1233
+ {
1234
+ "name": "systemProgram";
1235
+ "address": "11111111111111111111111111111111";
1236
+ },
1237
+ {
1238
+ "name": "tokenProgram";
1239
+ },
1240
+ {
1241
+ "name": "associatedTokenProgram";
1242
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1243
+ },
1244
+ {
1245
+ "name": "eventAuthority";
1246
+ "pda": {
1247
+ "seeds": [
1248
+ {
1249
+ "kind": "const";
1250
+ "value": [
1251
+ 95,
1252
+ 95,
1253
+ 101,
1254
+ 118,
1255
+ 101,
1256
+ 110,
1257
+ 116,
1258
+ 95,
1259
+ 97,
1260
+ 117,
1261
+ 116,
1262
+ 104,
1263
+ 111,
1264
+ 114,
1265
+ 105,
1266
+ 116,
1267
+ 121
1268
+ ];
1269
+ }
1270
+ ];
1271
+ };
1272
+ },
1273
+ {
1274
+ "name": "program";
1275
+ }
1276
+ ];
1277
+ "args": [
1278
+ {
1279
+ "name": "params";
1280
+ "type": {
1281
+ "defined": {
1282
+ "name": "createOnchainAirdropParams";
1283
+ };
1284
+ };
1285
+ }
1286
+ ];
1287
+ },
1288
+ {
1289
+ "name": "depositMerkleAirdrop";
1290
+ "discriminator": [
1291
+ 129,
1292
+ 9,
1293
+ 210,
1294
+ 176,
1295
+ 19,
1296
+ 33,
1297
+ 20,
1298
+ 148
1299
+ ];
1300
+ "accounts": [
1301
+ {
1302
+ "name": "creator";
1303
+ "writable": true;
1304
+ "signer": true;
1305
+ },
1306
+ {
1307
+ "name": "studioConfig";
1308
+ "pda": {
1309
+ "seeds": [
1310
+ {
1311
+ "kind": "const";
1312
+ "value": [
1313
+ 97,
1314
+ 105,
1315
+ 114,
1316
+ 100,
1317
+ 114,
1318
+ 111,
1319
+ 112,
1320
+ 45,
1321
+ 115,
1322
+ 116,
1323
+ 117,
1324
+ 100,
1325
+ 105,
1326
+ 111,
1327
+ 45,
1328
+ 99,
1329
+ 111,
1330
+ 110,
1331
+ 102,
1332
+ 105,
1333
+ 103
1334
+ ];
1335
+ }
1336
+ ];
1337
+ };
1338
+ },
1339
+ {
1340
+ "name": "protocolConfig";
1341
+ },
1342
+ {
1343
+ "name": "airdrop";
1344
+ "writable": true;
1345
+ },
1346
+ {
1347
+ "name": "mint";
1348
+ },
1349
+ {
1350
+ "name": "vault";
1351
+ "writable": true;
1352
+ },
1353
+ {
1354
+ "name": "payerTokenAccount";
1355
+ "writable": true;
1356
+ },
1357
+ {
1358
+ "name": "tokenProgram";
1359
+ },
1360
+ {
1361
+ "name": "protocolVault";
1362
+ "docs": [
1363
+ "Protocol vault receiving deposit costs."
1364
+ ];
1365
+ "writable": true;
1366
+ },
1367
+ {
1368
+ "name": "systemProgram";
1369
+ "address": "11111111111111111111111111111111";
1370
+ },
1371
+ {
1372
+ "name": "eventAuthority";
1373
+ "pda": {
1374
+ "seeds": [
1375
+ {
1376
+ "kind": "const";
1377
+ "value": [
1378
+ 95,
1379
+ 95,
1380
+ 101,
1381
+ 118,
1382
+ 101,
1383
+ 110,
1384
+ 116,
1385
+ 95,
1386
+ 97,
1387
+ 117,
1388
+ 116,
1389
+ 104,
1390
+ 111,
1391
+ 114,
1392
+ 105,
1393
+ 116,
1394
+ 121
1395
+ ];
1396
+ }
1397
+ ];
1398
+ };
1399
+ },
1400
+ {
1401
+ "name": "program";
1402
+ }
1403
+ ];
1404
+ "args": [];
1405
+ },
1406
+ {
1407
+ "name": "depositOnchainAirdrop";
1408
+ "discriminator": [
1409
+ 194,
1410
+ 58,
1411
+ 250,
1412
+ 92,
1413
+ 1,
1414
+ 225,
1415
+ 91,
1416
+ 243
1417
+ ];
1418
+ "accounts": [
1419
+ {
1420
+ "name": "creator";
1421
+ "writable": true;
1422
+ "signer": true;
1423
+ },
1424
+ {
1425
+ "name": "studioConfig";
1426
+ "pda": {
1427
+ "seeds": [
1428
+ {
1429
+ "kind": "const";
1430
+ "value": [
1431
+ 97,
1432
+ 105,
1433
+ 114,
1434
+ 100,
1435
+ 114,
1436
+ 111,
1437
+ 112,
1438
+ 45,
1439
+ 115,
1440
+ 116,
1441
+ 117,
1442
+ 100,
1443
+ 105,
1444
+ 111,
1445
+ 45,
1446
+ 99,
1447
+ 111,
1448
+ 110,
1449
+ 102,
1450
+ 105,
1451
+ 103
1452
+ ];
1453
+ }
1454
+ ];
1455
+ };
1456
+ },
1457
+ {
1458
+ "name": "protocolConfig";
1459
+ },
1460
+ {
1461
+ "name": "airdrop";
1462
+ "writable": true;
1463
+ },
1464
+ {
1465
+ "name": "listRoot";
1466
+ "writable": true;
1467
+ "pda": {
1468
+ "seeds": [
1469
+ {
1470
+ "kind": "const";
1471
+ "value": [
1472
+ 108,
1473
+ 105,
1474
+ 115,
1475
+ 116,
1476
+ 45,
1477
+ 114,
1478
+ 111,
1479
+ 111,
1480
+ 116
1481
+ ];
1482
+ },
1483
+ {
1484
+ "kind": "account";
1485
+ "path": "airdrop";
1486
+ }
1487
+ ];
1488
+ };
1489
+ },
1490
+ {
1491
+ "name": "mint";
1492
+ },
1493
+ {
1494
+ "name": "vault";
1495
+ "writable": true;
1496
+ },
1497
+ {
1498
+ "name": "payerTokenAccount";
1499
+ "writable": true;
1500
+ },
1501
+ {
1502
+ "name": "tokenProgram";
1503
+ },
1504
+ {
1505
+ "name": "protocolVault";
1506
+ "docs": [
1507
+ "Protocol vault receiving deposit costs."
1508
+ ];
1509
+ "writable": true;
1510
+ },
1511
+ {
1512
+ "name": "systemProgram";
1513
+ "address": "11111111111111111111111111111111";
1514
+ },
1515
+ {
1516
+ "name": "eventAuthority";
1517
+ "pda": {
1518
+ "seeds": [
1519
+ {
1520
+ "kind": "const";
1521
+ "value": [
1522
+ 95,
1523
+ 95,
1524
+ 101,
1525
+ 118,
1526
+ 101,
1527
+ 110,
1528
+ 116,
1529
+ 95,
1530
+ 97,
1531
+ 117,
1532
+ 116,
1533
+ 104,
1534
+ 111,
1535
+ 114,
1536
+ 105,
1537
+ 116,
1538
+ 121
1539
+ ];
1540
+ }
1541
+ ];
1542
+ };
1543
+ },
1544
+ {
1545
+ "name": "program";
1546
+ }
1547
+ ];
1548
+ "args": [];
1549
+ },
1550
+ {
1551
+ "name": "initializeProtocolConfig";
1552
+ "discriminator": [
1553
+ 28,
1554
+ 50,
1555
+ 43,
1556
+ 233,
1557
+ 244,
1558
+ 98,
1559
+ 123,
1560
+ 118
1561
+ ];
1562
+ "accounts": [
1563
+ {
1564
+ "name": "protocolConfig";
1565
+ "writable": true;
1566
+ },
1567
+ {
1568
+ "name": "payer";
1569
+ "writable": true;
1570
+ "signer": true;
1571
+ },
1572
+ {
1573
+ "name": "studioConfig";
1574
+ "pda": {
1575
+ "seeds": [
1576
+ {
1577
+ "kind": "const";
1578
+ "value": [
1579
+ 97,
1580
+ 105,
1581
+ 114,
1582
+ 100,
1583
+ 114,
1584
+ 111,
1585
+ 112,
1586
+ 45,
1587
+ 115,
1588
+ 116,
1589
+ 117,
1590
+ 100,
1591
+ 105,
1592
+ 111,
1593
+ 45,
1594
+ 99,
1595
+ 111,
1596
+ 110,
1597
+ 102,
1598
+ 105,
1599
+ 103
1600
+ ];
1601
+ }
1602
+ ];
1603
+ };
1604
+ },
1605
+ {
1606
+ "name": "systemProgram";
1607
+ "address": "11111111111111111111111111111111";
1608
+ },
1609
+ {
1610
+ "name": "eventAuthority";
1611
+ "pda": {
1612
+ "seeds": [
1613
+ {
1614
+ "kind": "const";
1615
+ "value": [
1616
+ 95,
1617
+ 95,
1618
+ 101,
1619
+ 118,
1620
+ 101,
1621
+ 110,
1622
+ 116,
1623
+ 95,
1624
+ 97,
1625
+ 117,
1626
+ 116,
1627
+ 104,
1628
+ 111,
1629
+ 114,
1630
+ 105,
1631
+ 116,
1632
+ 121
1633
+ ];
1634
+ }
1635
+ ];
1636
+ };
1637
+ },
1638
+ {
1639
+ "name": "program";
1640
+ }
1641
+ ];
1642
+ "args": [
1643
+ {
1644
+ "name": "params";
1645
+ "type": {
1646
+ "defined": {
1647
+ "name": "initProtocolConfigParams";
1648
+ };
1649
+ };
1650
+ }
1651
+ ];
1652
+ },
1653
+ {
1654
+ "name": "initializeStudioConfig";
1655
+ "discriminator": [
1656
+ 167,
1657
+ 156,
1658
+ 148,
1659
+ 195,
1660
+ 148,
1661
+ 75,
1662
+ 152,
1663
+ 212
1664
+ ];
1665
+ "accounts": [
1666
+ {
1667
+ "name": "configAccount";
1668
+ "writable": true;
1669
+ "pda": {
1670
+ "seeds": [
1671
+ {
1672
+ "kind": "const";
1673
+ "value": [
1674
+ 97,
1675
+ 105,
1676
+ 114,
1677
+ 100,
1678
+ 114,
1679
+ 111,
1680
+ 112,
1681
+ 45,
1682
+ 115,
1683
+ 116,
1684
+ 117,
1685
+ 100,
1686
+ 105,
1687
+ 111,
1688
+ 45,
1689
+ 99,
1690
+ 111,
1691
+ 110,
1692
+ 102,
1693
+ 105,
1694
+ 103
1695
+ ];
1696
+ }
1697
+ ];
1698
+ };
1699
+ },
1700
+ {
1701
+ "name": "airdropProgram";
1702
+ "address": "bonkAZceSmwJCcBXknvMjqdUSVJUjnj211w68d2VCei";
1703
+ },
1704
+ {
1705
+ "name": "programData";
1706
+ },
1707
+ {
1708
+ "name": "configAuthority";
1709
+ "writable": true;
1710
+ "signer": true;
1711
+ },
1712
+ {
1713
+ "name": "systemProgram";
1714
+ "address": "11111111111111111111111111111111";
1715
+ },
1716
+ {
1717
+ "name": "eventAuthority";
1718
+ "pda": {
1719
+ "seeds": [
1720
+ {
1721
+ "kind": "const";
1722
+ "value": [
1723
+ 95,
1724
+ 95,
1725
+ 101,
1726
+ 118,
1727
+ 101,
1728
+ 110,
1729
+ 116,
1730
+ 95,
1731
+ 97,
1732
+ 117,
1733
+ 116,
1734
+ 104,
1735
+ 111,
1736
+ 114,
1737
+ 105,
1738
+ 116,
1739
+ 121
1740
+ ];
1741
+ }
1742
+ ];
1743
+ };
1744
+ },
1745
+ {
1746
+ "name": "program";
1747
+ }
1748
+ ];
1749
+ "args": [
1750
+ {
1751
+ "name": "params";
1752
+ "type": {
1753
+ "defined": {
1754
+ "name": "initStudioConfigParams";
1755
+ };
1756
+ };
1757
+ }
1758
+ ];
1759
+ },
1760
+ {
1761
+ "name": "registerMerkleRoot";
1762
+ "discriminator": [
1763
+ 51,
1764
+ 45,
1765
+ 179,
1766
+ 28,
1767
+ 97,
1768
+ 205,
1769
+ 185,
1770
+ 134
1771
+ ];
1772
+ "accounts": [
1773
+ {
1774
+ "name": "studioConfig";
1775
+ "pda": {
1776
+ "seeds": [
1777
+ {
1778
+ "kind": "const";
1779
+ "value": [
1780
+ 97,
1781
+ 105,
1782
+ 114,
1783
+ 100,
1784
+ 114,
1785
+ 111,
1786
+ 112,
1787
+ 45,
1788
+ 115,
1789
+ 116,
1790
+ 117,
1791
+ 100,
1792
+ 105,
1793
+ 111,
1794
+ 45,
1795
+ 99,
1796
+ 111,
1797
+ 110,
1798
+ 102,
1799
+ 105,
1800
+ 103
1801
+ ];
1802
+ }
1803
+ ];
1804
+ };
1805
+ },
1806
+ {
1807
+ "name": "protocolConfig";
1808
+ },
1809
+ {
1810
+ "name": "airdrop";
1811
+ "writable": true;
1812
+ },
1813
+ {
1814
+ "name": "mint";
1815
+ },
1816
+ {
1817
+ "name": "creator";
1818
+ "writable": true;
1819
+ "signer": true;
1820
+ },
1821
+ {
1822
+ "name": "protocolVault";
1823
+ "docs": [
1824
+ "Protocol vault receiving register costs."
1825
+ ];
1826
+ "writable": true;
1827
+ },
1828
+ {
1829
+ "name": "systemProgram";
1830
+ "address": "11111111111111111111111111111111";
1831
+ },
1832
+ {
1833
+ "name": "eventAuthority";
1834
+ "pda": {
1835
+ "seeds": [
1836
+ {
1837
+ "kind": "const";
1838
+ "value": [
1839
+ 95,
1840
+ 95,
1841
+ 101,
1842
+ 118,
1843
+ 101,
1844
+ 110,
1845
+ 116,
1846
+ 95,
1847
+ 97,
1848
+ 117,
1849
+ 116,
1850
+ 104,
1851
+ 111,
1852
+ 114,
1853
+ 105,
1854
+ 116,
1855
+ 121
1856
+ ];
1857
+ }
1858
+ ];
1859
+ };
1860
+ },
1861
+ {
1862
+ "name": "program";
1863
+ }
1864
+ ];
1865
+ "args": [
1866
+ {
1867
+ "name": "params";
1868
+ "type": {
1869
+ "defined": {
1870
+ "name": "registerMerkleRootParams";
1871
+ };
1872
+ };
1873
+ }
1874
+ ];
1875
+ },
1876
+ {
1877
+ "name": "startMerkleAirdrop";
1878
+ "discriminator": [
1879
+ 79,
1880
+ 91,
1881
+ 110,
1882
+ 101,
1883
+ 111,
1884
+ 34,
1885
+ 64,
1886
+ 221
1887
+ ];
1888
+ "accounts": [
1889
+ {
1890
+ "name": "studioConfig";
1891
+ "pda": {
1892
+ "seeds": [
1893
+ {
1894
+ "kind": "const";
1895
+ "value": [
1896
+ 97,
1897
+ 105,
1898
+ 114,
1899
+ 100,
1900
+ 114,
1901
+ 111,
1902
+ 112,
1903
+ 45,
1904
+ 115,
1905
+ 116,
1906
+ 117,
1907
+ 100,
1908
+ 105,
1909
+ 111,
1910
+ 45,
1911
+ 99,
1912
+ 111,
1913
+ 110,
1914
+ 102,
1915
+ 105,
1916
+ 103
1917
+ ];
1918
+ }
1919
+ ];
1920
+ };
1921
+ },
1922
+ {
1923
+ "name": "protocolConfig";
1924
+ },
1925
+ {
1926
+ "name": "airdrop";
1927
+ "writable": true;
1928
+ },
1929
+ {
1930
+ "name": "creator";
1931
+ "writable": true;
1932
+ "signer": true;
1933
+ },
1934
+ {
1935
+ "name": "protocolVault";
1936
+ "docs": [
1937
+ "Protocol vault receiving start costs."
1938
+ ];
1939
+ "writable": true;
1940
+ },
1941
+ {
1942
+ "name": "systemProgram";
1943
+ "address": "11111111111111111111111111111111";
1944
+ },
1945
+ {
1946
+ "name": "eventAuthority";
1947
+ "pda": {
1948
+ "seeds": [
1949
+ {
1950
+ "kind": "const";
1951
+ "value": [
1952
+ 95,
1953
+ 95,
1954
+ 101,
1955
+ 118,
1956
+ 101,
1957
+ 110,
1958
+ 116,
1959
+ 95,
1960
+ 97,
1961
+ 117,
1962
+ 116,
1963
+ 104,
1964
+ 111,
1965
+ 114,
1966
+ 105,
1967
+ 116,
1968
+ 121
1969
+ ];
1970
+ }
1971
+ ];
1972
+ };
1973
+ },
1974
+ {
1975
+ "name": "program";
1976
+ }
1977
+ ];
1978
+ "args": [
1979
+ {
1980
+ "name": "params";
1981
+ "type": {
1982
+ "defined": {
1983
+ "name": "startMerkleAirdropParams";
1984
+ };
1985
+ };
1986
+ }
1987
+ ];
1988
+ },
1989
+ {
1990
+ "name": "startOnchainAirdrop";
1991
+ "discriminator": [
1992
+ 235,
1993
+ 97,
1994
+ 63,
1995
+ 215,
1996
+ 189,
1997
+ 18,
1998
+ 81,
1999
+ 175
2000
+ ];
2001
+ "accounts": [
2002
+ {
2003
+ "name": "creator";
2004
+ "writable": true;
2005
+ "signer": true;
2006
+ },
2007
+ {
2008
+ "name": "studioConfig";
2009
+ "pda": {
2010
+ "seeds": [
2011
+ {
2012
+ "kind": "const";
2013
+ "value": [
2014
+ 97,
2015
+ 105,
2016
+ 114,
2017
+ 100,
2018
+ 114,
2019
+ 111,
2020
+ 112,
2021
+ 45,
2022
+ 115,
2023
+ 116,
2024
+ 117,
2025
+ 100,
2026
+ 105,
2027
+ 111,
2028
+ 45,
2029
+ 99,
2030
+ 111,
2031
+ 110,
2032
+ 102,
2033
+ 105,
2034
+ 103
2035
+ ];
2036
+ }
2037
+ ];
2038
+ };
2039
+ },
2040
+ {
2041
+ "name": "protocolConfig";
2042
+ },
2043
+ {
2044
+ "name": "airdrop";
2045
+ "writable": true;
2046
+ },
2047
+ {
2048
+ "name": "listRoot";
2049
+ "pda": {
2050
+ "seeds": [
2051
+ {
2052
+ "kind": "const";
2053
+ "value": [
2054
+ 108,
2055
+ 105,
2056
+ 115,
2057
+ 116,
2058
+ 45,
2059
+ 114,
2060
+ 111,
2061
+ 111,
2062
+ 116
2063
+ ];
2064
+ },
2065
+ {
2066
+ "kind": "account";
2067
+ "path": "airdrop";
2068
+ }
2069
+ ];
2070
+ };
2071
+ },
2072
+ {
2073
+ "name": "protocolVault";
2074
+ "docs": [
2075
+ "Protocol vault receiving start costs."
2076
+ ];
2077
+ "writable": true;
2078
+ },
2079
+ {
2080
+ "name": "systemProgram";
2081
+ "address": "11111111111111111111111111111111";
2082
+ },
2083
+ {
2084
+ "name": "eventAuthority";
2085
+ "pda": {
2086
+ "seeds": [
2087
+ {
2088
+ "kind": "const";
2089
+ "value": [
2090
+ 95,
2091
+ 95,
2092
+ 101,
2093
+ 118,
2094
+ 101,
2095
+ 110,
2096
+ 116,
2097
+ 95,
2098
+ 97,
2099
+ 117,
2100
+ 116,
2101
+ 104,
2102
+ 111,
2103
+ 114,
2104
+ 105,
2105
+ 116,
2106
+ 121
2107
+ ];
2108
+ }
2109
+ ];
2110
+ };
2111
+ },
2112
+ {
2113
+ "name": "program";
2114
+ }
2115
+ ];
2116
+ "args": [
2117
+ {
2118
+ "name": "params";
2119
+ "type": {
2120
+ "defined": {
2121
+ "name": "startOnchainAirdropParams";
2122
+ };
2123
+ };
2124
+ }
2125
+ ];
2126
+ },
2127
+ {
2128
+ "name": "updateProtocolConfig";
2129
+ "discriminator": [
2130
+ 197,
2131
+ 97,
2132
+ 123,
2133
+ 54,
2134
+ 221,
2135
+ 168,
2136
+ 11,
2137
+ 135
2138
+ ];
2139
+ "accounts": [
2140
+ {
2141
+ "name": "protocolConfig";
2142
+ "writable": true;
2143
+ },
2144
+ {
2145
+ "name": "studioConfig";
2146
+ "pda": {
2147
+ "seeds": [
2148
+ {
2149
+ "kind": "const";
2150
+ "value": [
2151
+ 97,
2152
+ 105,
2153
+ 114,
2154
+ 100,
2155
+ 114,
2156
+ 111,
2157
+ 112,
2158
+ 45,
2159
+ 115,
2160
+ 116,
2161
+ 117,
2162
+ 100,
2163
+ 105,
2164
+ 111,
2165
+ 45,
2166
+ 99,
2167
+ 111,
2168
+ 110,
2169
+ 102,
2170
+ 105,
2171
+ 103
2172
+ ];
2173
+ }
2174
+ ];
2175
+ };
2176
+ },
2177
+ {
2178
+ "name": "configAuthority";
2179
+ "writable": true;
2180
+ "signer": true;
2181
+ "relations": [
2182
+ "studioConfig"
2183
+ ];
2184
+ },
2185
+ {
2186
+ "name": "eventAuthority";
2187
+ "pda": {
2188
+ "seeds": [
2189
+ {
2190
+ "kind": "const";
2191
+ "value": [
2192
+ 95,
2193
+ 95,
2194
+ 101,
2195
+ 118,
2196
+ 101,
2197
+ 110,
2198
+ 116,
2199
+ 95,
2200
+ 97,
2201
+ 117,
2202
+ 116,
2203
+ 104,
2204
+ 111,
2205
+ 114,
2206
+ 105,
2207
+ 116,
2208
+ 121
2209
+ ];
2210
+ }
2211
+ ];
2212
+ };
2213
+ },
2214
+ {
2215
+ "name": "program";
2216
+ }
2217
+ ];
2218
+ "args": [
2219
+ {
2220
+ "name": "params";
2221
+ "type": {
2222
+ "defined": {
2223
+ "name": "updateProtocolConfigParams";
2224
+ };
2225
+ };
2226
+ }
2227
+ ];
2228
+ },
2229
+ {
2230
+ "name": "updateStudioConfig";
2231
+ "discriminator": [
2232
+ 243,
2233
+ 146,
2234
+ 125,
2235
+ 172,
2236
+ 230,
2237
+ 187,
2238
+ 93,
2239
+ 123
2240
+ ];
2241
+ "accounts": [
2242
+ {
2243
+ "name": "configAccount";
2244
+ "writable": true;
2245
+ "pda": {
2246
+ "seeds": [
2247
+ {
2248
+ "kind": "const";
2249
+ "value": [
2250
+ 97,
2251
+ 105,
2252
+ 114,
2253
+ 100,
2254
+ 114,
2255
+ 111,
2256
+ 112,
2257
+ 45,
2258
+ 115,
2259
+ 116,
2260
+ 117,
2261
+ 100,
2262
+ 105,
2263
+ 111,
2264
+ 45,
2265
+ 99,
2266
+ 111,
2267
+ 110,
2268
+ 102,
2269
+ 105,
2270
+ 103
2271
+ ];
2272
+ }
2273
+ ];
2274
+ };
2275
+ },
2276
+ {
2277
+ "name": "configAuthority";
2278
+ "writable": true;
2279
+ "signer": true;
2280
+ "relations": [
2281
+ "configAccount"
2282
+ ];
2283
+ },
2284
+ {
2285
+ "name": "eventAuthority";
2286
+ "pda": {
2287
+ "seeds": [
2288
+ {
2289
+ "kind": "const";
2290
+ "value": [
2291
+ 95,
2292
+ 95,
2293
+ 101,
2294
+ 118,
2295
+ 101,
2296
+ 110,
2297
+ 116,
2298
+ 95,
2299
+ 97,
2300
+ 117,
2301
+ 116,
2302
+ 104,
2303
+ 111,
2304
+ 114,
2305
+ 105,
2306
+ 116,
2307
+ 121
2308
+ ];
2309
+ }
2310
+ ];
2311
+ };
2312
+ },
2313
+ {
2314
+ "name": "program";
2315
+ }
2316
+ ];
2317
+ "args": [
2318
+ {
2319
+ "name": "params";
2320
+ "type": {
2321
+ "defined": {
2322
+ "name": "updateStudioConfigParams";
2323
+ };
2324
+ };
2325
+ }
2326
+ ];
2327
+ },
2328
+ {
2329
+ "name": "withdrawMerkleAirdrop";
2330
+ "discriminator": [
2331
+ 124,
2332
+ 134,
2333
+ 136,
2334
+ 135,
2335
+ 147,
2336
+ 213,
2337
+ 96,
2338
+ 207
2339
+ ];
2340
+ "accounts": [
2341
+ {
2342
+ "name": "creator";
2343
+ "writable": true;
2344
+ "signer": true;
2345
+ },
2346
+ {
2347
+ "name": "airdrop";
2348
+ "writable": true;
2349
+ },
2350
+ {
2351
+ "name": "mint";
2352
+ },
2353
+ {
2354
+ "name": "vault";
2355
+ "writable": true;
2356
+ },
2357
+ {
2358
+ "name": "creatorTokenAccount";
2359
+ "writable": true;
2360
+ },
2361
+ {
2362
+ "name": "tokenProgram";
2363
+ },
2364
+ {
2365
+ "name": "memoProgram";
2366
+ "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
2367
+ },
2368
+ {
2369
+ "name": "systemProgram";
2370
+ "address": "11111111111111111111111111111111";
2371
+ },
2372
+ {
2373
+ "name": "associatedTokenProgram";
2374
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
2375
+ },
2376
+ {
2377
+ "name": "eventAuthority";
2378
+ "pda": {
2379
+ "seeds": [
2380
+ {
2381
+ "kind": "const";
2382
+ "value": [
2383
+ 95,
2384
+ 95,
2385
+ 101,
2386
+ 118,
2387
+ 101,
2388
+ 110,
2389
+ 116,
2390
+ 95,
2391
+ 97,
2392
+ 117,
2393
+ 116,
2394
+ 104,
2395
+ 111,
2396
+ 114,
2397
+ 105,
2398
+ 116,
2399
+ 121
2400
+ ];
2401
+ }
2402
+ ];
2403
+ };
2404
+ },
2405
+ {
2406
+ "name": "program";
2407
+ }
2408
+ ];
2409
+ "args": [];
2410
+ },
2411
+ {
2412
+ "name": "withdrawOnchainAirdrop";
2413
+ "discriminator": [
2414
+ 152,
2415
+ 147,
2416
+ 37,
2417
+ 215,
2418
+ 194,
2419
+ 239,
2420
+ 180,
2421
+ 102
2422
+ ];
2423
+ "accounts": [
2424
+ {
2425
+ "name": "creator";
2426
+ "writable": true;
2427
+ "signer": true;
2428
+ },
2429
+ {
2430
+ "name": "airdrop";
2431
+ "writable": true;
2432
+ },
2433
+ {
2434
+ "name": "mint";
2435
+ },
2436
+ {
2437
+ "name": "vault";
2438
+ "writable": true;
2439
+ },
2440
+ {
2441
+ "name": "creatorTokenAccount";
2442
+ "writable": true;
2443
+ },
2444
+ {
2445
+ "name": "tokenProgram";
2446
+ },
2447
+ {
2448
+ "name": "memoProgram";
2449
+ "address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr";
2450
+ },
2451
+ {
2452
+ "name": "systemProgram";
2453
+ "address": "11111111111111111111111111111111";
2454
+ },
2455
+ {
2456
+ "name": "associatedTokenProgram";
2457
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
2458
+ },
2459
+ {
2460
+ "name": "eventAuthority";
2461
+ "pda": {
2462
+ "seeds": [
2463
+ {
2464
+ "kind": "const";
2465
+ "value": [
2466
+ 95,
2467
+ 95,
2468
+ 101,
2469
+ 118,
2470
+ 101,
2471
+ 110,
2472
+ 116,
2473
+ 95,
2474
+ 97,
2475
+ 117,
2476
+ 116,
2477
+ 104,
2478
+ 111,
2479
+ 114,
2480
+ 105,
2481
+ 116,
2482
+ 121
2483
+ ];
2484
+ }
2485
+ ];
2486
+ };
2487
+ },
2488
+ {
2489
+ "name": "program";
2490
+ }
2491
+ ];
2492
+ "args": [];
2493
+ }
2494
+ ];
2495
+ "accounts": [
2496
+ {
2497
+ "name": "airdropProtocolConfig";
2498
+ "discriminator": [
2499
+ 182,
2500
+ 140,
2501
+ 212,
2502
+ 121,
2503
+ 236,
2504
+ 112,
2505
+ 171,
2506
+ 99
2507
+ ];
2508
+ },
2509
+ {
2510
+ "name": "airdropStudioConfig";
2511
+ "discriminator": [
2512
+ 245,
2513
+ 76,
2514
+ 54,
2515
+ 47,
2516
+ 97,
2517
+ 125,
2518
+ 53,
2519
+ 141
2520
+ ];
2521
+ },
2522
+ {
2523
+ "name": "claimStatus";
2524
+ "discriminator": [
2525
+ 22,
2526
+ 183,
2527
+ 249,
2528
+ 157,
2529
+ 247,
2530
+ 95,
2531
+ 150,
2532
+ 96
2533
+ ];
2534
+ },
2535
+ {
2536
+ "name": "draftIndex";
2537
+ "discriminator": [
2538
+ 210,
2539
+ 178,
2540
+ 236,
2541
+ 43,
2542
+ 98,
2543
+ 133,
2544
+ 119,
2545
+ 229
2546
+ ];
2547
+ },
2548
+ {
2549
+ "name": "draftRegistry";
2550
+ "discriminator": [
2551
+ 39,
2552
+ 95,
2553
+ 131,
2554
+ 182,
2555
+ 236,
2556
+ 194,
2557
+ 11,
2558
+ 133
2559
+ ];
2560
+ },
2561
+ {
2562
+ "name": "listRoot";
2563
+ "discriminator": [
2564
+ 245,
2565
+ 62,
2566
+ 57,
2567
+ 68,
2568
+ 97,
2569
+ 235,
2570
+ 172,
2571
+ 240
2572
+ ];
2573
+ },
2574
+ {
2575
+ "name": "merkleProofAirdrop";
2576
+ "discriminator": [
2577
+ 57,
2578
+ 83,
2579
+ 229,
2580
+ 57,
2581
+ 46,
2582
+ 186,
2583
+ 81,
2584
+ 103
2585
+ ];
2586
+ },
2587
+ {
2588
+ "name": "onchainListAirdrop";
2589
+ "discriminator": [
2590
+ 51,
2591
+ 172,
2592
+ 66,
2593
+ 52,
2594
+ 187,
2595
+ 222,
2596
+ 110,
2597
+ 7
2598
+ ];
2599
+ }
2600
+ ];
2601
+ "events": [
2602
+ {
2603
+ "name": "airdropCanceledEvent";
2604
+ "discriminator": [
2605
+ 208,
2606
+ 168,
2607
+ 213,
2608
+ 213,
2609
+ 143,
2610
+ 189,
2611
+ 124,
2612
+ 74
2613
+ ];
2614
+ },
2615
+ {
2616
+ "name": "airdropDraftCreatedEvent";
2617
+ "discriminator": [
2618
+ 48,
2619
+ 179,
2620
+ 191,
2621
+ 138,
2622
+ 132,
2623
+ 224,
2624
+ 243,
2625
+ 244
2626
+ ];
2627
+ },
2628
+ {
2629
+ "name": "claimTokenEvent";
2630
+ "discriminator": [
2631
+ 127,
2632
+ 10,
2633
+ 14,
2634
+ 49,
2635
+ 47,
2636
+ 171,
2637
+ 31,
2638
+ 127
2639
+ ];
2640
+ },
2641
+ {
2642
+ "name": "createConfigEvent";
2643
+ "discriminator": [
2644
+ 107,
2645
+ 52,
2646
+ 89,
2647
+ 129,
2648
+ 55,
2649
+ 226,
2650
+ 81,
2651
+ 22
2652
+ ];
2653
+ },
2654
+ {
2655
+ "name": "createProtocolConfigEvent";
2656
+ "discriminator": [
2657
+ 44,
2658
+ 74,
2659
+ 184,
2660
+ 0,
2661
+ 56,
2662
+ 102,
2663
+ 52,
2664
+ 171
2665
+ ];
2666
+ },
2667
+ {
2668
+ "name": "merkleAirdropDepositedEvent";
2669
+ "discriminator": [
2670
+ 102,
2671
+ 107,
2672
+ 60,
2673
+ 163,
2674
+ 118,
2675
+ 171,
2676
+ 57,
2677
+ 172
2678
+ ];
2679
+ },
2680
+ {
2681
+ "name": "merkleAirdropStartedEvent";
2682
+ "discriminator": [
2683
+ 251,
2684
+ 240,
2685
+ 64,
2686
+ 108,
2687
+ 102,
2688
+ 41,
2689
+ 135,
2690
+ 217
2691
+ ];
2692
+ },
2693
+ {
2694
+ "name": "merkleAirdropWithdrawnEvent";
2695
+ "discriminator": [
2696
+ 19,
2697
+ 241,
2698
+ 82,
2699
+ 184,
2700
+ 118,
2701
+ 253,
2702
+ 149,
2703
+ 98
2704
+ ];
2705
+ },
2706
+ {
2707
+ "name": "merkleRootRegisteredEvent";
2708
+ "discriminator": [
2709
+ 142,
2710
+ 111,
2711
+ 67,
2712
+ 50,
2713
+ 100,
2714
+ 45,
2715
+ 126,
2716
+ 44
2717
+ ];
2718
+ },
2719
+ {
2720
+ "name": "onchainAirdropDepositedEvent";
2721
+ "discriminator": [
2722
+ 54,
2723
+ 224,
2724
+ 243,
2725
+ 194,
2726
+ 29,
2727
+ 104,
2728
+ 84,
2729
+ 57
2730
+ ];
2731
+ },
2732
+ {
2733
+ "name": "onchainAirdropStartedEvent";
2734
+ "discriminator": [
2735
+ 219,
2736
+ 167,
2737
+ 202,
2738
+ 123,
2739
+ 151,
2740
+ 146,
2741
+ 78,
2742
+ 18
2743
+ ];
2744
+ },
2745
+ {
2746
+ "name": "onchainAirdropWithdrawnEvent";
2747
+ "discriminator": [
2748
+ 188,
2749
+ 82,
2750
+ 32,
2751
+ 127,
2752
+ 174,
2753
+ 255,
2754
+ 67,
2755
+ 192
2756
+ ];
2757
+ },
2758
+ {
2759
+ "name": "onchainRecipientsAppendedEvent";
2760
+ "discriminator": [
2761
+ 191,
2762
+ 140,
2763
+ 60,
2764
+ 224,
2765
+ 176,
2766
+ 199,
2767
+ 46,
2768
+ 39
2769
+ ];
2770
+ },
2771
+ {
2772
+ "name": "updateConfigEvent";
2773
+ "discriminator": [
2774
+ 96,
2775
+ 112,
2776
+ 253,
2777
+ 102,
2778
+ 59,
2779
+ 78,
2780
+ 75,
2781
+ 134
2782
+ ];
2783
+ }
2784
+ ];
2785
+ "errors": [
2786
+ {
2787
+ "code": 6000;
2788
+ "name": "accountNotFound";
2789
+ "msg": "Account not found";
2790
+ },
2791
+ {
2792
+ "code": 6001;
2793
+ "name": "invalidConfigAuthority";
2794
+ "msg": "Invalid config authority";
2795
+ },
2796
+ {
2797
+ "code": 6002;
2798
+ "name": "accountAlreadyInitialized";
2799
+ "msg": "Account already initialized";
2800
+ },
2801
+ {
2802
+ "code": 6003;
2803
+ "name": "invalidAirdropType";
2804
+ "msg": "Invalid airdrop type";
2805
+ },
2806
+ {
2807
+ "code": 6004;
2808
+ "name": "invalidActionType";
2809
+ "msg": "Invalid action type";
2810
+ },
2811
+ {
2812
+ "code": 6005;
2813
+ "name": "invalidPubkey";
2814
+ "msg": "Invalid pubkey";
2815
+ },
2816
+ {
2817
+ "code": 6006;
2818
+ "name": "invalidTimestamp";
2819
+ "msg": "Invalid timestamp";
2820
+ },
2821
+ {
2822
+ "code": 6007;
2823
+ "name": "invalidAmount";
2824
+ "msg": "Invalid Amount";
2825
+ },
2826
+ {
2827
+ "code": 6008;
2828
+ "name": "uriTooLong";
2829
+ "msg": "Uri Too Long";
2830
+ },
2831
+ {
2832
+ "code": 6009;
2833
+ "name": "invalidSourceAccount";
2834
+ "msg": "Invalid source account";
2835
+ },
2836
+ {
2837
+ "code": 6010;
2838
+ "name": "airdropNotStarted";
2839
+ "msg": "Airdrop not started";
2840
+ },
2841
+ {
2842
+ "code": 6011;
2843
+ "name": "airdropEnded";
2844
+ "msg": "Airdrop ended";
2845
+ },
2846
+ {
2847
+ "code": 6012;
2848
+ "name": "airdropNotEnded";
2849
+ "msg": "Airdrop not ended";
2850
+ },
2851
+ {
2852
+ "code": 6013;
2853
+ "name": "airdropHasNoEnd";
2854
+ "msg": "Airdrop has no end";
2855
+ },
2856
+ {
2857
+ "code": 6014;
2858
+ "name": "invalidState";
2859
+ "msg": "Invalid state";
2860
+ },
2861
+ {
2862
+ "code": 6015;
2863
+ "name": "endBeforeStart";
2864
+ "msg": "End before start";
2865
+ },
2866
+ {
2867
+ "code": 6016;
2868
+ "name": "startTimeInPast";
2869
+ "msg": "Start time in past";
2870
+ },
2871
+ {
2872
+ "code": 6017;
2873
+ "name": "alreadyClaimed";
2874
+ "msg": "Already claimed";
2875
+ },
2876
+ {
2877
+ "code": 6018;
2878
+ "name": "invalidMerkleProof";
2879
+ "msg": "Invalid merkle proof";
2880
+ },
2881
+ {
2882
+ "code": 6019;
2883
+ "name": "mathOverflow";
2884
+ "msg": "Math overflow";
2885
+ },
2886
+ {
2887
+ "code": 6020;
2888
+ "name": "insufficientVaultBalance";
2889
+ "msg": "Insufficient vault balance";
2890
+ },
2891
+ {
2892
+ "code": 6021;
2893
+ "name": "insufficientFunds";
2894
+ "msg": "Insufficient funds";
2895
+ },
2896
+ {
2897
+ "code": 6022;
2898
+ "name": "invalidCostLamports";
2899
+ "msg": "Creation cost exceeds the maximum allowed (1 SOL).";
2900
+ },
2901
+ {
2902
+ "code": 6023;
2903
+ "name": "unsupportedMint";
2904
+ "msg": "Unsupported mint";
2905
+ },
2906
+ {
2907
+ "code": 6024;
2908
+ "name": "mintFreezeAuthorityNotAllowed";
2909
+ "msg": "Mint freeze authority is not allowed";
2910
+ },
2911
+ {
2912
+ "code": 6025;
2913
+ "name": "sourceCpiGuardEnabled";
2914
+ "msg": "Source token account has CPI Guard enabled";
2915
+ },
2916
+ {
2917
+ "code": 6026;
2918
+ "name": "invalidAirdropAccount";
2919
+ "msg": "Invalid airdrop account";
2920
+ },
2921
+ {
2922
+ "code": 6027;
2923
+ "name": "missingDraftRound";
2924
+ "msg": "Missing draft round";
2925
+ },
2926
+ {
2927
+ "code": 6028;
2928
+ "name": "invalidCreator";
2929
+ "msg": "Invalid creator";
2930
+ },
2931
+ {
2932
+ "code": 6029;
2933
+ "name": "invalidDraftRound";
2934
+ "msg": "Invalid draft round";
2935
+ },
2936
+ {
2937
+ "code": 6030;
2938
+ "name": "invalidMint";
2939
+ "msg": "Invalid mint";
2940
+ },
2941
+ {
2942
+ "code": 6031;
2943
+ "name": "invalidTokenProgram";
2944
+ "msg": "Invalid token program";
2945
+ },
2946
+ {
2947
+ "code": 6032;
2948
+ "name": "invalidMemoProgram";
2949
+ "msg": "Invalid memo program";
2950
+ },
2951
+ {
2952
+ "code": 6033;
2953
+ "name": "overflow";
2954
+ "msg": "overflow";
2955
+ },
2956
+ {
2957
+ "code": 6034;
2958
+ "name": "invalidAirdropStatus";
2959
+ "msg": "Invalid airdrop status";
2960
+ },
2961
+ {
2962
+ "code": 6035;
2963
+ "name": "invalidProtocolVault";
2964
+ "msg": "Invalid protocol vault";
2965
+ },
2966
+ {
2967
+ "code": 6036;
2968
+ "name": "invalidAirdropDraftIndex";
2969
+ "msg": "Invalid airdrop draft index";
2970
+ },
2971
+ {
2972
+ "code": 6037;
2973
+ "name": "invalidPda";
2974
+ "msg": "Invalid PDA";
2975
+ },
2976
+ {
2977
+ "code": 6038;
2978
+ "name": "invalidLeafData";
2979
+ "msg": "Invalid leaf data";
2980
+ },
2981
+ {
2982
+ "code": 6039;
2983
+ "name": "emptyRecipientList";
2984
+ "msg": "Empty recipient list";
2985
+ },
2986
+ {
2987
+ "code": 6040;
2988
+ "name": "appendRecipientsLimitExceeded";
2989
+ "msg": "Append recipients limit exceeded";
2990
+ },
2991
+ {
2992
+ "code": 6041;
2993
+ "name": "listEmpty";
2994
+ "msg": "List is empty";
2995
+ },
2996
+ {
2997
+ "code": 6042;
2998
+ "name": "listChunkOverflow";
2999
+ "msg": "List chunk overflow";
3000
+ },
3001
+ {
3002
+ "code": 6043;
3003
+ "name": "transferFeeCalculationFailed";
3004
+ "msg": "Transfer fee calculation failed";
3005
+ },
3006
+ {
3007
+ "code": 6044;
3008
+ "name": "emptyMerkleRoots";
3009
+ "msg": "Merkle roots list is empty";
3010
+ },
3011
+ {
3012
+ "code": 6045;
3013
+ "name": "merkleRootsLimitExceeded";
3014
+ "msg": "Merkle roots list exceeds the maximum length";
3015
+ },
3016
+ {
3017
+ "code": 6046;
3018
+ "name": "invalidMerkleRoot";
3019
+ "msg": "Invalid merkle root";
3020
+ },
3021
+ {
3022
+ "code": 6047;
3023
+ "name": "invalidMerkleLeafCount";
3024
+ "msg": "Invalid merkle leaf count";
3025
+ },
3026
+ {
3027
+ "code": 6048;
3028
+ "name": "merkleLeafCountExceeded";
3029
+ "msg": "Merkle leaf count exceeds the maximum allowed per root";
3030
+ },
3031
+ {
3032
+ "code": 6049;
3033
+ "name": "invalidMerkleRootSum";
3034
+ "msg": "Invalid merkle root sum";
3035
+ },
3036
+ {
3037
+ "code": 6050;
3038
+ "name": "duplicateMerkleRoot";
3039
+ "msg": "Duplicate merkle root";
3040
+ },
3041
+ {
3042
+ "code": 6051;
3043
+ "name": "merkleRootsAlreadyRegistered";
3044
+ "msg": "Merkle roots already registered";
3045
+ },
3046
+ {
3047
+ "code": 6052;
3048
+ "name": "merkleRootSumTotalMismatch";
3049
+ "msg": "Merkle root sum total mismatch";
3050
+ },
3051
+ {
3052
+ "code": 6053;
3053
+ "name": "airdropDurationTooShort";
3054
+ "msg": "Airdrop duration is too short";
3055
+ }
3056
+ ];
3057
+ "types": [
3058
+ {
3059
+ "name": "airdropAction";
3060
+ "repr": {
3061
+ "kind": "rust";
3062
+ };
3063
+ "type": {
3064
+ "kind": "enum";
3065
+ "variants": [
3066
+ {
3067
+ "name": "createOnchainAirdrop";
3068
+ },
3069
+ {
3070
+ "name": "createMerkleAirdrop";
3071
+ },
3072
+ {
3073
+ "name": "registerMerkleRoot";
3074
+ },
3075
+ {
3076
+ "name": "depositMerkleAirdrop";
3077
+ },
3078
+ {
3079
+ "name": "startMerkleAirdrop";
3080
+ },
3081
+ {
3082
+ "name": "appendOnchainRecipients";
3083
+ },
3084
+ {
3085
+ "name": "depositOnchainAirdrop";
3086
+ },
3087
+ {
3088
+ "name": "startOnchainAirdrop";
3089
+ }
3090
+ ];
3091
+ };
3092
+ },
3093
+ {
3094
+ "name": "airdropBase";
3095
+ "type": {
3096
+ "kind": "struct";
3097
+ "fields": [
3098
+ {
3099
+ "name": "isInitialized";
3100
+ "type": "bool";
3101
+ },
3102
+ {
3103
+ "name": "airdropIndex";
3104
+ "type": "u32";
3105
+ },
3106
+ {
3107
+ "name": "creator";
3108
+ "type": "pubkey";
3109
+ },
3110
+ {
3111
+ "name": "airdropType";
3112
+ "type": {
3113
+ "defined": {
3114
+ "name": "airdropType";
3115
+ };
3116
+ };
3117
+ },
3118
+ {
3119
+ "name": "mint";
3120
+ "type": "pubkey";
3121
+ },
3122
+ {
3123
+ "name": "vault";
3124
+ "type": "pubkey";
3125
+ },
3126
+ {
3127
+ "name": "totalAmount";
3128
+ "type": "u64";
3129
+ },
3130
+ {
3131
+ "name": "claimedAmount";
3132
+ "type": "u64";
3133
+ },
3134
+ {
3135
+ "name": "createdAt";
3136
+ "type": "u64";
3137
+ },
3138
+ {
3139
+ "name": "startsAt";
3140
+ "type": {
3141
+ "option": "u64";
3142
+ };
3143
+ },
3144
+ {
3145
+ "name": "endsAt";
3146
+ "type": {
3147
+ "option": "u64";
3148
+ };
3149
+ },
3150
+ {
3151
+ "name": "status";
3152
+ "type": {
3153
+ "defined": {
3154
+ "name": "airdropStatus";
3155
+ };
3156
+ };
3157
+ },
3158
+ {
3159
+ "name": "bump";
3160
+ "type": "u8";
3161
+ }
3162
+ ];
3163
+ };
3164
+ },
3165
+ {
3166
+ "name": "airdropCanceledEvent";
3167
+ "type": {
3168
+ "kind": "struct";
3169
+ "fields": [
3170
+ {
3171
+ "name": "airdrop";
3172
+ "type": "pubkey";
3173
+ },
3174
+ {
3175
+ "name": "mint";
3176
+ "type": "pubkey";
3177
+ },
3178
+ {
3179
+ "name": "canceledBy";
3180
+ "type": "pubkey";
3181
+ },
3182
+ {
3183
+ "name": "createdAt";
3184
+ "type": "u64";
3185
+ }
3186
+ ];
3187
+ };
3188
+ },
3189
+ {
3190
+ "name": "airdropDraftCreatedEvent";
3191
+ "type": {
3192
+ "kind": "struct";
3193
+ "fields": [
3194
+ {
3195
+ "name": "airdrop";
3196
+ "type": "pubkey";
3197
+ },
3198
+ {
3199
+ "name": "airdropType";
3200
+ "type": "string";
3201
+ },
3202
+ {
3203
+ "name": "creator";
3204
+ "type": "pubkey";
3205
+ },
3206
+ {
3207
+ "name": "mint";
3208
+ "type": "pubkey";
3209
+ },
3210
+ {
3211
+ "name": "vault";
3212
+ "type": "pubkey";
3213
+ },
3214
+ {
3215
+ "name": "createdAt";
3216
+ "type": "u64";
3217
+ }
3218
+ ];
3219
+ };
3220
+ },
3221
+ {
3222
+ "name": "airdropProtocolConfig";
3223
+ "type": {
3224
+ "kind": "struct";
3225
+ "fields": [
3226
+ {
3227
+ "name": "isInitialized";
3228
+ "type": "bool";
3229
+ },
3230
+ {
3231
+ "name": "action";
3232
+ "type": {
3233
+ "defined": {
3234
+ "name": "airdropAction";
3235
+ };
3236
+ };
3237
+ },
3238
+ {
3239
+ "name": "costLamports";
3240
+ "type": "u64";
3241
+ },
3242
+ {
3243
+ "name": "bump";
3244
+ "type": "u8";
3245
+ }
3246
+ ];
3247
+ };
3248
+ },
3249
+ {
3250
+ "name": "airdropStatus";
3251
+ "repr": {
3252
+ "kind": "rust";
3253
+ };
3254
+ "type": {
3255
+ "kind": "enum";
3256
+ "variants": [
3257
+ {
3258
+ "name": "draft";
3259
+ },
3260
+ {
3261
+ "name": "approved";
3262
+ },
3263
+ {
3264
+ "name": "deposited";
3265
+ },
3266
+ {
3267
+ "name": "canceled";
3268
+ }
3269
+ ];
3270
+ };
3271
+ },
3272
+ {
3273
+ "name": "airdropStudioConfig";
3274
+ "type": {
3275
+ "kind": "struct";
3276
+ "fields": [
3277
+ {
3278
+ "name": "isInitialized";
3279
+ "type": "bool";
3280
+ },
3281
+ {
3282
+ "name": "configAuthority";
3283
+ "type": "pubkey";
3284
+ },
3285
+ {
3286
+ "name": "claimCostLamports";
3287
+ "type": "u64";
3288
+ },
3289
+ {
3290
+ "name": "protocolVault";
3291
+ "type": "pubkey";
3292
+ },
3293
+ {
3294
+ "name": "bump";
3295
+ "type": "u8";
3296
+ }
3297
+ ];
3298
+ };
3299
+ },
3300
+ {
3301
+ "name": "airdropType";
3302
+ "repr": {
3303
+ "kind": "rust";
3304
+ };
3305
+ "type": {
3306
+ "kind": "enum";
3307
+ "variants": [
3308
+ {
3309
+ "name": "onChainList";
3310
+ },
3311
+ {
3312
+ "name": "merkleProof";
3313
+ }
3314
+ ];
3315
+ };
3316
+ },
3317
+ {
3318
+ "name": "appendOnchainRecipientsParams";
3319
+ "type": {
3320
+ "kind": "struct";
3321
+ "fields": [
3322
+ {
3323
+ "name": "recipients";
3324
+ "type": {
3325
+ "vec": {
3326
+ "defined": {
3327
+ "name": "recipientInput";
3328
+ };
3329
+ };
3330
+ };
3331
+ }
3332
+ ];
3333
+ };
3334
+ },
3335
+ {
3336
+ "name": "claimMerkleParams";
3337
+ "docs": [
3338
+ "Parameters supplied by claimer."
3339
+ ];
3340
+ "type": {
3341
+ "kind": "struct";
3342
+ "fields": [
3343
+ {
3344
+ "name": "rootIndex";
3345
+ "type": "u8";
3346
+ },
3347
+ {
3348
+ "name": "leafIndex";
3349
+ "type": "u32";
3350
+ },
3351
+ {
3352
+ "name": "amount";
3353
+ "type": "u64";
3354
+ },
3355
+ {
3356
+ "name": "leaf";
3357
+ "type": {
3358
+ "array": [
3359
+ "u8",
3360
+ 32
3361
+ ];
3362
+ };
3363
+ },
3364
+ {
3365
+ "name": "proof";
3366
+ "type": {
3367
+ "vec": {
3368
+ "defined": {
3369
+ "name": "merkleProofNode";
3370
+ };
3371
+ };
3372
+ };
3373
+ }
3374
+ ];
3375
+ };
3376
+ },
3377
+ {
3378
+ "name": "claimOnchainParams";
3379
+ "type": {
3380
+ "kind": "struct";
3381
+ "fields": [
3382
+ {
3383
+ "name": "entryIndex";
3384
+ "type": "u32";
3385
+ },
3386
+ {
3387
+ "name": "amount";
3388
+ "type": "u64";
3389
+ }
3390
+ ];
3391
+ };
3392
+ },
3393
+ {
3394
+ "name": "claimStatus";
3395
+ "type": {
3396
+ "kind": "struct";
3397
+ "fields": [
3398
+ {
3399
+ "name": "isInitialized";
3400
+ "type": "bool";
3401
+ },
3402
+ {
3403
+ "name": "isClaimed";
3404
+ "type": "bool";
3405
+ },
3406
+ {
3407
+ "name": "claimedAt";
3408
+ "type": "u64";
3409
+ },
3410
+ {
3411
+ "name": "bump";
3412
+ "type": "u8";
3413
+ }
3414
+ ];
3415
+ };
3416
+ },
3417
+ {
3418
+ "name": "claimTokenEvent";
3419
+ "type": {
3420
+ "kind": "struct";
3421
+ "fields": [
3422
+ {
3423
+ "name": "airdrop";
3424
+ "type": "pubkey";
3425
+ },
3426
+ {
3427
+ "name": "mint";
3428
+ "type": "pubkey";
3429
+ },
3430
+ {
3431
+ "name": "claimer";
3432
+ "type": "pubkey";
3433
+ },
3434
+ {
3435
+ "name": "amount";
3436
+ "type": "u64";
3437
+ },
3438
+ {
3439
+ "name": "createdAt";
3440
+ "type": "u64";
3441
+ }
3442
+ ];
3443
+ };
3444
+ },
3445
+ {
3446
+ "name": "createConfigEvent";
3447
+ "type": {
3448
+ "kind": "struct";
3449
+ "fields": [
3450
+ {
3451
+ "name": "configAccount";
3452
+ "type": "string";
3453
+ },
3454
+ {
3455
+ "name": "configAuthority";
3456
+ "type": "string";
3457
+ },
3458
+ {
3459
+ "name": "createdAt";
3460
+ "type": "u64";
3461
+ }
3462
+ ];
3463
+ };
3464
+ },
3465
+ {
3466
+ "name": "createMerkleAirdropParams";
3467
+ "type": {
3468
+ "kind": "struct";
3469
+ "fields": [
3470
+ {
3471
+ "name": "draftIndex";
3472
+ "type": "u32";
3473
+ },
3474
+ {
3475
+ "name": "startsAt";
3476
+ "type": {
3477
+ "option": "u64";
3478
+ };
3479
+ },
3480
+ {
3481
+ "name": "endsAt";
3482
+ "type": {
3483
+ "option": "u64";
3484
+ };
3485
+ }
3486
+ ];
3487
+ };
3488
+ },
3489
+ {
3490
+ "name": "createOnchainAirdropParams";
3491
+ "type": {
3492
+ "kind": "struct";
3493
+ "fields": [
3494
+ {
3495
+ "name": "draftIndex";
3496
+ "type": "u32";
3497
+ },
3498
+ {
3499
+ "name": "startsAt";
3500
+ "type": {
3501
+ "option": "u64";
3502
+ };
3503
+ },
3504
+ {
3505
+ "name": "endsAt";
3506
+ "type": {
3507
+ "option": "u64";
3508
+ };
3509
+ }
3510
+ ];
3511
+ };
3512
+ },
3513
+ {
3514
+ "name": "createProtocolConfigEvent";
3515
+ "type": {
3516
+ "kind": "struct";
3517
+ "fields": [
3518
+ {
3519
+ "name": "protocolConfigAccount";
3520
+ "type": "string";
3521
+ },
3522
+ {
3523
+ "name": "actionType";
3524
+ "type": "string";
3525
+ },
3526
+ {
3527
+ "name": "configAuthority";
3528
+ "type": "string";
3529
+ },
3530
+ {
3531
+ "name": "createdAt";
3532
+ "type": "u64";
3533
+ }
3534
+ ];
3535
+ };
3536
+ },
3537
+ {
3538
+ "name": "draftIndex";
3539
+ "type": {
3540
+ "kind": "struct";
3541
+ "fields": [
3542
+ {
3543
+ "name": "isInitialized";
3544
+ "type": "bool";
3545
+ },
3546
+ {
3547
+ "name": "creator";
3548
+ "type": "pubkey";
3549
+ },
3550
+ {
3551
+ "name": "index";
3552
+ "type": "u32";
3553
+ },
3554
+ {
3555
+ "name": "airdrop";
3556
+ "type": "pubkey";
3557
+ },
3558
+ {
3559
+ "name": "mint";
3560
+ "type": "pubkey";
3561
+ },
3562
+ {
3563
+ "name": "bump";
3564
+ "type": "u8";
3565
+ }
3566
+ ];
3567
+ };
3568
+ },
3569
+ {
3570
+ "name": "draftRegistry";
3571
+ "type": {
3572
+ "kind": "struct";
3573
+ "fields": [
3574
+ {
3575
+ "name": "isInitialized";
3576
+ "type": "bool";
3577
+ },
3578
+ {
3579
+ "name": "creator";
3580
+ "type": "pubkey";
3581
+ },
3582
+ {
3583
+ "name": "totalCount";
3584
+ "type": "u32";
3585
+ },
3586
+ {
3587
+ "name": "bump";
3588
+ "type": "u8";
3589
+ }
3590
+ ];
3591
+ };
3592
+ },
3593
+ {
3594
+ "name": "initProtocolConfigParams";
3595
+ "type": {
3596
+ "kind": "struct";
3597
+ "fields": [
3598
+ {
3599
+ "name": "action";
3600
+ "type": {
3601
+ "defined": {
3602
+ "name": "airdropAction";
3603
+ };
3604
+ };
3605
+ },
3606
+ {
3607
+ "name": "costLamports";
3608
+ "type": "u64";
3609
+ }
3610
+ ];
3611
+ };
3612
+ },
3613
+ {
3614
+ "name": "initStudioConfigParams";
3615
+ "type": {
3616
+ "kind": "struct";
3617
+ "fields": [
3618
+ {
3619
+ "name": "claimCostLamports";
3620
+ "type": "u64";
3621
+ },
3622
+ {
3623
+ "name": "protocolVault";
3624
+ "type": "pubkey";
3625
+ }
3626
+ ];
3627
+ };
3628
+ },
3629
+ {
3630
+ "name": "listRoot";
3631
+ "type": {
3632
+ "kind": "struct";
3633
+ "fields": [
3634
+ {
3635
+ "name": "isInitialized";
3636
+ "type": "bool";
3637
+ },
3638
+ {
3639
+ "name": "airdrop";
3640
+ "type": "pubkey";
3641
+ },
3642
+ {
3643
+ "name": "totalCount";
3644
+ "type": "u32";
3645
+ },
3646
+ {
3647
+ "name": "totalAmount";
3648
+ "type": "u64";
3649
+ },
3650
+ {
3651
+ "name": "bump";
3652
+ "type": "u8";
3653
+ }
3654
+ ];
3655
+ };
3656
+ },
3657
+ {
3658
+ "name": "merkleAirdropDepositedEvent";
3659
+ "type": {
3660
+ "kind": "struct";
3661
+ "fields": [
3662
+ {
3663
+ "name": "airdrop";
3664
+ "type": "pubkey";
3665
+ },
3666
+ {
3667
+ "name": "creator";
3668
+ "type": "pubkey";
3669
+ },
3670
+ {
3671
+ "name": "mint";
3672
+ "type": "pubkey";
3673
+ },
3674
+ {
3675
+ "name": "amount";
3676
+ "type": "u64";
3677
+ },
3678
+ {
3679
+ "name": "createdAt";
3680
+ "type": "u64";
3681
+ }
3682
+ ];
3683
+ };
3684
+ },
3685
+ {
3686
+ "name": "merkleAirdropStartedEvent";
3687
+ "type": {
3688
+ "kind": "struct";
3689
+ "fields": [
3690
+ {
3691
+ "name": "airdrop";
3692
+ "type": "pubkey";
3693
+ },
3694
+ {
3695
+ "name": "creator";
3696
+ "type": "pubkey";
3697
+ },
3698
+ {
3699
+ "name": "mint";
3700
+ "type": "pubkey";
3701
+ },
3702
+ {
3703
+ "name": "vault";
3704
+ "type": "pubkey";
3705
+ },
3706
+ {
3707
+ "name": "totalAmount";
3708
+ "type": "u64";
3709
+ },
3710
+ {
3711
+ "name": "startsAt";
3712
+ "type": {
3713
+ "option": "u64";
3714
+ };
3715
+ },
3716
+ {
3717
+ "name": "endsAt";
3718
+ "type": {
3719
+ "option": "u64";
3720
+ };
3721
+ },
3722
+ {
3723
+ "name": "merkleRootHashes";
3724
+ "type": {
3725
+ "vec": "string";
3726
+ };
3727
+ },
3728
+ {
3729
+ "name": "merkleRootLeafCounts";
3730
+ "type": {
3731
+ "vec": "u32";
3732
+ };
3733
+ },
3734
+ {
3735
+ "name": "merkleRootSums";
3736
+ "type": {
3737
+ "vec": "u64";
3738
+ };
3739
+ },
3740
+ {
3741
+ "name": "uri";
3742
+ "type": {
3743
+ "option": "string";
3744
+ };
3745
+ },
3746
+ {
3747
+ "name": "airdropType";
3748
+ "type": {
3749
+ "defined": {
3750
+ "name": "airdropType";
3751
+ };
3752
+ };
3753
+ },
3754
+ {
3755
+ "name": "createdAt";
3756
+ "type": "u64";
3757
+ }
3758
+ ];
3759
+ };
3760
+ },
3761
+ {
3762
+ "name": "merkleAirdropWithdrawnEvent";
3763
+ "type": {
3764
+ "kind": "struct";
3765
+ "fields": [
3766
+ {
3767
+ "name": "airdrop";
3768
+ "type": "pubkey";
3769
+ },
3770
+ {
3771
+ "name": "creator";
3772
+ "type": "pubkey";
3773
+ },
3774
+ {
3775
+ "name": "mint";
3776
+ "type": "pubkey";
3777
+ },
3778
+ {
3779
+ "name": "amount";
3780
+ "type": "u64";
3781
+ },
3782
+ {
3783
+ "name": "createdAt";
3784
+ "type": "u64";
3785
+ }
3786
+ ];
3787
+ };
3788
+ },
3789
+ {
3790
+ "name": "merkleProofAirdrop";
3791
+ "type": {
3792
+ "kind": "struct";
3793
+ "fields": [
3794
+ {
3795
+ "name": "base";
3796
+ "type": {
3797
+ "defined": {
3798
+ "name": "airdropBase";
3799
+ };
3800
+ };
3801
+ },
3802
+ {
3803
+ "name": "merkleRoots";
3804
+ "type": {
3805
+ "vec": {
3806
+ "defined": {
3807
+ "name": "merkleRootEntry";
3808
+ };
3809
+ };
3810
+ };
3811
+ },
3812
+ {
3813
+ "name": "merkleTreeUri";
3814
+ "type": {
3815
+ "option": "string";
3816
+ };
3817
+ }
3818
+ ];
3819
+ };
3820
+ },
3821
+ {
3822
+ "name": "merkleProofNode";
3823
+ "type": {
3824
+ "kind": "struct";
3825
+ "fields": [
3826
+ {
3827
+ "name": "siblingHash";
3828
+ "type": {
3829
+ "array": [
3830
+ "u8",
3831
+ 32
3832
+ ];
3833
+ };
3834
+ },
3835
+ {
3836
+ "name": "siblingSum";
3837
+ "type": "u64";
3838
+ },
3839
+ {
3840
+ "name": "isLeft";
3841
+ "type": "bool";
3842
+ }
3843
+ ];
3844
+ };
3845
+ },
3846
+ {
3847
+ "name": "merkleRootEntry";
3848
+ "type": {
3849
+ "kind": "struct";
3850
+ "fields": [
3851
+ {
3852
+ "name": "root";
3853
+ "type": {
3854
+ "array": [
3855
+ "u8",
3856
+ 32
3857
+ ];
3858
+ };
3859
+ },
3860
+ {
3861
+ "name": "leafCount";
3862
+ "type": "u32";
3863
+ },
3864
+ {
3865
+ "name": "rootSum";
3866
+ "type": "u64";
3867
+ }
3868
+ ];
3869
+ };
3870
+ },
3871
+ {
3872
+ "name": "merkleRootRegisteredEvent";
3873
+ "type": {
3874
+ "kind": "struct";
3875
+ "fields": [
3876
+ {
3877
+ "name": "airdrop";
3878
+ "type": "pubkey";
3879
+ },
3880
+ {
3881
+ "name": "creator";
3882
+ "type": "pubkey";
3883
+ },
3884
+ {
3885
+ "name": "mint";
3886
+ "type": "pubkey";
3887
+ },
3888
+ {
3889
+ "name": "totalAmount";
3890
+ "type": "u64";
3891
+ },
3892
+ {
3893
+ "name": "merkleRootHashes";
3894
+ "type": {
3895
+ "vec": "string";
3896
+ };
3897
+ },
3898
+ {
3899
+ "name": "merkleRootLeafCounts";
3900
+ "type": {
3901
+ "vec": "u32";
3902
+ };
3903
+ },
3904
+ {
3905
+ "name": "merkleRootSums";
3906
+ "type": {
3907
+ "vec": "u64";
3908
+ };
3909
+ },
3910
+ {
3911
+ "name": "uri";
3912
+ "type": {
3913
+ "option": "string";
3914
+ };
3915
+ },
3916
+ {
3917
+ "name": "createdAt";
3918
+ "type": "u64";
3919
+ }
3920
+ ];
3921
+ };
3922
+ },
3923
+ {
3924
+ "name": "onchainAirdropDepositedEvent";
3925
+ "type": {
3926
+ "kind": "struct";
3927
+ "fields": [
3928
+ {
3929
+ "name": "airdrop";
3930
+ "type": "pubkey";
3931
+ },
3932
+ {
3933
+ "name": "creator";
3934
+ "type": "pubkey";
3935
+ },
3936
+ {
3937
+ "name": "mint";
3938
+ "type": "pubkey";
3939
+ },
3940
+ {
3941
+ "name": "amount";
3942
+ "type": "u64";
3943
+ },
3944
+ {
3945
+ "name": "createdAt";
3946
+ "type": "u64";
3947
+ }
3948
+ ];
3949
+ };
3950
+ },
3951
+ {
3952
+ "name": "onchainAirdropStartedEvent";
3953
+ "type": {
3954
+ "kind": "struct";
3955
+ "fields": [
3956
+ {
3957
+ "name": "airdrop";
3958
+ "type": "pubkey";
3959
+ },
3960
+ {
3961
+ "name": "creator";
3962
+ "type": "pubkey";
3963
+ },
3964
+ {
3965
+ "name": "mint";
3966
+ "type": "pubkey";
3967
+ },
3968
+ {
3969
+ "name": "totalAmount";
3970
+ "type": "u64";
3971
+ },
3972
+ {
3973
+ "name": "startsAt";
3974
+ "type": {
3975
+ "option": "u64";
3976
+ };
3977
+ },
3978
+ {
3979
+ "name": "endsAt";
3980
+ "type": {
3981
+ "option": "u64";
3982
+ };
3983
+ },
3984
+ {
3985
+ "name": "createdAt";
3986
+ "type": "u64";
3987
+ }
3988
+ ];
3989
+ };
3990
+ },
3991
+ {
3992
+ "name": "onchainAirdropWithdrawnEvent";
3993
+ "type": {
3994
+ "kind": "struct";
3995
+ "fields": [
3996
+ {
3997
+ "name": "airdrop";
3998
+ "type": "pubkey";
3999
+ },
4000
+ {
4001
+ "name": "creator";
4002
+ "type": "pubkey";
4003
+ },
4004
+ {
4005
+ "name": "mint";
4006
+ "type": "pubkey";
4007
+ },
4008
+ {
4009
+ "name": "amount";
4010
+ "type": "u64";
4011
+ },
4012
+ {
4013
+ "name": "createdAt";
4014
+ "type": "u64";
4015
+ }
4016
+ ];
4017
+ };
4018
+ },
4019
+ {
4020
+ "name": "onchainListAirdrop";
4021
+ "type": {
4022
+ "kind": "struct";
4023
+ "fields": [
4024
+ {
4025
+ "name": "base";
4026
+ "type": {
4027
+ "defined": {
4028
+ "name": "airdropBase";
4029
+ };
4030
+ };
4031
+ },
4032
+ {
4033
+ "name": "listRoot";
4034
+ "type": "pubkey";
4035
+ },
4036
+ {
4037
+ "name": "listVersion";
4038
+ "type": "u8";
4039
+ },
4040
+ {
4041
+ "name": "totalRecipients";
4042
+ "type": "u32";
4043
+ }
4044
+ ];
4045
+ };
4046
+ },
4047
+ {
4048
+ "name": "onchainRecipientsAppendedEvent";
4049
+ "type": {
4050
+ "kind": "struct";
4051
+ "fields": [
4052
+ {
4053
+ "name": "airdrop";
4054
+ "type": "pubkey";
4055
+ },
4056
+ {
4057
+ "name": "listRoot";
4058
+ "type": "pubkey";
4059
+ },
4060
+ {
4061
+ "name": "addedCount";
4062
+ "type": "u16";
4063
+ },
4064
+ {
4065
+ "name": "totalCount";
4066
+ "type": "u32";
4067
+ },
4068
+ {
4069
+ "name": "totalAmount";
4070
+ "type": "u64";
4071
+ },
4072
+ {
4073
+ "name": "createdAt";
4074
+ "type": "u64";
4075
+ }
4076
+ ];
4077
+ };
4078
+ },
4079
+ {
4080
+ "name": "recipientInput";
4081
+ "type": {
4082
+ "kind": "struct";
4083
+ "fields": [
4084
+ {
4085
+ "name": "wallet";
4086
+ "type": "pubkey";
4087
+ },
4088
+ {
4089
+ "name": "amount";
4090
+ "type": "u64";
4091
+ }
4092
+ ];
4093
+ };
4094
+ },
4095
+ {
4096
+ "name": "registerMerkleRootParams";
4097
+ "type": {
4098
+ "kind": "struct";
4099
+ "fields": [
4100
+ {
4101
+ "name": "merkleRoots";
4102
+ "type": {
4103
+ "vec": {
4104
+ "defined": {
4105
+ "name": "merkleRootEntry";
4106
+ };
4107
+ };
4108
+ };
4109
+ },
4110
+ {
4111
+ "name": "uri";
4112
+ "type": {
4113
+ "option": "string";
4114
+ };
4115
+ }
4116
+ ];
4117
+ };
4118
+ },
4119
+ {
4120
+ "name": "startMerkleAirdropParams";
4121
+ "docs": [
4122
+ "Parameters for merkle airdrop start."
4123
+ ];
4124
+ "type": {
4125
+ "kind": "struct";
4126
+ "fields": [
4127
+ {
4128
+ "name": "startsAt";
4129
+ "type": {
4130
+ "option": "u64";
4131
+ };
4132
+ },
4133
+ {
4134
+ "name": "endsAt";
4135
+ "type": {
4136
+ "option": "u64";
4137
+ };
4138
+ }
4139
+ ];
4140
+ };
4141
+ },
4142
+ {
4143
+ "name": "startOnchainAirdropParams";
4144
+ "type": {
4145
+ "kind": "struct";
4146
+ "fields": [
4147
+ {
4148
+ "name": "startsAt";
4149
+ "type": {
4150
+ "option": "u64";
4151
+ };
4152
+ },
4153
+ {
4154
+ "name": "endsAt";
4155
+ "type": {
4156
+ "option": "u64";
4157
+ };
4158
+ }
4159
+ ];
4160
+ };
4161
+ },
4162
+ {
4163
+ "name": "updateConfigEvent";
4164
+ "type": {
4165
+ "kind": "struct";
4166
+ "fields": [
4167
+ {
4168
+ "name": "configAccount";
4169
+ "type": "string";
4170
+ },
4171
+ {
4172
+ "name": "updatedBy";
4173
+ "type": "string";
4174
+ },
4175
+ {
4176
+ "name": "createdAt";
4177
+ "type": "u64";
4178
+ }
4179
+ ];
4180
+ };
4181
+ },
4182
+ {
4183
+ "name": "updateProtocolConfigParams";
4184
+ "type": {
4185
+ "kind": "struct";
4186
+ "fields": [
4187
+ {
4188
+ "name": "action";
4189
+ "type": {
4190
+ "defined": {
4191
+ "name": "airdropAction";
4192
+ };
4193
+ };
4194
+ },
4195
+ {
4196
+ "name": "costLamports";
4197
+ "type": "u64";
4198
+ }
4199
+ ];
4200
+ };
4201
+ },
4202
+ {
4203
+ "name": "updateStudioConfigParams";
4204
+ "type": {
4205
+ "kind": "struct";
4206
+ "fields": [
4207
+ {
4208
+ "name": "newConfigAuthority";
4209
+ "type": "pubkey";
4210
+ },
4211
+ {
4212
+ "name": "claimCostLamports";
4213
+ "type": "u64";
4214
+ },
4215
+ {
4216
+ "name": "protocolVault";
4217
+ "type": "pubkey";
4218
+ }
4219
+ ];
4220
+ };
4221
+ }
4222
+ ];
4223
+ };
4224
+
4225
+ declare function createPdas(programId?: PublicKey): {
4226
+ protocolConfig: (action: number | BN) => PublicKey;
4227
+ studioConfig: () => PublicKey;
4228
+ draftRegistry: (creator: PublicKey) => PublicKey;
4229
+ airdrop: (creator: PublicKey, draftIndex: number | BN) => PublicKey;
4230
+ draftIndex: (creator: PublicKey, draftIndex: number | BN) => PublicKey;
4231
+ listRoot: (airdrop: PublicKey) => PublicKey;
4232
+ listChunk: (airdrop: PublicKey) => PublicKey;
4233
+ claimStatusFromLeaf: (airdrop: PublicKey, leaf: Uint8Array) => PublicKey;
4234
+ claimStatusFromIndex: (airdrop: PublicKey, entryIndex: number | BN) => PublicKey;
4235
+ eventAuthority: () => PublicKey;
4236
+ vaultAta: (airdrop: PublicKey, mint: PublicKey, tokenProgramId?: PublicKey, associatedTokenProgramId?: PublicKey) => PublicKey;
4237
+ };
4238
+ type AirdropStudioPdas = ReturnType<typeof createPdas>;
4239
+
4240
+ type AirdropStudioAccounts = IdlAccounts<AirdropStudioContract>;
4241
+ type AirdropStudioEvents = IdlEvents<AirdropStudioContract>;
4242
+ type AirdropStudioTypes = IdlTypes<AirdropStudioContract>;
4243
+ type AirdropAction = AirdropStudioTypes['airdropAction'];
4244
+ type AirdropBase = AirdropStudioTypes['airdropBase'];
4245
+ type AirdropProtocolConfig = AirdropStudioTypes['airdropProtocolConfig'];
4246
+ type AirdropStatus = AirdropStudioTypes['airdropStatus'];
4247
+ type AirdropType = AirdropStudioTypes['airdropType'];
4248
+ type ClaimStatus = AirdropStudioAccounts['claimStatus'];
4249
+ type DraftIndex = AirdropStudioTypes['draftIndex'];
4250
+ type DraftRegistry = AirdropStudioTypes['draftRegistry'];
4251
+ type ListRoot = AirdropStudioTypes['listRoot'];
4252
+ type MerkleProofAirdrop = AirdropStudioTypes['merkleProofAirdrop'];
4253
+ type OnchainListAirdrop = AirdropStudioTypes['onchainListAirdrop'];
4254
+ type MerkleProofNode = {
4255
+ siblingHash: Uint8Array;
4256
+ siblingSum: BN;
4257
+ isLeft: boolean;
4258
+ };
4259
+ type MerkleRootEntry = {
4260
+ root: Uint8Array;
4261
+ leafCount: number;
4262
+ rootSum: BN;
4263
+ };
4264
+ type AirdropCanceledEvent = AirdropStudioEvents['airdropCanceledEvent'];
4265
+ type AirdropDraftCreatedEvent = AirdropStudioEvents['airdropDraftCreatedEvent'];
4266
+ type ClaimTokenEvent = AirdropStudioEvents['claimTokenEvent'];
4267
+ type CreateConfigEvent = AirdropStudioEvents['createConfigEvent'];
4268
+ type MerkleAirdropDepositedEvent = AirdropStudioEvents['merkleAirdropDepositedEvent'];
4269
+ type MerkleAirdropStartedEvent = AirdropStudioEvents['merkleAirdropStartedEvent'];
4270
+ type OnchainAirdropDepositedEvent = AirdropStudioEvents['onchainAirdropDepositedEvent'];
4271
+ type OnchainAirdropStartedEvent = AirdropStudioEvents['onchainAirdropStartedEvent'];
4272
+ type OnchainRecipientsAppendedEvent = AirdropStudioEvents['onchainRecipientsAppendedEvent'];
4273
+ type UpdateConfigEvent = AirdropStudioEvents['updateConfigEvent'];
4274
+
4275
+ type RecipientInput = {
4276
+ wallet: PublicKey;
4277
+ amount: BN;
4278
+ };
4279
+ type AppendOnchainRecipientsParams = {
4280
+ recipients: RecipientInput[];
4281
+ };
4282
+ type ClaimMerkleParams = {
4283
+ rootIndex: number;
4284
+ leafIndex: number;
4285
+ amount: BN;
4286
+ leaf: Uint8Array;
4287
+ proof: MerkleProofNode[];
4288
+ };
4289
+ type ClaimOnchainParams = {
4290
+ entryIndex: number;
4291
+ amount: BN;
4292
+ };
4293
+ type CreateMerkleAirdropParams = {
4294
+ draftIndex: number;
4295
+ startsAt: BN | null;
4296
+ endsAt: BN | null;
4297
+ };
4298
+ type CreateOnchainAirdropParams = {
4299
+ draftIndex: number;
4300
+ startsAt: BN | null;
4301
+ endsAt: BN | null;
4302
+ };
4303
+ type RegisterMerkleRootParams = {
4304
+ merkleRoots: MerkleRootEntry[];
4305
+ uri: string | null;
4306
+ };
4307
+ type StartMerkleAirdropParams = {
4308
+ startsAt: BN | null;
4309
+ endsAt: BN | null;
4310
+ };
4311
+ type StartOnchainAirdropParams = {
4312
+ startsAt: BN | null;
4313
+ endsAt: BN | null;
4314
+ };
4315
+
4316
+ declare const AIRDROP_STUDIO_PROGRAM_ID: PublicKey;
4317
+ type AirdropStudioNetwork = 'devnet' | 'mainnet-beta' | 'mainnet';
4318
+ declare const NETWORK_ALT_ADDRESSES: Record<AirdropStudioNetwork, PublicKey>;
4319
+ type AirdropStudioAltAddresses = Partial<Record<AirdropStudioNetwork, PublicKey>>;
4320
+ declare enum AirdropStudioSeed {
4321
+ StudioConfig = "airdrop-studio-config",
4322
+ DraftRegistry = "draft-reg",
4323
+ Airdrop = "airdrop",
4324
+ DraftIndex = "draft-idx",
4325
+ ListRoot = "list-root",
4326
+ ListChunk = "list-chunk",
4327
+ ClaimStatus = "claim-status",
4328
+ EventAuthority = "__event_authority",
4329
+ ProtocolConfig = "cost-config"
4330
+ }
4331
+
4332
+ type AirdropStudioDeploymentConfig$1<TDeployment extends string> = {
4333
+ deployment: TDeployment;
4334
+ programId: PublicKey;
4335
+ idl: Idl;
4336
+ networkAltAddresses: AirdropStudioAltAddresses;
4337
+ };
4338
+
4339
+ declare const LIST_VERSION = 1;
4340
+ declare const RECIPIENT_LEN = 41;
4341
+ declare const MAX_RECIPIENTS = 10000;
4342
+ declare const MAX_LIST_BYTES: number;
4343
+ type ListChunkLocation = {
4344
+ chunkIndex: number;
4345
+ offset: number;
4346
+ };
4347
+ type OnchainRecipient = {
4348
+ wallet: PublicKey;
4349
+ amount: BN;
4350
+ claimed: boolean;
4351
+ };
4352
+ declare const getListChunkIndex: (entryIndex: number, chunkSize: number) => number;
4353
+ declare const getListChunkOffset: (entryIndex: number, chunkSize: number) => number;
4354
+ declare const getListChunkLocation: (entryIndex: number, chunkSize: number) => ListChunkLocation;
4355
+ declare const getListEntryIndex: (chunkIndex: number, offset: number, chunkSize: number) => number;
4356
+ declare const getListChunkRange: (chunkIndex: number, chunkSize: number) => {
4357
+ start: number;
4358
+ endExclusive: number;
4359
+ };
4360
+ declare const getRecipientRange: (entryIndex: number) => {
4361
+ start: number;
4362
+ endExclusive: number;
4363
+ };
4364
+ declare const parseRecipient: (data: Uint8Array, offset?: number) => OnchainRecipient;
4365
+ declare const parseRecipientAtIndex: (data: Uint8Array, entryIndex: number) => OnchainRecipient;
4366
+ declare const parseListChunk: (data: Uint8Array, totalCount?: number) => OnchainRecipient[];
4367
+
4368
+ type PriorityFeeConfig = {
4369
+ computeUnitLimit?: number;
4370
+ microLamports?: number;
4371
+ };
4372
+ declare const createPriorityFeeInstructions: (config?: PriorityFeeConfig) => TransactionInstruction[];
4373
+ declare const withPriorityFee: (instruction: TransactionInstruction | TransactionInstruction[], config?: PriorityFeeConfig) => TransactionInstruction[];
4374
+
4375
+ type AutoAccounts<T, K extends keyof T> = Partial<T> & Pick<T, K>;
4376
+ type AutoInstructionOptions = {
4377
+ priorityFee?: PriorityFeeConfig;
4378
+ };
4379
+ type AutoInstructionContext = {
4380
+ program: Program<AirdropStudioContract>;
4381
+ pdas: AirdropStudioPdas;
4382
+ fetchProtocolVault?: () => Promise<PublicKey>;
4383
+ };
4384
+
4385
+ type AppendOnchainRecipientsAutoAccounts = {
4386
+ creator: PublicKey;
4387
+ airdrop: PublicKey;
4388
+ };
4389
+ type AppendOnchainRecipientsArgs = {
4390
+ params: AppendOnchainRecipientsParams;
4391
+ accounts: AppendOnchainRecipientsAutoAccounts;
4392
+ options?: AutoInstructionOptions;
4393
+ };
4394
+ declare const appendOnchainRecipientsInstruction: ({ params, accounts, options }: AppendOnchainRecipientsArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4395
+
4396
+ type CancelMerkleAirdropAutoAccounts = {
4397
+ creator: PublicKey;
4398
+ airdrop: PublicKey;
4399
+ mint: PublicKey;
4400
+ tokenProgram: PublicKey;
4401
+ };
4402
+ type CancelMerkleAirdropArgs = {
4403
+ accounts: CancelMerkleAirdropAutoAccounts;
4404
+ options?: AutoInstructionOptions;
4405
+ };
4406
+ declare const cancelMerkleAirdropInstruction: ({ accounts, options }: CancelMerkleAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4407
+
4408
+ type CancelOnchainAirdropAutoAccounts = {
4409
+ creator: PublicKey;
4410
+ airdrop: PublicKey;
4411
+ mint: PublicKey;
4412
+ tokenProgram: PublicKey;
4413
+ };
4414
+ type CancelOnchainAirdropArgs = {
4415
+ accounts: CancelOnchainAirdropAutoAccounts;
4416
+ options?: AutoInstructionOptions;
4417
+ };
4418
+ declare const cancelOnchainAirdropInstruction: ({ accounts, options }: CancelOnchainAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4419
+
4420
+ type ClaimMerkleTokensAutoAccounts = {
4421
+ airdrop: PublicKey;
4422
+ claimer: PublicKey;
4423
+ mint: PublicKey;
4424
+ tokenProgram: PublicKey;
4425
+ };
4426
+ type ClaimMerkleTokensArgs = {
4427
+ params: ClaimMerkleParams;
4428
+ accounts: ClaimMerkleTokensAutoAccounts;
4429
+ options?: AutoInstructionOptions;
4430
+ };
4431
+ declare const claimMerkleTokensInstruction: ({ params, accounts, options }: ClaimMerkleTokensArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4432
+
4433
+ type ClaimOnchainTokensAutoAccounts = {
4434
+ airdrop: PublicKey;
4435
+ claimer: PublicKey;
4436
+ mint: PublicKey;
4437
+ tokenProgram: PublicKey;
4438
+ };
4439
+ type ClaimOnchainTokensArgs = {
4440
+ params: ClaimOnchainParams;
4441
+ accounts: ClaimOnchainTokensAutoAccounts;
4442
+ options?: AutoInstructionOptions;
4443
+ };
4444
+ declare const claimOnchainTokensInstruction: ({ params, accounts, options }: ClaimOnchainTokensArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4445
+
4446
+ type CreateMerkleAirdropAutoAccounts = {
4447
+ creator: PublicKey;
4448
+ mint: PublicKey;
4449
+ tokenProgram: PublicKey;
4450
+ };
4451
+ type CreateMerkleAirdropArgs = {
4452
+ params: CreateMerkleAirdropParams;
4453
+ accounts: CreateMerkleAirdropAutoAccounts;
4454
+ options?: AutoInstructionOptions;
4455
+ };
4456
+ declare const createMerkleAirdropInstruction: ({ params, accounts, options }: CreateMerkleAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4457
+
4458
+ type CreateOnchainAirdropAutoAccounts = {
4459
+ creator: PublicKey;
4460
+ mint: PublicKey;
4461
+ tokenProgram: PublicKey;
4462
+ };
4463
+ type CreateOnchainAirdropArgs = {
4464
+ params: CreateOnchainAirdropParams;
4465
+ accounts: CreateOnchainAirdropAutoAccounts;
4466
+ options?: AutoInstructionOptions;
4467
+ };
4468
+ declare const createOnchainAirdropInstruction: ({ params, accounts, options }: CreateOnchainAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4469
+
4470
+ type DepositMerkleAirdropAutoAccounts = {
4471
+ creator: PublicKey;
4472
+ airdrop: PublicKey;
4473
+ mint: PublicKey;
4474
+ payerTokenAccount: PublicKey;
4475
+ tokenProgram: PublicKey;
4476
+ };
4477
+ type DepositMerkleAirdropArgs = {
4478
+ accounts: DepositMerkleAirdropAutoAccounts;
4479
+ options?: AutoInstructionOptions;
4480
+ };
4481
+ declare const depositMerkleAirdropInstruction: ({ accounts, options }: DepositMerkleAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4482
+
4483
+ type DepositOnchainAirdropAutoAccounts = {
4484
+ creator: PublicKey;
4485
+ airdrop: PublicKey;
4486
+ mint: PublicKey;
4487
+ payerTokenAccount: PublicKey;
4488
+ tokenProgram: PublicKey;
4489
+ };
4490
+ type DepositOnchainAirdropArgs = {
4491
+ accounts: DepositOnchainAirdropAutoAccounts;
4492
+ options?: AutoInstructionOptions;
4493
+ };
4494
+ declare const depositOnchainAirdropInstruction: ({ accounts, options }: DepositOnchainAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4495
+
4496
+ type RegisterMerkleRootAutoAccounts = {
4497
+ airdrop: PublicKey;
4498
+ mint: PublicKey;
4499
+ creator: PublicKey;
4500
+ };
4501
+ type RegisterMerkleRootArgs = {
4502
+ params: RegisterMerkleRootParams;
4503
+ accounts: RegisterMerkleRootAutoAccounts;
4504
+ options?: AutoInstructionOptions;
4505
+ };
4506
+ declare const registerMerkleRootInstruction: ({ params, accounts, options }: RegisterMerkleRootArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4507
+
4508
+ type StartMerkleAirdropAutoAccounts = {
4509
+ airdrop: PublicKey;
4510
+ creator: PublicKey;
4511
+ };
4512
+ type StartMerkleAirdropArgs = {
4513
+ params: StartMerkleAirdropParams;
4514
+ accounts: StartMerkleAirdropAutoAccounts;
4515
+ options?: AutoInstructionOptions;
4516
+ };
4517
+ declare const startMerkleAirdropInstruction: ({ params, accounts, options }: StartMerkleAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4518
+
4519
+ type StartOnchainAirdropAutoAccounts = {
4520
+ creator: PublicKey;
4521
+ airdrop: PublicKey;
4522
+ };
4523
+ type StartOnchainAirdropArgs = {
4524
+ params: StartOnchainAirdropParams;
4525
+ accounts: StartOnchainAirdropAutoAccounts;
4526
+ options?: AutoInstructionOptions;
4527
+ };
4528
+ declare const startOnchainAirdropInstruction: ({ params, accounts, options }: StartOnchainAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4529
+
4530
+ type WithdrawMerkleAirdropAutoAccounts = {
4531
+ creator: PublicKey;
4532
+ airdrop: PublicKey;
4533
+ mint: PublicKey;
4534
+ tokenProgram: PublicKey;
4535
+ };
4536
+ type WithdrawMerkleAirdropArgs = {
4537
+ accounts: WithdrawMerkleAirdropAutoAccounts;
4538
+ options?: AutoInstructionOptions;
4539
+ };
4540
+ declare const withdrawMerkleAirdropInstruction: ({ accounts, options }: WithdrawMerkleAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4541
+
4542
+ type WithdrawOnchainAirdropAutoAccounts = {
4543
+ creator: PublicKey;
4544
+ airdrop: PublicKey;
4545
+ mint: PublicKey;
4546
+ tokenProgram: PublicKey;
4547
+ };
4548
+ type WithdrawOnchainAirdropArgs = {
4549
+ accounts: WithdrawOnchainAirdropAutoAccounts;
4550
+ options?: AutoInstructionOptions;
4551
+ };
4552
+ declare const withdrawOnchainAirdropInstruction: ({ accounts, options }: WithdrawOnchainAirdropArgs, ctx: AutoInstructionContext) => Promise<_solana_web3_js.TransactionInstruction[]>;
4553
+
4554
+ type AirdropStudioProgram = Program<AirdropStudioContract>;
4555
+ type AirdropStudioClientConfig<TDeployment extends string> = {
4556
+ connection: Connection;
4557
+ network: AirdropStudioNetwork;
4558
+ deployment?: TDeployment;
4559
+ defaultCommitment?: Commitment;
4560
+ lookupTableAddress?: PublicKey;
4561
+ };
4562
+ type LookupTableUsage = 'use' | 'none';
4563
+ type TransactionBuildOptions = {
4564
+ payer: PublicKey;
4565
+ commitment?: Commitment;
4566
+ signers?: Signer[];
4567
+ useLookupTable?: LookupTableUsage;
4568
+ };
4569
+ type ListOnchainRecipientsArgs = {
4570
+ airdrop: PublicKey;
4571
+ offset?: number;
4572
+ limit?: number;
4573
+ commitment?: Commitment;
4574
+ };
4575
+ type FetchClaimStatusFromLeafArgs = {
4576
+ airdrop: PublicKey;
4577
+ leaf: Uint8Array;
4578
+ commitment?: Commitment;
4579
+ };
4580
+ type FetchClaimStatusFromIndexArgs = {
4581
+ airdrop: PublicKey;
4582
+ entryIndex: number;
4583
+ commitment?: Commitment;
4584
+ };
4585
+ declare class AirdropStudioClientBase<TDeployment extends string> {
4586
+ readonly program: AirdropStudioProgram;
4587
+ readonly pdas: AirdropStudioPdas;
4588
+ readonly connection: Connection;
4589
+ readonly deployment: TDeployment;
4590
+ readonly network: Exclude<AirdropStudioNetwork, 'mainnet'>;
4591
+ lookupTableAddress: PublicKey | null;
4592
+ readonly defaultCommitment: Commitment;
4593
+ private lookupTableAccount;
4594
+ protected constructor(config: AirdropStudioClientConfig<TDeployment>, program: AirdropStudioProgram, deploymentConfig: AirdropStudioDeploymentConfig$1<TDeployment>);
4595
+ static createProgram(connection: Connection, deploymentConfig: AirdropStudioDeploymentConfig$1<string>): Program<AirdropStudioContract>;
4596
+ static assertProgramIdMatchesDeployment(program: AirdropStudioProgram, deploymentConfig: AirdropStudioDeploymentConfig$1<string>): void;
4597
+ fetchStudioConfig(commitment?: Commitment): Promise<AirdropStudioAccounts['airdropStudioConfig']>;
4598
+ fetchProtocolVault(commitment?: Commitment): Promise<PublicKey>;
4599
+ appendOnchainRecipients(args: AppendOnchainRecipientsArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4600
+ listOnchainRecipients({ airdrop, offset, limit, commitment, }: ListOnchainRecipientsArgs): Promise<OnchainRecipient[]>;
4601
+ fetchClaimStatusFromLeaf({ airdrop, leaf, commitment, }: FetchClaimStatusFromLeafArgs): Promise<AirdropStudioAccounts['claimStatus'] | null>;
4602
+ fetchClaimStatusFromIndex({ airdrop, entryIndex, commitment, }: FetchClaimStatusFromIndexArgs): Promise<AirdropStudioAccounts['claimStatus'] | null>;
4603
+ cancelMerkleAirdrop(args: CancelMerkleAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4604
+ cancelOnchainAirdrop(args: CancelOnchainAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4605
+ claimMerkleTokens(args: ClaimMerkleTokensArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4606
+ claimOnchainTokens(args: ClaimOnchainTokensArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4607
+ createMerkleAirdrop(args: CreateMerkleAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4608
+ createOnchainAirdrop(args: CreateOnchainAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4609
+ depositMerkleAirdrop(args: DepositMerkleAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4610
+ depositOnchainAirdrop(args: DepositOnchainAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4611
+ registerMerkleRoot(args: RegisterMerkleRootArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4612
+ startMerkleAirdrop(args: StartMerkleAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4613
+ startOnchainAirdrop(args: StartOnchainAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4614
+ withdrawMerkleAirdrop(args: WithdrawMerkleAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4615
+ withdrawOnchainAirdrop(args: WithdrawOnchainAirdropArgs & TransactionBuildOptions): Promise<VersionedTransaction>;
4616
+ private resolveCommitment;
4617
+ private static normalizeNetwork;
4618
+ private static isLocalRpcEndpoint;
4619
+ private autoInstructionContext;
4620
+ private buildVersionedTransaction;
4621
+ private resolveLookupTableAccounts;
4622
+ private fetchLookupTableAccount;
4623
+ }
4624
+
4625
+ type AirdropStudioDeployment = 'production';
4626
+ type AirdropStudioDeploymentConfig = AirdropStudioDeploymentConfig$1<AirdropStudioDeployment>;
4627
+ declare const DEFAULT_AIRDROP_STUDIO_DEPLOYMENT: AirdropStudioDeployment;
4628
+ declare const AIRDROP_STUDIO_DEPLOYMENTS: Record<AirdropStudioDeployment, AirdropStudioDeploymentConfig>;
4629
+ declare const getAirdropStudioDeployment: (deployment?: AirdropStudioDeployment) => AirdropStudioDeploymentConfig;
4630
+
4631
+ type AirdropStudioConfig = Omit<AirdropStudioClientConfig<AirdropStudioDeployment>, 'deployment'> & {
4632
+ deployment?: AirdropStudioDeployment;
4633
+ };
4634
+
4635
+ declare class AirdropStudioClient extends AirdropStudioClientBase<AirdropStudioDeployment> {
4636
+ private constructor();
4637
+ static init(config: AirdropStudioConfig): Promise<AirdropStudioClient>;
4638
+ }
4639
+
4640
+ type AirdropStudioErrorDefinition = {
4641
+ code: number;
4642
+ name: string;
4643
+ msg: string;
4644
+ };
4645
+ declare const AIRDROP_STUDIO_ERROR_LIST: AirdropStudioErrorDefinition[];
4646
+ declare const AIRDROP_STUDIO_ERROR_BY_CODE: Record<number, AirdropStudioErrorDefinition>;
4647
+ declare const AIRDROP_STUDIO_ERROR_BY_NAME: Record<string, AirdropStudioErrorDefinition>;
4648
+ declare const getAirdropStudioErrorByCode: (code: number) => AirdropStudioErrorDefinition;
4649
+ declare const getAirdropStudioErrorByName: (name: string) => AirdropStudioErrorDefinition;
4650
+ declare const getAirdropStudioErrorMessage: (code: number) => string;
4651
+ type NormalizedProgramError = {
4652
+ source: 'anchor';
4653
+ anchorError: AnchorError;
4654
+ logs?: string[];
4655
+ originalError: unknown;
4656
+ definition?: AirdropStudioErrorDefinition;
4657
+ } | {
4658
+ source: 'generic';
4659
+ error: Error;
4660
+ logs?: string[];
4661
+ originalError: unknown;
4662
+ definition?: AirdropStudioErrorDefinition;
4663
+ };
4664
+ declare function normalizeProgramError(error: unknown): NormalizedProgramError;
4665
+ declare function isSimulatedTransactionErrorResponse(error: unknown): error is SimulatedTransactionResponse;
4666
+
4667
+ declare const MAX_MERKLE_URI_LENGTH = 256;
4668
+ declare const MAX_MERKLE_ROOTS = 4;
4669
+ declare const MAX_MERKLE_PROOF_LEN = 18;
4670
+ declare const MAX_MERKLE_LEAVES_PER_ROOT: number;
4671
+ type MerkleRecipientInput = {
4672
+ wallet: PublicKey;
4673
+ amount: BN;
4674
+ };
4675
+ type AirdropMerkleLeafInput = {
4676
+ wallet: PublicKey;
4677
+ airdrop: PublicKey;
4678
+ rootIndex: number;
4679
+ leafIndex: number;
4680
+ amount: BN;
4681
+ };
4682
+ type MerkleNode = {
4683
+ hash: Uint8Array;
4684
+ sum: BN;
4685
+ };
4686
+ type MerkleLeafNode = MerkleNode & {
4687
+ leaf: AirdropMerkleLeafInput;
4688
+ };
4689
+ type MerkleTree = {
4690
+ leaves: MerkleLeafNode[];
4691
+ layers: MerkleNode[][];
4692
+ root: MerkleNode;
4693
+ rootIndex: number;
4694
+ airdrop: PublicKey;
4695
+ };
4696
+ type MerkleHasher = (data: Uint8Array) => Uint8Array;
4697
+ type MerkleLeafHasher = (leaf: AirdropMerkleLeafInput) => Uint8Array;
4698
+ type MerkleNodeHasher = (left: MerkleNode, right: MerkleNode) => Uint8Array;
4699
+ type MerkleTreeOptions = {
4700
+ hash?: MerkleHasher;
4701
+ hashLeaf?: MerkleLeafHasher;
4702
+ hashNode?: MerkleNodeHasher;
4703
+ };
4704
+ type MerkleRootBuildOptions = {
4705
+ airdrop: PublicKey;
4706
+ maxRoots?: number;
4707
+ maxLeavesPerRoot?: number;
4708
+ treeOptions?: MerkleTreeOptions;
4709
+ };
4710
+ type MerkleRootBuildResult = {
4711
+ rootEntries: {
4712
+ root: Uint8Array;
4713
+ leafCount: number;
4714
+ rootSum: BN;
4715
+ }[];
4716
+ trees: MerkleTree[];
4717
+ };
4718
+ type MerklePayloadProofNode = {
4719
+ siblingHash: string;
4720
+ siblingSum: string;
4721
+ isLeft: boolean;
4722
+ };
4723
+ type MerklePayloadLeaf = {
4724
+ wallet: string;
4725
+ airdrop: string;
4726
+ rootIndex: number;
4727
+ leafIndex: number;
4728
+ amount: string;
4729
+ hash: string;
4730
+ proof: MerklePayloadProofNode[];
4731
+ };
4732
+ type MerklePayload = {
4733
+ root: {
4734
+ airdrop: string;
4735
+ hash: string;
4736
+ sum: string;
4737
+ };
4738
+ leaves: MerklePayloadLeaf[];
4739
+ };
4740
+ type MerkleRootPayload = {
4741
+ rootIndex: number;
4742
+ payload: MerklePayload;
4743
+ };
4744
+ type MerklePayloadBundle = {
4745
+ airdrop: string;
4746
+ maxLeavesPerRoot: number;
4747
+ roots: MerkleRootPayload[];
4748
+ };
4749
+ type SerializedMerkleNode = {
4750
+ hash: string;
4751
+ sum: string;
4752
+ };
4753
+ type SerializedMerkleLeaf = {
4754
+ wallet: string;
4755
+ airdrop: string;
4756
+ rootIndex: number;
4757
+ leafIndex: number;
4758
+ amount: string;
4759
+ hash: string;
4760
+ };
4761
+ type SerializedMerkleTree = {
4762
+ airdrop: string;
4763
+ rootIndex: number;
4764
+ leafCount: number;
4765
+ root: SerializedMerkleNode;
4766
+ leaves: SerializedMerkleLeaf[];
4767
+ layers: SerializedMerkleNode[][];
4768
+ };
4769
+ type SerializedMerkleRootEntry = {
4770
+ root: string;
4771
+ leafCount: number;
4772
+ rootSum: string;
4773
+ };
4774
+ type SerializedMerkleRoots = {
4775
+ rootEntries: SerializedMerkleRootEntry[];
4776
+ trees: SerializedMerkleTree[];
4777
+ };
4778
+ declare const serializeMerkleLeaf: (leaf: AirdropMerkleLeafInput) => Buffer<ArrayBuffer>;
4779
+ declare const createMerkleLeafHash: (leaf: AirdropMerkleLeafInput, hashFn?: MerkleHasher) => Uint8Array<ArrayBufferLike>;
4780
+ declare const buildMerkleTree: (recipients: MerkleRecipientInput[], options: MerkleTreeOptions & {
4781
+ airdrop: PublicKey;
4782
+ rootIndex?: number;
4783
+ }) => MerkleTree;
4784
+ declare const serializeMerkleTree: (tree: MerkleTree) => SerializedMerkleTree;
4785
+ declare const serializeMerkleRoots: (result: MerkleRootBuildResult) => SerializedMerkleRoots;
4786
+ declare const createMerklePayload: (leaves: AirdropMerkleLeafInput[], options?: MerkleTreeOptions) => MerklePayload;
4787
+ declare const createMerklePayloadBundle: (recipients: MerkleRecipientInput[], options: MerkleRootBuildOptions) => MerklePayloadBundle;
4788
+ declare const buildMerkleRoots: (recipients: MerkleRecipientInput[], options: MerkleRootBuildOptions) => MerkleRootBuildResult;
4789
+ declare const getMerkleProof: (tree: MerkleTree, leafIndex: number) => MerkleProofNode[];
4790
+ declare const getMerkleProofFromSerializedTree: (tree: SerializedMerkleTree, leafIndex: number) => MerkleProofNode[];
4791
+ declare const verifyMerkleProof: (leaf: MerkleNode, proof: MerkleProofNode[], root: MerkleNode, options?: MerkleTreeOptions) => any;
4792
+ declare const createClaimMerkleParams: (tree: MerkleTree, leafIndex: number) => ClaimMerkleParams;
4793
+ declare const createClaimMerkleParamsFromSerializedTree: (tree: SerializedMerkleTree, leafIndex: number) => ClaimMerkleParams;
4794
+
4795
+ declare const DEFAULT_BLOCKED_MINTS: readonly [PublicKey, PublicKey, PublicKey];
4796
+ declare const MintValidationIssueCode: {
4797
+ readonly MintAccountNotFound: "mint-account-not-found";
4798
+ readonly MintAccountFetchFailed: "mint-account-fetch-failed";
4799
+ readonly InvalidTokenProgram: "invalid-token-program";
4800
+ readonly MintOwnerProgramMismatch: "mint-owner-program-mismatch";
4801
+ readonly MintUnpackFailed: "mint-unpack-failed";
4802
+ readonly UnsupportedMint: "unsupported-mint";
4803
+ readonly MintNotInitialized: "mint-not-initialized";
4804
+ readonly MintSupplyZero: "mint-supply-zero";
4805
+ readonly MintFreezeAuthorityNotAllowed: "mint-freeze-authority-not-allowed";
4806
+ readonly Token2022ExtensionParseFailed: "token-2022-extension-parse-failed";
4807
+ readonly UnsupportedToken2022MintExtension: "unsupported-token-2022-mint-extension";
4808
+ readonly Token2022DefaultAccountStateNotInitialized: "token-2022-default-account-state-not-initialized";
4809
+ };
4810
+ type MintValidationIssueCode = (typeof MintValidationIssueCode)[keyof typeof MintValidationIssueCode];
4811
+ type MintValidationIssue = {
4812
+ code: MintValidationIssueCode;
4813
+ message: string;
4814
+ extensionType?: ExtensionType;
4815
+ extensionName?: string;
4816
+ };
4817
+ type MintValidationStatus = 'valid' | 'invalid';
4818
+ type MintValidationMintState = {
4819
+ address: PublicKey;
4820
+ supply: bigint;
4821
+ freezeAuthority: PublicKey | null;
4822
+ isInitialized?: boolean;
4823
+ tlvData?: Buffer | Uint8Array;
4824
+ };
4825
+ type MintValidationByAddressInput = {
4826
+ connection: Connection;
4827
+ mintAddress: PublicKey;
4828
+ tokenProgramId?: PublicKey;
4829
+ commitment?: Commitment;
4830
+ blockedMints?: readonly PublicKey[];
4831
+ };
4832
+ type MintValidationByStateInput = {
4833
+ mintState: MintValidationMintState;
4834
+ tokenProgramId: PublicKey;
4835
+ mintOwnerProgramId?: PublicKey;
4836
+ blockedMints?: readonly PublicKey[];
4837
+ };
4838
+ type ValidateMintForAirdropInput = MintValidationByAddressInput | MintValidationByStateInput;
4839
+ type MintValidationResult = {
4840
+ status: MintValidationStatus;
4841
+ isValid: boolean;
4842
+ mintAddress: PublicKey | null;
4843
+ tokenProgramId: PublicKey | null;
4844
+ mintOwnerProgramId: PublicKey | null;
4845
+ extensionTypes: ExtensionType[];
4846
+ issues: MintValidationIssue[];
4847
+ };
4848
+ declare const validateMintForAirdrop: (input: ValidateMintForAirdropInput) => Promise<MintValidationResult>;
4849
+
4850
+ export { AIRDROP_STUDIO_DEPLOYMENTS, AIRDROP_STUDIO_ERROR_BY_CODE, AIRDROP_STUDIO_ERROR_BY_NAME, AIRDROP_STUDIO_ERROR_LIST, AIRDROP_STUDIO_PROGRAM_ID, type AirdropAction, type AirdropBase, type AirdropCanceledEvent, type AirdropDraftCreatedEvent, type AirdropMerkleLeafInput, type AirdropProtocolConfig, type AirdropStatus, type AirdropStudioAccounts, type AirdropStudioAltAddresses, AirdropStudioClient, type AirdropStudioConfig, type AirdropStudioContract, type AirdropStudioDeployment, type AirdropStudioDeploymentConfig, type AirdropStudioEvents, type AirdropStudioNetwork, type AirdropStudioPdas, type AirdropStudioProgram, AirdropStudioSeed, type AirdropStudioTypes, type AirdropType, type AppendOnchainRecipientsArgs, type AppendOnchainRecipientsAutoAccounts, type AppendOnchainRecipientsParams, type AutoAccounts, type AutoInstructionContext, type AutoInstructionOptions, type CancelMerkleAirdropArgs, type CancelMerkleAirdropAutoAccounts, type CancelOnchainAirdropArgs, type CancelOnchainAirdropAutoAccounts, type ClaimMerkleParams, type ClaimMerkleTokensArgs, type ClaimMerkleTokensAutoAccounts, type ClaimOnchainParams, type ClaimOnchainTokensArgs, type ClaimOnchainTokensAutoAccounts, type ClaimStatus, type ClaimTokenEvent, type CreateConfigEvent, type CreateMerkleAirdropArgs, type CreateMerkleAirdropAutoAccounts, type CreateMerkleAirdropParams, type CreateOnchainAirdropArgs, type CreateOnchainAirdropAutoAccounts, type CreateOnchainAirdropParams, DEFAULT_AIRDROP_STUDIO_DEPLOYMENT, DEFAULT_BLOCKED_MINTS, type DepositMerkleAirdropArgs, type DepositMerkleAirdropAutoAccounts, type DepositOnchainAirdropArgs, type DepositOnchainAirdropAutoAccounts, type DraftIndex, type DraftRegistry, type FetchClaimStatusFromIndexArgs, type FetchClaimStatusFromLeafArgs, LIST_VERSION, type ListChunkLocation, type ListOnchainRecipientsArgs, type ListRoot, type LookupTableUsage, MAX_LIST_BYTES, MAX_MERKLE_LEAVES_PER_ROOT, MAX_MERKLE_PROOF_LEN, MAX_MERKLE_ROOTS, MAX_MERKLE_URI_LENGTH, MAX_RECIPIENTS, type MerkleAirdropDepositedEvent, type MerkleAirdropStartedEvent, type MerkleHasher, type MerkleLeafHasher, type MerkleLeafNode, type MerkleNode, type MerkleNodeHasher, type MerklePayload, type MerklePayloadBundle, type MerklePayloadLeaf, type MerklePayloadProofNode, type MerkleProofAirdrop, type MerkleProofNode, type MerkleRecipientInput, type MerkleRootBuildOptions, type MerkleRootBuildResult, type MerkleRootEntry, type MerkleRootPayload, type MerkleTree, type MerkleTreeOptions, type MintValidationByAddressInput, type MintValidationByStateInput, type MintValidationIssue, MintValidationIssueCode, type MintValidationMintState, type MintValidationResult, type MintValidationStatus, NETWORK_ALT_ADDRESSES, type NormalizedProgramError, type OnchainAirdropDepositedEvent, type OnchainAirdropStartedEvent, type OnchainListAirdrop, type OnchainRecipient, type OnchainRecipientsAppendedEvent, type PriorityFeeConfig, RECIPIENT_LEN, type RecipientInput, type RegisterMerkleRootArgs, type RegisterMerkleRootAutoAccounts, type RegisterMerkleRootParams, type SerializedMerkleLeaf, type SerializedMerkleNode, type SerializedMerkleRootEntry, type SerializedMerkleRoots, type SerializedMerkleTree, type StartMerkleAirdropArgs, type StartMerkleAirdropAutoAccounts, type StartMerkleAirdropParams, type StartOnchainAirdropArgs, type StartOnchainAirdropAutoAccounts, type StartOnchainAirdropParams, type UpdateConfigEvent, type ValidateMintForAirdropInput, type WithdrawMerkleAirdropArgs, type WithdrawMerkleAirdropAutoAccounts, type WithdrawOnchainAirdropArgs, type WithdrawOnchainAirdropAutoAccounts, appendOnchainRecipientsInstruction, buildMerkleRoots, buildMerkleTree, cancelMerkleAirdropInstruction, cancelOnchainAirdropInstruction, claimMerkleTokensInstruction, claimOnchainTokensInstruction, createClaimMerkleParams, createClaimMerkleParamsFromSerializedTree, createMerkleAirdropInstruction, createMerkleLeafHash, createMerklePayload, createMerklePayloadBundle, createOnchainAirdropInstruction, createPdas, createPriorityFeeInstructions, depositMerkleAirdropInstruction, depositOnchainAirdropInstruction, getAirdropStudioDeployment, getAirdropStudioErrorByCode, getAirdropStudioErrorByName, getAirdropStudioErrorMessage, getListChunkIndex, getListChunkLocation, getListChunkOffset, getListChunkRange, getListEntryIndex, getMerkleProof, getMerkleProofFromSerializedTree, getRecipientRange, isSimulatedTransactionErrorResponse, normalizeProgramError, parseListChunk, parseRecipient, parseRecipientAtIndex, registerMerkleRootInstruction, serializeMerkleLeaf, serializeMerkleRoots, serializeMerkleTree, startMerkleAirdropInstruction, startOnchainAirdropInstruction, validateMintForAirdrop, verifyMerkleProof, withPriorityFee, withdrawMerkleAirdropInstruction, withdrawOnchainAirdropInstruction };