Struct jormungandr::blockcfg::EpochRewardsInfo
source · pub struct EpochRewardsInfo {
pub params: RewardsInfoParameters,
pub drawn: Value,
pub fees: Value,
pub treasury: Value,
pub stake_pools: BTreeMap<DigestOf<Blake2b256, PoolRegistration>, (Value, Value), Global>,
pub accounts: BTreeMap<Identifier, Value, Global>,
}
Expand description
The epoch reward information.
note that stake_pools and accounts are only filled up if the reward info parameters report_stake_pools and report_accounts (respectively) are turned on.
Fields§
§params: RewardsInfoParameters
Params used
drawn: Value
Total Drawn from reward escrow pot for this epoch
fees: Value
Fees contributed into the pot this epoch
treasury: Value
Value added to the treasury
stake_pools: BTreeMap<DigestOf<Blake2b256, PoolRegistration>, (Value, Value), Global>
Amount added to each pool id. structure can be empty.
accounts: BTreeMap<Identifier, Value, Global>
Amount added to each account. structure can be empty.
Implementations§
source§impl EpochRewardsInfo
impl EpochRewardsInfo
pub fn new(params: RewardsInfoParameters) -> EpochRewardsInfo
pub fn set_treasury(&mut self, value: Value)
pub fn set_stake_pool( &mut self, pool: &DigestOf<Blake2b256, PoolRegistration>, owned: Value, distributed: Value )
pub fn add_to_account(&mut self, account: &Identifier, value: Value)
pub fn total(&self) -> Value
Trait Implementations§
source§impl Clone for EpochRewardsInfo
impl Clone for EpochRewardsInfo
source§fn clone(&self) -> EpochRewardsInfo
fn clone(&self) -> EpochRewardsInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for EpochRewardsInfo
impl Send for EpochRewardsInfo
impl Sync for EpochRewardsInfo
impl Unpin for EpochRewardsInfo
impl UnwindSafe for EpochRewardsInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request