Enum solana_vest_program::vest_instruction::VestInstruction [−][src]
pub enum VestInstruction { InitializeAccount { terminator_pubkey: Pubkey, payee_pubkey: Pubkey, start_date_time: DateTime<Utc>, date_pubkey: Pubkey, total_lamports: u64, }, SetTerminator(Pubkey), SetPayee(Pubkey), RedeemTokens, Terminate, Renege(u64), VestAll, }
Expand description
An instruction to progress the smart contract.
Variants
Declare and instantiate a vesting schedule
Show fields
Change the terminator pubkey
Change the payee pubkey
Load an account and pass its data to the contract for inspection.
Tell the contract that the InitializeAccount
with Signature
has been
signed by the containing transaction’s Pubkey
.
Renege(u64)
Reduce total_lamports by the given number of lamports. Tokens that have
already vested are unaffected. Use this instead of Terminate
to minimize
the number of token transfers.
Mark all available tokens as redeemable, regardless of the date.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for VestInstruction
impl Send for VestInstruction
impl Sync for VestInstruction
impl Unpin for VestInstruction
impl UnwindSafe for VestInstruction
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn example() -> T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V