Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ pub enum SinglePoolInstruction {
/// 4. `[]` System program
/// 5. `[]` Stake program
InitializePoolOnRamp,

/// (reserved for future use)
DepositSol {
/// Amount of sol to deposit
lamports: u64,
},
}

/// Creates all necessary instructions to initialize the stake pool.
Expand Down
4 changes: 4 additions & 0 deletions program/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,10 @@ impl Processor {
msg!("Instruction: InitializePoolOnRamp");
Self::process_initialize_pool_onramp(program_id, accounts)
}
SinglePoolInstruction::DepositSol { lamports: _ } => {
msg!("Instruction: DepositSol (NOT IMPLEMENTED)");
Err(ProgramError::InvalidInstructionData)
}
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions program/tests/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ fn make_basic_instruction(
SinglePoolInstruction::InitializePoolOnRamp => {
instruction::initialize_pool_onramp(&id(), &accounts.pool)
}
SinglePoolInstruction::DepositSol { .. } => {
unimplemented!()
}
}
}

Expand Down Expand Up @@ -316,6 +319,7 @@ fn consistent_account_order() {
},
),
make_basic_instruction(&accounts, SinglePoolInstruction::InitializePoolOnRamp),
// TODO SinglePoolInstruction::DepositSol
];

for instruction in instructions {
Expand Down
Loading