pub struct MultisigCreate<'info> {
pub multisig: Account<'info, Multisig>,
pub create_key: Signer<'info>,
pub creator: Signer<'info>,
pub system_program: Program<'info, System>,
}๐Deprecated since 0.4.0: This instruction is deprecated and will be removed soon. Please use
multisig_create_v2 to ensure future compatibility.Fieldsยง
ยงmultisig: Account<'info, Multisig>๐Deprecated since 0.4.0: This instruction is deprecated and will be removed soon. Please use
ยงmultisig_create_v2 to ensure future compatibility.create_key: Signer<'info>๐Deprecated since 0.4.0: This instruction is deprecated and will be removed soon. Please use
multisig_create_v2 to ensure future compatibility.An ephemeral signer that is used as a seed for the Multisig PDA. Must be a signer to prevent front-running attack by someone else but the original creator.
creator: Signer<'info>๐Deprecated since 0.4.0: This instruction is deprecated and will be removed soon. Please use
multisig_create_v2 to ensure future compatibility.The creator of the multisig.
system_program: Program<'info, System>๐Deprecated since 0.4.0: This instruction is deprecated and will be removed soon. Please use
multisig_create_v2 to ensure future compatibility.Implementationsยง
Sourceยงimpl MultisigCreate<'_>
impl MultisigCreate<'_>
Sourcepub fn multisig_create(
ctx: Context<'_, '_, '_, '_, Self>,
args: MultisigCreateArgs,
) -> Result<()>
pub fn multisig_create( ctx: Context<'_, '_, '_, '_, Self>, args: MultisigCreateArgs, ) -> Result<()>
Creates a multisig.
Trait Implementationsยง
Sourceยงimpl<'info> Accounts<'info, MultisigCreateBumps> for MultisigCreate<'info>where
'info: 'info,
impl<'info> Accounts<'info, MultisigCreateBumps> for MultisigCreate<'info>where
'info: 'info,
Sourceยงfn try_accounts(
__program_id: &Pubkey,
__accounts: &mut &'info [AccountInfo<'info>],
__ix_data: &[u8],
__bumps: &mut MultisigCreateBumps,
__reallocs: &mut BTreeSet<Pubkey>,
) -> Result<Self>
fn try_accounts( __program_id: &Pubkey, __accounts: &mut &'info [AccountInfo<'info>], __ix_data: &[u8], __bumps: &mut MultisigCreateBumps, __reallocs: &mut BTreeSet<Pubkey>, ) -> Result<Self>
Returns the validated accounts struct. What constitutes โvalidโ is
program dependent. However, users of these types should never have to
worry about account substitution attacks. For example, if a program
expects a
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 MultisigCreate<'info>where
'info: 'info,
impl<'info> AccountsExit<'info> for MultisigCreate<'info>where
'info: 'info,
Sourceยงimpl<'info> Bumps for MultisigCreate<'info>where
'info: 'info,
impl<'info> Bumps for MultisigCreate<'info>where
'info: 'info,
Sourceยงtype Bumps = MultisigCreateBumps
type Bumps = MultisigCreateBumps
Struct to hold account bump seeds.
Sourceยงimpl<'info> ToAccountInfos<'info> for MultisigCreate<'info>where
'info: 'info,
impl<'info> ToAccountInfos<'info> for MultisigCreate<'info>where
'info: 'info,
fn to_account_infos(&self) -> Vec<AccountInfo<'info>>
Sourceยงimpl<'info> ToAccountMetas for MultisigCreate<'info>
impl<'info> ToAccountMetas for MultisigCreate<'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.Auto Trait Implementationsยง
impl<'info> Freeze for MultisigCreate<'info>
impl<'info> !RefUnwindSafe for MultisigCreate<'info>
impl<'info> !Send for MultisigCreate<'info>
impl<'info> !Sync for MultisigCreate<'info>
impl<'info> Unpin for MultisigCreate<'info>
impl<'info> !UnwindSafe for MultisigCreate<'info>
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
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>
Converts
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>
Converts
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