@sign-global/tokentable 0.4.3-beta.4 → 0.4.3-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/dist/cjs/airdrop/contracts/solana/eddsa_token_distributor_solana.d.ts +1627 -0
  2. package/dist/cjs/airdrop/contracts/solana/eddsa_token_distributor_solana.js +3 -0
  3. package/dist/cjs/airdrop/contracts/solana/eddsa_token_distributor_solana.js.map +1 -0
  4. package/dist/cjs/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.d.ts +0 -37
  5. package/dist/cjs/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.json +0 -37
  6. package/dist/cjs/airdrop/contracts/solana/merkle_token_distributor_solana.d.ts +0 -37
  7. package/dist/cjs/airdrop/contracts/solana/merkle_token_distributor_solana.json +0 -37
  8. package/dist/cjs/airdrop/strategies/SolanaAirdropStrategy.d.ts +1 -0
  9. package/dist/cjs/airdrop/strategies/SolanaAirdropStrategy.js +5 -0
  10. package/dist/cjs/airdrop/strategies/SolanaAirdropStrategy.js.map +1 -1
  11. package/dist/esm/airdrop/contracts/solana/eddsa_token_distributor_solana.d.ts +1627 -0
  12. package/dist/esm/airdrop/contracts/solana/eddsa_token_distributor_solana.js +2 -0
  13. package/dist/esm/airdrop/contracts/solana/eddsa_token_distributor_solana.js.map +1 -0
  14. package/dist/esm/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.d.ts +0 -37
  15. package/dist/esm/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.json +0 -37
  16. package/dist/esm/airdrop/contracts/solana/merkle_token_distributor_solana.d.ts +0 -37
  17. package/dist/esm/airdrop/contracts/solana/merkle_token_distributor_solana.json +0 -37
  18. package/dist/esm/airdrop/strategies/SolanaAirdropStrategy.d.ts +1 -0
  19. package/dist/esm/airdrop/strategies/SolanaAirdropStrategy.js +5 -0
  20. package/dist/esm/airdrop/strategies/SolanaAirdropStrategy.js.map +1 -1
  21. package/package.json +1 -1
