Struct streamflow_timelock::state::StreamInstruction [−][src]
#[repr(C)]pub struct StreamInstruction {
pub start_time: u64,
pub end_time: u64,
pub deposited_amount: u64,
pub total_amount: u64,
pub period: u64,
pub cliff: u64,
pub cliff_amount: u64,
}
Expand description
The struct containing instructions for initializing a stream
Fields
start_time: u64
Timestamp when the tokens start vesting
end_time: u64
Timestamp when all tokens are fully vested
deposited_amount: u64
Initially deposited amount of tokens (<= total_amount)
total_amount: u64
Total amount of the tokens in the escrow account if contract is fully vested
period: u64
Time step (period) in seconds per which the vesting occurs
cliff: u64
Vesting contract “cliff” timestamp
cliff_amount: u64
Amount unlocked at the “cliff” timestamp
Trait Implementations
impl BorshDeserialize for StreamInstruction where
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for StreamInstruction where
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshSerialize for StreamInstruction where
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for StreamInstruction where
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
Auto Trait Implementations
impl RefUnwindSafe for StreamInstruction
impl Send for StreamInstruction
impl Sync for StreamInstruction
impl Unpin for StreamInstruction
impl UnwindSafe for StreamInstruction
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more