pub struct State {
Show 15 fields pub total_raw_byte_power: StoragePower, pub total_bytes_committed: StoragePower, pub total_quality_adj_power: StoragePower, pub total_qa_bytes_committed: StoragePower, pub total_pledge_collateral: TokenAmount, pub this_epoch_raw_byte_power: StoragePower, pub this_epoch_quality_adj_power: StoragePower, pub this_epoch_pledge_collateral: TokenAmount, pub this_epoch_qa_power_smoothed: FilterEstimate, pub miner_count: i64, pub miner_above_min_power_count: i64, pub cron_event_queue: Cid, pub first_cron_epoch: ChainEpoch, pub claims: Cid, pub proof_validation_batch: Option<Cid>,
}
Expand description

Storage power actor state

Fields

total_raw_byte_power: StoragePowertotal_bytes_committed: StoragePowertotal_quality_adj_power: StoragePowertotal_qa_bytes_committed: StoragePowertotal_pledge_collateral: TokenAmountthis_epoch_raw_byte_power: StoragePowerthis_epoch_quality_adj_power: StoragePowerthis_epoch_pledge_collateral: TokenAmountthis_epoch_qa_power_smoothed: FilterEstimateminer_count: i64miner_above_min_power_count: i64

Number of miners having proven the minimum consensus power.

cron_event_queue: Cid

A queue of events to be triggered by cron, indexed by epoch.

first_cron_epoch: ChainEpoch

First epoch in which a cron task may be stored. Cron will iterate every epoch between this and the current epoch inclusively to find tasks to execute.

claims: Cid

Claimed power for each miner.

proof_validation_batch: Option<Cid>

Implementations

Checks power actor state for if miner meets minimum consensus power.

Trait Implementations

Marshalls cbor encodable object into cbor bytes

Unmarshals cbor encoded bytes to object

Returns the content identifier of the raw block of data Default is Blake2b256 hash Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.