pub struct CurrentEpochValidatorInfo {Show 16 fields
pub account_id: AccountId,
pub is_slashed: bool,
pub num_expected_blocks: u64,
pub num_expected_chunks: u64,
pub num_expected_chunks_per_shard: Vec<u64>,
pub num_expected_endorsements: u64,
pub num_expected_endorsements_per_shard: Vec<u64>,
pub num_produced_blocks: u64,
pub num_produced_chunks: u64,
pub num_produced_chunks_per_shard: Vec<u64>,
pub num_produced_endorsements: u64,
pub num_produced_endorsements_per_shard: Vec<u64>,
pub public_key: PublicKey,
pub shards: Vec<ShardId>,
pub shards_endorsed: Vec<ShardId>,
pub stake: String,
}
Expand description
Describes information about the current epoch validator
JSON schema
{
"description": "Describes information about the current epoch validator",
"type": "object",
"required": [
"account_id",
"is_slashed",
"num_expected_blocks",
"num_produced_blocks",
"public_key",
"shards",
"stake"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"is_slashed": {
"type": "boolean"
},
"num_expected_blocks": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"num_expected_chunks": {
"default": 0,
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"num_expected_chunks_per_shard": {
"description": "Number of chunks this validator was expected to produce in each shard.\nEach entry in the array corresponds to the shard in the `shards_produced` array.",
"default": [],
"type": "array",
"items": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"num_expected_endorsements": {
"default": 0,
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"num_expected_endorsements_per_shard": {
"description": "Number of chunks this validator was expected to validate and endorse in each shard.\nEach entry in the array corresponds to the shard in the `shards_endorsed` array.",
"default": [],
"type": "array",
"items": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"num_produced_blocks": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"num_produced_chunks": {
"default": 0,
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"num_produced_chunks_per_shard": {
"default": [],
"type": "array",
"items": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"num_produced_endorsements": {
"default": 0,
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"num_produced_endorsements_per_shard": {
"default": [],
"type": "array",
"items": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
},
"shards": {
"description": "Shards this validator is assigned to as chunk producer in the current epoch.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ShardId"
}
},
"shards_endorsed": {
"description": "Shards this validator is assigned to as chunk validator in the current epoch.",
"default": [],
"type": "array",
"items": {
"$ref": "#/components/schemas/ShardId"
}
},
"stake": {
"type": "string"
}
}
}
Fields§
§account_id: AccountId
§is_slashed: bool
§num_expected_blocks: u64
§num_expected_chunks: u64
§num_expected_chunks_per_shard: Vec<u64>
Number of chunks this validator was expected to produce in each shard.
Each entry in the array corresponds to the shard in the shards_produced
array.
num_expected_endorsements: u64
§num_expected_endorsements_per_shard: Vec<u64>
Number of chunks this validator was expected to validate and endorse in each shard.
Each entry in the array corresponds to the shard in the shards_endorsed
array.
num_produced_blocks: u64
§num_produced_chunks: u64
§num_produced_chunks_per_shard: Vec<u64>
§num_produced_endorsements: u64
§num_produced_endorsements_per_shard: Vec<u64>
§public_key: PublicKey
§shards: Vec<ShardId>
Shards this validator is assigned to as chunk producer in the current epoch.
shards_endorsed: Vec<ShardId>
Shards this validator is assigned to as chunk validator in the current epoch.
stake: String
Trait Implementations§
Source§impl Clone for CurrentEpochValidatorInfo
impl Clone for CurrentEpochValidatorInfo
Source§fn clone(&self) -> CurrentEpochValidatorInfo
fn clone(&self) -> CurrentEpochValidatorInfo
Returns a duplicate 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 moreSource§impl Debug for CurrentEpochValidatorInfo
impl Debug for CurrentEpochValidatorInfo
Source§impl<'de> Deserialize<'de> for CurrentEpochValidatorInfo
impl<'de> Deserialize<'de> for CurrentEpochValidatorInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CurrentEpochValidatorInfo> for CurrentEpochValidatorInfo
impl From<&CurrentEpochValidatorInfo> for CurrentEpochValidatorInfo
Source§fn from(value: &CurrentEpochValidatorInfo) -> Self
fn from(value: &CurrentEpochValidatorInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CurrentEpochValidatorInfo
impl RefUnwindSafe for CurrentEpochValidatorInfo
impl Send for CurrentEpochValidatorInfo
impl Sync for CurrentEpochValidatorInfo
impl Unpin for CurrentEpochValidatorInfo
impl UnwindSafe for CurrentEpochValidatorInfo
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