@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.
@@ -282,7 +282,8 @@ function closeClaim(args, accounts, programId = PROGRAM_ID) {
282
282
  const keys = [
283
283
  { pubkey: accounts.distributor, isSigner: false, isWritable: true },
284
284
  { pubkey: accounts.adminOrClaimant, isSigner: true, isWritable: true },
285
- { pubkey: accounts.claimant, isSigner: false, isWritable: false },
285
+ { pubkey: accounts.payer, isSigner: true, isWritable: true },
286
+ { pubkey: accounts.claimant, isSigner: false, isWritable: true },
286
287
  { pubkey: accounts.claimStatus, isSigner: false, isWritable: true },
287
288
  { pubkey: accounts.systemProgram, isSigner: false, isWritable: false },
288
289
  { pubkey: accounts.eventAuthority, isSigner: false, isWritable: false },
@@ -371,7 +372,7 @@ var merkle_distributor_default = {
371
372
  address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N",
372
373
  metadata: {
373
374
  name: "merkle_distributor",
374
- version: "1.5.0",
375
+ version: "1.5.1",
375
376
  spec: "0.1.0",
376
377
  description: "A Solana program for distributing tokens according to a Merkle root.",
377
378
  repository: "https://github.com/streamflow-finance/distributor"
@@ -379,21 +380,46 @@ var merkle_distributor_default = {
379
380
  instructions: [
380
381
  {
381
382
  name: "_expose_claim",
382
- discriminator: [103, 233, 83, 69, 115, 199, 128, 249],
383
+ discriminator: [
384
+ 103,
385
+ 233,
386
+ 83,
387
+ 69,
388
+ 115,
389
+ 199,
390
+ 128,
391
+ 249
392
+ ],
383
393
  accounts: [
384
394
  {
385
395
  name: "distributor",
386
- docs: ["The [MerkleDistributor]."]
396
+ docs: [
397
+ "The [MerkleDistributor]."
398
+ ]
387
399
  },
388
400
  {
389
401
  name: "claim_status",
390
- docs: ["Claim Status PDA"],
402
+ docs: [
403
+ "Claim Status PDA"
404
+ ],
391
405
  optional: true,
392
406
  pda: {
393
407
  seeds: [
394
408
  {
395
409
  kind: "const",
396
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
410
+ value: [
411
+ 67,
412
+ 108,
413
+ 97,
414
+ 105,
415
+ 109,
416
+ 83,
417
+ 116,
418
+ 97,
419
+ 116,
420
+ 117,
421
+ 115
422
+ ]
397
423
  },
398
424
  {
399
425
  kind: "account",
@@ -408,13 +434,27 @@ var merkle_distributor_default = {
408
434
  },
409
435
  {
410
436
  name: "compressed_claim_status",
411
- docs: ["Compress Claim Status PDA"],
437
+ docs: [
438
+ "Compress Claim Status PDA"
439
+ ],
412
440
  optional: true,
413
441
  pda: {
414
442
  seeds: [
415
443
  {
416
444
  kind: "const",
417
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
445
+ value: [
446
+ 67,
447
+ 108,
448
+ 97,
449
+ 105,
450
+ 109,
451
+ 83,
452
+ 116,
453
+ 97,
454
+ 116,
455
+ 117,
456
+ 115
457
+ ]
418
458
  },
419
459
  {
420
460
  kind: "account",
@@ -429,7 +469,9 @@ var merkle_distributor_default = {
429
469
  },
430
470
  {
431
471
  name: "claimant",
432
- docs: ["Who is claiming the tokens."],
472
+ docs: [
473
+ "Who is claiming the tokens."
474
+ ],
433
475
  signer: true
434
476
  }
435
477
  ],
@@ -437,11 +479,22 @@ var merkle_distributor_default = {
437
479
  },
438
480
  {
439
481
  name: "claim_locked",
440
- discriminator: [34, 206, 181, 23, 11, 207, 147, 90],
482
+ discriminator: [
483
+ 34,
484
+ 206,
485
+ 181,
486
+ 23,
487
+ 11,
488
+ 207,
489
+ 147,
490
+ 90
491
+ ],
441
492
  accounts: [
442
493
  {
443
494
  name: "distributor",
444
- docs: ["The [MerkleDistributor]."],
495
+ docs: [
496
+ "The [MerkleDistributor]."
497
+ ],
445
498
  writable: true
446
499
  },
447
500
  {
@@ -451,7 +504,19 @@ var merkle_distributor_default = {
451
504
  seeds: [
452
505
  {
453
506
  kind: "const",
454
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
507
+ value: [
508
+ 67,
509
+ 108,
510
+ 97,
511
+ 105,
512
+ 109,
513
+ 83,
514
+ 116,
515
+ 97,
516
+ 116,
517
+ 117,
518
+ 115
519
+ ]
455
520
  },
456
521
  {
457
522
  kind: "account",
@@ -466,7 +531,9 @@ var merkle_distributor_default = {
466
531
  },
467
532
  {
468
533
  name: "from",
469
- docs: ["Distributor ATA containing the tokens to distribute."],
534
+ docs: [
535
+ "Distributor ATA containing the tokens to distribute."
536
+ ],
470
537
  writable: true,
471
538
  pda: {
472
539
  seeds: [
@@ -533,18 +600,26 @@ var merkle_distributor_default = {
533
600
  },
534
601
  {
535
602
  name: "claimant",
536
- docs: ["Who is claiming the tokens."],
603
+ docs: [
604
+ "Who is claiming the tokens."
605
+ ],
537
606
  writable: true,
538
607
  signer: true
539
608
  },
540
609
  {
541
610
  name: "mint",
542
- docs: ["The mint to claim."],
543
- relations: ["distributor"]
611
+ docs: [
612
+ "The mint to claim."
613
+ ],
614
+ relations: [
615
+ "distributor"
616
+ ]
544
617
  },
545
618
  {
546
619
  name: "token_program",
547
- docs: ["SPL [Token] program."]
620
+ docs: [
621
+ "SPL [Token] program."
622
+ ]
548
623
  },
549
624
  {
550
625
  name: "event_authority",
@@ -552,7 +627,25 @@ var merkle_distributor_default = {
552
627
  seeds: [
553
628
  {
554
629
  kind: "const",
555
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
630
+ value: [
631
+ 95,
632
+ 95,
633
+ 101,
634
+ 118,
635
+ 101,
636
+ 110,
637
+ 116,
638
+ 95,
639
+ 97,
640
+ 117,
641
+ 116,
642
+ 104,
643
+ 111,
644
+ 114,
645
+ 105,
646
+ 116,
647
+ 121
648
+ ]
556
649
  }
557
650
  ]
558
651
  }
@@ -565,26 +658,43 @@ var merkle_distributor_default = {
565
658
  },
566
659
  {
567
660
  name: "clawback",
568
- discriminator: [111, 92, 142, 79, 33, 234, 82, 27],
661
+ discriminator: [
662
+ 111,
663
+ 92,
664
+ 142,
665
+ 79,
666
+ 33,
667
+ 234,
668
+ 82,
669
+ 27
670
+ ],
569
671
  accounts: [
570
672
  {
571
673
  name: "distributor",
572
- docs: ["The [MerkleDistributor]."],
674
+ docs: [
675
+ "The [MerkleDistributor]."
676
+ ],
573
677
  writable: true
574
678
  },
575
679
  {
576
680
  name: "from",
577
- docs: ["Distributor ATA containing the tokens to distribute."],
681
+ docs: [
682
+ "Distributor ATA containing the tokens to distribute."
683
+ ],
578
684
  writable: true
579
685
  },
580
686
  {
581
687
  name: "to",
582
- docs: ["The Clawback token account."],
688
+ docs: [
689
+ "The Clawback token account."
690
+ ],
583
691
  writable: true
584
692
  },
585
693
  {
586
694
  name: "admin",
587
- docs: ["Only Admin can trigger the clawback of funds"],
695
+ docs: [
696
+ "Only Admin can trigger the clawback of funds"
697
+ ],
588
698
  writable: true,
589
699
  signer: true
590
700
  },
@@ -593,28 +703,53 @@ var merkle_distributor_default = {
593
703
  },
594
704
  {
595
705
  name: "system_program",
596
- docs: ["The [System] program."],
706
+ docs: [
707
+ "The [System] program."
708
+ ],
597
709
  address: "11111111111111111111111111111111"
598
710
  },
599
711
  {
600
712
  name: "token_program",
601
- docs: ["SPL [Token] program."]
713
+ docs: [
714
+ "SPL [Token] program."
715
+ ]
602
716
  }
603
717
  ],
604
718
  args: []
605
719
  },
606
720
  {
607
721
  name: "close_claim",
608
- discriminator: [42, 177, 165, 35, 213, 179, 211, 19],
722
+ discriminator: [
723
+ 42,
724
+ 177,
725
+ 165,
726
+ 35,
727
+ 213,
728
+ 179,
729
+ 211,
730
+ 19
731
+ ],
609
732
  accounts: [
610
733
  {
611
734
  name: "distributor",
612
- docs: ["The [MerkleDistributor]."],
735
+ docs: [
736
+ "The [MerkleDistributor]."
737
+ ],
613
738
  writable: true
614
739
  },
615
740
  {
616
741
  name: "admin_or_claimant",
617
- docs: ["Admin signer"],
742
+ docs: [
743
+ "Admin signer"
744
+ ],
745
+ writable: true,
746
+ signer: true
747
+ },
748
+ {
749
+ name: "payer",
750
+ docs: [
751
+ "Optional payer for the account creation in case it doesn't exist"
752
+ ],
618
753
  writable: true,
619
754
  signer: true
620
755
  },
@@ -629,7 +764,19 @@ var merkle_distributor_default = {
629
764
  seeds: [
630
765
  {
631
766
  kind: "const",
632
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
767
+ value: [
768
+ 67,
769
+ 108,
770
+ 97,
771
+ 105,
772
+ 109,
773
+ 83,
774
+ 116,
775
+ 97,
776
+ 116,
777
+ 117,
778
+ 115
779
+ ]
633
780
  },
634
781
  {
635
782
  kind: "account",
@@ -644,7 +791,9 @@ var merkle_distributor_default = {
644
791
  },
645
792
  {
646
793
  name: "system_program",
647
- docs: ["The [System] program."],
794
+ docs: [
795
+ "The [System] program."
796
+ ],
648
797
  address: "11111111111111111111111111111111"
649
798
  },
650
799
  {
@@ -653,7 +802,25 @@ var merkle_distributor_default = {
653
802
  seeds: [
654
803
  {
655
804
  kind: "const",
656
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
805
+ value: [
806
+ 95,
807
+ 95,
808
+ 101,
809
+ 118,
810
+ 101,
811
+ 110,
812
+ 116,
813
+ 95,
814
+ 97,
815
+ 117,
816
+ 116,
817
+ 104,
818
+ 111,
819
+ 114,
820
+ 105,
821
+ 116,
822
+ 121
823
+ ]
657
824
  }
658
825
  ]
659
826
  }
@@ -680,7 +847,10 @@ var merkle_distributor_default = {
680
847
  type: {
681
848
  option: {
682
849
  vec: {
683
- array: ["u8", 32]
850
+ array: [
851
+ "u8",
852
+ 32
853
+ ]
684
854
  }
685
855
  }
686
856
  }
@@ -689,11 +859,22 @@ var merkle_distributor_default = {
689
859
  },
690
860
  {
691
861
  name: "compress_claim",
692
- discriminator: [219, 45, 247, 134, 71, 119, 125, 89],
862
+ discriminator: [
863
+ 219,
864
+ 45,
865
+ 247,
866
+ 134,
867
+ 71,
868
+ 119,
869
+ 125,
870
+ 89
871
+ ],
693
872
  accounts: [
694
873
  {
695
874
  name: "distributor",
696
- docs: ["The [MerkleDistributor]."],
875
+ docs: [
876
+ "The [MerkleDistributor]."
877
+ ],
697
878
  writable: true
698
879
  },
699
880
  {
@@ -703,7 +884,19 @@ var merkle_distributor_default = {
703
884
  seeds: [
704
885
  {
705
886
  kind: "const",
706
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
887
+ value: [
888
+ 67,
889
+ 108,
890
+ 97,
891
+ 105,
892
+ 109,
893
+ 83,
894
+ 116,
895
+ 97,
896
+ 116,
897
+ 117,
898
+ 115
899
+ ]
707
900
  },
708
901
  {
709
902
  kind: "account",
@@ -718,7 +911,9 @@ var merkle_distributor_default = {
718
911
  },
719
912
  {
720
913
  name: "signer",
721
- docs: ["Signer account"],
914
+ docs: [
915
+ "Signer account"
916
+ ],
722
917
  writable: true,
723
918
  signer: true
724
919
  },
@@ -727,7 +922,9 @@ var merkle_distributor_default = {
727
922
  },
728
923
  {
729
924
  name: "system_program",
730
- docs: ["The [System] program."],
925
+ docs: [
926
+ "The [System] program."
927
+ ],
731
928
  address: "11111111111111111111111111111111"
732
929
  }
733
930
  ],
@@ -735,11 +932,22 @@ var merkle_distributor_default = {
735
932
  },
736
933
  {
737
934
  name: "new_claim",
738
- discriminator: [78, 177, 98, 123, 210, 21, 187, 83],
935
+ discriminator: [
936
+ 78,
937
+ 177,
938
+ 98,
939
+ 123,
940
+ 210,
941
+ 21,
942
+ 187,
943
+ 83
944
+ ],
739
945
  accounts: [
740
946
  {
741
947
  name: "distributor",
742
- docs: ["The [MerkleDistributor]."],
948
+ docs: [
949
+ "The [MerkleDistributor]."
950
+ ],
743
951
  writable: true
744
952
  },
745
953
  {
@@ -749,7 +957,19 @@ var merkle_distributor_default = {
749
957
  seeds: [
750
958
  {
751
959
  kind: "const",
752
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
960
+ value: [
961
+ 67,
962
+ 108,
963
+ 97,
964
+ 105,
965
+ 109,
966
+ 83,
967
+ 116,
968
+ 97,
969
+ 116,
970
+ 117,
971
+ 115
972
+ ]
753
973
  },
754
974
  {
755
975
  kind: "account",
@@ -764,7 +984,9 @@ var merkle_distributor_default = {
764
984
  },
765
985
  {
766
986
  name: "from",
767
- docs: ["Distributor ATA containing the tokens to distribute."],
987
+ docs: [
988
+ "Distributor ATA containing the tokens to distribute."
989
+ ],
768
990
  writable: true,
769
991
  pda: {
770
992
  seeds: [
@@ -823,27 +1045,39 @@ var merkle_distributor_default = {
823
1045
  },
824
1046
  {
825
1047
  name: "to",
826
- docs: ["Account to send the claimed tokens to."],
1048
+ docs: [
1049
+ "Account to send the claimed tokens to."
1050
+ ],
827
1051
  writable: true
828
1052
  },
829
1053
  {
830
1054
  name: "claimant",
831
- docs: ["Who is claiming the tokens."],
1055
+ docs: [
1056
+ "Who is claiming the tokens."
1057
+ ],
832
1058
  writable: true,
833
1059
  signer: true
834
1060
  },
835
1061
  {
836
1062
  name: "mint",
837
- docs: ["The mint to claim."],
838
- relations: ["distributor"]
1063
+ docs: [
1064
+ "The mint to claim."
1065
+ ],
1066
+ relations: [
1067
+ "distributor"
1068
+ ]
839
1069
  },
840
1070
  {
841
1071
  name: "token_program",
842
- docs: ["SPL [Token] program."]
1072
+ docs: [
1073
+ "SPL [Token] program."
1074
+ ]
843
1075
  },
844
1076
  {
845
1077
  name: "system_program",
846
- docs: ["The [System] program."],
1078
+ docs: [
1079
+ "The [System] program."
1080
+ ],
847
1081
  address: "11111111111111111111111111111111"
848
1082
  },
849
1083
  {
@@ -852,7 +1086,25 @@ var merkle_distributor_default = {
852
1086
  seeds: [
853
1087
  {
854
1088
  kind: "const",
855
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
1089
+ value: [
1090
+ 95,
1091
+ 95,
1092
+ 101,
1093
+ 118,
1094
+ 101,
1095
+ 110,
1096
+ 116,
1097
+ 95,
1098
+ 97,
1099
+ 117,
1100
+ 116,
1101
+ 104,
1102
+ 111,
1103
+ 114,
1104
+ 105,
1105
+ 116,
1106
+ 121
1107
+ ]
856
1108
  }
857
1109
  ]
858
1110
  }
@@ -874,7 +1126,10 @@ var merkle_distributor_default = {
874
1126
  name: "proof",
875
1127
  type: {
876
1128
  vec: {
877
- array: ["u8", 32]
1129
+ array: [
1130
+ "u8",
1131
+ 32
1132
+ ]
878
1133
  }
879
1134
  }
880
1135
  }
@@ -902,17 +1157,46 @@ var merkle_distributor_default = {
902
1157
  "assert the parameters are what you expect, most importantly the clawback_receiver and admin.",
903
1158
  "- If your transaction fails, double check the value on-chain matches what you expect."
904
1159
  ],
905
- discriminator: [32, 139, 112, 171, 0, 2, 225, 155],
1160
+ discriminator: [
1161
+ 32,
1162
+ 139,
1163
+ 112,
1164
+ 171,
1165
+ 0,
1166
+ 2,
1167
+ 225,
1168
+ 155
1169
+ ],
906
1170
  accounts: [
907
1171
  {
908
1172
  name: "distributor",
909
- docs: ["[MerkleDistributor]."],
1173
+ docs: [
1174
+ "[MerkleDistributor]."
1175
+ ],
910
1176
  writable: true,
911
1177
  pda: {
912
1178
  seeds: [
913
1179
  {
914
1180
  kind: "const",
915
- value: [77, 101, 114, 107, 108, 101, 68, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
1181
+ value: [
1182
+ 77,
1183
+ 101,
1184
+ 114,
1185
+ 107,
1186
+ 108,
1187
+ 101,
1188
+ 68,
1189
+ 105,
1190
+ 115,
1191
+ 116,
1192
+ 114,
1193
+ 105,
1194
+ 98,
1195
+ 117,
1196
+ 116,
1197
+ 111,
1198
+ 114
1199
+ ]
916
1200
  },
917
1201
  {
918
1202
  kind: "account",
@@ -927,16 +1211,22 @@ var merkle_distributor_default = {
927
1211
  },
928
1212
  {
929
1213
  name: "clawback_receiver",
930
- docs: ["Clawback receiver token account"],
1214
+ docs: [
1215
+ "Clawback receiver token account"
1216
+ ],
931
1217
  writable: true
932
1218
  },
933
1219
  {
934
1220
  name: "mint",
935
- docs: ["The mint to distribute."]
1221
+ docs: [
1222
+ "The mint to distribute."
1223
+ ]
936
1224
  },
937
1225
  {
938
1226
  name: "token_vault",
939
- docs: ["Token vault"],
1227
+ docs: [
1228
+ "Token vault"
1229
+ ],
940
1230
  writable: true,
941
1231
  pda: {
942
1232
  seeds: [
@@ -1003,17 +1293,23 @@ var merkle_distributor_default = {
1003
1293
  },
1004
1294
  {
1005
1295
  name: "system_program",
1006
- docs: ["The [System] program."],
1296
+ docs: [
1297
+ "The [System] program."
1298
+ ],
1007
1299
  address: "11111111111111111111111111111111"
1008
1300
  },
1009
1301
  {
1010
1302
  name: "associated_token_program",
1011
- docs: ["The [Associated Token] program."],
1303
+ docs: [
1304
+ "The [Associated Token] program."
1305
+ ],
1012
1306
  address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
1013
1307
  },
1014
1308
  {
1015
1309
  name: "token_program",
1016
- docs: ["The [Token] program."]
1310
+ docs: [
1311
+ "The [Token] program."
1312
+ ]
1017
1313
  }
1018
1314
  ],
1019
1315
  args: [
@@ -1024,7 +1320,10 @@ var merkle_distributor_default = {
1024
1320
  {
1025
1321
  name: "root",
1026
1322
  type: {
1027
- array: ["u8", 32]
1323
+ array: [
1324
+ "u8",
1325
+ 32
1326
+ ]
1028
1327
  }
1029
1328
  },
1030
1329
  {
@@ -1089,11 +1388,22 @@ var merkle_distributor_default = {
1089
1388
  },
1090
1389
  {
1091
1390
  name: "refund_claim",
1092
- discriminator: [157, 23, 164, 146, 176, 53, 147, 143],
1391
+ discriminator: [
1392
+ 157,
1393
+ 23,
1394
+ 164,
1395
+ 146,
1396
+ 176,
1397
+ 53,
1398
+ 147,
1399
+ 143
1400
+ ],
1093
1401
  accounts: [
1094
1402
  {
1095
1403
  name: "distributor",
1096
- docs: ["The [MerkleDistributor]."],
1404
+ docs: [
1405
+ "The [MerkleDistributor]."
1406
+ ],
1097
1407
  writable: true
1098
1408
  },
1099
1409
  {
@@ -1103,7 +1413,19 @@ var merkle_distributor_default = {
1103
1413
  seeds: [
1104
1414
  {
1105
1415
  kind: "const",
1106
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
1416
+ value: [
1417
+ 67,
1418
+ 108,
1419
+ 97,
1420
+ 105,
1421
+ 109,
1422
+ 83,
1423
+ 116,
1424
+ 97,
1425
+ 116,
1426
+ 117,
1427
+ 115
1428
+ ]
1107
1429
  },
1108
1430
  {
1109
1431
  kind: "account",
@@ -1118,7 +1440,9 @@ var merkle_distributor_default = {
1118
1440
  },
1119
1441
  {
1120
1442
  name: "signer",
1121
- docs: ["Signer account"],
1443
+ docs: [
1444
+ "Signer account"
1445
+ ],
1122
1446
  writable: true,
1123
1447
  signer: true
1124
1448
  },
@@ -1132,7 +1456,9 @@ var merkle_distributor_default = {
1132
1456
  },
1133
1457
  {
1134
1458
  name: "system_program",
1135
- docs: ["The [System] program."],
1459
+ docs: [
1460
+ "The [System] program."
1461
+ ],
1136
1462
  address: "11111111111111111111111111111111"
1137
1463
  }
1138
1464
  ],
@@ -1140,22 +1466,37 @@ var merkle_distributor_default = {
1140
1466
  },
1141
1467
  {
1142
1468
  name: "set_admin",
1143
- discriminator: [251, 163, 0, 52, 91, 194, 187, 92],
1469
+ discriminator: [
1470
+ 251,
1471
+ 163,
1472
+ 0,
1473
+ 52,
1474
+ 91,
1475
+ 194,
1476
+ 187,
1477
+ 92
1478
+ ],
1144
1479
  accounts: [
1145
1480
  {
1146
1481
  name: "distributor",
1147
- docs: ["The [MerkleDistributor]."],
1482
+ docs: [
1483
+ "The [MerkleDistributor]."
1484
+ ],
1148
1485
  writable: true
1149
1486
  },
1150
1487
  {
1151
1488
  name: "admin",
1152
- docs: ["Admin signer"],
1489
+ docs: [
1490
+ "Admin signer"
1491
+ ],
1153
1492
  writable: true,
1154
1493
  signer: true
1155
1494
  },
1156
1495
  {
1157
1496
  name: "new_admin",
1158
- docs: ["New admin account"],
1497
+ docs: [
1498
+ "New admin account"
1499
+ ],
1159
1500
  writable: true
1160
1501
  }
1161
1502
  ],
@@ -1163,20 +1504,35 @@ var merkle_distributor_default = {
1163
1504
  },
1164
1505
  {
1165
1506
  name: "set_clawback_receiver",
1166
- discriminator: [153, 217, 34, 20, 19, 29, 229, 75],
1507
+ discriminator: [
1508
+ 153,
1509
+ 217,
1510
+ 34,
1511
+ 20,
1512
+ 19,
1513
+ 29,
1514
+ 229,
1515
+ 75
1516
+ ],
1167
1517
  accounts: [
1168
1518
  {
1169
1519
  name: "distributor",
1170
- docs: ["The [MerkleDistributor]."],
1520
+ docs: [
1521
+ "The [MerkleDistributor]."
1522
+ ],
1171
1523
  writable: true
1172
1524
  },
1173
1525
  {
1174
1526
  name: "new_clawback_account",
1175
- docs: ["New clawback account"]
1527
+ docs: [
1528
+ "New clawback account"
1529
+ ]
1176
1530
  },
1177
1531
  {
1178
1532
  name: "admin",
1179
- docs: ["Admin signer"],
1533
+ docs: [
1534
+ "Admin signer"
1535
+ ],
1180
1536
  writable: true,
1181
1537
  signer: true
1182
1538
  }
@@ -1185,22 +1541,37 @@ var merkle_distributor_default = {
1185
1541
  },
1186
1542
  {
1187
1543
  name: "update",
1188
- discriminator: [219, 200, 88, 176, 158, 63, 253, 127],
1544
+ discriminator: [
1545
+ 219,
1546
+ 200,
1547
+ 88,
1548
+ 176,
1549
+ 158,
1550
+ 63,
1551
+ 253,
1552
+ 127
1553
+ ],
1189
1554
  accounts: [
1190
1555
  {
1191
1556
  name: "distributor",
1192
- docs: ["The [MerkleDistributor]."],
1557
+ docs: [
1558
+ "The [MerkleDistributor]."
1559
+ ],
1193
1560
  writable: true
1194
1561
  },
1195
1562
  {
1196
1563
  name: "admin",
1197
- docs: ["Only Admin can trigger the clawback of funds"],
1564
+ docs: [
1565
+ "Only Admin can trigger the clawback of funds"
1566
+ ],
1198
1567
  writable: true,
1199
1568
  signer: true
1200
1569
  },
1201
1570
  {
1202
1571
  name: "system_program",
1203
- docs: ["The [System] program."],
1572
+ docs: [
1573
+ "The [System] program."
1574
+ ],
1204
1575
  address: "11111111111111111111111111111111"
1205
1576
  }
1206
1577
  ],
@@ -1217,29 +1588,83 @@ var merkle_distributor_default = {
1217
1588
  accounts: [
1218
1589
  {
1219
1590
  name: "ClaimStatus",
1220
- discriminator: [22, 183, 249, 157, 247, 95, 150, 96]
1591
+ discriminator: [
1592
+ 22,
1593
+ 183,
1594
+ 249,
1595
+ 157,
1596
+ 247,
1597
+ 95,
1598
+ 150,
1599
+ 96
1600
+ ]
1221
1601
  },
1222
1602
  {
1223
1603
  name: "CompressedClaimStatus",
1224
- discriminator: [53, 68, 161, 131, 212, 106, 98, 48]
1604
+ discriminator: [
1605
+ 53,
1606
+ 68,
1607
+ 161,
1608
+ 131,
1609
+ 212,
1610
+ 106,
1611
+ 98,
1612
+ 48
1613
+ ]
1225
1614
  },
1226
1615
  {
1227
1616
  name: "MerkleDistributor",
1228
- discriminator: [77, 119, 139, 70, 84, 247, 12, 26]
1617
+ discriminator: [
1618
+ 77,
1619
+ 119,
1620
+ 139,
1621
+ 70,
1622
+ 84,
1623
+ 247,
1624
+ 12,
1625
+ 26
1626
+ ]
1229
1627
  }
1230
1628
  ],
1231
1629
  events: [
1232
1630
  {
1233
1631
  name: "ClaimClosedEvent",
1234
- discriminator: [139, 166, 215, 195, 184, 233, 26, 217]
1632
+ discriminator: [
1633
+ 139,
1634
+ 166,
1635
+ 215,
1636
+ 195,
1637
+ 184,
1638
+ 233,
1639
+ 26,
1640
+ 217
1641
+ ]
1235
1642
  },
1236
1643
  {
1237
1644
  name: "ClaimedEvent",
1238
- discriminator: [144, 172, 209, 86, 144, 87, 84, 115]
1645
+ discriminator: [
1646
+ 144,
1647
+ 172,
1648
+ 209,
1649
+ 86,
1650
+ 144,
1651
+ 87,
1652
+ 84,
1653
+ 115
1654
+ ]
1239
1655
  },
1240
1656
  {
1241
1657
  name: "NewClaimEvent",
1242
- discriminator: [244, 3, 231, 151, 60, 101, 55, 55]
1658
+ discriminator: [
1659
+ 244,
1660
+ 3,
1661
+ 231,
1662
+ 151,
1663
+ 60,
1664
+ 101,
1665
+ 55,
1666
+ 55
1667
+ ]
1243
1668
  }
1244
1669
  ],
1245
1670
  errors: [
@@ -1367,18 +1792,24 @@ var merkle_distributor_default = {
1367
1792
  types: [
1368
1793
  {
1369
1794
  name: "ClaimClosedEvent",
1370
- docs: ["Emitted when a new claim is created."],
1795
+ docs: [
1796
+ "Emitted when a new claim is created."
1797
+ ],
1371
1798
  type: {
1372
1799
  kind: "struct",
1373
1800
  fields: [
1374
1801
  {
1375
1802
  name: "claimant",
1376
- docs: ["User that claimed."],
1803
+ docs: [
1804
+ "User that claimed."
1805
+ ],
1377
1806
  type: "pubkey"
1378
1807
  },
1379
1808
  {
1380
1809
  name: "timestamp",
1381
- docs: ["Timestamp."],
1810
+ docs: [
1811
+ "Timestamp."
1812
+ ],
1382
1813
  type: "u64"
1383
1814
  }
1384
1815
  ]
@@ -1386,43 +1817,59 @@ var merkle_distributor_default = {
1386
1817
  },
1387
1818
  {
1388
1819
  name: "ClaimStatus",
1389
- docs: ["Holds whether or not a claimant has claimed tokens."],
1820
+ docs: [
1821
+ "Holds whether or not a claimant has claimed tokens."
1822
+ ],
1390
1823
  type: {
1391
1824
  kind: "struct",
1392
1825
  fields: [
1393
1826
  {
1394
1827
  name: "claimant",
1395
- docs: ["Authority that claimed the tokens."],
1828
+ docs: [
1829
+ "Authority that claimed the tokens."
1830
+ ],
1396
1831
  type: "pubkey"
1397
1832
  },
1398
1833
  {
1399
1834
  name: "locked_amount",
1400
- docs: ["Locked amount"],
1835
+ docs: [
1836
+ "Locked amount"
1837
+ ],
1401
1838
  type: "u64"
1402
1839
  },
1403
1840
  {
1404
1841
  name: "locked_amount_withdrawn",
1405
- docs: ["Locked amount withdrawn"],
1842
+ docs: [
1843
+ "Locked amount withdrawn"
1844
+ ],
1406
1845
  type: "u64"
1407
1846
  },
1408
1847
  {
1409
1848
  name: "unlocked_amount",
1410
- docs: ["Unlocked amount"],
1849
+ docs: [
1850
+ "Unlocked amount"
1851
+ ],
1411
1852
  type: "u64"
1412
1853
  },
1413
1854
  {
1414
1855
  name: "last_claim_ts",
1415
- docs: ["Last claim time"],
1856
+ docs: [
1857
+ "Last claim time"
1858
+ ],
1416
1859
  type: "u64"
1417
1860
  },
1418
1861
  {
1419
1862
  name: "last_amount_per_unlock",
1420
- docs: ["Track amount per unlock, can be useful for non-linear vesting"],
1863
+ docs: [
1864
+ "Track amount per unlock, can be useful for non-linear vesting"
1865
+ ],
1421
1866
  type: "u64"
1422
1867
  },
1423
1868
  {
1424
1869
  name: "closed",
1425
- docs: ["Whether claim is closed"],
1870
+ docs: [
1871
+ "Whether claim is closed"
1872
+ ],
1426
1873
  type: "bool"
1427
1874
  },
1428
1875
  {
@@ -1434,19 +1881,28 @@ var merkle_distributor_default = {
1434
1881
  },
1435
1882
  {
1436
1883
  name: "claims_count",
1437
- docs: ["Number of time amount has been claimed"],
1884
+ docs: [
1885
+ "Number of time amount has been claimed"
1886
+ ],
1438
1887
  type: "u16"
1439
1888
  },
1440
1889
  {
1441
1890
  name: "closed_ts",
1442
- docs: ["Time when claim has been closed"],
1891
+ docs: [
1892
+ "Time when claim has been closed"
1893
+ ],
1443
1894
  type: "u64"
1444
1895
  },
1445
1896
  {
1446
1897
  name: "buffer_2",
1447
- docs: ["Buffer for additional fields"],
1898
+ docs: [
1899
+ "Buffer for additional fields"
1900
+ ],
1448
1901
  type: {
1449
- array: ["u8", 22]
1902
+ array: [
1903
+ "u8",
1904
+ 22
1905
+ ]
1450
1906
  }
1451
1907
  }
1452
1908
  ]
@@ -1454,18 +1910,24 @@ var merkle_distributor_default = {
1454
1910
  },
1455
1911
  {
1456
1912
  name: "ClaimedEvent",
1457
- docs: ["Emitted when tokens are claimed."],
1913
+ docs: [
1914
+ "Emitted when tokens are claimed."
1915
+ ],
1458
1916
  type: {
1459
1917
  kind: "struct",
1460
1918
  fields: [
1461
1919
  {
1462
1920
  name: "claimant",
1463
- docs: ["User that claimed."],
1921
+ docs: [
1922
+ "User that claimed."
1923
+ ],
1464
1924
  type: "pubkey"
1465
1925
  },
1466
1926
  {
1467
1927
  name: "amount",
1468
- docs: ["Amount of tokens to distribute."],
1928
+ docs: [
1929
+ "Amount of tokens to distribute."
1930
+ ],
1469
1931
  type: "u64"
1470
1932
  }
1471
1933
  ]
@@ -1473,7 +1935,9 @@ var merkle_distributor_default = {
1473
1935
  },
1474
1936
  {
1475
1937
  name: "CompressedClaimStatus",
1476
- docs: ["Holds whether or not a claimant has claimed tokens."],
1938
+ docs: [
1939
+ "Holds whether or not a claimant has claimed tokens."
1940
+ ],
1477
1941
  type: {
1478
1942
  kind: "struct",
1479
1943
  fields: [
@@ -1490,115 +1954,162 @@ var merkle_distributor_default = {
1490
1954
  },
1491
1955
  {
1492
1956
  name: "MerkleDistributor",
1493
- docs: ["State for the account which distributes tokens."],
1957
+ docs: [
1958
+ "State for the account which distributes tokens."
1959
+ ],
1494
1960
  type: {
1495
1961
  kind: "struct",
1496
1962
  fields: [
1497
1963
  {
1498
1964
  name: "bump",
1499
- docs: ["Bump seed."],
1965
+ docs: [
1966
+ "Bump seed."
1967
+ ],
1500
1968
  type: "u8"
1501
1969
  },
1502
1970
  {
1503
1971
  name: "version",
1504
- docs: ["Version of the airdrop"],
1972
+ docs: [
1973
+ "Version of the airdrop"
1974
+ ],
1505
1975
  type: "u64"
1506
1976
  },
1507
1977
  {
1508
1978
  name: "root",
1509
- docs: ["The 256-bit merkle root."],
1979
+ docs: [
1980
+ "The 256-bit merkle root."
1981
+ ],
1510
1982
  type: {
1511
- array: ["u8", 32]
1983
+ array: [
1984
+ "u8",
1985
+ 32
1986
+ ]
1512
1987
  }
1513
1988
  },
1514
1989
  {
1515
1990
  name: "mint",
1516
- docs: ["[Mint] of the token to be distributed."],
1991
+ docs: [
1992
+ "[Mint] of the token to be distributed."
1993
+ ],
1517
1994
  type: "pubkey"
1518
1995
  },
1519
1996
  {
1520
1997
  name: "token_vault",
1521
- docs: ["Token Address of the vault"],
1998
+ docs: [
1999
+ "Token Address of the vault"
2000
+ ],
1522
2001
  type: "pubkey"
1523
2002
  },
1524
2003
  {
1525
2004
  name: "max_total_claim",
1526
- docs: ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."],
2005
+ docs: [
2006
+ "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
2007
+ ],
1527
2008
  type: "u64"
1528
2009
  },
1529
2010
  {
1530
2011
  name: "max_num_nodes",
1531
- docs: ["Maximum number of nodes in [MerkleDistributor]."],
2012
+ docs: [
2013
+ "Maximum number of nodes in [MerkleDistributor]."
2014
+ ],
1532
2015
  type: "u64"
1533
2016
  },
1534
2017
  {
1535
2018
  name: "unlock_period",
1536
- docs: ["Time step (period) in seconds per which the unlock occurs"],
2019
+ docs: [
2020
+ "Time step (period) in seconds per which the unlock occurs"
2021
+ ],
1537
2022
  type: "u64"
1538
2023
  },
1539
2024
  {
1540
2025
  name: "total_amount_claimed",
1541
- docs: ["Total amount of tokens that have been claimed."],
2026
+ docs: [
2027
+ "Total amount of tokens that have been claimed."
2028
+ ],
1542
2029
  type: "u64"
1543
2030
  },
1544
2031
  {
1545
2032
  name: "num_nodes_claimed",
1546
- docs: ["Number of nodes that have been claimed."],
2033
+ docs: [
2034
+ "Number of nodes that have been claimed."
2035
+ ],
1547
2036
  type: "u64"
1548
2037
  },
1549
2038
  {
1550
2039
  name: "start_ts",
1551
- docs: ["Lockup time start (Unix Timestamp)"],
2040
+ docs: [
2041
+ "Lockup time start (Unix Timestamp)"
2042
+ ],
1552
2043
  type: "u64"
1553
2044
  },
1554
2045
  {
1555
2046
  name: "end_ts",
1556
- docs: ["Lockup time end (Unix Timestamp)"],
2047
+ docs: [
2048
+ "Lockup time end (Unix Timestamp)"
2049
+ ],
1557
2050
  type: "u64"
1558
2051
  },
1559
2052
  {
1560
2053
  name: "clawback_start_ts",
1561
- docs: ["Clawback start (Unix Timestamp)"],
2054
+ docs: [
2055
+ "Clawback start (Unix Timestamp)"
2056
+ ],
1562
2057
  type: "u64"
1563
2058
  },
1564
2059
  {
1565
2060
  name: "clawback_receiver",
1566
- docs: ["Clawback receiver"],
2061
+ docs: [
2062
+ "Clawback receiver"
2063
+ ],
1567
2064
  type: "pubkey"
1568
2065
  },
1569
2066
  {
1570
2067
  name: "admin",
1571
- docs: ["Admin wallet"],
2068
+ docs: [
2069
+ "Admin wallet"
2070
+ ],
1572
2071
  type: "pubkey"
1573
2072
  },
1574
2073
  {
1575
2074
  name: "clawed_back",
1576
- docs: ["Whether or not the distributor has been clawed back"],
2075
+ docs: [
2076
+ "Whether or not the distributor has been clawed back"
2077
+ ],
1577
2078
  type: "bool"
1578
2079
  },
1579
2080
  {
1580
2081
  name: "claims_closable_by_admin",
1581
- docs: ["Whether claims are closable by the admin or not"],
2082
+ docs: [
2083
+ "Whether claims are closable by the admin or not"
2084
+ ],
1582
2085
  type: "bool"
1583
2086
  },
1584
2087
  {
1585
2088
  name: "can_update_duration",
1586
- docs: ["Whether admin can update vesting duration"],
2089
+ docs: [
2090
+ "Whether admin can update vesting duration"
2091
+ ],
1587
2092
  type: "bool"
1588
2093
  },
1589
2094
  {
1590
2095
  name: "total_amount_unlocked",
1591
- docs: ["Total amount of funds unlocked (cliff/instant)"],
2096
+ docs: [
2097
+ "Total amount of funds unlocked (cliff/instant)"
2098
+ ],
1592
2099
  type: "u64"
1593
2100
  },
1594
2101
  {
1595
2102
  name: "total_amount_locked",
1596
- docs: ["Total amount of funds locked (vested)"],
2103
+ docs: [
2104
+ "Total amount of funds locked (vested)"
2105
+ ],
1597
2106
  type: "u64"
1598
2107
  },
1599
2108
  {
1600
2109
  name: "last_duration_update_ts",
1601
- docs: ["Timestamp when update was last called"],
2110
+ docs: [
2111
+ "Timestamp when update was last called"
2112
+ ],
1602
2113
  type: "u64"
1603
2114
  },
1604
2115
  {
@@ -1610,31 +2121,47 @@ var merkle_distributor_default = {
1610
2121
  },
1611
2122
  {
1612
2123
  name: "clawed_back_ts",
1613
- docs: ["Timestamp when funds were clawed back"],
2124
+ docs: [
2125
+ "Timestamp when funds were clawed back"
2126
+ ],
1614
2127
  type: "u64"
1615
2128
  },
1616
2129
  {
1617
2130
  name: "claims_closable_by_claimant",
1618
- docs: ["Whether claims are closable by claimant or not"],
2131
+ docs: [
2132
+ "Whether claims are closable by claimant or not"
2133
+ ],
1619
2134
  type: "bool"
1620
2135
  },
1621
2136
  {
1622
2137
  name: "claims_limit",
1623
- docs: ["Limit number of claims"],
2138
+ docs: [
2139
+ "Limit number of claims"
2140
+ ],
1624
2141
  type: "u16"
1625
2142
  },
1626
2143
  {
1627
2144
  name: "buffer_2",
1628
- docs: ["Buffer for additional fields"],
2145
+ docs: [
2146
+ "Buffer for additional fields"
2147
+ ],
1629
2148
  type: {
1630
- array: ["u8", 20]
2149
+ array: [
2150
+ "u8",
2151
+ 20
2152
+ ]
1631
2153
  }
1632
2154
  },
1633
2155
  {
1634
2156
  name: "buffer_3",
1635
- docs: ["Buffer for additional fields"],
2157
+ docs: [
2158
+ "Buffer for additional fields"
2159
+ ],
1636
2160
  type: {
1637
- array: ["u8", 32]
2161
+ array: [
2162
+ "u8",
2163
+ 32
2164
+ ]
1638
2165
  }
1639
2166
  }
1640
2167
  ]
@@ -1642,18 +2169,24 @@ var merkle_distributor_default = {
1642
2169
  },
1643
2170
  {
1644
2171
  name: "NewClaimEvent",
1645
- docs: ["Emitted when a new claim is created."],
2172
+ docs: [
2173
+ "Emitted when a new claim is created."
2174
+ ],
1646
2175
  type: {
1647
2176
  kind: "struct",
1648
2177
  fields: [
1649
2178
  {
1650
2179
  name: "claimant",
1651
- docs: ["User that claimed."],
2180
+ docs: [
2181
+ "User that claimed."
2182
+ ],
1652
2183
  type: "pubkey"
1653
2184
  },
1654
2185
  {
1655
2186
  name: "timestamp",
1656
- docs: ["Timestamp."],
2187
+ docs: [
2188
+ "Timestamp."
2189
+ ],
1657
2190
  type: "u64"
1658
2191
  }
1659
2192
  ]
@@ -3055,7 +3588,8 @@ var BaseDistributorClient = class {
3055
3588
  [extParams.invoker.publicKey],
3056
3589
  distributor.mint,
3057
3590
  extParams.invoker,
3058
- tokenProgramId
3591
+ tokenProgramId,
3592
+ extParams.feePayer
3059
3593
  )
3060
3594
  );
3061
3595
  const invokerTokens = await solana.ata(distributor.mint, extParams.invoker.publicKey, tokenProgramId);
@@ -3092,7 +3626,7 @@ var BaseDistributorClient = class {
3092
3626
  }
3093
3627
  ixs.push(
3094
3628
  this.prepareClaimFeeInstruction(
3095
- extParams.invoker.publicKey,
3629
+ extParams.feePayer ?? extParams.invoker.publicKey,
3096
3630
  typeof _serviceTransfer === "bigint" ? _serviceTransfer : void 0
3097
3631
  )
3098
3632
  );
@@ -3135,6 +3669,7 @@ var BaseDistributorClient = class {
3135
3669
  const eventAuthorityPublicKey = getEventAuthorityPda(this.programId);
3136
3670
  const closeClaimAccounts = {
3137
3671
  adminOrClaimant: extParams.invoker.publicKey,
3672
+ payer: extParams.invoker.publicKey,
3138
3673
  distributor: distributorPublicKey,
3139
3674
  claimStatus: claimStatusPublicKey,
3140
3675
  claimant: claimantPublicKey,
@@ -3167,7 +3702,8 @@ var BaseDistributorClient = class {
3167
3702
  [extParams.invoker.publicKey],
3168
3703
  distributor.mint,
3169
3704
  extParams.invoker,
3170
- tokenProgramId
3705
+ tokenProgramId,
3706
+ extParams.feePayer
3171
3707
  )
3172
3708
  );
3173
3709
  const accounts = {
@@ -3318,23 +3854,36 @@ var aligned_distributor_default = {
3318
3854
  address: "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3319
3855
  metadata: {
3320
3856
  name: "aligned_distributor",
3321
- version: "1.5.0",
3857
+ version: "1.5.1",
3322
3858
  spec: "0.1.0",
3323
3859
  description: "Proxy for merkle distributor that updates Vesting duration according to token market performance."
3324
3860
  },
3325
3861
  instructions: [
3326
3862
  {
3327
3863
  name: "change_oracle",
3328
- discriminator: [177, 227, 230, 103, 13, 72, 141, 248],
3864
+ discriminator: [
3865
+ 177,
3866
+ 227,
3867
+ 230,
3868
+ 103,
3869
+ 13,
3870
+ 72,
3871
+ 141,
3872
+ 248
3873
+ ],
3329
3874
  accounts: [
3330
3875
  {
3331
3876
  name: "aligned_distributor",
3332
- docs: ["The [MerkleDistributor]."],
3877
+ docs: [
3878
+ "The [MerkleDistributor]."
3879
+ ],
3333
3880
  writable: true
3334
3881
  },
3335
3882
  {
3336
3883
  name: "admin",
3337
- docs: ["Admin signer"],
3884
+ docs: [
3885
+ "Admin signer"
3886
+ ],
3338
3887
  writable: true,
3339
3888
  signer: true
3340
3889
  },
@@ -3355,17 +3904,48 @@ var aligned_distributor_default = {
3355
3904
  },
3356
3905
  {
3357
3906
  name: "clawback",
3358
- discriminator: [111, 92, 142, 79, 33, 234, 82, 27],
3907
+ discriminator: [
3908
+ 111,
3909
+ 92,
3910
+ 142,
3911
+ 79,
3912
+ 33,
3913
+ 234,
3914
+ 82,
3915
+ 27
3916
+ ],
3359
3917
  accounts: [
3360
3918
  {
3361
3919
  name: "aligned_distributor",
3362
- docs: ["The [AlignedDistributor]."],
3920
+ docs: [
3921
+ "The [AlignedDistributor]."
3922
+ ],
3363
3923
  writable: true,
3364
3924
  pda: {
3365
3925
  seeds: [
3366
3926
  {
3367
3927
  kind: "const",
3368
- value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
3928
+ value: [
3929
+ 97,
3930
+ 108,
3931
+ 105,
3932
+ 103,
3933
+ 110,
3934
+ 101,
3935
+ 100,
3936
+ 45,
3937
+ 100,
3938
+ 105,
3939
+ 115,
3940
+ 116,
3941
+ 114,
3942
+ 105,
3943
+ 98,
3944
+ 117,
3945
+ 116,
3946
+ 111,
3947
+ 114
3948
+ ]
3369
3949
  },
3370
3950
  {
3371
3951
  kind: "account",
@@ -3376,22 +3956,30 @@ var aligned_distributor_default = {
3376
3956
  },
3377
3957
  {
3378
3958
  name: "distributor",
3379
- docs: ["The [MerkleDistributor]."],
3959
+ docs: [
3960
+ "The [MerkleDistributor]."
3961
+ ],
3380
3962
  writable: true
3381
3963
  },
3382
3964
  {
3383
3965
  name: "from",
3384
- docs: ["Distributor ATA containing the tokens to distribute."],
3966
+ docs: [
3967
+ "Distributor ATA containing the tokens to distribute."
3968
+ ],
3385
3969
  writable: true
3386
3970
  },
3387
3971
  {
3388
3972
  name: "to",
3389
- docs: ["The Clawback token account."],
3973
+ docs: [
3974
+ "The Clawback token account."
3975
+ ],
3390
3976
  writable: true
3391
3977
  },
3392
3978
  {
3393
3979
  name: "admin",
3394
- docs: ["Only Admin can trigger the clawback of funds"],
3980
+ docs: [
3981
+ "Only Admin can trigger the clawback of funds"
3982
+ ],
3395
3983
  writable: true,
3396
3984
  signer: true
3397
3985
  },
@@ -3404,19 +3992,186 @@ var aligned_distributor_default = {
3404
3992
  },
3405
3993
  {
3406
3994
  name: "system_program",
3407
- docs: ["The [System] program."],
3995
+ docs: [
3996
+ "The [System] program."
3997
+ ],
3408
3998
  address: "11111111111111111111111111111111"
3409
3999
  },
3410
4000
  {
3411
4001
  name: "token_program",
3412
- docs: ["SPL [Token] program."]
4002
+ docs: [
4003
+ "SPL [Token] program."
4004
+ ]
4005
+ }
4006
+ ],
4007
+ args: []
4008
+ },
4009
+ {
4010
+ name: "close_claim",
4011
+ discriminator: [
4012
+ 42,
4013
+ 177,
4014
+ 165,
4015
+ 35,
4016
+ 213,
4017
+ 179,
4018
+ 211,
4019
+ 19
4020
+ ],
4021
+ accounts: [
4022
+ {
4023
+ name: "aligned_distributor",
4024
+ docs: [
4025
+ "The [AlignedDistributor]."
4026
+ ],
4027
+ writable: true,
4028
+ pda: {
4029
+ seeds: [
4030
+ {
4031
+ kind: "const",
4032
+ value: [
4033
+ 97,
4034
+ 108,
4035
+ 105,
4036
+ 103,
4037
+ 110,
4038
+ 101,
4039
+ 100,
4040
+ 45,
4041
+ 100,
4042
+ 105,
4043
+ 115,
4044
+ 116,
4045
+ 114,
4046
+ 105,
4047
+ 98,
4048
+ 117,
4049
+ 116,
4050
+ 111,
4051
+ 114
4052
+ ]
4053
+ },
4054
+ {
4055
+ kind: "account",
4056
+ path: "distributor"
4057
+ }
4058
+ ]
4059
+ }
4060
+ },
4061
+ {
4062
+ name: "distributor",
4063
+ docs: [
4064
+ "The [MerkleDistributor]."
4065
+ ],
4066
+ writable: true
4067
+ },
4068
+ {
4069
+ name: "admin",
4070
+ docs: [
4071
+ "Only Admin can trigger the clawback of funds"
4072
+ ],
4073
+ writable: true,
4074
+ signer: true
4075
+ },
4076
+ {
4077
+ name: "claimant",
4078
+ writable: true
4079
+ },
4080
+ {
4081
+ name: "claim_status",
4082
+ writable: true,
4083
+ pda: {
4084
+ seeds: [
4085
+ {
4086
+ kind: "const",
4087
+ value: [
4088
+ 67,
4089
+ 108,
4090
+ 97,
4091
+ 105,
4092
+ 109,
4093
+ 83,
4094
+ 116,
4095
+ 97,
4096
+ 116,
4097
+ 117,
4098
+ 115
4099
+ ]
4100
+ },
4101
+ {
4102
+ kind: "account",
4103
+ path: "claimant"
4104
+ },
4105
+ {
4106
+ kind: "account",
4107
+ path: "distributor"
4108
+ }
4109
+ ],
4110
+ program: {
4111
+ kind: "account",
4112
+ path: "distributor_program"
4113
+ }
4114
+ }
4115
+ },
4116
+ {
4117
+ name: "distributor_event_authority",
4118
+ pda: {
4119
+ seeds: [
4120
+ {
4121
+ kind: "const",
4122
+ value: [
4123
+ 95,
4124
+ 95,
4125
+ 101,
4126
+ 118,
4127
+ 101,
4128
+ 110,
4129
+ 116,
4130
+ 95,
4131
+ 97,
4132
+ 117,
4133
+ 116,
4134
+ 104,
4135
+ 111,
4136
+ 114,
4137
+ 105,
4138
+ 116,
4139
+ 121
4140
+ ]
4141
+ }
4142
+ ],
4143
+ program: {
4144
+ kind: "account",
4145
+ path: "distributor_program"
4146
+ }
4147
+ }
4148
+ },
4149
+ {
4150
+ name: "distributor_program",
4151
+ address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
4152
+ },
4153
+ {
4154
+ name: "system_program",
4155
+ docs: [
4156
+ "The [System] program."
4157
+ ],
4158
+ address: "11111111111111111111111111111111"
3413
4159
  }
3414
4160
  ],
3415
4161
  args: []
3416
4162
  },
3417
4163
  {
3418
4164
  name: "create_test_oracle",
3419
- discriminator: [183, 110, 4, 11, 131, 220, 84, 12],
4165
+ discriminator: [
4166
+ 183,
4167
+ 110,
4168
+ 4,
4169
+ 11,
4170
+ 131,
4171
+ 220,
4172
+ 84,
4173
+ 12
4174
+ ],
3420
4175
  accounts: [
3421
4176
  {
3422
4177
  name: "creator",
@@ -3433,7 +4188,19 @@ var aligned_distributor_default = {
3433
4188
  seeds: [
3434
4189
  {
3435
4190
  kind: "const",
3436
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
4191
+ value: [
4192
+ 116,
4193
+ 101,
4194
+ 115,
4195
+ 116,
4196
+ 45,
4197
+ 111,
4198
+ 114,
4199
+ 97,
4200
+ 99,
4201
+ 108,
4202
+ 101
4203
+ ]
3437
4204
  },
3438
4205
  {
3439
4206
  kind: "account",
@@ -3464,7 +4231,16 @@ var aligned_distributor_default = {
3464
4231
  },
3465
4232
  {
3466
4233
  name: "migrate_test_oracle",
3467
- discriminator: [203, 254, 19, 3, 172, 185, 85, 190],
4234
+ discriminator: [
4235
+ 203,
4236
+ 254,
4237
+ 19,
4238
+ 3,
4239
+ 172,
4240
+ 185,
4241
+ 85,
4242
+ 190
4243
+ ],
3468
4244
  accounts: [
3469
4245
  {
3470
4246
  name: "payer",
@@ -3484,7 +4260,19 @@ var aligned_distributor_default = {
3484
4260
  seeds: [
3485
4261
  {
3486
4262
  kind: "const",
3487
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
4263
+ value: [
4264
+ 116,
4265
+ 101,
4266
+ 115,
4267
+ 116,
4268
+ 45,
4269
+ 111,
4270
+ 114,
4271
+ 97,
4272
+ 99,
4273
+ 108,
4274
+ 101
4275
+ ]
3488
4276
  },
3489
4277
  {
3490
4278
  kind: "account",
@@ -3506,7 +4294,16 @@ var aligned_distributor_default = {
3506
4294
  },
3507
4295
  {
3508
4296
  name: "new_distributor",
3509
- discriminator: [32, 139, 112, 171, 0, 2, 225, 155],
4297
+ discriminator: [
4298
+ 32,
4299
+ 139,
4300
+ 112,
4301
+ 171,
4302
+ 0,
4303
+ 2,
4304
+ 225,
4305
+ 155
4306
+ ],
3510
4307
  accounts: [
3511
4308
  {
3512
4309
  name: "aligned_distributor",
@@ -3515,7 +4312,27 @@ var aligned_distributor_default = {
3515
4312
  seeds: [
3516
4313
  {
3517
4314
  kind: "const",
3518
- value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
4315
+ value: [
4316
+ 97,
4317
+ 108,
4318
+ 105,
4319
+ 103,
4320
+ 110,
4321
+ 101,
4322
+ 100,
4323
+ 45,
4324
+ 100,
4325
+ 105,
4326
+ 115,
4327
+ 116,
4328
+ 114,
4329
+ 105,
4330
+ 98,
4331
+ 117,
4332
+ 116,
4333
+ 111,
4334
+ 114
4335
+ ]
3519
4336
  },
3520
4337
  {
3521
4338
  kind: "account",
@@ -3534,12 +4351,16 @@ var aligned_distributor_default = {
3534
4351
  },
3535
4352
  {
3536
4353
  name: "clawback_receiver",
3537
- docs: ["Clawback receiver token account"],
4354
+ docs: [
4355
+ "Clawback receiver token account"
4356
+ ],
3538
4357
  writable: true
3539
4358
  },
3540
4359
  {
3541
4360
  name: "mint",
3542
- docs: ["The mint to distribute."]
4361
+ docs: [
4362
+ "The mint to distribute."
4363
+ ]
3543
4364
  },
3544
4365
  {
3545
4366
  name: "distributor",
@@ -3560,22 +4381,30 @@ var aligned_distributor_default = {
3560
4381
  },
3561
4382
  {
3562
4383
  name: "distributor_program",
3563
- docs: ["MerkleDistributor program"],
4384
+ docs: [
4385
+ "MerkleDistributor program"
4386
+ ],
3564
4387
  address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
3565
4388
  },
3566
4389
  {
3567
4390
  name: "system_program",
3568
- docs: ["The [System] program."],
4391
+ docs: [
4392
+ "The [System] program."
4393
+ ],
3569
4394
  address: "11111111111111111111111111111111"
3570
4395
  },
3571
4396
  {
3572
4397
  name: "associated_token_program",
3573
- docs: ["The [Associated Token] program."],
4398
+ docs: [
4399
+ "The [Associated Token] program."
4400
+ ],
3574
4401
  address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
3575
4402
  },
3576
4403
  {
3577
4404
  name: "token_program",
3578
- docs: ["The [Token] program."]
4405
+ docs: [
4406
+ "The [Token] program."
4407
+ ]
3579
4408
  }
3580
4409
  ],
3581
4410
  args: [
@@ -3591,7 +4420,16 @@ var aligned_distributor_default = {
3591
4420
  },
3592
4421
  {
3593
4422
  name: "realloc_test_oracle",
3594
- discriminator: [234, 221, 116, 4, 198, 251, 244, 206],
4423
+ discriminator: [
4424
+ 234,
4425
+ 221,
4426
+ 116,
4427
+ 4,
4428
+ 198,
4429
+ 251,
4430
+ 244,
4431
+ 206
4432
+ ],
3595
4433
  accounts: [
3596
4434
  {
3597
4435
  name: "payer",
@@ -3611,7 +4449,19 @@ var aligned_distributor_default = {
3611
4449
  seeds: [
3612
4450
  {
3613
4451
  kind: "const",
3614
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
4452
+ value: [
4453
+ 116,
4454
+ 101,
4455
+ 115,
4456
+ 116,
4457
+ 45,
4458
+ 111,
4459
+ 114,
4460
+ 97,
4461
+ 99,
4462
+ 108,
4463
+ 101
4464
+ ]
3615
4465
  },
3616
4466
  {
3617
4467
  kind: "account",
@@ -3633,22 +4483,37 @@ var aligned_distributor_default = {
3633
4483
  },
3634
4484
  {
3635
4485
  name: "set_admin",
3636
- discriminator: [251, 163, 0, 52, 91, 194, 187, 92],
4486
+ discriminator: [
4487
+ 251,
4488
+ 163,
4489
+ 0,
4490
+ 52,
4491
+ 91,
4492
+ 194,
4493
+ 187,
4494
+ 92
4495
+ ],
3637
4496
  accounts: [
3638
4497
  {
3639
4498
  name: "aligned_distributor",
3640
- docs: ["The [MerkleDistributor]."],
4499
+ docs: [
4500
+ "The [MerkleDistributor]."
4501
+ ],
3641
4502
  writable: true
3642
4503
  },
3643
4504
  {
3644
4505
  name: "admin",
3645
- docs: ["Admin signer"],
4506
+ docs: [
4507
+ "Admin signer"
4508
+ ],
3646
4509
  writable: true,
3647
4510
  signer: true
3648
4511
  },
3649
4512
  {
3650
4513
  name: "new_admin",
3651
- docs: ["New admin account"],
4514
+ docs: [
4515
+ "New admin account"
4516
+ ],
3652
4517
  writable: true
3653
4518
  }
3654
4519
  ],
@@ -3656,7 +4521,16 @@ var aligned_distributor_default = {
3656
4521
  },
3657
4522
  {
3658
4523
  name: "set_test_oracle_authority",
3659
- discriminator: [26, 66, 233, 99, 38, 118, 181, 247],
4524
+ discriminator: [
4525
+ 26,
4526
+ 66,
4527
+ 233,
4528
+ 99,
4529
+ 38,
4530
+ 118,
4531
+ 181,
4532
+ 247
4533
+ ],
3660
4534
  accounts: [
3661
4535
  {
3662
4536
  name: "authority",
@@ -3675,23 +4549,56 @@ var aligned_distributor_default = {
3675
4549
  },
3676
4550
  {
3677
4551
  name: "update_duration",
3678
- discriminator: [69, 126, 172, 250, 164, 14, 10, 161],
4552
+ discriminator: [
4553
+ 69,
4554
+ 126,
4555
+ 172,
4556
+ 250,
4557
+ 164,
4558
+ 14,
4559
+ 10,
4560
+ 161
4561
+ ],
3679
4562
  accounts: [
3680
4563
  {
3681
4564
  name: "authority",
3682
- docs: ["Wallet authorised to call this method"],
4565
+ docs: [
4566
+ "Wallet authorised to call this method"
4567
+ ],
3683
4568
  writable: true,
3684
4569
  signer: true
3685
4570
  },
3686
4571
  {
3687
4572
  name: "aligned_distributor",
3688
- docs: ["The account holding the proxy parameters."],
4573
+ docs: [
4574
+ "The account holding the proxy parameters."
4575
+ ],
3689
4576
  writable: true,
3690
4577
  pda: {
3691
4578
  seeds: [
3692
4579
  {
3693
4580
  kind: "const",
3694
- value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
4581
+ value: [
4582
+ 97,
4583
+ 108,
4584
+ 105,
4585
+ 103,
4586
+ 110,
4587
+ 101,
4588
+ 100,
4589
+ 45,
4590
+ 100,
4591
+ 105,
4592
+ 115,
4593
+ 116,
4594
+ 114,
4595
+ 105,
4596
+ 98,
4597
+ 117,
4598
+ 116,
4599
+ 111,
4600
+ 114
4601
+ ]
3695
4602
  },
3696
4603
  {
3697
4604
  kind: "account",
@@ -3702,16 +4609,22 @@ var aligned_distributor_default = {
3702
4609
  },
3703
4610
  {
3704
4611
  name: "distributor",
3705
- docs: ["The account holding the vesting parameters."],
4612
+ docs: [
4613
+ "The account holding the vesting parameters."
4614
+ ],
3706
4615
  writable: true
3707
4616
  },
3708
4617
  {
3709
4618
  name: "price_oracle",
3710
- relations: ["aligned_distributor"]
4619
+ relations: [
4620
+ "aligned_distributor"
4621
+ ]
3711
4622
  },
3712
4623
  {
3713
4624
  name: "distributor_program",
3714
- docs: ["MerkleDistributor program"],
4625
+ docs: [
4626
+ "MerkleDistributor program"
4627
+ ],
3715
4628
  address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
3716
4629
  },
3717
4630
  {
@@ -3723,7 +4636,16 @@ var aligned_distributor_default = {
3723
4636
  },
3724
4637
  {
3725
4638
  name: "update_test_oracle",
3726
- discriminator: [158, 147, 215, 74, 34, 123, 80, 76],
4639
+ discriminator: [
4640
+ 158,
4641
+ 147,
4642
+ 215,
4643
+ 74,
4644
+ 34,
4645
+ 123,
4646
+ 80,
4647
+ 76
4648
+ ],
3727
4649
  accounts: [
3728
4650
  {
3729
4651
  name: "authority",
@@ -3750,15 +4672,42 @@ var aligned_distributor_default = {
3750
4672
  accounts: [
3751
4673
  {
3752
4674
  name: "AlignedDistributor",
3753
- discriminator: [128, 76, 80, 203, 248, 175, 3, 43]
4675
+ discriminator: [
4676
+ 128,
4677
+ 76,
4678
+ 80,
4679
+ 203,
4680
+ 248,
4681
+ 175,
4682
+ 3,
4683
+ 43
4684
+ ]
3754
4685
  },
3755
4686
  {
3756
4687
  name: "MerkleDistributor",
3757
- discriminator: [77, 119, 139, 70, 84, 247, 12, 26]
4688
+ discriminator: [
4689
+ 77,
4690
+ 119,
4691
+ 139,
4692
+ 70,
4693
+ 84,
4694
+ 247,
4695
+ 12,
4696
+ 26
4697
+ ]
3758
4698
  },
3759
4699
  {
3760
4700
  name: "TestOracle",
3761
- discriminator: [198, 49, 63, 134, 232, 251, 168, 28]
4701
+ discriminator: [
4702
+ 198,
4703
+ 49,
4704
+ 63,
4705
+ 134,
4706
+ 232,
4707
+ 251,
4708
+ 168,
4709
+ 28
4710
+ ]
3762
4711
  }
3763
4712
  ],
3764
4713
  errors: [
@@ -3836,28 +4785,38 @@ var aligned_distributor_default = {
3836
4785
  types: [
3837
4786
  {
3838
4787
  name: "AlignedDistributor",
3839
- docs: ["State for the account which distributes tokens."],
4788
+ docs: [
4789
+ "State for the account which distributes tokens."
4790
+ ],
3840
4791
  type: {
3841
4792
  kind: "struct",
3842
4793
  fields: [
3843
4794
  {
3844
4795
  name: "bump",
3845
- docs: ["Bump seed."],
4796
+ docs: [
4797
+ "Bump seed."
4798
+ ],
3846
4799
  type: "u8"
3847
4800
  },
3848
4801
  {
3849
4802
  name: "distributor",
3850
- docs: ["[Mint] of the token to be distributed."],
4803
+ docs: [
4804
+ "[Mint] of the token to be distributed."
4805
+ ],
3851
4806
  type: "pubkey"
3852
4807
  },
3853
4808
  {
3854
4809
  name: "admin",
3855
- docs: ["Admin wallet"],
4810
+ docs: [
4811
+ "Admin wallet"
4812
+ ],
3856
4813
  type: "pubkey"
3857
4814
  },
3858
4815
  {
3859
4816
  name: "price_oracle_type",
3860
- docs: ["Type of the Oracle used to derive Token Price"],
4817
+ docs: [
4818
+ "Type of the Oracle used to derive Token Price"
4819
+ ],
3861
4820
  type: {
3862
4821
  defined: {
3863
4822
  name: "OracleType"
@@ -3866,47 +4825,65 @@ var aligned_distributor_default = {
3866
4825
  },
3867
4826
  {
3868
4827
  name: "price_oracle",
3869
- docs: ["Address of the Price Oracle"],
4828
+ docs: [
4829
+ "Address of the Price Oracle"
4830
+ ],
3870
4831
  type: "pubkey"
3871
4832
  },
3872
4833
  {
3873
4834
  name: "update_period",
3874
- docs: ["Period of updates, can be different from unlock period if needed"],
4835
+ docs: [
4836
+ "Period of updates, can be different from unlock period if needed"
4837
+ ],
3875
4838
  type: "u64"
3876
4839
  },
3877
4840
  {
3878
4841
  name: "min_price",
3879
- docs: ["Min price boundary"],
4842
+ docs: [
4843
+ "Min price boundary"
4844
+ ],
3880
4845
  type: "u64"
3881
4846
  },
3882
4847
  {
3883
4848
  name: "max_price",
3884
- docs: ["Max price boundary"],
4849
+ docs: [
4850
+ "Max price boundary"
4851
+ ],
3885
4852
  type: "u64"
3886
4853
  },
3887
4854
  {
3888
4855
  name: "min_percentage",
3889
- docs: ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
4856
+ docs: [
4857
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
4858
+ ],
3890
4859
  type: "u64"
3891
4860
  },
3892
4861
  {
3893
4862
  name: "max_percentage",
3894
- docs: ["Max percentage boundary"],
4863
+ docs: [
4864
+ "Max percentage boundary"
4865
+ ],
3895
4866
  type: "u64"
3896
4867
  },
3897
4868
  {
3898
4869
  name: "tick_size",
3899
- docs: ["Ticket size for percentage boundaries"],
4870
+ docs: [
4871
+ "Ticket size for percentage boundaries"
4872
+ ],
3900
4873
  type: "u64"
3901
4874
  },
3902
4875
  {
3903
4876
  name: "start_ts",
3904
- docs: ["Copy start ts from the Distributor to be used in the worker"],
4877
+ docs: [
4878
+ "Copy start ts from the Distributor to be used in the worker"
4879
+ ],
3905
4880
  type: "u64"
3906
4881
  },
3907
4882
  {
3908
4883
  name: "end_ts",
3909
- docs: ["Copy end ts from the Distributor to be used in the worker"],
4884
+ docs: [
4885
+ "Copy end ts from the Distributor to be used in the worker"
4886
+ ],
3910
4887
  type: "u64"
3911
4888
  },
3912
4889
  {
@@ -3918,41 +4895,61 @@ var aligned_distributor_default = {
3918
4895
  },
3919
4896
  {
3920
4897
  name: "last_price",
3921
- docs: ["Price used on last amount calculation"],
4898
+ docs: [
4899
+ "Price used on last amount calculation"
4900
+ ],
3922
4901
  type: "u64"
3923
4902
  },
3924
4903
  {
3925
4904
  name: "initial_duration",
3926
- docs: ["Initial Airdrop Vesting duration"],
4905
+ docs: [
4906
+ "Initial Airdrop Vesting duration"
4907
+ ],
3927
4908
  type: "u64"
3928
4909
  },
3929
4910
  {
3930
4911
  name: "initial_price",
3931
- docs: ["Initial token price at the time of Contract creation"],
4912
+ docs: [
4913
+ "Initial token price at the time of Contract creation"
4914
+ ],
3932
4915
  type: "u64"
3933
4916
  },
3934
4917
  {
3935
4918
  name: "distributor_clawed_back",
3936
- docs: ["Whether distributor was clawed backed"],
4919
+ docs: [
4920
+ "Whether distributor was clawed backed"
4921
+ ],
3937
4922
  type: "bool"
3938
4923
  },
3939
4924
  {
3940
4925
  name: "mint",
3941
- docs: ["Mint for which the distributor was created"],
4926
+ docs: [
4927
+ "Mint for which the distributor was created"
4928
+ ],
3942
4929
  type: "pubkey"
3943
4930
  },
3944
4931
  {
3945
4932
  name: "buffer_2",
3946
- docs: ["Buffer for additional fields"],
4933
+ docs: [
4934
+ "Buffer for additional fields"
4935
+ ],
3947
4936
  type: {
3948
- array: ["u8", 32]
4937
+ array: [
4938
+ "u8",
4939
+ 32
4940
+ ]
3949
4941
  }
3950
4942
  },
3951
4943
  {
3952
4944
  name: "buffer_3",
3953
- docs: ["Buffer for additional fields"],
4945
+ docs: [
4946
+ "Buffer for additional fields"
4947
+ ],
3954
4948
  type: {
3955
- array: ["u8", 32]
4949
+ array: [
4950
+ "u8",
4951
+ 32
4952
+ ]
3956
4953
  }
3957
4954
  }
3958
4955
  ]
@@ -4000,115 +4997,162 @@ var aligned_distributor_default = {
4000
4997
  },
4001
4998
  {
4002
4999
  name: "MerkleDistributor",
4003
- docs: ["State for the account which distributes tokens."],
5000
+ docs: [
5001
+ "State for the account which distributes tokens."
5002
+ ],
4004
5003
  type: {
4005
5004
  kind: "struct",
4006
5005
  fields: [
4007
5006
  {
4008
5007
  name: "bump",
4009
- docs: ["Bump seed."],
5008
+ docs: [
5009
+ "Bump seed."
5010
+ ],
4010
5011
  type: "u8"
4011
5012
  },
4012
5013
  {
4013
5014
  name: "version",
4014
- docs: ["Version of the airdrop"],
5015
+ docs: [
5016
+ "Version of the airdrop"
5017
+ ],
4015
5018
  type: "u64"
4016
5019
  },
4017
5020
  {
4018
5021
  name: "root",
4019
- docs: ["The 256-bit merkle root."],
5022
+ docs: [
5023
+ "The 256-bit merkle root."
5024
+ ],
4020
5025
  type: {
4021
- array: ["u8", 32]
5026
+ array: [
5027
+ "u8",
5028
+ 32
5029
+ ]
4022
5030
  }
4023
5031
  },
4024
5032
  {
4025
5033
  name: "mint",
4026
- docs: ["[Mint] of the token to be distributed."],
5034
+ docs: [
5035
+ "[Mint] of the token to be distributed."
5036
+ ],
4027
5037
  type: "pubkey"
4028
5038
  },
4029
5039
  {
4030
5040
  name: "token_vault",
4031
- docs: ["Token Address of the vault"],
5041
+ docs: [
5042
+ "Token Address of the vault"
5043
+ ],
4032
5044
  type: "pubkey"
4033
5045
  },
4034
5046
  {
4035
5047
  name: "max_total_claim",
4036
- docs: ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."],
5048
+ docs: [
5049
+ "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
5050
+ ],
4037
5051
  type: "u64"
4038
5052
  },
4039
5053
  {
4040
5054
  name: "max_num_nodes",
4041
- docs: ["Maximum number of nodes in [MerkleDistributor]."],
5055
+ docs: [
5056
+ "Maximum number of nodes in [MerkleDistributor]."
5057
+ ],
4042
5058
  type: "u64"
4043
5059
  },
4044
5060
  {
4045
5061
  name: "unlock_period",
4046
- docs: ["Time step (period) in seconds per which the unlock occurs"],
5062
+ docs: [
5063
+ "Time step (period) in seconds per which the unlock occurs"
5064
+ ],
4047
5065
  type: "u64"
4048
5066
  },
4049
5067
  {
4050
5068
  name: "total_amount_claimed",
4051
- docs: ["Total amount of tokens that have been claimed."],
5069
+ docs: [
5070
+ "Total amount of tokens that have been claimed."
5071
+ ],
4052
5072
  type: "u64"
4053
5073
  },
4054
5074
  {
4055
5075
  name: "num_nodes_claimed",
4056
- docs: ["Number of nodes that have been claimed."],
5076
+ docs: [
5077
+ "Number of nodes that have been claimed."
5078
+ ],
4057
5079
  type: "u64"
4058
5080
  },
4059
5081
  {
4060
5082
  name: "start_ts",
4061
- docs: ["Lockup time start (Unix Timestamp)"],
5083
+ docs: [
5084
+ "Lockup time start (Unix Timestamp)"
5085
+ ],
4062
5086
  type: "u64"
4063
5087
  },
4064
5088
  {
4065
5089
  name: "end_ts",
4066
- docs: ["Lockup time end (Unix Timestamp)"],
5090
+ docs: [
5091
+ "Lockup time end (Unix Timestamp)"
5092
+ ],
4067
5093
  type: "u64"
4068
5094
  },
4069
5095
  {
4070
5096
  name: "clawback_start_ts",
4071
- docs: ["Clawback start (Unix Timestamp)"],
5097
+ docs: [
5098
+ "Clawback start (Unix Timestamp)"
5099
+ ],
4072
5100
  type: "u64"
4073
5101
  },
4074
5102
  {
4075
5103
  name: "clawback_receiver",
4076
- docs: ["Clawback receiver"],
5104
+ docs: [
5105
+ "Clawback receiver"
5106
+ ],
4077
5107
  type: "pubkey"
4078
5108
  },
4079
5109
  {
4080
5110
  name: "admin",
4081
- docs: ["Admin wallet"],
5111
+ docs: [
5112
+ "Admin wallet"
5113
+ ],
4082
5114
  type: "pubkey"
4083
5115
  },
4084
5116
  {
4085
5117
  name: "clawed_back",
4086
- docs: ["Whether or not the distributor has been clawed back"],
5118
+ docs: [
5119
+ "Whether or not the distributor has been clawed back"
5120
+ ],
4087
5121
  type: "bool"
4088
5122
  },
4089
5123
  {
4090
5124
  name: "claims_closable_by_admin",
4091
- docs: ["Whether claims are closable by the admin or not"],
5125
+ docs: [
5126
+ "Whether claims are closable by the admin or not"
5127
+ ],
4092
5128
  type: "bool"
4093
5129
  },
4094
5130
  {
4095
5131
  name: "can_update_duration",
4096
- docs: ["Whether admin can update vesting duration"],
5132
+ docs: [
5133
+ "Whether admin can update vesting duration"
5134
+ ],
4097
5135
  type: "bool"
4098
5136
  },
4099
5137
  {
4100
5138
  name: "total_amount_unlocked",
4101
- docs: ["Total amount of funds unlocked (cliff/instant)"],
5139
+ docs: [
5140
+ "Total amount of funds unlocked (cliff/instant)"
5141
+ ],
4102
5142
  type: "u64"
4103
5143
  },
4104
5144
  {
4105
5145
  name: "total_amount_locked",
4106
- docs: ["Total amount of funds locked (vested)"],
5146
+ docs: [
5147
+ "Total amount of funds locked (vested)"
5148
+ ],
4107
5149
  type: "u64"
4108
5150
  },
4109
5151
  {
4110
5152
  name: "last_duration_update_ts",
4111
- docs: ["Timestamp when update was last called"],
5153
+ docs: [
5154
+ "Timestamp when update was last called"
5155
+ ],
4112
5156
  type: "u64"
4113
5157
  },
4114
5158
  {
@@ -4120,31 +5164,47 @@ var aligned_distributor_default = {
4120
5164
  },
4121
5165
  {
4122
5166
  name: "clawed_back_ts",
4123
- docs: ["Timestamp when funds were clawed back"],
5167
+ docs: [
5168
+ "Timestamp when funds were clawed back"
5169
+ ],
4124
5170
  type: "u64"
4125
5171
  },
4126
5172
  {
4127
5173
  name: "claims_closable_by_claimant",
4128
- docs: ["Whether claims are closable by claimant or not"],
5174
+ docs: [
5175
+ "Whether claims are closable by claimant or not"
5176
+ ],
4129
5177
  type: "bool"
4130
5178
  },
4131
5179
  {
4132
5180
  name: "claims_limit",
4133
- docs: ["Limit number of claims"],
5181
+ docs: [
5182
+ "Limit number of claims"
5183
+ ],
4134
5184
  type: "u16"
4135
5185
  },
4136
5186
  {
4137
5187
  name: "buffer_2",
4138
- docs: ["Buffer for additional fields"],
5188
+ docs: [
5189
+ "Buffer for additional fields"
5190
+ ],
4139
5191
  type: {
4140
- array: ["u8", 20]
5192
+ array: [
5193
+ "u8",
5194
+ 20
5195
+ ]
4141
5196
  }
4142
5197
  },
4143
5198
  {
4144
5199
  name: "buffer_3",
4145
- docs: ["Buffer for additional fields"],
5200
+ docs: [
5201
+ "Buffer for additional fields"
5202
+ ],
4146
5203
  type: {
4147
- array: ["u8", 32]
5204
+ array: [
5205
+ "u8",
5206
+ 32
5207
+ ]
4148
5208
  }
4149
5209
  }
4150
5210
  ]
@@ -4162,7 +5222,10 @@ var aligned_distributor_default = {
4162
5222
  {
4163
5223
  name: "root",
4164
5224
  type: {
4165
- array: ["u8", 32]
5225
+ array: [
5226
+ "u8",
5227
+ 32
5228
+ ]
4166
5229
  }
4167
5230
  },
4168
5231
  {