@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.
@@ -2,23 +2,36 @@
2
2
  "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3
3
  "metadata": {
4
4
  "name": "aligned_distributor",
5
- "version": "1.5.0",
5
+ "version": "1.5.1",
6
6
  "spec": "0.1.0",
7
7
  "description": "Proxy for merkle distributor that updates Vesting duration according to token market performance."
8
8
  },
9
9
  "instructions": [
10
10
  {
11
11
  "name": "change_oracle",
12
- "discriminator": [177, 227, 230, 103, 13, 72, 141, 248],
12
+ "discriminator": [
13
+ 177,
14
+ 227,
15
+ 230,
16
+ 103,
17
+ 13,
18
+ 72,
19
+ 141,
20
+ 248
21
+ ],
13
22
  "accounts": [
14
23
  {
15
24
  "name": "aligned_distributor",
16
- "docs": ["The [MerkleDistributor]."],
25
+ "docs": [
26
+ "The [MerkleDistributor]."
27
+ ],
17
28
  "writable": true
18
29
  },
19
30
  {
20
31
  "name": "admin",
21
- "docs": ["Admin signer"],
32
+ "docs": [
33
+ "Admin signer"
34
+ ],
22
35
  "writable": true,
23
36
  "signer": true
24
37
  },
@@ -39,17 +52,48 @@
39
52
  },
40
53
  {
41
54
  "name": "clawback",
42
- "discriminator": [111, 92, 142, 79, 33, 234, 82, 27],
55
+ "discriminator": [
56
+ 111,
57
+ 92,
58
+ 142,
59
+ 79,
60
+ 33,
61
+ 234,
62
+ 82,
63
+ 27
64
+ ],
43
65
  "accounts": [
44
66
  {
45
67
  "name": "aligned_distributor",
46
- "docs": ["The [AlignedDistributor]."],
68
+ "docs": [
69
+ "The [AlignedDistributor]."
70
+ ],
47
71
  "writable": true,
48
72
  "pda": {
49
73
  "seeds": [
50
74
  {
51
75
  "kind": "const",
52
- "value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
76
+ "value": [
77
+ 97,
78
+ 108,
79
+ 105,
80
+ 103,
81
+ 110,
82
+ 101,
83
+ 100,
84
+ 45,
85
+ 100,
86
+ 105,
87
+ 115,
88
+ 116,
89
+ 114,
90
+ 105,
91
+ 98,
92
+ 117,
93
+ 116,
94
+ 111,
95
+ 114
96
+ ]
53
97
  },
54
98
  {
55
99
  "kind": "account",
@@ -60,22 +104,30 @@
60
104
  },
61
105
  {
62
106
  "name": "distributor",
63
- "docs": ["The [MerkleDistributor]."],
107
+ "docs": [
108
+ "The [MerkleDistributor]."
109
+ ],
64
110
  "writable": true
65
111
  },
66
112
  {
67
113
  "name": "from",
68
- "docs": ["Distributor ATA containing the tokens to distribute."],
114
+ "docs": [
115
+ "Distributor ATA containing the tokens to distribute."
116
+ ],
69
117
  "writable": true
70
118
  },
71
119
  {
72
120
  "name": "to",
73
- "docs": ["The Clawback token account."],
121
+ "docs": [
122
+ "The Clawback token account."
123
+ ],
74
124
  "writable": true
75
125
  },
76
126
  {
77
127
  "name": "admin",
78
- "docs": ["Only Admin can trigger the clawback of funds"],
128
+ "docs": [
129
+ "Only Admin can trigger the clawback of funds"
130
+ ],
79
131
  "writable": true,
80
132
  "signer": true
81
133
  },
@@ -88,19 +140,186 @@
88
140
  },
89
141
  {
90
142
  "name": "system_program",
91
- "docs": ["The [System] program."],
143
+ "docs": [
144
+ "The [System] program."
145
+ ],
92
146
  "address": "11111111111111111111111111111111"
93
147
  },
94
148
  {
95
149
  "name": "token_program",
96
- "docs": ["SPL [Token] program."]
150
+ "docs": [
151
+ "SPL [Token] program."
152
+ ]
153
+ }
154
+ ],
155
+ "args": []
156
+ },
157
+ {
158
+ "name": "close_claim",
159
+ "discriminator": [
160
+ 42,
161
+ 177,
162
+ 165,
163
+ 35,
164
+ 213,
165
+ 179,
166
+ 211,
167
+ 19
168
+ ],
169
+ "accounts": [
170
+ {
171
+ "name": "aligned_distributor",
172
+ "docs": [
173
+ "The [AlignedDistributor]."
174
+ ],
175
+ "writable": true,
176
+ "pda": {
177
+ "seeds": [
178
+ {
179
+ "kind": "const",
180
+ "value": [
181
+ 97,
182
+ 108,
183
+ 105,
184
+ 103,
185
+ 110,
186
+ 101,
187
+ 100,
188
+ 45,
189
+ 100,
190
+ 105,
191
+ 115,
192
+ 116,
193
+ 114,
194
+ 105,
195
+ 98,
196
+ 117,
197
+ 116,
198
+ 111,
199
+ 114
200
+ ]
201
+ },
202
+ {
203
+ "kind": "account",
204
+ "path": "distributor"
205
+ }
206
+ ]
207
+ }
208
+ },
209
+ {
210
+ "name": "distributor",
211
+ "docs": [
212
+ "The [MerkleDistributor]."
213
+ ],
214
+ "writable": true
215
+ },
216
+ {
217
+ "name": "admin",
218
+ "docs": [
219
+ "Only Admin can trigger the clawback of funds"
220
+ ],
221
+ "writable": true,
222
+ "signer": true
223
+ },
224
+ {
225
+ "name": "claimant",
226
+ "writable": true
227
+ },
228
+ {
229
+ "name": "claim_status",
230
+ "writable": true,
231
+ "pda": {
232
+ "seeds": [
233
+ {
234
+ "kind": "const",
235
+ "value": [
236
+ 67,
237
+ 108,
238
+ 97,
239
+ 105,
240
+ 109,
241
+ 83,
242
+ 116,
243
+ 97,
244
+ 116,
245
+ 117,
246
+ 115
247
+ ]
248
+ },
249
+ {
250
+ "kind": "account",
251
+ "path": "claimant"
252
+ },
253
+ {
254
+ "kind": "account",
255
+ "path": "distributor"
256
+ }
257
+ ],
258
+ "program": {
259
+ "kind": "account",
260
+ "path": "distributor_program"
261
+ }
262
+ }
263
+ },
264
+ {
265
+ "name": "distributor_event_authority",
266
+ "pda": {
267
+ "seeds": [
268
+ {
269
+ "kind": "const",
270
+ "value": [
271
+ 95,
272
+ 95,
273
+ 101,
274
+ 118,
275
+ 101,
276
+ 110,
277
+ 116,
278
+ 95,
279
+ 97,
280
+ 117,
281
+ 116,
282
+ 104,
283
+ 111,
284
+ 114,
285
+ 105,
286
+ 116,
287
+ 121
288
+ ]
289
+ }
290
+ ],
291
+ "program": {
292
+ "kind": "account",
293
+ "path": "distributor_program"
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "name": "distributor_program",
299
+ "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
300
+ },
301
+ {
302
+ "name": "system_program",
303
+ "docs": [
304
+ "The [System] program."
305
+ ],
306
+ "address": "11111111111111111111111111111111"
97
307
  }
98
308
  ],
99
309
  "args": []
100
310
  },
101
311
  {
102
312
  "name": "create_test_oracle",
103
- "discriminator": [183, 110, 4, 11, 131, 220, 84, 12],
313
+ "discriminator": [
314
+ 183,
315
+ 110,
316
+ 4,
317
+ 11,
318
+ 131,
319
+ 220,
320
+ 84,
321
+ 12
322
+ ],
104
323
  "accounts": [
105
324
  {
106
325
  "name": "creator",
@@ -117,7 +336,19 @@
117
336
  "seeds": [
118
337
  {
119
338
  "kind": "const",
120
- "value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
339
+ "value": [
340
+ 116,
341
+ 101,
342
+ 115,
343
+ 116,
344
+ 45,
345
+ 111,
346
+ 114,
347
+ 97,
348
+ 99,
349
+ 108,
350
+ 101
351
+ ]
121
352
  },
122
353
  {
123
354
  "kind": "account",
@@ -148,7 +379,16 @@
148
379
  },
149
380
  {
150
381
  "name": "migrate_test_oracle",
151
- "discriminator": [203, 254, 19, 3, 172, 185, 85, 190],
382
+ "discriminator": [
383
+ 203,
384
+ 254,
385
+ 19,
386
+ 3,
387
+ 172,
388
+ 185,
389
+ 85,
390
+ 190
391
+ ],
152
392
  "accounts": [
153
393
  {
154
394
  "name": "payer",
@@ -168,7 +408,19 @@
168
408
  "seeds": [
169
409
  {
170
410
  "kind": "const",
171
- "value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
411
+ "value": [
412
+ 116,
413
+ 101,
414
+ 115,
415
+ 116,
416
+ 45,
417
+ 111,
418
+ 114,
419
+ 97,
420
+ 99,
421
+ 108,
422
+ 101
423
+ ]
172
424
  },
173
425
  {
174
426
  "kind": "account",
@@ -190,7 +442,16 @@
190
442
  },
191
443
  {
192
444
  "name": "new_distributor",
193
- "discriminator": [32, 139, 112, 171, 0, 2, 225, 155],
445
+ "discriminator": [
446
+ 32,
447
+ 139,
448
+ 112,
449
+ 171,
450
+ 0,
451
+ 2,
452
+ 225,
453
+ 155
454
+ ],
194
455
  "accounts": [
195
456
  {
196
457
  "name": "aligned_distributor",
@@ -199,7 +460,27 @@
199
460
  "seeds": [
200
461
  {
201
462
  "kind": "const",
202
- "value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
463
+ "value": [
464
+ 97,
465
+ 108,
466
+ 105,
467
+ 103,
468
+ 110,
469
+ 101,
470
+ 100,
471
+ 45,
472
+ 100,
473
+ 105,
474
+ 115,
475
+ 116,
476
+ 114,
477
+ 105,
478
+ 98,
479
+ 117,
480
+ 116,
481
+ 111,
482
+ 114
483
+ ]
203
484
  },
204
485
  {
205
486
  "kind": "account",
@@ -218,12 +499,16 @@
218
499
  },
219
500
  {
220
501
  "name": "clawback_receiver",
221
- "docs": ["Clawback receiver token account"],
502
+ "docs": [
503
+ "Clawback receiver token account"
504
+ ],
222
505
  "writable": true
223
506
  },
224
507
  {
225
508
  "name": "mint",
226
- "docs": ["The mint to distribute."]
509
+ "docs": [
510
+ "The mint to distribute."
511
+ ]
227
512
  },
228
513
  {
229
514
  "name": "distributor",
@@ -244,22 +529,30 @@
244
529
  },
245
530
  {
246
531
  "name": "distributor_program",
247
- "docs": ["MerkleDistributor program"],
532
+ "docs": [
533
+ "MerkleDistributor program"
534
+ ],
248
535
  "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
249
536
  },
250
537
  {
251
538
  "name": "system_program",
252
- "docs": ["The [System] program."],
539
+ "docs": [
540
+ "The [System] program."
541
+ ],
253
542
  "address": "11111111111111111111111111111111"
254
543
  },
255
544
  {
256
545
  "name": "associated_token_program",
257
- "docs": ["The [Associated Token] program."],
546
+ "docs": [
547
+ "The [Associated Token] program."
548
+ ],
258
549
  "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
259
550
  },
260
551
  {
261
552
  "name": "token_program",
262
- "docs": ["The [Token] program."]
553
+ "docs": [
554
+ "The [Token] program."
555
+ ]
263
556
  }
264
557
  ],
265
558
  "args": [
@@ -275,7 +568,16 @@
275
568
  },
276
569
  {
277
570
  "name": "realloc_test_oracle",
278
- "discriminator": [234, 221, 116, 4, 198, 251, 244, 206],
571
+ "discriminator": [
572
+ 234,
573
+ 221,
574
+ 116,
575
+ 4,
576
+ 198,
577
+ 251,
578
+ 244,
579
+ 206
580
+ ],
279
581
  "accounts": [
280
582
  {
281
583
  "name": "payer",
@@ -295,7 +597,19 @@
295
597
  "seeds": [
296
598
  {
297
599
  "kind": "const",
298
- "value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
600
+ "value": [
601
+ 116,
602
+ 101,
603
+ 115,
604
+ 116,
605
+ 45,
606
+ 111,
607
+ 114,
608
+ 97,
609
+ 99,
610
+ 108,
611
+ 101
612
+ ]
299
613
  },
300
614
  {
301
615
  "kind": "account",
@@ -317,22 +631,37 @@
317
631
  },
318
632
  {
319
633
  "name": "set_admin",
320
- "discriminator": [251, 163, 0, 52, 91, 194, 187, 92],
634
+ "discriminator": [
635
+ 251,
636
+ 163,
637
+ 0,
638
+ 52,
639
+ 91,
640
+ 194,
641
+ 187,
642
+ 92
643
+ ],
321
644
  "accounts": [
322
645
  {
323
646
  "name": "aligned_distributor",
324
- "docs": ["The [MerkleDistributor]."],
647
+ "docs": [
648
+ "The [MerkleDistributor]."
649
+ ],
325
650
  "writable": true
326
651
  },
327
652
  {
328
653
  "name": "admin",
329
- "docs": ["Admin signer"],
654
+ "docs": [
655
+ "Admin signer"
656
+ ],
330
657
  "writable": true,
331
658
  "signer": true
332
659
  },
333
660
  {
334
661
  "name": "new_admin",
335
- "docs": ["New admin account"],
662
+ "docs": [
663
+ "New admin account"
664
+ ],
336
665
  "writable": true
337
666
  }
338
667
  ],
@@ -340,7 +669,16 @@
340
669
  },
341
670
  {
342
671
  "name": "set_test_oracle_authority",
343
- "discriminator": [26, 66, 233, 99, 38, 118, 181, 247],
672
+ "discriminator": [
673
+ 26,
674
+ 66,
675
+ 233,
676
+ 99,
677
+ 38,
678
+ 118,
679
+ 181,
680
+ 247
681
+ ],
344
682
  "accounts": [
345
683
  {
346
684
  "name": "authority",
@@ -359,23 +697,56 @@
359
697
  },
360
698
  {
361
699
  "name": "update_duration",
362
- "discriminator": [69, 126, 172, 250, 164, 14, 10, 161],
700
+ "discriminator": [
701
+ 69,
702
+ 126,
703
+ 172,
704
+ 250,
705
+ 164,
706
+ 14,
707
+ 10,
708
+ 161
709
+ ],
363
710
  "accounts": [
364
711
  {
365
712
  "name": "authority",
366
- "docs": ["Wallet authorised to call this method"],
713
+ "docs": [
714
+ "Wallet authorised to call this method"
715
+ ],
367
716
  "writable": true,
368
717
  "signer": true
369
718
  },
370
719
  {
371
720
  "name": "aligned_distributor",
372
- "docs": ["The account holding the proxy parameters."],
721
+ "docs": [
722
+ "The account holding the proxy parameters."
723
+ ],
373
724
  "writable": true,
374
725
  "pda": {
375
726
  "seeds": [
376
727
  {
377
728
  "kind": "const",
378
- "value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
729
+ "value": [
730
+ 97,
731
+ 108,
732
+ 105,
733
+ 103,
734
+ 110,
735
+ 101,
736
+ 100,
737
+ 45,
738
+ 100,
739
+ 105,
740
+ 115,
741
+ 116,
742
+ 114,
743
+ 105,
744
+ 98,
745
+ 117,
746
+ 116,
747
+ 111,
748
+ 114
749
+ ]
379
750
  },
380
751
  {
381
752
  "kind": "account",
@@ -386,16 +757,22 @@
386
757
  },
387
758
  {
388
759
  "name": "distributor",
389
- "docs": ["The account holding the vesting parameters."],
760
+ "docs": [
761
+ "The account holding the vesting parameters."
762
+ ],
390
763
  "writable": true
391
764
  },
392
765
  {
393
766
  "name": "price_oracle",
394
- "relations": ["aligned_distributor"]
767
+ "relations": [
768
+ "aligned_distributor"
769
+ ]
395
770
  },
396
771
  {
397
772
  "name": "distributor_program",
398
- "docs": ["MerkleDistributor program"],
773
+ "docs": [
774
+ "MerkleDistributor program"
775
+ ],
399
776
  "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
400
777
  },
401
778
  {
@@ -407,7 +784,16 @@
407
784
  },
408
785
  {
409
786
  "name": "update_test_oracle",
410
- "discriminator": [158, 147, 215, 74, 34, 123, 80, 76],
787
+ "discriminator": [
788
+ 158,
789
+ 147,
790
+ 215,
791
+ 74,
792
+ 34,
793
+ 123,
794
+ 80,
795
+ 76
796
+ ],
411
797
  "accounts": [
412
798
  {
413
799
  "name": "authority",
@@ -434,15 +820,42 @@
434
820
  "accounts": [
435
821
  {
436
822
  "name": "AlignedDistributor",
437
- "discriminator": [128, 76, 80, 203, 248, 175, 3, 43]
823
+ "discriminator": [
824
+ 128,
825
+ 76,
826
+ 80,
827
+ 203,
828
+ 248,
829
+ 175,
830
+ 3,
831
+ 43
832
+ ]
438
833
  },
439
834
  {
440
835
  "name": "MerkleDistributor",
441
- "discriminator": [77, 119, 139, 70, 84, 247, 12, 26]
836
+ "discriminator": [
837
+ 77,
838
+ 119,
839
+ 139,
840
+ 70,
841
+ 84,
842
+ 247,
843
+ 12,
844
+ 26
845
+ ]
442
846
  },
443
847
  {
444
848
  "name": "TestOracle",
445
- "discriminator": [198, 49, 63, 134, 232, 251, 168, 28]
849
+ "discriminator": [
850
+ 198,
851
+ 49,
852
+ 63,
853
+ 134,
854
+ 232,
855
+ 251,
856
+ 168,
857
+ 28
858
+ ]
446
859
  }
447
860
  ],
448
861
  "errors": [
@@ -520,28 +933,38 @@
520
933
  "types": [
521
934
  {
522
935
  "name": "AlignedDistributor",
523
- "docs": ["State for the account which distributes tokens."],
936
+ "docs": [
937
+ "State for the account which distributes tokens."
938
+ ],
524
939
  "type": {
525
940
  "kind": "struct",
526
941
  "fields": [
527
942
  {
528
943
  "name": "bump",
529
- "docs": ["Bump seed."],
944
+ "docs": [
945
+ "Bump seed."
946
+ ],
530
947
  "type": "u8"
531
948
  },
532
949
  {
533
950
  "name": "distributor",
534
- "docs": ["[Mint] of the token to be distributed."],
951
+ "docs": [
952
+ "[Mint] of the token to be distributed."
953
+ ],
535
954
  "type": "pubkey"
536
955
  },
537
956
  {
538
957
  "name": "admin",
539
- "docs": ["Admin wallet"],
958
+ "docs": [
959
+ "Admin wallet"
960
+ ],
540
961
  "type": "pubkey"
541
962
  },
542
963
  {
543
964
  "name": "price_oracle_type",
544
- "docs": ["Type of the Oracle used to derive Token Price"],
965
+ "docs": [
966
+ "Type of the Oracle used to derive Token Price"
967
+ ],
545
968
  "type": {
546
969
  "defined": {
547
970
  "name": "OracleType"
@@ -550,47 +973,65 @@
550
973
  },
551
974
  {
552
975
  "name": "price_oracle",
553
- "docs": ["Address of the Price Oracle"],
976
+ "docs": [
977
+ "Address of the Price Oracle"
978
+ ],
554
979
  "type": "pubkey"
555
980
  },
556
981
  {
557
982
  "name": "update_period",
558
- "docs": ["Period of updates, can be different from unlock period if needed"],
983
+ "docs": [
984
+ "Period of updates, can be different from unlock period if needed"
985
+ ],
559
986
  "type": "u64"
560
987
  },
561
988
  {
562
989
  "name": "min_price",
563
- "docs": ["Min price boundary"],
990
+ "docs": [
991
+ "Min price boundary"
992
+ ],
564
993
  "type": "u64"
565
994
  },
566
995
  {
567
996
  "name": "max_price",
568
- "docs": ["Max price boundary"],
997
+ "docs": [
998
+ "Max price boundary"
999
+ ],
569
1000
  "type": "u64"
570
1001
  },
571
1002
  {
572
1003
  "name": "min_percentage",
573
- "docs": ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
1004
+ "docs": [
1005
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
1006
+ ],
574
1007
  "type": "u64"
575
1008
  },
576
1009
  {
577
1010
  "name": "max_percentage",
578
- "docs": ["Max percentage boundary"],
1011
+ "docs": [
1012
+ "Max percentage boundary"
1013
+ ],
579
1014
  "type": "u64"
580
1015
  },
581
1016
  {
582
1017
  "name": "tick_size",
583
- "docs": ["Ticket size for percentage boundaries"],
1018
+ "docs": [
1019
+ "Ticket size for percentage boundaries"
1020
+ ],
584
1021
  "type": "u64"
585
1022
  },
586
1023
  {
587
1024
  "name": "start_ts",
588
- "docs": ["Copy start ts from the Distributor to be used in the worker"],
1025
+ "docs": [
1026
+ "Copy start ts from the Distributor to be used in the worker"
1027
+ ],
589
1028
  "type": "u64"
590
1029
  },
591
1030
  {
592
1031
  "name": "end_ts",
593
- "docs": ["Copy end ts from the Distributor to be used in the worker"],
1032
+ "docs": [
1033
+ "Copy end ts from the Distributor to be used in the worker"
1034
+ ],
594
1035
  "type": "u64"
595
1036
  },
596
1037
  {
@@ -602,41 +1043,61 @@
602
1043
  },
603
1044
  {
604
1045
  "name": "last_price",
605
- "docs": ["Price used on last amount calculation"],
1046
+ "docs": [
1047
+ "Price used on last amount calculation"
1048
+ ],
606
1049
  "type": "u64"
607
1050
  },
608
1051
  {
609
1052
  "name": "initial_duration",
610
- "docs": ["Initial Airdrop Vesting duration"],
1053
+ "docs": [
1054
+ "Initial Airdrop Vesting duration"
1055
+ ],
611
1056
  "type": "u64"
612
1057
  },
613
1058
  {
614
1059
  "name": "initial_price",
615
- "docs": ["Initial token price at the time of Contract creation"],
1060
+ "docs": [
1061
+ "Initial token price at the time of Contract creation"
1062
+ ],
616
1063
  "type": "u64"
617
1064
  },
618
1065
  {
619
1066
  "name": "distributor_clawed_back",
620
- "docs": ["Whether distributor was clawed backed"],
1067
+ "docs": [
1068
+ "Whether distributor was clawed backed"
1069
+ ],
621
1070
  "type": "bool"
622
1071
  },
623
1072
  {
624
1073
  "name": "mint",
625
- "docs": ["Mint for which the distributor was created"],
1074
+ "docs": [
1075
+ "Mint for which the distributor was created"
1076
+ ],
626
1077
  "type": "pubkey"
627
1078
  },
628
1079
  {
629
1080
  "name": "buffer_2",
630
- "docs": ["Buffer for additional fields"],
1081
+ "docs": [
1082
+ "Buffer for additional fields"
1083
+ ],
631
1084
  "type": {
632
- "array": ["u8", 32]
1085
+ "array": [
1086
+ "u8",
1087
+ 32
1088
+ ]
633
1089
  }
634
1090
  },
635
1091
  {
636
1092
  "name": "buffer_3",
637
- "docs": ["Buffer for additional fields"],
1093
+ "docs": [
1094
+ "Buffer for additional fields"
1095
+ ],
638
1096
  "type": {
639
- "array": ["u8", 32]
1097
+ "array": [
1098
+ "u8",
1099
+ 32
1100
+ ]
640
1101
  }
641
1102
  }
642
1103
  ]
@@ -684,115 +1145,162 @@
684
1145
  },
685
1146
  {
686
1147
  "name": "MerkleDistributor",
687
- "docs": ["State for the account which distributes tokens."],
1148
+ "docs": [
1149
+ "State for the account which distributes tokens."
1150
+ ],
688
1151
  "type": {
689
1152
  "kind": "struct",
690
1153
  "fields": [
691
1154
  {
692
1155
  "name": "bump",
693
- "docs": ["Bump seed."],
1156
+ "docs": [
1157
+ "Bump seed."
1158
+ ],
694
1159
  "type": "u8"
695
1160
  },
696
1161
  {
697
1162
  "name": "version",
698
- "docs": ["Version of the airdrop"],
1163
+ "docs": [
1164
+ "Version of the airdrop"
1165
+ ],
699
1166
  "type": "u64"
700
1167
  },
701
1168
  {
702
1169
  "name": "root",
703
- "docs": ["The 256-bit merkle root."],
1170
+ "docs": [
1171
+ "The 256-bit merkle root."
1172
+ ],
704
1173
  "type": {
705
- "array": ["u8", 32]
1174
+ "array": [
1175
+ "u8",
1176
+ 32
1177
+ ]
706
1178
  }
707
1179
  },
708
1180
  {
709
1181
  "name": "mint",
710
- "docs": ["[Mint] of the token to be distributed."],
1182
+ "docs": [
1183
+ "[Mint] of the token to be distributed."
1184
+ ],
711
1185
  "type": "pubkey"
712
1186
  },
713
1187
  {
714
1188
  "name": "token_vault",
715
- "docs": ["Token Address of the vault"],
1189
+ "docs": [
1190
+ "Token Address of the vault"
1191
+ ],
716
1192
  "type": "pubkey"
717
1193
  },
718
1194
  {
719
1195
  "name": "max_total_claim",
720
- "docs": ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."],
1196
+ "docs": [
1197
+ "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
1198
+ ],
721
1199
  "type": "u64"
722
1200
  },
723
1201
  {
724
1202
  "name": "max_num_nodes",
725
- "docs": ["Maximum number of nodes in [MerkleDistributor]."],
1203
+ "docs": [
1204
+ "Maximum number of nodes in [MerkleDistributor]."
1205
+ ],
726
1206
  "type": "u64"
727
1207
  },
728
1208
  {
729
1209
  "name": "unlock_period",
730
- "docs": ["Time step (period) in seconds per which the unlock occurs"],
1210
+ "docs": [
1211
+ "Time step (period) in seconds per which the unlock occurs"
1212
+ ],
731
1213
  "type": "u64"
732
1214
  },
733
1215
  {
734
1216
  "name": "total_amount_claimed",
735
- "docs": ["Total amount of tokens that have been claimed."],
1217
+ "docs": [
1218
+ "Total amount of tokens that have been claimed."
1219
+ ],
736
1220
  "type": "u64"
737
1221
  },
738
1222
  {
739
1223
  "name": "num_nodes_claimed",
740
- "docs": ["Number of nodes that have been claimed."],
1224
+ "docs": [
1225
+ "Number of nodes that have been claimed."
1226
+ ],
741
1227
  "type": "u64"
742
1228
  },
743
1229
  {
744
1230
  "name": "start_ts",
745
- "docs": ["Lockup time start (Unix Timestamp)"],
1231
+ "docs": [
1232
+ "Lockup time start (Unix Timestamp)"
1233
+ ],
746
1234
  "type": "u64"
747
1235
  },
748
1236
  {
749
1237
  "name": "end_ts",
750
- "docs": ["Lockup time end (Unix Timestamp)"],
1238
+ "docs": [
1239
+ "Lockup time end (Unix Timestamp)"
1240
+ ],
751
1241
  "type": "u64"
752
1242
  },
753
1243
  {
754
1244
  "name": "clawback_start_ts",
755
- "docs": ["Clawback start (Unix Timestamp)"],
1245
+ "docs": [
1246
+ "Clawback start (Unix Timestamp)"
1247
+ ],
756
1248
  "type": "u64"
757
1249
  },
758
1250
  {
759
1251
  "name": "clawback_receiver",
760
- "docs": ["Clawback receiver"],
1252
+ "docs": [
1253
+ "Clawback receiver"
1254
+ ],
761
1255
  "type": "pubkey"
762
1256
  },
763
1257
  {
764
1258
  "name": "admin",
765
- "docs": ["Admin wallet"],
1259
+ "docs": [
1260
+ "Admin wallet"
1261
+ ],
766
1262
  "type": "pubkey"
767
1263
  },
768
1264
  {
769
1265
  "name": "clawed_back",
770
- "docs": ["Whether or not the distributor has been clawed back"],
1266
+ "docs": [
1267
+ "Whether or not the distributor has been clawed back"
1268
+ ],
771
1269
  "type": "bool"
772
1270
  },
773
1271
  {
774
1272
  "name": "claims_closable_by_admin",
775
- "docs": ["Whether claims are closable by the admin or not"],
1273
+ "docs": [
1274
+ "Whether claims are closable by the admin or not"
1275
+ ],
776
1276
  "type": "bool"
777
1277
  },
778
1278
  {
779
1279
  "name": "can_update_duration",
780
- "docs": ["Whether admin can update vesting duration"],
1280
+ "docs": [
1281
+ "Whether admin can update vesting duration"
1282
+ ],
781
1283
  "type": "bool"
782
1284
  },
783
1285
  {
784
1286
  "name": "total_amount_unlocked",
785
- "docs": ["Total amount of funds unlocked (cliff/instant)"],
1287
+ "docs": [
1288
+ "Total amount of funds unlocked (cliff/instant)"
1289
+ ],
786
1290
  "type": "u64"
787
1291
  },
788
1292
  {
789
1293
  "name": "total_amount_locked",
790
- "docs": ["Total amount of funds locked (vested)"],
1294
+ "docs": [
1295
+ "Total amount of funds locked (vested)"
1296
+ ],
791
1297
  "type": "u64"
792
1298
  },
793
1299
  {
794
1300
  "name": "last_duration_update_ts",
795
- "docs": ["Timestamp when update was last called"],
1301
+ "docs": [
1302
+ "Timestamp when update was last called"
1303
+ ],
796
1304
  "type": "u64"
797
1305
  },
798
1306
  {
@@ -804,31 +1312,47 @@
804
1312
  },
805
1313
  {
806
1314
  "name": "clawed_back_ts",
807
- "docs": ["Timestamp when funds were clawed back"],
1315
+ "docs": [
1316
+ "Timestamp when funds were clawed back"
1317
+ ],
808
1318
  "type": "u64"
809
1319
  },
810
1320
  {
811
1321
  "name": "claims_closable_by_claimant",
812
- "docs": ["Whether claims are closable by claimant or not"],
1322
+ "docs": [
1323
+ "Whether claims are closable by claimant or not"
1324
+ ],
813
1325
  "type": "bool"
814
1326
  },
815
1327
  {
816
1328
  "name": "claims_limit",
817
- "docs": ["Limit number of claims"],
1329
+ "docs": [
1330
+ "Limit number of claims"
1331
+ ],
818
1332
  "type": "u16"
819
1333
  },
820
1334
  {
821
1335
  "name": "buffer_2",
822
- "docs": ["Buffer for additional fields"],
1336
+ "docs": [
1337
+ "Buffer for additional fields"
1338
+ ],
823
1339
  "type": {
824
- "array": ["u8", 20]
1340
+ "array": [
1341
+ "u8",
1342
+ 20
1343
+ ]
825
1344
  }
826
1345
  },
827
1346
  {
828
1347
  "name": "buffer_3",
829
- "docs": ["Buffer for additional fields"],
1348
+ "docs": [
1349
+ "Buffer for additional fields"
1350
+ ],
830
1351
  "type": {
831
- "array": ["u8", 32]
1352
+ "array": [
1353
+ "u8",
1354
+ 32
1355
+ ]
832
1356
  }
833
1357
  }
834
1358
  ]
@@ -846,7 +1370,10 @@
846
1370
  {
847
1371
  "name": "root",
848
1372
  "type": {
849
- "array": ["u8", 32]
1373
+ "array": [
1374
+ "u8",
1375
+ 32
1376
+ ]
850
1377
  }
851
1378
  },
852
1379
  {