Module state

Module state 

Source

Structs§

Contract
Struct that represents Stream Contract stored on chain, this account DOES NOT have a discriminator.
CreateParams
The struct containing parameters for initializing a stream

Constants§

ESCROW_SEED_PREFIX
Prefix used to derive Escrow account address
FEE_ORACLE_ADDRESS
Address of Fee Oracle that stores information about fees for speficic partners
METADATA_LEN
Size of Stream metadata
STREAMFLOW_DEVNET_PROGRAM_ID
STREAMFLOW_PROGRAM_ID
You can also use id that sdk exposes like so streamflow_sdk::id()
STRM_TREASURY
Streamflow Treasury address, by default receives 0.25% of tokens deposited
WITHDRAWOR_ADDRESS
Streamflow Withdrawor address, this account will process withdrawals

Functions§

calculate_fee_from_amount
Calculate fee amount from a provided amount
find_escrow_account