Documentation ¶
Overview ¶
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func AllCodes() []cid.Cid
- func ArrayRequiresLegacyDiffing(pre, cur State, pOpts, cOpts int) bool
- func MapRequiresLegacyDiffing(pre, cur State, pOpts, cOpts *adt.MapOpts) bool
- func NewPreCommitDiffContainer(pre, cur State) *preCommitDiffContainer
- func NewPreCommitDiffContainerV8(pre, cur State) *preCommitDiffContainerV8
- func NewSectorDiffContainer(pre, cur State) *sectorDiffContainer
- func PreferredSealProofTypeFromWindowPoStType(nver network.Version, proof abi.RegisteredPoStProof, configWantSynthetic bool) (abi.RegisteredSealProof, error)
- func VersionCodes() map[actorstypes.Version]cid.Cid
- func WinningPoStProofTypeFromWindowPoStProofType(nver network.Version, proof abi.RegisteredPoStProof) (abi.RegisteredPoStProof, error)
- type BeneficiaryTerm
- type CompactPartitionsParams
- type Deadline
- type DeclareFaultsParams
- type DeclareFaultsRecoveredParams
- type ExpirationExtension2
- type ExtendSectorExpiration2Params
- type FaultDeclaration
- type LockedFunds
- type MinerInfo
- type Partition
- type PendingBeneficiaryChange
- type PieceActivationManifest
- type PoStPartition
- type PreCommitChanges
- type PreCommitChangesV8
- type PreCommitSectorBatchParams
- type PreCommitSectorBatchParams2
- type ProveCommitAggregateParams
- type ProveCommitSectorParams
- type ProveCommitSectors3Params
- type ProveReplicaUpdates3Params
- type ProveReplicaUpdatesParams
- type RecoveryDeclaration
- type ReplicaUpdate
- type SectorActivationManifest
- type SectorChanges
- type SectorClaim
- type SectorExpiration
- type SectorExtensions
- type SectorLocation
- type SectorModification
- type SectorOnChainInfo
- type SectorOnChainInfoFlags
- type SectorPreCommitInfo
- type SectorPreCommitOnChainInfo
- type SectorUpdateManifest
- type State
- type SubmitWindowedPoStParams
- type VerifiedAllocationKey
- type WindowPostVerifyInfo
- type WithdrawBalanceParams
- type WorkerKeyChange
Constants ¶
const FaultDeclarationCutoff = minertypes.FaultDeclarationCutoff
const MinAggregatedSectors = minertypes.MinAggregatedSectors
const MinSectorExpiration = minertypes.MinSectorExpiration
const WPoStChallengeLookback = minertypes.WPoStChallengeLookback
const WPoStPeriodDeadlines = minertypes.WPoStPeriodDeadlines
Variables ¶
var QAPowerMax = minertypes.QAPowerMax
var WPoStChallengeWindow = func() abi.ChainEpoch { return minertypes.WPoStChallengeWindow }
var WPoStProvingPeriod = func() abi.ChainEpoch { return minertypes.WPoStProvingPeriod }
Functions ¶
func ArrayRequiresLegacyDiffing ¶ added in v0.9.0
func MapRequiresLegacyDiffing ¶ added in v0.9.0
func NewPreCommitDiffContainer ¶
func NewPreCommitDiffContainer(pre, cur State) *preCommitDiffContainer
func NewPreCommitDiffContainerV8 ¶ added in v0.13.0
func NewPreCommitDiffContainerV8(pre, cur State) *preCommitDiffContainerV8
func NewSectorDiffContainer ¶
func NewSectorDiffContainer(pre, cur State) *sectorDiffContainer
func PreferredSealProofTypeFromWindowPoStType ¶
func PreferredSealProofTypeFromWindowPoStType(nver network.Version, proof abi.RegisteredPoStProof, configWantSynthetic bool) (abi.RegisteredSealProof, error)
func VersionCodes ¶ added in v0.11.0
func VersionCodes() map[actorstypes.Version]cid.Cid
func WinningPoStProofTypeFromWindowPoStProofType ¶
func WinningPoStProofTypeFromWindowPoStProofType(nver network.Version, proof abi.RegisteredPoStProof) (abi.RegisteredPoStProof, error)
Types ¶
type BeneficiaryTerm ¶ added in v0.14.0
type BeneficiaryTerm = minertypes.BeneficiaryTerm
type CompactPartitionsParams ¶ added in v0.17.3
type CompactPartitionsParams = minertypes.CompactPartitionsParams
type DeclareFaultsParams ¶
type DeclareFaultsParams = minertypes.DeclareFaultsParams
type DeclareFaultsRecoveredParams ¶
type DeclareFaultsRecoveredParams = minertypes.DeclareFaultsRecoveredParams
type ExpirationExtension2 ¶ added in v0.17.3
type ExpirationExtension2 = minertypes.ExpirationExtension2
type ExtendSectorExpiration2Params ¶ added in v0.17.3
type ExtendSectorExpiration2Params = minertypes.ExtendSectorExpiration2Params
type FaultDeclaration ¶
type FaultDeclaration = minertypes.FaultDeclaration
type LockedFunds ¶
type LockedFunds struct { VestingFunds abi.TokenAmount InitialPledgeRequirement abi.TokenAmount PreCommitDeposits abi.TokenAmount }
func (LockedFunds) TotalLockedFunds ¶
func (lf LockedFunds) TotalLockedFunds() abi.TokenAmount
type MinerInfo ¶
type MinerInfo = minertypes.MinerInfo
type Partition ¶
type Partition interface { // AllSectors returns all sector numbers in this partition, including faulty, unproven, and terminated sectors AllSectors() (bitfield.BitField, error) // Subset of sectors detected/declared faulty and not yet recovered (excl. from PoSt). // Faults ∩ Terminated = ∅ FaultySectors() (bitfield.BitField, error) // Subset of faulty sectors expected to recover on next PoSt // Recoveries ∩ Terminated = ∅ RecoveringSectors() (bitfield.BitField, error) // Live sectors are those that are not terminated (but may be faulty). LiveSectors() (bitfield.BitField, error) // Active sectors are those that are neither terminated nor faulty nor unproven, i.e. actively contributing power. ActiveSectors() (bitfield.BitField, error) // Unproven sectors in this partition. This bitfield will be cleared on // a successful window post (or at the end of the partition's next // deadline). At that time, any still unproven sectors will be added to // the faulty sector bitfield. UnprovenSectors() (bitfield.BitField, error) }
type PendingBeneficiaryChange ¶ added in v0.14.0
type PendingBeneficiaryChange = minertypes.PendingBeneficiaryChange
type PieceActivationManifest ¶ added in v0.21.0
type PieceActivationManifest = minertypes13.PieceActivationManifest
type PoStPartition ¶
type PoStPartition = minertypes.PoStPartition
type PreCommitChanges ¶
type PreCommitChanges struct { Added []SectorPreCommitOnChainInfo Removed []SectorPreCommitOnChainInfo }
func DiffPreCommits ¶
func MakePreCommitChanges ¶ added in v0.9.0
func MakePreCommitChanges() *PreCommitChanges
type PreCommitChangesV8 ¶ added in v0.13.0
type PreCommitChangesV8 struct { Added []miner8.SectorPreCommitOnChainInfo Removed []miner8.SectorPreCommitOnChainInfo }
func DiffPreCommitsV8 ¶ added in v0.13.0
func MakePreCommitChangesV8 ¶ added in v0.13.0
func MakePreCommitChangesV8() *PreCommitChangesV8
type PreCommitSectorBatchParams ¶ added in v0.17.3
type PreCommitSectorBatchParams = minertypes.PreCommitSectorBatchParams
type PreCommitSectorBatchParams2 ¶ added in v0.17.3
type PreCommitSectorBatchParams2 = minertypes.PreCommitSectorBatchParams2
type ProveCommitAggregateParams ¶ added in v0.8.6
type ProveCommitAggregateParams = minertypes.ProveCommitAggregateParams
type ProveCommitSectorParams ¶
type ProveCommitSectorParams = minertypes.ProveCommitSectorParams
type ProveCommitSectors3Params ¶ added in v0.21.0
type ProveCommitSectors3Params = minertypes13.ProveCommitSectors3Params
type ProveReplicaUpdates3Params ¶ added in v0.21.0
type ProveReplicaUpdates3Params = minertypes13.ProveReplicaUpdates3Params
type ProveReplicaUpdatesParams ¶ added in v0.8.6
type ProveReplicaUpdatesParams = minertypes.ProveReplicaUpdatesParams
type RecoveryDeclaration ¶
type RecoveryDeclaration = minertypes.RecoveryDeclaration
type ReplicaUpdate ¶ added in v0.17.3
type ReplicaUpdate = minertypes.ReplicaUpdate
type SectorActivationManifest ¶ added in v0.21.0
type SectorActivationManifest = minertypes13.SectorActivationManifest
type SectorChanges ¶
type SectorChanges struct { Added []SectorOnChainInfo Extended []SectorModification Snapped []SectorModification Removed []SectorOnChainInfo }
func DiffSectors ¶
func MakeSectorChanges ¶ added in v0.9.0
func MakeSectorChanges() *SectorChanges
type SectorClaim ¶ added in v0.17.3
type SectorClaim = minertypes.SectorClaim
type SectorExpiration ¶
type SectorExpiration struct { OnTime abi.ChainEpoch // non-zero if sector is faulty, epoch at which it will be permanently // removed if it doesn't recover Early abi.ChainEpoch }
type SectorExtensions ¶
type SectorExtensions struct { From SectorOnChainInfo To SectorOnChainInfo }
type SectorLocation ¶
type SectorModification ¶ added in v0.8.6
type SectorModification struct { From SectorOnChainInfo To SectorOnChainInfo }
type SectorOnChainInfo ¶
type SectorOnChainInfo = miner16.SectorOnChainInfo
type SectorOnChainInfoFlags ¶ added in v0.21.0
type SectorOnChainInfoFlags = minertypes13.SectorOnChainInfoFlags
type SectorPreCommitInfo ¶
type SectorPreCommitInfo = minertypes.SectorPreCommitInfo
type SectorPreCommitOnChainInfo ¶
type SectorPreCommitOnChainInfo = minertypes.SectorPreCommitOnChainInfo
type SectorUpdateManifest ¶ added in v0.21.0
type SectorUpdateManifest = minertypes13.SectorUpdateManifest
type State ¶
type State interface { cbor.Marshaler Code() cid.Cid ActorKey() string ActorVersion() actorstypes.Version // Total available balance to spend. AvailableBalance(abi.TokenAmount) (abi.TokenAmount, error) // Funds that will vest by the given epoch. VestedFunds(abi.ChainEpoch) (abi.TokenAmount, error) // Funds locked for various reasons. LockedFunds() (LockedFunds, error) FeeDebt() (abi.TokenAmount, error) GetSector(abi.SectorNumber) (*SectorOnChainInfo, error) FindSector(abi.SectorNumber) (*SectorLocation, error) GetSectorExpiration(abi.SectorNumber) (*SectorExpiration, error) GetPrecommittedSector(abi.SectorNumber) (*SectorPreCommitOnChainInfo, error) ForEachPrecommittedSector(func(SectorPreCommitOnChainInfo) error) error LoadSectors(sectorNos *bitfield.BitField) ([]*SectorOnChainInfo, error) NumLiveSectors() (uint64, error) IsAllocated(abi.SectorNumber) (bool, error) // UnallocatedSectorNumbers returns up to count unallocated sector numbers (or less than // count if there aren't enough). UnallocatedSectorNumbers(count int) ([]abi.SectorNumber, error) GetAllocatedSectors() (*bitfield.BitField, error) // Note that ProvingPeriodStart is deprecated and will be renamed / removed in a future version of actors GetProvingPeriodStart() (abi.ChainEpoch, error) // Testing only EraseAllUnproven() error LoadDeadline(idx uint64) (Deadline, error) ForEachDeadline(cb func(idx uint64, dl Deadline) error) error NumDeadlines() (uint64, error) DeadlinesChanged(State) (bool, error) Info() (MinerInfo, error) MinerInfoChanged(State) (bool, error) DeadlineInfo(epoch abi.ChainEpoch) (*dline.Info, error) DeadlineCronActive() (bool, error) GetState() interface{} // Diff helpers. Used by Diff* functions internally. SectorsArray() (adt.Array, error) SectorsAmtBitwidth() int DecodeSectorOnChainInfo(*cbg.Deferred) (SectorOnChainInfo, error) PrecommitsMap() (adt.Map, error) PrecommitsMapBitWidth() int PrecommitsMapHashFunction() func(input []byte) []byte DecodeSectorPreCommitOnChainInfo(*cbg.Deferred) (SectorPreCommitOnChainInfo, error) DecodeSectorPreCommitOnChainInfoToV8(*cbg.Deferred) (miner8.SectorPreCommitOnChainInfo, error) ForEachPrecommittedSectorV8(func(miner8.SectorPreCommitOnChainInfo) error) error }
type SubmitWindowedPoStParams ¶
type SubmitWindowedPoStParams = minertypes.SubmitWindowedPoStParams
type VerifiedAllocationKey ¶ added in v0.21.0
type VerifiedAllocationKey = minertypes13.VerifiedAllocationKey
type WindowPostVerifyInfo ¶ added in v0.11.0
type WindowPostVerifyInfo = proof.WindowPoStVerifyInfo
type WithdrawBalanceParams ¶ added in v0.17.3
type WithdrawBalanceParams = minertypes.WithdrawBalanceParams
type WorkerKeyChange ¶ added in v0.11.0
type WorkerKeyChange = minertypes.WorkerKeyChange