Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Address = builtin5.StoragePowerActorAddr Methods = builtin5.MethodsPower )
Functions ¶
func GetActorCodeID ¶ added in v0.9.7
func GetActorCodeID(av specactors.Version) (cid.Cid, error)
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 ¶ added in v0.9.1
type ClaimChanges struct { Added []ClaimInfo Modified []ClaimModification Removed []ClaimInfo }
func DiffClaims ¶ added in v0.9.1
func DiffClaims(pre, cur State) (*ClaimChanges, error)
type ClaimModification ¶ added in v0.9.1
type State ¶
type State interface { cbor.Marshaler TotalLocked() (abi.TokenAmount, error) TotalPower() (Claim, error) TotalCommitted() (Claim, error) TotalPowerSmoothed() (builtin.FilterEstimate, error) GetState() interface{} // 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) // Testing or genesis setup only SetTotalQualityAdjPower(abi.StoragePower) error SetTotalRawBytePower(abi.StoragePower) error SetThisEpochQualityAdjPower(abi.StoragePower) error SetThisEpochRawBytePower(abi.StoragePower) error // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.