@streamflow/staking 8.2.2 → 8.3.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,55 +2,95 @@
2
2
  "address": "RWRDdfRbi3339VgKxTAXg4cjyniF7cbhNbMxZWiSKmj",
3
3
  "metadata": {
4
4
  "name": "reward_pool",
5
- "version": "1.0.0",
5
+ "version": "2.2.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Program to manage Reward Pools for Stake Pools and claim rewards from them"
8
8
  },
9
9
  "instructions": [
10
10
  {
11
11
  "name": "change_authority",
12
- "discriminator": [50, 106, 66, 104, 99, 118, 145, 88],
12
+ "discriminator": [
13
+ 50,
14
+ 106,
15
+ 66,
16
+ 104,
17
+ 99,
18
+ 118,
19
+ 145,
20
+ 88
21
+ ],
13
22
  "accounts": [
23
+ {
24
+ "name": "reward_pool",
25
+ "docs": [
26
+ "Reward Pool"
27
+ ],
28
+ "writable": true
29
+ },
14
30
  {
15
31
  "name": "authority",
16
- "docs": ["Current Authority"],
32
+ "docs": [
33
+ "Current Authority"
34
+ ],
17
35
  "writable": true,
18
- "signer": true,
19
- "relations": ["reward_pool"]
36
+ "signer": true
20
37
  },
21
38
  {
22
39
  "name": "new_authority"
23
- },
24
- {
25
- "name": "reward_pool",
26
- "docs": ["Stake Pool"],
27
- "writable": true
28
40
  }
29
41
  ],
30
42
  "args": []
31
43
  },
32
44
  {
33
45
  "name": "claim_rewards",
34
- "discriminator": [4, 144, 132, 71, 116, 23, 151, 80],
46
+ "discriminator": [
47
+ 4,
48
+ 144,
49
+ 132,
50
+ 71,
51
+ 116,
52
+ 23,
53
+ 151,
54
+ 80
55
+ ],
35
56
  "accounts": [
36
57
  {
37
58
  "name": "reward_pool",
38
- "docs": ["Reward Pool"],
59
+ "docs": [
60
+ "Reward Pool"
61
+ ],
39
62
  "writable": true
40
63
  },
41
64
  {
42
65
  "name": "stake_entry",
43
- "docs": ["Stake Entry for which rewards are being claimed"]
66
+ "docs": [
67
+ "Stake Entry for which rewards are being claimed"
68
+ ]
44
69
  },
45
70
  {
46
71
  "name": "reward_entry",
47
- "docs": ["Reward Entry that stores metadata about claimed rewards"],
72
+ "docs": [
73
+ "Reward Entry that stores metadata about claimed rewards"
74
+ ],
48
75
  "writable": true,
49
76
  "pda": {
50
77
  "seeds": [
51
78
  {
52
79
  "kind": "const",
53
- "value": [114, 101, 119, 97, 114, 100, 45, 101, 110, 116, 114, 121]
80
+ "value": [
81
+ 114,
82
+ 101,
83
+ 119,
84
+ 97,
85
+ 114,
86
+ 100,
87
+ 45,
88
+ 101,
89
+ 110,
90
+ 116,
91
+ 114,
92
+ 121
93
+ ]
54
94
  },
55
95
  {
56
96
  "kind": "account",
@@ -65,25 +105,37 @@
65
105
  },
66
106
  {
67
107
  "name": "vault",
68
- "docs": ["Reward Pool Vault that stores tokens"],
108
+ "docs": [
109
+ "Reward Pool Vault that stores tokens"
110
+ ],
69
111
  "writable": true,
70
- "relations": ["reward_pool"]
112
+ "relations": [
113
+ "reward_pool"
114
+ ]
71
115
  },
72
116
  {
73
117
  "name": "to",
74
- "docs": ["Account to send the reward tokens to."],
118
+ "docs": [
119
+ "Account to send the reward tokens to."
120
+ ],
75
121
  "writable": true
76
122
  },
77
123
  {
78
124
  "name": "claimant",
79
- "docs": ["Who is claiming the tokens."],
125
+ "docs": [
126
+ "Who is claiming the tokens."
127
+ ],
80
128
  "writable": true,
81
129
  "signer": true
82
130
  },
83
131
  {
84
132
  "name": "mint",
85
- "docs": ["The mint to claim."],
86
- "relations": ["reward_pool"]
133
+ "docs": [
134
+ "The mint to claim."
135
+ ],
136
+ "relations": [
137
+ "reward_pool"
138
+ ]
87
139
  },
88
140
  {
89
141
  "name": "token_program"
@@ -97,25 +149,128 @@
97
149
  },
98
150
  {
99
151
  "name": "close_entry",
100
- "discriminator": [132, 26, 202, 145, 190, 37, 114, 67],
152
+ "discriminator": [
153
+ 132,
154
+ 26,
155
+ 202,
156
+ 145,
157
+ 190,
158
+ 37,
159
+ 114,
160
+ 67
161
+ ],
101
162
  "accounts": [
163
+ {
164
+ "name": "stake_pool",
165
+ "docs": [
166
+ "Stake Pool"
167
+ ],
168
+ "relations": [
169
+ "reward_pool"
170
+ ]
171
+ },
102
172
  {
103
173
  "name": "reward_pool",
104
- "docs": ["Reward Pool"]
174
+ "docs": [
175
+ "Reward Pool"
176
+ ]
105
177
  },
106
178
  {
107
179
  "name": "stake_entry",
108
- "docs": ["Stake Entry for which rewards are being claimed"]
180
+ "pda": {
181
+ "seeds": [
182
+ {
183
+ "kind": "const",
184
+ "value": [
185
+ 115,
186
+ 116,
187
+ 97,
188
+ 107,
189
+ 101,
190
+ 45,
191
+ 101,
192
+ 110,
193
+ 116,
194
+ 114,
195
+ 121
196
+ ]
197
+ },
198
+ {
199
+ "kind": "account",
200
+ "path": "stake_pool"
201
+ },
202
+ {
203
+ "kind": "account",
204
+ "path": "authority"
205
+ },
206
+ {
207
+ "kind": "arg",
208
+ "path": "stake_nonce"
209
+ }
210
+ ],
211
+ "program": {
212
+ "kind": "const",
213
+ "value": [
214
+ 6,
215
+ 133,
216
+ 25,
217
+ 160,
218
+ 130,
219
+ 0,
220
+ 119,
221
+ 110,
222
+ 227,
223
+ 8,
224
+ 28,
225
+ 85,
226
+ 214,
227
+ 116,
228
+ 67,
229
+ 41,
230
+ 155,
231
+ 152,
232
+ 181,
233
+ 139,
234
+ 124,
235
+ 208,
236
+ 85,
237
+ 71,
238
+ 175,
239
+ 40,
240
+ 123,
241
+ 71,
242
+ 139,
243
+ 170,
244
+ 201,
245
+ 178
246
+ ]
247
+ }
248
+ }
109
249
  },
110
250
  {
111
251
  "name": "reward_entry",
112
- "docs": ["Reward Entry that stores metadata about claimed rewards"],
252
+ "docs": [
253
+ "Reward Entry that stores metadata about claimed rewards"
254
+ ],
113
255
  "writable": true,
114
256
  "pda": {
115
257
  "seeds": [
116
258
  {
117
259
  "kind": "const",
118
- "value": [114, 101, 119, 97, 114, 100, 45, 101, 110, 116, 114, 121]
260
+ "value": [
261
+ 114,
262
+ 101,
263
+ 119,
264
+ 97,
265
+ 114,
266
+ 100,
267
+ 45,
268
+ 101,
269
+ 110,
270
+ 116,
271
+ 114,
272
+ 121
273
+ ]
119
274
  },
120
275
  {
121
276
  "kind": "account",
@@ -133,39 +288,102 @@
133
288
  "writable": true,
134
289
  "signer": true
135
290
  },
291
+ {
292
+ "name": "rent_sponsor",
293
+ "writable": true,
294
+ "pda": {
295
+ "seeds": [
296
+ {
297
+ "kind": "const",
298
+ "value": [
299
+ 114,
300
+ 101,
301
+ 110,
302
+ 116,
303
+ 45,
304
+ 115,
305
+ 112,
306
+ 111,
307
+ 110,
308
+ 115,
309
+ 111,
310
+ 114
311
+ ]
312
+ }
313
+ ]
314
+ }
315
+ },
136
316
  {
137
317
  "name": "system_program",
138
318
  "address": "11111111111111111111111111111111"
139
319
  }
140
320
  ],
141
- "args": []
321
+ "args": [
322
+ {
323
+ "name": "stake_nonce",
324
+ "type": "u32"
325
+ }
326
+ ]
142
327
  },
143
328
  {
144
329
  "name": "create_entry",
145
- "discriminator": [248, 207, 142, 242, 66, 162, 150, 16],
330
+ "discriminator": [
331
+ 248,
332
+ 207,
333
+ 142,
334
+ 242,
335
+ 66,
336
+ 162,
337
+ 150,
338
+ 16
339
+ ],
146
340
  "accounts": [
147
341
  {
148
342
  "name": "stake_pool",
149
- "docs": ["Original Stake Pool"],
150
- "relations": ["reward_pool", "stake_entry"]
343
+ "docs": [
344
+ "Original Stake Pool"
345
+ ],
346
+ "relations": [
347
+ "reward_pool",
348
+ "stake_entry"
349
+ ]
151
350
  },
152
351
  {
153
352
  "name": "reward_pool",
154
- "docs": ["Reward Pool"]
353
+ "docs": [
354
+ "Reward Pool"
355
+ ]
155
356
  },
156
357
  {
157
358
  "name": "stake_entry",
158
- "docs": ["Stake Entry for which rewards are being claimed"]
359
+ "docs": [
360
+ "Stake Entry for which rewards are being claimed"
361
+ ]
159
362
  },
160
363
  {
161
364
  "name": "reward_entry",
162
- "docs": ["Reward Entry that stores metadata about claimed rewards"],
365
+ "docs": [
366
+ "Reward Entry that stores metadata about claimed rewards"
367
+ ],
163
368
  "writable": true,
164
369
  "pda": {
165
370
  "seeds": [
166
371
  {
167
372
  "kind": "const",
168
- "value": [114, 101, 119, 97, 114, 100, 45, 101, 110, 116, 114, 121]
373
+ "value": [
374
+ 114,
375
+ 101,
376
+ 119,
377
+ 97,
378
+ 114,
379
+ 100,
380
+ 45,
381
+ 101,
382
+ 110,
383
+ 116,
384
+ 114,
385
+ 121
386
+ ]
169
387
  },
170
388
  {
171
389
  "kind": "account",
@@ -180,13 +398,40 @@
180
398
  },
181
399
  {
182
400
  "name": "payer",
183
- "docs": ["Rent payer"],
401
+ "docs": [
402
+ "Rent payer"
403
+ ],
184
404
  "writable": true,
185
405
  "signer": true
186
406
  },
187
407
  {
188
408
  "name": "authority"
189
409
  },
410
+ {
411
+ "name": "rent_sponsor",
412
+ "writable": true,
413
+ "pda": {
414
+ "seeds": [
415
+ {
416
+ "kind": "const",
417
+ "value": [
418
+ 114,
419
+ 101,
420
+ 110,
421
+ 116,
422
+ 45,
423
+ 115,
424
+ 112,
425
+ 111,
426
+ 110,
427
+ 115,
428
+ 111,
429
+ 114
430
+ ]
431
+ }
432
+ ]
433
+ }
434
+ },
190
435
  {
191
436
  "name": "system_program",
192
437
  "address": "11111111111111111111111111111111"
@@ -196,21 +441,46 @@
196
441
  },
197
442
  {
198
443
  "name": "create_pool",
199
- "discriminator": [233, 146, 209, 142, 207, 104, 64, 188],
444
+ "discriminator": [
445
+ 233,
446
+ 146,
447
+ 209,
448
+ 142,
449
+ 207,
450
+ 104,
451
+ 64,
452
+ 188
453
+ ],
200
454
  "accounts": [
201
455
  {
202
456
  "name": "stake_pool",
203
- "docs": ["Stake Pool to Which Reward Pool is being added"]
457
+ "docs": [
458
+ "Stake Pool to Which Reward Pool is being added"
459
+ ]
204
460
  },
205
461
  {
206
462
  "name": "reward_pool",
207
- "docs": ["Reward Pool to add"],
463
+ "docs": [
464
+ "Reward Pool to add"
465
+ ],
208
466
  "writable": true,
209
467
  "pda": {
210
468
  "seeds": [
211
469
  {
212
470
  "kind": "const",
213
- "value": [114, 101, 119, 97, 114, 100, 45, 112, 111, 111, 108]
471
+ "value": [
472
+ 114,
473
+ 101,
474
+ 119,
475
+ 97,
476
+ 114,
477
+ 100,
478
+ 45,
479
+ 112,
480
+ 111,
481
+ 111,
482
+ 108
483
+ ]
214
484
  },
215
485
  {
216
486
  "kind": "account",
@@ -229,17 +499,34 @@
229
499
  },
230
500
  {
231
501
  "name": "mint",
232
- "docs": ["Mint used for rewards"]
502
+ "docs": [
503
+ "Mint used for rewards"
504
+ ]
233
505
  },
234
506
  {
235
507
  "name": "vault",
236
- "docs": ["Escrow Account that will store the tokens"],
508
+ "docs": [
509
+ "Escrow Account that will store the tokens"
510
+ ],
237
511
  "writable": true,
238
512
  "pda": {
239
513
  "seeds": [
240
514
  {
241
515
  "kind": "const",
242
- "value": [114, 101, 119, 97, 114, 100, 45, 118, 97, 117, 108, 116]
516
+ "value": [
517
+ 114,
518
+ 101,
519
+ 119,
520
+ 97,
521
+ 114,
522
+ 100,
523
+ 45,
524
+ 118,
525
+ 97,
526
+ 117,
527
+ 108,
528
+ 116
529
+ ]
243
530
  },
244
531
  {
245
532
  "kind": "account",
@@ -250,7 +537,9 @@
250
537
  },
251
538
  {
252
539
  "name": "creator",
253
- "docs": ["Reward Pool creator"],
540
+ "docs": [
541
+ "Reward Pool creator"
542
+ ],
254
543
  "writable": true,
255
544
  "signer": true
256
545
  },
@@ -289,33 +578,56 @@
289
578
  },
290
579
  {
291
580
  "name": "fund_pool",
292
- "discriminator": [36, 57, 233, 176, 181, 20, 87, 159],
581
+ "discriminator": [
582
+ 36,
583
+ 57,
584
+ 233,
585
+ 176,
586
+ 181,
587
+ 20,
588
+ 87,
589
+ 159
590
+ ],
293
591
  "accounts": [
294
592
  {
295
593
  "name": "funder",
296
- "docs": ["Reward Pool funder"],
594
+ "docs": [
595
+ "Reward Pool funder"
596
+ ],
297
597
  "writable": true,
298
598
  "signer": true
299
599
  },
300
600
  {
301
601
  "name": "from",
302
- "docs": ["Token Account from which tokens will be transferred"],
602
+ "docs": [
603
+ "Token Account from which tokens will be transferred"
604
+ ],
303
605
  "writable": true
304
606
  },
305
607
  {
306
608
  "name": "vault",
307
- "docs": ["Reward Pool Vault that stores tokens"],
609
+ "docs": [
610
+ "Reward Pool Vault that stores tokens"
611
+ ],
308
612
  "writable": true,
309
- "relations": ["reward_pool"]
613
+ "relations": [
614
+ "reward_pool"
615
+ ]
310
616
  },
311
617
  {
312
618
  "name": "mint",
313
- "docs": ["Mint of reward tokens"],
314
- "relations": ["reward_pool"]
619
+ "docs": [
620
+ "Mint of reward tokens"
621
+ ],
622
+ "relations": [
623
+ "reward_pool"
624
+ ]
315
625
  },
316
626
  {
317
627
  "name": "reward_pool",
318
- "docs": ["Stake Pool"],
628
+ "docs": [
629
+ "Stake Pool"
630
+ ],
319
631
  "writable": true
320
632
  },
321
633
  {
@@ -344,20 +656,59 @@
344
656
  "program": {
345
657
  "kind": "const",
346
658
  "value": [
347
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
348
- 132, 4, 142, 123, 216, 219, 233, 248, 89
659
+ 140,
660
+ 151,
661
+ 37,
662
+ 143,
663
+ 78,
664
+ 36,
665
+ 137,
666
+ 241,
667
+ 187,
668
+ 61,
669
+ 16,
670
+ 41,
671
+ 20,
672
+ 142,
673
+ 13,
674
+ 131,
675
+ 11,
676
+ 90,
677
+ 19,
678
+ 153,
679
+ 218,
680
+ 255,
681
+ 16,
682
+ 132,
683
+ 4,
684
+ 142,
685
+ 123,
686
+ 216,
687
+ 219,
688
+ 233,
689
+ 248,
690
+ 89
349
691
  ]
350
692
  }
351
693
  }
352
694
  },
353
695
  {
354
696
  "name": "config",
355
- "docs": ["Fee Configuration"],
697
+ "docs": [
698
+ "Fee Configuration"
699
+ ],
356
700
  "pda": {
357
701
  "seeds": [
358
702
  {
359
703
  "kind": "const",
360
- "value": [99, 111, 110, 102, 105, 103]
704
+ "value": [
705
+ 99,
706
+ 111,
707
+ 110,
708
+ 102,
709
+ 105,
710
+ 103
711
+ ]
361
712
  }
362
713
  ],
363
714
  "program": {
@@ -368,13 +719,25 @@
368
719
  },
369
720
  {
370
721
  "name": "fee_value",
371
- "docs": ["Fee Value for the funder account"],
722
+ "docs": [
723
+ "Fee Value for the funder account"
724
+ ],
372
725
  "optional": true,
373
726
  "pda": {
374
727
  "seeds": [
375
728
  {
376
729
  "kind": "const",
377
- "value": [102, 101, 101, 45, 118, 97, 108, 117, 101]
730
+ "value": [
731
+ 102,
732
+ 101,
733
+ 101,
734
+ 45,
735
+ 118,
736
+ 97,
737
+ 108,
738
+ 117,
739
+ 101
740
+ ]
378
741
  },
379
742
  {
380
743
  "kind": "account",
@@ -404,23 +767,42 @@
404
767
  },
405
768
  {
406
769
  "name": "update_pool",
407
- "discriminator": [239, 214, 170, 78, 36, 35, 30, 34],
770
+ "discriminator": [
771
+ 239,
772
+ 214,
773
+ 170,
774
+ 78,
775
+ 36,
776
+ 35,
777
+ 30,
778
+ 34
779
+ ],
408
780
  "accounts": [
409
781
  {
410
782
  "name": "authority",
411
- "docs": ["Current Authority"],
783
+ "docs": [
784
+ "Current Authority"
785
+ ],
412
786
  "writable": true,
413
787
  "signer": true,
414
- "relations": ["reward_pool"]
788
+ "relations": [
789
+ "reward_pool"
790
+ ]
415
791
  },
416
792
  {
417
793
  "name": "stake_pool",
418
- "docs": ["Stake Pool to Which Reward Pool belongs"],
419
- "relations": ["reward_pool"]
794
+ "docs": [
795
+ "Stake Pool to Which Reward Pool belongs"
796
+ ],
797
+ "relations": [
798
+ "reward_pool"
799
+ ]
420
800
  },
421
801
  {
422
802
  "name": "reward_pool",
423
- "docs": ["Reward Pool"],
803
+ "docs": [
804
+ "Reward Pool"
805
+ ],
424
806
  "writable": true
425
807
  }
426
808
  ],
@@ -443,27 +825,81 @@
443
825
  "accounts": [
444
826
  {
445
827
  "name": "Config",
446
- "discriminator": [155, 12, 170, 224, 30, 250, 204, 130]
828
+ "discriminator": [
829
+ 155,
830
+ 12,
831
+ 170,
832
+ 224,
833
+ 30,
834
+ 250,
835
+ 204,
836
+ 130
837
+ ]
447
838
  },
448
839
  {
449
840
  "name": "FeeValue",
450
- "discriminator": [10, 188, 89, 64, 4, 183, 231, 0]
841
+ "discriminator": [
842
+ 10,
843
+ 188,
844
+ 89,
845
+ 64,
846
+ 4,
847
+ 183,
848
+ 231,
849
+ 0
850
+ ]
451
851
  },
452
852
  {
453
853
  "name": "RewardEntry",
454
- "discriminator": [208, 191, 173, 14, 213, 84, 179, 162]
854
+ "discriminator": [
855
+ 208,
856
+ 191,
857
+ 173,
858
+ 14,
859
+ 213,
860
+ 84,
861
+ 179,
862
+ 162
863
+ ]
455
864
  },
456
865
  {
457
866
  "name": "RewardPool",
458
- "discriminator": [134, 121, 197, 211, 133, 154, 82, 32]
867
+ "discriminator": [
868
+ 134,
869
+ 121,
870
+ 197,
871
+ 211,
872
+ 133,
873
+ 154,
874
+ 82,
875
+ 32
876
+ ]
459
877
  },
460
878
  {
461
879
  "name": "StakeEntry",
462
- "discriminator": [187, 127, 9, 35, 155, 68, 86, 40]
880
+ "discriminator": [
881
+ 187,
882
+ 127,
883
+ 9,
884
+ 35,
885
+ 155,
886
+ 68,
887
+ 86,
888
+ 40
889
+ ]
463
890
  },
464
891
  {
465
892
  "name": "StakePool",
466
- "discriminator": [121, 34, 206, 21, 79, 127, 255, 28]
893
+ "discriminator": [
894
+ 121,
895
+ 34,
896
+ 206,
897
+ 21,
898
+ 79,
899
+ 127,
900
+ 255,
901
+ 28
902
+ ]
467
903
  }
468
904
  ],
469
905
  "errors": [
@@ -551,33 +987,52 @@
551
987
  "fields": [
552
988
  {
553
989
  "name": "authority",
554
- "docs": ["Fee Manager authority"],
990
+ "docs": [
991
+ "Fee Manager authority"
992
+ ],
555
993
  "type": "pubkey"
556
994
  },
557
995
  {
558
996
  "name": "streamflow_fee",
559
- "docs": ["Default fee"],
997
+ "docs": [
998
+ "Default fee"
999
+ ],
560
1000
  "type": "u64"
561
1001
  },
562
1002
  {
563
1003
  "name": "_buffer_1",
564
- "docs": ["Buffer for additional fields"],
1004
+ "docs": [
1005
+ "Buffer for additional fields"
1006
+ ],
565
1007
  "type": {
566
- "array": ["u8", 64]
1008
+ "array": [
1009
+ "u8",
1010
+ 64
1011
+ ]
567
1012
  }
568
1013
  },
569
1014
  {
570
1015
  "name": "_buffer_2",
571
- "docs": ["Buffer for additional fields"],
1016
+ "docs": [
1017
+ "Buffer for additional fields"
1018
+ ],
572
1019
  "type": {
573
- "array": ["u8", 64]
1020
+ "array": [
1021
+ "u8",
1022
+ 64
1023
+ ]
574
1024
  }
575
1025
  },
576
1026
  {
577
1027
  "name": "_buffer_3",
578
- "docs": ["Buffer for additional fields"],
1028
+ "docs": [
1029
+ "Buffer for additional fields"
1030
+ ],
579
1031
  "type": {
580
- "array": ["u8", 64]
1032
+ "array": [
1033
+ "u8",
1034
+ 64
1035
+ ]
581
1036
  }
582
1037
  }
583
1038
  ]
@@ -594,9 +1049,14 @@
594
1049
  },
595
1050
  {
596
1051
  "name": "_buffer",
597
- "docs": ["Buffer for additional fields"],
1052
+ "docs": [
1053
+ "Buffer for additional fields"
1054
+ ],
598
1055
  "type": {
599
- "array": ["u8", 64]
1056
+ "array": [
1057
+ "u8",
1058
+ 64
1059
+ ]
600
1060
  }
601
1061
  }
602
1062
  ]
@@ -609,49 +1069,77 @@
609
1069
  "fields": [
610
1070
  {
611
1071
  "name": "reward_pool",
612
- "docs": ["Reward Pool"],
1072
+ "docs": [
1073
+ "Reward Pool"
1074
+ ],
613
1075
  "type": "pubkey"
614
1076
  },
615
1077
  {
616
1078
  "name": "stake_entry",
617
- "docs": ["Stake Entry for which reward entry was initialized"],
1079
+ "docs": [
1080
+ "Stake Entry for which reward entry was initialized"
1081
+ ],
618
1082
  "type": "pubkey"
619
1083
  },
620
1084
  {
621
1085
  "name": "created_ts",
622
- "docs": ["Timestamp when reward entry has been created"],
1086
+ "docs": [
1087
+ "Timestamp when reward entry has been created"
1088
+ ],
623
1089
  "type": "u64"
624
1090
  },
625
1091
  {
626
1092
  "name": "accounted_amount",
627
- "docs": ["Sum of accounted amounts, used to correctly issue rewards in case of precision loss"],
1093
+ "docs": [
1094
+ "Sum of accounted amounts, used to correctly issue rewards in case of precision loss"
1095
+ ],
628
1096
  "type": "u128"
629
1097
  },
630
1098
  {
631
1099
  "name": "claimed_amount",
632
- "docs": ["Sum of already claimed rewards"],
1100
+ "docs": [
1101
+ "Sum of already claimed rewards"
1102
+ ],
633
1103
  "type": "u64"
634
1104
  },
635
1105
  {
636
1106
  "name": "last_accounted_ts",
637
- "docs": ["Timestamp when rewards have been claimed last time"],
1107
+ "docs": [
1108
+ "Timestamp when rewards have been claimed last time"
1109
+ ],
638
1110
  "type": "u64"
639
1111
  },
640
1112
  {
641
1113
  "name": "last_reward_amount",
642
- "docs": ["Reward amount used on last claim or entry creation"],
1114
+ "docs": [
1115
+ "Reward amount used on last claim or entry creation"
1116
+ ],
643
1117
  "type": "u64"
644
1118
  },
645
1119
  {
646
1120
  "name": "last_reward_period",
647
- "docs": ["Reward Period used on last claim or entry creation"],
1121
+ "docs": [
1122
+ "Reward Period used on last claim or entry creation"
1123
+ ],
648
1124
  "type": "u64"
649
1125
  },
1126
+ {
1127
+ "name": "is_sponsored",
1128
+ "docs": [
1129
+ "Whether the entry rent has been sponsored by the rent vault"
1130
+ ],
1131
+ "type": "bool"
1132
+ },
650
1133
  {
651
1134
  "name": "_buffer",
652
- "docs": ["Buffer for additional fields"],
1135
+ "docs": [
1136
+ "Buffer for additional fields"
1137
+ ],
653
1138
  "type": {
654
- "array": ["u8", 32]
1139
+ "array": [
1140
+ "u8",
1141
+ 31
1142
+ ]
655
1143
  }
656
1144
  }
657
1145
  ]
@@ -664,32 +1152,44 @@
664
1152
  "fields": [
665
1153
  {
666
1154
  "name": "bump",
667
- "docs": ["Bump Seed used to sign transactions"],
1155
+ "docs": [
1156
+ "Bump Seed used to sign transactions"
1157
+ ],
668
1158
  "type": "u8"
669
1159
  },
670
1160
  {
671
1161
  "name": "nonce",
672
- "docs": ["Nonce to differentiate pools for the same mint"],
1162
+ "docs": [
1163
+ "Nonce to differentiate pools for the same mint"
1164
+ ],
673
1165
  "type": "u8"
674
1166
  },
675
1167
  {
676
1168
  "name": "stake_pool",
677
- "docs": ["Stake Pool for which Reward Pool was added"],
1169
+ "docs": [
1170
+ "Stake Pool for which Reward Pool was added"
1171
+ ],
678
1172
  "type": "pubkey"
679
1173
  },
680
1174
  {
681
1175
  "name": "mint",
682
- "docs": ["Mint of Reward Pool"],
1176
+ "docs": [
1177
+ "Mint of Reward Pool"
1178
+ ],
683
1179
  "type": "pubkey"
684
1180
  },
685
1181
  {
686
1182
  "name": "creator",
687
- "docs": ["Creator of the Pool"],
1183
+ "docs": [
1184
+ "Creator of the Pool"
1185
+ ],
688
1186
  "type": "pubkey"
689
1187
  },
690
1188
  {
691
1189
  "name": "authority",
692
- "docs": ["Current authority"],
1190
+ "docs": [
1191
+ "Current authority"
1192
+ ],
693
1193
  "type": "pubkey"
694
1194
  },
695
1195
  {
@@ -704,64 +1204,91 @@
704
1204
  },
705
1205
  {
706
1206
  "name": "reward_period",
707
- "docs": ["Period of Rewards distribution in seconds"],
1207
+ "docs": [
1208
+ "Period of Rewards distribution in seconds"
1209
+ ],
708
1210
  "type": "u64"
709
1211
  },
710
1212
  {
711
1213
  "name": "permissionless",
712
- "docs": ["Whether anyone can fund the Pool"],
1214
+ "docs": [
1215
+ "Whether anyone can fund the Pool"
1216
+ ],
713
1217
  "type": "bool"
714
1218
  },
715
1219
  {
716
1220
  "name": "last_reward_amount",
717
- "docs": ["`reward_amount` used before the last update"],
1221
+ "docs": [
1222
+ "`reward_amount` used before the last update"
1223
+ ],
718
1224
  "type": "u64"
719
1225
  },
720
1226
  {
721
1227
  "name": "last_reward_period",
722
- "docs": ["`reward_period` used before the last update"],
1228
+ "docs": [
1229
+ "`reward_period` used before the last update"
1230
+ ],
723
1231
  "type": "u64"
724
1232
  },
725
1233
  {
726
1234
  "name": "last_amount_update_ts",
727
- "docs": ["Time when `reward_amount` was updated the last time"],
1235
+ "docs": [
1236
+ "Time when `reward_amount` was updated the last time"
1237
+ ],
728
1238
  "type": "u64"
729
1239
  },
730
1240
  {
731
1241
  "name": "last_period_update_ts",
732
- "docs": ["Time when `reward_period` was updated the last time"],
1242
+ "docs": [
1243
+ "Time when `reward_period` was updated the last time"
1244
+ ],
733
1245
  "type": "u64"
734
1246
  },
735
1247
  {
736
1248
  "name": "vault",
737
- "docs": ["Escrow Account that stores reward tokens"],
1249
+ "docs": [
1250
+ "Escrow Account that stores reward tokens"
1251
+ ],
738
1252
  "type": "pubkey"
739
1253
  },
740
1254
  {
741
1255
  "name": "funded_amount",
742
- "docs": ["Total funded amount"],
1256
+ "docs": [
1257
+ "Total funded amount"
1258
+ ],
743
1259
  "type": "u64"
744
1260
  },
745
1261
  {
746
1262
  "name": "claimed_amount",
747
- "docs": ["Total number of rewards claimed"],
1263
+ "docs": [
1264
+ "Total number of rewards claimed"
1265
+ ],
748
1266
  "type": "u64"
749
1267
  },
750
1268
  {
751
1269
  "name": "created_ts",
752
- "docs": ["Time when Reward Pool was created"],
1270
+ "docs": [
1271
+ "Time when Reward Pool was created"
1272
+ ],
753
1273
  "type": "u64"
754
1274
  },
755
1275
  {
756
1276
  "name": "last_claim_period",
757
- "docs": ["For how much seconds after unstake user should be able to claim rewards"],
1277
+ "docs": [
1278
+ "For how much seconds after unstake user should be able to claim rewards"
1279
+ ],
758
1280
  "type": "u64"
759
1281
  },
760
1282
  {
761
1283
  "name": "_buffer",
762
- "docs": ["Buffer for additional fields"],
1284
+ "docs": [
1285
+ "Buffer for additional fields"
1286
+ ],
763
1287
  "type": {
764
- "array": ["u8", 48]
1288
+ "array": [
1289
+ "u8",
1290
+ 48
1291
+ ]
765
1292
  }
766
1293
  }
767
1294
  ]
@@ -774,54 +1301,98 @@
774
1301
  "fields": [
775
1302
  {
776
1303
  "name": "nonce",
777
- "docs": ["Nonce to differentiate stakes for the same pool"],
1304
+ "docs": [
1305
+ "Nonce to differentiate stakes for the same pool"
1306
+ ],
778
1307
  "type": "u32"
779
1308
  },
780
1309
  {
781
1310
  "name": "stake_pool",
782
- "docs": ["Stake Pool for which tokens were staked"],
1311
+ "docs": [
1312
+ "Stake Pool for which tokens were staked"
1313
+ ],
783
1314
  "type": "pubkey"
784
1315
  },
785
1316
  {
786
1317
  "name": "payer",
787
- "docs": ["Original Owner of Staked tokens"],
1318
+ "docs": [
1319
+ "Original Owner of Staked tokens"
1320
+ ],
788
1321
  "type": "pubkey"
789
1322
  },
790
1323
  {
791
1324
  "name": "authority",
792
- "docs": ["Authority of the Entry"],
1325
+ "docs": [
1326
+ "Authority of the Entry"
1327
+ ],
793
1328
  "type": "pubkey"
794
1329
  },
795
1330
  {
796
1331
  "name": "amount",
797
- "docs": ["Amount of deposited funds"],
1332
+ "docs": [
1333
+ "Amount of deposited funds"
1334
+ ],
798
1335
  "type": "u64"
799
1336
  },
800
1337
  {
801
1338
  "name": "duration",
802
- "docs": ["Duration of the lockup"],
1339
+ "docs": [
1340
+ "Duration of the lockup"
1341
+ ],
803
1342
  "type": "u64"
804
1343
  },
805
1344
  {
806
1345
  "name": "effective_amount",
807
- "docs": ["Effective Amount staked, does not equal to deposited amount, accounts for Stake Weight"],
1346
+ "docs": [
1347
+ "Effective Amount staked, does not equal to deposited amount, accounts for Stake Weight"
1348
+ ],
808
1349
  "type": "u128"
809
1350
  },
810
1351
  {
811
1352
  "name": "created_ts",
812
- "docs": ["Timestamp when Deposit was made"],
1353
+ "docs": [
1354
+ "Timestamp when Deposit was made"
1355
+ ],
813
1356
  "type": "u64"
814
1357
  },
815
1358
  {
816
1359
  "name": "closed_ts",
817
- "docs": ["Flag whether entry has been already unstaked"],
1360
+ "docs": [
1361
+ "Timestamp when entry has been closed"
1362
+ ],
1363
+ "type": "u64"
1364
+ },
1365
+ {
1366
+ "name": "prior_total_effective_stake",
1367
+ "docs": [
1368
+ "Total effective stake at the time of staking"
1369
+ ],
1370
+ "type": "u128"
1371
+ },
1372
+ {
1373
+ "name": "unstake_ts",
1374
+ "docs": [
1375
+ "Timestamp when unstake was requested, will be used in case `unstake_period` is set"
1376
+ ],
818
1377
  "type": "u64"
819
1378
  },
1379
+ {
1380
+ "name": "is_sponsored",
1381
+ "docs": [
1382
+ "Whether the entry rent has been sponsored by the rent vault"
1383
+ ],
1384
+ "type": "bool"
1385
+ },
820
1386
  {
821
1387
  "name": "_buffer",
822
- "docs": ["Buffer for additional fields"],
1388
+ "docs": [
1389
+ "Buffer for additional fields"
1390
+ ],
823
1391
  "type": {
824
- "array": ["u8", 64]
1392
+ "array": [
1393
+ "u8",
1394
+ 39
1395
+ ]
825
1396
  }
826
1397
  }
827
1398
  ]
@@ -834,27 +1405,37 @@
834
1405
  "fields": [
835
1406
  {
836
1407
  "name": "bump",
837
- "docs": ["Bump Seed used to sign transactions"],
1408
+ "docs": [
1409
+ "Bump Seed used to sign transactions"
1410
+ ],
838
1411
  "type": "u8"
839
1412
  },
840
1413
  {
841
1414
  "name": "nonce",
842
- "docs": ["Nonce to differentiate pools for the same mint"],
1415
+ "docs": [
1416
+ "Nonce to differentiate pools for the same mint"
1417
+ ],
843
1418
  "type": "u8"
844
1419
  },
845
1420
  {
846
1421
  "name": "mint",
847
- "docs": ["Mint of the Stake Pool"],
1422
+ "docs": [
1423
+ "Mint of the Stake Pool"
1424
+ ],
848
1425
  "type": "pubkey"
849
1426
  },
850
1427
  {
851
1428
  "name": "creator",
852
- "docs": ["Initial Creator"],
1429
+ "docs": [
1430
+ "Initial Creator"
1431
+ ],
853
1432
  "type": "pubkey"
854
1433
  },
855
1434
  {
856
1435
  "name": "authority",
857
- "docs": ["Current authority"],
1436
+ "docs": [
1437
+ "Current authority"
1438
+ ],
858
1439
  "type": "pubkey"
859
1440
  },
860
1441
  {
@@ -879,32 +1460,44 @@
879
1460
  },
880
1461
  {
881
1462
  "name": "min_duration",
882
- "docs": ["Min Duration of stake in seconds"],
1463
+ "docs": [
1464
+ "Min Duration of stake in seconds"
1465
+ ],
883
1466
  "type": "u64"
884
1467
  },
885
1468
  {
886
1469
  "name": "max_duration",
887
- "docs": ["Max Duration of stake in seconds, the more duration, the more weight the stake has"],
1470
+ "docs": [
1471
+ "Max Duration of stake in seconds, the more duration, the more weight the stake has"
1472
+ ],
888
1473
  "type": "u64"
889
1474
  },
890
1475
  {
891
1476
  "name": "permissionless",
892
- "docs": ["Whether anyone can add Reward Pools or just admin"],
1477
+ "docs": [
1478
+ "Whether anyone can add Reward Pools or just admin"
1479
+ ],
893
1480
  "type": "bool"
894
1481
  },
895
1482
  {
896
1483
  "name": "vault",
897
- "docs": ["Escrow Account that stores staked tokens"],
1484
+ "docs": [
1485
+ "Escrow Account that stores staked tokens"
1486
+ ],
898
1487
  "type": "pubkey"
899
1488
  },
900
1489
  {
901
1490
  "name": "stake_mint",
902
- "docs": ["Stake Mint, will be returned in exchange for stake tokens"],
1491
+ "docs": [
1492
+ "Stake Mint, will be returned in exchange for stake tokens"
1493
+ ],
903
1494
  "type": "pubkey"
904
1495
  },
905
1496
  {
906
1497
  "name": "total_stake",
907
- "docs": ["Total number of Staked tokens"],
1498
+ "docs": [
1499
+ "Total number of Staked tokens"
1500
+ ],
908
1501
  "type": "u64"
909
1502
  },
910
1503
  {
@@ -915,15 +1508,34 @@
915
1508
  ],
916
1509
  "type": "u128"
917
1510
  },
1511
+ {
1512
+ "name": "freeze_stake_mint",
1513
+ "docs": [
1514
+ "Whether we should freeze stake mint token accounts"
1515
+ ],
1516
+ "type": "bool"
1517
+ },
1518
+ {
1519
+ "name": "unstake_period",
1520
+ "docs": [
1521
+ "Period for unstaking, if set unstake at first should be requested, and the real unstake can only happen after this period"
1522
+ ],
1523
+ "type": "u64"
1524
+ },
918
1525
  {
919
1526
  "name": "_buffer",
920
- "docs": ["Buffer for additional fields"],
1527
+ "docs": [
1528
+ "Buffer for additional fields"
1529
+ ],
921
1530
  "type": {
922
- "array": ["u8", 64]
1531
+ "array": [
1532
+ "u8",
1533
+ 55
1534
+ ]
923
1535
  }
924
1536
  }
925
1537
  ]
926
1538
  }
927
1539
  }
928
1540
  ]
929
- }
1541
+ }