@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.
@@ -228,7 +228,8 @@ function closeClaim(args, accounts, programId = PROGRAM_ID) {
228
228
  const keys = [
229
229
  { pubkey: accounts.distributor, isSigner: false, isWritable: true },
230
230
  { pubkey: accounts.adminOrClaimant, isSigner: true, isWritable: true },
231
- { pubkey: accounts.claimant, isSigner: false, isWritable: false },
231
+ { pubkey: accounts.payer, isSigner: true, isWritable: true },
232
+ { pubkey: accounts.claimant, isSigner: false, isWritable: true },
232
233
  { pubkey: accounts.claimStatus, isSigner: false, isWritable: true },
233
234
  { pubkey: accounts.systemProgram, isSigner: false, isWritable: false },
234
235
  { pubkey: accounts.eventAuthority, isSigner: false, isWritable: false },
@@ -317,7 +318,7 @@ var merkle_distributor_default = {
317
318
  address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N",
318
319
  metadata: {
319
320
  name: "merkle_distributor",
320
- version: "1.5.0",
321
+ version: "1.5.1",
321
322
  spec: "0.1.0",
322
323
  description: "A Solana program for distributing tokens according to a Merkle root.",
323
324
  repository: "https://github.com/streamflow-finance/distributor"
@@ -325,21 +326,46 @@ var merkle_distributor_default = {
325
326
  instructions: [
326
327
  {
327
328
  name: "_expose_claim",
328
- discriminator: [103, 233, 83, 69, 115, 199, 128, 249],
329
+ discriminator: [
330
+ 103,
331
+ 233,
332
+ 83,
333
+ 69,
334
+ 115,
335
+ 199,
336
+ 128,
337
+ 249
338
+ ],
329
339
  accounts: [
330
340
  {
331
341
  name: "distributor",
332
- docs: ["The [MerkleDistributor]."]
342
+ docs: [
343
+ "The [MerkleDistributor]."
344
+ ]
333
345
  },
334
346
  {
335
347
  name: "claim_status",
336
- docs: ["Claim Status PDA"],
348
+ docs: [
349
+ "Claim Status PDA"
350
+ ],
337
351
  optional: true,
338
352
  pda: {
339
353
  seeds: [
340
354
  {
341
355
  kind: "const",
342
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
356
+ value: [
357
+ 67,
358
+ 108,
359
+ 97,
360
+ 105,
361
+ 109,
362
+ 83,
363
+ 116,
364
+ 97,
365
+ 116,
366
+ 117,
367
+ 115
368
+ ]
343
369
  },
344
370
  {
345
371
  kind: "account",
@@ -354,13 +380,27 @@ var merkle_distributor_default = {
354
380
  },
355
381
  {
356
382
  name: "compressed_claim_status",
357
- docs: ["Compress Claim Status PDA"],
383
+ docs: [
384
+ "Compress Claim Status PDA"
385
+ ],
358
386
  optional: true,
359
387
  pda: {
360
388
  seeds: [
361
389
  {
362
390
  kind: "const",
363
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
391
+ value: [
392
+ 67,
393
+ 108,
394
+ 97,
395
+ 105,
396
+ 109,
397
+ 83,
398
+ 116,
399
+ 97,
400
+ 116,
401
+ 117,
402
+ 115
403
+ ]
364
404
  },
365
405
  {
366
406
  kind: "account",
@@ -375,7 +415,9 @@ var merkle_distributor_default = {
375
415
  },
376
416
  {
377
417
  name: "claimant",
378
- docs: ["Who is claiming the tokens."],
418
+ docs: [
419
+ "Who is claiming the tokens."
420
+ ],
379
421
  signer: true
380
422
  }
381
423
  ],
@@ -383,11 +425,22 @@ var merkle_distributor_default = {
383
425
  },
384
426
  {
385
427
  name: "claim_locked",
386
- discriminator: [34, 206, 181, 23, 11, 207, 147, 90],
428
+ discriminator: [
429
+ 34,
430
+ 206,
431
+ 181,
432
+ 23,
433
+ 11,
434
+ 207,
435
+ 147,
436
+ 90
437
+ ],
387
438
  accounts: [
388
439
  {
389
440
  name: "distributor",
390
- docs: ["The [MerkleDistributor]."],
441
+ docs: [
442
+ "The [MerkleDistributor]."
443
+ ],
391
444
  writable: true
392
445
  },
393
446
  {
@@ -397,7 +450,19 @@ var merkle_distributor_default = {
397
450
  seeds: [
398
451
  {
399
452
  kind: "const",
400
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
453
+ value: [
454
+ 67,
455
+ 108,
456
+ 97,
457
+ 105,
458
+ 109,
459
+ 83,
460
+ 116,
461
+ 97,
462
+ 116,
463
+ 117,
464
+ 115
465
+ ]
401
466
  },
402
467
  {
403
468
  kind: "account",
@@ -412,7 +477,9 @@ var merkle_distributor_default = {
412
477
  },
413
478
  {
414
479
  name: "from",
415
- docs: ["Distributor ATA containing the tokens to distribute."],
480
+ docs: [
481
+ "Distributor ATA containing the tokens to distribute."
482
+ ],
416
483
  writable: true,
417
484
  pda: {
418
485
  seeds: [
@@ -479,18 +546,26 @@ var merkle_distributor_default = {
479
546
  },
480
547
  {
481
548
  name: "claimant",
482
- docs: ["Who is claiming the tokens."],
549
+ docs: [
550
+ "Who is claiming the tokens."
551
+ ],
483
552
  writable: true,
484
553
  signer: true
485
554
  },
486
555
  {
487
556
  name: "mint",
488
- docs: ["The mint to claim."],
489
- relations: ["distributor"]
557
+ docs: [
558
+ "The mint to claim."
559
+ ],
560
+ relations: [
561
+ "distributor"
562
+ ]
490
563
  },
491
564
  {
492
565
  name: "token_program",
493
- docs: ["SPL [Token] program."]
566
+ docs: [
567
+ "SPL [Token] program."
568
+ ]
494
569
  },
495
570
  {
496
571
  name: "event_authority",
@@ -498,7 +573,25 @@ var merkle_distributor_default = {
498
573
  seeds: [
499
574
  {
500
575
  kind: "const",
501
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
576
+ value: [
577
+ 95,
578
+ 95,
579
+ 101,
580
+ 118,
581
+ 101,
582
+ 110,
583
+ 116,
584
+ 95,
585
+ 97,
586
+ 117,
587
+ 116,
588
+ 104,
589
+ 111,
590
+ 114,
591
+ 105,
592
+ 116,
593
+ 121
594
+ ]
502
595
  }
503
596
  ]
504
597
  }
@@ -511,26 +604,43 @@ var merkle_distributor_default = {
511
604
  },
512
605
  {
513
606
  name: "clawback",
514
- discriminator: [111, 92, 142, 79, 33, 234, 82, 27],
607
+ discriminator: [
608
+ 111,
609
+ 92,
610
+ 142,
611
+ 79,
612
+ 33,
613
+ 234,
614
+ 82,
615
+ 27
616
+ ],
515
617
  accounts: [
516
618
  {
517
619
  name: "distributor",
518
- docs: ["The [MerkleDistributor]."],
620
+ docs: [
621
+ "The [MerkleDistributor]."
622
+ ],
519
623
  writable: true
520
624
  },
521
625
  {
522
626
  name: "from",
523
- docs: ["Distributor ATA containing the tokens to distribute."],
627
+ docs: [
628
+ "Distributor ATA containing the tokens to distribute."
629
+ ],
524
630
  writable: true
525
631
  },
526
632
  {
527
633
  name: "to",
528
- docs: ["The Clawback token account."],
634
+ docs: [
635
+ "The Clawback token account."
636
+ ],
529
637
  writable: true
530
638
  },
531
639
  {
532
640
  name: "admin",
533
- docs: ["Only Admin can trigger the clawback of funds"],
641
+ docs: [
642
+ "Only Admin can trigger the clawback of funds"
643
+ ],
534
644
  writable: true,
535
645
  signer: true
536
646
  },
@@ -539,28 +649,53 @@ var merkle_distributor_default = {
539
649
  },
540
650
  {
541
651
  name: "system_program",
542
- docs: ["The [System] program."],
652
+ docs: [
653
+ "The [System] program."
654
+ ],
543
655
  address: "11111111111111111111111111111111"
544
656
  },
545
657
  {
546
658
  name: "token_program",
547
- docs: ["SPL [Token] program."]
659
+ docs: [
660
+ "SPL [Token] program."
661
+ ]
548
662
  }
549
663
  ],
550
664
  args: []
551
665
  },
552
666
  {
553
667
  name: "close_claim",
554
- discriminator: [42, 177, 165, 35, 213, 179, 211, 19],
668
+ discriminator: [
669
+ 42,
670
+ 177,
671
+ 165,
672
+ 35,
673
+ 213,
674
+ 179,
675
+ 211,
676
+ 19
677
+ ],
555
678
  accounts: [
556
679
  {
557
680
  name: "distributor",
558
- docs: ["The [MerkleDistributor]."],
681
+ docs: [
682
+ "The [MerkleDistributor]."
683
+ ],
559
684
  writable: true
560
685
  },
561
686
  {
562
687
  name: "admin_or_claimant",
563
- docs: ["Admin signer"],
688
+ docs: [
689
+ "Admin signer"
690
+ ],
691
+ writable: true,
692
+ signer: true
693
+ },
694
+ {
695
+ name: "payer",
696
+ docs: [
697
+ "Optional payer for the account creation in case it doesn't exist"
698
+ ],
564
699
  writable: true,
565
700
  signer: true
566
701
  },
@@ -575,7 +710,19 @@ var merkle_distributor_default = {
575
710
  seeds: [
576
711
  {
577
712
  kind: "const",
578
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
713
+ value: [
714
+ 67,
715
+ 108,
716
+ 97,
717
+ 105,
718
+ 109,
719
+ 83,
720
+ 116,
721
+ 97,
722
+ 116,
723
+ 117,
724
+ 115
725
+ ]
579
726
  },
580
727
  {
581
728
  kind: "account",
@@ -590,7 +737,9 @@ var merkle_distributor_default = {
590
737
  },
591
738
  {
592
739
  name: "system_program",
593
- docs: ["The [System] program."],
740
+ docs: [
741
+ "The [System] program."
742
+ ],
594
743
  address: "11111111111111111111111111111111"
595
744
  },
596
745
  {
@@ -599,7 +748,25 @@ var merkle_distributor_default = {
599
748
  seeds: [
600
749
  {
601
750
  kind: "const",
602
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
751
+ value: [
752
+ 95,
753
+ 95,
754
+ 101,
755
+ 118,
756
+ 101,
757
+ 110,
758
+ 116,
759
+ 95,
760
+ 97,
761
+ 117,
762
+ 116,
763
+ 104,
764
+ 111,
765
+ 114,
766
+ 105,
767
+ 116,
768
+ 121
769
+ ]
603
770
  }
604
771
  ]
605
772
  }
@@ -626,7 +793,10 @@ var merkle_distributor_default = {
626
793
  type: {
627
794
  option: {
628
795
  vec: {
629
- array: ["u8", 32]
796
+ array: [
797
+ "u8",
798
+ 32
799
+ ]
630
800
  }
631
801
  }
632
802
  }
@@ -635,11 +805,22 @@ var merkle_distributor_default = {
635
805
  },
636
806
  {
637
807
  name: "compress_claim",
638
- discriminator: [219, 45, 247, 134, 71, 119, 125, 89],
808
+ discriminator: [
809
+ 219,
810
+ 45,
811
+ 247,
812
+ 134,
813
+ 71,
814
+ 119,
815
+ 125,
816
+ 89
817
+ ],
639
818
  accounts: [
640
819
  {
641
820
  name: "distributor",
642
- docs: ["The [MerkleDistributor]."],
821
+ docs: [
822
+ "The [MerkleDistributor]."
823
+ ],
643
824
  writable: true
644
825
  },
645
826
  {
@@ -649,7 +830,19 @@ var merkle_distributor_default = {
649
830
  seeds: [
650
831
  {
651
832
  kind: "const",
652
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
833
+ value: [
834
+ 67,
835
+ 108,
836
+ 97,
837
+ 105,
838
+ 109,
839
+ 83,
840
+ 116,
841
+ 97,
842
+ 116,
843
+ 117,
844
+ 115
845
+ ]
653
846
  },
654
847
  {
655
848
  kind: "account",
@@ -664,7 +857,9 @@ var merkle_distributor_default = {
664
857
  },
665
858
  {
666
859
  name: "signer",
667
- docs: ["Signer account"],
860
+ docs: [
861
+ "Signer account"
862
+ ],
668
863
  writable: true,
669
864
  signer: true
670
865
  },
@@ -673,7 +868,9 @@ var merkle_distributor_default = {
673
868
  },
674
869
  {
675
870
  name: "system_program",
676
- docs: ["The [System] program."],
871
+ docs: [
872
+ "The [System] program."
873
+ ],
677
874
  address: "11111111111111111111111111111111"
678
875
  }
679
876
  ],
@@ -681,11 +878,22 @@ var merkle_distributor_default = {
681
878
  },
682
879
  {
683
880
  name: "new_claim",
684
- discriminator: [78, 177, 98, 123, 210, 21, 187, 83],
881
+ discriminator: [
882
+ 78,
883
+ 177,
884
+ 98,
885
+ 123,
886
+ 210,
887
+ 21,
888
+ 187,
889
+ 83
890
+ ],
685
891
  accounts: [
686
892
  {
687
893
  name: "distributor",
688
- docs: ["The [MerkleDistributor]."],
894
+ docs: [
895
+ "The [MerkleDistributor]."
896
+ ],
689
897
  writable: true
690
898
  },
691
899
  {
@@ -695,7 +903,19 @@ var merkle_distributor_default = {
695
903
  seeds: [
696
904
  {
697
905
  kind: "const",
698
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
906
+ value: [
907
+ 67,
908
+ 108,
909
+ 97,
910
+ 105,
911
+ 109,
912
+ 83,
913
+ 116,
914
+ 97,
915
+ 116,
916
+ 117,
917
+ 115
918
+ ]
699
919
  },
700
920
  {
701
921
  kind: "account",
@@ -710,7 +930,9 @@ var merkle_distributor_default = {
710
930
  },
711
931
  {
712
932
  name: "from",
713
- docs: ["Distributor ATA containing the tokens to distribute."],
933
+ docs: [
934
+ "Distributor ATA containing the tokens to distribute."
935
+ ],
714
936
  writable: true,
715
937
  pda: {
716
938
  seeds: [
@@ -769,27 +991,39 @@ var merkle_distributor_default = {
769
991
  },
770
992
  {
771
993
  name: "to",
772
- docs: ["Account to send the claimed tokens to."],
994
+ docs: [
995
+ "Account to send the claimed tokens to."
996
+ ],
773
997
  writable: true
774
998
  },
775
999
  {
776
1000
  name: "claimant",
777
- docs: ["Who is claiming the tokens."],
1001
+ docs: [
1002
+ "Who is claiming the tokens."
1003
+ ],
778
1004
  writable: true,
779
1005
  signer: true
780
1006
  },
781
1007
  {
782
1008
  name: "mint",
783
- docs: ["The mint to claim."],
784
- relations: ["distributor"]
1009
+ docs: [
1010
+ "The mint to claim."
1011
+ ],
1012
+ relations: [
1013
+ "distributor"
1014
+ ]
785
1015
  },
786
1016
  {
787
1017
  name: "token_program",
788
- docs: ["SPL [Token] program."]
1018
+ docs: [
1019
+ "SPL [Token] program."
1020
+ ]
789
1021
  },
790
1022
  {
791
1023
  name: "system_program",
792
- docs: ["The [System] program."],
1024
+ docs: [
1025
+ "The [System] program."
1026
+ ],
793
1027
  address: "11111111111111111111111111111111"
794
1028
  },
795
1029
  {
@@ -798,7 +1032,25 @@ var merkle_distributor_default = {
798
1032
  seeds: [
799
1033
  {
800
1034
  kind: "const",
801
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121]
1035
+ value: [
1036
+ 95,
1037
+ 95,
1038
+ 101,
1039
+ 118,
1040
+ 101,
1041
+ 110,
1042
+ 116,
1043
+ 95,
1044
+ 97,
1045
+ 117,
1046
+ 116,
1047
+ 104,
1048
+ 111,
1049
+ 114,
1050
+ 105,
1051
+ 116,
1052
+ 121
1053
+ ]
802
1054
  }
803
1055
  ]
804
1056
  }
@@ -820,7 +1072,10 @@ var merkle_distributor_default = {
820
1072
  name: "proof",
821
1073
  type: {
822
1074
  vec: {
823
- array: ["u8", 32]
1075
+ array: [
1076
+ "u8",
1077
+ 32
1078
+ ]
824
1079
  }
825
1080
  }
826
1081
  }
@@ -848,17 +1103,46 @@ var merkle_distributor_default = {
848
1103
  "assert the parameters are what you expect, most importantly the clawback_receiver and admin.",
849
1104
  "- If your transaction fails, double check the value on-chain matches what you expect."
850
1105
  ],
851
- discriminator: [32, 139, 112, 171, 0, 2, 225, 155],
1106
+ discriminator: [
1107
+ 32,
1108
+ 139,
1109
+ 112,
1110
+ 171,
1111
+ 0,
1112
+ 2,
1113
+ 225,
1114
+ 155
1115
+ ],
852
1116
  accounts: [
853
1117
  {
854
1118
  name: "distributor",
855
- docs: ["[MerkleDistributor]."],
1119
+ docs: [
1120
+ "[MerkleDistributor]."
1121
+ ],
856
1122
  writable: true,
857
1123
  pda: {
858
1124
  seeds: [
859
1125
  {
860
1126
  kind: "const",
861
- value: [77, 101, 114, 107, 108, 101, 68, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
1127
+ value: [
1128
+ 77,
1129
+ 101,
1130
+ 114,
1131
+ 107,
1132
+ 108,
1133
+ 101,
1134
+ 68,
1135
+ 105,
1136
+ 115,
1137
+ 116,
1138
+ 114,
1139
+ 105,
1140
+ 98,
1141
+ 117,
1142
+ 116,
1143
+ 111,
1144
+ 114
1145
+ ]
862
1146
  },
863
1147
  {
864
1148
  kind: "account",
@@ -873,16 +1157,22 @@ var merkle_distributor_default = {
873
1157
  },
874
1158
  {
875
1159
  name: "clawback_receiver",
876
- docs: ["Clawback receiver token account"],
1160
+ docs: [
1161
+ "Clawback receiver token account"
1162
+ ],
877
1163
  writable: true
878
1164
  },
879
1165
  {
880
1166
  name: "mint",
881
- docs: ["The mint to distribute."]
1167
+ docs: [
1168
+ "The mint to distribute."
1169
+ ]
882
1170
  },
883
1171
  {
884
1172
  name: "token_vault",
885
- docs: ["Token vault"],
1173
+ docs: [
1174
+ "Token vault"
1175
+ ],
886
1176
  writable: true,
887
1177
  pda: {
888
1178
  seeds: [
@@ -949,17 +1239,23 @@ var merkle_distributor_default = {
949
1239
  },
950
1240
  {
951
1241
  name: "system_program",
952
- docs: ["The [System] program."],
1242
+ docs: [
1243
+ "The [System] program."
1244
+ ],
953
1245
  address: "11111111111111111111111111111111"
954
1246
  },
955
1247
  {
956
1248
  name: "associated_token_program",
957
- docs: ["The [Associated Token] program."],
1249
+ docs: [
1250
+ "The [Associated Token] program."
1251
+ ],
958
1252
  address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
959
1253
  },
960
1254
  {
961
1255
  name: "token_program",
962
- docs: ["The [Token] program."]
1256
+ docs: [
1257
+ "The [Token] program."
1258
+ ]
963
1259
  }
964
1260
  ],
965
1261
  args: [
@@ -970,7 +1266,10 @@ var merkle_distributor_default = {
970
1266
  {
971
1267
  name: "root",
972
1268
  type: {
973
- array: ["u8", 32]
1269
+ array: [
1270
+ "u8",
1271
+ 32
1272
+ ]
974
1273
  }
975
1274
  },
976
1275
  {
@@ -1035,11 +1334,22 @@ var merkle_distributor_default = {
1035
1334
  },
1036
1335
  {
1037
1336
  name: "refund_claim",
1038
- discriminator: [157, 23, 164, 146, 176, 53, 147, 143],
1337
+ discriminator: [
1338
+ 157,
1339
+ 23,
1340
+ 164,
1341
+ 146,
1342
+ 176,
1343
+ 53,
1344
+ 147,
1345
+ 143
1346
+ ],
1039
1347
  accounts: [
1040
1348
  {
1041
1349
  name: "distributor",
1042
- docs: ["The [MerkleDistributor]."],
1350
+ docs: [
1351
+ "The [MerkleDistributor]."
1352
+ ],
1043
1353
  writable: true
1044
1354
  },
1045
1355
  {
@@ -1049,7 +1359,19 @@ var merkle_distributor_default = {
1049
1359
  seeds: [
1050
1360
  {
1051
1361
  kind: "const",
1052
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115]
1362
+ value: [
1363
+ 67,
1364
+ 108,
1365
+ 97,
1366
+ 105,
1367
+ 109,
1368
+ 83,
1369
+ 116,
1370
+ 97,
1371
+ 116,
1372
+ 117,
1373
+ 115
1374
+ ]
1053
1375
  },
1054
1376
  {
1055
1377
  kind: "account",
@@ -1064,7 +1386,9 @@ var merkle_distributor_default = {
1064
1386
  },
1065
1387
  {
1066
1388
  name: "signer",
1067
- docs: ["Signer account"],
1389
+ docs: [
1390
+ "Signer account"
1391
+ ],
1068
1392
  writable: true,
1069
1393
  signer: true
1070
1394
  },
@@ -1078,7 +1402,9 @@ var merkle_distributor_default = {
1078
1402
  },
1079
1403
  {
1080
1404
  name: "system_program",
1081
- docs: ["The [System] program."],
1405
+ docs: [
1406
+ "The [System] program."
1407
+ ],
1082
1408
  address: "11111111111111111111111111111111"
1083
1409
  }
1084
1410
  ],
@@ -1086,22 +1412,37 @@ var merkle_distributor_default = {
1086
1412
  },
1087
1413
  {
1088
1414
  name: "set_admin",
1089
- discriminator: [251, 163, 0, 52, 91, 194, 187, 92],
1415
+ discriminator: [
1416
+ 251,
1417
+ 163,
1418
+ 0,
1419
+ 52,
1420
+ 91,
1421
+ 194,
1422
+ 187,
1423
+ 92
1424
+ ],
1090
1425
  accounts: [
1091
1426
  {
1092
1427
  name: "distributor",
1093
- docs: ["The [MerkleDistributor]."],
1428
+ docs: [
1429
+ "The [MerkleDistributor]."
1430
+ ],
1094
1431
  writable: true
1095
1432
  },
1096
1433
  {
1097
1434
  name: "admin",
1098
- docs: ["Admin signer"],
1435
+ docs: [
1436
+ "Admin signer"
1437
+ ],
1099
1438
  writable: true,
1100
1439
  signer: true
1101
1440
  },
1102
1441
  {
1103
1442
  name: "new_admin",
1104
- docs: ["New admin account"],
1443
+ docs: [
1444
+ "New admin account"
1445
+ ],
1105
1446
  writable: true
1106
1447
  }
1107
1448
  ],
@@ -1109,20 +1450,35 @@ var merkle_distributor_default = {
1109
1450
  },
1110
1451
  {
1111
1452
  name: "set_clawback_receiver",
1112
- discriminator: [153, 217, 34, 20, 19, 29, 229, 75],
1453
+ discriminator: [
1454
+ 153,
1455
+ 217,
1456
+ 34,
1457
+ 20,
1458
+ 19,
1459
+ 29,
1460
+ 229,
1461
+ 75
1462
+ ],
1113
1463
  accounts: [
1114
1464
  {
1115
1465
  name: "distributor",
1116
- docs: ["The [MerkleDistributor]."],
1466
+ docs: [
1467
+ "The [MerkleDistributor]."
1468
+ ],
1117
1469
  writable: true
1118
1470
  },
1119
1471
  {
1120
1472
  name: "new_clawback_account",
1121
- docs: ["New clawback account"]
1473
+ docs: [
1474
+ "New clawback account"
1475
+ ]
1122
1476
  },
1123
1477
  {
1124
1478
  name: "admin",
1125
- docs: ["Admin signer"],
1479
+ docs: [
1480
+ "Admin signer"
1481
+ ],
1126
1482
  writable: true,
1127
1483
  signer: true
1128
1484
  }
@@ -1131,22 +1487,37 @@ var merkle_distributor_default = {
1131
1487
  },
1132
1488
  {
1133
1489
  name: "update",
1134
- discriminator: [219, 200, 88, 176, 158, 63, 253, 127],
1490
+ discriminator: [
1491
+ 219,
1492
+ 200,
1493
+ 88,
1494
+ 176,
1495
+ 158,
1496
+ 63,
1497
+ 253,
1498
+ 127
1499
+ ],
1135
1500
  accounts: [
1136
1501
  {
1137
1502
  name: "distributor",
1138
- docs: ["The [MerkleDistributor]."],
1503
+ docs: [
1504
+ "The [MerkleDistributor]."
1505
+ ],
1139
1506
  writable: true
1140
1507
  },
1141
1508
  {
1142
1509
  name: "admin",
1143
- docs: ["Only Admin can trigger the clawback of funds"],
1510
+ docs: [
1511
+ "Only Admin can trigger the clawback of funds"
1512
+ ],
1144
1513
  writable: true,
1145
1514
  signer: true
1146
1515
  },
1147
1516
  {
1148
1517
  name: "system_program",
1149
- docs: ["The [System] program."],
1518
+ docs: [
1519
+ "The [System] program."
1520
+ ],
1150
1521
  address: "11111111111111111111111111111111"
1151
1522
  }
1152
1523
  ],
@@ -1163,29 +1534,83 @@ var merkle_distributor_default = {
1163
1534
  accounts: [
1164
1535
  {
1165
1536
  name: "ClaimStatus",
1166
- discriminator: [22, 183, 249, 157, 247, 95, 150, 96]
1537
+ discriminator: [
1538
+ 22,
1539
+ 183,
1540
+ 249,
1541
+ 157,
1542
+ 247,
1543
+ 95,
1544
+ 150,
1545
+ 96
1546
+ ]
1167
1547
  },
1168
1548
  {
1169
1549
  name: "CompressedClaimStatus",
1170
- discriminator: [53, 68, 161, 131, 212, 106, 98, 48]
1550
+ discriminator: [
1551
+ 53,
1552
+ 68,
1553
+ 161,
1554
+ 131,
1555
+ 212,
1556
+ 106,
1557
+ 98,
1558
+ 48
1559
+ ]
1171
1560
  },
1172
1561
  {
1173
1562
  name: "MerkleDistributor",
1174
- discriminator: [77, 119, 139, 70, 84, 247, 12, 26]
1563
+ discriminator: [
1564
+ 77,
1565
+ 119,
1566
+ 139,
1567
+ 70,
1568
+ 84,
1569
+ 247,
1570
+ 12,
1571
+ 26
1572
+ ]
1175
1573
  }
1176
1574
  ],
1177
1575
  events: [
1178
1576
  {
1179
1577
  name: "ClaimClosedEvent",
1180
- discriminator: [139, 166, 215, 195, 184, 233, 26, 217]
1578
+ discriminator: [
1579
+ 139,
1580
+ 166,
1581
+ 215,
1582
+ 195,
1583
+ 184,
1584
+ 233,
1585
+ 26,
1586
+ 217
1587
+ ]
1181
1588
  },
1182
1589
  {
1183
1590
  name: "ClaimedEvent",
1184
- discriminator: [144, 172, 209, 86, 144, 87, 84, 115]
1591
+ discriminator: [
1592
+ 144,
1593
+ 172,
1594
+ 209,
1595
+ 86,
1596
+ 144,
1597
+ 87,
1598
+ 84,
1599
+ 115
1600
+ ]
1185
1601
  },
1186
1602
  {
1187
1603
  name: "NewClaimEvent",
1188
- discriminator: [244, 3, 231, 151, 60, 101, 55, 55]
1604
+ discriminator: [
1605
+ 244,
1606
+ 3,
1607
+ 231,
1608
+ 151,
1609
+ 60,
1610
+ 101,
1611
+ 55,
1612
+ 55
1613
+ ]
1189
1614
  }
1190
1615
  ],
1191
1616
  errors: [
@@ -1313,18 +1738,24 @@ var merkle_distributor_default = {
1313
1738
  types: [
1314
1739
  {
1315
1740
  name: "ClaimClosedEvent",
1316
- docs: ["Emitted when a new claim is created."],
1741
+ docs: [
1742
+ "Emitted when a new claim is created."
1743
+ ],
1317
1744
  type: {
1318
1745
  kind: "struct",
1319
1746
  fields: [
1320
1747
  {
1321
1748
  name: "claimant",
1322
- docs: ["User that claimed."],
1749
+ docs: [
1750
+ "User that claimed."
1751
+ ],
1323
1752
  type: "pubkey"
1324
1753
  },
1325
1754
  {
1326
1755
  name: "timestamp",
1327
- docs: ["Timestamp."],
1756
+ docs: [
1757
+ "Timestamp."
1758
+ ],
1328
1759
  type: "u64"
1329
1760
  }
1330
1761
  ]
@@ -1332,43 +1763,59 @@ var merkle_distributor_default = {
1332
1763
  },
1333
1764
  {
1334
1765
  name: "ClaimStatus",
1335
- docs: ["Holds whether or not a claimant has claimed tokens."],
1766
+ docs: [
1767
+ "Holds whether or not a claimant has claimed tokens."
1768
+ ],
1336
1769
  type: {
1337
1770
  kind: "struct",
1338
1771
  fields: [
1339
1772
  {
1340
1773
  name: "claimant",
1341
- docs: ["Authority that claimed the tokens."],
1774
+ docs: [
1775
+ "Authority that claimed the tokens."
1776
+ ],
1342
1777
  type: "pubkey"
1343
1778
  },
1344
1779
  {
1345
1780
  name: "locked_amount",
1346
- docs: ["Locked amount"],
1781
+ docs: [
1782
+ "Locked amount"
1783
+ ],
1347
1784
  type: "u64"
1348
1785
  },
1349
1786
  {
1350
1787
  name: "locked_amount_withdrawn",
1351
- docs: ["Locked amount withdrawn"],
1788
+ docs: [
1789
+ "Locked amount withdrawn"
1790
+ ],
1352
1791
  type: "u64"
1353
1792
  },
1354
1793
  {
1355
1794
  name: "unlocked_amount",
1356
- docs: ["Unlocked amount"],
1795
+ docs: [
1796
+ "Unlocked amount"
1797
+ ],
1357
1798
  type: "u64"
1358
1799
  },
1359
1800
  {
1360
1801
  name: "last_claim_ts",
1361
- docs: ["Last claim time"],
1802
+ docs: [
1803
+ "Last claim time"
1804
+ ],
1362
1805
  type: "u64"
1363
1806
  },
1364
1807
  {
1365
1808
  name: "last_amount_per_unlock",
1366
- docs: ["Track amount per unlock, can be useful for non-linear vesting"],
1809
+ docs: [
1810
+ "Track amount per unlock, can be useful for non-linear vesting"
1811
+ ],
1367
1812
  type: "u64"
1368
1813
  },
1369
1814
  {
1370
1815
  name: "closed",
1371
- docs: ["Whether claim is closed"],
1816
+ docs: [
1817
+ "Whether claim is closed"
1818
+ ],
1372
1819
  type: "bool"
1373
1820
  },
1374
1821
  {
@@ -1380,19 +1827,28 @@ var merkle_distributor_default = {
1380
1827
  },
1381
1828
  {
1382
1829
  name: "claims_count",
1383
- docs: ["Number of time amount has been claimed"],
1830
+ docs: [
1831
+ "Number of time amount has been claimed"
1832
+ ],
1384
1833
  type: "u16"
1385
1834
  },
1386
1835
  {
1387
1836
  name: "closed_ts",
1388
- docs: ["Time when claim has been closed"],
1837
+ docs: [
1838
+ "Time when claim has been closed"
1839
+ ],
1389
1840
  type: "u64"
1390
1841
  },
1391
1842
  {
1392
1843
  name: "buffer_2",
1393
- docs: ["Buffer for additional fields"],
1844
+ docs: [
1845
+ "Buffer for additional fields"
1846
+ ],
1394
1847
  type: {
1395
- array: ["u8", 22]
1848
+ array: [
1849
+ "u8",
1850
+ 22
1851
+ ]
1396
1852
  }
1397
1853
  }
1398
1854
  ]
@@ -1400,18 +1856,24 @@ var merkle_distributor_default = {
1400
1856
  },
1401
1857
  {
1402
1858
  name: "ClaimedEvent",
1403
- docs: ["Emitted when tokens are claimed."],
1859
+ docs: [
1860
+ "Emitted when tokens are claimed."
1861
+ ],
1404
1862
  type: {
1405
1863
  kind: "struct",
1406
1864
  fields: [
1407
1865
  {
1408
1866
  name: "claimant",
1409
- docs: ["User that claimed."],
1867
+ docs: [
1868
+ "User that claimed."
1869
+ ],
1410
1870
  type: "pubkey"
1411
1871
  },
1412
1872
  {
1413
1873
  name: "amount",
1414
- docs: ["Amount of tokens to distribute."],
1874
+ docs: [
1875
+ "Amount of tokens to distribute."
1876
+ ],
1415
1877
  type: "u64"
1416
1878
  }
1417
1879
  ]
@@ -1419,7 +1881,9 @@ var merkle_distributor_default = {
1419
1881
  },
1420
1882
  {
1421
1883
  name: "CompressedClaimStatus",
1422
- docs: ["Holds whether or not a claimant has claimed tokens."],
1884
+ docs: [
1885
+ "Holds whether or not a claimant has claimed tokens."
1886
+ ],
1423
1887
  type: {
1424
1888
  kind: "struct",
1425
1889
  fields: [
@@ -1436,115 +1900,162 @@ var merkle_distributor_default = {
1436
1900
  },
1437
1901
  {
1438
1902
  name: "MerkleDistributor",
1439
- docs: ["State for the account which distributes tokens."],
1903
+ docs: [
1904
+ "State for the account which distributes tokens."
1905
+ ],
1440
1906
  type: {
1441
1907
  kind: "struct",
1442
1908
  fields: [
1443
1909
  {
1444
1910
  name: "bump",
1445
- docs: ["Bump seed."],
1911
+ docs: [
1912
+ "Bump seed."
1913
+ ],
1446
1914
  type: "u8"
1447
1915
  },
1448
1916
  {
1449
1917
  name: "version",
1450
- docs: ["Version of the airdrop"],
1918
+ docs: [
1919
+ "Version of the airdrop"
1920
+ ],
1451
1921
  type: "u64"
1452
1922
  },
1453
1923
  {
1454
1924
  name: "root",
1455
- docs: ["The 256-bit merkle root."],
1925
+ docs: [
1926
+ "The 256-bit merkle root."
1927
+ ],
1456
1928
  type: {
1457
- array: ["u8", 32]
1929
+ array: [
1930
+ "u8",
1931
+ 32
1932
+ ]
1458
1933
  }
1459
1934
  },
1460
1935
  {
1461
1936
  name: "mint",
1462
- docs: ["[Mint] of the token to be distributed."],
1937
+ docs: [
1938
+ "[Mint] of the token to be distributed."
1939
+ ],
1463
1940
  type: "pubkey"
1464
1941
  },
1465
1942
  {
1466
1943
  name: "token_vault",
1467
- docs: ["Token Address of the vault"],
1944
+ docs: [
1945
+ "Token Address of the vault"
1946
+ ],
1468
1947
  type: "pubkey"
1469
1948
  },
1470
1949
  {
1471
1950
  name: "max_total_claim",
1472
- docs: ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."],
1951
+ docs: [
1952
+ "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
1953
+ ],
1473
1954
  type: "u64"
1474
1955
  },
1475
1956
  {
1476
1957
  name: "max_num_nodes",
1477
- docs: ["Maximum number of nodes in [MerkleDistributor]."],
1958
+ docs: [
1959
+ "Maximum number of nodes in [MerkleDistributor]."
1960
+ ],
1478
1961
  type: "u64"
1479
1962
  },
1480
1963
  {
1481
1964
  name: "unlock_period",
1482
- docs: ["Time step (period) in seconds per which the unlock occurs"],
1965
+ docs: [
1966
+ "Time step (period) in seconds per which the unlock occurs"
1967
+ ],
1483
1968
  type: "u64"
1484
1969
  },
1485
1970
  {
1486
1971
  name: "total_amount_claimed",
1487
- docs: ["Total amount of tokens that have been claimed."],
1972
+ docs: [
1973
+ "Total amount of tokens that have been claimed."
1974
+ ],
1488
1975
  type: "u64"
1489
1976
  },
1490
1977
  {
1491
1978
  name: "num_nodes_claimed",
1492
- docs: ["Number of nodes that have been claimed."],
1979
+ docs: [
1980
+ "Number of nodes that have been claimed."
1981
+ ],
1493
1982
  type: "u64"
1494
1983
  },
1495
1984
  {
1496
1985
  name: "start_ts",
1497
- docs: ["Lockup time start (Unix Timestamp)"],
1986
+ docs: [
1987
+ "Lockup time start (Unix Timestamp)"
1988
+ ],
1498
1989
  type: "u64"
1499
1990
  },
1500
1991
  {
1501
1992
  name: "end_ts",
1502
- docs: ["Lockup time end (Unix Timestamp)"],
1993
+ docs: [
1994
+ "Lockup time end (Unix Timestamp)"
1995
+ ],
1503
1996
  type: "u64"
1504
1997
  },
1505
1998
  {
1506
1999
  name: "clawback_start_ts",
1507
- docs: ["Clawback start (Unix Timestamp)"],
2000
+ docs: [
2001
+ "Clawback start (Unix Timestamp)"
2002
+ ],
1508
2003
  type: "u64"
1509
2004
  },
1510
2005
  {
1511
2006
  name: "clawback_receiver",
1512
- docs: ["Clawback receiver"],
2007
+ docs: [
2008
+ "Clawback receiver"
2009
+ ],
1513
2010
  type: "pubkey"
1514
2011
  },
1515
2012
  {
1516
2013
  name: "admin",
1517
- docs: ["Admin wallet"],
2014
+ docs: [
2015
+ "Admin wallet"
2016
+ ],
1518
2017
  type: "pubkey"
1519
2018
  },
1520
2019
  {
1521
2020
  name: "clawed_back",
1522
- docs: ["Whether or not the distributor has been clawed back"],
2021
+ docs: [
2022
+ "Whether or not the distributor has been clawed back"
2023
+ ],
1523
2024
  type: "bool"
1524
2025
  },
1525
2026
  {
1526
2027
  name: "claims_closable_by_admin",
1527
- docs: ["Whether claims are closable by the admin or not"],
2028
+ docs: [
2029
+ "Whether claims are closable by the admin or not"
2030
+ ],
1528
2031
  type: "bool"
1529
2032
  },
1530
2033
  {
1531
2034
  name: "can_update_duration",
1532
- docs: ["Whether admin can update vesting duration"],
2035
+ docs: [
2036
+ "Whether admin can update vesting duration"
2037
+ ],
1533
2038
  type: "bool"
1534
2039
  },
1535
2040
  {
1536
2041
  name: "total_amount_unlocked",
1537
- docs: ["Total amount of funds unlocked (cliff/instant)"],
2042
+ docs: [
2043
+ "Total amount of funds unlocked (cliff/instant)"
2044
+ ],
1538
2045
  type: "u64"
1539
2046
  },
1540
2047
  {
1541
2048
  name: "total_amount_locked",
1542
- docs: ["Total amount of funds locked (vested)"],
2049
+ docs: [
2050
+ "Total amount of funds locked (vested)"
2051
+ ],
1543
2052
  type: "u64"
1544
2053
  },
1545
2054
  {
1546
2055
  name: "last_duration_update_ts",
1547
- docs: ["Timestamp when update was last called"],
2056
+ docs: [
2057
+ "Timestamp when update was last called"
2058
+ ],
1548
2059
  type: "u64"
1549
2060
  },
1550
2061
  {
@@ -1556,31 +2067,47 @@ var merkle_distributor_default = {
1556
2067
  },
1557
2068
  {
1558
2069
  name: "clawed_back_ts",
1559
- docs: ["Timestamp when funds were clawed back"],
2070
+ docs: [
2071
+ "Timestamp when funds were clawed back"
2072
+ ],
1560
2073
  type: "u64"
1561
2074
  },
1562
2075
  {
1563
2076
  name: "claims_closable_by_claimant",
1564
- docs: ["Whether claims are closable by claimant or not"],
2077
+ docs: [
2078
+ "Whether claims are closable by claimant or not"
2079
+ ],
1565
2080
  type: "bool"
1566
2081
  },
1567
2082
  {
1568
2083
  name: "claims_limit",
1569
- docs: ["Limit number of claims"],
2084
+ docs: [
2085
+ "Limit number of claims"
2086
+ ],
1570
2087
  type: "u16"
1571
2088
  },
1572
2089
  {
1573
2090
  name: "buffer_2",
1574
- docs: ["Buffer for additional fields"],
2091
+ docs: [
2092
+ "Buffer for additional fields"
2093
+ ],
1575
2094
  type: {
1576
- array: ["u8", 20]
2095
+ array: [
2096
+ "u8",
2097
+ 20
2098
+ ]
1577
2099
  }
1578
2100
  },
1579
2101
  {
1580
2102
  name: "buffer_3",
1581
- docs: ["Buffer for additional fields"],
2103
+ docs: [
2104
+ "Buffer for additional fields"
2105
+ ],
1582
2106
  type: {
1583
- array: ["u8", 32]
2107
+ array: [
2108
+ "u8",
2109
+ 32
2110
+ ]
1584
2111
  }
1585
2112
  }
1586
2113
  ]
@@ -1588,18 +2115,24 @@ var merkle_distributor_default = {
1588
2115
  },
1589
2116
  {
1590
2117
  name: "NewClaimEvent",
1591
- docs: ["Emitted when a new claim is created."],
2118
+ docs: [
2119
+ "Emitted when a new claim is created."
2120
+ ],
1592
2121
  type: {
1593
2122
  kind: "struct",
1594
2123
  fields: [
1595
2124
  {
1596
2125
  name: "claimant",
1597
- docs: ["User that claimed."],
2126
+ docs: [
2127
+ "User that claimed."
2128
+ ],
1598
2129
  type: "pubkey"
1599
2130
  },
1600
2131
  {
1601
2132
  name: "timestamp",
1602
- docs: ["Timestamp."],
2133
+ docs: [
2134
+ "Timestamp."
2135
+ ],
1603
2136
  type: "u64"
1604
2137
  }
1605
2138
  ]
@@ -3001,7 +3534,8 @@ var BaseDistributorClient = class {
3001
3534
  [extParams.invoker.publicKey],
3002
3535
  distributor.mint,
3003
3536
  extParams.invoker,
3004
- tokenProgramId
3537
+ tokenProgramId,
3538
+ extParams.feePayer
3005
3539
  )
3006
3540
  );
3007
3541
  const invokerTokens = await ata(distributor.mint, extParams.invoker.publicKey, tokenProgramId);
@@ -3038,7 +3572,7 @@ var BaseDistributorClient = class {
3038
3572
  }
3039
3573
  ixs.push(
3040
3574
  this.prepareClaimFeeInstruction(
3041
- extParams.invoker.publicKey,
3575
+ extParams.feePayer ?? extParams.invoker.publicKey,
3042
3576
  typeof _serviceTransfer === "bigint" ? _serviceTransfer : void 0
3043
3577
  )
3044
3578
  );
@@ -3081,6 +3615,7 @@ var BaseDistributorClient = class {
3081
3615
  const eventAuthorityPublicKey = getEventAuthorityPda(this.programId);
3082
3616
  const closeClaimAccounts = {
3083
3617
  adminOrClaimant: extParams.invoker.publicKey,
3618
+ payer: extParams.invoker.publicKey,
3084
3619
  distributor: distributorPublicKey,
3085
3620
  claimStatus: claimStatusPublicKey,
3086
3621
  claimant: claimantPublicKey,
@@ -3113,7 +3648,8 @@ var BaseDistributorClient = class {
3113
3648
  [extParams.invoker.publicKey],
3114
3649
  distributor.mint,
3115
3650
  extParams.invoker,
3116
- tokenProgramId
3651
+ tokenProgramId,
3652
+ extParams.feePayer
3117
3653
  )
3118
3654
  );
3119
3655
  const accounts = {
@@ -3264,23 +3800,36 @@ var aligned_distributor_default = {
3264
3800
  address: "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3265
3801
  metadata: {
3266
3802
  name: "aligned_distributor",
3267
- version: "1.5.0",
3803
+ version: "1.5.1",
3268
3804
  spec: "0.1.0",
3269
3805
  description: "Proxy for merkle distributor that updates Vesting duration according to token market performance."
3270
3806
  },
3271
3807
  instructions: [
3272
3808
  {
3273
3809
  name: "change_oracle",
3274
- discriminator: [177, 227, 230, 103, 13, 72, 141, 248],
3810
+ discriminator: [
3811
+ 177,
3812
+ 227,
3813
+ 230,
3814
+ 103,
3815
+ 13,
3816
+ 72,
3817
+ 141,
3818
+ 248
3819
+ ],
3275
3820
  accounts: [
3276
3821
  {
3277
3822
  name: "aligned_distributor",
3278
- docs: ["The [MerkleDistributor]."],
3823
+ docs: [
3824
+ "The [MerkleDistributor]."
3825
+ ],
3279
3826
  writable: true
3280
3827
  },
3281
3828
  {
3282
3829
  name: "admin",
3283
- docs: ["Admin signer"],
3830
+ docs: [
3831
+ "Admin signer"
3832
+ ],
3284
3833
  writable: true,
3285
3834
  signer: true
3286
3835
  },
@@ -3301,17 +3850,48 @@ var aligned_distributor_default = {
3301
3850
  },
3302
3851
  {
3303
3852
  name: "clawback",
3304
- discriminator: [111, 92, 142, 79, 33, 234, 82, 27],
3853
+ discriminator: [
3854
+ 111,
3855
+ 92,
3856
+ 142,
3857
+ 79,
3858
+ 33,
3859
+ 234,
3860
+ 82,
3861
+ 27
3862
+ ],
3305
3863
  accounts: [
3306
3864
  {
3307
3865
  name: "aligned_distributor",
3308
- docs: ["The [AlignedDistributor]."],
3866
+ docs: [
3867
+ "The [AlignedDistributor]."
3868
+ ],
3309
3869
  writable: true,
3310
3870
  pda: {
3311
3871
  seeds: [
3312
3872
  {
3313
3873
  kind: "const",
3314
- value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
3874
+ value: [
3875
+ 97,
3876
+ 108,
3877
+ 105,
3878
+ 103,
3879
+ 110,
3880
+ 101,
3881
+ 100,
3882
+ 45,
3883
+ 100,
3884
+ 105,
3885
+ 115,
3886
+ 116,
3887
+ 114,
3888
+ 105,
3889
+ 98,
3890
+ 117,
3891
+ 116,
3892
+ 111,
3893
+ 114
3894
+ ]
3315
3895
  },
3316
3896
  {
3317
3897
  kind: "account",
@@ -3322,22 +3902,30 @@ var aligned_distributor_default = {
3322
3902
  },
3323
3903
  {
3324
3904
  name: "distributor",
3325
- docs: ["The [MerkleDistributor]."],
3905
+ docs: [
3906
+ "The [MerkleDistributor]."
3907
+ ],
3326
3908
  writable: true
3327
3909
  },
3328
3910
  {
3329
3911
  name: "from",
3330
- docs: ["Distributor ATA containing the tokens to distribute."],
3912
+ docs: [
3913
+ "Distributor ATA containing the tokens to distribute."
3914
+ ],
3331
3915
  writable: true
3332
3916
  },
3333
3917
  {
3334
3918
  name: "to",
3335
- docs: ["The Clawback token account."],
3919
+ docs: [
3920
+ "The Clawback token account."
3921
+ ],
3336
3922
  writable: true
3337
3923
  },
3338
3924
  {
3339
3925
  name: "admin",
3340
- docs: ["Only Admin can trigger the clawback of funds"],
3926
+ docs: [
3927
+ "Only Admin can trigger the clawback of funds"
3928
+ ],
3341
3929
  writable: true,
3342
3930
  signer: true
3343
3931
  },
@@ -3350,19 +3938,186 @@ var aligned_distributor_default = {
3350
3938
  },
3351
3939
  {
3352
3940
  name: "system_program",
3353
- docs: ["The [System] program."],
3941
+ docs: [
3942
+ "The [System] program."
3943
+ ],
3354
3944
  address: "11111111111111111111111111111111"
3355
3945
  },
3356
3946
  {
3357
3947
  name: "token_program",
3358
- docs: ["SPL [Token] program."]
3948
+ docs: [
3949
+ "SPL [Token] program."
3950
+ ]
3951
+ }
3952
+ ],
3953
+ args: []
3954
+ },
3955
+ {
3956
+ name: "close_claim",
3957
+ discriminator: [
3958
+ 42,
3959
+ 177,
3960
+ 165,
3961
+ 35,
3962
+ 213,
3963
+ 179,
3964
+ 211,
3965
+ 19
3966
+ ],
3967
+ accounts: [
3968
+ {
3969
+ name: "aligned_distributor",
3970
+ docs: [
3971
+ "The [AlignedDistributor]."
3972
+ ],
3973
+ writable: true,
3974
+ pda: {
3975
+ seeds: [
3976
+ {
3977
+ kind: "const",
3978
+ value: [
3979
+ 97,
3980
+ 108,
3981
+ 105,
3982
+ 103,
3983
+ 110,
3984
+ 101,
3985
+ 100,
3986
+ 45,
3987
+ 100,
3988
+ 105,
3989
+ 115,
3990
+ 116,
3991
+ 114,
3992
+ 105,
3993
+ 98,
3994
+ 117,
3995
+ 116,
3996
+ 111,
3997
+ 114
3998
+ ]
3999
+ },
4000
+ {
4001
+ kind: "account",
4002
+ path: "distributor"
4003
+ }
4004
+ ]
4005
+ }
4006
+ },
4007
+ {
4008
+ name: "distributor",
4009
+ docs: [
4010
+ "The [MerkleDistributor]."
4011
+ ],
4012
+ writable: true
4013
+ },
4014
+ {
4015
+ name: "admin",
4016
+ docs: [
4017
+ "Only Admin can trigger the clawback of funds"
4018
+ ],
4019
+ writable: true,
4020
+ signer: true
4021
+ },
4022
+ {
4023
+ name: "claimant",
4024
+ writable: true
4025
+ },
4026
+ {
4027
+ name: "claim_status",
4028
+ writable: true,
4029
+ pda: {
4030
+ seeds: [
4031
+ {
4032
+ kind: "const",
4033
+ value: [
4034
+ 67,
4035
+ 108,
4036
+ 97,
4037
+ 105,
4038
+ 109,
4039
+ 83,
4040
+ 116,
4041
+ 97,
4042
+ 116,
4043
+ 117,
4044
+ 115
4045
+ ]
4046
+ },
4047
+ {
4048
+ kind: "account",
4049
+ path: "claimant"
4050
+ },
4051
+ {
4052
+ kind: "account",
4053
+ path: "distributor"
4054
+ }
4055
+ ],
4056
+ program: {
4057
+ kind: "account",
4058
+ path: "distributor_program"
4059
+ }
4060
+ }
4061
+ },
4062
+ {
4063
+ name: "distributor_event_authority",
4064
+ pda: {
4065
+ seeds: [
4066
+ {
4067
+ kind: "const",
4068
+ value: [
4069
+ 95,
4070
+ 95,
4071
+ 101,
4072
+ 118,
4073
+ 101,
4074
+ 110,
4075
+ 116,
4076
+ 95,
4077
+ 97,
4078
+ 117,
4079
+ 116,
4080
+ 104,
4081
+ 111,
4082
+ 114,
4083
+ 105,
4084
+ 116,
4085
+ 121
4086
+ ]
4087
+ }
4088
+ ],
4089
+ program: {
4090
+ kind: "account",
4091
+ path: "distributor_program"
4092
+ }
4093
+ }
4094
+ },
4095
+ {
4096
+ name: "distributor_program",
4097
+ address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
4098
+ },
4099
+ {
4100
+ name: "system_program",
4101
+ docs: [
4102
+ "The [System] program."
4103
+ ],
4104
+ address: "11111111111111111111111111111111"
3359
4105
  }
3360
4106
  ],
3361
4107
  args: []
3362
4108
  },
3363
4109
  {
3364
4110
  name: "create_test_oracle",
3365
- discriminator: [183, 110, 4, 11, 131, 220, 84, 12],
4111
+ discriminator: [
4112
+ 183,
4113
+ 110,
4114
+ 4,
4115
+ 11,
4116
+ 131,
4117
+ 220,
4118
+ 84,
4119
+ 12
4120
+ ],
3366
4121
  accounts: [
3367
4122
  {
3368
4123
  name: "creator",
@@ -3379,7 +4134,19 @@ var aligned_distributor_default = {
3379
4134
  seeds: [
3380
4135
  {
3381
4136
  kind: "const",
3382
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
4137
+ value: [
4138
+ 116,
4139
+ 101,
4140
+ 115,
4141
+ 116,
4142
+ 45,
4143
+ 111,
4144
+ 114,
4145
+ 97,
4146
+ 99,
4147
+ 108,
4148
+ 101
4149
+ ]
3383
4150
  },
3384
4151
  {
3385
4152
  kind: "account",
@@ -3410,7 +4177,16 @@ var aligned_distributor_default = {
3410
4177
  },
3411
4178
  {
3412
4179
  name: "migrate_test_oracle",
3413
- discriminator: [203, 254, 19, 3, 172, 185, 85, 190],
4180
+ discriminator: [
4181
+ 203,
4182
+ 254,
4183
+ 19,
4184
+ 3,
4185
+ 172,
4186
+ 185,
4187
+ 85,
4188
+ 190
4189
+ ],
3414
4190
  accounts: [
3415
4191
  {
3416
4192
  name: "payer",
@@ -3430,7 +4206,19 @@ var aligned_distributor_default = {
3430
4206
  seeds: [
3431
4207
  {
3432
4208
  kind: "const",
3433
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
4209
+ value: [
4210
+ 116,
4211
+ 101,
4212
+ 115,
4213
+ 116,
4214
+ 45,
4215
+ 111,
4216
+ 114,
4217
+ 97,
4218
+ 99,
4219
+ 108,
4220
+ 101
4221
+ ]
3434
4222
  },
3435
4223
  {
3436
4224
  kind: "account",
@@ -3452,7 +4240,16 @@ var aligned_distributor_default = {
3452
4240
  },
3453
4241
  {
3454
4242
  name: "new_distributor",
3455
- discriminator: [32, 139, 112, 171, 0, 2, 225, 155],
4243
+ discriminator: [
4244
+ 32,
4245
+ 139,
4246
+ 112,
4247
+ 171,
4248
+ 0,
4249
+ 2,
4250
+ 225,
4251
+ 155
4252
+ ],
3456
4253
  accounts: [
3457
4254
  {
3458
4255
  name: "aligned_distributor",
@@ -3461,7 +4258,27 @@ var aligned_distributor_default = {
3461
4258
  seeds: [
3462
4259
  {
3463
4260
  kind: "const",
3464
- value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
4261
+ value: [
4262
+ 97,
4263
+ 108,
4264
+ 105,
4265
+ 103,
4266
+ 110,
4267
+ 101,
4268
+ 100,
4269
+ 45,
4270
+ 100,
4271
+ 105,
4272
+ 115,
4273
+ 116,
4274
+ 114,
4275
+ 105,
4276
+ 98,
4277
+ 117,
4278
+ 116,
4279
+ 111,
4280
+ 114
4281
+ ]
3465
4282
  },
3466
4283
  {
3467
4284
  kind: "account",
@@ -3480,12 +4297,16 @@ var aligned_distributor_default = {
3480
4297
  },
3481
4298
  {
3482
4299
  name: "clawback_receiver",
3483
- docs: ["Clawback receiver token account"],
4300
+ docs: [
4301
+ "Clawback receiver token account"
4302
+ ],
3484
4303
  writable: true
3485
4304
  },
3486
4305
  {
3487
4306
  name: "mint",
3488
- docs: ["The mint to distribute."]
4307
+ docs: [
4308
+ "The mint to distribute."
4309
+ ]
3489
4310
  },
3490
4311
  {
3491
4312
  name: "distributor",
@@ -3506,22 +4327,30 @@ var aligned_distributor_default = {
3506
4327
  },
3507
4328
  {
3508
4329
  name: "distributor_program",
3509
- docs: ["MerkleDistributor program"],
4330
+ docs: [
4331
+ "MerkleDistributor program"
4332
+ ],
3510
4333
  address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
3511
4334
  },
3512
4335
  {
3513
4336
  name: "system_program",
3514
- docs: ["The [System] program."],
4337
+ docs: [
4338
+ "The [System] program."
4339
+ ],
3515
4340
  address: "11111111111111111111111111111111"
3516
4341
  },
3517
4342
  {
3518
4343
  name: "associated_token_program",
3519
- docs: ["The [Associated Token] program."],
4344
+ docs: [
4345
+ "The [Associated Token] program."
4346
+ ],
3520
4347
  address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
3521
4348
  },
3522
4349
  {
3523
4350
  name: "token_program",
3524
- docs: ["The [Token] program."]
4351
+ docs: [
4352
+ "The [Token] program."
4353
+ ]
3525
4354
  }
3526
4355
  ],
3527
4356
  args: [
@@ -3537,7 +4366,16 @@ var aligned_distributor_default = {
3537
4366
  },
3538
4367
  {
3539
4368
  name: "realloc_test_oracle",
3540
- discriminator: [234, 221, 116, 4, 198, 251, 244, 206],
4369
+ discriminator: [
4370
+ 234,
4371
+ 221,
4372
+ 116,
4373
+ 4,
4374
+ 198,
4375
+ 251,
4376
+ 244,
4377
+ 206
4378
+ ],
3541
4379
  accounts: [
3542
4380
  {
3543
4381
  name: "payer",
@@ -3557,7 +4395,19 @@ var aligned_distributor_default = {
3557
4395
  seeds: [
3558
4396
  {
3559
4397
  kind: "const",
3560
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
4398
+ value: [
4399
+ 116,
4400
+ 101,
4401
+ 115,
4402
+ 116,
4403
+ 45,
4404
+ 111,
4405
+ 114,
4406
+ 97,
4407
+ 99,
4408
+ 108,
4409
+ 101
4410
+ ]
3561
4411
  },
3562
4412
  {
3563
4413
  kind: "account",
@@ -3579,22 +4429,37 @@ var aligned_distributor_default = {
3579
4429
  },
3580
4430
  {
3581
4431
  name: "set_admin",
3582
- discriminator: [251, 163, 0, 52, 91, 194, 187, 92],
4432
+ discriminator: [
4433
+ 251,
4434
+ 163,
4435
+ 0,
4436
+ 52,
4437
+ 91,
4438
+ 194,
4439
+ 187,
4440
+ 92
4441
+ ],
3583
4442
  accounts: [
3584
4443
  {
3585
4444
  name: "aligned_distributor",
3586
- docs: ["The [MerkleDistributor]."],
4445
+ docs: [
4446
+ "The [MerkleDistributor]."
4447
+ ],
3587
4448
  writable: true
3588
4449
  },
3589
4450
  {
3590
4451
  name: "admin",
3591
- docs: ["Admin signer"],
4452
+ docs: [
4453
+ "Admin signer"
4454
+ ],
3592
4455
  writable: true,
3593
4456
  signer: true
3594
4457
  },
3595
4458
  {
3596
4459
  name: "new_admin",
3597
- docs: ["New admin account"],
4460
+ docs: [
4461
+ "New admin account"
4462
+ ],
3598
4463
  writable: true
3599
4464
  }
3600
4465
  ],
@@ -3602,7 +4467,16 @@ var aligned_distributor_default = {
3602
4467
  },
3603
4468
  {
3604
4469
  name: "set_test_oracle_authority",
3605
- discriminator: [26, 66, 233, 99, 38, 118, 181, 247],
4470
+ discriminator: [
4471
+ 26,
4472
+ 66,
4473
+ 233,
4474
+ 99,
4475
+ 38,
4476
+ 118,
4477
+ 181,
4478
+ 247
4479
+ ],
3606
4480
  accounts: [
3607
4481
  {
3608
4482
  name: "authority",
@@ -3621,23 +4495,56 @@ var aligned_distributor_default = {
3621
4495
  },
3622
4496
  {
3623
4497
  name: "update_duration",
3624
- discriminator: [69, 126, 172, 250, 164, 14, 10, 161],
4498
+ discriminator: [
4499
+ 69,
4500
+ 126,
4501
+ 172,
4502
+ 250,
4503
+ 164,
4504
+ 14,
4505
+ 10,
4506
+ 161
4507
+ ],
3625
4508
  accounts: [
3626
4509
  {
3627
4510
  name: "authority",
3628
- docs: ["Wallet authorised to call this method"],
4511
+ docs: [
4512
+ "Wallet authorised to call this method"
4513
+ ],
3629
4514
  writable: true,
3630
4515
  signer: true
3631
4516
  },
3632
4517
  {
3633
4518
  name: "aligned_distributor",
3634
- docs: ["The account holding the proxy parameters."],
4519
+ docs: [
4520
+ "The account holding the proxy parameters."
4521
+ ],
3635
4522
  writable: true,
3636
4523
  pda: {
3637
4524
  seeds: [
3638
4525
  {
3639
4526
  kind: "const",
3640
- value: [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
4527
+ value: [
4528
+ 97,
4529
+ 108,
4530
+ 105,
4531
+ 103,
4532
+ 110,
4533
+ 101,
4534
+ 100,
4535
+ 45,
4536
+ 100,
4537
+ 105,
4538
+ 115,
4539
+ 116,
4540
+ 114,
4541
+ 105,
4542
+ 98,
4543
+ 117,
4544
+ 116,
4545
+ 111,
4546
+ 114
4547
+ ]
3641
4548
  },
3642
4549
  {
3643
4550
  kind: "account",
@@ -3648,16 +4555,22 @@ var aligned_distributor_default = {
3648
4555
  },
3649
4556
  {
3650
4557
  name: "distributor",
3651
- docs: ["The account holding the vesting parameters."],
4558
+ docs: [
4559
+ "The account holding the vesting parameters."
4560
+ ],
3652
4561
  writable: true
3653
4562
  },
3654
4563
  {
3655
4564
  name: "price_oracle",
3656
- relations: ["aligned_distributor"]
4565
+ relations: [
4566
+ "aligned_distributor"
4567
+ ]
3657
4568
  },
3658
4569
  {
3659
4570
  name: "distributor_program",
3660
- docs: ["MerkleDistributor program"],
4571
+ docs: [
4572
+ "MerkleDistributor program"
4573
+ ],
3661
4574
  address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
3662
4575
  },
3663
4576
  {
@@ -3669,7 +4582,16 @@ var aligned_distributor_default = {
3669
4582
  },
3670
4583
  {
3671
4584
  name: "update_test_oracle",
3672
- discriminator: [158, 147, 215, 74, 34, 123, 80, 76],
4585
+ discriminator: [
4586
+ 158,
4587
+ 147,
4588
+ 215,
4589
+ 74,
4590
+ 34,
4591
+ 123,
4592
+ 80,
4593
+ 76
4594
+ ],
3673
4595
  accounts: [
3674
4596
  {
3675
4597
  name: "authority",
@@ -3696,15 +4618,42 @@ var aligned_distributor_default = {
3696
4618
  accounts: [
3697
4619
  {
3698
4620
  name: "AlignedDistributor",
3699
- discriminator: [128, 76, 80, 203, 248, 175, 3, 43]
4621
+ discriminator: [
4622
+ 128,
4623
+ 76,
4624
+ 80,
4625
+ 203,
4626
+ 248,
4627
+ 175,
4628
+ 3,
4629
+ 43
4630
+ ]
3700
4631
  },
3701
4632
  {
3702
4633
  name: "MerkleDistributor",
3703
- discriminator: [77, 119, 139, 70, 84, 247, 12, 26]
4634
+ discriminator: [
4635
+ 77,
4636
+ 119,
4637
+ 139,
4638
+ 70,
4639
+ 84,
4640
+ 247,
4641
+ 12,
4642
+ 26
4643
+ ]
3704
4644
  },
3705
4645
  {
3706
4646
  name: "TestOracle",
3707
- discriminator: [198, 49, 63, 134, 232, 251, 168, 28]
4647
+ discriminator: [
4648
+ 198,
4649
+ 49,
4650
+ 63,
4651
+ 134,
4652
+ 232,
4653
+ 251,
4654
+ 168,
4655
+ 28
4656
+ ]
3708
4657
  }
3709
4658
  ],
3710
4659
  errors: [
@@ -3782,28 +4731,38 @@ var aligned_distributor_default = {
3782
4731
  types: [
3783
4732
  {
3784
4733
  name: "AlignedDistributor",
3785
- docs: ["State for the account which distributes tokens."],
4734
+ docs: [
4735
+ "State for the account which distributes tokens."
4736
+ ],
3786
4737
  type: {
3787
4738
  kind: "struct",
3788
4739
  fields: [
3789
4740
  {
3790
4741
  name: "bump",
3791
- docs: ["Bump seed."],
4742
+ docs: [
4743
+ "Bump seed."
4744
+ ],
3792
4745
  type: "u8"
3793
4746
  },
3794
4747
  {
3795
4748
  name: "distributor",
3796
- docs: ["[Mint] of the token to be distributed."],
4749
+ docs: [
4750
+ "[Mint] of the token to be distributed."
4751
+ ],
3797
4752
  type: "pubkey"
3798
4753
  },
3799
4754
  {
3800
4755
  name: "admin",
3801
- docs: ["Admin wallet"],
4756
+ docs: [
4757
+ "Admin wallet"
4758
+ ],
3802
4759
  type: "pubkey"
3803
4760
  },
3804
4761
  {
3805
4762
  name: "price_oracle_type",
3806
- docs: ["Type of the Oracle used to derive Token Price"],
4763
+ docs: [
4764
+ "Type of the Oracle used to derive Token Price"
4765
+ ],
3807
4766
  type: {
3808
4767
  defined: {
3809
4768
  name: "OracleType"
@@ -3812,47 +4771,65 @@ var aligned_distributor_default = {
3812
4771
  },
3813
4772
  {
3814
4773
  name: "price_oracle",
3815
- docs: ["Address of the Price Oracle"],
4774
+ docs: [
4775
+ "Address of the Price Oracle"
4776
+ ],
3816
4777
  type: "pubkey"
3817
4778
  },
3818
4779
  {
3819
4780
  name: "update_period",
3820
- docs: ["Period of updates, can be different from unlock period if needed"],
4781
+ docs: [
4782
+ "Period of updates, can be different from unlock period if needed"
4783
+ ],
3821
4784
  type: "u64"
3822
4785
  },
3823
4786
  {
3824
4787
  name: "min_price",
3825
- docs: ["Min price boundary"],
4788
+ docs: [
4789
+ "Min price boundary"
4790
+ ],
3826
4791
  type: "u64"
3827
4792
  },
3828
4793
  {
3829
4794
  name: "max_price",
3830
- docs: ["Max price boundary"],
4795
+ docs: [
4796
+ "Max price boundary"
4797
+ ],
3831
4798
  type: "u64"
3832
4799
  },
3833
4800
  {
3834
4801
  name: "min_percentage",
3835
- docs: ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
4802
+ docs: [
4803
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
4804
+ ],
3836
4805
  type: "u64"
3837
4806
  },
3838
4807
  {
3839
4808
  name: "max_percentage",
3840
- docs: ["Max percentage boundary"],
4809
+ docs: [
4810
+ "Max percentage boundary"
4811
+ ],
3841
4812
  type: "u64"
3842
4813
  },
3843
4814
  {
3844
4815
  name: "tick_size",
3845
- docs: ["Ticket size for percentage boundaries"],
4816
+ docs: [
4817
+ "Ticket size for percentage boundaries"
4818
+ ],
3846
4819
  type: "u64"
3847
4820
  },
3848
4821
  {
3849
4822
  name: "start_ts",
3850
- docs: ["Copy start ts from the Distributor to be used in the worker"],
4823
+ docs: [
4824
+ "Copy start ts from the Distributor to be used in the worker"
4825
+ ],
3851
4826
  type: "u64"
3852
4827
  },
3853
4828
  {
3854
4829
  name: "end_ts",
3855
- docs: ["Copy end ts from the Distributor to be used in the worker"],
4830
+ docs: [
4831
+ "Copy end ts from the Distributor to be used in the worker"
4832
+ ],
3856
4833
  type: "u64"
3857
4834
  },
3858
4835
  {
@@ -3864,41 +4841,61 @@ var aligned_distributor_default = {
3864
4841
  },
3865
4842
  {
3866
4843
  name: "last_price",
3867
- docs: ["Price used on last amount calculation"],
4844
+ docs: [
4845
+ "Price used on last amount calculation"
4846
+ ],
3868
4847
  type: "u64"
3869
4848
  },
3870
4849
  {
3871
4850
  name: "initial_duration",
3872
- docs: ["Initial Airdrop Vesting duration"],
4851
+ docs: [
4852
+ "Initial Airdrop Vesting duration"
4853
+ ],
3873
4854
  type: "u64"
3874
4855
  },
3875
4856
  {
3876
4857
  name: "initial_price",
3877
- docs: ["Initial token price at the time of Contract creation"],
4858
+ docs: [
4859
+ "Initial token price at the time of Contract creation"
4860
+ ],
3878
4861
  type: "u64"
3879
4862
  },
3880
4863
  {
3881
4864
  name: "distributor_clawed_back",
3882
- docs: ["Whether distributor was clawed backed"],
4865
+ docs: [
4866
+ "Whether distributor was clawed backed"
4867
+ ],
3883
4868
  type: "bool"
3884
4869
  },
3885
4870
  {
3886
4871
  name: "mint",
3887
- docs: ["Mint for which the distributor was created"],
4872
+ docs: [
4873
+ "Mint for which the distributor was created"
4874
+ ],
3888
4875
  type: "pubkey"
3889
4876
  },
3890
4877
  {
3891
4878
  name: "buffer_2",
3892
- docs: ["Buffer for additional fields"],
4879
+ docs: [
4880
+ "Buffer for additional fields"
4881
+ ],
3893
4882
  type: {
3894
- array: ["u8", 32]
4883
+ array: [
4884
+ "u8",
4885
+ 32
4886
+ ]
3895
4887
  }
3896
4888
  },
3897
4889
  {
3898
4890
  name: "buffer_3",
3899
- docs: ["Buffer for additional fields"],
4891
+ docs: [
4892
+ "Buffer for additional fields"
4893
+ ],
3900
4894
  type: {
3901
- array: ["u8", 32]
4895
+ array: [
4896
+ "u8",
4897
+ 32
4898
+ ]
3902
4899
  }
3903
4900
  }
3904
4901
  ]
@@ -3946,115 +4943,162 @@ var aligned_distributor_default = {
3946
4943
  },
3947
4944
  {
3948
4945
  name: "MerkleDistributor",
3949
- docs: ["State for the account which distributes tokens."],
4946
+ docs: [
4947
+ "State for the account which distributes tokens."
4948
+ ],
3950
4949
  type: {
3951
4950
  kind: "struct",
3952
4951
  fields: [
3953
4952
  {
3954
4953
  name: "bump",
3955
- docs: ["Bump seed."],
4954
+ docs: [
4955
+ "Bump seed."
4956
+ ],
3956
4957
  type: "u8"
3957
4958
  },
3958
4959
  {
3959
4960
  name: "version",
3960
- docs: ["Version of the airdrop"],
4961
+ docs: [
4962
+ "Version of the airdrop"
4963
+ ],
3961
4964
  type: "u64"
3962
4965
  },
3963
4966
  {
3964
4967
  name: "root",
3965
- docs: ["The 256-bit merkle root."],
4968
+ docs: [
4969
+ "The 256-bit merkle root."
4970
+ ],
3966
4971
  type: {
3967
- array: ["u8", 32]
4972
+ array: [
4973
+ "u8",
4974
+ 32
4975
+ ]
3968
4976
  }
3969
4977
  },
3970
4978
  {
3971
4979
  name: "mint",
3972
- docs: ["[Mint] of the token to be distributed."],
4980
+ docs: [
4981
+ "[Mint] of the token to be distributed."
4982
+ ],
3973
4983
  type: "pubkey"
3974
4984
  },
3975
4985
  {
3976
4986
  name: "token_vault",
3977
- docs: ["Token Address of the vault"],
4987
+ docs: [
4988
+ "Token Address of the vault"
4989
+ ],
3978
4990
  type: "pubkey"
3979
4991
  },
3980
4992
  {
3981
4993
  name: "max_total_claim",
3982
- docs: ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."],
4994
+ docs: [
4995
+ "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
4996
+ ],
3983
4997
  type: "u64"
3984
4998
  },
3985
4999
  {
3986
5000
  name: "max_num_nodes",
3987
- docs: ["Maximum number of nodes in [MerkleDistributor]."],
5001
+ docs: [
5002
+ "Maximum number of nodes in [MerkleDistributor]."
5003
+ ],
3988
5004
  type: "u64"
3989
5005
  },
3990
5006
  {
3991
5007
  name: "unlock_period",
3992
- docs: ["Time step (period) in seconds per which the unlock occurs"],
5008
+ docs: [
5009
+ "Time step (period) in seconds per which the unlock occurs"
5010
+ ],
3993
5011
  type: "u64"
3994
5012
  },
3995
5013
  {
3996
5014
  name: "total_amount_claimed",
3997
- docs: ["Total amount of tokens that have been claimed."],
5015
+ docs: [
5016
+ "Total amount of tokens that have been claimed."
5017
+ ],
3998
5018
  type: "u64"
3999
5019
  },
4000
5020
  {
4001
5021
  name: "num_nodes_claimed",
4002
- docs: ["Number of nodes that have been claimed."],
5022
+ docs: [
5023
+ "Number of nodes that have been claimed."
5024
+ ],
4003
5025
  type: "u64"
4004
5026
  },
4005
5027
  {
4006
5028
  name: "start_ts",
4007
- docs: ["Lockup time start (Unix Timestamp)"],
5029
+ docs: [
5030
+ "Lockup time start (Unix Timestamp)"
5031
+ ],
4008
5032
  type: "u64"
4009
5033
  },
4010
5034
  {
4011
5035
  name: "end_ts",
4012
- docs: ["Lockup time end (Unix Timestamp)"],
5036
+ docs: [
5037
+ "Lockup time end (Unix Timestamp)"
5038
+ ],
4013
5039
  type: "u64"
4014
5040
  },
4015
5041
  {
4016
5042
  name: "clawback_start_ts",
4017
- docs: ["Clawback start (Unix Timestamp)"],
5043
+ docs: [
5044
+ "Clawback start (Unix Timestamp)"
5045
+ ],
4018
5046
  type: "u64"
4019
5047
  },
4020
5048
  {
4021
5049
  name: "clawback_receiver",
4022
- docs: ["Clawback receiver"],
5050
+ docs: [
5051
+ "Clawback receiver"
5052
+ ],
4023
5053
  type: "pubkey"
4024
5054
  },
4025
5055
  {
4026
5056
  name: "admin",
4027
- docs: ["Admin wallet"],
5057
+ docs: [
5058
+ "Admin wallet"
5059
+ ],
4028
5060
  type: "pubkey"
4029
5061
  },
4030
5062
  {
4031
5063
  name: "clawed_back",
4032
- docs: ["Whether or not the distributor has been clawed back"],
5064
+ docs: [
5065
+ "Whether or not the distributor has been clawed back"
5066
+ ],
4033
5067
  type: "bool"
4034
5068
  },
4035
5069
  {
4036
5070
  name: "claims_closable_by_admin",
4037
- docs: ["Whether claims are closable by the admin or not"],
5071
+ docs: [
5072
+ "Whether claims are closable by the admin or not"
5073
+ ],
4038
5074
  type: "bool"
4039
5075
  },
4040
5076
  {
4041
5077
  name: "can_update_duration",
4042
- docs: ["Whether admin can update vesting duration"],
5078
+ docs: [
5079
+ "Whether admin can update vesting duration"
5080
+ ],
4043
5081
  type: "bool"
4044
5082
  },
4045
5083
  {
4046
5084
  name: "total_amount_unlocked",
4047
- docs: ["Total amount of funds unlocked (cliff/instant)"],
5085
+ docs: [
5086
+ "Total amount of funds unlocked (cliff/instant)"
5087
+ ],
4048
5088
  type: "u64"
4049
5089
  },
4050
5090
  {
4051
5091
  name: "total_amount_locked",
4052
- docs: ["Total amount of funds locked (vested)"],
5092
+ docs: [
5093
+ "Total amount of funds locked (vested)"
5094
+ ],
4053
5095
  type: "u64"
4054
5096
  },
4055
5097
  {
4056
5098
  name: "last_duration_update_ts",
4057
- docs: ["Timestamp when update was last called"],
5099
+ docs: [
5100
+ "Timestamp when update was last called"
5101
+ ],
4058
5102
  type: "u64"
4059
5103
  },
4060
5104
  {
@@ -4066,31 +5110,47 @@ var aligned_distributor_default = {
4066
5110
  },
4067
5111
  {
4068
5112
  name: "clawed_back_ts",
4069
- docs: ["Timestamp when funds were clawed back"],
5113
+ docs: [
5114
+ "Timestamp when funds were clawed back"
5115
+ ],
4070
5116
  type: "u64"
4071
5117
  },
4072
5118
  {
4073
5119
  name: "claims_closable_by_claimant",
4074
- docs: ["Whether claims are closable by claimant or not"],
5120
+ docs: [
5121
+ "Whether claims are closable by claimant or not"
5122
+ ],
4075
5123
  type: "bool"
4076
5124
  },
4077
5125
  {
4078
5126
  name: "claims_limit",
4079
- docs: ["Limit number of claims"],
5127
+ docs: [
5128
+ "Limit number of claims"
5129
+ ],
4080
5130
  type: "u16"
4081
5131
  },
4082
5132
  {
4083
5133
  name: "buffer_2",
4084
- docs: ["Buffer for additional fields"],
5134
+ docs: [
5135
+ "Buffer for additional fields"
5136
+ ],
4085
5137
  type: {
4086
- array: ["u8", 20]
5138
+ array: [
5139
+ "u8",
5140
+ 20
5141
+ ]
4087
5142
  }
4088
5143
  },
4089
5144
  {
4090
5145
  name: "buffer_3",
4091
- docs: ["Buffer for additional fields"],
5146
+ docs: [
5147
+ "Buffer for additional fields"
5148
+ ],
4092
5149
  type: {
4093
- array: ["u8", 32]
5150
+ array: [
5151
+ "u8",
5152
+ 32
5153
+ ]
4094
5154
  }
4095
5155
  }
4096
5156
  ]
@@ -4108,7 +5168,10 @@ var aligned_distributor_default = {
4108
5168
  {
4109
5169
  name: "root",
4110
5170
  type: {
4111
- array: ["u8", 32]
5171
+ array: [
5172
+ "u8",
5173
+ 32
5174
+ ]
4112
5175
  }
4113
5176
  },
4114
5177
  {