Crate fil_actor_miner_v11

Source

Modules§

detail

Structs§

ActiveBeneficiary
AdvanceDeadlineResult
ApplyRewardParams
BASE_PENALTY_FOR_DISPUTED_WINDOW_POST
Base penalty for a successful disputed window post proof.
BASE_REWARD_FOR_DISPUTED_WINDOW_POST
Base reward for successfully disputing a window posts proofs.
BeneficiaryTerm
BitFieldQueue
Wrapper for working with an AMTChainEpoch*Bitfield functioning as a queue, bucketed by epoch. Keys in the queue are quantized (upwards), modulo some offset, to reduce the cardinality of keys.
ChangeBeneficiaryParams
ChangeMultiaddrsParams
ChangeOwnerAddressParams
ChangePeerIDParams
ChangeWorkerAddressParams
CheckSectorProvenParams
CompactCommD
CompactCommD represents a Cid with compact representation of context dependant zero value
CompactPartitionsParams
CompactSectorNumbersParams
ConfirmSectorProofsParams
CronEventPayload
DEAL_WEIGHT_MULTIPLIER
Quality multiplier for unverified deals in a sector
Deadline
Deadline holds the state for all sectors due at a specific deadline.
DeadlineInfo
Deadline calculations with respect to a current epoch. “Deadline” refers to the window during which proofs may be submitted. Windows are non-overlapping ranges [Open, Close), but the challenge epoch for a window occurs before the window opens.
DeadlineSectorMap
Maps deadlines to partition maps.
Deadlines
Deadlines contains Deadline objects, describing the sectors due at the given deadline and their state (faulty, terminated, recovering, etc.).
DeclareFaultsParams
DeclareFaultsRecoveredParams
DeferredCronEventParams
DisputeInfo
DisputeWindowedPoStParams
ExpirationExtension
ExpirationExtension2
ExpirationQueue
A queue of expiration sets by epoch, representing the on-time or early termination epoch for a collection of sectors. Wraps an AMTChainEpoch*ExpirationSet. Keys in the queue are quantized (upwards), modulo some offset, to reduce the cardinality of keys.
ExpirationSet
ExpirationSet is a collection of sector numbers that are expiring, either due to expected “on-time” expiration at the end of their life, or unexpected “early” termination due to being faulty for too long consecutively. Note that there is not a direct correspondence between on-time sectors and active power; a sector may be faulty but expiring on-time if it faults just prior to expected termination. Early sectors are always faulty, and active power always represents on-time sectors.
ExtendSectorExpiration2Params
ExtendSectorExpirationParams
Fault
FaultDeclaration
GetAvailableBalanceReturn
GetBeneficiaryReturn
GetControlAddressesReturn
GetMultiaddrsReturn
GetOwnerReturn
GetPeerIDReturn
GetSectorSizeReturn
GetVestingFundsReturn
IsControllingAddressParam
IsControllingAddressReturn
MinerConstructorParams
Storage miner actor constructor params are defined here so the power actor can send them to the init actor to instantiate miners.
MinerInfo
Static information about miner
Partition
PartitionKey
PartitionSectorMap
Maps partitions to sector bitfields.
PendingBeneficiaryChange
PoStPartition
PoStResult
PowerPair
PreCommitSectorBatchParams
PreCommitSectorBatchParams2
PreCommitSectorParams
ProveCommitAggregateParams
ProveCommitSectorParams
ProveReplicaUpdatesParams
ProveReplicaUpdatesParams2
QUALITY_BASE_MULTIPLIER
Quality multiplier for committed capacity (no deals) in a sector
RecoveryDeclaration
ReplicaUpdate
ReplicaUpdate2
ReplicaUpdateInner
ReplicaUpdate param with Option for CommD None means unknown
ReportConsensusFaultParams
SectorClaim
SectorOnChainInfo
Information stored on-chain for a proven sector.
SectorPreCommitInfo
SectorPreCommitOnChainInfo
Information stored on-chain for a pre-committed sector.
Sectors
State
Balance of Miner Actor should be greater than or equal to the sum of PreCommitDeposits and LockedFunds. It is possible for balance to fall below the sum of PCD, LF and InitialPledgeRequirements, and this is a bad state (IP Debt) that limits a miner actor’s behavior (i.e. no balance withdrawals) Excess balance as computed by st.GetAvailableBalance will be withdrawable or usable for pre-commit deposit or pledge lock-up.
SubmitWindowedPoStParams
Information submitted by a miner to provide a Window PoSt.
TerminateSectorsParams
TerminateSectorsReturn
TerminationDeclaration
TerminationResult
VERIFIED_DEAL_WEIGHT_MULTIPLIER
Quality multiplier for verified deals in a sector
ValidatedExpirationExtension
VestSpec
Specification for a linear vesting schedule.
VestingFund
VestingFunds
Represents the vesting table state for the miner. It is a slice of (VestingEpoch, VestingAmount). The slice will always be sorted by the VestingEpoch.
WindowedPoSt
WithdrawBalanceParams
WithdrawBalanceReturn
WorkerKeyChange

Enums§

CollisionPolicy
Method
Storage Miner actor methods available

Constants§

