Struct cyclos_core::accounts::CreateAndInitPool
source · [−]pub struct CreateAndInitPool {
pub pool_creator: Pubkey,
pub token_0: Pubkey,
pub token_1: Pubkey,
pub fee_state: Pubkey,
pub pool_state: Pubkey,
pub initial_observation_state: Pubkey,
pub vault_0: Pubkey,
pub vault_1: Pubkey,
pub system_program: Pubkey,
pub rent: Pubkey,
pub token_program: Pubkey,
pub associated_token_program: Pubkey,
}Expand description
Generated client accounts for CreateAndInitPool.
Fields
pool_creator: PubkeyAddress paying to create the pool. Can be anyone
token_0: PubkeyDesired token pair for the pool token_0 mint address should be smaller than token_1 address
token_1: Pubkeyfee_state: PubkeyStores the desired fee for the pool
pool_state: PubkeyInitialize an account to store the pool state
initial_observation_state: PubkeyInitialize an account to store oracle observations
vault_0: PubkeyThe address that holds pool tokens for token_0
vault_1: PubkeyThe address that holds pool tokens for token_1
system_program: PubkeyTo create a new program account
rent: PubkeySysvar for program account and ATA creation
token_program: PubkeyTo create new token accounts for the pool
associated_token_program: PubkeyTrait Implementations
sourceimpl BorshSerialize for CreateAndInitPool where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for CreateAndInitPool where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
sourceimpl ToAccountMetas for CreateAndInitPool
impl ToAccountMetas for CreateAndInitPool
sourcefn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
is_signer is given as an optional override for the signer meta field.
This covers the edge case when a program-derived-address needs to relay
a transaction from a client to another program but sign the transaction
before the relay. The client cannot mark the field as a signer, and so
we have to override the is_signer meta field given by the client. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreateAndInitPool
impl Send for CreateAndInitPool
impl Sync for CreateAndInitPool
impl Unpin for CreateAndInitPool
impl UnwindSafe for CreateAndInitPool
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more