Struct switchboard_solana::env::solana::SolanaFunctionEnvironment
pub struct SolanaFunctionEnvironment {Show 13 fields
pub function_key: String,
pub payer: String,
pub verifier: String,
pub reward_receiver: String,
pub function_data: String,
pub verifier_enclave_signer: String,
pub queue_authority: String,
pub function_routine_key: String,
pub function_routine_data: String,
pub function_request_key: String,
pub function_request_data: String,
pub cluster: String,
pub minimum_context_slot: Option<u64>,
}
Expand description
The expected environment variables when a solana function is being executed
Fields§
§function_key: String
FUNCTION_KEY: the pubkey of the function being executed
payer: String
PAYER: The gas payer for this transaction
verifier: String
VERIFIER: the pubey of the oracle veriying this call
reward_receiver: String
REWARD_RECEIVER: The escrow to send the reward the oracle will receive for executing this function
function_data: String
FUNCTION_DATA: The preloaded data of the FUNCTION_KEY
account
verifier_enclave_signer: String
VERIFIER_ENCLAVE_SIGNER: The keypair the verifying oracle is using to sign this transaction.
QUEUE_AUTHORITY: The authority of the oracle queue this function is executing on.
function_routine_key: String
FUNCTION_ROUTINE_KEY: If this function is being called with parameters, this variable will hold the pubkey of the request account
function_routine_data: String
FUNCTION_ROUTINE_DATA: The preloaded data of the FUNCTION_ROUTINE_KEY
account
function_request_key: String
FUNCTION_REQUEST_KEY: If this function is being called with parameters, this ariable will hold the pubkey of the request account
function_request_data: String
FUNCTION_REQUEST_DATA: The preloaded data of the FUNCTION_REQUEST_KEY
account
cluster: String
§minimum_context_slot: Option<u64>
Implementations§
§impl SolanaFunctionEnvironment
impl SolanaFunctionEnvironment
Trait Implementations§
§impl Clone for SolanaFunctionEnvironment
impl Clone for SolanaFunctionEnvironment
§fn clone(&self) -> SolanaFunctionEnvironment
fn clone(&self) -> SolanaFunctionEnvironment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more