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