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

InitializeAccount

Declare and instantiate a vesting schedule

Show fields

Fields of InitializeAccount

terminator_pubkey: Pubkeypayee_pubkey: Pubkeystart_date_time: DateTime<Utc>date_pubkey: Pubkeytotal_lamports: u64
SetTerminator(Pubkey)

Change the terminator pubkey

SetPayee(Pubkey)

Change the payee pubkey

RedeemTokens

Load an account and pass its data to the contract for inspection.

Terminate

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.

VestAll

Mark all available tokens as redeemable, regardless of the date.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.