Struct solana_vest_program::vest_state::VestState [−][src]
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
pub fn redeem_tokens(
&mut self,
contract_account: &mut AccountSharedData,
current_date: Date<Utc>,
payee_account: &mut AccountSharedData
)
pub fn redeem_tokens(
&mut self,
contract_account: &mut AccountSharedData,
current_date: Date<Utc>,
payee_account: &mut AccountSharedData
)
Redeem vested tokens.
pub fn renege(
&mut self,
contract_account: &mut AccountSharedData,
payee_account: &mut AccountSharedData,
lamports: u64
)
pub fn renege(
&mut self,
contract_account: &mut AccountSharedData,
payee_account: &mut AccountSharedData,
lamports: u64
)
Renege on the given number of tokens and send them to the given payee.
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
Auto Trait Implementations
impl RefUnwindSafe for VestState
impl UnwindSafe for VestState
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