Skip to main content

AddSolver

Struct AddSolver 

Source
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: Pubkey

Trait Implementations§

Source§

impl From<AddSolver> for Instruction

Source§

fn from(builder: AddSolver) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.