Struct switchboard_common::env::solana::SolanaFunctionEnvironment
source · pub struct SolanaFunctionEnvironment {
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_request_key: String,
pub function_request_data: String,
pub cluster: String,
}
client
only.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_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