pub struct ThreadCreate<'info> {
pub authority: Signer<'info>,
pub payer: Signer<'info>,
pub thread: Account<'info, Thread>,
pub nonce_account: Option<Signer<'info>>,
pub recent_blockhashes: Option<UncheckedAccount<'info>>,
pub rent: Option<UncheckedAccount<'info>>,
pub system_program: Program<'info, System>,
pub fiber: Option<UncheckedAccount<'info>>,
pub fiber_program: Option<Program<'info, AntegenFiber>>,
}Expand description
Accounts required by the thread_create instruction.
For simple thread creation (no durable nonce), only authority, payer, thread, and system_program are needed. For durable nonce threads, also provide nonce_account, recent_blockhashes, and rent.
Fields§
CHECK: the authority (owner) of the thread. Allows for program ownership
payer: Signer<'info>The payer for account initializations.
thread: Account<'info, Thread>The thread to be created.
nonce_account: Option<Signer<'info>>CHECK: Nonce account (optional - only for durable nonce threads) When provided, recent_blockhashes and rent must also be provided.
recent_blockhashes: Option<UncheckedAccount<'info>>CHECK: Recent blockhashes sysvar (optional - only required for durable nonce threads)
rent: Option<UncheckedAccount<'info>>CHECK: Rent sysvar (optional - only required for durable nonce threads)
system_program: Program<'info, System>§fiber: Option<UncheckedAccount<'info>>CHECK: Fiber account (optional — only when creating with an instruction)
fiber_program: Option<Program<'info, AntegenFiber>>Fiber Program (optional — only required when fiber is provided)
Trait Implementations§
Source§impl<'info> Accounts<'info, ThreadCreateBumps> for ThreadCreate<'info>where
'info: 'info,
impl<'info> Accounts<'info, ThreadCreateBumps> for ThreadCreate<'info>where
'info: 'info,
Source§fn try_accounts(
__program_id: &Pubkey,
__accounts: &mut &'info [AccountInfo<'info>],
__ix_data: &[u8],
__bumps: &mut ThreadCreateBumps,
__reallocs: &mut BTreeSet<Pubkey>,
) -> Result<Self>
fn try_accounts( __program_id: &Pubkey, __accounts: &mut &'info [AccountInfo<'info>], __ix_data: &[u8], __bumps: &mut ThreadCreateBumps, __reallocs: &mut BTreeSet<Pubkey>, ) -> Result<Self>
Mint account from the SPL token program in a particular
field, then it should be impossible for this method to return Ok if
any other account type is given–from the SPL token program or elsewhere. Read moreSource§impl<'info> AccountsExit<'info> for ThreadCreate<'info>where
'info: 'info,
impl<'info> AccountsExit<'info> for ThreadCreate<'info>where
'info: 'info,
Source§impl<'info> Bumps for ThreadCreate<'info>where
'info: 'info,
impl<'info> Bumps for ThreadCreate<'info>where
'info: 'info,
Source§type Bumps = ThreadCreateBumps
type Bumps = ThreadCreateBumps
Source§impl<'info> DuplicateMutableAccountKeys for ThreadCreate<'info>where
'info: 'info,
impl<'info> DuplicateMutableAccountKeys for ThreadCreate<'info>where
'info: 'info,
fn duplicate_mutable_account_keys(&self) -> Vec<Pubkey>
Source§impl<'info> ToAccountInfos<'info> for ThreadCreate<'info>where
'info: 'info,
impl<'info> ToAccountInfos<'info> for ThreadCreate<'info>where
'info: 'info,
fn to_account_infos(&self) -> Vec<AccountInfo<'info>>
Source§impl<'info> ToAccountMetas for ThreadCreate<'info>
impl<'info> ToAccountMetas for ThreadCreate<'info>
Source§fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
is_signer is given as an optional override for the signer meta field.
This covers the edge case when a program-derived-address needs to relay
a transaction from a client to another program but sign the transaction
before the relay. The client cannot mark the field as a signer, and so
we have to override the is_signer meta field given by the client.