Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit a89d6cc

Browse files
committed
add documentation for instruction accounts
1 parent ffb8b65 commit a89d6cc

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

stake-pool/program/src/instruction.rs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,15 @@ pub enum StakePoolInstruction {
382382

383383
/// Create token metadata for the stake-pool token in the
384384
/// metaplex-token program
385-
///
386-
/// 0. `[w]` Stake pool
387-
/// 1. `[]` Stake pool withdraw authority
388-
/// 2. `[w]` Pool token mint account
389-
/// 3. `[w]` Payer account
385+
/// 0. `[]` Stake pool
386+
/// 1. `[]` Manager
387+
/// 2. `[]` Stake pool withdraw authority
388+
/// 3. `[]` Pool token mint account
389+
/// 4. `[]` Payer for creation of token metadata account
390+
/// 5. `[w]` Token metadata account
391+
/// 6. `[]` Metadata program id
392+
/// 7. `[]` System program id
393+
/// 8. `[]` Rent sysvar
390394
CreateTokenMetadata {
391395
#[allow(dead_code)]
392396
/// Token name
@@ -401,10 +405,11 @@ pub enum StakePoolInstruction {
401405
/// Update token metadata for the stake-pool token in the
402406
/// metaplex-token program
403407
///
404-
/// 0. `[w]` Stake pool
405-
/// 1. `[]` Stake pool withdraw authority
406-
/// 2. `[w]` Pool token mint account
407-
/// 3. `[w]` Payer account
408+
/// 0. `[]` Stake pool
409+
/// 1. `[]` Manager
410+
/// 2. `[]` Stake pool withdraw authority
411+
/// 3. `[w]` Token metadata account
412+
/// 4. `[]` Metadata program id
408413
UpdateTokenMetadata {
409414
#[allow(dead_code)]
410415
/// Token name

0 commit comments

Comments
 (0)