@streamflow/staking 8.2.2 → 8.3.1

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