@streamflow/staking 8.2.1 → 8.3.0

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