[][src]Struct solana_vest_program::vest_state::VestState

pub struct VestState {
    pub terminator_pubkey: Pubkey,
    pub payee_pubkey: Pubkey,
    pub start_date_time: DateTime<Utc>,
    pub date_pubkey: Pubkey,
    pub total_lamports: u64,
    pub redeemed_lamports: u64,
    pub reneged_lamports: u64,
    pub is_fully_vested: bool,
}

Fields

terminator_pubkey: Pubkey

The address authorized to terminate this contract with a signed Terminate instruction

payee_pubkey: Pubkey

The address authorized to redeem vested tokens

start_date_time: DateTime<Utc>

The day from which the vesting contract begins

date_pubkey: Pubkey

Address of an account containing a trusted date, used to drive the vesting schedule

total_lamports: u64

The number of lamports to send the payee if the schedule completes

redeemed_lamports: u64

The number of lamports the payee has already redeemed

reneged_lamports: u64

The number of lamports the terminator repurchased

is_fully_vested: bool

True if the terminator has declared this contract fully vested.

Implementations

impl VestState[src]

pub fn serialize(&self, output: &mut [u8]) -> Result<(), InstructionError>[src]

pub fn deserialize(input: &[u8]) -> Result<Self, InstructionError>[src]

pub fn redeem_tokens(
    &mut self,
    contract_account: &mut Account,
    current_date: Date<Utc>,
    payee_account: &mut Account
)
[src]

Redeem vested tokens.

pub fn renege(
    &mut self,
    contract_account: &mut Account,
    payee_account: &mut Account,
    lamports: u64
)
[src]

Renege on the given number of tokens and send them to the given payee.

pub fn vest_all(&mut self)[src]

Mark this contract as fully vested, regardless of the date.

Trait Implementations

impl Clone for VestState[src]

impl Debug for VestState[src]

impl Default for VestState[src]

impl<'de> Deserialize<'de> for VestState[src]

impl PartialEq<VestState> for VestState[src]

impl Serialize for VestState[src]

impl StructuralPartialEq for VestState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized

impl<T> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,