@streamflow/distributor 8.4.0 → 8.6.0
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.
- package/dist/cjs/index.cjs +1297 -234
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/solana/descriptor/aligned_distributor.d.cts +155 -1
- package/dist/cjs/solana/descriptor/merkle_distributor.d.cts +9 -1
- package/dist/cjs/solana/index.cjs +1297 -234
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/cjs/solana/index.d.cts +2 -0
- package/dist/esm/index.js +1297 -234
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/descriptor/aligned_distributor.d.ts +155 -1
- package/dist/esm/solana/descriptor/idl/aligned_distributor.json +624 -97
- package/dist/esm/solana/descriptor/idl/merkle_distributor.json +761 -139
- package/dist/esm/solana/descriptor/merkle_distributor.d.ts +9 -1
- package/dist/esm/solana/index.d.ts +2 -0
- package/dist/esm/solana/index.js +1297 -234
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -256,7 +256,8 @@ function closeClaim(args, accounts, programId = PROGRAM_ID) {
|
|
|
256
256
|
const keys = [
|
|
257
257
|
{ pubkey: accounts.distributor, isSigner: false, isWritable: true },
|
|
258
258
|
{ pubkey: accounts.adminOrClaimant, isSigner: true, isWritable: true },
|
|
259
|
-
{ pubkey: accounts.
|
|
259
|
+
{ pubkey: accounts.payer, isSigner: true, isWritable: true },
|
|
260
|
+
{ pubkey: accounts.claimant, isSigner: false, isWritable: true },
|
|
260
261
|
{ pubkey: accounts.claimStatus, isSigner: false, isWritable: true },
|
|
261
262
|
{ pubkey: accounts.systemProgram, isSigner: false, isWritable: false },
|
|
262
263
|
{ pubkey: accounts.eventAuthority, isSigner: false, isWritable: false },
|
|
@@ -345,7 +346,7 @@ var merkle_distributor_default = {
|
|
|
345
346
|
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N",
|
|
346
347
|
metadata: {
|
|
347
348
|
name: "merkle_distributor",
|
|
348
|
-
version: "1.5.
|
|
349
|
+
version: "1.5.1",
|
|
349
350
|
spec: "0.1.0",
|
|
350
351
|
description: "A Solana program for distributing tokens according to a Merkle root.",
|
|
351
352
|
repository: "https://github.com/streamflow-finance/distributor"
|
|
@@ -353,21 +354,46 @@ var merkle_distributor_default = {
|
|
|
353
354
|
instructions: [
|
|
354
355
|
{
|
|
355
356
|
name: "_expose_claim",
|
|
356
|
-
discriminator: [
|
|
357
|
+
discriminator: [
|
|
358
|
+
103,
|
|
359
|
+
233,
|
|
360
|
+
83,
|
|
361
|
+
69,
|
|
362
|
+
115,
|
|
363
|
+
199,
|
|
364
|
+
128,
|
|
365
|
+
249
|
|
366
|
+
],
|
|
357
367
|
accounts: [
|
|
358
368
|
{
|
|
359
369
|
name: "distributor",
|
|
360
|
-
docs: [
|
|
370
|
+
docs: [
|
|
371
|
+
"The [MerkleDistributor]."
|
|
372
|
+
]
|
|
361
373
|
},
|
|
362
374
|
{
|
|
363
375
|
name: "claim_status",
|
|
364
|
-
docs: [
|
|
376
|
+
docs: [
|
|
377
|
+
"Claim Status PDA"
|
|
378
|
+
],
|
|
365
379
|
optional: true,
|
|
366
380
|
pda: {
|
|
367
381
|
seeds: [
|
|
368
382
|
{
|
|
369
383
|
kind: "const",
|
|
370
|
-
value: [
|
|
384
|
+
value: [
|
|
385
|
+
67,
|
|
386
|
+
108,
|
|
387
|
+
97,
|
|
388
|
+
105,
|
|
389
|
+
109,
|
|
390
|
+
83,
|
|
391
|
+
116,
|
|
392
|
+
97,
|
|
393
|
+
116,
|
|
394
|
+
117,
|
|
395
|
+
115
|
|
396
|
+
]
|
|
371
397
|
},
|
|
372
398
|
{
|
|
373
399
|
kind: "account",
|
|
@@ -382,13 +408,27 @@ var merkle_distributor_default = {
|
|
|
382
408
|
},
|
|
383
409
|
{
|
|
384
410
|
name: "compressed_claim_status",
|
|
385
|
-
docs: [
|
|
411
|
+
docs: [
|
|
412
|
+
"Compress Claim Status PDA"
|
|
413
|
+
],
|
|
386
414
|
optional: true,
|
|
387
415
|
pda: {
|
|
388
416
|
seeds: [
|
|
389
417
|
{
|
|
390
418
|
kind: "const",
|
|
391
|
-
value: [
|
|
419
|
+
value: [
|
|
420
|
+
67,
|
|
421
|
+
108,
|
|
422
|
+
97,
|
|
423
|
+
105,
|
|
424
|
+
109,
|
|
425
|
+
83,
|
|
426
|
+
116,
|
|
427
|
+
97,
|
|
428
|
+
116,
|
|
429
|
+
117,
|
|
430
|
+
115
|
|
431
|
+
]
|
|
392
432
|
},
|
|
393
433
|
{
|
|
394
434
|
kind: "account",
|
|
@@ -403,7 +443,9 @@ var merkle_distributor_default = {
|
|
|
403
443
|
},
|
|
404
444
|
{
|
|
405
445
|
name: "claimant",
|
|
406
|
-
docs: [
|
|
446
|
+
docs: [
|
|
447
|
+
"Who is claiming the tokens."
|
|
448
|
+
],
|
|
407
449
|
signer: true
|
|
408
450
|
}
|
|
409
451
|
],
|
|
@@ -411,11 +453,22 @@ var merkle_distributor_default = {
|
|
|
411
453
|
},
|
|
412
454
|
{
|
|
413
455
|
name: "claim_locked",
|
|
414
|
-
discriminator: [
|
|
456
|
+
discriminator: [
|
|
457
|
+
34,
|
|
458
|
+
206,
|
|
459
|
+
181,
|
|
460
|
+
23,
|
|
461
|
+
11,
|
|
462
|
+
207,
|
|
463
|
+
147,
|
|
464
|
+
90
|
|
465
|
+
],
|
|
415
466
|
accounts: [
|
|
416
467
|
{
|
|
417
468
|
name: "distributor",
|
|
418
|
-
docs: [
|
|
469
|
+
docs: [
|
|
470
|
+
"The [MerkleDistributor]."
|
|
471
|
+
],
|
|
419
472
|
writable: true
|
|
420
473
|
},
|
|
421
474
|
{
|
|
@@ -425,7 +478,19 @@ var merkle_distributor_default = {
|
|
|
425
478
|
seeds: [
|
|
426
479
|
{
|
|
427
480
|
kind: "const",
|
|
428
|
-
value: [
|
|
481
|
+
value: [
|
|
482
|
+
67,
|
|
483
|
+
108,
|
|
484
|
+
97,
|
|
485
|
+
105,
|
|
486
|
+
109,
|
|
487
|
+
83,
|
|
488
|
+
116,
|
|
489
|
+
97,
|
|
490
|
+
116,
|
|
491
|
+
117,
|
|
492
|
+
115
|
|
493
|
+
]
|
|
429
494
|
},
|
|
430
495
|
{
|
|
431
496
|
kind: "account",
|
|
@@ -440,7 +505,9 @@ var merkle_distributor_default = {
|
|
|
440
505
|
},
|
|
441
506
|
{
|
|
442
507
|
name: "from",
|
|
443
|
-
docs: [
|
|
508
|
+
docs: [
|
|
509
|
+
"Distributor ATA containing the tokens to distribute."
|
|
510
|
+
],
|
|
444
511
|
writable: true,
|
|
445
512
|
pda: {
|
|
446
513
|
seeds: [
|
|
@@ -507,18 +574,26 @@ var merkle_distributor_default = {
|
|
|
507
574
|
},
|
|
508
575
|
{
|
|
509
576
|
name: "claimant",
|
|
510
|
-
docs: [
|
|
577
|
+
docs: [
|
|
578
|
+
"Who is claiming the tokens."
|
|
579
|
+
],
|
|
511
580
|
writable: true,
|
|
512
581
|
signer: true
|
|
513
582
|
},
|
|
514
583
|
{
|
|
515
584
|
name: "mint",
|
|
516
|
-
docs: [
|
|
517
|
-
|
|
585
|
+
docs: [
|
|
586
|
+
"The mint to claim."
|
|
587
|
+
],
|
|
588
|
+
relations: [
|
|
589
|
+
"distributor"
|
|
590
|
+
]
|
|
518
591
|
},
|
|
519
592
|
{
|
|
520
593
|
name: "token_program",
|
|
521
|
-
docs: [
|
|
594
|
+
docs: [
|
|
595
|
+
"SPL [Token] program."
|
|
596
|
+
]
|
|
522
597
|
},
|
|
523
598
|
{
|
|
524
599
|
name: "event_authority",
|
|
@@ -526,7 +601,25 @@ var merkle_distributor_default = {
|
|
|
526
601
|
seeds: [
|
|
527
602
|
{
|
|
528
603
|
kind: "const",
|
|
529
|
-
value: [
|
|
604
|
+
value: [
|
|
605
|
+
95,
|
|
606
|
+
95,
|
|
607
|
+
101,
|
|
608
|
+
118,
|
|
609
|
+
101,
|
|
610
|
+
110,
|
|
611
|
+
116,
|
|
612
|
+
95,
|
|
613
|
+
97,
|
|
614
|
+
117,
|
|
615
|
+
116,
|
|
616
|
+
104,
|
|
617
|
+
111,
|
|
618
|
+
114,
|
|
619
|
+
105,
|
|
620
|
+
116,
|
|
621
|
+
121
|
|
622
|
+
]
|
|
530
623
|
}
|
|
531
624
|
]
|
|
532
625
|
}
|
|
@@ -539,26 +632,43 @@ var merkle_distributor_default = {
|
|
|
539
632
|
},
|
|
540
633
|
{
|
|
541
634
|
name: "clawback",
|
|
542
|
-
discriminator: [
|
|
635
|
+
discriminator: [
|
|
636
|
+
111,
|
|
637
|
+
92,
|
|
638
|
+
142,
|
|
639
|
+
79,
|
|
640
|
+
33,
|
|
641
|
+
234,
|
|
642
|
+
82,
|
|
643
|
+
27
|
|
644
|
+
],
|
|
543
645
|
accounts: [
|
|
544
646
|
{
|
|
545
647
|
name: "distributor",
|
|
546
|
-
docs: [
|
|
648
|
+
docs: [
|
|
649
|
+
"The [MerkleDistributor]."
|
|
650
|
+
],
|
|
547
651
|
writable: true
|
|
548
652
|
},
|
|
549
653
|
{
|
|
550
654
|
name: "from",
|
|
551
|
-
docs: [
|
|
655
|
+
docs: [
|
|
656
|
+
"Distributor ATA containing the tokens to distribute."
|
|
657
|
+
],
|
|
552
658
|
writable: true
|
|
553
659
|
},
|
|
554
660
|
{
|
|
555
661
|
name: "to",
|
|
556
|
-
docs: [
|
|
662
|
+
docs: [
|
|
663
|
+
"The Clawback token account."
|
|
664
|
+
],
|
|
557
665
|
writable: true
|
|
558
666
|
},
|
|
559
667
|
{
|
|
560
668
|
name: "admin",
|
|
561
|
-
docs: [
|
|
669
|
+
docs: [
|
|
670
|
+
"Only Admin can trigger the clawback of funds"
|
|
671
|
+
],
|
|
562
672
|
writable: true,
|
|
563
673
|
signer: true
|
|
564
674
|
},
|
|
@@ -567,28 +677,53 @@ var merkle_distributor_default = {
|
|
|
567
677
|
},
|
|
568
678
|
{
|
|
569
679
|
name: "system_program",
|
|
570
|
-
docs: [
|
|
680
|
+
docs: [
|
|
681
|
+
"The [System] program."
|
|
682
|
+
],
|
|
571
683
|
address: "11111111111111111111111111111111"
|
|
572
684
|
},
|
|
573
685
|
{
|
|
574
686
|
name: "token_program",
|
|
575
|
-
docs: [
|
|
687
|
+
docs: [
|
|
688
|
+
"SPL [Token] program."
|
|
689
|
+
]
|
|
576
690
|
}
|
|
577
691
|
],
|
|
578
692
|
args: []
|
|
579
693
|
},
|
|
580
694
|
{
|
|
581
695
|
name: "close_claim",
|
|
582
|
-
discriminator: [
|
|
696
|
+
discriminator: [
|
|
697
|
+
42,
|
|
698
|
+
177,
|
|
699
|
+
165,
|
|
700
|
+
35,
|
|
701
|
+
213,
|
|
702
|
+
179,
|
|
703
|
+
211,
|
|
704
|
+
19
|
|
705
|
+
],
|
|
583
706
|
accounts: [
|
|
584
707
|
{
|
|
585
708
|
name: "distributor",
|
|
586
|
-
docs: [
|
|
709
|
+
docs: [
|
|
710
|
+
"The [MerkleDistributor]."
|
|
711
|
+
],
|
|
587
712
|
writable: true
|
|
588
713
|
},
|
|
589
714
|
{
|
|
590
715
|
name: "admin_or_claimant",
|
|
591
|
-
docs: [
|
|
716
|
+
docs: [
|
|
717
|
+
"Admin signer"
|
|
718
|
+
],
|
|
719
|
+
writable: true,
|
|
720
|
+
signer: true
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: "payer",
|
|
724
|
+
docs: [
|
|
725
|
+
"Optional payer for the account creation in case it doesn't exist"
|
|
726
|
+
],
|
|
592
727
|
writable: true,
|
|
593
728
|
signer: true
|
|
594
729
|
},
|
|
@@ -603,7 +738,19 @@ var merkle_distributor_default = {
|
|
|
603
738
|
seeds: [
|
|
604
739
|
{
|
|
605
740
|
kind: "const",
|
|
606
|
-
value: [
|
|
741
|
+
value: [
|
|
742
|
+
67,
|
|
743
|
+
108,
|
|
744
|
+
97,
|
|
745
|
+
105,
|
|
746
|
+
109,
|
|
747
|
+
83,
|
|
748
|
+
116,
|
|
749
|
+
97,
|
|
750
|
+
116,
|
|
751
|
+
117,
|
|
752
|
+
115
|
|
753
|
+
]
|
|
607
754
|
},
|
|
608
755
|
{
|
|
609
756
|
kind: "account",
|
|
@@ -618,7 +765,9 @@ var merkle_distributor_default = {
|
|
|
618
765
|
},
|
|
619
766
|
{
|
|
620
767
|
name: "system_program",
|
|
621
|
-
docs: [
|
|
768
|
+
docs: [
|
|
769
|
+
"The [System] program."
|
|
770
|
+
],
|
|
622
771
|
address: "11111111111111111111111111111111"
|
|
623
772
|
},
|
|
624
773
|
{
|
|
@@ -627,7 +776,25 @@ var merkle_distributor_default = {
|
|
|
627
776
|
seeds: [
|
|
628
777
|
{
|
|
629
778
|
kind: "const",
|
|
630
|
-
value: [
|
|
779
|
+
value: [
|
|
780
|
+
95,
|
|
781
|
+
95,
|
|
782
|
+
101,
|
|
783
|
+
118,
|
|
784
|
+
101,
|
|
785
|
+
110,
|
|
786
|
+
116,
|
|
787
|
+
95,
|
|
788
|
+
97,
|
|
789
|
+
117,
|
|
790
|
+
116,
|
|
791
|
+
104,
|
|
792
|
+
111,
|
|
793
|
+
114,
|
|
794
|
+
105,
|
|
795
|
+
116,
|
|
796
|
+
121
|
|
797
|
+
]
|
|
631
798
|
}
|
|
632
799
|
]
|
|
633
800
|
}
|
|
@@ -654,7 +821,10 @@ var merkle_distributor_default = {
|
|
|
654
821
|
type: {
|
|
655
822
|
option: {
|
|
656
823
|
vec: {
|
|
657
|
-
array: [
|
|
824
|
+
array: [
|
|
825
|
+
"u8",
|
|
826
|
+
32
|
|
827
|
+
]
|
|
658
828
|
}
|
|
659
829
|
}
|
|
660
830
|
}
|
|
@@ -663,11 +833,22 @@ var merkle_distributor_default = {
|
|
|
663
833
|
},
|
|
664
834
|
{
|
|
665
835
|
name: "compress_claim",
|
|
666
|
-
discriminator: [
|
|
836
|
+
discriminator: [
|
|
837
|
+
219,
|
|
838
|
+
45,
|
|
839
|
+
247,
|
|
840
|
+
134,
|
|
841
|
+
71,
|
|
842
|
+
119,
|
|
843
|
+
125,
|
|
844
|
+
89
|
|
845
|
+
],
|
|
667
846
|
accounts: [
|
|
668
847
|
{
|
|
669
848
|
name: "distributor",
|
|
670
|
-
docs: [
|
|
849
|
+
docs: [
|
|
850
|
+
"The [MerkleDistributor]."
|
|
851
|
+
],
|
|
671
852
|
writable: true
|
|
672
853
|
},
|
|
673
854
|
{
|
|
@@ -677,7 +858,19 @@ var merkle_distributor_default = {
|
|
|
677
858
|
seeds: [
|
|
678
859
|
{
|
|
679
860
|
kind: "const",
|
|
680
|
-
value: [
|
|
861
|
+
value: [
|
|
862
|
+
67,
|
|
863
|
+
108,
|
|
864
|
+
97,
|
|
865
|
+
105,
|
|
866
|
+
109,
|
|
867
|
+
83,
|
|
868
|
+
116,
|
|
869
|
+
97,
|
|
870
|
+
116,
|
|
871
|
+
117,
|
|
872
|
+
115
|
|
873
|
+
]
|
|
681
874
|
},
|
|
682
875
|
{
|
|
683
876
|
kind: "account",
|
|
@@ -692,7 +885,9 @@ var merkle_distributor_default = {
|
|
|
692
885
|
},
|
|
693
886
|
{
|
|
694
887
|
name: "signer",
|
|
695
|
-
docs: [
|
|
888
|
+
docs: [
|
|
889
|
+
"Signer account"
|
|
890
|
+
],
|
|
696
891
|
writable: true,
|
|
697
892
|
signer: true
|
|
698
893
|
},
|
|
@@ -701,7 +896,9 @@ var merkle_distributor_default = {
|
|
|
701
896
|
},
|
|
702
897
|
{
|
|
703
898
|
name: "system_program",
|
|
704
|
-
docs: [
|
|
899
|
+
docs: [
|
|
900
|
+
"The [System] program."
|
|
901
|
+
],
|
|
705
902
|
address: "11111111111111111111111111111111"
|
|
706
903
|
}
|
|
707
904
|
],
|
|
@@ -709,11 +906,22 @@ var merkle_distributor_default = {
|
|
|
709
906
|
},
|
|
710
907
|
{
|
|
711
908
|
name: "new_claim",
|
|
712
|
-
discriminator: [
|
|
909
|
+
discriminator: [
|
|
910
|
+
78,
|
|
911
|
+
177,
|
|
912
|
+
98,
|
|
913
|
+
123,
|
|
914
|
+
210,
|
|
915
|
+
21,
|
|
916
|
+
187,
|
|
917
|
+
83
|
|
918
|
+
],
|
|
713
919
|
accounts: [
|
|
714
920
|
{
|
|
715
921
|
name: "distributor",
|
|
716
|
-
docs: [
|
|
922
|
+
docs: [
|
|
923
|
+
"The [MerkleDistributor]."
|
|
924
|
+
],
|
|
717
925
|
writable: true
|
|
718
926
|
},
|
|
719
927
|
{
|
|
@@ -723,7 +931,19 @@ var merkle_distributor_default = {
|
|
|
723
931
|
seeds: [
|
|
724
932
|
{
|
|
725
933
|
kind: "const",
|
|
726
|
-
value: [
|
|
934
|
+
value: [
|
|
935
|
+
67,
|
|
936
|
+
108,
|
|
937
|
+
97,
|
|
938
|
+
105,
|
|
939
|
+
109,
|
|
940
|
+
83,
|
|
941
|
+
116,
|
|
942
|
+
97,
|
|
943
|
+
116,
|
|
944
|
+
117,
|
|
945
|
+
115
|
|
946
|
+
]
|
|
727
947
|
},
|
|
728
948
|
{
|
|
729
949
|
kind: "account",
|
|
@@ -738,7 +958,9 @@ var merkle_distributor_default = {
|
|
|
738
958
|
},
|
|
739
959
|
{
|
|
740
960
|
name: "from",
|
|
741
|
-
docs: [
|
|
961
|
+
docs: [
|
|
962
|
+
"Distributor ATA containing the tokens to distribute."
|
|
963
|
+
],
|
|
742
964
|
writable: true,
|
|
743
965
|
pda: {
|
|
744
966
|
seeds: [
|
|
@@ -797,27 +1019,39 @@ var merkle_distributor_default = {
|
|
|
797
1019
|
},
|
|
798
1020
|
{
|
|
799
1021
|
name: "to",
|
|
800
|
-
docs: [
|
|
1022
|
+
docs: [
|
|
1023
|
+
"Account to send the claimed tokens to."
|
|
1024
|
+
],
|
|
801
1025
|
writable: true
|
|
802
1026
|
},
|
|
803
1027
|
{
|
|
804
1028
|
name: "claimant",
|
|
805
|
-
docs: [
|
|
1029
|
+
docs: [
|
|
1030
|
+
"Who is claiming the tokens."
|
|
1031
|
+
],
|
|
806
1032
|
writable: true,
|
|
807
1033
|
signer: true
|
|
808
1034
|
},
|
|
809
1035
|
{
|
|
810
1036
|
name: "mint",
|
|
811
|
-
docs: [
|
|
812
|
-
|
|
1037
|
+
docs: [
|
|
1038
|
+
"The mint to claim."
|
|
1039
|
+
],
|
|
1040
|
+
relations: [
|
|
1041
|
+
"distributor"
|
|
1042
|
+
]
|
|
813
1043
|
},
|
|
814
1044
|
{
|
|
815
1045
|
name: "token_program",
|
|
816
|
-
docs: [
|
|
1046
|
+
docs: [
|
|
1047
|
+
"SPL [Token] program."
|
|
1048
|
+
]
|
|
817
1049
|
},
|
|
818
1050
|
{
|
|
819
1051
|
name: "system_program",
|
|
820
|
-
docs: [
|
|
1052
|
+
docs: [
|
|
1053
|
+
"The [System] program."
|
|
1054
|
+
],
|
|
821
1055
|
address: "11111111111111111111111111111111"
|
|
822
1056
|
},
|
|
823
1057
|
{
|
|
@@ -826,7 +1060,25 @@ var merkle_distributor_default = {
|
|
|
826
1060
|
seeds: [
|
|
827
1061
|
{
|
|
828
1062
|
kind: "const",
|
|
829
|
-
value: [
|
|
1063
|
+
value: [
|
|
1064
|
+
95,
|
|
1065
|
+
95,
|
|
1066
|
+
101,
|
|
1067
|
+
118,
|
|
1068
|
+
101,
|
|
1069
|
+
110,
|
|
1070
|
+
116,
|
|
1071
|
+
95,
|
|
1072
|
+
97,
|
|
1073
|
+
117,
|
|
1074
|
+
116,
|
|
1075
|
+
104,
|
|
1076
|
+
111,
|
|
1077
|
+
114,
|
|
1078
|
+
105,
|
|
1079
|
+
116,
|
|
1080
|
+
121
|
|
1081
|
+
]
|
|
830
1082
|
}
|
|
831
1083
|
]
|
|
832
1084
|
}
|
|
@@ -848,7 +1100,10 @@ var merkle_distributor_default = {
|
|
|
848
1100
|
name: "proof",
|
|
849
1101
|
type: {
|
|
850
1102
|
vec: {
|
|
851
|
-
array: [
|
|
1103
|
+
array: [
|
|
1104
|
+
"u8",
|
|
1105
|
+
32
|
|
1106
|
+
]
|
|
852
1107
|
}
|
|
853
1108
|
}
|
|
854
1109
|
}
|
|
@@ -876,17 +1131,46 @@ var merkle_distributor_default = {
|
|
|
876
1131
|
"assert the parameters are what you expect, most importantly the clawback_receiver and admin.",
|
|
877
1132
|
"- If your transaction fails, double check the value on-chain matches what you expect."
|
|
878
1133
|
],
|
|
879
|
-
discriminator: [
|
|
1134
|
+
discriminator: [
|
|
1135
|
+
32,
|
|
1136
|
+
139,
|
|
1137
|
+
112,
|
|
1138
|
+
171,
|
|
1139
|
+
0,
|
|
1140
|
+
2,
|
|
1141
|
+
225,
|
|
1142
|
+
155
|
|
1143
|
+
],
|
|
880
1144
|
accounts: [
|
|
881
1145
|
{
|
|
882
1146
|
name: "distributor",
|
|
883
|
-
docs: [
|
|
1147
|
+
docs: [
|
|
1148
|
+
"[MerkleDistributor]."
|
|
1149
|
+
],
|
|
884
1150
|
writable: true,
|
|
885
1151
|
pda: {
|
|
886
1152
|
seeds: [
|
|
887
1153
|
{
|
|
888
1154
|
kind: "const",
|
|
889
|
-
value: [
|
|
1155
|
+
value: [
|
|
1156
|
+
77,
|
|
1157
|
+
101,
|
|
1158
|
+
114,
|
|
1159
|
+
107,
|
|
1160
|
+
108,
|
|
1161
|
+
101,
|
|
1162
|
+
68,
|
|
1163
|
+
105,
|
|
1164
|
+
115,
|
|
1165
|
+
116,
|
|
1166
|
+
114,
|
|
1167
|
+
105,
|
|
1168
|
+
98,
|
|
1169
|
+
117,
|
|
1170
|
+
116,
|
|
1171
|
+
111,
|
|
1172
|
+
114
|
|
1173
|
+
]
|
|
890
1174
|
},
|
|
891
1175
|
{
|
|
892
1176
|
kind: "account",
|
|
@@ -901,16 +1185,22 @@ var merkle_distributor_default = {
|
|
|
901
1185
|
},
|
|
902
1186
|
{
|
|
903
1187
|
name: "clawback_receiver",
|
|
904
|
-
docs: [
|
|
1188
|
+
docs: [
|
|
1189
|
+
"Clawback receiver token account"
|
|
1190
|
+
],
|
|
905
1191
|
writable: true
|
|
906
1192
|
},
|
|
907
1193
|
{
|
|
908
1194
|
name: "mint",
|
|
909
|
-
docs: [
|
|
1195
|
+
docs: [
|
|
1196
|
+
"The mint to distribute."
|
|
1197
|
+
]
|
|
910
1198
|
},
|
|
911
1199
|
{
|
|
912
1200
|
name: "token_vault",
|
|
913
|
-
docs: [
|
|
1201
|
+
docs: [
|
|
1202
|
+
"Token vault"
|
|
1203
|
+
],
|
|
914
1204
|
writable: true,
|
|
915
1205
|
pda: {
|
|
916
1206
|
seeds: [
|
|
@@ -977,17 +1267,23 @@ var merkle_distributor_default = {
|
|
|
977
1267
|
},
|
|
978
1268
|
{
|
|
979
1269
|
name: "system_program",
|
|
980
|
-
docs: [
|
|
1270
|
+
docs: [
|
|
1271
|
+
"The [System] program."
|
|
1272
|
+
],
|
|
981
1273
|
address: "11111111111111111111111111111111"
|
|
982
1274
|
},
|
|
983
1275
|
{
|
|
984
1276
|
name: "associated_token_program",
|
|
985
|
-
docs: [
|
|
1277
|
+
docs: [
|
|
1278
|
+
"The [Associated Token] program."
|
|
1279
|
+
],
|
|
986
1280
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
987
1281
|
},
|
|
988
1282
|
{
|
|
989
1283
|
name: "token_program",
|
|
990
|
-
docs: [
|
|
1284
|
+
docs: [
|
|
1285
|
+
"The [Token] program."
|
|
1286
|
+
]
|
|
991
1287
|
}
|
|
992
1288
|
],
|
|
993
1289
|
args: [
|
|
@@ -998,7 +1294,10 @@ var merkle_distributor_default = {
|
|
|
998
1294
|
{
|
|
999
1295
|
name: "root",
|
|
1000
1296
|
type: {
|
|
1001
|
-
array: [
|
|
1297
|
+
array: [
|
|
1298
|
+
"u8",
|
|
1299
|
+
32
|
|
1300
|
+
]
|
|
1002
1301
|
}
|
|
1003
1302
|
},
|
|
1004
1303
|
{
|
|
@@ -1063,11 +1362,22 @@ var merkle_distributor_default = {
|
|
|
1063
1362
|
},
|
|
1064
1363
|
{
|
|
1065
1364
|
name: "refund_claim",
|
|
1066
|
-
discriminator: [
|
|
1365
|
+
discriminator: [
|
|
1366
|
+
157,
|
|
1367
|
+
23,
|
|
1368
|
+
164,
|
|
1369
|
+
146,
|
|
1370
|
+
176,
|
|
1371
|
+
53,
|
|
1372
|
+
147,
|
|
1373
|
+
143
|
|
1374
|
+
],
|
|
1067
1375
|
accounts: [
|
|
1068
1376
|
{
|
|
1069
1377
|
name: "distributor",
|
|
1070
|
-
docs: [
|
|
1378
|
+
docs: [
|
|
1379
|
+
"The [MerkleDistributor]."
|
|
1380
|
+
],
|
|
1071
1381
|
writable: true
|
|
1072
1382
|
},
|
|
1073
1383
|
{
|
|
@@ -1077,7 +1387,19 @@ var merkle_distributor_default = {
|
|
|
1077
1387
|
seeds: [
|
|
1078
1388
|
{
|
|
1079
1389
|
kind: "const",
|
|
1080
|
-
value: [
|
|
1390
|
+
value: [
|
|
1391
|
+
67,
|
|
1392
|
+
108,
|
|
1393
|
+
97,
|
|
1394
|
+
105,
|
|
1395
|
+
109,
|
|
1396
|
+
83,
|
|
1397
|
+
116,
|
|
1398
|
+
97,
|
|
1399
|
+
116,
|
|
1400
|
+
117,
|
|
1401
|
+
115
|
|
1402
|
+
]
|
|
1081
1403
|
},
|
|
1082
1404
|
{
|
|
1083
1405
|
kind: "account",
|
|
@@ -1092,7 +1414,9 @@ var merkle_distributor_default = {
|
|
|
1092
1414
|
},
|
|
1093
1415
|
{
|
|
1094
1416
|
name: "signer",
|
|
1095
|
-
docs: [
|
|
1417
|
+
docs: [
|
|
1418
|
+
"Signer account"
|
|
1419
|
+
],
|
|
1096
1420
|
writable: true,
|
|
1097
1421
|
signer: true
|
|
1098
1422
|
},
|
|
@@ -1106,7 +1430,9 @@ var merkle_distributor_default = {
|
|
|
1106
1430
|
},
|
|
1107
1431
|
{
|
|
1108
1432
|
name: "system_program",
|
|
1109
|
-
docs: [
|
|
1433
|
+
docs: [
|
|
1434
|
+
"The [System] program."
|
|
1435
|
+
],
|
|
1110
1436
|
address: "11111111111111111111111111111111"
|
|
1111
1437
|
}
|
|
1112
1438
|
],
|
|
@@ -1114,22 +1440,37 @@ var merkle_distributor_default = {
|
|
|
1114
1440
|
},
|
|
1115
1441
|
{
|
|
1116
1442
|
name: "set_admin",
|
|
1117
|
-
discriminator: [
|
|
1443
|
+
discriminator: [
|
|
1444
|
+
251,
|
|
1445
|
+
163,
|
|
1446
|
+
0,
|
|
1447
|
+
52,
|
|
1448
|
+
91,
|
|
1449
|
+
194,
|
|
1450
|
+
187,
|
|
1451
|
+
92
|
|
1452
|
+
],
|
|
1118
1453
|
accounts: [
|
|
1119
1454
|
{
|
|
1120
1455
|
name: "distributor",
|
|
1121
|
-
docs: [
|
|
1456
|
+
docs: [
|
|
1457
|
+
"The [MerkleDistributor]."
|
|
1458
|
+
],
|
|
1122
1459
|
writable: true
|
|
1123
1460
|
},
|
|
1124
1461
|
{
|
|
1125
1462
|
name: "admin",
|
|
1126
|
-
docs: [
|
|
1463
|
+
docs: [
|
|
1464
|
+
"Admin signer"
|
|
1465
|
+
],
|
|
1127
1466
|
writable: true,
|
|
1128
1467
|
signer: true
|
|
1129
1468
|
},
|
|
1130
1469
|
{
|
|
1131
1470
|
name: "new_admin",
|
|
1132
|
-
docs: [
|
|
1471
|
+
docs: [
|
|
1472
|
+
"New admin account"
|
|
1473
|
+
],
|
|
1133
1474
|
writable: true
|
|
1134
1475
|
}
|
|
1135
1476
|
],
|
|
@@ -1137,20 +1478,35 @@ var merkle_distributor_default = {
|
|
|
1137
1478
|
},
|
|
1138
1479
|
{
|
|
1139
1480
|
name: "set_clawback_receiver",
|
|
1140
|
-
discriminator: [
|
|
1481
|
+
discriminator: [
|
|
1482
|
+
153,
|
|
1483
|
+
217,
|
|
1484
|
+
34,
|
|
1485
|
+
20,
|
|
1486
|
+
19,
|
|
1487
|
+
29,
|
|
1488
|
+
229,
|
|
1489
|
+
75
|
|
1490
|
+
],
|
|
1141
1491
|
accounts: [
|
|
1142
1492
|
{
|
|
1143
1493
|
name: "distributor",
|
|
1144
|
-
docs: [
|
|
1494
|
+
docs: [
|
|
1495
|
+
"The [MerkleDistributor]."
|
|
1496
|
+
],
|
|
1145
1497
|
writable: true
|
|
1146
1498
|
},
|
|
1147
1499
|
{
|
|
1148
1500
|
name: "new_clawback_account",
|
|
1149
|
-
docs: [
|
|
1501
|
+
docs: [
|
|
1502
|
+
"New clawback account"
|
|
1503
|
+
]
|
|
1150
1504
|
},
|
|
1151
1505
|
{
|
|
1152
1506
|
name: "admin",
|
|
1153
|
-
docs: [
|
|
1507
|
+
docs: [
|
|
1508
|
+
"Admin signer"
|
|
1509
|
+
],
|
|
1154
1510
|
writable: true,
|
|
1155
1511
|
signer: true
|
|
1156
1512
|
}
|
|
@@ -1159,22 +1515,37 @@ var merkle_distributor_default = {
|
|
|
1159
1515
|
},
|
|
1160
1516
|
{
|
|
1161
1517
|
name: "update",
|
|
1162
|
-
discriminator: [
|
|
1518
|
+
discriminator: [
|
|
1519
|
+
219,
|
|
1520
|
+
200,
|
|
1521
|
+
88,
|
|
1522
|
+
176,
|
|
1523
|
+
158,
|
|
1524
|
+
63,
|
|
1525
|
+
253,
|
|
1526
|
+
127
|
|
1527
|
+
],
|
|
1163
1528
|
accounts: [
|
|
1164
1529
|
{
|
|
1165
1530
|
name: "distributor",
|
|
1166
|
-
docs: [
|
|
1531
|
+
docs: [
|
|
1532
|
+
"The [MerkleDistributor]."
|
|
1533
|
+
],
|
|
1167
1534
|
writable: true
|
|
1168
1535
|
},
|
|
1169
1536
|
{
|
|
1170
1537
|
name: "admin",
|
|
1171
|
-
docs: [
|
|
1538
|
+
docs: [
|
|
1539
|
+
"Only Admin can trigger the clawback of funds"
|
|
1540
|
+
],
|
|
1172
1541
|
writable: true,
|
|
1173
1542
|
signer: true
|
|
1174
1543
|
},
|
|
1175
1544
|
{
|
|
1176
1545
|
name: "system_program",
|
|
1177
|
-
docs: [
|
|
1546
|
+
docs: [
|
|
1547
|
+
"The [System] program."
|
|
1548
|
+
],
|
|
1178
1549
|
address: "11111111111111111111111111111111"
|
|
1179
1550
|
}
|
|
1180
1551
|
],
|
|
@@ -1191,29 +1562,83 @@ var merkle_distributor_default = {
|
|
|
1191
1562
|
accounts: [
|
|
1192
1563
|
{
|
|
1193
1564
|
name: "ClaimStatus",
|
|
1194
|
-
discriminator: [
|
|
1565
|
+
discriminator: [
|
|
1566
|
+
22,
|
|
1567
|
+
183,
|
|
1568
|
+
249,
|
|
1569
|
+
157,
|
|
1570
|
+
247,
|
|
1571
|
+
95,
|
|
1572
|
+
150,
|
|
1573
|
+
96
|
|
1574
|
+
]
|
|
1195
1575
|
},
|
|
1196
1576
|
{
|
|
1197
1577
|
name: "CompressedClaimStatus",
|
|
1198
|
-
discriminator: [
|
|
1578
|
+
discriminator: [
|
|
1579
|
+
53,
|
|
1580
|
+
68,
|
|
1581
|
+
161,
|
|
1582
|
+
131,
|
|
1583
|
+
212,
|
|
1584
|
+
106,
|
|
1585
|
+
98,
|
|
1586
|
+
48
|
|
1587
|
+
]
|
|
1199
1588
|
},
|
|
1200
1589
|
{
|
|
1201
1590
|
name: "MerkleDistributor",
|
|
1202
|
-
discriminator: [
|
|
1591
|
+
discriminator: [
|
|
1592
|
+
77,
|
|
1593
|
+
119,
|
|
1594
|
+
139,
|
|
1595
|
+
70,
|
|
1596
|
+
84,
|
|
1597
|
+
247,
|
|
1598
|
+
12,
|
|
1599
|
+
26
|
|
1600
|
+
]
|
|
1203
1601
|
}
|
|
1204
1602
|
],
|
|
1205
1603
|
events: [
|
|
1206
1604
|
{
|
|
1207
1605
|
name: "ClaimClosedEvent",
|
|
1208
|
-
discriminator: [
|
|
1606
|
+
discriminator: [
|
|
1607
|
+
139,
|
|
1608
|
+
166,
|
|
1609
|
+
215,
|
|
1610
|
+
195,
|
|
1611
|
+
184,
|
|
1612
|
+
233,
|
|
1613
|
+
26,
|
|
1614
|
+
217
|
|
1615
|
+
]
|
|
1209
1616
|
},
|
|
1210
1617
|
{
|
|
1211
1618
|
name: "ClaimedEvent",
|
|
1212
|
-
discriminator: [
|
|
1619
|
+
discriminator: [
|
|
1620
|
+
144,
|
|
1621
|
+
172,
|
|
1622
|
+
209,
|
|
1623
|
+
86,
|
|
1624
|
+
144,
|
|
1625
|
+
87,
|
|
1626
|
+
84,
|
|
1627
|
+
115
|
|
1628
|
+
]
|
|
1213
1629
|
},
|
|
1214
1630
|
{
|
|
1215
1631
|
name: "NewClaimEvent",
|
|
1216
|
-
discriminator: [
|
|
1632
|
+
discriminator: [
|
|
1633
|
+
244,
|
|
1634
|
+
3,
|
|
1635
|
+
231,
|
|
1636
|
+
151,
|
|
1637
|
+
60,
|
|
1638
|
+
101,
|
|
1639
|
+
55,
|
|
1640
|
+
55
|
|
1641
|
+
]
|
|
1217
1642
|
}
|
|
1218
1643
|
],
|
|
1219
1644
|
errors: [
|
|
@@ -1341,18 +1766,24 @@ var merkle_distributor_default = {
|
|
|
1341
1766
|
types: [
|
|
1342
1767
|
{
|
|
1343
1768
|
name: "ClaimClosedEvent",
|
|
1344
|
-
docs: [
|
|
1769
|
+
docs: [
|
|
1770
|
+
"Emitted when a new claim is created."
|
|
1771
|
+
],
|
|
1345
1772
|
type: {
|
|
1346
1773
|
kind: "struct",
|
|
1347
1774
|
fields: [
|
|
1348
1775
|
{
|
|
1349
1776
|
name: "claimant",
|
|
1350
|
-
docs: [
|
|
1777
|
+
docs: [
|
|
1778
|
+
"User that claimed."
|
|
1779
|
+
],
|
|
1351
1780
|
type: "pubkey"
|
|
1352
1781
|
},
|
|
1353
1782
|
{
|
|
1354
1783
|
name: "timestamp",
|
|
1355
|
-
docs: [
|
|
1784
|
+
docs: [
|
|
1785
|
+
"Timestamp."
|
|
1786
|
+
],
|
|
1356
1787
|
type: "u64"
|
|
1357
1788
|
}
|
|
1358
1789
|
]
|
|
@@ -1360,43 +1791,59 @@ var merkle_distributor_default = {
|
|
|
1360
1791
|
},
|
|
1361
1792
|
{
|
|
1362
1793
|
name: "ClaimStatus",
|
|
1363
|
-
docs: [
|
|
1794
|
+
docs: [
|
|
1795
|
+
"Holds whether or not a claimant has claimed tokens."
|
|
1796
|
+
],
|
|
1364
1797
|
type: {
|
|
1365
1798
|
kind: "struct",
|
|
1366
1799
|
fields: [
|
|
1367
1800
|
{
|
|
1368
1801
|
name: "claimant",
|
|
1369
|
-
docs: [
|
|
1802
|
+
docs: [
|
|
1803
|
+
"Authority that claimed the tokens."
|
|
1804
|
+
],
|
|
1370
1805
|
type: "pubkey"
|
|
1371
1806
|
},
|
|
1372
1807
|
{
|
|
1373
1808
|
name: "locked_amount",
|
|
1374
|
-
docs: [
|
|
1809
|
+
docs: [
|
|
1810
|
+
"Locked amount"
|
|
1811
|
+
],
|
|
1375
1812
|
type: "u64"
|
|
1376
1813
|
},
|
|
1377
1814
|
{
|
|
1378
1815
|
name: "locked_amount_withdrawn",
|
|
1379
|
-
docs: [
|
|
1816
|
+
docs: [
|
|
1817
|
+
"Locked amount withdrawn"
|
|
1818
|
+
],
|
|
1380
1819
|
type: "u64"
|
|
1381
1820
|
},
|
|
1382
1821
|
{
|
|
1383
1822
|
name: "unlocked_amount",
|
|
1384
|
-
docs: [
|
|
1823
|
+
docs: [
|
|
1824
|
+
"Unlocked amount"
|
|
1825
|
+
],
|
|
1385
1826
|
type: "u64"
|
|
1386
1827
|
},
|
|
1387
1828
|
{
|
|
1388
1829
|
name: "last_claim_ts",
|
|
1389
|
-
docs: [
|
|
1830
|
+
docs: [
|
|
1831
|
+
"Last claim time"
|
|
1832
|
+
],
|
|
1390
1833
|
type: "u64"
|
|
1391
1834
|
},
|
|
1392
1835
|
{
|
|
1393
1836
|
name: "last_amount_per_unlock",
|
|
1394
|
-
docs: [
|
|
1837
|
+
docs: [
|
|
1838
|
+
"Track amount per unlock, can be useful for non-linear vesting"
|
|
1839
|
+
],
|
|
1395
1840
|
type: "u64"
|
|
1396
1841
|
},
|
|
1397
1842
|
{
|
|
1398
1843
|
name: "closed",
|
|
1399
|
-
docs: [
|
|
1844
|
+
docs: [
|
|
1845
|
+
"Whether claim is closed"
|
|
1846
|
+
],
|
|
1400
1847
|
type: "bool"
|
|
1401
1848
|
},
|
|
1402
1849
|
{
|
|
@@ -1408,19 +1855,28 @@ var merkle_distributor_default = {
|
|
|
1408
1855
|
},
|
|
1409
1856
|
{
|
|
1410
1857
|
name: "claims_count",
|
|
1411
|
-
docs: [
|
|
1858
|
+
docs: [
|
|
1859
|
+
"Number of time amount has been claimed"
|
|
1860
|
+
],
|
|
1412
1861
|
type: "u16"
|
|
1413
1862
|
},
|
|
1414
1863
|
{
|
|
1415
1864
|
name: "closed_ts",
|
|
1416
|
-
docs: [
|
|
1865
|
+
docs: [
|
|
1866
|
+
"Time when claim has been closed"
|
|
1867
|
+
],
|
|
1417
1868
|
type: "u64"
|
|
1418
1869
|
},
|
|
1419
1870
|
{
|
|
1420
1871
|
name: "buffer_2",
|
|
1421
|
-
docs: [
|
|
1872
|
+
docs: [
|
|
1873
|
+
"Buffer for additional fields"
|
|
1874
|
+
],
|
|
1422
1875
|
type: {
|
|
1423
|
-
array: [
|
|
1876
|
+
array: [
|
|
1877
|
+
"u8",
|
|
1878
|
+
22
|
|
1879
|
+
]
|
|
1424
1880
|
}
|
|
1425
1881
|
}
|
|
1426
1882
|
]
|
|
@@ -1428,18 +1884,24 @@ var merkle_distributor_default = {
|
|
|
1428
1884
|
},
|
|
1429
1885
|
{
|
|
1430
1886
|
name: "ClaimedEvent",
|
|
1431
|
-
docs: [
|
|
1887
|
+
docs: [
|
|
1888
|
+
"Emitted when tokens are claimed."
|
|
1889
|
+
],
|
|
1432
1890
|
type: {
|
|
1433
1891
|
kind: "struct",
|
|
1434
1892
|
fields: [
|
|
1435
1893
|
{
|
|
1436
1894
|
name: "claimant",
|
|
1437
|
-
docs: [
|
|
1895
|
+
docs: [
|
|
1896
|
+
"User that claimed."
|
|
1897
|
+
],
|
|
1438
1898
|
type: "pubkey"
|
|
1439
1899
|
},
|
|
1440
1900
|
{
|
|
1441
1901
|
name: "amount",
|
|
1442
|
-
docs: [
|
|
1902
|
+
docs: [
|
|
1903
|
+
"Amount of tokens to distribute."
|
|
1904
|
+
],
|
|
1443
1905
|
type: "u64"
|
|
1444
1906
|
}
|
|
1445
1907
|
]
|
|
@@ -1447,7 +1909,9 @@ var merkle_distributor_default = {
|
|
|
1447
1909
|
},
|
|
1448
1910
|
{
|
|
1449
1911
|
name: "CompressedClaimStatus",
|
|
1450
|
-
docs: [
|
|
1912
|
+
docs: [
|
|
1913
|
+
"Holds whether or not a claimant has claimed tokens."
|
|
1914
|
+
],
|
|
1451
1915
|
type: {
|
|
1452
1916
|
kind: "struct",
|
|
1453
1917
|
fields: [
|
|
@@ -1464,115 +1928,162 @@ var merkle_distributor_default = {
|
|
|
1464
1928
|
},
|
|
1465
1929
|
{
|
|
1466
1930
|
name: "MerkleDistributor",
|
|
1467
|
-
docs: [
|
|
1931
|
+
docs: [
|
|
1932
|
+
"State for the account which distributes tokens."
|
|
1933
|
+
],
|
|
1468
1934
|
type: {
|
|
1469
1935
|
kind: "struct",
|
|
1470
1936
|
fields: [
|
|
1471
1937
|
{
|
|
1472
1938
|
name: "bump",
|
|
1473
|
-
docs: [
|
|
1939
|
+
docs: [
|
|
1940
|
+
"Bump seed."
|
|
1941
|
+
],
|
|
1474
1942
|
type: "u8"
|
|
1475
1943
|
},
|
|
1476
1944
|
{
|
|
1477
1945
|
name: "version",
|
|
1478
|
-
docs: [
|
|
1946
|
+
docs: [
|
|
1947
|
+
"Version of the airdrop"
|
|
1948
|
+
],
|
|
1479
1949
|
type: "u64"
|
|
1480
1950
|
},
|
|
1481
1951
|
{
|
|
1482
1952
|
name: "root",
|
|
1483
|
-
docs: [
|
|
1953
|
+
docs: [
|
|
1954
|
+
"The 256-bit merkle root."
|
|
1955
|
+
],
|
|
1484
1956
|
type: {
|
|
1485
|
-
array: [
|
|
1957
|
+
array: [
|
|
1958
|
+
"u8",
|
|
1959
|
+
32
|
|
1960
|
+
]
|
|
1486
1961
|
}
|
|
1487
1962
|
},
|
|
1488
1963
|
{
|
|
1489
1964
|
name: "mint",
|
|
1490
|
-
docs: [
|
|
1965
|
+
docs: [
|
|
1966
|
+
"[Mint] of the token to be distributed."
|
|
1967
|
+
],
|
|
1491
1968
|
type: "pubkey"
|
|
1492
1969
|
},
|
|
1493
1970
|
{
|
|
1494
1971
|
name: "token_vault",
|
|
1495
|
-
docs: [
|
|
1972
|
+
docs: [
|
|
1973
|
+
"Token Address of the vault"
|
|
1974
|
+
],
|
|
1496
1975
|
type: "pubkey"
|
|
1497
1976
|
},
|
|
1498
1977
|
{
|
|
1499
1978
|
name: "max_total_claim",
|
|
1500
|
-
docs: [
|
|
1979
|
+
docs: [
|
|
1980
|
+
"Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
|
|
1981
|
+
],
|
|
1501
1982
|
type: "u64"
|
|
1502
1983
|
},
|
|
1503
1984
|
{
|
|
1504
1985
|
name: "max_num_nodes",
|
|
1505
|
-
docs: [
|
|
1986
|
+
docs: [
|
|
1987
|
+
"Maximum number of nodes in [MerkleDistributor]."
|
|
1988
|
+
],
|
|
1506
1989
|
type: "u64"
|
|
1507
1990
|
},
|
|
1508
1991
|
{
|
|
1509
1992
|
name: "unlock_period",
|
|
1510
|
-
docs: [
|
|
1993
|
+
docs: [
|
|
1994
|
+
"Time step (period) in seconds per which the unlock occurs"
|
|
1995
|
+
],
|
|
1511
1996
|
type: "u64"
|
|
1512
1997
|
},
|
|
1513
1998
|
{
|
|
1514
1999
|
name: "total_amount_claimed",
|
|
1515
|
-
docs: [
|
|
2000
|
+
docs: [
|
|
2001
|
+
"Total amount of tokens that have been claimed."
|
|
2002
|
+
],
|
|
1516
2003
|
type: "u64"
|
|
1517
2004
|
},
|
|
1518
2005
|
{
|
|
1519
2006
|
name: "num_nodes_claimed",
|
|
1520
|
-
docs: [
|
|
2007
|
+
docs: [
|
|
2008
|
+
"Number of nodes that have been claimed."
|
|
2009
|
+
],
|
|
1521
2010
|
type: "u64"
|
|
1522
2011
|
},
|
|
1523
2012
|
{
|
|
1524
2013
|
name: "start_ts",
|
|
1525
|
-
docs: [
|
|
2014
|
+
docs: [
|
|
2015
|
+
"Lockup time start (Unix Timestamp)"
|
|
2016
|
+
],
|
|
1526
2017
|
type: "u64"
|
|
1527
2018
|
},
|
|
1528
2019
|
{
|
|
1529
2020
|
name: "end_ts",
|
|
1530
|
-
docs: [
|
|
2021
|
+
docs: [
|
|
2022
|
+
"Lockup time end (Unix Timestamp)"
|
|
2023
|
+
],
|
|
1531
2024
|
type: "u64"
|
|
1532
2025
|
},
|
|
1533
2026
|
{
|
|
1534
2027
|
name: "clawback_start_ts",
|
|
1535
|
-
docs: [
|
|
2028
|
+
docs: [
|
|
2029
|
+
"Clawback start (Unix Timestamp)"
|
|
2030
|
+
],
|
|
1536
2031
|
type: "u64"
|
|
1537
2032
|
},
|
|
1538
2033
|
{
|
|
1539
2034
|
name: "clawback_receiver",
|
|
1540
|
-
docs: [
|
|
2035
|
+
docs: [
|
|
2036
|
+
"Clawback receiver"
|
|
2037
|
+
],
|
|
1541
2038
|
type: "pubkey"
|
|
1542
2039
|
},
|
|
1543
2040
|
{
|
|
1544
2041
|
name: "admin",
|
|
1545
|
-
docs: [
|
|
2042
|
+
docs: [
|
|
2043
|
+
"Admin wallet"
|
|
2044
|
+
],
|
|
1546
2045
|
type: "pubkey"
|
|
1547
2046
|
},
|
|
1548
2047
|
{
|
|
1549
2048
|
name: "clawed_back",
|
|
1550
|
-
docs: [
|
|
2049
|
+
docs: [
|
|
2050
|
+
"Whether or not the distributor has been clawed back"
|
|
2051
|
+
],
|
|
1551
2052
|
type: "bool"
|
|
1552
2053
|
},
|
|
1553
2054
|
{
|
|
1554
2055
|
name: "claims_closable_by_admin",
|
|
1555
|
-
docs: [
|
|
2056
|
+
docs: [
|
|
2057
|
+
"Whether claims are closable by the admin or not"
|
|
2058
|
+
],
|
|
1556
2059
|
type: "bool"
|
|
1557
2060
|
},
|
|
1558
2061
|
{
|
|
1559
2062
|
name: "can_update_duration",
|
|
1560
|
-
docs: [
|
|
2063
|
+
docs: [
|
|
2064
|
+
"Whether admin can update vesting duration"
|
|
2065
|
+
],
|
|
1561
2066
|
type: "bool"
|
|
1562
2067
|
},
|
|
1563
2068
|
{
|
|
1564
2069
|
name: "total_amount_unlocked",
|
|
1565
|
-
docs: [
|
|
2070
|
+
docs: [
|
|
2071
|
+
"Total amount of funds unlocked (cliff/instant)"
|
|
2072
|
+
],
|
|
1566
2073
|
type: "u64"
|
|
1567
2074
|
},
|
|
1568
2075
|
{
|
|
1569
2076
|
name: "total_amount_locked",
|
|
1570
|
-
docs: [
|
|
2077
|
+
docs: [
|
|
2078
|
+
"Total amount of funds locked (vested)"
|
|
2079
|
+
],
|
|
1571
2080
|
type: "u64"
|
|
1572
2081
|
},
|
|
1573
2082
|
{
|
|
1574
2083
|
name: "last_duration_update_ts",
|
|
1575
|
-
docs: [
|
|
2084
|
+
docs: [
|
|
2085
|
+
"Timestamp when update was last called"
|
|
2086
|
+
],
|
|
1576
2087
|
type: "u64"
|
|
1577
2088
|
},
|
|
1578
2089
|
{
|
|
@@ -1584,31 +2095,47 @@ var merkle_distributor_default = {
|
|
|
1584
2095
|
},
|
|
1585
2096
|
{
|
|
1586
2097
|
name: "clawed_back_ts",
|
|
1587
|
-
docs: [
|
|
2098
|
+
docs: [
|
|
2099
|
+
"Timestamp when funds were clawed back"
|
|
2100
|
+
],
|
|
1588
2101
|
type: "u64"
|
|
1589
2102
|
},
|
|
1590
2103
|
{
|
|
1591
2104
|
name: "claims_closable_by_claimant",
|
|
1592
|
-
docs: [
|
|
2105
|
+
docs: [
|
|
2106
|
+
"Whether claims are closable by claimant or not"
|
|
2107
|
+
],
|
|
1593
2108
|
type: "bool"
|
|
1594
2109
|
},
|
|
1595
2110
|
{
|
|
1596
2111
|
name: "claims_limit",
|
|
1597
|
-
docs: [
|
|
2112
|
+
docs: [
|
|
2113
|
+
"Limit number of claims"
|
|
2114
|
+
],
|
|
1598
2115
|
type: "u16"
|
|
1599
2116
|
},
|
|
1600
2117
|
{
|
|
1601
2118
|
name: "buffer_2",
|
|
1602
|
-
docs: [
|
|
2119
|
+
docs: [
|
|
2120
|
+
"Buffer for additional fields"
|
|
2121
|
+
],
|
|
1603
2122
|
type: {
|
|
1604
|
-
array: [
|
|
2123
|
+
array: [
|
|
2124
|
+
"u8",
|
|
2125
|
+
20
|
|
2126
|
+
]
|
|
1605
2127
|
}
|
|
1606
2128
|
},
|
|
1607
2129
|
{
|
|
1608
2130
|
name: "buffer_3",
|
|
1609
|
-
docs: [
|
|
2131
|
+
docs: [
|
|
2132
|
+
"Buffer for additional fields"
|
|
2133
|
+
],
|
|
1610
2134
|
type: {
|
|
1611
|
-
array: [
|
|
2135
|
+
array: [
|
|
2136
|
+
"u8",
|
|
2137
|
+
32
|
|
2138
|
+
]
|
|
1612
2139
|
}
|
|
1613
2140
|
}
|
|
1614
2141
|
]
|
|
@@ -1616,18 +2143,24 @@ var merkle_distributor_default = {
|
|
|
1616
2143
|
},
|
|
1617
2144
|
{
|
|
1618
2145
|
name: "NewClaimEvent",
|
|
1619
|
-
docs: [
|
|
2146
|
+
docs: [
|
|
2147
|
+
"Emitted when a new claim is created."
|
|
2148
|
+
],
|
|
1620
2149
|
type: {
|
|
1621
2150
|
kind: "struct",
|
|
1622
2151
|
fields: [
|
|
1623
2152
|
{
|
|
1624
2153
|
name: "claimant",
|
|
1625
|
-
docs: [
|
|
2154
|
+
docs: [
|
|
2155
|
+
"User that claimed."
|
|
2156
|
+
],
|
|
1626
2157
|
type: "pubkey"
|
|
1627
2158
|
},
|
|
1628
2159
|
{
|
|
1629
2160
|
name: "timestamp",
|
|
1630
|
-
docs: [
|
|
2161
|
+
docs: [
|
|
2162
|
+
"Timestamp."
|
|
2163
|
+
],
|
|
1631
2164
|
type: "u64"
|
|
1632
2165
|
}
|
|
1633
2166
|
]
|
|
@@ -3029,7 +3562,8 @@ var BaseDistributorClient = class {
|
|
|
3029
3562
|
[extParams.invoker.publicKey],
|
|
3030
3563
|
distributor.mint,
|
|
3031
3564
|
extParams.invoker,
|
|
3032
|
-
tokenProgramId
|
|
3565
|
+
tokenProgramId,
|
|
3566
|
+
extParams.feePayer
|
|
3033
3567
|
)
|
|
3034
3568
|
);
|
|
3035
3569
|
const invokerTokens = await ata(distributor.mint, extParams.invoker.publicKey, tokenProgramId);
|
|
@@ -3066,7 +3600,7 @@ var BaseDistributorClient = class {
|
|
|
3066
3600
|
}
|
|
3067
3601
|
ixs.push(
|
|
3068
3602
|
this.prepareClaimFeeInstruction(
|
|
3069
|
-
extParams.invoker.publicKey,
|
|
3603
|
+
extParams.feePayer ?? extParams.invoker.publicKey,
|
|
3070
3604
|
typeof _serviceTransfer === "bigint" ? _serviceTransfer : void 0
|
|
3071
3605
|
)
|
|
3072
3606
|
);
|
|
@@ -3109,6 +3643,7 @@ var BaseDistributorClient = class {
|
|
|
3109
3643
|
const eventAuthorityPublicKey = getEventAuthorityPda(this.programId);
|
|
3110
3644
|
const closeClaimAccounts = {
|
|
3111
3645
|
adminOrClaimant: extParams.invoker.publicKey,
|
|
3646
|
+
payer: extParams.invoker.publicKey,
|
|
3112
3647
|
distributor: distributorPublicKey,
|
|
3113
3648
|
claimStatus: claimStatusPublicKey,
|
|
3114
3649
|
claimant: claimantPublicKey,
|
|
@@ -3141,7 +3676,8 @@ var BaseDistributorClient = class {
|
|
|
3141
3676
|
[extParams.invoker.publicKey],
|
|
3142
3677
|
distributor.mint,
|
|
3143
3678
|
extParams.invoker,
|
|
3144
|
-
tokenProgramId
|
|
3679
|
+
tokenProgramId,
|
|
3680
|
+
extParams.feePayer
|
|
3145
3681
|
)
|
|
3146
3682
|
);
|
|
3147
3683
|
const accounts = {
|
|
@@ -3292,23 +3828,36 @@ var aligned_distributor_default = {
|
|
|
3292
3828
|
address: "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
|
|
3293
3829
|
metadata: {
|
|
3294
3830
|
name: "aligned_distributor",
|
|
3295
|
-
version: "1.5.
|
|
3831
|
+
version: "1.5.1",
|
|
3296
3832
|
spec: "0.1.0",
|
|
3297
3833
|
description: "Proxy for merkle distributor that updates Vesting duration according to token market performance."
|
|
3298
3834
|
},
|
|
3299
3835
|
instructions: [
|
|
3300
3836
|
{
|
|
3301
3837
|
name: "change_oracle",
|
|
3302
|
-
discriminator: [
|
|
3838
|
+
discriminator: [
|
|
3839
|
+
177,
|
|
3840
|
+
227,
|
|
3841
|
+
230,
|
|
3842
|
+
103,
|
|
3843
|
+
13,
|
|
3844
|
+
72,
|
|
3845
|
+
141,
|
|
3846
|
+
248
|
|
3847
|
+
],
|
|
3303
3848
|
accounts: [
|
|
3304
3849
|
{
|
|
3305
3850
|
name: "aligned_distributor",
|
|
3306
|
-
docs: [
|
|
3851
|
+
docs: [
|
|
3852
|
+
"The [MerkleDistributor]."
|
|
3853
|
+
],
|
|
3307
3854
|
writable: true
|
|
3308
3855
|
},
|
|
3309
3856
|
{
|
|
3310
3857
|
name: "admin",
|
|
3311
|
-
docs: [
|
|
3858
|
+
docs: [
|
|
3859
|
+
"Admin signer"
|
|
3860
|
+
],
|
|
3312
3861
|
writable: true,
|
|
3313
3862
|
signer: true
|
|
3314
3863
|
},
|
|
@@ -3329,17 +3878,48 @@ var aligned_distributor_default = {
|
|
|
3329
3878
|
},
|
|
3330
3879
|
{
|
|
3331
3880
|
name: "clawback",
|
|
3332
|
-
discriminator: [
|
|
3881
|
+
discriminator: [
|
|
3882
|
+
111,
|
|
3883
|
+
92,
|
|
3884
|
+
142,
|
|
3885
|
+
79,
|
|
3886
|
+
33,
|
|
3887
|
+
234,
|
|
3888
|
+
82,
|
|
3889
|
+
27
|
|
3890
|
+
],
|
|
3333
3891
|
accounts: [
|
|
3334
3892
|
{
|
|
3335
3893
|
name: "aligned_distributor",
|
|
3336
|
-
docs: [
|
|
3894
|
+
docs: [
|
|
3895
|
+
"The [AlignedDistributor]."
|
|
3896
|
+
],
|
|
3337
3897
|
writable: true,
|
|
3338
3898
|
pda: {
|
|
3339
3899
|
seeds: [
|
|
3340
3900
|
{
|
|
3341
3901
|
kind: "const",
|
|
3342
|
-
value: [
|
|
3902
|
+
value: [
|
|
3903
|
+
97,
|
|
3904
|
+
108,
|
|
3905
|
+
105,
|
|
3906
|
+
103,
|
|
3907
|
+
110,
|
|
3908
|
+
101,
|
|
3909
|
+
100,
|
|
3910
|
+
45,
|
|
3911
|
+
100,
|
|
3912
|
+
105,
|
|
3913
|
+
115,
|
|
3914
|
+
116,
|
|
3915
|
+
114,
|
|
3916
|
+
105,
|
|
3917
|
+
98,
|
|
3918
|
+
117,
|
|
3919
|
+
116,
|
|
3920
|
+
111,
|
|
3921
|
+
114
|
|
3922
|
+
]
|
|
3343
3923
|
},
|
|
3344
3924
|
{
|
|
3345
3925
|
kind: "account",
|
|
@@ -3350,22 +3930,30 @@ var aligned_distributor_default = {
|
|
|
3350
3930
|
},
|
|
3351
3931
|
{
|
|
3352
3932
|
name: "distributor",
|
|
3353
|
-
docs: [
|
|
3933
|
+
docs: [
|
|
3934
|
+
"The [MerkleDistributor]."
|
|
3935
|
+
],
|
|
3354
3936
|
writable: true
|
|
3355
3937
|
},
|
|
3356
3938
|
{
|
|
3357
3939
|
name: "from",
|
|
3358
|
-
docs: [
|
|
3940
|
+
docs: [
|
|
3941
|
+
"Distributor ATA containing the tokens to distribute."
|
|
3942
|
+
],
|
|
3359
3943
|
writable: true
|
|
3360
3944
|
},
|
|
3361
3945
|
{
|
|
3362
3946
|
name: "to",
|
|
3363
|
-
docs: [
|
|
3947
|
+
docs: [
|
|
3948
|
+
"The Clawback token account."
|
|
3949
|
+
],
|
|
3364
3950
|
writable: true
|
|
3365
3951
|
},
|
|
3366
3952
|
{
|
|
3367
3953
|
name: "admin",
|
|
3368
|
-
docs: [
|
|
3954
|
+
docs: [
|
|
3955
|
+
"Only Admin can trigger the clawback of funds"
|
|
3956
|
+
],
|
|
3369
3957
|
writable: true,
|
|
3370
3958
|
signer: true
|
|
3371
3959
|
},
|
|
@@ -3378,19 +3966,186 @@ var aligned_distributor_default = {
|
|
|
3378
3966
|
},
|
|
3379
3967
|
{
|
|
3380
3968
|
name: "system_program",
|
|
3381
|
-
docs: [
|
|
3969
|
+
docs: [
|
|
3970
|
+
"The [System] program."
|
|
3971
|
+
],
|
|
3382
3972
|
address: "11111111111111111111111111111111"
|
|
3383
3973
|
},
|
|
3384
3974
|
{
|
|
3385
3975
|
name: "token_program",
|
|
3386
|
-
docs: [
|
|
3976
|
+
docs: [
|
|
3977
|
+
"SPL [Token] program."
|
|
3978
|
+
]
|
|
3979
|
+
}
|
|
3980
|
+
],
|
|
3981
|
+
args: []
|
|
3982
|
+
},
|
|
3983
|
+
{
|
|
3984
|
+
name: "close_claim",
|
|
3985
|
+
discriminator: [
|
|
3986
|
+
42,
|
|
3987
|
+
177,
|
|
3988
|
+
165,
|
|
3989
|
+
35,
|
|
3990
|
+
213,
|
|
3991
|
+
179,
|
|
3992
|
+
211,
|
|
3993
|
+
19
|
|
3994
|
+
],
|
|
3995
|
+
accounts: [
|
|
3996
|
+
{
|
|
3997
|
+
name: "aligned_distributor",
|
|
3998
|
+
docs: [
|
|
3999
|
+
"The [AlignedDistributor]."
|
|
4000
|
+
],
|
|
4001
|
+
writable: true,
|
|
4002
|
+
pda: {
|
|
4003
|
+
seeds: [
|
|
4004
|
+
{
|
|
4005
|
+
kind: "const",
|
|
4006
|
+
value: [
|
|
4007
|
+
97,
|
|
4008
|
+
108,
|
|
4009
|
+
105,
|
|
4010
|
+
103,
|
|
4011
|
+
110,
|
|
4012
|
+
101,
|
|
4013
|
+
100,
|
|
4014
|
+
45,
|
|
4015
|
+
100,
|
|
4016
|
+
105,
|
|
4017
|
+
115,
|
|
4018
|
+
116,
|
|
4019
|
+
114,
|
|
4020
|
+
105,
|
|
4021
|
+
98,
|
|
4022
|
+
117,
|
|
4023
|
+
116,
|
|
4024
|
+
111,
|
|
4025
|
+
114
|
|
4026
|
+
]
|
|
4027
|
+
},
|
|
4028
|
+
{
|
|
4029
|
+
kind: "account",
|
|
4030
|
+
path: "distributor"
|
|
4031
|
+
}
|
|
4032
|
+
]
|
|
4033
|
+
}
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
name: "distributor",
|
|
4037
|
+
docs: [
|
|
4038
|
+
"The [MerkleDistributor]."
|
|
4039
|
+
],
|
|
4040
|
+
writable: true
|
|
4041
|
+
},
|
|
4042
|
+
{
|
|
4043
|
+
name: "admin",
|
|
4044
|
+
docs: [
|
|
4045
|
+
"Only Admin can trigger the clawback of funds"
|
|
4046
|
+
],
|
|
4047
|
+
writable: true,
|
|
4048
|
+
signer: true
|
|
4049
|
+
},
|
|
4050
|
+
{
|
|
4051
|
+
name: "claimant",
|
|
4052
|
+
writable: true
|
|
4053
|
+
},
|
|
4054
|
+
{
|
|
4055
|
+
name: "claim_status",
|
|
4056
|
+
writable: true,
|
|
4057
|
+
pda: {
|
|
4058
|
+
seeds: [
|
|
4059
|
+
{
|
|
4060
|
+
kind: "const",
|
|
4061
|
+
value: [
|
|
4062
|
+
67,
|
|
4063
|
+
108,
|
|
4064
|
+
97,
|
|
4065
|
+
105,
|
|
4066
|
+
109,
|
|
4067
|
+
83,
|
|
4068
|
+
116,
|
|
4069
|
+
97,
|
|
4070
|
+
116,
|
|
4071
|
+
117,
|
|
4072
|
+
115
|
|
4073
|
+
]
|
|
4074
|
+
},
|
|
4075
|
+
{
|
|
4076
|
+
kind: "account",
|
|
4077
|
+
path: "claimant"
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
kind: "account",
|
|
4081
|
+
path: "distributor"
|
|
4082
|
+
}
|
|
4083
|
+
],
|
|
4084
|
+
program: {
|
|
4085
|
+
kind: "account",
|
|
4086
|
+
path: "distributor_program"
|
|
4087
|
+
}
|
|
4088
|
+
}
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
name: "distributor_event_authority",
|
|
4092
|
+
pda: {
|
|
4093
|
+
seeds: [
|
|
4094
|
+
{
|
|
4095
|
+
kind: "const",
|
|
4096
|
+
value: [
|
|
4097
|
+
95,
|
|
4098
|
+
95,
|
|
4099
|
+
101,
|
|
4100
|
+
118,
|
|
4101
|
+
101,
|
|
4102
|
+
110,
|
|
4103
|
+
116,
|
|
4104
|
+
95,
|
|
4105
|
+
97,
|
|
4106
|
+
117,
|
|
4107
|
+
116,
|
|
4108
|
+
104,
|
|
4109
|
+
111,
|
|
4110
|
+
114,
|
|
4111
|
+
105,
|
|
4112
|
+
116,
|
|
4113
|
+
121
|
|
4114
|
+
]
|
|
4115
|
+
}
|
|
4116
|
+
],
|
|
4117
|
+
program: {
|
|
4118
|
+
kind: "account",
|
|
4119
|
+
path: "distributor_program"
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4122
|
+
},
|
|
4123
|
+
{
|
|
4124
|
+
name: "distributor_program",
|
|
4125
|
+
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
name: "system_program",
|
|
4129
|
+
docs: [
|
|
4130
|
+
"The [System] program."
|
|
4131
|
+
],
|
|
4132
|
+
address: "11111111111111111111111111111111"
|
|
3387
4133
|
}
|
|
3388
4134
|
],
|
|
3389
4135
|
args: []
|
|
3390
4136
|
},
|
|
3391
4137
|
{
|
|
3392
4138
|
name: "create_test_oracle",
|
|
3393
|
-
discriminator: [
|
|
4139
|
+
discriminator: [
|
|
4140
|
+
183,
|
|
4141
|
+
110,
|
|
4142
|
+
4,
|
|
4143
|
+
11,
|
|
4144
|
+
131,
|
|
4145
|
+
220,
|
|
4146
|
+
84,
|
|
4147
|
+
12
|
|
4148
|
+
],
|
|
3394
4149
|
accounts: [
|
|
3395
4150
|
{
|
|
3396
4151
|
name: "creator",
|
|
@@ -3407,7 +4162,19 @@ var aligned_distributor_default = {
|
|
|
3407
4162
|
seeds: [
|
|
3408
4163
|
{
|
|
3409
4164
|
kind: "const",
|
|
3410
|
-
value: [
|
|
4165
|
+
value: [
|
|
4166
|
+
116,
|
|
4167
|
+
101,
|
|
4168
|
+
115,
|
|
4169
|
+
116,
|
|
4170
|
+
45,
|
|
4171
|
+
111,
|
|
4172
|
+
114,
|
|
4173
|
+
97,
|
|
4174
|
+
99,
|
|
4175
|
+
108,
|
|
4176
|
+
101
|
|
4177
|
+
]
|
|
3411
4178
|
},
|
|
3412
4179
|
{
|
|
3413
4180
|
kind: "account",
|
|
@@ -3438,7 +4205,16 @@ var aligned_distributor_default = {
|
|
|
3438
4205
|
},
|
|
3439
4206
|
{
|
|
3440
4207
|
name: "migrate_test_oracle",
|
|
3441
|
-
discriminator: [
|
|
4208
|
+
discriminator: [
|
|
4209
|
+
203,
|
|
4210
|
+
254,
|
|
4211
|
+
19,
|
|
4212
|
+
3,
|
|
4213
|
+
172,
|
|
4214
|
+
185,
|
|
4215
|
+
85,
|
|
4216
|
+
190
|
|
4217
|
+
],
|
|
3442
4218
|
accounts: [
|
|
3443
4219
|
{
|
|
3444
4220
|
name: "payer",
|
|
@@ -3458,7 +4234,19 @@ var aligned_distributor_default = {
|
|
|
3458
4234
|
seeds: [
|
|
3459
4235
|
{
|
|
3460
4236
|
kind: "const",
|
|
3461
|
-
value: [
|
|
4237
|
+
value: [
|
|
4238
|
+
116,
|
|
4239
|
+
101,
|
|
4240
|
+
115,
|
|
4241
|
+
116,
|
|
4242
|
+
45,
|
|
4243
|
+
111,
|
|
4244
|
+
114,
|
|
4245
|
+
97,
|
|
4246
|
+
99,
|
|
4247
|
+
108,
|
|
4248
|
+
101
|
|
4249
|
+
]
|
|
3462
4250
|
},
|
|
3463
4251
|
{
|
|
3464
4252
|
kind: "account",
|
|
@@ -3480,7 +4268,16 @@ var aligned_distributor_default = {
|
|
|
3480
4268
|
},
|
|
3481
4269
|
{
|
|
3482
4270
|
name: "new_distributor",
|
|
3483
|
-
discriminator: [
|
|
4271
|
+
discriminator: [
|
|
4272
|
+
32,
|
|
4273
|
+
139,
|
|
4274
|
+
112,
|
|
4275
|
+
171,
|
|
4276
|
+
0,
|
|
4277
|
+
2,
|
|
4278
|
+
225,
|
|
4279
|
+
155
|
|
4280
|
+
],
|
|
3484
4281
|
accounts: [
|
|
3485
4282
|
{
|
|
3486
4283
|
name: "aligned_distributor",
|
|
@@ -3489,7 +4286,27 @@ var aligned_distributor_default = {
|
|
|
3489
4286
|
seeds: [
|
|
3490
4287
|
{
|
|
3491
4288
|
kind: "const",
|
|
3492
|
-
value: [
|
|
4289
|
+
value: [
|
|
4290
|
+
97,
|
|
4291
|
+
108,
|
|
4292
|
+
105,
|
|
4293
|
+
103,
|
|
4294
|
+
110,
|
|
4295
|
+
101,
|
|
4296
|
+
100,
|
|
4297
|
+
45,
|
|
4298
|
+
100,
|
|
4299
|
+
105,
|
|
4300
|
+
115,
|
|
4301
|
+
116,
|
|
4302
|
+
114,
|
|
4303
|
+
105,
|
|
4304
|
+
98,
|
|
4305
|
+
117,
|
|
4306
|
+
116,
|
|
4307
|
+
111,
|
|
4308
|
+
114
|
|
4309
|
+
]
|
|
3493
4310
|
},
|
|
3494
4311
|
{
|
|
3495
4312
|
kind: "account",
|
|
@@ -3508,12 +4325,16 @@ var aligned_distributor_default = {
|
|
|
3508
4325
|
},
|
|
3509
4326
|
{
|
|
3510
4327
|
name: "clawback_receiver",
|
|
3511
|
-
docs: [
|
|
4328
|
+
docs: [
|
|
4329
|
+
"Clawback receiver token account"
|
|
4330
|
+
],
|
|
3512
4331
|
writable: true
|
|
3513
4332
|
},
|
|
3514
4333
|
{
|
|
3515
4334
|
name: "mint",
|
|
3516
|
-
docs: [
|
|
4335
|
+
docs: [
|
|
4336
|
+
"The mint to distribute."
|
|
4337
|
+
]
|
|
3517
4338
|
},
|
|
3518
4339
|
{
|
|
3519
4340
|
name: "distributor",
|
|
@@ -3534,22 +4355,30 @@ var aligned_distributor_default = {
|
|
|
3534
4355
|
},
|
|
3535
4356
|
{
|
|
3536
4357
|
name: "distributor_program",
|
|
3537
|
-
docs: [
|
|
4358
|
+
docs: [
|
|
4359
|
+
"MerkleDistributor program"
|
|
4360
|
+
],
|
|
3538
4361
|
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
|
|
3539
4362
|
},
|
|
3540
4363
|
{
|
|
3541
4364
|
name: "system_program",
|
|
3542
|
-
docs: [
|
|
4365
|
+
docs: [
|
|
4366
|
+
"The [System] program."
|
|
4367
|
+
],
|
|
3543
4368
|
address: "11111111111111111111111111111111"
|
|
3544
4369
|
},
|
|
3545
4370
|
{
|
|
3546
4371
|
name: "associated_token_program",
|
|
3547
|
-
docs: [
|
|
4372
|
+
docs: [
|
|
4373
|
+
"The [Associated Token] program."
|
|
4374
|
+
],
|
|
3548
4375
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
3549
4376
|
},
|
|
3550
4377
|
{
|
|
3551
4378
|
name: "token_program",
|
|
3552
|
-
docs: [
|
|
4379
|
+
docs: [
|
|
4380
|
+
"The [Token] program."
|
|
4381
|
+
]
|
|
3553
4382
|
}
|
|
3554
4383
|
],
|
|
3555
4384
|
args: [
|
|
@@ -3565,7 +4394,16 @@ var aligned_distributor_default = {
|
|
|
3565
4394
|
},
|
|
3566
4395
|
{
|
|
3567
4396
|
name: "realloc_test_oracle",
|
|
3568
|
-
discriminator: [
|
|
4397
|
+
discriminator: [
|
|
4398
|
+
234,
|
|
4399
|
+
221,
|
|
4400
|
+
116,
|
|
4401
|
+
4,
|
|
4402
|
+
198,
|
|
4403
|
+
251,
|
|
4404
|
+
244,
|
|
4405
|
+
206
|
|
4406
|
+
],
|
|
3569
4407
|
accounts: [
|
|
3570
4408
|
{
|
|
3571
4409
|
name: "payer",
|
|
@@ -3585,7 +4423,19 @@ var aligned_distributor_default = {
|
|
|
3585
4423
|
seeds: [
|
|
3586
4424
|
{
|
|
3587
4425
|
kind: "const",
|
|
3588
|
-
value: [
|
|
4426
|
+
value: [
|
|
4427
|
+
116,
|
|
4428
|
+
101,
|
|
4429
|
+
115,
|
|
4430
|
+
116,
|
|
4431
|
+
45,
|
|
4432
|
+
111,
|
|
4433
|
+
114,
|
|
4434
|
+
97,
|
|
4435
|
+
99,
|
|
4436
|
+
108,
|
|
4437
|
+
101
|
|
4438
|
+
]
|
|
3589
4439
|
},
|
|
3590
4440
|
{
|
|
3591
4441
|
kind: "account",
|
|
@@ -3607,22 +4457,37 @@ var aligned_distributor_default = {
|
|
|
3607
4457
|
},
|
|
3608
4458
|
{
|
|
3609
4459
|
name: "set_admin",
|
|
3610
|
-
discriminator: [
|
|
4460
|
+
discriminator: [
|
|
4461
|
+
251,
|
|
4462
|
+
163,
|
|
4463
|
+
0,
|
|
4464
|
+
52,
|
|
4465
|
+
91,
|
|
4466
|
+
194,
|
|
4467
|
+
187,
|
|
4468
|
+
92
|
|
4469
|
+
],
|
|
3611
4470
|
accounts: [
|
|
3612
4471
|
{
|
|
3613
4472
|
name: "aligned_distributor",
|
|
3614
|
-
docs: [
|
|
4473
|
+
docs: [
|
|
4474
|
+
"The [MerkleDistributor]."
|
|
4475
|
+
],
|
|
3615
4476
|
writable: true
|
|
3616
4477
|
},
|
|
3617
4478
|
{
|
|
3618
4479
|
name: "admin",
|
|
3619
|
-
docs: [
|
|
4480
|
+
docs: [
|
|
4481
|
+
"Admin signer"
|
|
4482
|
+
],
|
|
3620
4483
|
writable: true,
|
|
3621
4484
|
signer: true
|
|
3622
4485
|
},
|
|
3623
4486
|
{
|
|
3624
4487
|
name: "new_admin",
|
|
3625
|
-
docs: [
|
|
4488
|
+
docs: [
|
|
4489
|
+
"New admin account"
|
|
4490
|
+
],
|
|
3626
4491
|
writable: true
|
|
3627
4492
|
}
|
|
3628
4493
|
],
|
|
@@ -3630,7 +4495,16 @@ var aligned_distributor_default = {
|
|
|
3630
4495
|
},
|
|
3631
4496
|
{
|
|
3632
4497
|
name: "set_test_oracle_authority",
|
|
3633
|
-
discriminator: [
|
|
4498
|
+
discriminator: [
|
|
4499
|
+
26,
|
|
4500
|
+
66,
|
|
4501
|
+
233,
|
|
4502
|
+
99,
|
|
4503
|
+
38,
|
|
4504
|
+
118,
|
|
4505
|
+
181,
|
|
4506
|
+
247
|
|
4507
|
+
],
|
|
3634
4508
|
accounts: [
|
|
3635
4509
|
{
|
|
3636
4510
|
name: "authority",
|
|
@@ -3649,23 +4523,56 @@ var aligned_distributor_default = {
|
|
|
3649
4523
|
},
|
|
3650
4524
|
{
|
|
3651
4525
|
name: "update_duration",
|
|
3652
|
-
discriminator: [
|
|
4526
|
+
discriminator: [
|
|
4527
|
+
69,
|
|
4528
|
+
126,
|
|
4529
|
+
172,
|
|
4530
|
+
250,
|
|
4531
|
+
164,
|
|
4532
|
+
14,
|
|
4533
|
+
10,
|
|
4534
|
+
161
|
|
4535
|
+
],
|
|
3653
4536
|
accounts: [
|
|
3654
4537
|
{
|
|
3655
4538
|
name: "authority",
|
|
3656
|
-
docs: [
|
|
4539
|
+
docs: [
|
|
4540
|
+
"Wallet authorised to call this method"
|
|
4541
|
+
],
|
|
3657
4542
|
writable: true,
|
|
3658
4543
|
signer: true
|
|
3659
4544
|
},
|
|
3660
4545
|
{
|
|
3661
4546
|
name: "aligned_distributor",
|
|
3662
|
-
docs: [
|
|
4547
|
+
docs: [
|
|
4548
|
+
"The account holding the proxy parameters."
|
|
4549
|
+
],
|
|
3663
4550
|
writable: true,
|
|
3664
4551
|
pda: {
|
|
3665
4552
|
seeds: [
|
|
3666
4553
|
{
|
|
3667
4554
|
kind: "const",
|
|
3668
|
-
value: [
|
|
4555
|
+
value: [
|
|
4556
|
+
97,
|
|
4557
|
+
108,
|
|
4558
|
+
105,
|
|
4559
|
+
103,
|
|
4560
|
+
110,
|
|
4561
|
+
101,
|
|
4562
|
+
100,
|
|
4563
|
+
45,
|
|
4564
|
+
100,
|
|
4565
|
+
105,
|
|
4566
|
+
115,
|
|
4567
|
+
116,
|
|
4568
|
+
114,
|
|
4569
|
+
105,
|
|
4570
|
+
98,
|
|
4571
|
+
117,
|
|
4572
|
+
116,
|
|
4573
|
+
111,
|
|
4574
|
+
114
|
|
4575
|
+
]
|
|
3669
4576
|
},
|
|
3670
4577
|
{
|
|
3671
4578
|
kind: "account",
|
|
@@ -3676,16 +4583,22 @@ var aligned_distributor_default = {
|
|
|
3676
4583
|
},
|
|
3677
4584
|
{
|
|
3678
4585
|
name: "distributor",
|
|
3679
|
-
docs: [
|
|
4586
|
+
docs: [
|
|
4587
|
+
"The account holding the vesting parameters."
|
|
4588
|
+
],
|
|
3680
4589
|
writable: true
|
|
3681
4590
|
},
|
|
3682
4591
|
{
|
|
3683
4592
|
name: "price_oracle",
|
|
3684
|
-
relations: [
|
|
4593
|
+
relations: [
|
|
4594
|
+
"aligned_distributor"
|
|
4595
|
+
]
|
|
3685
4596
|
},
|
|
3686
4597
|
{
|
|
3687
4598
|
name: "distributor_program",
|
|
3688
|
-
docs: [
|
|
4599
|
+
docs: [
|
|
4600
|
+
"MerkleDistributor program"
|
|
4601
|
+
],
|
|
3689
4602
|
address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
|
|
3690
4603
|
},
|
|
3691
4604
|
{
|
|
@@ -3697,7 +4610,16 @@ var aligned_distributor_default = {
|
|
|
3697
4610
|
},
|
|
3698
4611
|
{
|
|
3699
4612
|
name: "update_test_oracle",
|
|
3700
|
-
discriminator: [
|
|
4613
|
+
discriminator: [
|
|
4614
|
+
158,
|
|
4615
|
+
147,
|
|
4616
|
+
215,
|
|
4617
|
+
74,
|
|
4618
|
+
34,
|
|
4619
|
+
123,
|
|
4620
|
+
80,
|
|
4621
|
+
76
|
|
4622
|
+
],
|
|
3701
4623
|
accounts: [
|
|
3702
4624
|
{
|
|
3703
4625
|
name: "authority",
|
|
@@ -3724,15 +4646,42 @@ var aligned_distributor_default = {
|
|
|
3724
4646
|
accounts: [
|
|
3725
4647
|
{
|
|
3726
4648
|
name: "AlignedDistributor",
|
|
3727
|
-
discriminator: [
|
|
4649
|
+
discriminator: [
|
|
4650
|
+
128,
|
|
4651
|
+
76,
|
|
4652
|
+
80,
|
|
4653
|
+
203,
|
|
4654
|
+
248,
|
|
4655
|
+
175,
|
|
4656
|
+
3,
|
|
4657
|
+
43
|
|
4658
|
+
]
|
|
3728
4659
|
},
|
|
3729
4660
|
{
|
|
3730
4661
|
name: "MerkleDistributor",
|
|
3731
|
-
discriminator: [
|
|
4662
|
+
discriminator: [
|
|
4663
|
+
77,
|
|
4664
|
+
119,
|
|
4665
|
+
139,
|
|
4666
|
+
70,
|
|
4667
|
+
84,
|
|
4668
|
+
247,
|
|
4669
|
+
12,
|
|
4670
|
+
26
|
|
4671
|
+
]
|
|
3732
4672
|
},
|
|
3733
4673
|
{
|
|
3734
4674
|
name: "TestOracle",
|
|
3735
|
-
discriminator: [
|
|
4675
|
+
discriminator: [
|
|
4676
|
+
198,
|
|
4677
|
+
49,
|
|
4678
|
+
63,
|
|
4679
|
+
134,
|
|
4680
|
+
232,
|
|
4681
|
+
251,
|
|
4682
|
+
168,
|
|
4683
|
+
28
|
|
4684
|
+
]
|
|
3736
4685
|
}
|
|
3737
4686
|
],
|
|
3738
4687
|
errors: [
|
|
@@ -3810,28 +4759,38 @@ var aligned_distributor_default = {
|
|
|
3810
4759
|
types: [
|
|
3811
4760
|
{
|
|
3812
4761
|
name: "AlignedDistributor",
|
|
3813
|
-
docs: [
|
|
4762
|
+
docs: [
|
|
4763
|
+
"State for the account which distributes tokens."
|
|
4764
|
+
],
|
|
3814
4765
|
type: {
|
|
3815
4766
|
kind: "struct",
|
|
3816
4767
|
fields: [
|
|
3817
4768
|
{
|
|
3818
4769
|
name: "bump",
|
|
3819
|
-
docs: [
|
|
4770
|
+
docs: [
|
|
4771
|
+
"Bump seed."
|
|
4772
|
+
],
|
|
3820
4773
|
type: "u8"
|
|
3821
4774
|
},
|
|
3822
4775
|
{
|
|
3823
4776
|
name: "distributor",
|
|
3824
|
-
docs: [
|
|
4777
|
+
docs: [
|
|
4778
|
+
"[Mint] of the token to be distributed."
|
|
4779
|
+
],
|
|
3825
4780
|
type: "pubkey"
|
|
3826
4781
|
},
|
|
3827
4782
|
{
|
|
3828
4783
|
name: "admin",
|
|
3829
|
-
docs: [
|
|
4784
|
+
docs: [
|
|
4785
|
+
"Admin wallet"
|
|
4786
|
+
],
|
|
3830
4787
|
type: "pubkey"
|
|
3831
4788
|
},
|
|
3832
4789
|
{
|
|
3833
4790
|
name: "price_oracle_type",
|
|
3834
|
-
docs: [
|
|
4791
|
+
docs: [
|
|
4792
|
+
"Type of the Oracle used to derive Token Price"
|
|
4793
|
+
],
|
|
3835
4794
|
type: {
|
|
3836
4795
|
defined: {
|
|
3837
4796
|
name: "OracleType"
|
|
@@ -3840,47 +4799,65 @@ var aligned_distributor_default = {
|
|
|
3840
4799
|
},
|
|
3841
4800
|
{
|
|
3842
4801
|
name: "price_oracle",
|
|
3843
|
-
docs: [
|
|
4802
|
+
docs: [
|
|
4803
|
+
"Address of the Price Oracle"
|
|
4804
|
+
],
|
|
3844
4805
|
type: "pubkey"
|
|
3845
4806
|
},
|
|
3846
4807
|
{
|
|
3847
4808
|
name: "update_period",
|
|
3848
|
-
docs: [
|
|
4809
|
+
docs: [
|
|
4810
|
+
"Period of updates, can be different from unlock period if needed"
|
|
4811
|
+
],
|
|
3849
4812
|
type: "u64"
|
|
3850
4813
|
},
|
|
3851
4814
|
{
|
|
3852
4815
|
name: "min_price",
|
|
3853
|
-
docs: [
|
|
4816
|
+
docs: [
|
|
4817
|
+
"Min price boundary"
|
|
4818
|
+
],
|
|
3854
4819
|
type: "u64"
|
|
3855
4820
|
},
|
|
3856
4821
|
{
|
|
3857
4822
|
name: "max_price",
|
|
3858
|
-
docs: [
|
|
4823
|
+
docs: [
|
|
4824
|
+
"Max price boundary"
|
|
4825
|
+
],
|
|
3859
4826
|
type: "u64"
|
|
3860
4827
|
},
|
|
3861
4828
|
{
|
|
3862
4829
|
name: "min_percentage",
|
|
3863
|
-
docs: [
|
|
4830
|
+
docs: [
|
|
4831
|
+
"Min percentage boundary, can be 0 that equals 1 Raw Token"
|
|
4832
|
+
],
|
|
3864
4833
|
type: "u64"
|
|
3865
4834
|
},
|
|
3866
4835
|
{
|
|
3867
4836
|
name: "max_percentage",
|
|
3868
|
-
docs: [
|
|
4837
|
+
docs: [
|
|
4838
|
+
"Max percentage boundary"
|
|
4839
|
+
],
|
|
3869
4840
|
type: "u64"
|
|
3870
4841
|
},
|
|
3871
4842
|
{
|
|
3872
4843
|
name: "tick_size",
|
|
3873
|
-
docs: [
|
|
4844
|
+
docs: [
|
|
4845
|
+
"Ticket size for percentage boundaries"
|
|
4846
|
+
],
|
|
3874
4847
|
type: "u64"
|
|
3875
4848
|
},
|
|
3876
4849
|
{
|
|
3877
4850
|
name: "start_ts",
|
|
3878
|
-
docs: [
|
|
4851
|
+
docs: [
|
|
4852
|
+
"Copy start ts from the Distributor to be used in the worker"
|
|
4853
|
+
],
|
|
3879
4854
|
type: "u64"
|
|
3880
4855
|
},
|
|
3881
4856
|
{
|
|
3882
4857
|
name: "end_ts",
|
|
3883
|
-
docs: [
|
|
4858
|
+
docs: [
|
|
4859
|
+
"Copy end ts from the Distributor to be used in the worker"
|
|
4860
|
+
],
|
|
3884
4861
|
type: "u64"
|
|
3885
4862
|
},
|
|
3886
4863
|
{
|
|
@@ -3892,41 +4869,61 @@ var aligned_distributor_default = {
|
|
|
3892
4869
|
},
|
|
3893
4870
|
{
|
|
3894
4871
|
name: "last_price",
|
|
3895
|
-
docs: [
|
|
4872
|
+
docs: [
|
|
4873
|
+
"Price used on last amount calculation"
|
|
4874
|
+
],
|
|
3896
4875
|
type: "u64"
|
|
3897
4876
|
},
|
|
3898
4877
|
{
|
|
3899
4878
|
name: "initial_duration",
|
|
3900
|
-
docs: [
|
|
4879
|
+
docs: [
|
|
4880
|
+
"Initial Airdrop Vesting duration"
|
|
4881
|
+
],
|
|
3901
4882
|
type: "u64"
|
|
3902
4883
|
},
|
|
3903
4884
|
{
|
|
3904
4885
|
name: "initial_price",
|
|
3905
|
-
docs: [
|
|
4886
|
+
docs: [
|
|
4887
|
+
"Initial token price at the time of Contract creation"
|
|
4888
|
+
],
|
|
3906
4889
|
type: "u64"
|
|
3907
4890
|
},
|
|
3908
4891
|
{
|
|
3909
4892
|
name: "distributor_clawed_back",
|
|
3910
|
-
docs: [
|
|
4893
|
+
docs: [
|
|
4894
|
+
"Whether distributor was clawed backed"
|
|
4895
|
+
],
|
|
3911
4896
|
type: "bool"
|
|
3912
4897
|
},
|
|
3913
4898
|
{
|
|
3914
4899
|
name: "mint",
|
|
3915
|
-
docs: [
|
|
4900
|
+
docs: [
|
|
4901
|
+
"Mint for which the distributor was created"
|
|
4902
|
+
],
|
|
3916
4903
|
type: "pubkey"
|
|
3917
4904
|
},
|
|
3918
4905
|
{
|
|
3919
4906
|
name: "buffer_2",
|
|
3920
|
-
docs: [
|
|
4907
|
+
docs: [
|
|
4908
|
+
"Buffer for additional fields"
|
|
4909
|
+
],
|
|
3921
4910
|
type: {
|
|
3922
|
-
array: [
|
|
4911
|
+
array: [
|
|
4912
|
+
"u8",
|
|
4913
|
+
32
|
|
4914
|
+
]
|
|
3923
4915
|
}
|
|
3924
4916
|
},
|
|
3925
4917
|
{
|
|
3926
4918
|
name: "buffer_3",
|
|
3927
|
-
docs: [
|
|
4919
|
+
docs: [
|
|
4920
|
+
"Buffer for additional fields"
|
|
4921
|
+
],
|
|
3928
4922
|
type: {
|
|
3929
|
-
array: [
|
|
4923
|
+
array: [
|
|
4924
|
+
"u8",
|
|
4925
|
+
32
|
|
4926
|
+
]
|
|
3930
4927
|
}
|
|
3931
4928
|
}
|
|
3932
4929
|
]
|
|
@@ -3974,115 +4971,162 @@ var aligned_distributor_default = {
|
|
|
3974
4971
|
},
|
|
3975
4972
|
{
|
|
3976
4973
|
name: "MerkleDistributor",
|
|
3977
|
-
docs: [
|
|
4974
|
+
docs: [
|
|
4975
|
+
"State for the account which distributes tokens."
|
|
4976
|
+
],
|
|
3978
4977
|
type: {
|
|
3979
4978
|
kind: "struct",
|
|
3980
4979
|
fields: [
|
|
3981
4980
|
{
|
|
3982
4981
|
name: "bump",
|
|
3983
|
-
docs: [
|
|
4982
|
+
docs: [
|
|
4983
|
+
"Bump seed."
|
|
4984
|
+
],
|
|
3984
4985
|
type: "u8"
|
|
3985
4986
|
},
|
|
3986
4987
|
{
|
|
3987
4988
|
name: "version",
|
|
3988
|
-
docs: [
|
|
4989
|
+
docs: [
|
|
4990
|
+
"Version of the airdrop"
|
|
4991
|
+
],
|
|
3989
4992
|
type: "u64"
|
|
3990
4993
|
},
|
|
3991
4994
|
{
|
|
3992
4995
|
name: "root",
|
|
3993
|
-
docs: [
|
|
4996
|
+
docs: [
|
|
4997
|
+
"The 256-bit merkle root."
|
|
4998
|
+
],
|
|
3994
4999
|
type: {
|
|
3995
|
-
array: [
|
|
5000
|
+
array: [
|
|
5001
|
+
"u8",
|
|
5002
|
+
32
|
|
5003
|
+
]
|
|
3996
5004
|
}
|
|
3997
5005
|
},
|
|
3998
5006
|
{
|
|
3999
5007
|
name: "mint",
|
|
4000
|
-
docs: [
|
|
5008
|
+
docs: [
|
|
5009
|
+
"[Mint] of the token to be distributed."
|
|
5010
|
+
],
|
|
4001
5011
|
type: "pubkey"
|
|
4002
5012
|
},
|
|
4003
5013
|
{
|
|
4004
5014
|
name: "token_vault",
|
|
4005
|
-
docs: [
|
|
5015
|
+
docs: [
|
|
5016
|
+
"Token Address of the vault"
|
|
5017
|
+
],
|
|
4006
5018
|
type: "pubkey"
|
|
4007
5019
|
},
|
|
4008
5020
|
{
|
|
4009
5021
|
name: "max_total_claim",
|
|
4010
|
-
docs: [
|
|
5022
|
+
docs: [
|
|
5023
|
+
"Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
|
|
5024
|
+
],
|
|
4011
5025
|
type: "u64"
|
|
4012
5026
|
},
|
|
4013
5027
|
{
|
|
4014
5028
|
name: "max_num_nodes",
|
|
4015
|
-
docs: [
|
|
5029
|
+
docs: [
|
|
5030
|
+
"Maximum number of nodes in [MerkleDistributor]."
|
|
5031
|
+
],
|
|
4016
5032
|
type: "u64"
|
|
4017
5033
|
},
|
|
4018
5034
|
{
|
|
4019
5035
|
name: "unlock_period",
|
|
4020
|
-
docs: [
|
|
5036
|
+
docs: [
|
|
5037
|
+
"Time step (period) in seconds per which the unlock occurs"
|
|
5038
|
+
],
|
|
4021
5039
|
type: "u64"
|
|
4022
5040
|
},
|
|
4023
5041
|
{
|
|
4024
5042
|
name: "total_amount_claimed",
|
|
4025
|
-
docs: [
|
|
5043
|
+
docs: [
|
|
5044
|
+
"Total amount of tokens that have been claimed."
|
|
5045
|
+
],
|
|
4026
5046
|
type: "u64"
|
|
4027
5047
|
},
|
|
4028
5048
|
{
|
|
4029
5049
|
name: "num_nodes_claimed",
|
|
4030
|
-
docs: [
|
|
5050
|
+
docs: [
|
|
5051
|
+
"Number of nodes that have been claimed."
|
|
5052
|
+
],
|
|
4031
5053
|
type: "u64"
|
|
4032
5054
|
},
|
|
4033
5055
|
{
|
|
4034
5056
|
name: "start_ts",
|
|
4035
|
-
docs: [
|
|
5057
|
+
docs: [
|
|
5058
|
+
"Lockup time start (Unix Timestamp)"
|
|
5059
|
+
],
|
|
4036
5060
|
type: "u64"
|
|
4037
5061
|
},
|
|
4038
5062
|
{
|
|
4039
5063
|
name: "end_ts",
|
|
4040
|
-
docs: [
|
|
5064
|
+
docs: [
|
|
5065
|
+
"Lockup time end (Unix Timestamp)"
|
|
5066
|
+
],
|
|
4041
5067
|
type: "u64"
|
|
4042
5068
|
},
|
|
4043
5069
|
{
|
|
4044
5070
|
name: "clawback_start_ts",
|
|
4045
|
-
docs: [
|
|
5071
|
+
docs: [
|
|
5072
|
+
"Clawback start (Unix Timestamp)"
|
|
5073
|
+
],
|
|
4046
5074
|
type: "u64"
|
|
4047
5075
|
},
|
|
4048
5076
|
{
|
|
4049
5077
|
name: "clawback_receiver",
|
|
4050
|
-
docs: [
|
|
5078
|
+
docs: [
|
|
5079
|
+
"Clawback receiver"
|
|
5080
|
+
],
|
|
4051
5081
|
type: "pubkey"
|
|
4052
5082
|
},
|
|
4053
5083
|
{
|
|
4054
5084
|
name: "admin",
|
|
4055
|
-
docs: [
|
|
5085
|
+
docs: [
|
|
5086
|
+
"Admin wallet"
|
|
5087
|
+
],
|
|
4056
5088
|
type: "pubkey"
|
|
4057
5089
|
},
|
|
4058
5090
|
{
|
|
4059
5091
|
name: "clawed_back",
|
|
4060
|
-
docs: [
|
|
5092
|
+
docs: [
|
|
5093
|
+
"Whether or not the distributor has been clawed back"
|
|
5094
|
+
],
|
|
4061
5095
|
type: "bool"
|
|
4062
5096
|
},
|
|
4063
5097
|
{
|
|
4064
5098
|
name: "claims_closable_by_admin",
|
|
4065
|
-
docs: [
|
|
5099
|
+
docs: [
|
|
5100
|
+
"Whether claims are closable by the admin or not"
|
|
5101
|
+
],
|
|
4066
5102
|
type: "bool"
|
|
4067
5103
|
},
|
|
4068
5104
|
{
|
|
4069
5105
|
name: "can_update_duration",
|
|
4070
|
-
docs: [
|
|
5106
|
+
docs: [
|
|
5107
|
+
"Whether admin can update vesting duration"
|
|
5108
|
+
],
|
|
4071
5109
|
type: "bool"
|
|
4072
5110
|
},
|
|
4073
5111
|
{
|
|
4074
5112
|
name: "total_amount_unlocked",
|
|
4075
|
-
docs: [
|
|
5113
|
+
docs: [
|
|
5114
|
+
"Total amount of funds unlocked (cliff/instant)"
|
|
5115
|
+
],
|
|
4076
5116
|
type: "u64"
|
|
4077
5117
|
},
|
|
4078
5118
|
{
|
|
4079
5119
|
name: "total_amount_locked",
|
|
4080
|
-
docs: [
|
|
5120
|
+
docs: [
|
|
5121
|
+
"Total amount of funds locked (vested)"
|
|
5122
|
+
],
|
|
4081
5123
|
type: "u64"
|
|
4082
5124
|
},
|
|
4083
5125
|
{
|
|
4084
5126
|
name: "last_duration_update_ts",
|
|
4085
|
-
docs: [
|
|
5127
|
+
docs: [
|
|
5128
|
+
"Timestamp when update was last called"
|
|
5129
|
+
],
|
|
4086
5130
|
type: "u64"
|
|
4087
5131
|
},
|
|
4088
5132
|
{
|
|
@@ -4094,31 +5138,47 @@ var aligned_distributor_default = {
|
|
|
4094
5138
|
},
|
|
4095
5139
|
{
|
|
4096
5140
|
name: "clawed_back_ts",
|
|
4097
|
-
docs: [
|
|
5141
|
+
docs: [
|
|
5142
|
+
"Timestamp when funds were clawed back"
|
|
5143
|
+
],
|
|
4098
5144
|
type: "u64"
|
|
4099
5145
|
},
|
|
4100
5146
|
{
|
|
4101
5147
|
name: "claims_closable_by_claimant",
|
|
4102
|
-
docs: [
|
|
5148
|
+
docs: [
|
|
5149
|
+
"Whether claims are closable by claimant or not"
|
|
5150
|
+
],
|
|
4103
5151
|
type: "bool"
|
|
4104
5152
|
},
|
|
4105
5153
|
{
|
|
4106
5154
|
name: "claims_limit",
|
|
4107
|
-
docs: [
|
|
5155
|
+
docs: [
|
|
5156
|
+
"Limit number of claims"
|
|
5157
|
+
],
|
|
4108
5158
|
type: "u16"
|
|
4109
5159
|
},
|
|
4110
5160
|
{
|
|
4111
5161
|
name: "buffer_2",
|
|
4112
|
-
docs: [
|
|
5162
|
+
docs: [
|
|
5163
|
+
"Buffer for additional fields"
|
|
5164
|
+
],
|
|
4113
5165
|
type: {
|
|
4114
|
-
array: [
|
|
5166
|
+
array: [
|
|
5167
|
+
"u8",
|
|
5168
|
+
20
|
|
5169
|
+
]
|
|
4115
5170
|
}
|
|
4116
5171
|
},
|
|
4117
5172
|
{
|
|
4118
5173
|
name: "buffer_3",
|
|
4119
|
-
docs: [
|
|
5174
|
+
docs: [
|
|
5175
|
+
"Buffer for additional fields"
|
|
5176
|
+
],
|
|
4120
5177
|
type: {
|
|
4121
|
-
array: [
|
|
5178
|
+
array: [
|
|
5179
|
+
"u8",
|
|
5180
|
+
32
|
|
5181
|
+
]
|
|
4122
5182
|
}
|
|
4123
5183
|
}
|
|
4124
5184
|
]
|
|
@@ -4136,7 +5196,10 @@ var aligned_distributor_default = {
|
|
|
4136
5196
|
{
|
|
4137
5197
|
name: "root",
|
|
4138
5198
|
type: {
|
|
4139
|
-
array: [
|
|
5199
|
+
array: [
|
|
5200
|
+
"u8",
|
|
5201
|
+
32
|
|
5202
|
+
]
|
|
4140
5203
|
}
|
|
4141
5204
|
},
|
|
4142
5205
|
{
|