Struct streamflow_timelock::state::TokenStreamData [−][src]
#[repr(C)]pub struct TokenStreamData {
pub magic: u64,
pub ix: StreamInstruction,
pub created_at: u64,
pub withdrawn: u64,
pub cancel_time: u64,
pub sender: Pubkey,
pub sender_tokens: Pubkey,
pub recipient: Pubkey,
pub recipient_tokens: Pubkey,
pub mint: Pubkey,
pub escrow_tokens: Pubkey,
}
Expand description
TokenStreamData is the struct containing metadata for an SPL token stream.
Fields
magic: u64
Magic bytes
ix: StreamInstruction
The stream instruction
created_at: u64
Timestamp when stream was created
withdrawn: u64
Amount of funds withdrawn
cancel_time: u64
Timestamp at which stream can be safely cancelled by a 3rd party (Stream is either fully vested or there isn’t enough capital to keep it active)
sender: Pubkey
Pubkey of the stream initializer
sender_tokens: Pubkey
Pubkey of the stream initializer’s token account
recipient: Pubkey
Pubkey of the stream recipient
recipient_tokens: Pubkey
Pubkey of the stream recipient’s token account
mint: Pubkey
Pubkey of the token mint
escrow_tokens: Pubkey
Pubkey of the account holding the locked tokens
Implementations
Initialize a new TokenStreamData
struct.
Trait Implementations
impl BorshDeserialize for TokenStreamData where
u64: BorshDeserialize,
StreamInstruction: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshDeserialize for TokenStreamData where
u64: BorshDeserialize,
StreamInstruction: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshSerialize for TokenStreamData where
u64: BorshSerialize,
StreamInstruction: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for TokenStreamData where
u64: BorshSerialize,
StreamInstruction: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Returns the “default value” for a type. Read more