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