CONSENSUS_FAULT_REPORTER_DEFAULT_SHARE
CONTINUED_FAULT_PROJECTION_PERIOD
CRON_EVENT_PROCESS_EARLY_TERMINATIONS
CRON_EVENT_PROVING_DEADLINE
CRON_EVENT_WORKER_KEY_CHANGE
DEADLINE_EXPIRATIONS_AMT_BITWIDTH
DEADLINE_OPTIMISTIC_POST_SUBMISSIONS_AMT_BITWIDTH
DEADLINE_PARTITIONS_AMT_BITWIDTH
INITIAL_PLEDGE_FACTOR
Projection period of expected sector block rewards for storage pledge required to commit a sector. This pledge is lost if a sector is terminated before its full committed lifetime.
INITIAL_PLEDGE_PROJECTION_PERIOD
MIN_SECTOR_EXPIRATION
minimum number of epochs past the current epoch a sector may be set to expire
PRE_COMMIT_DEPOSIT_PROJECTION_PERIOD
REWARD_VESTING_SPEC
SECTORS_AMT_BITWIDTH
SECTOR_QUALITY_PRECISION
Precision used for making QA power calculations
TERMINATION_LIFETIME_CAP
TERMINATION_REWARD_FACTOR_DENOM
TERMINATION_REWARD_FACTOR_NUM

Functions§

aggregate_network_fee
aggregate_pre_commit_network_fee
aggregate_prove_commit_network_fee
assign_deadlines
can_extend_seal_proof_type
Checks whether a seal proof type is supported for new miners and sectors.
can_pre_commit_seal_proof
List of proof types which can be used when creating new miner actors
consensus_fault_penalty
convert_window_post_proof_v1p1_to_v1
Convert the v1_1 PoSt Proof type to the older v1 types (used in nv18 and below)
deadline_available_for_compaction
deadline_available_for_optimistic_post_dispute
deadline_is_mutable
Returns true if the deadline at the given index is currently mutable.
expected_reward_for_power
The projected block reward a sector would earn over some period. Also known as “BR(t)”. BR(t) = ProjectedRewardFraction(t) * SectorQualityAdjustedPower ProjectedRewardFraction(t) is the sum of estimated reward over estimated total power over all epochs in the projection period [t t+projectionDuration]
initial_pledge_for_power
Computes the pledge requirement for committing new quality-adjusted power to the network, given the current network total and baseline power, per-epoch reward, and circulating token supply. The pledge comprises two parts:
is_sealed_sector
Prefix for sealed sector CIDs (CommR).
is_unsealed_sector
Prefix for unsealed sector CIDs (CommD).
is_window_post_proof_v1p1
Convert the v1_1 PoSt Proof type to the older v1 types (used in nv18 and below)
load_partitions_sectors_max
The maximum number of partitions that may be required to be loaded in a single invocation, when all the sector infos for the partitions will be loaded.
locked_reward_from_reward
Returns the amount of a reward to vest, and the vesting schedule, for a reward amount.
max_prove_commit_duration
Maximum duration to allow for the sealing process for seal algorithms. Dependent on algorithm and sector size
new_deadline_info
new_deadline_info_from_offset_and_epoch
pledge_penalty_for_continued_fault
The penalty for a sector continuing faulty for another proving period. It is a projection of the expected reward earned by the sector. Also known as “FF(t)”
pledge_penalty_for_invalid_windowpost
pledge_penalty_for_termination
Penalty to locked pledge collateral for the termination of a sector before scheduled expiry. SectorAge is the time between the sector’s activation and termination.
pledge_penalty_for_termination_lower_bound
This is the SP(t) penalty for a newly faulty sector that has not been declared. SP(t) = UndeclaredFaultFactor * BR(t)
power_for_sector
power_for_sectors
Returns the sum of the raw byte and quality-adjusted power for sectors.
pre_commit_deposit_for_power
Computes the PreCommit deposit given sector qa weight and current network conditions. PreCommit Deposit = BR(PreCommitDepositProjectionPeriod)
qa_power_for_sector
Returns the quality-adjusted power for a sector.
qa_power_for_weight
Returns the power for a sector size and weight.
qa_power_max
Returns maximum achievable QA power.
quality_for_weight
DealWeight and VerifiedDealWeight are spacetime occupied by regular deals and verified deals in a sector. Sum of DealWeight and VerifiedDealWeight should be less than or equal to total SpaceTime of a sector. Sectors full of VerifiedDeals will have a SectorQuality of VerifiedDealWeightMultiplier/QualityBaseMultiplier. Sectors full of Deals will have a SectorQuality of DealWeightMultiplier/QualityBaseMultiplier. Sectors with neither will have a SectorQuality of QualityBaseMultiplier/QualityBaseMultiplier. SectorQuality of a sector is a weighted average of multipliers based on their proportions.
quant_spec_for_deadline
reward_for_consensus_slash_report
reward_for_disputed_window_post
seal_proof_sector_maximum_lifetime
Maximum duration to allow for the sealing process for seal algorithms. Dependent on algorithm and sector size
sector_deals_max
Determine maximum number of deal miner’s sector can hold
select_sectors

Type Aliases§

CronEvent