@sign-global/tokentable 0.4.3-beta.1 → 0.4.3-beta.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.
Files changed (27) hide show
  1. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.d.ts +3 -2
  2. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.js +10 -9
  3. package/dist/cjs/airdrop/contracts/solana/AirdropSignatureClient.js.map +1 -1
  4. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.d.ts +1 -0
  5. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.js.map +1 -1
  6. package/dist/cjs/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.d.ts +1668 -0
  7. package/dist/cjs/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.js +3 -0
  8. package/dist/cjs/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.js.map +1 -0
  9. package/dist/cjs/airdrop/contracts/solana/{fungible_token_distributor_solana.json → eddsa_token_with_fees_distributor_solana.json} +127 -38
  10. package/dist/cjs/airdrop/contracts/solana/fee_collector.d.ts +149 -0
  11. package/dist/cjs/airdrop/contracts/solana/fee_collector.json +149 -0
  12. package/dist/cjs/airdrop/types/index.d.ts +2 -0
  13. package/dist/cjs/airdrop/types/index.js.map +1 -1
  14. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.d.ts +3 -2
  15. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.js +9 -8
  16. package/dist/esm/airdrop/contracts/solana/AirdropSignatureClient.js.map +1 -1
  17. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.d.ts +1 -0
  18. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.js.map +1 -1
  19. package/dist/esm/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.d.ts +1668 -0
  20. package/dist/esm/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.js +2 -0
  21. package/dist/esm/airdrop/contracts/solana/eddsa_token_with_fees_distributor_solana.js.map +1 -0
  22. package/dist/esm/airdrop/contracts/solana/{fungible_token_distributor_solana.json → eddsa_token_with_fees_distributor_solana.json} +127 -38
  23. package/dist/esm/airdrop/contracts/solana/fee_collector.d.ts +149 -0
  24. package/dist/esm/airdrop/contracts/solana/fee_collector.json +149 -0
  25. package/dist/esm/airdrop/types/index.d.ts +2 -0
  26. package/dist/esm/airdrop/types/index.js.map +1 -1
  27. package/package.json +1 -1
