add operator to enclave

This commit is contained in:
Mitch Gildenberg 2023-07-06 01:34:48 -04:00
parent d03e9e4f6f
commit 216c3d9db5
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "switchboard-solana" name = "switchboard-solana"
version = "0.8.9" version = "0.8.10"
edition = "2021" edition = "2021"
description = "A Rust library to interact with Switchboard accounts." description = "A Rust library to interact with Switchboard accounts."
readme = "README.md" readme = "README.md"

View File

@ -76,10 +76,12 @@ pub struct EnclaveAccountData {
/// The PDA bump. Only set for FunctionAccount quotes. /// The PDA bump. Only set for FunctionAccount quotes.
pub bump: u8, pub bump: u8,
/// The SwitchboardWallet account containing the reward escrow for verifying quotes on-chain. /// The OperatorContractAccount that is assigned to the verifier. Must already be init and approved.
/// If this is set, then we verify the reward_receiver is owned by this operator.
pub operator: Pubkey,
/// We should set this whenever the operator changes so we dont need to pass another account and can verify with has_one. /// We should set this whenever the operator changes so we dont need to pass another account and can verify with has_one.
pub reward_escrow: Pubkey, pub reward_escrow: Pubkey,
/// The SwitchboardWallet account containing the queues required min_stake. /// The wallet containing the enclaves min_stake.
/// Needs to be separate from the reward_escrow. Allows easier 3rd party management of stake from rewards. /// Needs to be separate from the reward_escrow. Allows easier 3rd party management of stake from rewards.
pub stake_wallet: Pubkey, pub stake_wallet: Pubkey,