Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainPowerExtractor ¶
type ChainPowerExtractor struct{}
func (ChainPowerExtractor) Extract ¶
func (ChainPowerExtractor) Extract(ctx context.Context, a actorstate.ActorInfo, node actorstate.ActorStateAPI) (model.Persistable, error)
type ClaimedPowerExtractor ¶
type ClaimedPowerExtractor struct{}
func (ClaimedPowerExtractor) Extract ¶
func (c ClaimedPowerExtractor) Extract(ctx context.Context, a actorstate.ActorInfo, node actorstate.ActorStateAPI) (model.Persistable, error)
type PowerStateExtractionContext ¶
type PowerStateExtractionContext struct { PrevState power.State CurrState power.State CurrTs *types.TipSet Store adt.Store PreviousStatePresent bool }
func NewPowerStateExtractionContext ¶
func NewPowerStateExtractionContext(ctx context.Context, a actorstate.ActorInfo, node actorstate.ActorStateAPI) (*PowerStateExtractionContext, error)
func (*PowerStateExtractionContext) HasPreviousState ¶
func (p *PowerStateExtractionContext) HasPreviousState() bool
type StoragePowerExtractor ¶
type StoragePowerExtractor struct{}
StoragePowerExtractor extracts power actor state
func (StoragePowerExtractor) Extract ¶
func (StoragePowerExtractor) Extract(ctx context.Context, a actorstate.ActorInfo, node actorstate.ActorStateAPI) (model.Persistable, error)
Click to show internal directories.
Click to hide internal directories.