Enum serum_pool_schema::PoolRequestInner [−][src]
pub enum PoolRequestInner {
Initialize(InitializePoolRequest),
GetBasket(PoolAction),
Execute(PoolAction),
}
Variants
Initialize(InitializePoolRequest)
Tuple Fields
Initialize a pool.
Accounts:
[writable]
Pool account[writable]
Pool token mint (PoolState::pool_token_mint
)[writable]
Pool vault account for each of the N pool assets (AssetInfo::vault_address
)[]
Pool vault authority (PoolState::vault_signer
)[]
LQD fee vault[]
Initializer fee vault[]
Rent sysvar[]/[writable]
Any additional accounts needed to initialize the pool
GetBasket(PoolAction)
Tuple Fields
0: PoolAction
Get the creation, redemption, or swap basket.
Basket is written to the retbuf account as a Vec
Accounts:
[]
Pool account[]
Pool token mint (PoolState::pool_token_mint
)[]
Pool vault account for each of the N pool assets (AssetInfo::vault_address
)[]
Pool vault authority (PoolState::vault_signer
)[writable]
retbuf account[]
retbuf program[]
Accounts inPoolState::account_params
Execute(PoolAction)
Tuple Fields
0: PoolAction
Perform a creation, redemption, or swap.
Accounts:
[writable]
Pool account[writable]
Pool token mint (PoolState::pool_token_mint
)[writable]
Pool vault account for each of the N pool assets (AssetInfo::vault_address
)[]
Pool vault authority (PoolState::vault_signer
)[writable]
User pool token account[writable]
User account for each of the N pool assets[signer]
Authority for user accounts[writable]
LQD fee vault[writable]
Initializer fee vault[writable]
Referrer fee vault[]
spl-token program[]/[writable]
Accounts inPoolState::account_params
Trait Implementations
Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
Deserialize this instance from a slice of bytes.
Whether Self is u8.
NOTE: Vec<u8>
is the most common use-case for serialization and deserialization, it’s
worth handling it as a special case to improve performance.
It’s a workaround for specific Vec<u8>
implementation versus generic Vec<T>
implementation. See https://github.com/rust-lang/rfcs/pull/1210 for details. Read more
Get the name of the type without brackets.
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
Serialize this instance into a vector of bytes.
Whether Self is u8.
NOTE: Vec<u8>
is the most common use-case for serialization and deserialization, it’s
worth handling it as a special case to improve performance.
It’s a workaround for specific Vec<u8>
implementation versus generic Vec<T>
implementation. See https://github.com/rust-lang/rfcs/pull/1210 for details. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PoolRequestInner
impl Send for PoolRequestInner
impl Sync for PoolRequestInner
impl Unpin for PoolRequestInner
impl UnwindSafe for PoolRequestInner
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more