pub struct AddSolver {
pub program_id: Pubkey,
pub authority: Pubkey,
pub payer: Pubkey,
pub state_pda: Pubkey,
pub solver: Pubkey,
}Expand description
Builder for an AddSolver instruction.
authority authorizes the change and must be the state PDA’s current solver
authority; 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: [authority (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§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