Struct streamflow_sdk::CreateParamsUnchecked
source · #[repr(C)]pub struct CreateParamsUnchecked {Show 16 fields
pub start_time: u64,
pub net_amount_deposited: u64,
pub period: u64,
pub amount_per_period: u64,
pub cliff: u64,
pub cliff_amount: u64,
pub cancelable_by_sender: bool,
pub cancelable_by_recipient: bool,
pub automatic_withdrawal: bool,
pub transferable_by_sender: bool,
pub transferable_by_recipient: bool,
pub can_topup: bool,
pub stream_name: [u8; 64],
pub withdraw_frequency: u64,
pub recipient: Pubkey,
pub partner: Pubkey,
}Expand description
Instruction data expected in the create_unchecked instruction
Fields§
§start_time: u64Timestamp when the tokens start vesting
net_amount_deposited: u64Deposited amount of tokens
period: u64Time step (period) in seconds per which the vesting/release occurs
amount_per_period: u64Amount released per period. Combined with period, we get a release rate.
cliff: u64Vesting contract “cliff” timestamp
cliff_amount: u64Amount unlocked at the “cliff” timestamp
cancelable_by_sender: boolWhether or not a stream can be canceled by a sender
cancelable_by_recipient: boolWhether or not a stream can be canceled by a recipient
automatic_withdrawal: boolWhether or not a 3rd party can initiate withdraw in the name of recipient
transferable_by_sender: boolWhether or not the sender can transfer the stream
transferable_by_recipient: boolWhether or not the recipient can transfer the stream
can_topup: boolWhether topup is enabled
stream_name: [u8; 64]The name of this stream
withdraw_frequency: u64Withdraw frequency
recipient: PubkeyPubkey of the contract recipient
partner: PubkeyPubkey of the fee partner
Trait Implementations§
source§impl BorshDeserialize for CreateParamsUncheckedwhere
u64: BorshDeserialize,
bool: BorshDeserialize,
[u8; 64]: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshDeserialize for CreateParamsUncheckedwhere
u64: BorshDeserialize,
bool: BorshDeserialize,
[u8; 64]: BorshDeserialize,
Pubkey: BorshDeserialize,
source§impl BorshSerialize for CreateParamsUncheckedwhere
u64: BorshSerialize,
bool: BorshSerialize,
[u8; 64]: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for CreateParamsUncheckedwhere
u64: BorshSerialize,
bool: BorshSerialize,
[u8; 64]: BorshSerialize,
Pubkey: BorshSerialize,
source§impl Clone for CreateParamsUnchecked
impl Clone for CreateParamsUnchecked
source§fn clone(&self) -> CreateParamsUnchecked
fn clone(&self) -> CreateParamsUnchecked
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more