Structs§
- Contract
- Struct that represents Stream Contract stored on chain, this account DOES NOT have a discriminator.
- Create
Params - 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