@streamflow/distributor 8.0.0 → 8.0.1-alpha.p287.54fe41f

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.
@@ -5,68 +5,191 @@
5
5
  * IDL can be found at `target/idl/merkle_distributor.json`.
6
6
  */
7
7
  type MerkleDistributor = {
8
- address: "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
9
- metadata: {
10
- name: "merkleDistributor";
11
- version: "1.4.0";
12
- spec: "0.1.0";
13
- description: "A Solana program for distributing tokens according to a Merkle root.";
14
- repository: "https://github.com/streamflow-finance/distributor";
8
+ "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N";
9
+ "metadata": {
10
+ "name": "merkleDistributor";
11
+ "version": "1.5.0";
12
+ "spec": "0.1.0";
13
+ "description": "A Solana program for distributing tokens according to a Merkle root.";
14
+ "repository": "https://github.com/streamflow-finance/distributor";
15
15
  };
16
- instructions: [
16
+ "instructions": [
17
17
  {
18
- name: "claimLocked";
19
- discriminator: [34, 206, 181, 23, 11, 207, 147, 90];
20
- accounts: [
18
+ "name": "exposeClaim";
19
+ "discriminator": [
20
+ 103,
21
+ 233,
22
+ 83,
23
+ 69,
24
+ 115,
25
+ 199,
26
+ 128,
27
+ 249
28
+ ];
29
+ "accounts": [
21
30
  {
22
- name: "distributor";
23
- docs: ["The [MerkleDistributor]."];
24
- writable: true;
31
+ "name": "distributor";
32
+ "docs": [
33
+ "The [MerkleDistributor]."
34
+ ];
25
35
  },
26
36
  {
27
- name: "claimStatus";
28
- docs: ["Claim Status PDA"];
29
- writable: true;
30
- pda: {
31
- seeds: [
37
+ "name": "claimStatus";
38
+ "docs": [
39
+ "Claim Status PDA"
40
+ ];
41
+ "optional": true;
42
+ "pda": {
43
+ "seeds": [
32
44
  {
33
- kind: "const";
34
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115];
45
+ "kind": "const";
46
+ "value": [
47
+ 67,
48
+ 108,
49
+ 97,
50
+ 105,
51
+ 109,
52
+ 83,
53
+ 116,
54
+ 97,
55
+ 116,
56
+ 117,
57
+ 115
58
+ ];
35
59
  },
36
60
  {
37
- kind: "account";
38
- path: "claimant";
61
+ "kind": "account";
62
+ "path": "claimant";
39
63
  },
40
64
  {
41
- kind: "account";
42
- path: "distributor";
65
+ "kind": "account";
66
+ "path": "distributor";
43
67
  }
44
68
  ];
45
69
  };
46
70
  },
47
71
  {
48
- name: "from";
49
- docs: ["Distributor ATA containing the tokens to distribute."];
50
- writable: true;
51
- pda: {
52
- seeds: [
72
+ "name": "compressedClaimStatus";
73
+ "docs": [
74
+ "Compress Claim Status PDA"
75
+ ];
76
+ "optional": true;
77
+ "pda": {
78
+ "seeds": [
53
79
  {
54
- kind: "account";
55
- path: "distributor";
80
+ "kind": "const";
81
+ "value": [
82
+ 67,
83
+ 108,
84
+ 97,
85
+ 105,
86
+ 109,
87
+ 83,
88
+ 116,
89
+ 97,
90
+ 116,
91
+ 117,
92
+ 115
93
+ ];
56
94
  },
57
95
  {
58
- kind: "account";
59
- path: "tokenProgram";
96
+ "kind": "account";
97
+ "path": "claimant";
60
98
  },
61
99
  {
62
- kind: "account";
63
- path: "distributor.mint";
64
- account: "merkleDistributor";
100
+ "kind": "account";
101
+ "path": "distributor";
65
102
  }
66
103
  ];
67
- program: {
68
- kind: "const";
69
- value: [
104
+ };
105
+ },
106
+ {
107
+ "name": "claimant";
108
+ "docs": [
109
+ "Who is claiming the tokens."
110
+ ];
111
+ "signer": true;
112
+ }
113
+ ];
114
+ "args": [];
115
+ },
116
+ {
117
+ "name": "claimLocked";
118
+ "discriminator": [
119
+ 34,
120
+ 206,
121
+ 181,
122
+ 23,
123
+ 11,
124
+ 207,
125
+ 147,
126
+ 90
127
+ ];
128
+ "accounts": [
129
+ {
130
+ "name": "distributor";
131
+ "docs": [
132
+ "The [MerkleDistributor]."
133
+ ];
134
+ "writable": true;
135
+ },
136
+ {
137
+ "name": "claimStatus";
138
+ "writable": true;
139
+ "pda": {
140
+ "seeds": [
141
+ {
142
+ "kind": "const";
143
+ "value": [
144
+ 67,
145
+ 108,
146
+ 97,
147
+ 105,
148
+ 109,
149
+ 83,
150
+ 116,
151
+ 97,
152
+ 116,
153
+ 117,
154
+ 115
155
+ ];
156
+ },
157
+ {
158
+ "kind": "account";
159
+ "path": "claimant";
160
+ },
161
+ {
162
+ "kind": "account";
163
+ "path": "distributor";
164
+ }
165
+ ];
166
+ };
167
+ },
168
+ {
169
+ "name": "from";
170
+ "docs": [
171
+ "Distributor ATA containing the tokens to distribute."
172
+ ];
173
+ "writable": true;
174
+ "pda": {
175
+ "seeds": [
176
+ {
177
+ "kind": "account";
178
+ "path": "distributor";
179
+ },
180
+ {
181
+ "kind": "account";
182
+ "path": "tokenProgram";
183
+ },
184
+ {
185
+ "kind": "account";
186
+ "path": "distributor.mint";
187
+ "account": "merkleDistributor";
188
+ }
189
+ ];
190
+ "program": {
191
+ "kind": "const";
192
+ "value": [
70
193
  140,
71
194
  151,
72
195
  37,
@@ -104,163 +227,258 @@ type MerkleDistributor = {
104
227
  };
105
228
  },
106
229
  {
107
- name: "to";
108
- docs: [
230
+ "name": "to";
231
+ "docs": [
109
232
  "Account to send the claimed tokens to.",
110
233
  "Claimant must sign the transaction and can only claim on behalf of themself"
111
234
  ];
112
- writable: true;
235
+ "writable": true;
113
236
  },
114
237
  {
115
- name: "claimant";
116
- docs: ["Who is claiming the tokens."];
117
- writable: true;
118
- signer: true;
238
+ "name": "claimant";
239
+ "docs": [
240
+ "Who is claiming the tokens."
241
+ ];
242
+ "writable": true;
243
+ "signer": true;
119
244
  },
120
245
  {
121
- name: "mint";
122
- docs: ["The mint to claim."];
123
- relations: ["distributor"];
246
+ "name": "mint";
247
+ "docs": [
248
+ "The mint to claim."
249
+ ];
250
+ "relations": [
251
+ "distributor"
252
+ ];
124
253
  },
125
254
  {
126
- name: "tokenProgram";
127
- docs: ["SPL [Token] program."];
255
+ "name": "tokenProgram";
256
+ "docs": [
257
+ "SPL [Token] program."
258
+ ];
128
259
  },
129
260
  {
130
- name: "eventAuthority";
131
- pda: {
132
- seeds: [
261
+ "name": "eventAuthority";
262
+ "pda": {
263
+ "seeds": [
133
264
  {
134
- kind: "const";
135
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
265
+ "kind": "const";
266
+ "value": [
267
+ 95,
268
+ 95,
269
+ 101,
270
+ 118,
271
+ 101,
272
+ 110,
273
+ 116,
274
+ 95,
275
+ 97,
276
+ 117,
277
+ 116,
278
+ 104,
279
+ 111,
280
+ 114,
281
+ 105,
282
+ 116,
283
+ 121
284
+ ];
136
285
  }
137
286
  ];
138
287
  };
139
288
  },
140
289
  {
141
- name: "program";
290
+ "name": "program";
142
291
  }
143
292
  ];
144
- args: [];
293
+ "args": [];
145
294
  },
146
295
  {
147
- name: "clawback";
148
- discriminator: [111, 92, 142, 79, 33, 234, 82, 27];
149
- accounts: [
296
+ "name": "clawback";
297
+ "discriminator": [
298
+ 111,
299
+ 92,
300
+ 142,
301
+ 79,
302
+ 33,
303
+ 234,
304
+ 82,
305
+ 27
306
+ ];
307
+ "accounts": [
150
308
  {
151
- name: "distributor";
152
- docs: ["The [MerkleDistributor]."];
153
- writable: true;
309
+ "name": "distributor";
310
+ "docs": [
311
+ "The [MerkleDistributor]."
312
+ ];
313
+ "writable": true;
154
314
  },
155
315
  {
156
- name: "from";
157
- docs: ["Distributor ATA containing the tokens to distribute."];
158
- writable: true;
316
+ "name": "from";
317
+ "docs": [
318
+ "Distributor ATA containing the tokens to distribute."
319
+ ];
320
+ "writable": true;
159
321
  },
160
322
  {
161
- name: "to";
162
- docs: ["The Clawback token account."];
163
- writable: true;
323
+ "name": "to";
324
+ "docs": [
325
+ "The Clawback token account."
326
+ ];
327
+ "writable": true;
164
328
  },
165
329
  {
166
- name: "admin";
167
- docs: ["Only Admin can trigger the clawback of funds"];
168
- writable: true;
169
- signer: true;
330
+ "name": "admin";
331
+ "docs": [
332
+ "Only Admin can trigger the clawback of funds"
333
+ ];
334
+ "writable": true;
335
+ "signer": true;
170
336
  },
171
337
  {
172
- name: "mint";
338
+ "name": "mint";
173
339
  },
174
340
  {
175
- name: "systemProgram";
176
- docs: ["The [System] program."];
177
- address: "11111111111111111111111111111111";
341
+ "name": "systemProgram";
342
+ "docs": [
343
+ "The [System] program."
344
+ ];
345
+ "address": "11111111111111111111111111111111";
178
346
  },
179
347
  {
180
- name: "tokenProgram";
181
- docs: ["SPL [Token] program."];
348
+ "name": "tokenProgram";
349
+ "docs": [
350
+ "SPL [Token] program."
351
+ ];
182
352
  }
183
353
  ];
184
- args: [];
354
+ "args": [];
185
355
  },
186
356
  {
187
- name: "closeClaim";
188
- discriminator: [42, 177, 165, 35, 213, 179, 211, 19];
189
- accounts: [
357
+ "name": "closeClaim";
358
+ "discriminator": [
359
+ 42,
360
+ 177,
361
+ 165,
362
+ 35,
363
+ 213,
364
+ 179,
365
+ 211,
366
+ 19
367
+ ];
368
+ "accounts": [
190
369
  {
191
- name: "distributor";
192
- docs: ["The [MerkleDistributor]."];
193
- writable: true;
370
+ "name": "distributor";
371
+ "docs": [
372
+ "The [MerkleDistributor]."
373
+ ];
374
+ "writable": true;
194
375
  },
195
376
  {
196
- name: "adminOrClaimant";
197
- docs: ["Admin signer"];
198
- writable: true;
199
- signer: true;
377
+ "name": "adminOrClaimant";
378
+ "docs": [
379
+ "Admin signer"
380
+ ];
381
+ "writable": true;
382
+ "signer": true;
200
383
  },
201
384
  {
202
- name: "claimant";
385
+ "name": "claimant";
386
+ "writable": true;
203
387
  },
204
388
  {
205
- name: "claimStatus";
206
- docs: ["Claim Status PDA"];
207
- writable: true;
208
- pda: {
209
- seeds: [
389
+ "name": "claimStatus";
390
+ "writable": true;
391
+ "pda": {
392
+ "seeds": [
210
393
  {
211
- kind: "const";
212
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115];
394
+ "kind": "const";
395
+ "value": [
396
+ 67,
397
+ 108,
398
+ 97,
399
+ 105,
400
+ 109,
401
+ 83,
402
+ 116,
403
+ 97,
404
+ 116,
405
+ 117,
406
+ 115
407
+ ];
213
408
  },
214
409
  {
215
- kind: "account";
216
- path: "claimant";
410
+ "kind": "account";
411
+ "path": "claimant";
217
412
  },
218
413
  {
219
- kind: "account";
220
- path: "distributor";
414
+ "kind": "account";
415
+ "path": "distributor";
221
416
  }
222
417
  ];
223
418
  };
224
419
  },
225
420
  {
226
- name: "systemProgram";
227
- docs: ["The [System] program."];
228
- address: "11111111111111111111111111111111";
421
+ "name": "systemProgram";
422
+ "docs": [
423
+ "The [System] program."
424
+ ];
425
+ "address": "11111111111111111111111111111111";
229
426
  },
230
427
  {
231
- name: "eventAuthority";
232
- pda: {
233
- seeds: [
428
+ "name": "eventAuthority";
429
+ "pda": {
430
+ "seeds": [
234
431
  {
235
- kind: "const";
236
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
432
+ "kind": "const";
433
+ "value": [
434
+ 95,
435
+ 95,
436
+ 101,
437
+ 118,
438
+ 101,
439
+ 110,
440
+ 116,
441
+ 95,
442
+ 97,
443
+ 117,
444
+ 116,
445
+ 104,
446
+ 111,
447
+ 114,
448
+ 105,
449
+ 116,
450
+ 121
451
+ ];
237
452
  }
238
453
  ];
239
454
  };
240
455
  },
241
456
  {
242
- name: "program";
457
+ "name": "program";
243
458
  }
244
459
  ];
245
- args: [
460
+ "args": [
246
461
  {
247
- name: "amountUnlocked";
248
- type: {
249
- option: "u64";
462
+ "name": "amountUnlocked";
463
+ "type": {
464
+ "option": "u64";
250
465
  };
251
466
  },
252
467
  {
253
- name: "amountLocked";
254
- type: {
255
- option: "u64";
468
+ "name": "amountLocked";
469
+ "type": {
470
+ "option": "u64";
256
471
  };
257
472
  },
258
473
  {
259
- name: "proof";
260
- type: {
261
- option: {
262
- vec: {
263
- array: ["u8", 32];
474
+ "name": "proof";
475
+ "type": {
476
+ "option": {
477
+ "vec": {
478
+ "array": [
479
+ "u8",
480
+ 32
481
+ ];
264
482
  };
265
483
  };
266
484
  };
@@ -268,58 +486,155 @@ type MerkleDistributor = {
268
486
  ];
269
487
  },
270
488
  {
271
- name: "newClaim";
272
- discriminator: [78, 177, 98, 123, 210, 21, 187, 83];
273
- accounts: [
489
+ "name": "compressClaim";
490
+ "discriminator": [
491
+ 219,
492
+ 45,
493
+ 247,
494
+ 134,
495
+ 71,
496
+ 119,
497
+ 125,
498
+ 89
499
+ ];
500
+ "accounts": [
274
501
  {
275
- name: "distributor";
276
- docs: ["The [MerkleDistributor]."];
277
- writable: true;
502
+ "name": "distributor";
503
+ "docs": [
504
+ "The [MerkleDistributor]."
505
+ ];
506
+ "writable": true;
278
507
  },
279
508
  {
280
- name: "claimStatus";
281
- docs: ["Claim status PDA"];
282
- writable: true;
283
- pda: {
284
- seeds: [
509
+ "name": "claimStatus";
510
+ "writable": true;
511
+ "pda": {
512
+ "seeds": [
285
513
  {
286
- kind: "const";
287
- value: [67, 108, 97, 105, 109, 83, 116, 97, 116, 117, 115];
514
+ "kind": "const";
515
+ "value": [
516
+ 67,
517
+ 108,
518
+ 97,
519
+ 105,
520
+ 109,
521
+ 83,
522
+ 116,
523
+ 97,
524
+ 116,
525
+ 117,
526
+ 115
527
+ ];
288
528
  },
289
529
  {
290
- kind: "account";
291
- path: "claimant";
530
+ "kind": "account";
531
+ "path": "claimant";
292
532
  },
293
533
  {
294
- kind: "account";
295
- path: "distributor";
534
+ "kind": "account";
535
+ "path": "distributor";
296
536
  }
297
537
  ];
298
538
  };
299
539
  },
300
540
  {
301
- name: "from";
302
- docs: ["Distributor ATA containing the tokens to distribute."];
303
- writable: true;
304
- pda: {
305
- seeds: [
541
+ "name": "signer";
542
+ "docs": [
543
+ "Signer account"
544
+ ];
545
+ "writable": true;
546
+ "signer": true;
547
+ },
548
+ {
549
+ "name": "claimant";
550
+ },
551
+ {
552
+ "name": "systemProgram";
553
+ "docs": [
554
+ "The [System] program."
555
+ ];
556
+ "address": "11111111111111111111111111111111";
557
+ }
558
+ ];
559
+ "args": [];
560
+ },
561
+ {
562
+ "name": "newClaim";
563
+ "discriminator": [
564
+ 78,
565
+ 177,
566
+ 98,
567
+ 123,
568
+ 210,
569
+ 21,
570
+ 187,
571
+ 83
572
+ ];
573
+ "accounts": [
574
+ {
575
+ "name": "distributor";
576
+ "docs": [
577
+ "The [MerkleDistributor]."
578
+ ];
579
+ "writable": true;
580
+ },
581
+ {
582
+ "name": "claimStatus";
583
+ "writable": true;
584
+ "pda": {
585
+ "seeds": [
306
586
  {
307
- kind: "account";
308
- path: "distributor";
587
+ "kind": "const";
588
+ "value": [
589
+ 67,
590
+ 108,
591
+ 97,
592
+ 105,
593
+ 109,
594
+ 83,
595
+ 116,
596
+ 97,
597
+ 116,
598
+ 117,
599
+ 115
600
+ ];
309
601
  },
310
602
  {
311
- kind: "account";
312
- path: "tokenProgram";
603
+ "kind": "account";
604
+ "path": "claimant";
313
605
  },
314
606
  {
315
- kind: "account";
316
- path: "distributor.mint";
317
- account: "merkleDistributor";
607
+ "kind": "account";
608
+ "path": "distributor";
318
609
  }
319
610
  ];
320
- program: {
321
- kind: "const";
322
- value: [
611
+ };
612
+ },
613
+ {
614
+ "name": "from";
615
+ "docs": [
616
+ "Distributor ATA containing the tokens to distribute."
617
+ ];
618
+ "writable": true;
619
+ "pda": {
620
+ "seeds": [
621
+ {
622
+ "kind": "account";
623
+ "path": "distributor";
624
+ },
625
+ {
626
+ "kind": "account";
627
+ "path": "tokenProgram";
628
+ },
629
+ {
630
+ "kind": "account";
631
+ "path": "distributor.mint";
632
+ "account": "merkleDistributor";
633
+ }
634
+ ];
635
+ "program": {
636
+ "kind": "const";
637
+ "value": [
323
638
  140,
324
639
  151,
325
640
  37,
@@ -357,67 +672,100 @@ type MerkleDistributor = {
357
672
  };
358
673
  },
359
674
  {
360
- name: "to";
361
- docs: ["Account to send the claimed tokens to."];
362
- writable: true;
675
+ "name": "to";
676
+ "docs": [
677
+ "Account to send the claimed tokens to."
678
+ ];
679
+ "writable": true;
363
680
  },
364
681
  {
365
- name: "claimant";
366
- docs: ["Who is claiming the tokens."];
367
- writable: true;
368
- signer: true;
682
+ "name": "claimant";
683
+ "docs": [
684
+ "Who is claiming the tokens."
685
+ ];
686
+ "writable": true;
687
+ "signer": true;
369
688
  },
370
689
  {
371
- name: "mint";
372
- docs: ["The mint to claim."];
373
- relations: ["distributor"];
690
+ "name": "mint";
691
+ "docs": [
692
+ "The mint to claim."
693
+ ];
694
+ "relations": [
695
+ "distributor"
696
+ ];
374
697
  },
375
698
  {
376
- name: "tokenProgram";
377
- docs: ["SPL [Token] program."];
699
+ "name": "tokenProgram";
700
+ "docs": [
701
+ "SPL [Token] program."
702
+ ];
378
703
  },
379
704
  {
380
- name: "systemProgram";
381
- docs: ["The [System] program."];
382
- address: "11111111111111111111111111111111";
705
+ "name": "systemProgram";
706
+ "docs": [
707
+ "The [System] program."
708
+ ];
709
+ "address": "11111111111111111111111111111111";
383
710
  },
384
711
  {
385
- name: "eventAuthority";
386
- pda: {
387
- seeds: [
712
+ "name": "eventAuthority";
713
+ "pda": {
714
+ "seeds": [
388
715
  {
389
- kind: "const";
390
- value: [95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121];
716
+ "kind": "const";
717
+ "value": [
718
+ 95,
719
+ 95,
720
+ 101,
721
+ 118,
722
+ 101,
723
+ 110,
724
+ 116,
725
+ 95,
726
+ 97,
727
+ 117,
728
+ 116,
729
+ 104,
730
+ 111,
731
+ 114,
732
+ 105,
733
+ 116,
734
+ 121
735
+ ];
391
736
  }
392
737
  ];
393
738
  };
394
739
  },
395
740
  {
396
- name: "program";
741
+ "name": "program";
397
742
  }
398
743
  ];
399
- args: [
744
+ "args": [
400
745
  {
401
- name: "amountUnlocked";
402
- type: "u64";
746
+ "name": "amountUnlocked";
747
+ "type": "u64";
403
748
  },
404
749
  {
405
- name: "amountLocked";
406
- type: "u64";
750
+ "name": "amountLocked";
751
+ "type": "u64";
407
752
  },
408
753
  {
409
- name: "proof";
410
- type: {
411
- vec: {
412
- array: ["u8", 32];
754
+ "name": "proof";
755
+ "type": {
756
+ "vec": {
757
+ "array": [
758
+ "u8",
759
+ 32
760
+ ];
413
761
  };
414
762
  };
415
763
  }
416
764
  ];
417
765
  },
418
766
  {
419
- name: "newDistributor";
420
- docs: [
767
+ "name": "newDistributor";
768
+ "docs": [
421
769
  "READ THE FOLLOWING:",
422
770
  "",
423
771
  "This instruction is susceptible to frontrunning that could result in loss of funds if not handled properly.",
@@ -437,60 +785,95 @@ type MerkleDistributor = {
437
785
  "assert the parameters are what you expect, most importantly the clawback_receiver and admin.",
438
786
  "- If your transaction fails, double check the value on-chain matches what you expect."
439
787
  ];
440
- discriminator: [32, 139, 112, 171, 0, 2, 225, 155];
441
- accounts: [
442
- {
443
- name: "distributor";
444
- docs: ["[MerkleDistributor]."];
445
- writable: true;
446
- pda: {
447
- seeds: [
788
+ "discriminator": [
789
+ 32,
790
+ 139,
791
+ 112,
792
+ 171,
793
+ 0,
794
+ 2,
795
+ 225,
796
+ 155
797
+ ];
798
+ "accounts": [
799
+ {
800
+ "name": "distributor";
801
+ "docs": [
802
+ "[MerkleDistributor]."
803
+ ];
804
+ "writable": true;
805
+ "pda": {
806
+ "seeds": [
448
807
  {
449
- kind: "const";
450
- value: [77, 101, 114, 107, 108, 101, 68, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114];
808
+ "kind": "const";
809
+ "value": [
810
+ 77,
811
+ 101,
812
+ 114,
813
+ 107,
814
+ 108,
815
+ 101,
816
+ 68,
817
+ 105,
818
+ 115,
819
+ 116,
820
+ 114,
821
+ 105,
822
+ 98,
823
+ 117,
824
+ 116,
825
+ 111,
826
+ 114
827
+ ];
451
828
  },
452
829
  {
453
- kind: "account";
454
- path: "mint";
830
+ "kind": "account";
831
+ "path": "mint";
455
832
  },
456
833
  {
457
- kind: "arg";
458
- path: "version";
834
+ "kind": "arg";
835
+ "path": "version";
459
836
  }
460
837
  ];
461
838
  };
462
839
  },
463
840
  {
464
- name: "clawbackReceiver";
465
- docs: ["Clawback receiver token account"];
466
- writable: true;
841
+ "name": "clawbackReceiver";
842
+ "docs": [
843
+ "Clawback receiver token account"
844
+ ];
845
+ "writable": true;
467
846
  },
468
847
  {
469
- name: "mint";
470
- docs: ["The mint to distribute."];
848
+ "name": "mint";
849
+ "docs": [
850
+ "The mint to distribute."
851
+ ];
471
852
  },
472
853
  {
473
- name: "tokenVault";
474
- docs: ["Token vault"];
475
- writable: true;
476
- pda: {
477
- seeds: [
854
+ "name": "tokenVault";
855
+ "docs": [
856
+ "Token vault"
857
+ ];
858
+ "writable": true;
859
+ "pda": {
860
+ "seeds": [
478
861
  {
479
- kind: "account";
480
- path: "distributor";
862
+ "kind": "account";
863
+ "path": "distributor";
481
864
  },
482
865
  {
483
- kind: "account";
484
- path: "tokenProgram";
866
+ "kind": "account";
867
+ "path": "tokenProgram";
485
868
  },
486
869
  {
487
- kind: "account";
488
- path: "mint";
870
+ "kind": "account";
871
+ "path": "mint";
489
872
  }
490
873
  ];
491
- program: {
492
- kind: "const";
493
- value: [
874
+ "program": {
875
+ "kind": "const";
876
+ "value": [
494
877
  140,
495
878
  151,
496
879
  37,
@@ -528,596 +911,925 @@ type MerkleDistributor = {
528
911
  };
529
912
  },
530
913
  {
531
- name: "admin";
532
- docs: [
914
+ "name": "admin";
915
+ "docs": [
533
916
  "Admin wallet, responsible for creating the distributor and paying for the transaction.",
534
917
  "Also has the authority to set the clawback receiver and change itself."
535
918
  ];
536
- writable: true;
537
- signer: true;
919
+ "writable": true;
920
+ "signer": true;
538
921
  },
539
922
  {
540
- name: "systemProgram";
541
- docs: ["The [System] program."];
542
- address: "11111111111111111111111111111111";
923
+ "name": "systemProgram";
924
+ "docs": [
925
+ "The [System] program."
926
+ ];
927
+ "address": "11111111111111111111111111111111";
543
928
  },
544
929
  {
545
- name: "associatedTokenProgram";
546
- docs: ["The [Associated Token] program."];
547
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
930
+ "name": "associatedTokenProgram";
931
+ "docs": [
932
+ "The [Associated Token] program."
933
+ ];
934
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
548
935
  },
549
936
  {
550
- name: "tokenProgram";
551
- docs: ["The [Token] program."];
937
+ "name": "tokenProgram";
938
+ "docs": [
939
+ "The [Token] program."
940
+ ];
552
941
  }
553
942
  ];
554
- args: [
943
+ "args": [
555
944
  {
556
- name: "version";
557
- type: "u64";
945
+ "name": "version";
946
+ "type": "u64";
558
947
  },
559
948
  {
560
- name: "root";
561
- type: {
562
- array: ["u8", 32];
949
+ "name": "root";
950
+ "type": {
951
+ "array": [
952
+ "u8",
953
+ 32
954
+ ];
563
955
  };
564
956
  },
565
957
  {
566
- name: "maxTotalClaim";
567
- type: "u64";
958
+ "name": "maxTotalClaim";
959
+ "type": "u64";
568
960
  },
569
961
  {
570
- name: "maxNumNodes";
571
- type: "u64";
962
+ "name": "maxNumNodes";
963
+ "type": "u64";
572
964
  },
573
965
  {
574
- name: "unlockPeriod";
575
- type: "u64";
966
+ "name": "unlockPeriod";
967
+ "type": "u64";
576
968
  },
577
969
  {
578
- name: "startVestingTs";
579
- type: "u64";
970
+ "name": "startVestingTs";
971
+ "type": "u64";
580
972
  },
581
973
  {
582
- name: "endVestingTs";
583
- type: "u64";
974
+ "name": "endVestingTs";
975
+ "type": "u64";
584
976
  },
585
977
  {
586
- name: "clawbackStartTs";
587
- type: "u64";
978
+ "name": "clawbackStartTs";
979
+ "type": "u64";
588
980
  },
589
981
  {
590
- name: "claimsClosableByAdmin";
591
- type: "bool";
982
+ "name": "claimsClosableByAdmin";
983
+ "type": "bool";
592
984
  },
593
985
  {
594
- name: "canUpdateDuration";
595
- type: {
596
- option: "bool";
986
+ "name": "canUpdateDuration";
987
+ "type": {
988
+ "option": "bool";
597
989
  };
598
990
  },
599
991
  {
600
- name: "totalAmountUnlocked";
601
- type: {
602
- option: "u64";
992
+ "name": "totalAmountUnlocked";
993
+ "type": {
994
+ "option": "u64";
603
995
  };
604
996
  },
605
997
  {
606
- name: "totalAmountLocked";
607
- type: {
608
- option: "u64";
998
+ "name": "totalAmountLocked";
999
+ "type": {
1000
+ "option": "u64";
609
1001
  };
610
1002
  },
611
1003
  {
612
- name: "claimsClosableByClaimant";
613
- type: {
614
- option: "bool";
1004
+ "name": "claimsClosableByClaimant";
1005
+ "type": {
1006
+ "option": "bool";
615
1007
  };
616
1008
  },
617
1009
  {
618
- name: "claimsLimit";
619
- type: {
620
- option: "u16";
1010
+ "name": "claimsLimit";
1011
+ "type": {
1012
+ "option": "u16";
1013
+ };
1014
+ }
1015
+ ];
1016
+ },
1017
+ {
1018
+ "name": "refundClaim";
1019
+ "discriminator": [
1020
+ 157,
1021
+ 23,
1022
+ 164,
1023
+ 146,
1024
+ 176,
1025
+ 53,
1026
+ 147,
1027
+ 143
1028
+ ];
1029
+ "accounts": [
1030
+ {
1031
+ "name": "distributor";
1032
+ "docs": [
1033
+ "The [MerkleDistributor]."
1034
+ ];
1035
+ "writable": true;
1036
+ },
1037
+ {
1038
+ "name": "claimStatus";
1039
+ "writable": true;
1040
+ "pda": {
1041
+ "seeds": [
1042
+ {
1043
+ "kind": "const";
1044
+ "value": [
1045
+ 67,
1046
+ 108,
1047
+ 97,
1048
+ 105,
1049
+ 109,
1050
+ 83,
1051
+ 116,
1052
+ 97,
1053
+ 116,
1054
+ 117,
1055
+ 115
1056
+ ];
1057
+ },
1058
+ {
1059
+ "kind": "account";
1060
+ "path": "claimant";
1061
+ },
1062
+ {
1063
+ "kind": "account";
1064
+ "path": "distributor";
1065
+ }
1066
+ ];
621
1067
  };
1068
+ },
1069
+ {
1070
+ "name": "signer";
1071
+ "docs": [
1072
+ "Signer account"
1073
+ ];
1074
+ "writable": true;
1075
+ "signer": true;
1076
+ },
1077
+ {
1078
+ "name": "claimant";
1079
+ },
1080
+ {
1081
+ "name": "streamflowTreasury";
1082
+ "writable": true;
1083
+ "address": "5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw";
1084
+ },
1085
+ {
1086
+ "name": "systemProgram";
1087
+ "docs": [
1088
+ "The [System] program."
1089
+ ];
1090
+ "address": "11111111111111111111111111111111";
622
1091
  }
623
1092
  ];
1093
+ "args": [];
624
1094
  },
625
1095
  {
626
- name: "setAdmin";
627
- discriminator: [251, 163, 0, 52, 91, 194, 187, 92];
628
- accounts: [
1096
+ "name": "setAdmin";
1097
+ "discriminator": [
1098
+ 251,
1099
+ 163,
1100
+ 0,
1101
+ 52,
1102
+ 91,
1103
+ 194,
1104
+ 187,
1105
+ 92
1106
+ ];
1107
+ "accounts": [
629
1108
  {
630
- name: "distributor";
631
- docs: ["The [MerkleDistributor]."];
632
- writable: true;
1109
+ "name": "distributor";
1110
+ "docs": [
1111
+ "The [MerkleDistributor]."
1112
+ ];
1113
+ "writable": true;
633
1114
  },
634
1115
  {
635
- name: "admin";
636
- docs: ["Admin signer"];
637
- writable: true;
638
- signer: true;
1116
+ "name": "admin";
1117
+ "docs": [
1118
+ "Admin signer"
1119
+ ];
1120
+ "writable": true;
1121
+ "signer": true;
639
1122
  },
640
1123
  {
641
- name: "newAdmin";
642
- docs: ["New admin account"];
643
- writable: true;
1124
+ "name": "newAdmin";
1125
+ "docs": [
1126
+ "New admin account"
1127
+ ];
1128
+ "writable": true;
644
1129
  }
645
1130
  ];
646
- args: [];
1131
+ "args": [];
647
1132
  },
648
1133
  {
649
- name: "setClawbackReceiver";
650
- discriminator: [153, 217, 34, 20, 19, 29, 229, 75];
651
- accounts: [
1134
+ "name": "setClawbackReceiver";
1135
+ "discriminator": [
1136
+ 153,
1137
+ 217,
1138
+ 34,
1139
+ 20,
1140
+ 19,
1141
+ 29,
1142
+ 229,
1143
+ 75
1144
+ ];
1145
+ "accounts": [
652
1146
  {
653
- name: "distributor";
654
- docs: ["The [MerkleDistributor]."];
655
- writable: true;
1147
+ "name": "distributor";
1148
+ "docs": [
1149
+ "The [MerkleDistributor]."
1150
+ ];
1151
+ "writable": true;
656
1152
  },
657
1153
  {
658
- name: "newClawbackAccount";
659
- docs: ["New clawback account"];
1154
+ "name": "newClawbackAccount";
1155
+ "docs": [
1156
+ "New clawback account"
1157
+ ];
660
1158
  },
661
1159
  {
662
- name: "admin";
663
- docs: ["Admin signer"];
664
- writable: true;
665
- signer: true;
1160
+ "name": "admin";
1161
+ "docs": [
1162
+ "Admin signer"
1163
+ ];
1164
+ "writable": true;
1165
+ "signer": true;
666
1166
  }
667
1167
  ];
668
- args: [];
1168
+ "args": [];
669
1169
  },
670
1170
  {
671
- name: "update";
672
- discriminator: [219, 200, 88, 176, 158, 63, 253, 127];
673
- accounts: [
1171
+ "name": "update";
1172
+ "discriminator": [
1173
+ 219,
1174
+ 200,
1175
+ 88,
1176
+ 176,
1177
+ 158,
1178
+ 63,
1179
+ 253,
1180
+ 127
1181
+ ];
1182
+ "accounts": [
674
1183
  {
675
- name: "distributor";
676
- docs: ["The [MerkleDistributor]."];
677
- writable: true;
1184
+ "name": "distributor";
1185
+ "docs": [
1186
+ "The [MerkleDistributor]."
1187
+ ];
1188
+ "writable": true;
678
1189
  },
679
1190
  {
680
- name: "admin";
681
- docs: ["Only Admin can trigger the clawback of funds"];
682
- writable: true;
683
- signer: true;
1191
+ "name": "admin";
1192
+ "docs": [
1193
+ "Only Admin can trigger the clawback of funds"
1194
+ ];
1195
+ "writable": true;
1196
+ "signer": true;
684
1197
  },
685
1198
  {
686
- name: "systemProgram";
687
- docs: ["The [System] program."];
688
- address: "11111111111111111111111111111111";
1199
+ "name": "systemProgram";
1200
+ "docs": [
1201
+ "The [System] program."
1202
+ ];
1203
+ "address": "11111111111111111111111111111111";
689
1204
  }
690
1205
  ];
691
- args: [
1206
+ "args": [
692
1207
  {
693
- name: "endTs";
694
- type: {
695
- option: "u64";
1208
+ "name": "endTs";
1209
+ "type": {
1210
+ "option": "u64";
696
1211
  };
697
1212
  }
698
1213
  ];
699
1214
  }
700
1215
  ];
701
- accounts: [
1216
+ "accounts": [
702
1217
  {
703
- name: "claimStatus";
704
- discriminator: [22, 183, 249, 157, 247, 95, 150, 96];
1218
+ "name": "claimStatus";
1219
+ "discriminator": [
1220
+ 22,
1221
+ 183,
1222
+ 249,
1223
+ 157,
1224
+ 247,
1225
+ 95,
1226
+ 150,
1227
+ 96
1228
+ ];
705
1229
  },
706
1230
  {
707
- name: "merkleDistributor";
708
- discriminator: [77, 119, 139, 70, 84, 247, 12, 26];
1231
+ "name": "compressedClaimStatus";
1232
+ "discriminator": [
1233
+ 53,
1234
+ 68,
1235
+ 161,
1236
+ 131,
1237
+ 212,
1238
+ 106,
1239
+ 98,
1240
+ 48
1241
+ ];
1242
+ },
1243
+ {
1244
+ "name": "merkleDistributor";
1245
+ "discriminator": [
1246
+ 77,
1247
+ 119,
1248
+ 139,
1249
+ 70,
1250
+ 84,
1251
+ 247,
1252
+ 12,
1253
+ 26
1254
+ ];
709
1255
  }
710
1256
  ];
711
- events: [
1257
+ "events": [
712
1258
  {
713
- name: "claimClosedEvent";
714
- discriminator: [139, 166, 215, 195, 184, 233, 26, 217];
1259
+ "name": "claimClosedEvent";
1260
+ "discriminator": [
1261
+ 139,
1262
+ 166,
1263
+ 215,
1264
+ 195,
1265
+ 184,
1266
+ 233,
1267
+ 26,
1268
+ 217
1269
+ ];
715
1270
  },
716
1271
  {
717
- name: "claimedEvent";
718
- discriminator: [144, 172, 209, 86, 144, 87, 84, 115];
1272
+ "name": "claimedEvent";
1273
+ "discriminator": [
1274
+ 144,
1275
+ 172,
1276
+ 209,
1277
+ 86,
1278
+ 144,
1279
+ 87,
1280
+ 84,
1281
+ 115
1282
+ ];
719
1283
  },
720
1284
  {
721
- name: "newClaimEvent";
722
- discriminator: [244, 3, 231, 151, 60, 101, 55, 55];
1285
+ "name": "newClaimEvent";
1286
+ "discriminator": [
1287
+ 244,
1288
+ 3,
1289
+ 231,
1290
+ 151,
1291
+ 60,
1292
+ 101,
1293
+ 55,
1294
+ 55
1295
+ ];
723
1296
  }
724
1297
  ];
725
- errors: [
1298
+ "errors": [
726
1299
  {
727
- code: 6000;
728
- name: "insufficientUnlockedTokens";
729
- msg: "Insufficient unlocked tokens";
1300
+ "code": 6000;
1301
+ "name": "insufficientUnlockedTokens";
1302
+ "msg": "Insufficient unlocked tokens";
730
1303
  },
731
1304
  {
732
- code: 6001;
733
- name: "invalidProof";
734
- msg: "Invalid Merkle proof";
1305
+ "code": 6001;
1306
+ "name": "invalidProof";
1307
+ "msg": "Invalid Merkle proof";
735
1308
  },
736
1309
  {
737
- code: 6002;
738
- name: "exceededMaxClaim";
739
- msg: "Exceeded maximum claim amount";
1310
+ "code": 6002;
1311
+ "name": "exceededMaxClaim";
1312
+ "msg": "Exceeded maximum claim amount";
740
1313
  },
741
1314
  {
742
- code: 6003;
743
- name: "maxNodesExceeded";
744
- msg: "Exceeded maximum node count";
1315
+ "code": 6003;
1316
+ "name": "maxNodesExceeded";
1317
+ "msg": "Exceeded maximum node count";
745
1318
  },
746
1319
  {
747
- code: 6004;
748
- name: "unauthorized";
749
- msg: "Account is not authorized to execute this instruction";
1320
+ "code": 6004;
1321
+ "name": "unauthorized";
1322
+ "msg": "Account is not authorized to execute this instruction";
750
1323
  },
751
1324
  {
752
- code: 6005;
753
- name: "ownerMismatch";
754
- msg: "Token account owner did not match intended owner";
1325
+ "code": 6005;
1326
+ "name": "ownerMismatch";
1327
+ "msg": "Token account owner did not match intended owner";
755
1328
  },
756
1329
  {
757
- code: 6006;
758
- name: "clawbackBeforeStart";
759
- msg: "Attempted clawback before start";
1330
+ "code": 6006;
1331
+ "name": "clawbackBeforeStart";
1332
+ "msg": "Attempted clawback before start";
760
1333
  },
761
1334
  {
762
- code: 6007;
763
- name: "clawbackAlreadyClaimed";
764
- msg: "Clawback already claimed";
1335
+ "code": 6007;
1336
+ "name": "clawbackAlreadyClaimed";
1337
+ "msg": "Clawback already claimed";
765
1338
  },
766
1339
  {
767
- code: 6008;
768
- name: "sameClawbackReceiver";
769
- msg: "New and old Clawback receivers are identical";
1340
+ "code": 6008;
1341
+ "name": "sameClawbackReceiver";
1342
+ "msg": "New and old Clawback receivers are identical";
770
1343
  },
771
1344
  {
772
- code: 6009;
773
- name: "clawbackReceiverIsTokenVault";
774
- msg: "Clawback receiver can not be the Token Vault";
1345
+ "code": 6009;
1346
+ "name": "clawbackReceiverIsTokenVault";
1347
+ "msg": "Clawback receiver can not be the Token Vault";
775
1348
  },
776
1349
  {
777
- code: 6010;
778
- name: "sameAdmin";
779
- msg: "New and old admin are identical";
1350
+ "code": 6010;
1351
+ "name": "sameAdmin";
1352
+ "msg": "New and old admin are identical";
780
1353
  },
781
1354
  {
782
- code: 6011;
783
- name: "claimExpired";
784
- msg: "Claim window expired";
1355
+ "code": 6011;
1356
+ "name": "claimExpired";
1357
+ "msg": "Claim window expired";
785
1358
  },
786
1359
  {
787
- code: 6012;
788
- name: "arithmeticError";
789
- msg: "Arithmetic Error (overflow/underflow)";
1360
+ "code": 6012;
1361
+ "name": "arithmeticError";
1362
+ "msg": "Arithmetic Error (overflow/underflow)";
790
1363
  },
791
1364
  {
792
- code: 6013;
793
- name: "startTimestampAfterEnd";
794
- msg: "Start Timestamp cannot be after end Timestamp";
1365
+ "code": 6013;
1366
+ "name": "startTimestampAfterEnd";
1367
+ "msg": "Start Timestamp cannot be after end Timestamp";
795
1368
  },
796
1369
  {
797
- code: 6014;
798
- name: "timestampsNotInFuture";
799
- msg: "Timestamps cannot be in the past";
1370
+ "code": 6014;
1371
+ "name": "timestampsNotInFuture";
1372
+ "msg": "Timestamps cannot be in the past";
800
1373
  },
801
1374
  {
802
- code: 6015;
803
- name: "invalidMint";
804
- msg: "Invalid Mint";
1375
+ "code": 6015;
1376
+ "name": "invalidMint";
1377
+ "msg": "Invalid Mint";
805
1378
  },
806
1379
  {
807
- code: 6016;
808
- name: "claimIsClosed";
809
- msg: "Claim is closed";
1380
+ "code": 6016;
1381
+ "name": "claimIsClosed";
1382
+ "msg": "Claim is closed";
810
1383
  },
811
1384
  {
812
- code: 6017;
813
- name: "claimsAreNotClosable";
814
- msg: "Claims are not closable";
1385
+ "code": 6017;
1386
+ "name": "claimsAreNotClosable";
1387
+ "msg": "Claims are not closable";
815
1388
  },
816
1389
  {
817
- code: 6018;
818
- name: "invalidUnlockPeriod";
819
- msg: "Invalid unlock period";
1390
+ "code": 6018;
1391
+ "name": "invalidUnlockPeriod";
1392
+ "msg": "Invalid unlock period";
820
1393
  },
821
1394
  {
822
- code: 6019;
823
- name: "durationUpdateNotAllowed";
824
- msg: "Duration update is not allowed";
1395
+ "code": 6019;
1396
+ "name": "durationUpdateNotAllowed";
1397
+ "msg": "Duration update is not allowed";
825
1398
  },
826
1399
  {
827
- code: 6020;
828
- name: "noVestingAmount";
829
- msg: "Vesting amounts are not set";
1400
+ "code": 6020;
1401
+ "name": "noVestingAmount";
1402
+ "msg": "Vesting amounts are not set";
830
1403
  },
831
1404
  {
832
- code: 6021;
833
- name: "vestingAlreadyFinished";
834
- msg: "Vesting already finished";
1405
+ "code": 6021;
1406
+ "name": "vestingAlreadyFinished";
1407
+ "msg": "Vesting already finished";
835
1408
  },
836
1409
  {
837
- code: 6022;
838
- name: "invalidAmounts";
839
- msg: "Provided amounts are invalid";
1410
+ "code": 6022;
1411
+ "name": "invalidAmounts";
1412
+ "msg": "Provided amounts are invalid";
840
1413
  },
841
1414
  {
842
- code: 6023;
843
- name: "claimsLimitReached";
844
- msg: "Claims limit has been reached";
1415
+ "code": 6023;
1416
+ "name": "claimsLimitReached";
1417
+ "msg": "Claims limit has been reached";
845
1418
  }
846
1419
  ];
847
- types: [
1420
+ "types": [
848
1421
  {
849
- name: "claimClosedEvent";
850
- docs: ["Emitted when a new claim is created."];
851
- type: {
852
- kind: "struct";
853
- fields: [
1422
+ "name": "claimClosedEvent";
1423
+ "docs": [
1424
+ "Emitted when a new claim is created."
1425
+ ];
1426
+ "type": {
1427
+ "kind": "struct";
1428
+ "fields": [
854
1429
  {
855
- name: "claimant";
856
- docs: ["User that claimed."];
857
- type: "pubkey";
1430
+ "name": "claimant";
1431
+ "docs": [
1432
+ "User that claimed."
1433
+ ];
1434
+ "type": "pubkey";
858
1435
  },
859
1436
  {
860
- name: "timestamp";
861
- docs: ["Timestamp."];
862
- type: "u64";
1437
+ "name": "timestamp";
1438
+ "docs": [
1439
+ "Timestamp."
1440
+ ];
1441
+ "type": "u64";
863
1442
  }
864
1443
  ];
865
1444
  };
866
1445
  },
867
1446
  {
868
- name: "claimStatus";
869
- docs: ["Holds whether or not a claimant has claimed tokens."];
870
- type: {
871
- kind: "struct";
872
- fields: [
1447
+ "name": "claimStatus";
1448
+ "docs": [
1449
+ "Holds whether or not a claimant has claimed tokens."
1450
+ ];
1451
+ "type": {
1452
+ "kind": "struct";
1453
+ "fields": [
873
1454
  {
874
- name: "claimant";
875
- docs: ["Authority that claimed the tokens."];
876
- type: "pubkey";
1455
+ "name": "claimant";
1456
+ "docs": [
1457
+ "Authority that claimed the tokens."
1458
+ ];
1459
+ "type": "pubkey";
877
1460
  },
878
1461
  {
879
- name: "lockedAmount";
880
- docs: ["Locked amount"];
881
- type: "u64";
1462
+ "name": "lockedAmount";
1463
+ "docs": [
1464
+ "Locked amount"
1465
+ ];
1466
+ "type": "u64";
882
1467
  },
883
1468
  {
884
- name: "lockedAmountWithdrawn";
885
- docs: ["Locked amount withdrawn"];
886
- type: "u64";
1469
+ "name": "lockedAmountWithdrawn";
1470
+ "docs": [
1471
+ "Locked amount withdrawn"
1472
+ ];
1473
+ "type": "u64";
887
1474
  },
888
1475
  {
889
- name: "unlockedAmount";
890
- docs: ["Unlocked amount"];
891
- type: "u64";
1476
+ "name": "unlockedAmount";
1477
+ "docs": [
1478
+ "Unlocked amount"
1479
+ ];
1480
+ "type": "u64";
892
1481
  },
893
1482
  {
894
- name: "lastClaimTs";
895
- docs: ["Last claim time"];
896
- type: "u64";
1483
+ "name": "lastClaimTs";
1484
+ "docs": [
1485
+ "Last claim time"
1486
+ ];
1487
+ "type": "u64";
897
1488
  },
898
1489
  {
899
- name: "lastAmountPerUnlock";
900
- docs: ["Track amount per unlock, can be useful for non-linear vesting"];
901
- type: "u64";
1490
+ "name": "lastAmountPerUnlock";
1491
+ "docs": [
1492
+ "Track amount per unlock, can be useful for non-linear vesting"
1493
+ ];
1494
+ "type": "u64";
902
1495
  },
903
1496
  {
904
- name: "closed";
905
- docs: ["Whether claim is closed"];
906
- type: "bool";
1497
+ "name": "closed";
1498
+ "docs": [
1499
+ "Whether claim is closed"
1500
+ ];
1501
+ "type": "bool";
907
1502
  },
908
1503
  {
909
- name: "distributor";
910
- docs: [
1504
+ "name": "distributor";
1505
+ "docs": [
911
1506
  "Distributor account for which ClaimStatus was created, useful to filter by in get_program_accounts"
912
1507
  ];
913
- type: "pubkey";
1508
+ "type": "pubkey";
914
1509
  },
915
1510
  {
916
- name: "claimsCount";
917
- docs: ["Number of time amount has been claimed"];
918
- type: "u16";
1511
+ "name": "claimsCount";
1512
+ "docs": [
1513
+ "Number of time amount has been claimed"
1514
+ ];
1515
+ "type": "u16";
919
1516
  },
920
1517
  {
921
- name: "closedTs";
922
- docs: ["Time when claim has been closed"];
923
- type: "u64";
1518
+ "name": "closedTs";
1519
+ "docs": [
1520
+ "Time when claim has been closed"
1521
+ ];
1522
+ "type": "u64";
924
1523
  },
925
1524
  {
926
- name: "buffer2";
927
- docs: ["Buffer for additional fields"];
928
- type: {
929
- array: ["u8", 22];
1525
+ "name": "buffer2";
1526
+ "docs": [
1527
+ "Buffer for additional fields"
1528
+ ];
1529
+ "type": {
1530
+ "array": [
1531
+ "u8",
1532
+ 22
1533
+ ];
930
1534
  };
931
1535
  }
932
1536
  ];
933
1537
  };
934
1538
  },
935
1539
  {
936
- name: "claimedEvent";
937
- docs: ["Emitted when tokens are claimed."];
938
- type: {
939
- kind: "struct";
940
- fields: [
1540
+ "name": "claimedEvent";
1541
+ "docs": [
1542
+ "Emitted when tokens are claimed."
1543
+ ];
1544
+ "type": {
1545
+ "kind": "struct";
1546
+ "fields": [
941
1547
  {
942
- name: "claimant";
943
- docs: ["User that claimed."];
944
- type: "pubkey";
1548
+ "name": "claimant";
1549
+ "docs": [
1550
+ "User that claimed."
1551
+ ];
1552
+ "type": "pubkey";
945
1553
  },
946
1554
  {
947
- name: "amount";
948
- docs: ["Amount of tokens to distribute."];
949
- type: "u64";
1555
+ "name": "amount";
1556
+ "docs": [
1557
+ "Amount of tokens to distribute."
1558
+ ];
1559
+ "type": "u64";
950
1560
  }
951
1561
  ];
952
1562
  };
953
1563
  },
954
1564
  {
955
- name: "merkleDistributor";
956
- docs: ["State for the account which distributes tokens."];
957
- type: {
958
- kind: "struct";
959
- fields: [
1565
+ "name": "compressedClaimStatus";
1566
+ "docs": [
1567
+ "Holds whether or not a claimant has claimed tokens."
1568
+ ];
1569
+ "type": {
1570
+ "kind": "struct";
1571
+ "fields": [
960
1572
  {
961
- name: "bump";
962
- docs: ["Bump seed."];
963
- type: "u8";
1573
+ "name": "state";
1574
+ "type": {
1575
+ "defined": {
1576
+ "name": "state";
1577
+ };
1578
+ };
1579
+ }
1580
+ ];
1581
+ };
1582
+ },
1583
+ {
1584
+ "name": "merkleDistributor";
1585
+ "docs": [
1586
+ "State for the account which distributes tokens."
1587
+ ];
1588
+ "type": {
1589
+ "kind": "struct";
1590
+ "fields": [
1591
+ {
1592
+ "name": "bump";
1593
+ "docs": [
1594
+ "Bump seed."
1595
+ ];
1596
+ "type": "u8";
964
1597
  },
965
1598
  {
966
- name: "version";
967
- docs: ["Version of the airdrop"];
968
- type: "u64";
1599
+ "name": "version";
1600
+ "docs": [
1601
+ "Version of the airdrop"
1602
+ ];
1603
+ "type": "u64";
969
1604
  },
970
1605
  {
971
- name: "root";
972
- docs: ["The 256-bit merkle root."];
973
- type: {
974
- array: ["u8", 32];
1606
+ "name": "root";
1607
+ "docs": [
1608
+ "The 256-bit merkle root."
1609
+ ];
1610
+ "type": {
1611
+ "array": [
1612
+ "u8",
1613
+ 32
1614
+ ];
975
1615
  };
976
1616
  },
977
1617
  {
978
- name: "mint";
979
- docs: ["[Mint] of the token to be distributed."];
980
- type: "pubkey";
1618
+ "name": "mint";
1619
+ "docs": [
1620
+ "[Mint] of the token to be distributed."
1621
+ ];
1622
+ "type": "pubkey";
981
1623
  },
982
1624
  {
983
- name: "tokenVault";
984
- docs: ["Token Address of the vault"];
985
- type: "pubkey";
1625
+ "name": "tokenVault";
1626
+ "docs": [
1627
+ "Token Address of the vault"
1628
+ ];
1629
+ "type": "pubkey";
986
1630
  },
987
1631
  {
988
- name: "maxTotalClaim";
989
- docs: ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."];
990
- type: "u64";
1632
+ "name": "maxTotalClaim";
1633
+ "docs": [
1634
+ "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
1635
+ ];
1636
+ "type": "u64";
991
1637
  },
992
1638
  {
993
- name: "maxNumNodes";
994
- docs: ["Maximum number of nodes in [MerkleDistributor]."];
995
- type: "u64";
1639
+ "name": "maxNumNodes";
1640
+ "docs": [
1641
+ "Maximum number of nodes in [MerkleDistributor]."
1642
+ ];
1643
+ "type": "u64";
996
1644
  },
997
1645
  {
998
- name: "unlockPeriod";
999
- docs: ["Time step (period) in seconds per which the unlock occurs"];
1000
- type: "u64";
1646
+ "name": "unlockPeriod";
1647
+ "docs": [
1648
+ "Time step (period) in seconds per which the unlock occurs"
1649
+ ];
1650
+ "type": "u64";
1001
1651
  },
1002
1652
  {
1003
- name: "totalAmountClaimed";
1004
- docs: ["Total amount of tokens that have been claimed."];
1005
- type: "u64";
1653
+ "name": "totalAmountClaimed";
1654
+ "docs": [
1655
+ "Total amount of tokens that have been claimed."
1656
+ ];
1657
+ "type": "u64";
1006
1658
  },
1007
1659
  {
1008
- name: "numNodesClaimed";
1009
- docs: ["Number of nodes that have been claimed."];
1010
- type: "u64";
1660
+ "name": "numNodesClaimed";
1661
+ "docs": [
1662
+ "Number of nodes that have been claimed."
1663
+ ];
1664
+ "type": "u64";
1011
1665
  },
1012
1666
  {
1013
- name: "startTs";
1014
- docs: ["Lockup time start (Unix Timestamp)"];
1015
- type: "u64";
1667
+ "name": "startTs";
1668
+ "docs": [
1669
+ "Lockup time start (Unix Timestamp)"
1670
+ ];
1671
+ "type": "u64";
1016
1672
  },
1017
1673
  {
1018
- name: "endTs";
1019
- docs: ["Lockup time end (Unix Timestamp)"];
1020
- type: "u64";
1674
+ "name": "endTs";
1675
+ "docs": [
1676
+ "Lockup time end (Unix Timestamp)"
1677
+ ];
1678
+ "type": "u64";
1021
1679
  },
1022
1680
  {
1023
- name: "clawbackStartTs";
1024
- docs: ["Clawback start (Unix Timestamp)"];
1025
- type: "u64";
1681
+ "name": "clawbackStartTs";
1682
+ "docs": [
1683
+ "Clawback start (Unix Timestamp)"
1684
+ ];
1685
+ "type": "u64";
1026
1686
  },
1027
1687
  {
1028
- name: "clawbackReceiver";
1029
- docs: ["Clawback receiver"];
1030
- type: "pubkey";
1688
+ "name": "clawbackReceiver";
1689
+ "docs": [
1690
+ "Clawback receiver"
1691
+ ];
1692
+ "type": "pubkey";
1031
1693
  },
1032
1694
  {
1033
- name: "admin";
1034
- docs: ["Admin wallet"];
1035
- type: "pubkey";
1695
+ "name": "admin";
1696
+ "docs": [
1697
+ "Admin wallet"
1698
+ ];
1699
+ "type": "pubkey";
1036
1700
  },
1037
1701
  {
1038
- name: "clawedBack";
1039
- docs: ["Whether or not the distributor has been clawed back"];
1040
- type: "bool";
1702
+ "name": "clawedBack";
1703
+ "docs": [
1704
+ "Whether or not the distributor has been clawed back"
1705
+ ];
1706
+ "type": "bool";
1041
1707
  },
1042
1708
  {
1043
- name: "claimsClosableByAdmin";
1044
- docs: ["Whether claims are closable by the admin or not"];
1045
- type: "bool";
1709
+ "name": "claimsClosableByAdmin";
1710
+ "docs": [
1711
+ "Whether claims are closable by the admin or not"
1712
+ ];
1713
+ "type": "bool";
1046
1714
  },
1047
1715
  {
1048
- name: "canUpdateDuration";
1049
- docs: ["Whether admin can update vesting duration"];
1050
- type: "bool";
1716
+ "name": "canUpdateDuration";
1717
+ "docs": [
1718
+ "Whether admin can update vesting duration"
1719
+ ];
1720
+ "type": "bool";
1051
1721
  },
1052
1722
  {
1053
- name: "totalAmountUnlocked";
1054
- docs: ["Total amount of funds unlocked (cliff/instant)"];
1055
- type: "u64";
1723
+ "name": "totalAmountUnlocked";
1724
+ "docs": [
1725
+ "Total amount of funds unlocked (cliff/instant)"
1726
+ ];
1727
+ "type": "u64";
1056
1728
  },
1057
1729
  {
1058
- name: "totalAmountLocked";
1059
- docs: ["Total amount of funds locked (vested)"];
1060
- type: "u64";
1730
+ "name": "totalAmountLocked";
1731
+ "docs": [
1732
+ "Total amount of funds locked (vested)"
1733
+ ];
1734
+ "type": "u64";
1061
1735
  },
1062
1736
  {
1063
- name: "lastDurationUpdateTs";
1064
- docs: ["Timestamp when update was last called"];
1065
- type: "u64";
1737
+ "name": "lastDurationUpdateTs";
1738
+ "docs": [
1739
+ "Timestamp when update was last called"
1740
+ ];
1741
+ "type": "u64";
1066
1742
  },
1067
1743
  {
1068
- name: "totalClaimablePreUpdate";
1069
- docs: [
1744
+ "name": "totalClaimablePreUpdate";
1745
+ "docs": [
1070
1746
  "Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update"
1071
1747
  ];
1072
- type: "u64";
1748
+ "type": "u64";
1073
1749
  },
1074
1750
  {
1075
- name: "clawedBackTs";
1076
- docs: ["Timestamp when funds were clawed back"];
1077
- type: "u64";
1751
+ "name": "clawedBackTs";
1752
+ "docs": [
1753
+ "Timestamp when funds were clawed back"
1754
+ ];
1755
+ "type": "u64";
1078
1756
  },
1079
1757
  {
1080
- name: "claimsClosableByClaimant";
1081
- docs: ["Whether claims are closable by claimant or not"];
1082
- type: "bool";
1758
+ "name": "claimsClosableByClaimant";
1759
+ "docs": [
1760
+ "Whether claims are closable by claimant or not"
1761
+ ];
1762
+ "type": "bool";
1083
1763
  },
1084
1764
  {
1085
- name: "claimsLimit";
1086
- docs: ["Limit number of claims"];
1087
- type: "u16";
1765
+ "name": "claimsLimit";
1766
+ "docs": [
1767
+ "Limit number of claims"
1768
+ ];
1769
+ "type": "u16";
1088
1770
  },
1089
1771
  {
1090
- name: "buffer2";
1091
- docs: ["Buffer for additional fields"];
1092
- type: {
1093
- array: ["u8", 20];
1772
+ "name": "buffer2";
1773
+ "docs": [
1774
+ "Buffer for additional fields"
1775
+ ];
1776
+ "type": {
1777
+ "array": [
1778
+ "u8",
1779
+ 20
1780
+ ];
1094
1781
  };
1095
1782
  },
1096
1783
  {
1097
- name: "buffer3";
1098
- docs: ["Buffer for additional fields"];
1099
- type: {
1100
- array: ["u8", 32];
1784
+ "name": "buffer3";
1785
+ "docs": [
1786
+ "Buffer for additional fields"
1787
+ ];
1788
+ "type": {
1789
+ "array": [
1790
+ "u8",
1791
+ 32
1792
+ ];
1101
1793
  };
1102
1794
  }
1103
1795
  ];
1104
1796
  };
1105
1797
  },
1106
1798
  {
1107
- name: "newClaimEvent";
1108
- docs: ["Emitted when a new claim is created."];
1109
- type: {
1110
- kind: "struct";
1111
- fields: [
1799
+ "name": "newClaimEvent";
1800
+ "docs": [
1801
+ "Emitted when a new claim is created."
1802
+ ];
1803
+ "type": {
1804
+ "kind": "struct";
1805
+ "fields": [
1806
+ {
1807
+ "name": "claimant";
1808
+ "docs": [
1809
+ "User that claimed."
1810
+ ];
1811
+ "type": "pubkey";
1812
+ },
1813
+ {
1814
+ "name": "timestamp";
1815
+ "docs": [
1816
+ "Timestamp."
1817
+ ];
1818
+ "type": "u64";
1819
+ }
1820
+ ];
1821
+ };
1822
+ },
1823
+ {
1824
+ "name": "state";
1825
+ "type": {
1826
+ "kind": "enum";
1827
+ "variants": [
1112
1828
  {
1113
- name: "claimant";
1114
- docs: ["User that claimed."];
1115
- type: "pubkey";
1829
+ "name": "claimed";
1116
1830
  },
1117
1831
  {
1118
- name: "timestamp";
1119
- docs: ["Timestamp."];
1120
- type: "u64";
1832
+ "name": "closed";
1121
1833
  }
1122
1834
  ];
1123
1835
  };