Skip to main content

InitializeVirtualPoolWithSplToken

Struct InitializeVirtualPoolWithSplToken 

Source
pub struct InitializeVirtualPoolWithSplToken {
Show 16 fields pub config: Pubkey, pub pool_authority: Pubkey, pub creator: Pubkey, pub base_mint: Pubkey, pub quote_mint: Pubkey, pub pool: Pubkey, pub base_vault: Pubkey, pub quote_vault: Pubkey, pub mint_metadata: Pubkey, pub metadata_program: Pubkey, pub payer: Pubkey, pub token_quote_program: Pubkey, pub token_program: Pubkey, pub system_program: Pubkey, pub event_authority: Pubkey, pub program: Pubkey,
}
Expand description

Accounts.

Fields§

§config: Pubkey

Which config the pool belongs to.

§pool_authority: Pubkey§creator: Pubkey§base_mint: Pubkey§quote_mint: Pubkey§pool: Pubkey

Initialize an account to store the pool state

§base_vault: Pubkey

Token a vault for the pool

§quote_vault: Pubkey

Token b vault for the pool

§mint_metadata: Pubkey§metadata_program: Pubkey§payer: Pubkey

Address paying to create the pool. Can be anyone

§token_quote_program: Pubkey

Program to create mint account and mint tokens

§token_program: Pubkey§system_program: Pubkey§event_authority: Pubkey§program: Pubkey

Implementations§

Trait Implementations§

Source§

impl Debug for InitializeVirtualPoolWithSplToken

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.