Struct switchboard_solana::attestation_program::instructions::service_request_quote_verify::ServiceRequestQuoteVerify
source · pub struct ServiceRequestQuoteVerify<'info> {
pub service: AccountInfo<'info>,
pub service_worker: AccountInfo<'info>,
pub function: AccountInfo<'info>,
pub attestation_queue: AccountInfo<'info>,
pub escrow_wallet: AccountInfo<'info>,
pub escrow_token_wallet: AccountInfo<'info>,
pub new_enclave_signer: AccountInfo<'info>,
pub authority: AccountInfo<'info>,
}
Fields§
§service: AccountInfo<'info>
#[account( mut, has_one = authority, has_one = function, has_one = service_worker, has_one = attestation_queue, has_one = escrow_wallet, has_one = escrow_token_wallet, )] pub service: Box<Account<’info, FunctionServiceAccountData>>,
service_worker: AccountInfo<'info>
#[account( has_one = attestation_queue, )] pub service_worker: AccountLoader<’info, ServiceWorkerAccountData>,
function: AccountInfo<'info>
#[account( has_one = attestation_queue, )] pub function: AccountLoader<’info, FunctionAccountData>,
attestation_queue: AccountInfo<'info>
pub attestation_queue: AccountLoader<’info, AttestationQueueAccountData>,
escrow_wallet: AccountInfo<'info>
#[account(mut)] pub escrow_wallet: Box<Account<’info, SwitchboardWallet>>,
escrow_token_wallet: AccountInfo<'info>
#[account( mut, constraint = escrow_token_wallet.is_native() )] pub escrow_token_wallet: Box<Account<’info, TokenAccount>>,
new_enclave_signer: AccountInfo<'info>
pub new_enclave_signer: Signer<’info>,
pub authority: Signer<’info>, CHECK:
Implementations§
source§impl<'info> ServiceRequestQuoteVerify<'info>
impl<'info> ServiceRequestQuoteVerify<'info>
pub fn get_instruction( &self, program_id: Pubkey, params: &ServiceRequestQuoteVerifyParams ) -> Result<Instruction>
pub fn invoke( &self, program: AccountInfo<'info>, params: &ServiceRequestQuoteVerifyParams ) -> ProgramResult
pub fn invoke_signed( &self, program: AccountInfo<'info>, params: &ServiceRequestQuoteVerifyParams, signer_seeds: &[&[&[u8]]] ) -> ProgramResult
pub fn build_ix( accounts: &ServiceRequestQuoteVerifyAccounts, params: &ServiceRequestQuoteVerifyParams ) -> Result<Instruction, SbError>
Trait Implementations§
source§impl<'info> Accounts<'info, ServiceRequestQuoteVerifyBumps> for ServiceRequestQuoteVerify<'info>where
'info: 'info,
impl<'info> Accounts<'info, ServiceRequestQuoteVerifyBumps> for ServiceRequestQuoteVerify<'info>where
'info: 'info,
source§fn try_accounts(
__program_id: &Pubkey,
__accounts: &mut &'info [AccountInfo<'info>],
__ix_data: &[u8],
__bumps: &mut ServiceRequestQuoteVerifyBumps,
__reallocs: &mut BTreeSet<Pubkey>
) -> Result<Self>
fn try_accounts( __program_id: &Pubkey, __accounts: &mut &'info [AccountInfo<'info>], __ix_data: &[u8], __bumps: &mut ServiceRequestQuoteVerifyBumps, __reallocs: &mut BTreeSet<Pubkey> ) -> Result<Self>
Mint
account from the SPL token program in a particular
field, then it should be impossible for this method to return Ok
if
any other account type is given–from the SPL token program or elsewhere. Read moresource§impl<'info> AccountsExit<'info> for ServiceRequestQuoteVerify<'info>where
'info: 'info,
impl<'info> AccountsExit<'info> for ServiceRequestQuoteVerify<'info>where
'info: 'info,
source§impl<'info> Bumps for ServiceRequestQuoteVerify<'info>where
'info: 'info,
impl<'info> Bumps for ServiceRequestQuoteVerify<'info>where
'info: 'info,
§type Bumps = ServiceRequestQuoteVerifyBumps
type Bumps = ServiceRequestQuoteVerifyBumps
source§impl Discriminator for ServiceRequestQuoteVerify<'_>
impl Discriminator for ServiceRequestQuoteVerify<'_>
const DISCRIMINATOR: [u8; 8] = _
fn discriminator() -> [u8; 8]
source§impl<'info> ToAccountInfos<'info> for ServiceRequestQuoteVerify<'info>where
'info: 'info,
impl<'info> ToAccountInfos<'info> for ServiceRequestQuoteVerify<'info>where
'info: 'info,
fn to_account_infos(&self) -> Vec<AccountInfo<'info>>
source§impl<'info> ToAccountMetas for ServiceRequestQuoteVerify<'info>
impl<'info> ToAccountMetas for ServiceRequestQuoteVerify<'info>
source§fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
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.