pub struct ExecutePublicAutomationBuilder { /* private fields */ }Expand description
Instruction builder for ExecutePublicAutomation.
§Accounts:
[writable, signer]authority[]satrush_config[writable]board[writable]round[writable]public_automation[]usd_mint[writable]automation_usd_ata[writable]board_usd_ata[writable]public_deployment[writable]miner[optional]slot_hashes (default toSysvarS1otHashes111111111111111111111111111)[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[optional]system_program (default to11111111111111111111111111111111)[]event_authority[]program
Implementations§
Source§impl ExecutePublicAutomationBuilder
impl ExecutePublicAutomationBuilder
pub fn new() -> Self
The crank (round authority); pays the deployment rent, recovered at settle.
pub fn satrush_config(&mut self, satrush_config: Address) -> &mut Self
pub fn board(&mut self, board: Address) -> &mut Self
Sourcepub fn round(&mut self, round: Address) -> &mut Self
pub fn round(&mut self, round: Address) -> &mut Self
Round the automation deploys into. Must be the board’s current round.
Sourcepub fn public_automation(&mut self, public_automation: Address) -> &mut Self
pub fn public_automation(&mut self, public_automation: Address) -> &mut Self
The automation being executed; its authority field keys the
deployment and miner PDAs below. A regular Account (boxed): its fields
feed seeds, which LazyAccount cannot do.
pub fn usd_mint(&mut self, usd_mint: Address) -> &mut Self
Sourcepub fn automation_usd_ata(&mut self, automation_usd_ata: Address) -> &mut Self
pub fn automation_usd_ata(&mut self, automation_usd_ata: Address) -> &mut Self
The automation’s escrow the deploy is funded from.
Sourcepub fn board_usd_ata(&mut self, board_usd_ata: Address) -> &mut Self
pub fn board_usd_ata(&mut self, board_usd_ata: Address) -> &mut Self
Board’s USD deposit pool.
Sourcepub fn public_deployment(&mut self, public_deployment: Address) -> &mut Self
pub fn public_deployment(&mut self, public_deployment: Address) -> &mut Self
Per-(user, round) deployment record. Init fails if the user already deployed into this round (manually or via this automation).
Sourcepub fn miner(&mut self, miner: Address) -> &mut Self
pub fn miner(&mut self, miner: Address) -> &mut Self
The user’s miner profile; guaranteed to exist by
create_public_automation, so no init_if_needed here (stack + rent).
Sourcepub fn slot_hashes(&mut self, slot_hashes: Address) -> &mut Self
pub fn slot_hashes(&mut self, slot_hashes: Address) -> &mut Self
[optional account, default to 'SysvarS1otHashes111111111111111111111111111']
because the sysvar is too large to deserialize. Feeds Random-strategy
mask generation only, but is always passed (cheap).
Sourcepub fn token_program(&mut self, token_program: Address) -> &mut Self
pub fn token_program(&mut self, token_program: Address) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
Sourcepub fn system_program(&mut self, system_program: Address) -> &mut Self
pub fn system_program(&mut self, system_program: Address) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
pub fn program(&mut self, program: Address) -> &mut Self
Sourcepub fn selection_mask(&mut self, selection_mask: u32) -> &mut Self
pub fn selection_mask(&mut self, selection_mask: u32) -> &mut Self
[optional argument]
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Clone for ExecutePublicAutomationBuilder
impl Clone for ExecutePublicAutomationBuilder
Source§fn clone(&self) -> ExecutePublicAutomationBuilder
fn clone(&self) -> ExecutePublicAutomationBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ExecutePublicAutomationBuilder
impl Default for ExecutePublicAutomationBuilder
Source§fn default() -> ExecutePublicAutomationBuilder
fn default() -> ExecutePublicAutomationBuilder
Auto Trait Implementations§
impl Freeze for ExecutePublicAutomationBuilder
impl RefUnwindSafe for ExecutePublicAutomationBuilder
impl Send for ExecutePublicAutomationBuilder
impl Sync for ExecutePublicAutomationBuilder
impl Unpin for ExecutePublicAutomationBuilder
impl UnsafeUnpin for ExecutePublicAutomationBuilder
impl UnwindSafe for ExecutePublicAutomationBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more