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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Address = builtin13.StoragePowerActorAddr Methods = builtin13.MethodsPower )
Functions ¶
func NewClaimDiffContainer ¶
func NewClaimDiffContainer(pre, cur State) *claimDiffContainer
func VersionCodes ¶ added in v0.11.0
func VersionCodes() map[actorstypes.Version]cid.Cid
Types ¶
type Claim ¶
type Claim struct { // Sum of raw byte power for a miner's sectors. RawBytePower abi.StoragePower // Sum of quality adjusted power for a miner's sectors. QualityAdjPower abi.StoragePower }
type ClaimChanges ¶
type ClaimChanges struct { Added []ClaimInfo Modified []ClaimModification Removed []ClaimInfo }
func DiffClaims ¶
type ClaimModification ¶
type State ¶
type State interface { cbor.Marshaler Code() cid.Cid ActorKey() string ActorVersion() actorstypes.Version TotalLocked() (abi.TokenAmount, error) TotalPower() (Claim, error) TotalCommitted() (Claim, error) TotalPowerSmoothed() (builtin.FilterEstimate, error) // MinerCounts returns the number of miners. Participating is the number // with power above the minimum miner threshold. MinerCounts() (participating, total uint64, err error) MinerPower(address.Address) (Claim, bool, error) MinerNominalPowerMeetsConsensusMinimum(address.Address) (bool, error) ListAllMiners() ([]address.Address, error) ForEachClaim(func(miner address.Address, claim Claim) error) error ClaimsChanged(State) (bool, error) // Diff helpers. Used by Diff* functions internally. ClaimsMap() (adt.Map, error) ClaimsMapBitWidth() int ClaimsMapHashFunction() func(input []byte) []byte // contains filtered or unexported methods }