Enum safe_token_2022::extension::interest_bearing_mint::instruction::InterestBearingMintInstruction
source · #[repr(u8)]
pub enum InterestBearingMintInstruction {
Initialize,
UpdateRate,
}
Expand description
Interesting-bearing mint extension instructions
Variants§
Initialize
Initialize a new mint with interest accrual.
Fails if the mint has already been initialized, so must be called before
InitializeMint
.
The mint must have exactly enough space allocated for the base mint (82 bytes), plus 83 bytes of padding, 1 byte reserved for the account type, then space required for this extension, plus any others.
Accounts expected by this instruction:
[writable]
The mint to initialize.
Data expected by this instruction:
crate::extension::interest_bearing::instruction::InitializeInstructionData
UpdateRate
Update the interest rate. Only supported for mints that include the
InterestBearingConfig
extension.
Accounts expected by this instruction:
- Single authority
[writable]
The mint.[signer]
The mint rate authority.
- Multisignature authority
[writable]
The mint.[]
The mint’s multisignature rate authority.- ..2+M
[signer]
M signer accounts.
Data expected by this instruction:
crate::extension::interest_bearing::BasisPoints
Trait Implementations§
source§impl Clone for InterestBearingMintInstruction
impl Clone for InterestBearingMintInstruction
source§fn clone(&self) -> InterestBearingMintInstruction
fn clone(&self) -> InterestBearingMintInstruction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<InterestBearingMintInstruction> for u8
impl From<InterestBearingMintInstruction> for u8
source§fn from(enum_value: InterestBearingMintInstruction) -> Self
fn from(enum_value: InterestBearingMintInstruction) -> Self
Converts to this type from the input type.
source§impl PartialEq<InterestBearingMintInstruction> for InterestBearingMintInstruction
impl PartialEq<InterestBearingMintInstruction> for InterestBearingMintInstruction
source§fn eq(&self, other: &InterestBearingMintInstruction) -> bool
fn eq(&self, other: &InterestBearingMintInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for InterestBearingMintInstruction
impl TryFrom<u8> for InterestBearingMintInstruction
§type Error = TryFromPrimitiveError<InterestBearingMintInstruction>
type Error = TryFromPrimitiveError<InterestBearingMintInstruction>
The type returned in the event of a conversion error.