#[repr(packed)]pub struct AggregatorRound {Show 14 fields
pub num_success: u32,
pub num_error: u32,
pub is_closed: bool,
pub round_open_slot: u64,
pub round_open_timestamp: i64,
pub result: SwitchboardDecimal,
pub std_deviation: SwitchboardDecimal,
pub min_response: SwitchboardDecimal,
pub max_response: SwitchboardDecimal,
pub oracle_pubkeys_data: [Pubkey; 16],
pub medians_data: [SwitchboardDecimal; 16],
pub current_payout: [i64; 16],
pub medians_fulfilled: [bool; 16],
pub errors_fulfilled: [bool; 16],
}Fields§
§num_success: u32Maintains the number of successful responses received from nodes. Nodes can submit one successful response per round.
num_error: u32Number of error responses.
is_closed: boolWhether an update request round has ended.
round_open_slot: u64Maintains the solana_program::clock::Slot that the round was opened at.
round_open_timestamp: i64Maintains the solana_program::clock::UnixTimestamp; the round was opened at.
result: SwitchboardDecimalMaintains the current median of all successful round responses.
std_deviation: SwitchboardDecimalStandard deviation of the accepted results in the round.
min_response: SwitchboardDecimalMaintains the minimum node response this round.
max_response: SwitchboardDecimalMaintains the maximum node response this round.
oracle_pubkeys_data: [Pubkey; 16]Pubkeys of the oracles fulfilling this round.
medians_data: [SwitchboardDecimal; 16]Represents all successful node responses this round. NaN if empty.
current_payout: [i64; 16]Current rewards/slashes oracles have received this round.
medians_fulfilled: [bool; 16]Keep track of which responses are fulfilled here.
errors_fulfilled: [bool; 16]Keeps track of which errors are fulfilled here.
Trait Implementations§
source§impl Clone for AggregatorRound
impl Clone for AggregatorRound
source§fn clone(&self) -> AggregatorRound
fn clone(&self) -> AggregatorRound
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AggregatorRound
impl Debug for AggregatorRound
source§impl Default for AggregatorRound
impl Default for AggregatorRound
source§fn default() -> AggregatorRound
fn default() -> AggregatorRound
source§impl PartialEq<AggregatorRound> for AggregatorRound
impl PartialEq<AggregatorRound> for AggregatorRound
source§fn eq(&self, other: &AggregatorRound) -> bool
fn eq(&self, other: &AggregatorRound) -> bool
self and other values to be equal, and is used
by ==.