Struct jet_fixed_term::accounts::ExchangeTokens
source · [−]pub struct ExchangeTokens {
pub market: Pubkey,
pub underlying_token_vault: Pubkey,
pub ticket_mint: Pubkey,
pub user_ticket_vault: Pubkey,
pub user_underlying_token_vault: Pubkey,
pub user_authority: Pubkey,
pub token_program: Pubkey,
}
Expand description
Generated client accounts for ExchangeTokens
.
Fields
market: Pubkey
The Market manages asset tokens for a particular tenor
underlying_token_vault: Pubkey
The vault stores the tokens of the underlying asset managed by the Market
ticket_mint: Pubkey
The minting account for the tickets
user_ticket_vault: Pubkey
The token account to receive the exchanged tickets
user_underlying_token_vault: Pubkey
The user controlled token account to exchange for tickets
The signing authority in charge of the user’s underlying token vault
token_program: Pubkey
SPL token program
Trait Implementations
sourceimpl BorshSerialize for ExchangeTokenswhere
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for ExchangeTokenswhere
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
sourceimpl ToAccountMetas for ExchangeTokens
impl ToAccountMetas for ExchangeTokens
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 moreAuto Trait Implementations
impl RefUnwindSafe for ExchangeTokens
impl Send for ExchangeTokens
impl Sync for ExchangeTokens
impl Unpin for ExchangeTokens
impl UnwindSafe for ExchangeTokens
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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