pub struct CreateNativeMint<'a> {
pub payer: &'a AccountView<'a>,
pub native_mint: &'a AccountView<'a>,
pub system_program: &'a AccountView<'a>,
}Expand description
CreateNativeMint (31): create the Token-2022 wrapped-SOL mint
(9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP). payer funds the
rent and signs.
Fields§
§payer: &'a AccountView<'a>§native_mint: &'a AccountView<'a>§system_program: &'a AccountView<'a>Implementations§
Source§impl CreateNativeMint<'_>
impl CreateNativeMint<'_>
Sourcepub fn invoke(&self) -> ProgramResult
pub fn invoke(&self) -> ProgramResult
Send this instruction to Token-2022.
Sourcepub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Send this instruction to Token-2022 with PDA signers.
Trait Implementations§
Source§impl<'a, 'x: 'a> TokenInstruction<'a> for CreateNativeMint<'x>
impl<'a, 'x: 'a> TokenInstruction<'a> for CreateNativeMint<'x>
fn emit( &self, multisig_signers: &[&'a AccountView<'a>], sink: &mut impl TokenSink<'a>, ) -> ProgramResult
Auto Trait Implementations§
impl<'a> !Send for CreateNativeMint<'a>
impl<'a> !Sync for CreateNativeMint<'a>
impl<'a> Freeze for CreateNativeMint<'a>
impl<'a> RefUnwindSafe for CreateNativeMint<'a>
impl<'a> Unpin for CreateNativeMint<'a>
impl<'a> UnsafeUnpin for CreateNativeMint<'a>
impl<'a> UnwindSafe for CreateNativeMint<'a>
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