Documentation
¶
Index ¶
- Variables
- func ComputeState(ctx context.Context, sm *StateManager, height abi.ChainEpoch, ...) (cid.Cid, []*api.InvocResult, error)
- func GetLookbackTipSetForRound(ctx context.Context, sm *StateManager, ts *types.TipSet, round abi.ChainEpoch) (*types.TipSet, error)
- func GetMinerDeadlines(ctx context.Context, sm *StateManager, ts *types.TipSet, maddr address.Address) (*miner.Deadlines, error)
- func GetMinerFaults(ctx context.Context, sm *StateManager, ts *types.TipSet, maddr address.Address) (*abi.BitField, error)
- func GetMinerRecoveries(ctx context.Context, sm *StateManager, ts *types.TipSet, maddr address.Address) (*abi.BitField, error)
- func GetMinerSectorSet(ctx context.Context, sm *StateManager, ts *types.TipSet, maddr address.Address, ...) ([]*api.ChainSectorInfo, error)
- func GetMinerSlashed(ctx context.Context, sm *StateManager, ts *types.TipSet, maddr address.Address) (bool, error)
- func GetMinerWorkerRaw(ctx context.Context, sm *StateManager, st cid.Cid, maddr address.Address) (address.Address, error)
- func GetNetworkName(ctx context.Context, sm *StateManager, st cid.Cid) (dtypes.NetworkName, error)
- func GetPower(ctx context.Context, sm *StateManager, ts *types.TipSet, maddr address.Address) (power.Claim, power.Claim, error)
- func GetPowerRaw(ctx context.Context, sm *StateManager, st cid.Cid, maddr address.Address) (power.Claim, power.Claim, error)
- func GetProvingSetRaw(ctx context.Context, sm *StateManager, mas miner.State) ([]*api.ChainSectorInfo, error)
- func GetSectorsForWinningPoSt(ctx context.Context, pv ffiwrapper.Verifier, sm *StateManager, st cid.Cid, ...) ([]abi.SectorInfo, error)
- func GetStorageDeal(ctx context.Context, sm *StateManager, dealId abi.DealID, ts *types.TipSet) (*api.MarketDeal, error)
- func ListMinerActors(ctx context.Context, sm *StateManager, ts *types.TipSet) ([]address.Address, error)
- func LoadSectorsFromSet(ctx context.Context, bs blockstore.Blockstore, ssc cid.Cid, ...) ([]*api.ChainSectorInfo, error)
- func MinerGetBaseInfo(ctx context.Context, sm *StateManager, bcn beacon.RandomBeacon, ...) (*api.MiningBaseInfo, error)
- func PreCommitInfo(ctx context.Context, sm *StateManager, maddr address.Address, ...) (miner.SectorPreCommitOnChainInfo, error)
- func SectorSetSizes(ctx context.Context, sm *StateManager, maddr address.Address, ts *types.TipSet) (api.MinerSectors, error)
- func StateMinerInfo(ctx context.Context, sm *StateManager, ts *types.TipSet, maddr address.Address) (miner.MinerInfo, error)
- type BlockMessages
- type ExecCallback
- type StateManager
- func (sm *StateManager) ApplyBlocks(ctx context.Context, pstate cid.Cid, bms []BlockMessages, epoch abi.ChainEpoch, ...) (cid.Cid, cid.Cid, error)
- func (sm *StateManager) Call(ctx context.Context, msg *types.Message, ts *types.TipSet) (*api.InvocResult, error)
- func (sm *StateManager) CallRaw(ctx context.Context, msg *types.Message, bstate cid.Cid, r vm.Rand, ...) (*api.InvocResult, error)
- func (sm *StateManager) ChainStore() *store.ChainStore
- func (sm *StateManager) ExecutionTrace(ctx context.Context, ts *types.TipSet) (cid.Cid, []*api.InvocResult, error)
- func (sm *StateManager) GetActor(addr address.Address, ts *types.TipSet) (*types.Actor, error)
- func (sm *StateManager) GetBalance(addr address.Address, ts *types.TipSet) (types.BigInt, error)
- func (sm *StateManager) GetBlsPublicKey(ctx context.Context, addr address.Address, ts *types.TipSet) (pubk bls.PublicKey, err error)
- func (sm *StateManager) GetReceipt(ctx context.Context, msg cid.Cid, ts *types.TipSet) (*types.MessageReceipt, error)
- func (sm *StateManager) ListAllActors(ctx context.Context, ts *types.TipSet) ([]address.Address, error)
- func (sm *StateManager) LoadActorState(ctx context.Context, a address.Address, out interface{}, ts *types.TipSet) (*types.Actor, error)
- func (sm *StateManager) LoadActorStateRaw(ctx context.Context, a address.Address, out interface{}, st cid.Cid) (*types.Actor, error)
- func (sm *StateManager) LookupID(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
- func (sm *StateManager) MarketBalance(ctx context.Context, addr address.Address, ts *types.TipSet) (api.MarketBalance, error)
- func (sm *StateManager) Replay(ctx context.Context, ts *types.TipSet, mcid cid.Cid) (*types.Message, *vm.ApplyRet, error)
- func (sm *StateManager) ResolveToKeyAddress(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
- func (sm *StateManager) SearchForMessage(ctx context.Context, mcid cid.Cid) (*types.TipSet, *types.MessageReceipt, error)
- func (sm *StateManager) SetVMConstructor(...)
- func (sm *StateManager) TipSetState(ctx context.Context, ts *types.TipSet) (st cid.Cid, rec cid.Cid, err error)
- func (sm *StateManager) ValidateChain(ctx context.Context, ts *types.TipSet) error
- func (sm *StateManager) WaitForMessage(ctx context.Context, mcid cid.Cid) (*types.TipSet, *types.MessageReceipt, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ForksAtHeight = map[abi.ChainEpoch]func(context.Context, *StateManager, cid.Cid) (cid.Cid, error){}
Functions ¶
func ComputeState ¶ added in v0.2.5
func ComputeState(ctx context.Context, sm *StateManager, height abi.ChainEpoch, msgs []*types.Message, ts *types.TipSet) (cid.Cid, []*api.InvocResult, error)
func GetLookbackTipSetForRound ¶ added in v0.3.0
func GetLookbackTipSetForRound(ctx context.Context, sm *StateManager, ts *types.TipSet, round abi.ChainEpoch) (*types.TipSet, error)
func GetMinerDeadlines ¶ added in v0.3.0
func GetMinerFaults ¶ added in v0.2.8
func GetMinerRecoveries ¶ added in v0.3.1
func GetMinerSectorSet ¶
func GetMinerSlashed ¶
func GetMinerWorkerRaw ¶
func GetNetworkName ¶ added in v0.3.0
func GetNetworkName(ctx context.Context, sm *StateManager, st cid.Cid) (dtypes.NetworkName, error)
func GetPowerRaw ¶ added in v0.3.0
func GetProvingSetRaw ¶ added in v0.3.0
func GetProvingSetRaw(ctx context.Context, sm *StateManager, mas miner.State) ([]*api.ChainSectorInfo, error)
func GetSectorsForWinningPoSt ¶ added in v0.3.0
func GetSectorsForWinningPoSt(ctx context.Context, pv ffiwrapper.Verifier, sm *StateManager, st cid.Cid, maddr address.Address, rand abi.PoStRandomness) ([]abi.SectorInfo, error)
func GetStorageDeal ¶
func GetStorageDeal(ctx context.Context, sm *StateManager, dealId abi.DealID, ts *types.TipSet) (*api.MarketDeal, error)
func ListMinerActors ¶ added in v0.1.5
func LoadSectorsFromSet ¶
func LoadSectorsFromSet(ctx context.Context, bs blockstore.Blockstore, ssc cid.Cid, filter *abi.BitField, filterOut bool) ([]*api.ChainSectorInfo, error)
func MinerGetBaseInfo ¶ added in v0.3.0
func MinerGetBaseInfo(ctx context.Context, sm *StateManager, bcn beacon.RandomBeacon, tsk types.TipSetKey, round abi.ChainEpoch, maddr address.Address, pv ffiwrapper.Verifier) (*api.MiningBaseInfo, error)
func PreCommitInfo ¶ added in v0.3.0
func PreCommitInfo(ctx context.Context, sm *StateManager, maddr address.Address, sid abi.SectorNumber, ts *types.TipSet) (miner.SectorPreCommitOnChainInfo, error)
func SectorSetSizes ¶ added in v0.1.5
func SectorSetSizes(ctx context.Context, sm *StateManager, maddr address.Address, ts *types.TipSet) (api.MinerSectors, error)
func StateMinerInfo ¶ added in v0.3.0
Types ¶
type BlockMessages ¶ added in v0.3.0
type ExecCallback ¶ added in v0.3.0
type StateManager ¶
type StateManager struct {
// contains filtered or unexported fields
}
func NewStateManager ¶
func NewStateManager(cs *store.ChainStore) *StateManager
func (*StateManager) ApplyBlocks ¶ added in v0.3.0
func (sm *StateManager) ApplyBlocks(ctx context.Context, pstate cid.Cid, bms []BlockMessages, epoch abi.ChainEpoch, r vm.Rand, cb ExecCallback) (cid.Cid, cid.Cid, error)
func (*StateManager) Call ¶
func (sm *StateManager) Call(ctx context.Context, msg *types.Message, ts *types.TipSet) (*api.InvocResult, error)
func (*StateManager) CallRaw ¶
func (sm *StateManager) CallRaw(ctx context.Context, msg *types.Message, bstate cid.Cid, r vm.Rand, bheight abi.ChainEpoch) (*api.InvocResult, error)
func (*StateManager) ChainStore ¶
func (sm *StateManager) ChainStore() *store.ChainStore
func (*StateManager) ExecutionTrace ¶ added in v0.3.0
func (sm *StateManager) ExecutionTrace(ctx context.Context, ts *types.TipSet) (cid.Cid, []*api.InvocResult, error)
func (*StateManager) GetBalance ¶
func (*StateManager) GetBlsPublicKey ¶
func (*StateManager) GetReceipt ¶
func (sm *StateManager) GetReceipt(ctx context.Context, msg cid.Cid, ts *types.TipSet) (*types.MessageReceipt, error)
func (*StateManager) ListAllActors ¶
func (*StateManager) LoadActorState ¶
func (*StateManager) LoadActorStateRaw ¶ added in v0.3.0
func (*StateManager) MarketBalance ¶
func (sm *StateManager) MarketBalance(ctx context.Context, addr address.Address, ts *types.TipSet) (api.MarketBalance, error)
func (*StateManager) ResolveToKeyAddress ¶
func (sm *StateManager) ResolveToKeyAddress(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
Similar to `vm.ResolveToKeyAddr` but does not allow `Actor` type of addresses. Uses the `TipSet` `ts` to generate the VM state.
func (*StateManager) SearchForMessage ¶ added in v0.3.0
func (sm *StateManager) SearchForMessage(ctx context.Context, mcid cid.Cid) (*types.TipSet, *types.MessageReceipt, error)
func (*StateManager) SetVMConstructor ¶ added in v0.2.8
func (sm *StateManager) SetVMConstructor(nvm func(cid.Cid, abi.ChainEpoch, vm.Rand, blockstore.Blockstore, runtime.Syscalls) (*vm.VM, error))
func (*StateManager) TipSetState ¶
func (*StateManager) ValidateChain ¶ added in v0.2.6
func (*StateManager) WaitForMessage ¶
func (sm *StateManager) WaitForMessage(ctx context.Context, mcid cid.Cid) (*types.TipSet, *types.MessageReceipt, error)
Click to show internal directories.
Click to hide internal directories.