Struct solana_vest_program::vest_state::VestState [−][src]
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][−]
&mut self,
contract_account: &mut Account,
current_date: Date<Utc>,
payee_account: &mut Account
)
Redeem vested tokens.
pub fn renege(
&mut self,
contract_account: &mut Account,
payee_account: &mut Account,
lamports: u64
)
[src][−]
&mut self,
contract_account: &mut Account,
payee_account: &mut Account,
lamports: u64
)
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
impl RefUnwindSafe for VestState
impl Send for VestState
impl Sync for VestState
impl Unpin for VestState
impl UnwindSafe for VestState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
[+]
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,