pub struct DefaultToken2022Customizer;Expand description
This implementation adds the ConfidentialTransferMint & MetadataPointer
extensions by default.
Trait Implementations§
Source§impl MintCustomizer for DefaultToken2022Customizer
impl MintCustomizer for DefaultToken2022Customizer
Source§fn get_token_2022_mint_space() -> Result<usize, ProgramError>
fn get_token_2022_mint_space() -> Result<usize, ProgramError>
Calculates the space required for a new spl-token-2022 mint
account, including any custom extensions
Source§fn initialize_extensions(
wrapped_mint_account: &AccountInfo<'_>,
wrapped_token_program_account: &AccountInfo<'_>,
) -> ProgramResult
fn initialize_extensions( wrapped_mint_account: &AccountInfo<'_>, wrapped_token_program_account: &AccountInfo<'_>, ) -> ProgramResult
Customizes extensions for the wrapped mint before the base mint is
initialized. This is for extensions that must be initialized on an
uninitialized mint account, like
ConfidentialTransferMint.Source§fn get_freeze_auth_and_decimals(
unwrapped_mint_account: &AccountInfo<'_>,
) -> Result<(Option<Pubkey>, u8), ProgramError>
fn get_freeze_auth_and_decimals( unwrapped_mint_account: &AccountInfo<'_>, ) -> Result<(Option<Pubkey>, u8), ProgramError>
Customize the freeze authority and decimals for the wrapped mint
Auto Trait Implementations§
impl Freeze for DefaultToken2022Customizer
impl RefUnwindSafe for DefaultToken2022Customizer
impl Send for DefaultToken2022Customizer
impl Sync for DefaultToken2022Customizer
impl Unpin for DefaultToken2022Customizer
impl UnwindSafe for DefaultToken2022Customizer
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