Struct near_primitives::epoch_manager::EpochInfoV1
source · pub struct EpochInfoV1 {Show 14 fields
pub epoch_height: EpochHeight,
pub validators: Vec<ValidatorStakeV1>,
pub validator_to_index: HashMap<AccountId, ValidatorId>,
pub block_producers_settlement: Vec<ValidatorId>,
pub chunk_producers_settlement: Vec<Vec<ValidatorId>>,
pub hidden_validators_settlement: Vec<ValidatorWeight>,
pub fishermen: Vec<ValidatorStakeV1>,
pub fishermen_to_index: HashMap<AccountId, ValidatorId>,
pub stake_change: BTreeMap<AccountId, Balance>,
pub validator_reward: HashMap<AccountId, Balance>,
pub validator_kickout: HashMap<AccountId, ValidatorKickoutReason>,
pub minted_amount: Balance,
pub seat_price: Balance,
pub protocol_version: ProtocolVersion,
}
Expand description
Information per epoch.
Fields§
§epoch_height: EpochHeight
Ordinal of given epoch from genesis. There can be multiple epochs with the same ordinal in case of long forks.
validators: Vec<ValidatorStakeV1>
List of current validators.
validator_to_index: HashMap<AccountId, ValidatorId>
Validator account id to index in proposals.
block_producers_settlement: Vec<ValidatorId>
Settlement of validators responsible for block production.
chunk_producers_settlement: Vec<Vec<ValidatorId>>
Per each shard, settlement validators that are responsible.
Settlement of hidden validators with weights used to determine how many shards they will validate.
fishermen: Vec<ValidatorStakeV1>
List of current fishermen.
fishermen_to_index: HashMap<AccountId, ValidatorId>
Fisherman account id to index of proposal.
stake_change: BTreeMap<AccountId, Balance>
New stake for validators.
validator_reward: HashMap<AccountId, Balance>
Validator reward for the epoch.
validator_kickout: HashMap<AccountId, ValidatorKickoutReason>
Validators who are kicked out in this epoch.
minted_amount: Balance
Total minted tokens in the epoch.
seat_price: Balance
Seat price of this epoch.
protocol_version: ProtocolVersion
Current protocol version during this epoch.
Trait Implementations§
source§impl BorshDeserialize for EpochInfoV1
impl BorshDeserialize for EpochInfoV1
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for EpochInfoV1
impl BorshSerialize for EpochInfoV1
source§impl Clone for EpochInfoV1
impl Clone for EpochInfoV1
source§fn clone(&self) -> EpochInfoV1
fn clone(&self) -> EpochInfoV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EpochInfoV1
impl Debug for EpochInfoV1
source§impl Default for EpochInfoV1
impl Default for EpochInfoV1
source§fn default() -> Self
fn default() -> Self
Return EpochInfoV1 { epoch_height: Default::default(), validators: Default::default(), validator_to_index: Default::default(), block_producers_settlement: Default::default(), chunk_producers_settlement: Default::default(), hidden_validators_settlement: Default::default(), fishermen: Default::default(), fishermen_to_index: Default::default(), stake_change: Default::default(), validator_reward: Default::default(), validator_kickout: Default::default(), minted_amount: Default::default(), seat_price: Default::default(), protocol_version: PROTOCOL_VERSION }
source§impl PartialEq for EpochInfoV1
impl PartialEq for EpochInfoV1
source§fn eq(&self, other: &EpochInfoV1) -> bool
fn eq(&self, other: &EpochInfoV1) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EpochInfoV1
impl Serialize for EpochInfoV1
impl Eq for EpochInfoV1
impl StructuralPartialEq for EpochInfoV1
Auto Trait Implementations§
impl Freeze for EpochInfoV1
impl RefUnwindSafe for EpochInfoV1
impl Send for EpochInfoV1
impl Sync for EpochInfoV1
impl Unpin for EpochInfoV1
impl UnwindSafe for EpochInfoV1
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more