@@ -0,0 +1,1627 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/eddsa_token_distributor_solana.json`.
6
+ */
7
+ export type EddsaTokenDistributorSolana = {
8
+ "address": "FdyAcgiGNDbWN8jtKVWg8XjpTaJs4JbCTctjyqergWQP";
9
+ "metadata": {
10
+ "name": "eddsaTokenDistributorSolana";
11
+ "version": "0.1.0";
12
+ "spec": "0.1.0";
13
+ "description": "Created with Anchor";
14
+ };
15
+ "instructions": [
16
+ {
17
+ "name": "claim";
18
+ "discriminator": [
19
+ 62,
20
+ 198,
21
+ 214,
22
+ 193,
23
+ 213,
24
+ 159,
25
+ 108,
26
+ 210
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "authority";
31
+ "writable": true;
32
+ "signer": true;
33
+ },
34
+ {
35
+ "name": "airdrop";
36
+ "pda": {
37
+ "seeds": [
38
+ {
39
+ "kind": "const";
40
+ "value": [
41
+ 97,
42
+ 105,
43
+ 114,
44
+ 100,
45
+ 114,
46
+ 111,
47
+ 112
48
+ ];
49
+ },
50
+ {
51
+ "kind": "arg";
52
+ "path": "projectId";
53
+ }
54
+ ];
55
+ };
56
+ },
57
+ {
58
+ "name": "vault";
59
+ "writable": true;
60
+ "pda": {
61
+ "seeds": [
62
+ {
63
+ "kind": "const";
64
+ "value": [
65
+ 118,
66
+ 97,
67
+ 117,
68
+ 108,
69
+ 116
70
+ ];
71
+ },
72
+ {
73
+ "kind": "account";
74
+ "path": "airdrop";
75
+ }
76
+ ];
77
+ };
78
+ },
79
+ {
80
+ "name": "recipient";
81
+ },
82
+ {
83
+ "name": "recipientAta";
84
+ "writable": true;
85
+ "pda": {
86
+ "seeds": [
87
+ {
88
+ "kind": "account";
89
+ "path": "recipient";
90
+ },
91
+ {
92
+ "kind": "account";
93
+ "path": "tokenProgram";
94
+ },
95
+ {
96
+ "kind": "account";
97
+ "path": "tokenMint";
98
+ }
99
+ ];
100
+ "program": {
101
+ "kind": "const";
102
+ "value": [
103
+ 140,
104
+ 151,
105
+ 37,
106
+ 143,
107
+ 78,
108
+ 36,
109
+ 137,
110
+ 241,
111
+ 187,
112
+ 61,
113
+ 16,
114
+ 41,
115
+ 20,
116
+ 142,
117
+ 13,
118
+ 131,
119
+ 11,
120
+ 90,
121
+ 19,
122
+ 153,
123
+ 218,
124
+ 255,
125
+ 16,
126
+ 132,
127
+ 4,
128
+ 142,
129
+ 123,
130
+ 216,
131
+ 219,
132
+ 233,
133
+ 248,
134
+ 89
135
+ ];
136
+ };
137
+ };
138
+ },
139
+ {
140
+ "name": "authorityFeeAta";
141
+ "writable": true;
142
+ "optional": true;
143
+ },
144
+ {
145
+ "name": "claim";
146
+ "writable": true;
147
+ "pda": {
148
+ "seeds": [
149
+ {
150
+ "kind": "const";
151
+ "value": [
152
+ 99,
153
+ 108,
154
+ 97,
155
+ 105,
156
+ 109
157
+ ];
158
+ },
159
+ {
160
+ "kind": "account";
161
+ "path": "airdrop";
162
+ },
163
+ {
164
+ "kind": "arg";
165
+ "path": "claimId";
166
+ }
167
+ ];
168
+ };
169
+ },
170
+ {
171
+ "name": "tokenMint";
172
+ },
173
+ {
174
+ "name": "feeCollectorStorage";
175
+ "writable": true;
176
+ "optional": true;
177
+ },
178
+ {
179
+ "name": "feeCollectorVault";
180
+ "writable": true;
181
+ "optional": true;
182
+ },
183
+ {
184
+ "name": "feeCollector";
185
+ },
186
+ {
187
+ "name": "feeTokenMint";
188
+ "writable": true;
189
+ "optional": true;
190
+ },
191
+ {
192
+ "name": "fee";
193
+ "writable": true;
194
+ },
195
+ {
196
+ "name": "systemProgram";
197
+ "address": "11111111111111111111111111111111";
198
+ },
199
+ {
200
+ "name": "tokenProgram";
201
+ },
202
+ {
203
+ "name": "feeTokenProgram";
204
+ "optional": true;
205
+ },
206
+ {
207
+ "name": "associatedTokenProgram";
208
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
209
+ },
210
+ {
211
+ "name": "ixSysvar";
212
+ "docs": [
213
+ "the supplied Sysvar could be anything else.",
214
+ "The Instruction Sysvar has not been implemented",
215
+ "in the Anchor framework yet, so this is the safe approach."
216
+ ];
217
+ "address": "Sysvar1nstructions1111111111111111111111111";
218
+ }
219
+ ];
220
+ "args": [
221
+ {
222
+ "name": "projectId";
223
+ "type": "string";
224
+ },
225
+ {
226
+ "name": "recipient";
227
+ "type": "pubkey";
228
+ },
229
+ {
230
+ "name": "userClaimId";
231
+ "type": {
232
+ "array": [
233
+ "u8",
234
+ 32
235
+ ];
236
+ };
237
+ },
238
+ {
239
+ "name": "group";
240
+ "type": {
241
+ "array": [
242
+ "u8",
243
+ 32
244
+ ];
245
+ };
246
+ },
247
+ {
248
+ "name": "userClaimData";
249
+ "type": {
250
+ "defined": {
251
+ "name": "eddsaDistributorData";
252
+ };
253
+ };
254
+ },
255
+ {
256
+ "name": "signature";
257
+ "type": "bytes";
258
+ }
259
+ ];
260
+ },
261
+ {
262
+ "name": "deploy";
263
+ "discriminator": [
264
+ 67,
265
+ 36,
266
+ 143,
267
+ 118,
268
+ 36,
269
+ 164,
270
+ 92,
271
+ 217
272
+ ];
273
+ "accounts": [
274
+ {
275
+ "name": "config";
276
+ "writable": true;
277
+ "pda": {
278
+ "seeds": [
279
+ {
280
+ "kind": "const";
281
+ "value": [
282
+ 99,
283
+ 111,
284
+ 110,
285
+ 102,
286
+ 105,
287
+ 103
288
+ ];
289
+ }
290
+ ];
291
+ };
292
+ },
293
+ {
294
+ "name": "feeCollector";
295
+ },
296
+ {
297
+ "name": "authority";
298
+ "writable": true;
299
+ "signer": true;
300
+ },
301
+ {
302
+ "name": "systemProgram";
303
+ "address": "11111111111111111111111111111111";
304
+ }
305
+ ];
306
+ "args": [
307
+ {
308
+ "name": "defaultFeeCollector";
309
+ "type": "pubkey";
310
+ }
311
+ ];
312
+ },
313
+ {
314
+ "name": "deposit";
315
+ "discriminator": [
316
+ 242,
317
+ 35,
318
+ 198,
319
+ 137,
320
+ 82,
321
+ 225,
322
+ 242,
323
+ 182
324
+ ];
325
+ "accounts": [
326
+ {
327
+ "name": "authority";
328
+ "writable": true;
329
+ "signer": true;
330
+ },
331
+ {
332
+ "name": "airdrop";
333
+ "writable": true;
334
+ "pda": {
335
+ "seeds": [
336
+ {
337
+ "kind": "const";
338
+ "value": [
339
+ 97,
340
+ 105,
341
+ 114,
342
+ 100,
343
+ 114,
344
+ 111,
345
+ 112
346
+ ];
347
+ },
348
+ {
349
+ "kind": "arg";
350
+ "path": "projectId";
351
+ }
352
+ ];
353
+ };
354
+ },
355
+ {
356
+ "name": "vault";
357
+ "writable": true;
358
+ "pda": {
359
+ "seeds": [
360
+ {
361
+ "kind": "const";
362
+ "value": [
363
+ 118,
364
+ 97,
365
+ 117,
366
+ 108,
367
+ 116
368
+ ];
369
+ },
370
+ {
371
+ "kind": "account";
372
+ "path": "airdrop";
373
+ }
374
+ ];
375
+ };
376
+ },
377
+ {
378
+ "name": "authorityAta";
379
+ "writable": true;
380
+ },
381
+ {
382
+ "name": "tokenMint";
383
+ },
384
+ {
385
+ "name": "systemProgram";
386
+ "address": "11111111111111111111111111111111";
387
+ },
388
+ {
389
+ "name": "tokenProgram";
390
+ },
391
+ {
392
+ "name": "associatedTokenProgram";
393
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
394
+ }
395
+ ];
396
+ "args": [
397
+ {
398
+ "name": "projectId";
399
+ "type": "string";
400
+ },
401
+ {
402
+ "name": "amount";
403
+ "type": "u64";
404
+ }
405
+ ];
406
+ },
407
+ {
408
+ "name": "encodeHashToBeSigned";
409
+ "discriminator": [
410
+ 15,
411
+ 245,
412
+ 227,
413
+ 180,
414
+ 152,
415
+ 94,
416
+ 134,
417
+ 20
418
+ ];
419
+ "accounts": [];
420
+ "args": [
421
+ {
422
+ "name": "recipient";
423
+ "type": "pubkey";
424
+ },
425
+ {
426
+ "name": "userClaimId";
427
+ "type": {
428
+ "array": [
429
+ "u8",
430
+ 32
431
+ ];
432
+ };
433
+ },
434
+ {
435
+ "name": "userClaimData";
436
+ "type": {
437
+ "defined": {
438
+ "name": "eddsaDistributorData";
439
+ };
440
+ };
441
+ },
442
+ {
443
+ "name": "airdrop";
444
+ "type": "pubkey";
445
+ }
446
+ ];
447
+ "returns": {
448
+ "array": [
449
+ "u8",
450
+ 32
451
+ ];
452
+ };
453
+ },
454
+ {
455
+ "name": "initialize";
456
+ "discriminator": [
457
+ 175,
458
+ 175,
459
+ 109,
460
+ 31,
461
+ 13,
462
+ 152,
463
+ 155,
464
+ 237
465
+ ];
466
+ "accounts": [
467
+ {
468
+ "name": "airdrop";
469
+ "writable": true;
470
+ "pda": {
471
+ "seeds": [
472
+ {
473
+ "kind": "const";
474
+ "value": [
475
+ 97,
476
+ 105,
477
+ 114,
478
+ 100,
479
+ 114,
480
+ 111,
481
+ 112
482
+ ];
483
+ },
484
+ {
485
+ "kind": "arg";
486
+ "path": "projectId";
487
+ }
488
+ ];
489
+ };
490
+ },
491
+ {
492
+ "name": "config";
493
+ "writable": true;
494
+ "pda": {
495
+ "seeds": [
496
+ {
497
+ "kind": "const";
498
+ "value": [
499
+ 99,
500
+ 111,
501
+ 110,
502
+ 102,
503
+ 105,
504
+ 103
505
+ ];
506
+ }
507
+ ];
508
+ };
509
+ },
510
+ {
511
+ "name": "feeCollector";
512
+ "optional": true;
513
+ },
514
+ {
515
+ "name": "feeCollectorStorage";
516
+ "optional": true;
517
+ },
518
+ {
519
+ "name": "fee";
520
+ "writable": true;
521
+ "optional": true;
522
+ },
523
+ {
524
+ "name": "authority";
525
+ "writable": true;
526
+ "signer": true;
527
+ },
528
+ {
529
+ "name": "systemProgram";
530
+ "address": "11111111111111111111111111111111";
531
+ }
532
+ ];
533
+ "args": [
534
+ {
535
+ "name": "projectId";
536
+ "type": "string";
537
+ },
538
+ {
539
+ "name": "projectToken";
540
+ "type": "pubkey";
541
+ },
542
+ {
543
+ "name": "owner";
544
+ "type": "pubkey";
545
+ },
546
+ {
547
+ "name": "initFeeAccount";
548
+ "type": "bool";
549
+ }
550
+ ];
551
+ },
552
+ {
553
+ "name": "receiveProgramAdmin";
554
+ "discriminator": [
555
+ 238,
556
+ 172,
557
+ 61,
558
+ 197,
559
+ 23,
560
+ 72,
561
+ 249,
562
+ 87
563
+ ];
564
+ "accounts": [
565
+ {
566
+ "name": "config";
567
+ "writable": true;
568
+ "pda": {
569
+ "seeds": [
570
+ {
571
+ "kind": "const";
572
+ "value": [
573
+ 99,
574
+ 111,
575
+ 110,
576
+ 102,
577
+ 105,
578
+ 103
579
+ ];
580
+ }
581
+ ];
582
+ };
583
+ },
584
+ {
585
+ "name": "authority";
586
+ "writable": true;
587
+ "signer": true;
588
+ },
589
+ {
590
+ "name": "systemProgram";
591
+ "address": "11111111111111111111111111111111";
592
+ }
593
+ ];
594
+ "args": [];
595
+ },
596
+ {
597
+ "name": "setBaseParams";
598
+ "discriminator": [
599
+ 53,
600
+ 16,
601
+ 151,
602
+ 65,
603
+ 155,
604
+ 108,
605
+ 105,
606
+ 229
607
+ ];
608
+ "accounts": [
609
+ {
610
+ "name": "authority";
611
+ "writable": true;
612
+ "signer": true;
613
+ },
614
+ {
615
+ "name": "airdrop";
616
+ "writable": true;
617
+ "pda": {
618
+ "seeds": [
619
+ {
620
+ "kind": "const";
621
+ "value": [
622
+ 97,
623
+ 105,
624
+ 114,
625
+ 100,
626
+ 114,
627
+ 111,
628
+ 112
629
+ ];
630
+ },
631
+ {
632
+ "kind": "arg";
633
+ "path": "projectId";
634
+ }
635
+ ];
636
+ };
637
+ },
638
+ {
639
+ "name": "systemProgram";
640
+ "address": "11111111111111111111111111111111";
641
+ }
642
+ ];
643
+ "args": [
644
+ {
645
+ "name": "projectId";
646
+ "type": "string";
647
+ },
648
+ {
649
+ "name": "startTime";
650
+ "type": "u64";
651
+ },
652
+ {
653
+ "name": "endTime";
654
+ "type": "u64";
655
+ },
656
+ {
657
+ "name": "authorizedSigner";
658
+ "type": "pubkey";
659
+ }
660
+ ];
661
+ },
662
+ {
663
+ "name": "setDefaultFeeCollector";
664
+ "discriminator": [
665
+ 250,
666
+ 25,
667
+ 136,
668
+ 29,
669
+ 77,
670
+ 231,
671
+ 26,
672
+ 141
673
+ ];
674
+ "accounts": [
675
+ {
676
+ "name": "config";
677
+ "writable": true;
678
+ "pda": {
679
+ "seeds": [
680
+ {
681
+ "kind": "const";
682
+ "value": [
683
+ 99,
684
+ 111,
685
+ 110,
686
+ 102,
687
+ 105,
688
+ 103
689
+ ];
690
+ }
691
+ ];
692
+ };
693
+ },
694
+ {
695
+ "name": "feeCollector";
696
+ },
697
+ {
698
+ "name": "authority";
699
+ "writable": true;
700
+ "signer": true;
701
+ },
702
+ {
703
+ "name": "systemProgram";
704
+ "address": "11111111111111111111111111111111";
705
+ }
706
+ ];
707
+ "args": [
708
+ {
709
+ "name": "defaultFeeCollector";
710
+ "type": "pubkey";
711
+ }
712
+ ];
713
+ },
714
+ {
715
+ "name": "setFeeCollector";
716
+ "discriminator": [
717
+ 143,
718
+ 46,
719
+ 10,
720
+ 113,
721
+ 121,
722
+ 157,
723
+ 245,
724
+ 166
725
+ ];
726
+ "accounts": [
727
+ {
728
+ "name": "authority";
729
+ "writable": true;
730
+ "signer": true;
731
+ },
732
+ {
733
+ "name": "config";
734
+ "pda": {
735
+ "seeds": [
736
+ {
737
+ "kind": "const";
738
+ "value": [
739
+ 99,
740
+ 111,
741
+ 110,
742
+ 102,
743
+ 105,
744
+ 103
745
+ ];
746
+ }
747
+ ];
748
+ };
749
+ },
750
+ {
751
+ "name": "airdrop";
752
+ "writable": true;
753
+ "pda": {
754
+ "seeds": [
755
+ {
756
+ "kind": "const";
757
+ "value": [
758
+ 97,
759
+ 105,
760
+ 114,
761
+ 100,
762
+ 114,
763
+ 111,
764
+ 112
765
+ ];
766
+ },
767
+ {
768
+ "kind": "arg";
769
+ "path": "projectId";
770
+ }
771
+ ];
772
+ };
773
+ },
774
+ {
775
+ "name": "feeCollector";
776
+ },
777
+ {
778
+ "name": "feeCollectorStorage";
779
+ "optional": true;
780
+ },
781
+ {
782
+ "name": "fee";
783
+ "writable": true;
784
+ "optional": true;
785
+ },
786
+ {
787
+ "name": "systemProgram";
788
+ "address": "11111111111111111111111111111111";
789
+ }
790
+ ];
791
+ "args": [
792
+ {
793
+ "name": "projectId";
794
+ "type": "string";
795
+ },
796
+ {
797
+ "name": "feeCollector";
798
+ "type": "pubkey";
799
+ },
800
+ {
801
+ "name": "initFeeAccount";
802
+ "type": "bool";
803
+ }
804
+ ];
805
+ },
806
+ {
807
+ "name": "setFeeToken";
808
+ "discriminator": [
809
+ 52,
810
+ 90,
811
+ 163,
812
+ 123,
813
+ 220,
814
+ 202,
815
+ 90,
816
+ 217
817
+ ];
818
+ "accounts": [
819
+ {
820
+ "name": "authority";
821
+ "writable": true;
822
+ "signer": true;
823
+ },
824
+ {
825
+ "name": "config";
826
+ "pda": {
827
+ "seeds": [
828
+ {
829
+ "kind": "const";
830
+ "value": [
831
+ 99,
832
+ 111,
833
+ 110,
834
+ 102,
835
+ 105,
836
+ 103
837
+ ];
838
+ }
839
+ ];
840
+ };
841
+ },
842
+ {
843
+ "name": "airdrop";
844
+ "writable": true;
845
+ "pda": {
846
+ "seeds": [
847
+ {
848
+ "kind": "const";
849
+ "value": [
850
+ 97,
851
+ 105,
852
+ 114,
853
+ 100,
854
+ 114,
855
+ 111,
856
+ 112
857
+ ];
858
+ },
859
+ {
860
+ "kind": "arg";
861
+ "path": "projectId";
862
+ }
863
+ ];
864
+ };
865
+ },
866
+ {
867
+ "name": "systemProgram";
868
+ "address": "11111111111111111111111111111111";
869
+ }
870
+ ];
871
+ "args": [
872
+ {
873
+ "name": "projectId";
874
+ "type": "string";
875
+ },
876
+ {
877
+ "name": "feeToken";
878
+ "type": "pubkey";
879
+ }
880
+ ];
881
+ },
882
+ {
883
+ "name": "togglePause";
884
+ "discriminator": [
885
+ 238,
886
+ 237,
887
+ 206,
888
+ 27,
889
+ 255,
890
+ 95,
891
+ 123,
892
+ 229
893
+ ];
894
+ "accounts": [
895
+ {
896
+ "name": "authority";
897
+ "writable": true;
898
+ "signer": true;
899
+ },
900
+ {
901
+ "name": "airdrop";
902
+ "writable": true;
903
+ "pda": {
904
+ "seeds": [
905
+ {
906
+ "kind": "const";
907
+ "value": [
908
+ 97,
909
+ 105,
910
+ 114,
911
+ 100,
912
+ 114,
913
+ 111,
914
+ 112
915
+ ];
916
+ },
917
+ {
918
+ "kind": "arg";
919
+ "path": "projectId";
920
+ }
921
+ ];
922
+ };
923
+ },
924
+ {
925
+ "name": "systemProgram";
926
+ "address": "11111111111111111111111111111111";
927
+ }
928
+ ];
929
+ "args": [
930
+ {
931
+ "name": "projectId";
932
+ "type": "string";
933
+ }
934
+ ];
935
+ },
936
+ {
937
+ "name": "transferOwnership";
938
+ "discriminator": [
939
+ 65,
940
+ 177,
941
+ 215,
942
+ 73,
943
+ 53,
944
+ 45,
945
+ 99,
946
+ 47
947
+ ];
948
+ "accounts": [
949
+ {
950
+ "name": "airdrop";
951
+ "writable": true;
952
+ "pda": {
953
+ "seeds": [
954
+ {
955
+ "kind": "const";
956
+ "value": [
957
+ 97,
958
+ 105,
959
+ 114,
960
+ 100,
961
+ 114,
962
+ 111,
963
+ 112
964
+ ];
965
+ },
966
+ {
967
+ "kind": "arg";
968
+ "path": "projectId";
969
+ }
970
+ ];
971
+ };
972
+ },
973
+ {
974
+ "name": "authority";
975
+ "writable": true;
976
+ "signer": true;
977
+ },
978
+ {
979
+ "name": "systemProgram";
980
+ "address": "11111111111111111111111111111111";
981
+ }
982
+ ];
983
+ "args": [
984
+ {
985
+ "name": "projectId";
986
+ "type": "string";
987
+ },
988
+ {
989
+ "name": "newOwner";
990
+ "type": "pubkey";
991
+ }
992
+ ];
993
+ },
994
+ {
995
+ "name": "transferProgramAdmin";
996
+ "discriminator": [
997
+ 47,
998
+ 201,
999
+ 152,
1000
+ 248,
1001
+ 132,
1002
+ 27,
1003
+ 33,
1004
+ 139
1005
+ ];
1006
+ "accounts": [
1007
+ {
1008
+ "name": "config";
1009
+ "writable": true;
1010
+ "pda": {
1011
+ "seeds": [
1012
+ {
1013
+ "kind": "const";
1014
+ "value": [
1015
+ 99,
1016
+ 111,
1017
+ 110,
1018
+ 102,
1019
+ 105,
1020
+ 103
1021
+ ];
1022
+ }
1023
+ ];
1024
+ };
1025
+ },
1026
+ {
1027
+ "name": "authority";
1028
+ "writable": true;
1029
+ "signer": true;
1030
+ },
1031
+ {
1032
+ "name": "newAdmin";
1033
+ "writable": true;
1034
+ "signer": true;
1035
+ "optional": true;
1036
+ },
1037
+ {
1038
+ "name": "systemProgram";
1039
+ "address": "11111111111111111111111111111111";
1040
+ }
1041
+ ];
1042
+ "args": [
1043
+ {
1044
+ "name": "newAdmin";
1045
+ "type": "pubkey";
1046
+ }
1047
+ ];
1048
+ },
1049
+ {
1050
+ "name": "verify";
1051
+ "discriminator": [
1052
+ 133,
1053
+ 161,
1054
+ 141,
1055
+ 48,
1056
+ 120,
1057
+ 198,
1058
+ 88,
1059
+ 150
1060
+ ];
1061
+ "accounts": [
1062
+ {
1063
+ "name": "authority";
1064
+ "writable": true;
1065
+ "signer": true;
1066
+ },
1067
+ {
1068
+ "name": "systemProgram";
1069
+ "address": "11111111111111111111111111111111";
1070
+ },
1071
+ {
1072
+ "name": "ixSysvar";
1073
+ "docs": [
1074
+ "the supplied Sysvar could be anything else.",
1075
+ "The Instruction Sysvar has not been implemented",
1076
+ "in the Anchor framework yet, so this is the safe approach."
1077
+ ];
1078
+ "address": "Sysvar1nstructions1111111111111111111111111";
1079
+ }
1080
+ ];
1081
+ "args": [
1082
+ {
1083
+ "name": "signer";
1084
+ "type": "pubkey";
1085
+ },
1086
+ {
1087
+ "name": "hash";
1088
+ "type": {
1089
+ "array": [
1090
+ "u8",
1091
+ 32
1092
+ ];
1093
+ };
1094
+ },
1095
+ {
1096
+ "name": "signature";
1097
+ "type": "bytes";
1098
+ }
1099
+ ];
1100
+ },
1101
+ {
1102
+ "name": "version";
1103
+ "discriminator": [
1104
+ 118,
1105
+ 65,
1106
+ 195,
1107
+ 198,
1108
+ 129,
1109
+ 216,
1110
+ 252,
1111
+ 192
1112
+ ];
1113
+ "accounts": [
1114
+ {
1115
+ "name": "version";
1116
+ "writable": true;
1117
+ "pda": {
1118
+ "seeds": [
1119
+ {
1120
+ "kind": "const";
1121
+ "value": [
1122
+ 118,
1123
+ 101,
1124
+ 114,
1125
+ 115,
1126
+ 105,
1127
+ 111,
1128
+ 110
1129
+ ];
1130
+ }
1131
+ ];
1132
+ };
1133
+ },
1134
+ {
1135
+ "name": "authority";
1136
+ "writable": true;
1137
+ "signer": true;
1138
+ },
1139
+ {
1140
+ "name": "systemProgram";
1141
+ "address": "11111111111111111111111111111111";
1142
+ }
1143
+ ];
1144
+ "args": [];
1145
+ },
1146
+ {
1147
+ "name": "withdraw";
1148
+ "discriminator": [
1149
+ 183,
1150
+ 18,
1151
+ 70,
1152
+ 156,
1153
+ 148,
1154
+ 109,
1155
+ 161,
1156
+ 34
1157
+ ];
1158
+ "accounts": [
1159
+ {
1160
+ "name": "authority";
1161
+ "writable": true;
1162
+ "signer": true;
1163
+ },
1164
+ {
1165
+ "name": "airdrop";
1166
+ "writable": true;
1167
+ "pda": {
1168
+ "seeds": [
1169
+ {
1170
+ "kind": "const";
1171
+ "value": [
1172
+ 97,
1173
+ 105,
1174
+ 114,
1175
+ 100,
1176
+ 114,
1177
+ 111,
1178
+ 112
1179
+ ];
1180
+ },
1181
+ {
1182
+ "kind": "arg";
1183
+ "path": "projectId";
1184
+ }
1185
+ ];
1186
+ };
1187
+ },
1188
+ {
1189
+ "name": "vault";
1190
+ "writable": true;
1191
+ "pda": {
1192
+ "seeds": [
1193
+ {
1194
+ "kind": "const";
1195
+ "value": [
1196
+ 118,
1197
+ 97,
1198
+ 117,
1199
+ 108,
1200
+ 116
1201
+ ];
1202
+ },
1203
+ {
1204
+ "kind": "account";
1205
+ "path": "airdrop";
1206
+ }
1207
+ ];
1208
+ };
1209
+ },
1210
+ {
1211
+ "name": "authorityAta";
1212
+ "writable": true;
1213
+ "pda": {
1214
+ "seeds": [
1215
+ {
1216
+ "kind": "account";
1217
+ "path": "authority";
1218
+ },
1219
+ {
1220
+ "kind": "account";
1221
+ "path": "tokenProgram";
1222
+ },
1223
+ {
1224
+ "kind": "account";
1225
+ "path": "tokenMint";
1226
+ }
1227
+ ];
1228
+ "program": {
1229
+ "kind": "const";
1230
+ "value": [
1231
+ 140,
1232
+ 151,
1233
+ 37,
1234
+ 143,
1235
+ 78,
1236
+ 36,
1237
+ 137,
1238
+ 241,
1239
+ 187,
1240
+ 61,
1241
+ 16,
1242
+ 41,
1243
+ 20,
1244
+ 142,
1245
+ 13,
1246
+ 131,
1247
+ 11,
1248
+ 90,
1249
+ 19,
1250
+ 153,
1251
+ 218,
1252
+ 255,
1253
+ 16,
1254
+ 132,
1255
+ 4,
1256
+ 142,
1257
+ 123,
1258
+ 216,
1259
+ 219,
1260
+ 233,
1261
+ 248,
1262
+ 89
1263
+ ];
1264
+ };
1265
+ };
1266
+ },
1267
+ {
1268
+ "name": "tokenMint";
1269
+ },
1270
+ {
1271
+ "name": "systemProgram";
1272
+ "address": "11111111111111111111111111111111";
1273
+ },
1274
+ {
1275
+ "name": "tokenProgram";
1276
+ },
1277
+ {
1278
+ "name": "associatedTokenProgram";
1279
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1280
+ }
1281
+ ];
1282
+ "args": [
1283
+ {
1284
+ "name": "projectId";
1285
+ "type": "string";
1286
+ }
1287
+ ];
1288
+ }
1289
+ ];
1290
+ "accounts": [
1291
+ {
1292
+ "name": "airdrop";
1293
+ "discriminator": [
1294
+ 31,
1295
+ 112,
1296
+ 159,
1297
+ 158,
1298
+ 124,
1299
+ 237,
1300
+ 9,
1301
+ 241
1302
+ ];
1303
+ },
1304
+ {
1305
+ "name": "claim";
1306
+ "discriminator": [
1307
+ 155,
1308
+ 70,
1309
+ 22,
1310
+ 176,
1311
+ 123,
1312
+ 215,
1313
+ 246,
1314
+ 102
1315
+ ];
1316
+ },
1317
+ {
1318
+ "name": "config";
1319
+ "discriminator": [
1320
+ 155,
1321
+ 12,
1322
+ 170,
1323
+ 224,
1324
+ 30,
1325
+ 250,
1326
+ 204,
1327
+ 130
1328
+ ];
1329
+ },
1330
+ {
1331
+ "name": "version";
1332
+ "discriminator": [
1333
+ 234,
1334
+ 4,
1335
+ 254,
1336
+ 42,
1337
+ 242,
1338
+ 196,
1339
+ 136,
1340
+ 199
1341
+ ];
1342
+ }
1343
+ ];
1344
+ "events": [
1345
+ {
1346
+ "name": "claimDelegateSet";
1347
+ "discriminator": [
1348
+ 82,
1349
+ 153,
1350
+ 121,
1351
+ 138,
1352
+ 224,
1353
+ 132,
1354
+ 71,
1355
+ 59
1356
+ ];
1357
+ },
1358
+ {
1359
+ "name": "claimed";
1360
+ "discriminator": [
1361
+ 217,
1362
+ 192,
1363
+ 123,
1364
+ 72,
1365
+ 108,
1366
+ 150,
1367
+ 248,
1368
+ 33
1369
+ ];
1370
+ },
1371
+ {
1372
+ "name": "deployed";
1373
+ "discriminator": [
1374
+ 50,
1375
+ 145,
1376
+ 94,
1377
+ 59,
1378
+ 169,
1379
+ 255,
1380
+ 159,
1381
+ 186
1382
+ ];
1383
+ },
1384
+ {
1385
+ "name": "initialized";
1386
+ "discriminator": [
1387
+ 208,
1388
+ 213,
1389
+ 115,
1390
+ 98,
1391
+ 115,
1392
+ 82,
1393
+ 201,
1394
+ 209
1395
+ ];
1396
+ }
1397
+ ];
1398
+ "errors": [
1399
+ {
1400
+ "code": 6000;
1401
+ "name": "alreadyDeployed";
1402
+ "msg": "alreadyDeployed";
1403
+ },
1404
+ {
1405
+ "code": 6001;
1406
+ "name": "unsupportedOperation";
1407
+ "msg": "unsupportedOperation";
1408
+ },
1409
+ {
1410
+ "code": 6002;
1411
+ "name": "timeInactive";
1412
+ "msg": "timeInactive";
1413
+ },
1414
+ {
1415
+ "code": 6003;
1416
+ "name": "invalidSignature";
1417
+ "msg": "invalidSignature";
1418
+ },
1419
+ {
1420
+ "code": 6004;
1421
+ "name": "incorrectFees";
1422
+ "msg": "incorrectFees";
1423
+ },
1424
+ {
1425
+ "code": 6005;
1426
+ "name": "outsideClaimableTimeRange";
1427
+ "msg": "outsideClaimableTimeRange";
1428
+ },
1429
+ {
1430
+ "code": 6006;
1431
+ "name": "alreadyInitialized";
1432
+ "msg": "alreadyInitialized";
1433
+ },
1434
+ {
1435
+ "code": 6007;
1436
+ "name": "notOwner";
1437
+ "msg": "notOwner";
1438
+ },
1439
+ {
1440
+ "code": 6008;
1441
+ "name": "notProgramAdmin";
1442
+ "msg": "notProgramAdmin";
1443
+ },
1444
+ {
1445
+ "code": 6009;
1446
+ "name": "notPermissioned";
1447
+ "msg": "notPermissioned";
1448
+ },
1449
+ {
1450
+ "code": 6010;
1451
+ "name": "ownableUnauthorizedAccount";
1452
+ "msg": "ownableUnauthorizedAccount";
1453
+ },
1454
+ {
1455
+ "code": 6011;
1456
+ "name": "invalidFeeCollector";
1457
+ "msg": "invalidFeeCollector";
1458
+ },
1459
+ {
1460
+ "code": 6012;
1461
+ "name": "paused";
1462
+ "msg": "paused";
1463
+ }
1464
+ ];
1465
+ "types": [
1466
+ {
1467
+ "name": "airdrop";
1468
+ "type": {
1469
+ "kind": "struct";
1470
+ "fields": [
1471
+ {
1472
+ "name": "owner";
1473
+ "type": "pubkey";
1474
+ },
1475
+ {
1476
+ "name": "authorizedSigner";
1477
+ "type": "pubkey";
1478
+ },
1479
+ {
1480
+ "name": "token";
1481
+ "type": "pubkey";
1482
+ },
1483
+ {
1484
+ "name": "startTime";
1485
+ "type": "u64";
1486
+ },
1487
+ {
1488
+ "name": "endTime";
1489
+ "type": "u64";
1490
+ },
1491
+ {
1492
+ "name": "feeCollector";
1493
+ "type": "pubkey";
1494
+ },
1495
+ {
1496
+ "name": "feeToken";
1497
+ "type": "pubkey";
1498
+ },
1499
+ {
1500
+ "name": "paused";
1501
+ "type": "bool";
1502
+ }
1503
+ ];
1504
+ };
1505
+ },
1506
+ {
1507
+ "name": "claim";
1508
+ "type": {
1509
+ "kind": "struct";
1510
+ "fields": [
1511
+ {
1512
+ "name": "used";
1513
+ "type": "bool";
1514
+ }
1515
+ ];
1516
+ };
1517
+ },
1518
+ {
1519
+ "name": "claimDelegateSet";
1520
+ "type": {
1521
+ "kind": "struct";
1522
+ "fields": [
1523
+ {
1524
+ "name": "delegate";
1525
+ "type": "pubkey";
1526
+ }
1527
+ ];
1528
+ };
1529
+ },
1530
+ {
1531
+ "name": "claimed";
1532
+ "type": {
1533
+ "kind": "struct";
1534
+ "fields": [
1535
+ {
1536
+ "name": "recipient";
1537
+ "type": "pubkey";
1538
+ },
1539
+ {
1540
+ "name": "group";
1541
+ "type": {
1542
+ "array": [
1543
+ "u8",
1544
+ 32
1545
+ ];
1546
+ };
1547
+ },
1548
+ {
1549
+ "name": "data";
1550
+ "type": {
1551
+ "defined": {
1552
+ "name": "eddsaDistributorData";
1553
+ };
1554
+ };
1555
+ }
1556
+ ];
1557
+ };
1558
+ },
1559
+ {
1560
+ "name": "config";
1561
+ "type": {
1562
+ "kind": "struct";
1563
+ "fields": [
1564
+ {
1565
+ "name": "admin";
1566
+ "type": "pubkey";
1567
+ },
1568
+ {
1569
+ "name": "newAdmin";
1570
+ "type": "pubkey";
1571
+ },
1572
+ {
1573
+ "name": "defaultFeeCollector";
1574
+ "type": "pubkey";
1575
+ }
1576
+ ];
1577
+ };
1578
+ },
1579
+ {
1580
+ "name": "deployed";
1581
+ "type": {
1582
+ "kind": "struct";
1583
+ "fields": [];
1584
+ };
1585
+ },
1586
+ {
1587
+ "name": "eddsaDistributorData";
1588
+ "type": {
1589
+ "kind": "struct";
1590
+ "fields": [
1591
+ {
1592
+ "name": "claimableTimestamp";
1593
+ "type": "u64";
1594
+ },
1595
+ {
1596
+ "name": "claimableAmount";
1597
+ "type": "u64";
1598
+ }
1599
+ ];
1600
+ };
1601
+ },
1602
+ {
1603
+ "name": "initialized";
1604
+ "type": {
1605
+ "kind": "struct";
1606
+ "fields": [
1607
+ {
1608
+ "name": "projectId";
1609
+ "type": "string";
1610
+ }
1611
+ ];
1612
+ };
1613
+ },
1614
+ {
1615
+ "name": "version";
1616
+ "type": {
1617
+ "kind": "struct";
1618
+ "fields": [
1619
+ {
1620
+ "name": "version";
1621
+ "type": "string";
1622
+ }
1623
+ ];
1624
+ };
1625
+ }
1626
+ ];
1627
+ };