pub struct AddSolver {
pub program_id: Pubkey,
pub manager: Pubkey,
pub payer: Pubkey,
pub state_pda: Pubkey,
pub solver: Pubkey,
}Expand description
Builder for an AddSolver instruction.
manager authorizes the change and must be the state PDA’s current manager;
it signs but doesn’t pay. payer funds the extra rent and signs the funding
transfer. solver is inserted into the sorted solver list; adding one
already present fails.
Wire format: [discriminator=8, solver (32 bytes)].
Required accounts: [manager (S), payer (W,S), state_pda (W), system_program (R)]. The system program must be available for the
rent-funding Transfer CPI but doesn’t need to sit at a specific position.
Fields§
§program_id: Pubkey§manager: Pubkey§payer: Pubkey§state_pda: Pubkey§solver: PubkeyTrait Implementations§
Auto Trait Implementations§
impl Freeze for AddSolver
impl RefUnwindSafe for AddSolver
impl Send for AddSolver
impl Sync for AddSolver
impl Unpin for AddSolver
impl UnsafeUnpin for AddSolver
impl UnwindSafe for AddSolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more