Struct streamflow_sdk::state::CreateParams
source · [−]#[repr(C)]pub struct CreateParams {Show 14 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,
}Expand description
The struct containing instructions for initializing a stream
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: u64Trait Implementations
impl BorshDeserialize for CreateParams where
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
[u8; 64]: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for CreateParams where
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
[u8; 64]: BorshDeserialize,
u64: BorshDeserialize,
impl BorshSerialize for CreateParams where
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
[u8; 64]: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for CreateParams where
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
[u8; 64]: BorshSerialize,
u64: BorshSerialize,
Auto Trait Implementations
impl RefUnwindSafe for CreateParams
impl Send for CreateParams
impl Sync for CreateParams
impl Unpin for CreateParams
impl UnwindSafe for CreateParams
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more