@@ -0,0 +1,1668 @@
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_with_fees_distributor_solana.json`.
6
+ */
7
+ export type EddsaTokenWithFeesDistributorSolana = {
8
+ "address": "CwjcZKhYZ69bEL7jkotHtmAqhNBNmxyZCLUdVwsK3fWV";
9
+ "metadata": {
10
+ "name": "eddsaTokenWithFeesDistributorSolana";
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": "token";
650
+ "type": "pubkey";
651
+ },
652
+ {
653
+ "name": "startTime";
654
+ "type": "u64";
655
+ },
656
+ {
657
+ "name": "endTime";
658
+ "type": "u64";
659
+ },
660
+ {
661
+ "name": "authorizedSigner";
662
+ "type": "pubkey";
663
+ }
664
+ ];
665
+ },
666
+ {
667
+ "name": "setDefaultFeeCollector";
668
+ "discriminator": [
669
+ 250,
670
+ 25,
671
+ 136,
672
+ 29,
673
+ 77,
674
+ 231,
675
+ 26,
676
+ 141
677
+ ];
678
+ "accounts": [
679
+ {
680
+ "name": "config";
681
+ "writable": true;
682
+ "pda": {
683
+ "seeds": [
684
+ {
685
+ "kind": "const";
686
+ "value": [
687
+ 99,
688
+ 111,
689
+ 110,
690
+ 102,
691
+ 105,
692
+ 103
693
+ ];
694
+ }
695
+ ];
696
+ };
697
+ },
698
+ {
699
+ "name": "feeCollector";
700
+ },
701
+ {
702
+ "name": "authority";
703
+ "writable": true;
704
+ "signer": true;
705
+ },
706
+ {
707
+ "name": "systemProgram";
708
+ "address": "11111111111111111111111111111111";
709
+ }
710
+ ];
711
+ "args": [
712
+ {
713
+ "name": "defaultFeeCollector";
714
+ "type": "pubkey";
715
+ }
716
+ ];
717
+ },
718
+ {
719
+ "name": "setFeeCollector";
720
+ "discriminator": [
721
+ 143,
722
+ 46,
723
+ 10,
724
+ 113,
725
+ 121,
726
+ 157,
727
+ 245,
728
+ 166
729
+ ];
730
+ "accounts": [
731
+ {
732
+ "name": "authority";
733
+ "writable": true;
734
+ "signer": true;
735
+ },
736
+ {
737
+ "name": "config";
738
+ "pda": {
739
+ "seeds": [
740
+ {
741
+ "kind": "const";
742
+ "value": [
743
+ 99,
744
+ 111,
745
+ 110,
746
+ 102,
747
+ 105,
748
+ 103
749
+ ];
750
+ }
751
+ ];
752
+ };
753
+ },
754
+ {
755
+ "name": "airdrop";
756
+ "writable": true;
757
+ "pda": {
758
+ "seeds": [
759
+ {
760
+ "kind": "const";
761
+ "value": [
762
+ 97,
763
+ 105,
764
+ 114,
765
+ 100,
766
+ 114,
767
+ 111,
768
+ 112
769
+ ];
770
+ },
771
+ {
772
+ "kind": "arg";
773
+ "path": "projectId";
774
+ }
775
+ ];
776
+ };
777
+ },
778
+ {
779
+ "name": "feeCollector";
780
+ },
781
+ {
782
+ "name": "feeCollectorStorage";
783
+ "optional": true;
784
+ },
785
+ {
786
+ "name": "fee";
787
+ "writable": true;
788
+ "optional": true;
789
+ },
790
+ {
791
+ "name": "systemProgram";
792
+ "address": "11111111111111111111111111111111";
793
+ }
794
+ ];
795
+ "args": [
796
+ {
797
+ "name": "projectId";
798
+ "type": "string";
799
+ },
800
+ {
801
+ "name": "feeCollector";
802
+ "type": "pubkey";
803
+ },
804
+ {
805
+ "name": "initFeeAccount";
806
+ "type": "bool";
807
+ }
808
+ ];
809
+ },
810
+ {
811
+ "name": "setFeeToken";
812
+ "discriminator": [
813
+ 52,
814
+ 90,
815
+ 163,
816
+ 123,
817
+ 220,
818
+ 202,
819
+ 90,
820
+ 217
821
+ ];
822
+ "accounts": [
823
+ {
824
+ "name": "authority";
825
+ "writable": true;
826
+ "signer": true;
827
+ },
828
+ {
829
+ "name": "config";
830
+ "pda": {
831
+ "seeds": [
832
+ {
833
+ "kind": "const";
834
+ "value": [
835
+ 99,
836
+ 111,
837
+ 110,
838
+ 102,
839
+ 105,
840
+ 103
841
+ ];
842
+ }
843
+ ];
844
+ };
845
+ },
846
+ {
847
+ "name": "airdrop";
848
+ "writable": true;
849
+ "pda": {
850
+ "seeds": [
851
+ {
852
+ "kind": "const";
853
+ "value": [
854
+ 97,
855
+ 105,
856
+ 114,
857
+ 100,
858
+ 114,
859
+ 111,
860
+ 112
861
+ ];
862
+ },
863
+ {
864
+ "kind": "arg";
865
+ "path": "projectId";
866
+ }
867
+ ];
868
+ };
869
+ },
870
+ {
871
+ "name": "systemProgram";
872
+ "address": "11111111111111111111111111111111";
873
+ }
874
+ ];
875
+ "args": [
876
+ {
877
+ "name": "projectId";
878
+ "type": "string";
879
+ },
880
+ {
881
+ "name": "feeToken";
882
+ "type": "pubkey";
883
+ }
884
+ ];
885
+ },
886
+ {
887
+ "name": "togglePause";
888
+ "discriminator": [
889
+ 238,
890
+ 237,
891
+ 206,
892
+ 27,
893
+ 255,
894
+ 95,
895
+ 123,
896
+ 229
897
+ ];
898
+ "accounts": [
899
+ {
900
+ "name": "authority";
901
+ "writable": true;
902
+ "signer": true;
903
+ },
904
+ {
905
+ "name": "airdrop";
906
+ "writable": true;
907
+ "pda": {
908
+ "seeds": [
909
+ {
910
+ "kind": "const";
911
+ "value": [
912
+ 97,
913
+ 105,
914
+ 114,
915
+ 100,
916
+ 114,
917
+ 111,
918
+ 112
919
+ ];
920
+ },
921
+ {
922
+ "kind": "arg";
923
+ "path": "projectId";
924
+ }
925
+ ];
926
+ };
927
+ },
928
+ {
929
+ "name": "systemProgram";
930
+ "address": "11111111111111111111111111111111";
931
+ }
932
+ ];
933
+ "args": [
934
+ {
935
+ "name": "projectId";
936
+ "type": "string";
937
+ }
938
+ ];
939
+ },
940
+ {
941
+ "name": "transferOwnership";
942
+ "discriminator": [
943
+ 65,
944
+ 177,
945
+ 215,
946
+ 73,
947
+ 53,
948
+ 45,
949
+ 99,
950
+ 47
951
+ ];
952
+ "accounts": [
953
+ {
954
+ "name": "airdrop";
955
+ "writable": true;
956
+ "pda": {
957
+ "seeds": [
958
+ {
959
+ "kind": "const";
960
+ "value": [
961
+ 97,
962
+ 105,
963
+ 114,
964
+ 100,
965
+ 114,
966
+ 111,
967
+ 112
968
+ ];
969
+ },
970
+ {
971
+ "kind": "arg";
972
+ "path": "projectId";
973
+ }
974
+ ];
975
+ };
976
+ },
977
+ {
978
+ "name": "authority";
979
+ "writable": true;
980
+ "signer": true;
981
+ },
982
+ {
983
+ "name": "systemProgram";
984
+ "address": "11111111111111111111111111111111";
985
+ }
986
+ ];
987
+ "args": [
988
+ {
989
+ "name": "projectId";
990
+ "type": "string";
991
+ },
992
+ {
993
+ "name": "newOwner";
994
+ "type": "pubkey";
995
+ }
996
+ ];
997
+ },
998
+ {
999
+ "name": "transferProgramAdmin";
1000
+ "discriminator": [
1001
+ 47,
1002
+ 201,
1003
+ 152,
1004
+ 248,
1005
+ 132,
1006
+ 27,
1007
+ 33,
1008
+ 139
1009
+ ];
1010
+ "accounts": [
1011
+ {
1012
+ "name": "config";
1013
+ "writable": true;
1014
+ "pda": {
1015
+ "seeds": [
1016
+ {
1017
+ "kind": "const";
1018
+ "value": [
1019
+ 99,
1020
+ 111,
1021
+ 110,
1022
+ 102,
1023
+ 105,
1024
+ 103
1025
+ ];
1026
+ }
1027
+ ];
1028
+ };
1029
+ },
1030
+ {
1031
+ "name": "authority";
1032
+ "writable": true;
1033
+ "signer": true;
1034
+ },
1035
+ {
1036
+ "name": "newAdmin";
1037
+ "writable": true;
1038
+ "signer": true;
1039
+ "optional": true;
1040
+ },
1041
+ {
1042
+ "name": "systemProgram";
1043
+ "address": "11111111111111111111111111111111";
1044
+ }
1045
+ ];
1046
+ "args": [
1047
+ {
1048
+ "name": "newAdmin";
1049
+ "type": "pubkey";
1050
+ }
1051
+ ];
1052
+ },
1053
+ {
1054
+ "name": "verify";
1055
+ "discriminator": [
1056
+ 133,
1057
+ 161,
1058
+ 141,
1059
+ 48,
1060
+ 120,
1061
+ 198,
1062
+ 88,
1063
+ 150
1064
+ ];
1065
+ "accounts": [
1066
+ {
1067
+ "name": "authority";
1068
+ "writable": true;
1069
+ "signer": true;
1070
+ },
1071
+ {
1072
+ "name": "systemProgram";
1073
+ "address": "11111111111111111111111111111111";
1074
+ },
1075
+ {
1076
+ "name": "ixSysvar";
1077
+ "docs": [
1078
+ "the supplied Sysvar could be anything else.",
1079
+ "The Instruction Sysvar has not been implemented",
1080
+ "in the Anchor framework yet, so this is the safe approach."
1081
+ ];
1082
+ "address": "Sysvar1nstructions1111111111111111111111111";
1083
+ }
1084
+ ];
1085
+ "args": [
1086
+ {
1087
+ "name": "signer";
1088
+ "type": "pubkey";
1089
+ },
1090
+ {
1091
+ "name": "hash";
1092
+ "type": {
1093
+ "array": [
1094
+ "u8",
1095
+ 32
1096
+ ];
1097
+ };
1098
+ },
1099
+ {
1100
+ "name": "signature";
1101
+ "type": "bytes";
1102
+ }
1103
+ ];
1104
+ },
1105
+ {
1106
+ "name": "version";
1107
+ "discriminator": [
1108
+ 118,
1109
+ 65,
1110
+ 195,
1111
+ 198,
1112
+ 129,
1113
+ 216,
1114
+ 252,
1115
+ 192
1116
+ ];
1117
+ "accounts": [
1118
+ {
1119
+ "name": "version";
1120
+ "writable": true;
1121
+ "pda": {
1122
+ "seeds": [
1123
+ {
1124
+ "kind": "const";
1125
+ "value": [
1126
+ 118,
1127
+ 101,
1128
+ 114,
1129
+ 115,
1130
+ 105,
1131
+ 111,
1132
+ 110
1133
+ ];
1134
+ }
1135
+ ];
1136
+ };
1137
+ },
1138
+ {
1139
+ "name": "authority";
1140
+ "writable": true;
1141
+ "signer": true;
1142
+ },
1143
+ {
1144
+ "name": "systemProgram";
1145
+ "address": "11111111111111111111111111111111";
1146
+ }
1147
+ ];
1148
+ "args": [];
1149
+ },
1150
+ {
1151
+ "name": "withdraw";
1152
+ "discriminator": [
1153
+ 183,
1154
+ 18,
1155
+ 70,
1156
+ 156,
1157
+ 148,
1158
+ 109,
1159
+ 161,
1160
+ 34
1161
+ ];
1162
+ "accounts": [
1163
+ {
1164
+ "name": "authority";
1165
+ "writable": true;
1166
+ "signer": true;
1167
+ },
1168
+ {
1169
+ "name": "airdrop";
1170
+ "writable": true;
1171
+ "pda": {
1172
+ "seeds": [
1173
+ {
1174
+ "kind": "const";
1175
+ "value": [
1176
+ 97,
1177
+ 105,
1178
+ 114,
1179
+ 100,
1180
+ 114,
1181
+ 111,
1182
+ 112
1183
+ ];
1184
+ },
1185
+ {
1186
+ "kind": "arg";
1187
+ "path": "projectId";
1188
+ }
1189
+ ];
1190
+ };
1191
+ },
1192
+ {
1193
+ "name": "vault";
1194
+ "writable": true;
1195
+ "pda": {
1196
+ "seeds": [
1197
+ {
1198
+ "kind": "const";
1199
+ "value": [
1200
+ 118,
1201
+ 97,
1202
+ 117,
1203
+ 108,
1204
+ 116
1205
+ ];
1206
+ },
1207
+ {
1208
+ "kind": "account";
1209
+ "path": "airdrop";
1210
+ }
1211
+ ];
1212
+ };
1213
+ },
1214
+ {
1215
+ "name": "authorityAta";
1216
+ "writable": true;
1217
+ "pda": {
1218
+ "seeds": [
1219
+ {
1220
+ "kind": "account";
1221
+ "path": "authority";
1222
+ },
1223
+ {
1224
+ "kind": "account";
1225
+ "path": "tokenProgram";
1226
+ },
1227
+ {
1228
+ "kind": "account";
1229
+ "path": "tokenMint";
1230
+ }
1231
+ ];
1232
+ "program": {
1233
+ "kind": "const";
1234
+ "value": [
1235
+ 140,
1236
+ 151,
1237
+ 37,
1238
+ 143,
1239
+ 78,
1240
+ 36,
1241
+ 137,
1242
+ 241,
1243
+ 187,
1244
+ 61,
1245
+ 16,
1246
+ 41,
1247
+ 20,
1248
+ 142,
1249
+ 13,
1250
+ 131,
1251
+ 11,
1252
+ 90,
1253
+ 19,
1254
+ 153,
1255
+ 218,
1256
+ 255,
1257
+ 16,
1258
+ 132,
1259
+ 4,
1260
+ 142,
1261
+ 123,
1262
+ 216,
1263
+ 219,
1264
+ 233,
1265
+ 248,
1266
+ 89
1267
+ ];
1268
+ };
1269
+ };
1270
+ },
1271
+ {
1272
+ "name": "tokenMint";
1273
+ },
1274
+ {
1275
+ "name": "systemProgram";
1276
+ "address": "11111111111111111111111111111111";
1277
+ },
1278
+ {
1279
+ "name": "tokenProgram";
1280
+ },
1281
+ {
1282
+ "name": "associatedTokenProgram";
1283
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1284
+ }
1285
+ ];
1286
+ "args": [
1287
+ {
1288
+ "name": "projectId";
1289
+ "type": "string";
1290
+ }
1291
+ ];
1292
+ }
1293
+ ];
1294
+ "accounts": [
1295
+ {
1296
+ "name": "airdrop";
1297
+ "discriminator": [
1298
+ 31,
1299
+ 112,
1300
+ 159,
1301
+ 158,
1302
+ 124,
1303
+ 237,
1304
+ 9,
1305
+ 241
1306
+ ];
1307
+ },
1308
+ {
1309
+ "name": "claim";
1310
+ "discriminator": [
1311
+ 155,
1312
+ 70,
1313
+ 22,
1314
+ 176,
1315
+ 123,
1316
+ 215,
1317
+ 246,
1318
+ 102
1319
+ ];
1320
+ },
1321
+ {
1322
+ "name": "config";
1323
+ "discriminator": [
1324
+ 155,
1325
+ 12,
1326
+ 170,
1327
+ 224,
1328
+ 30,
1329
+ 250,
1330
+ 204,
1331
+ 130
1332
+ ];
1333
+ },
1334
+ {
1335
+ "name": "feeCollectorStorage";
1336
+ "discriminator": [
1337
+ 204,
1338
+ 100,
1339
+ 40,
1340
+ 33,
1341
+ 80,
1342
+ 124,
1343
+ 161,
1344
+ 126
1345
+ ];
1346
+ },
1347
+ {
1348
+ "name": "version";
1349
+ "discriminator": [
1350
+ 234,
1351
+ 4,
1352
+ 254,
1353
+ 42,
1354
+ 242,
1355
+ 196,
1356
+ 136,
1357
+ 199
1358
+ ];
1359
+ }
1360
+ ];
1361
+ "events": [
1362
+ {
1363
+ "name": "claimDelegateSet";
1364
+ "discriminator": [
1365
+ 82,
1366
+ 153,
1367
+ 121,
1368
+ 138,
1369
+ 224,
1370
+ 132,
1371
+ 71,
1372
+ 59
1373
+ ];
1374
+ },
1375
+ {
1376
+ "name": "claimed";
1377
+ "discriminator": [
1378
+ 217,
1379
+ 192,
1380
+ 123,
1381
+ 72,
1382
+ 108,
1383
+ 150,
1384
+ 248,
1385
+ 33
1386
+ ];
1387
+ },
1388
+ {
1389
+ "name": "deployed";
1390
+ "discriminator": [
1391
+ 50,
1392
+ 145,
1393
+ 94,
1394
+ 59,
1395
+ 169,
1396
+ 255,
1397
+ 159,
1398
+ 186
1399
+ ];
1400
+ },
1401
+ {
1402
+ "name": "initialized";
1403
+ "discriminator": [
1404
+ 208,
1405
+ 213,
1406
+ 115,
1407
+ 98,
1408
+ 115,
1409
+ 82,
1410
+ 201,
1411
+ 209
1412
+ ];
1413
+ }
1414
+ ];
1415
+ "errors": [
1416
+ {
1417
+ "code": 6000;
1418
+ "name": "alreadyDeployed";
1419
+ "msg": "alreadyDeployed";
1420
+ },
1421
+ {
1422
+ "code": 6001;
1423
+ "name": "unsupportedOperation";
1424
+ "msg": "unsupportedOperation";
1425
+ },
1426
+ {
1427
+ "code": 6002;
1428
+ "name": "timeInactive";
1429
+ "msg": "timeInactive";
1430
+ },
1431
+ {
1432
+ "code": 6003;
1433
+ "name": "invalidSignature";
1434
+ "msg": "invalidSignature";
1435
+ },
1436
+ {
1437
+ "code": 6004;
1438
+ "name": "incorrectFees";
1439
+ "msg": "incorrectFees";
1440
+ },
1441
+ {
1442
+ "code": 6005;
1443
+ "name": "outsideClaimableTimeRange";
1444
+ "msg": "outsideClaimableTimeRange";
1445
+ },
1446
+ {
1447
+ "code": 6006;
1448
+ "name": "alreadyInitialized";
1449
+ "msg": "alreadyInitialized";
1450
+ },
1451
+ {
1452
+ "code": 6007;
1453
+ "name": "notOwner";
1454
+ "msg": "notOwner";
1455
+ },
1456
+ {
1457
+ "code": 6008;
1458
+ "name": "notProgramAdmin";
1459
+ "msg": "notProgramAdmin";
1460
+ },
1461
+ {
1462
+ "code": 6009;
1463
+ "name": "notPermissioned";
1464
+ "msg": "notPermissioned";
1465
+ },
1466
+ {
1467
+ "code": 6010;
1468
+ "name": "ownableUnauthorizedAccount";
1469
+ "msg": "ownableUnauthorizedAccount";
1470
+ },
1471
+ {
1472
+ "code": 6011;
1473
+ "name": "invalidFeeCollector";
1474
+ "msg": "invalidFeeCollector";
1475
+ },
1476
+ {
1477
+ "code": 6012;
1478
+ "name": "paused";
1479
+ "msg": "paused";
1480
+ }
1481
+ ];
1482
+ "types": [
1483
+ {
1484
+ "name": "airdrop";
1485
+ "type": {
1486
+ "kind": "struct";
1487
+ "fields": [
1488
+ {
1489
+ "name": "owner";
1490
+ "type": "pubkey";
1491
+ },
1492
+ {
1493
+ "name": "authorizedSigner";
1494
+ "type": "pubkey";
1495
+ },
1496
+ {
1497
+ "name": "token";
1498
+ "type": "pubkey";
1499
+ },
1500
+ {
1501
+ "name": "startTime";
1502
+ "type": "u64";
1503
+ },
1504
+ {
1505
+ "name": "endTime";
1506
+ "type": "u64";
1507
+ },
1508
+ {
1509
+ "name": "feeCollector";
1510
+ "type": "pubkey";
1511
+ },
1512
+ {
1513
+ "name": "feeToken";
1514
+ "type": "pubkey";
1515
+ },
1516
+ {
1517
+ "name": "paused";
1518
+ "type": "bool";
1519
+ }
1520
+ ];
1521
+ };
1522
+ },
1523
+ {
1524
+ "name": "claim";
1525
+ "type": {
1526
+ "kind": "struct";
1527
+ "fields": [
1528
+ {
1529
+ "name": "used";
1530
+ "type": "bool";
1531
+ }
1532
+ ];
1533
+ };
1534
+ },
1535
+ {
1536
+ "name": "claimDelegateSet";
1537
+ "type": {
1538
+ "kind": "struct";
1539
+ "fields": [
1540
+ {
1541
+ "name": "delegate";
1542
+ "type": "pubkey";
1543
+ }
1544
+ ];
1545
+ };
1546
+ },
1547
+ {
1548
+ "name": "claimed";
1549
+ "type": {
1550
+ "kind": "struct";
1551
+ "fields": [
1552
+ {
1553
+ "name": "recipient";
1554
+ "type": "pubkey";
1555
+ },
1556
+ {
1557
+ "name": "group";
1558
+ "type": {
1559
+ "array": [
1560
+ "u8",
1561
+ 32
1562
+ ];
1563
+ };
1564
+ },
1565
+ {
1566
+ "name": "data";
1567
+ "type": {
1568
+ "defined": {
1569
+ "name": "eddsaDistributorData";
1570
+ };
1571
+ };
1572
+ }
1573
+ ];
1574
+ };
1575
+ },
1576
+ {
1577
+ "name": "config";
1578
+ "type": {
1579
+ "kind": "struct";
1580
+ "fields": [
1581
+ {
1582
+ "name": "admin";
1583
+ "type": "pubkey";
1584
+ },
1585
+ {
1586
+ "name": "newAdmin";
1587
+ "type": "pubkey";
1588
+ },
1589
+ {
1590
+ "name": "defaultFeeCollector";
1591
+ "type": "pubkey";
1592
+ }
1593
+ ];
1594
+ };
1595
+ },
1596
+ {
1597
+ "name": "deployed";
1598
+ "type": {
1599
+ "kind": "struct";
1600
+ "fields": [];
1601
+ };
1602
+ },
1603
+ {
1604
+ "name": "eddsaDistributorData";
1605
+ "type": {
1606
+ "kind": "struct";
1607
+ "fields": [
1608
+ {
1609
+ "name": "claimableTimestamp";
1610
+ "type": "u64";
1611
+ },
1612
+ {
1613
+ "name": "claimableAmount";
1614
+ "type": "u64";
1615
+ },
1616
+ {
1617
+ "name": "fees";
1618
+ "type": "u64";
1619
+ }
1620
+ ];
1621
+ };
1622
+ },
1623
+ {
1624
+ "name": "feeCollectorStorage";
1625
+ "type": {
1626
+ "kind": "struct";
1627
+ "fields": [
1628
+ {
1629
+ "name": "owner";
1630
+ "type": "pubkey";
1631
+ },
1632
+ {
1633
+ "name": "newOwner";
1634
+ "type": "pubkey";
1635
+ },
1636
+ {
1637
+ "name": "defaultFeesBips";
1638
+ "type": "u64";
1639
+ }
1640
+ ];
1641
+ };
1642
+ },
1643
+ {
1644
+ "name": "initialized";
1645
+ "type": {
1646
+ "kind": "struct";
1647
+ "fields": [
1648
+ {
1649
+ "name": "projectId";
1650
+ "type": "string";
1651
+ }
1652
+ ];
1653
+ };
1654
+ },
1655
+ {
1656
+ "name": "version";
1657
+ "type": {
1658
+ "kind": "struct";
1659
+ "fields": [
1660
+ {
1661
+ "name": "version";
1662
+ "type": "string";
1663
+ }
1664
+ ];
1665
+ };
1666
+ }
1667
+ ];
1668
+ };