pub struct SolanaFunctionEnvironment {
pub function_key: String,
pub payer: String,
pub verifier: String,
pub reward_receiver: String,
pub function_data: Option<String>,
pub verifier_enclave_signer: Option<String>,
pub queue_authority: Option<String>,
pub function_request_key: Option<String>,
pub function_request_data: Option<String>,
pub cluster: String,
}
solana
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: Option<String>
FUNCTION_DATA: The preloaded data of the FUNCTION_KEY
account
verifier_enclave_signer: Option<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: Option<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: Option<String>
FUNCTION_REQUEST_DATA: The preloaded data of the FUNCTION_REQUEST_KEY
account
cluster: String