@streamflow/staking 7.4.14 → 7.4.15

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.
@@ -9,21 +9,36 @@
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": [
14
23
  {
15
24
  "name": "authority",
16
- "docs": ["Current Authority"],
25
+ "docs": [
26
+ "Current Authority"
27
+ ],
17
28
  "writable": true,
18
29
  "signer": true,
19
- "relations": ["reward_pool"]
30
+ "relations": [
31
+ "reward_pool"
32
+ ]
20
33
  },
21
34
  {
22
35
  "name": "new_authority"
23
36
  },
24
37
  {
25
38
  "name": "reward_pool",
26
- "docs": ["Stake Pool"],
39
+ "docs": [
40
+ "Stake Pool"
41
+ ],
27
42
  "writable": true
28
43
  }
29
44
  ],
@@ -31,26 +46,54 @@
31
46
  },
32
47
  {
33
48
  "name": "claim_rewards",
34
- "discriminator": [4, 144, 132, 71, 116, 23, 151, 80],
49
+ "discriminator": [
50
+ 4,
51
+ 144,
52
+ 132,
53
+ 71,
54
+ 116,
55
+ 23,
56
+ 151,
57
+ 80
58
+ ],
35
59
  "accounts": [
36
60
  {
37
61
  "name": "reward_pool",
38
- "docs": ["Reward Pool"],
62
+ "docs": [
63
+ "Reward Pool"
64
+ ],
39
65
  "writable": true
40
66
  },
41
67
  {
42
68
  "name": "stake_entry",
43
- "docs": ["Stake Entry for which rewards are being claimed"]
69
+ "docs": [
70
+ "Stake Entry for which rewards are being claimed"
71
+ ]
44
72
  },
45
73
  {
46
74
  "name": "reward_entry",
47
- "docs": ["Reward Entry that stores metadata about claimed rewards"],
75
+ "docs": [
76
+ "Reward Entry that stores metadata about claimed rewards"
77
+ ],
48
78
  "writable": true,
49
79
  "pda": {
50
80
  "seeds": [
51
81
  {
52
82
  "kind": "const",
53
- "value": [114, 101, 119, 97, 114, 100, 45, 101, 110, 116, 114, 121]
83
+ "value": [
84
+ 114,
85
+ 101,
86
+ 119,
87
+ 97,
88
+ 114,
89
+ 100,
90
+ 45,
91
+ 101,
92
+ 110,
93
+ 116,
94
+ 114,
95
+ 121
96
+ ]
54
97
  },
55
98
  {
56
99
  "kind": "account",
@@ -65,25 +108,37 @@
65
108
  },
66
109
  {
67
110
  "name": "vault",
68
- "docs": ["Reward Pool Vault that stores tokens"],
111
+ "docs": [
112
+ "Reward Pool Vault that stores tokens"
113
+ ],
69
114
  "writable": true,
70
- "relations": ["reward_pool"]
115
+ "relations": [
116
+ "reward_pool"
117
+ ]
71
118
  },
72
119
  {
73
120
  "name": "to",
74
- "docs": ["Account to send the reward tokens to."],
121
+ "docs": [
122
+ "Account to send the reward tokens to."
123
+ ],
75
124
  "writable": true
76
125
  },
77
126
  {
78
127
  "name": "claimant",
79
- "docs": ["Who is claiming the tokens."],
128
+ "docs": [
129
+ "Who is claiming the tokens."
130
+ ],
80
131
  "writable": true,
81
132
  "signer": true
82
133
  },
83
134
  {
84
135
  "name": "mint",
85
- "docs": ["The mint to claim."],
86
- "relations": ["reward_pool"]
136
+ "docs": [
137
+ "The mint to claim."
138
+ ],
139
+ "relations": [
140
+ "reward_pool"
141
+ ]
87
142
  },
88
143
  {
89
144
  "name": "token_program"
@@ -97,25 +152,53 @@
97
152
  },
98
153
  {
99
154
  "name": "close_entry",
100
- "discriminator": [132, 26, 202, 145, 190, 37, 114, 67],
155
+ "discriminator": [
156
+ 132,
157
+ 26,
158
+ 202,
159
+ 145,
160
+ 190,
161
+ 37,
162
+ 114,
163
+ 67
164
+ ],
101
165
  "accounts": [
102
166
  {
103
167
  "name": "reward_pool",
104
- "docs": ["Reward Pool"]
168
+ "docs": [
169
+ "Reward Pool"
170
+ ]
105
171
  },
106
172
  {
107
173
  "name": "stake_entry",
108
- "docs": ["Stake Entry for which rewards are being claimed"]
174
+ "docs": [
175
+ "Stake Entry for which rewards are being claimed"
176
+ ]
109
177
  },
110
178
  {
111
179
  "name": "reward_entry",
112
- "docs": ["Reward Entry that stores metadata about claimed rewards"],
180
+ "docs": [
181
+ "Reward Entry that stores metadata about claimed rewards"
182
+ ],
113
183
  "writable": true,
114
184
  "pda": {
115
185
  "seeds": [
116
186
  {
117
187
  "kind": "const",
118
- "value": [114, 101, 119, 97, 114, 100, 45, 101, 110, 116, 114, 121]
188
+ "value": [
189
+ 114,
190
+ 101,
191
+ 119,
192
+ 97,
193
+ 114,
194
+ 100,
195
+ 45,
196
+ 101,
197
+ 110,
198
+ 116,
199
+ 114,
200
+ 121
201
+ ]
119
202
  },
120
203
  {
121
204
  "kind": "account",
@@ -142,30 +225,63 @@
142
225
  },
143
226
  {
144
227
  "name": "create_entry",
145
- "discriminator": [248, 207, 142, 242, 66, 162, 150, 16],
228
+ "discriminator": [
229
+ 248,
230
+ 207,
231
+ 142,
232
+ 242,
233
+ 66,
234
+ 162,
235
+ 150,
236
+ 16
237
+ ],
146
238
  "accounts": [
147
239
  {
148
240
  "name": "stake_pool",
149
- "docs": ["Original Stake Pool"],
150
- "relations": ["reward_pool", "stake_entry"]
241
+ "docs": [
242
+ "Original Stake Pool"
243
+ ],
244
+ "relations": [
245
+ "reward_pool",
246
+ "stake_entry"
247
+ ]
151
248
  },
152
249
  {
153
250
  "name": "reward_pool",
154
- "docs": ["Reward Pool"]
251
+ "docs": [
252
+ "Reward Pool"
253
+ ]
155
254
  },
156
255
  {
157
256
  "name": "stake_entry",
158
- "docs": ["Stake Entry for which rewards are being claimed"]
257
+ "docs": [
258
+ "Stake Entry for which rewards are being claimed"
259
+ ]
159
260
  },
160
261
  {
161
262
  "name": "reward_entry",
162
- "docs": ["Reward Entry that stores metadata about claimed rewards"],
263
+ "docs": [
264
+ "Reward Entry that stores metadata about claimed rewards"
265
+ ],
163
266
  "writable": true,
164
267
  "pda": {
165
268
  "seeds": [
166
269
  {
167
270
  "kind": "const",
168
- "value": [114, 101, 119, 97, 114, 100, 45, 101, 110, 116, 114, 121]
271
+ "value": [
272
+ 114,
273
+ 101,
274
+ 119,
275
+ 97,
276
+ 114,
277
+ 100,
278
+ 45,
279
+ 101,
280
+ 110,
281
+ 116,
282
+ 114,
283
+ 121
284
+ ]
169
285
  },
170
286
  {
171
287
  "kind": "account",
@@ -180,7 +296,9 @@
180
296
  },
181
297
  {
182
298
  "name": "payer",
183
- "docs": ["Rent payer"],
299
+ "docs": [
300
+ "Rent payer"
301
+ ],
184
302
  "writable": true,
185
303
  "signer": true
186
304
  },
@@ -196,21 +314,46 @@
196
314
  },
197
315
  {
198
316
  "name": "create_pool",
199
- "discriminator": [233, 146, 209, 142, 207, 104, 64, 188],
317
+ "discriminator": [
318
+ 233,
319
+ 146,
320
+ 209,
321
+ 142,
322
+ 207,
323
+ 104,
324
+ 64,
325
+ 188
326
+ ],
200
327
  "accounts": [
201
328
  {
202
329
  "name": "stake_pool",
203
- "docs": ["Stake Pool to Which Reward Pool is being added"]
330
+ "docs": [
331
+ "Stake Pool to Which Reward Pool is being added"
332
+ ]
204
333
  },
205
334
  {
206
335
  "name": "reward_pool",
207
- "docs": ["Reward Pool to add"],
336
+ "docs": [
337
+ "Reward Pool to add"
338
+ ],
208
339
  "writable": true,
209
340
  "pda": {
210
341
  "seeds": [
211
342
  {
212
343
  "kind": "const",
213
- "value": [114, 101, 119, 97, 114, 100, 45, 112, 111, 111, 108]
344
+ "value": [
345
+ 114,
346
+ 101,
347
+ 119,
348
+ 97,
349
+ 114,
350
+ 100,
351
+ 45,
352
+ 112,
353
+ 111,
354
+ 111,
355
+ 108
356
+ ]
214
357
  },
215
358
  {
216
359
  "kind": "account",
@@ -229,17 +372,34 @@
229
372
  },
230
373
  {
231
374
  "name": "mint",
232
- "docs": ["Mint used for rewards"]
375
+ "docs": [
376
+ "Mint used for rewards"
377
+ ]
233
378
  },
234
379
  {
235
380
  "name": "vault",
236
- "docs": ["Escrow Account that will store the tokens"],
381
+ "docs": [
382
+ "Escrow Account that will store the tokens"
383
+ ],
237
384
  "writable": true,
238
385
  "pda": {
239
386
  "seeds": [
240
387
  {
241
388
  "kind": "const",
242
- "value": [114, 101, 119, 97, 114, 100, 45, 118, 97, 117, 108, 116]
389
+ "value": [
390
+ 114,
391
+ 101,
392
+ 119,
393
+ 97,
394
+ 114,
395
+ 100,
396
+ 45,
397
+ 118,
398
+ 97,
399
+ 117,
400
+ 108,
401
+ 116
402
+ ]
243
403
  },
244
404
  {
245
405
  "kind": "account",
@@ -250,7 +410,9 @@
250
410
  },
251
411
  {
252
412
  "name": "creator",
253
- "docs": ["Reward Pool creator"],
413
+ "docs": [
414
+ "Reward Pool creator"
415
+ ],
254
416
  "writable": true,
255
417
  "signer": true
256
418
  },
@@ -289,33 +451,56 @@
289
451
  },
290
452
  {
291
453
  "name": "fund_pool",
292
- "discriminator": [36, 57, 233, 176, 181, 20, 87, 159],
454
+ "discriminator": [
455
+ 36,
456
+ 57,
457
+ 233,
458
+ 176,
459
+ 181,
460
+ 20,
461
+ 87,
462
+ 159
463
+ ],
293
464
  "accounts": [
294
465
  {
295
466
  "name": "funder",
296
- "docs": ["Reward Pool funder"],
467
+ "docs": [
468
+ "Reward Pool funder"
469
+ ],
297
470
  "writable": true,
298
471
  "signer": true
299
472
  },
300
473
  {
301
474
  "name": "from",
302
- "docs": ["Token Account from which tokens will be transferred"],
475
+ "docs": [
476
+ "Token Account from which tokens will be transferred"
477
+ ],
303
478
  "writable": true
304
479
  },
305
480
  {
306
481
  "name": "vault",
307
- "docs": ["Reward Pool Vault that stores tokens"],
482
+ "docs": [
483
+ "Reward Pool Vault that stores tokens"
484
+ ],
308
485
  "writable": true,
309
- "relations": ["reward_pool"]
486
+ "relations": [
487
+ "reward_pool"
488
+ ]
310
489
  },
311
490
  {
312
491
  "name": "mint",
313
- "docs": ["Mint of reward tokens"],
314
- "relations": ["reward_pool"]
492
+ "docs": [
493
+ "Mint of reward tokens"
494
+ ],
495
+ "relations": [
496
+ "reward_pool"
497
+ ]
315
498
  },
316
499
  {
317
500
  "name": "reward_pool",
318
- "docs": ["Stake Pool"],
501
+ "docs": [
502
+ "Stake Pool"
503
+ ],
319
504
  "writable": true
320
505
  },
321
506
  {
@@ -344,20 +529,59 @@
344
529
  "program": {
345
530
  "kind": "const",
346
531
  "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
532
+ 140,
533
+ 151,
534
+ 37,
535
+ 143,
536
+ 78,
537
+ 36,
538
+ 137,
539
+ 241,
540
+ 187,
541
+ 61,
542
+ 16,
543
+ 41,
544
+ 20,
545
+ 142,
546
+ 13,
547
+ 131,
548
+ 11,
549
+ 90,
550
+ 19,
551
+ 153,
552
+ 218,
553
+ 255,
554
+ 16,
555
+ 132,
556
+ 4,
557
+ 142,
558
+ 123,
559
+ 216,
560
+ 219,
561
+ 233,
562
+ 248,
563
+ 89
349
564
  ]
350
565
  }
351
566
  }
352
567
  },
353
568
  {
354
569
  "name": "config",
355
- "docs": ["Fee Configuration"],
570
+ "docs": [
571
+ "Fee Configuration"
572
+ ],
356
573
  "pda": {
357
574
  "seeds": [
358
575
  {
359
576
  "kind": "const",
360
- "value": [99, 111, 110, 102, 105, 103]
577
+ "value": [
578
+ 99,
579
+ 111,
580
+ 110,
581
+ 102,
582
+ 105,
583
+ 103
584
+ ]
361
585
  }
362
586
  ],
363
587
  "program": {
@@ -368,13 +592,25 @@
368
592
  },
369
593
  {
370
594
  "name": "fee_value",
371
- "docs": ["Fee Value for the funder account"],
595
+ "docs": [
596
+ "Fee Value for the funder account"
597
+ ],
372
598
  "optional": true,
373
599
  "pda": {
374
600
  "seeds": [
375
601
  {
376
602
  "kind": "const",
377
- "value": [102, 101, 101, 45, 118, 97, 108, 117, 101]
603
+ "value": [
604
+ 102,
605
+ 101,
606
+ 101,
607
+ 45,
608
+ 118,
609
+ 97,
610
+ 108,
611
+ 117,
612
+ 101
613
+ ]
378
614
  },
379
615
  {
380
616
  "kind": "account",
@@ -404,23 +640,42 @@
404
640
  },
405
641
  {
406
642
  "name": "update_pool",
407
- "discriminator": [239, 214, 170, 78, 36, 35, 30, 34],
643
+ "discriminator": [
644
+ 239,
645
+ 214,
646
+ 170,
647
+ 78,
648
+ 36,
649
+ 35,
650
+ 30,
651
+ 34
652
+ ],
408
653
  "accounts": [
409
654
  {
410
655
  "name": "authority",
411
- "docs": ["Current Authority"],
656
+ "docs": [
657
+ "Current Authority"
658
+ ],
412
659
  "writable": true,
413
660
  "signer": true,
414
- "relations": ["reward_pool"]
661
+ "relations": [
662
+ "reward_pool"
663
+ ]
415
664
  },
416
665
  {
417
666
  "name": "stake_pool",
418
- "docs": ["Stake Pool to Which Reward Pool belongs"],
419
- "relations": ["reward_pool"]
667
+ "docs": [
668
+ "Stake Pool to Which Reward Pool belongs"
669
+ ],
670
+ "relations": [
671
+ "reward_pool"
672
+ ]
420
673
  },
421
674
  {
422
675
  "name": "reward_pool",
423
- "docs": ["Reward Pool"],
676
+ "docs": [
677
+ "Reward Pool"
678
+ ],
424
679
  "writable": true
425
680
  }
426
681
  ],
@@ -443,27 +698,81 @@
443
698
  "accounts": [
444
699
  {
445
700
  "name": "Config",
446
- "discriminator": [155, 12, 170, 224, 30, 250, 204, 130]
701
+ "discriminator": [
702
+ 155,
703
+ 12,
704
+ 170,
705
+ 224,
706
+ 30,
707
+ 250,
708
+ 204,
709
+ 130
710
+ ]
447
711
  },
448
712
  {
449
713
  "name": "FeeValue",
450
- "discriminator": [10, 188, 89, 64, 4, 183, 231, 0]
714
+ "discriminator": [
715
+ 10,
716
+ 188,
717
+ 89,
718
+ 64,
719
+ 4,
720
+ 183,
721
+ 231,
722
+ 0
723
+ ]
451
724
  },
452
725
  {
453
726
  "name": "RewardEntry",
454
- "discriminator": [208, 191, 173, 14, 213, 84, 179, 162]
727
+ "discriminator": [
728
+ 208,
729
+ 191,
730
+ 173,
731
+ 14,
732
+ 213,
733
+ 84,
734
+ 179,
735
+ 162
736
+ ]
455
737
  },
456
738
  {
457
739
  "name": "RewardPool",
458
- "discriminator": [134, 121, 197, 211, 133, 154, 82, 32]
740
+ "discriminator": [
741
+ 134,
742
+ 121,
743
+ 197,
744
+ 211,
745
+ 133,
746
+ 154,
747
+ 82,
748
+ 32
749
+ ]
459
750
  },
460
751
  {
461
752
  "name": "StakeEntry",
462
- "discriminator": [187, 127, 9, 35, 155, 68, 86, 40]
753
+ "discriminator": [
754
+ 187,
755
+ 127,
756
+ 9,
757
+ 35,
758
+ 155,
759
+ 68,
760
+ 86,
761
+ 40
762
+ ]
463
763
  },
464
764
  {
465
765
  "name": "StakePool",
466
- "discriminator": [121, 34, 206, 21, 79, 127, 255, 28]
766
+ "discriminator": [
767
+ 121,
768
+ 34,
769
+ 206,
770
+ 21,
771
+ 79,
772
+ 127,
773
+ 255,
774
+ 28
775
+ ]
467
776
  }
468
777
  ],
469
778
  "errors": [
@@ -551,33 +860,52 @@
551
860
  "fields": [
552
861
  {
553
862
  "name": "authority",
554
- "docs": ["Fee Manager authority"],
863
+ "docs": [
864
+ "Fee Manager authority"
865
+ ],
555
866
  "type": "pubkey"
556
867
  },
557
868
  {
558
869
  "name": "streamflow_fee",
559
- "docs": ["Default fee"],
870
+ "docs": [
871
+ "Default fee"
872
+ ],
560
873
  "type": "u64"
561
874
  },
562
875
  {
563
876
  "name": "_buffer_1",
564
- "docs": ["Buffer for additional fields"],
877
+ "docs": [
878
+ "Buffer for additional fields"
879
+ ],
565
880
  "type": {
566
- "array": ["u8", 64]
881
+ "array": [
882
+ "u8",
883
+ 64
884
+ ]
567
885
  }
568
886
  },
569
887
  {
570
888
  "name": "_buffer_2",
571
- "docs": ["Buffer for additional fields"],
889
+ "docs": [
890
+ "Buffer for additional fields"
891
+ ],
572
892
  "type": {
573
- "array": ["u8", 64]
893
+ "array": [
894
+ "u8",
895
+ 64
896
+ ]
574
897
  }
575
898
  },
576
899
  {
577
900
  "name": "_buffer_3",
578
- "docs": ["Buffer for additional fields"],
901
+ "docs": [
902
+ "Buffer for additional fields"
903
+ ],
579
904
  "type": {
580
- "array": ["u8", 64]
905
+ "array": [
906
+ "u8",
907
+ 64
908
+ ]
581
909
  }
582
910
  }
583
911
  ]
@@ -594,9 +922,14 @@
594
922
  },
595
923
  {
596
924
  "name": "_buffer",
597
- "docs": ["Buffer for additional fields"],
925
+ "docs": [
926
+ "Buffer for additional fields"
927
+ ],
598
928
  "type": {
599
- "array": ["u8", 64]
929
+ "array": [
930
+ "u8",
931
+ 64
932
+ ]
600
933
  }
601
934
  }
602
935
  ]
@@ -609,49 +942,70 @@
609
942
  "fields": [
610
943
  {
611
944
  "name": "reward_pool",
612
- "docs": ["Reward Pool"],
945
+ "docs": [
946
+ "Reward Pool"
947
+ ],
613
948
  "type": "pubkey"
614
949
  },
615
950
  {
616
951
  "name": "stake_entry",
617
- "docs": ["Stake Entry for which reward entry was initialized"],
952
+ "docs": [
953
+ "Stake Entry for which reward entry was initialized"
954
+ ],
618
955
  "type": "pubkey"
619
956
  },
620
957
  {
621
958
  "name": "created_ts",
622
- "docs": ["Timestamp when reward entry has been created"],
959
+ "docs": [
960
+ "Timestamp when reward entry has been created"
961
+ ],
623
962
  "type": "u64"
624
963
  },
625
964
  {
626
965
  "name": "accounted_amount",
627
- "docs": ["Sum of accounted amounts, used to correctly issue rewards in case of precision loss"],
966
+ "docs": [
967
+ "Sum of accounted amounts, used to correctly issue rewards in case of precision loss"
968
+ ],
628
969
  "type": "u128"
629
970
  },
630
971
  {
631
972
  "name": "claimed_amount",
632
- "docs": ["Sum of already claimed rewards"],
973
+ "docs": [
974
+ "Sum of already claimed rewards"
975
+ ],
633
976
  "type": "u64"
634
977
  },
635
978
  {
636
979
  "name": "last_accounted_ts",
637
- "docs": ["Timestamp when rewards have been claimed last time"],
980
+ "docs": [
981
+ "Timestamp when rewards have been claimed last time"
982
+ ],
638
983
  "type": "u64"
639
984
  },
640
985
  {
641
986
  "name": "last_reward_amount",
642
- "docs": ["Reward amount used on last claim or entry creation"],
987
+ "docs": [
988
+ "Reward amount used on last claim or entry creation"
989
+ ],
643
990
  "type": "u64"
644
991
  },
645
992
  {
646
993
  "name": "last_reward_period",
647
- "docs": ["Reward Period used on last claim or entry creation"],
994
+ "docs": [
995
+ "Reward Period used on last claim or entry creation"
996
+ ],
648
997
  "type": "u64"
649
998
  },
650
999
  {
651
1000
  "name": "_buffer",
652
- "docs": ["Buffer for additional fields"],
1001
+ "docs": [
1002
+ "Buffer for additional fields"
1003
+ ],
653
1004
  "type": {
654
- "array": ["u8", 32]
1005
+ "array": [
1006
+ "u8",
1007
+ 32
1008
+ ]
655
1009
  }
656
1010
  }
657
1011
  ]
@@ -664,32 +1018,44 @@
664
1018
  "fields": [
665
1019
  {
666
1020
  "name": "bump",
667
- "docs": ["Bump Seed used to sign transactions"],
1021
+ "docs": [
1022
+ "Bump Seed used to sign transactions"
1023
+ ],
668
1024
  "type": "u8"
669
1025
  },
670
1026
  {
671
1027
  "name": "nonce",
672
- "docs": ["Nonce to differentiate pools for the same mint"],
1028
+ "docs": [
1029
+ "Nonce to differentiate pools for the same mint"
1030
+ ],
673
1031
  "type": "u8"
674
1032
  },
675
1033
  {
676
1034
  "name": "stake_pool",
677
- "docs": ["Stake Pool for which Reward Pool was added"],
1035
+ "docs": [
1036
+ "Stake Pool for which Reward Pool was added"
1037
+ ],
678
1038
  "type": "pubkey"
679
1039
  },
680
1040
  {
681
1041
  "name": "mint",
682
- "docs": ["Mint of Reward Pool"],
1042
+ "docs": [
1043
+ "Mint of Reward Pool"
1044
+ ],
683
1045
  "type": "pubkey"
684
1046
  },
685
1047
  {
686
1048
  "name": "creator",
687
- "docs": ["Creator of the Pool"],
1049
+ "docs": [
1050
+ "Creator of the Pool"
1051
+ ],
688
1052
  "type": "pubkey"
689
1053
  },
690
1054
  {
691
1055
  "name": "authority",
692
- "docs": ["Current authority"],
1056
+ "docs": [
1057
+ "Current authority"
1058
+ ],
693
1059
  "type": "pubkey"
694
1060
  },
695
1061
  {
@@ -704,64 +1070,91 @@
704
1070
  },
705
1071
  {
706
1072
  "name": "reward_period",
707
- "docs": ["Period of Rewards distribution in seconds"],
1073
+ "docs": [
1074
+ "Period of Rewards distribution in seconds"
1075
+ ],
708
1076
  "type": "u64"
709
1077
  },
710
1078
  {
711
1079
  "name": "permissionless",
712
- "docs": ["Whether anyone can fund the Pool"],
1080
+ "docs": [
1081
+ "Whether anyone can fund the Pool"
1082
+ ],
713
1083
  "type": "bool"
714
1084
  },
715
1085
  {
716
1086
  "name": "last_reward_amount",
717
- "docs": ["`reward_amount` used before the last update"],
1087
+ "docs": [
1088
+ "`reward_amount` used before the last update"
1089
+ ],
718
1090
  "type": "u64"
719
1091
  },
720
1092
  {
721
1093
  "name": "last_reward_period",
722
- "docs": ["`reward_period` used before the last update"],
1094
+ "docs": [
1095
+ "`reward_period` used before the last update"
1096
+ ],
723
1097
  "type": "u64"
724
1098
  },
725
1099
  {
726
1100
  "name": "last_amount_update_ts",
727
- "docs": ["Time when `reward_amount` was updated the last time"],
1101
+ "docs": [
1102
+ "Time when `reward_amount` was updated the last time"
1103
+ ],
728
1104
  "type": "u64"
729
1105
  },
730
1106
  {
731
1107
  "name": "last_period_update_ts",
732
- "docs": ["Time when `reward_period` was updated the last time"],
1108
+ "docs": [
1109
+ "Time when `reward_period` was updated the last time"
1110
+ ],
733
1111
  "type": "u64"
734
1112
  },
735
1113
  {
736
1114
  "name": "vault",
737
- "docs": ["Escrow Account that stores reward tokens"],
1115
+ "docs": [
1116
+ "Escrow Account that stores reward tokens"
1117
+ ],
738
1118
  "type": "pubkey"
739
1119
  },
740
1120
  {
741
1121
  "name": "funded_amount",
742
- "docs": ["Total funded amount"],
1122
+ "docs": [
1123
+ "Total funded amount"
1124
+ ],
743
1125
  "type": "u64"
744
1126
  },
745
1127
  {
746
1128
  "name": "claimed_amount",
747
- "docs": ["Total number of rewards claimed"],
1129
+ "docs": [
1130
+ "Total number of rewards claimed"
1131
+ ],
748
1132
  "type": "u64"
749
1133
  },
750
1134
  {
751
1135
  "name": "created_ts",
752
- "docs": ["Time when Reward Pool was created"],
1136
+ "docs": [
1137
+ "Time when Reward Pool was created"
1138
+ ],
753
1139
  "type": "u64"
754
1140
  },
755
1141
  {
756
1142
  "name": "last_claim_period",
757
- "docs": ["For how much seconds after unstake user should be able to claim rewards"],
1143
+ "docs": [
1144
+ "For how much seconds after unstake user should be able to claim rewards"
1145
+ ],
758
1146
  "type": "u64"
759
1147
  },
760
1148
  {
761
1149
  "name": "_buffer",
762
- "docs": ["Buffer for additional fields"],
1150
+ "docs": [
1151
+ "Buffer for additional fields"
1152
+ ],
763
1153
  "type": {
764
- "array": ["u8", 48]
1154
+ "array": [
1155
+ "u8",
1156
+ 48
1157
+ ]
765
1158
  }
766
1159
  }
767
1160
  ]
@@ -774,54 +1167,77 @@
774
1167
  "fields": [
775
1168
  {
776
1169
  "name": "nonce",
777
- "docs": ["Nonce to differentiate stakes for the same pool"],
1170
+ "docs": [
1171
+ "Nonce to differentiate stakes for the same pool"
1172
+ ],
778
1173
  "type": "u32"
779
1174
  },
780
1175
  {
781
1176
  "name": "stake_pool",
782
- "docs": ["Stake Pool for which tokens were staked"],
1177
+ "docs": [
1178
+ "Stake Pool for which tokens were staked"
1179
+ ],
783
1180
  "type": "pubkey"
784
1181
  },
785
1182
  {
786
1183
  "name": "payer",
787
- "docs": ["Original Owner of Staked tokens"],
1184
+ "docs": [
1185
+ "Original Owner of Staked tokens"
1186
+ ],
788
1187
  "type": "pubkey"
789
1188
  },
790
1189
  {
791
1190
  "name": "authority",
792
- "docs": ["Authority of the Entry"],
1191
+ "docs": [
1192
+ "Authority of the Entry"
1193
+ ],
793
1194
  "type": "pubkey"
794
1195
  },
795
1196
  {
796
1197
  "name": "amount",
797
- "docs": ["Amount of deposited funds"],
1198
+ "docs": [
1199
+ "Amount of deposited funds"
1200
+ ],
798
1201
  "type": "u64"
799
1202
  },
800
1203
  {
801
1204
  "name": "duration",
802
- "docs": ["Duration of the lockup"],
1205
+ "docs": [
1206
+ "Duration of the lockup"
1207
+ ],
803
1208
  "type": "u64"
804
1209
  },
805
1210
  {
806
1211
  "name": "effective_amount",
807
- "docs": ["Effective Amount staked, does not equal to deposited amount, accounts for Stake Weight"],
1212
+ "docs": [
1213
+ "Effective Amount staked, does not equal to deposited amount, accounts for Stake Weight"
1214
+ ],
808
1215
  "type": "u128"
809
1216
  },
810
1217
  {
811
1218
  "name": "created_ts",
812
- "docs": ["Timestamp when Deposit was made"],
1219
+ "docs": [
1220
+ "Timestamp when Deposit was made"
1221
+ ],
813
1222
  "type": "u64"
814
1223
  },
815
1224
  {
816
1225
  "name": "closed_ts",
817
- "docs": ["Flag whether entry has been already unstaked"],
1226
+ "docs": [
1227
+ "Flag whether entry has been already unstaked"
1228
+ ],
818
1229
  "type": "u64"
819
1230
  },
820
1231
  {
821
1232
  "name": "_buffer",
822
- "docs": ["Buffer for additional fields"],
1233
+ "docs": [
1234
+ "Buffer for additional fields"
1235
+ ],
823
1236
  "type": {
824
- "array": ["u8", 64]
1237
+ "array": [
1238
+ "u8",
1239
+ 64
1240
+ ]
825
1241
  }
826
1242
  }
827
1243
  ]
@@ -834,27 +1250,37 @@
834
1250
  "fields": [
835
1251
  {
836
1252
  "name": "bump",
837
- "docs": ["Bump Seed used to sign transactions"],
1253
+ "docs": [
1254
+ "Bump Seed used to sign transactions"
1255
+ ],
838
1256
  "type": "u8"
839
1257
  },
840
1258
  {
841
1259
  "name": "nonce",
842
- "docs": ["Nonce to differentiate pools for the same mint"],
1260
+ "docs": [
1261
+ "Nonce to differentiate pools for the same mint"
1262
+ ],
843
1263
  "type": "u8"
844
1264
  },
845
1265
  {
846
1266
  "name": "mint",
847
- "docs": ["Mint of the Stake Pool"],
1267
+ "docs": [
1268
+ "Mint of the Stake Pool"
1269
+ ],
848
1270
  "type": "pubkey"
849
1271
  },
850
1272
  {
851
1273
  "name": "creator",
852
- "docs": ["Initial Creator"],
1274
+ "docs": [
1275
+ "Initial Creator"
1276
+ ],
853
1277
  "type": "pubkey"
854
1278
  },
855
1279
  {
856
1280
  "name": "authority",
857
- "docs": ["Current authority"],
1281
+ "docs": [
1282
+ "Current authority"
1283
+ ],
858
1284
  "type": "pubkey"
859
1285
  },
860
1286
  {
@@ -879,32 +1305,44 @@
879
1305
  },
880
1306
  {
881
1307
  "name": "min_duration",
882
- "docs": ["Min Duration of stake in seconds"],
1308
+ "docs": [
1309
+ "Min Duration of stake in seconds"
1310
+ ],
883
1311
  "type": "u64"
884
1312
  },
885
1313
  {
886
1314
  "name": "max_duration",
887
- "docs": ["Max Duration of stake in seconds, the more duration, the more weight the stake has"],
1315
+ "docs": [
1316
+ "Max Duration of stake in seconds, the more duration, the more weight the stake has"
1317
+ ],
888
1318
  "type": "u64"
889
1319
  },
890
1320
  {
891
1321
  "name": "permissionless",
892
- "docs": ["Whether anyone can add Reward Pools or just admin"],
1322
+ "docs": [
1323
+ "Whether anyone can add Reward Pools or just admin"
1324
+ ],
893
1325
  "type": "bool"
894
1326
  },
895
1327
  {
896
1328
  "name": "vault",
897
- "docs": ["Escrow Account that stores staked tokens"],
1329
+ "docs": [
1330
+ "Escrow Account that stores staked tokens"
1331
+ ],
898
1332
  "type": "pubkey"
899
1333
  },
900
1334
  {
901
1335
  "name": "stake_mint",
902
- "docs": ["Stake Mint, will be returned in exchange for stake tokens"],
1336
+ "docs": [
1337
+ "Stake Mint, will be returned in exchange for stake tokens"
1338
+ ],
903
1339
  "type": "pubkey"
904
1340
  },
905
1341
  {
906
1342
  "name": "total_stake",
907
- "docs": ["Total number of Staked tokens"],
1343
+ "docs": [
1344
+ "Total number of Staked tokens"
1345
+ ],
908
1346
  "type": "u64"
909
1347
  },
910
1348
  {
@@ -917,9 +1355,14 @@
917
1355
  },
918
1356
  {
919
1357
  "name": "_buffer",
920
- "docs": ["Buffer for additional fields"],
1358
+ "docs": [
1359
+ "Buffer for additional fields"
1360
+ ],
921
1361
  "type": {
922
- "array": ["u8", 64]
1362
+ "array": [
1363
+ "u8",
1364
+ 64
1365
+ ]
923
1366
  }
924
1367
  }
925
1368
  ]