Versions in this module Expand all Collapse all v8 v8.0.1 Jun 10, 2022 v8.0.0 Apr 22, 2022 Changes in this version + const CurrentStateTreeVersion + const InvalidProof + const RandString + var EmptyObjectCid cid.Cid + var ExpectOK = &okExitCode + var FIL = big.NewInt(1e18) + var UnsealedCIDPrefix = cid.Prefix + var VerifregRoot address.Address + func ApplyCode(t *testing.T, v *VM, from, to address.Address, value abi.TokenAmount, ...) cbor.Marshaler + func ApplyOk(t *testing.T, v *VM, from, to address.Address, value abi.TokenAmount, ...) cbor.Marshaler + func CheckSectorActive(t *testing.T, v *VM, minerIDAddress address.Address, deadlineIndex uint64, ...) bool + func CheckSectorFaulty(t *testing.T, v *VM, minerIDAddress address.Address, deadlineIndex uint64, ...) bool + func CreateAccounts(ctx context.Context, t testing.TB, vm *VM, n int, balance abi.TokenAmount, ...) []address.Address + func DeadlineState(t *testing.T, v *VM, minerIDAddress address.Address, dlIndex uint64) *miner.Deadline + func DeclareRecovery(t *testing.T, v *VM, minerAddress, workerAddress address.Address, ...) + func ExpectAttoFil(amount big.Int) *big.Int + func ExpectBytes(b []byte) *objectExpectation + func ExpectExitCode(code exitcode.ExitCode) *exitcode.ExitCode + func ExpectObject(v cbor.Marshaler) *objectExpectation + func GetDealState(t *testing.T, vm *VM, dealID abi.DealID) (*market.DealState, bool) + func MinerDLInfo(t *testing.T, v *VM, minerIDAddr address.Address) *dline.Info + func MinerPower(t *testing.T, vm *VM, minerIdAddr address.Address) miner.PowerPair + func NextMinerDLInfo(t *testing.T, v *VM, minerIDAddr address.Address) *dline.Info + func ParamsForInvocation(t *testing.T, vm *VM, idxs ...int) interface + func PowerForMinerSector(t *testing.T, vm *VM, minerIdAddr address.Address, ...) miner.PowerPair + func RequireNormalizeAddress(t *testing.T, addr address.Address, v *VM) address.Address + func SectorDeadline(t *testing.T, v *VM, minerIDAddress address.Address, ...) (uint64, uint64) + func SectorInfo(t *testing.T, v *VM, minerIDAddress address.Address, ...) *miner.SectorOnChainInfo + func SubmitInvalidPoSt(t *testing.T, v *VM, minerAddress, workerAddress address.Address, ...) + func SubmitPoSt(t *testing.T, v *VM, minerAddress, workerAddress address.Address, ...) + func ValueForInvocation(t *testing.T, vm *VM, idxs ...int) abi.TokenAmount + type ActorImplLookup vm2.ActorImplLookup + type CallStats = vm2.CallStats + type ChainMessage struct + From address.Address + GasFeeCap abi.TokenAmount + GasLimit int64 + GasPremium abi.TokenAmount + Method abi.MethodNum + Nonce uint64 + Params []byte + To address.Address + Value abi.TokenAmount + Version uint64 + func (t *ChainMessage) MarshalCBOR(w io.Writer) error + func (t *ChainMessage) UnmarshalCBOR(r io.Reader) error + type ExpectInvocation struct + Exitcode exitcode.ExitCode + From address.Address + Method abi.MethodNum + Params *objectExpectation + Ret *objectExpectation + SubInvocations []ExpectInvocation + To address.Address + Value *abi.TokenAmount + func (ei ExpectInvocation) Matches(t *testing.T, invocations *Invocation) + type GasCharge struct + ComputeGas int64 + Extra interface{} + Name string + StorageGas int64 + VirtualCompute int64 + VirtualStorage int64 + func (g GasCharge) Total() int64 + func (g GasCharge) WithExtra(extra interface{}) GasCharge + func (g GasCharge) WithVirtual(compute, storage int64) GasCharge + type InternalMessage struct + func (msg InternalMessage) Caller() address.Address + func (msg InternalMessage) Receiver() address.Address + func (msg InternalMessage) ValueReceived() abi.TokenAmount + type Invocation struct + Exitcode exitcode.ExitCode + Msg *InternalMessage + Ret cbor.Marshaler + SubInvocations []*Invocation + type MessageResult struct + Code exitcode.ExitCode + GasCharged int64 + Ret cbor.Marshaler + func RequireApplyMessage(t *testing.T, v *VM, from, to address.Address, value abi.TokenAmount, ...) MessageResult + type MethodKey = vm2.MethodKey + type MinerBalances struct + AvailableBalance abi.TokenAmount + InitialPledge abi.TokenAmount + PreCommitDeposit abi.TokenAmount + VestingBalance abi.TokenAmount + func GetMinerBalances(t *testing.T, vm *VM, minerIdAddr address.Address) MinerBalances + type NetworkStats struct + MinerAboveMinPowerCount int64 + MinerCount int64 + ThisEpochBaselinePower abi.StoragePower + ThisEpochPledgeCollateral abi.TokenAmount + ThisEpochQualityAdjPower abi.StoragePower + ThisEpochRawBytePower abi.StoragePower + ThisEpochReward abi.TokenAmount + ThisEpochRewardSmoothed smoothing.FilterEstimate + TotalBytesCommitted abi.StoragePower + TotalClientLockedCollateral abi.TokenAmount + TotalClientStorageFee abi.TokenAmount + TotalPledgeCollateral abi.TokenAmount + TotalProviderLockedCollateral abi.TokenAmount + TotalQABytesCommitted abi.StoragePower + TotalQualityAdjPower abi.StoragePower + TotalRawBytePower abi.StoragePower + TotalStoragePowerReward abi.TokenAmount + func GetNetworkStats(t *testing.T, vm *VM) NetworkStats + type Option func(tv *testVector) error + func SetCircSupply(circSupply big.Int) Option + func SetEndStateTree(rawRoot cid.Cid, store adt.Store) Option + func SetEpoch(e abi.ChainEpoch) Option + func SetID(id string) Option + func SetMessage(from, to address.Address, nonce uint64, value big.Int, method abi.MethodNum, ...) Option + func SetNetworkVersion(nv network.Version) Option + func SetReceipt(res MessageResult) Option + func SetStartStateTree(v *VM) Option + func SetState(store adt.Store) Option + func StartConditions(v *VM, id string) []Option + type Pricelist interface + OnChainMessage func(msgSize int) GasCharge + OnChainReturnValue func(dataSize int) GasCharge + OnComputeUnsealedSectorCid func(proofType abi.RegisteredSealProof, pieces []abi.PieceInfo) GasCharge + OnCreateActor func() GasCharge + OnDeleteActor func() GasCharge + OnHashing func(dataSize int) GasCharge + OnIpldGet func() GasCharge + OnIpldPut func(dataSize int) GasCharge + OnMethodInvocation func(value abi.TokenAmount, methodNum abi.MethodNum) GasCharge + OnVerifyConsensusFault func() GasCharge + OnVerifyPost func(info proof.WindowPoStVerifyInfo) GasCharge + OnVerifySeal func(info proof.SealVerifyInfo) GasCharge + OnVerifySignature func(sigType crypto.SigType, planTextSize int) (GasCharge, error) + type StateInfo0 struct + func (t *StateInfo0) MarshalCBOR(w io.Writer) error + func (t *StateInfo0) UnmarshalCBOR(r io.Reader) error + type StateRoot struct + Actors cid.Cid + Info cid.Cid + Version StateTreeVersion + func (t *StateRoot) MarshalCBOR(w io.Writer) error + func (t *StateRoot) UnmarshalCBOR(r io.Reader) error + type StateTreeVersion uint64 + type StatsByCall = vm2.StatsByCall + type StatsSource = vm2.StatsSource + type VM struct + ActorImpls ActorImplLookup + func AdvanceByDeadline(t *testing.T, v *VM, minerIDAddr address.Address, ...) (*VM, *dline.Info) + func AdvanceByDeadlineTillEpoch(t *testing.T, v *VM, minerIDAddr address.Address, e abi.ChainEpoch) (*VM, *dline.Info) + func AdvanceByDeadlineTillEpochWhileProving(t *testing.T, v *VM, minerIDAddress address.Address, ...) *VM + func AdvanceByDeadlineTillIndex(t *testing.T, v *VM, minerIDAddr address.Address, i uint64) (*VM, *dline.Info) + func AdvanceOneEpochWithCron(t *testing.T, v *VM) *VM + func AdvanceTillProvingDeadline(t *testing.T, v *VM, minerIDAddress address.Address, ...) (*dline.Info, uint64, *VM) + func NewVM(ctx context.Context, actorImpls ActorImplLookup, store adt.Store) *VM + func NewVMAtEpoch(ctx context.Context, actorImpls ActorImplLookup, store adt.Store, ...) (*VM, error) + func NewVMWithSingletons(ctx context.Context, t testing.TB, bs ipldcbor.IpldBlockstore) *VM + func (vm *VM) Abortf(errExitCode exitcode.ExitCode, msg string, args ...interface{}) + func (vm *VM) ApplyMessage(from, to address.Address, value abi.TokenAmount, method abi.MethodNum, ...) (MessageResult, error) + func (vm *VM) GetActor(a address.Address) (*states.Actor, bool, error) + func (vm *VM) GetActorImpls() map[cid.Cid]rt.VMActor + func (vm *VM) GetCallStats() map[MethodKey]*CallStats + func (vm *VM) GetCirculatingSupply() abi.TokenAmount + func (vm *VM) GetEpoch() abi.ChainEpoch + func (vm *VM) GetLogs() []string + func (vm *VM) GetState(addr address.Address, out cbor.Unmarshaler) error + func (vm *VM) GetStateTree() (*states.Tree, error) + func (vm *VM) GetStatsSource() StatsSource + func (vm *VM) GetTotalActorBalance() (abi.TokenAmount, error) + func (vm *VM) Invocations() []*Invocation + func (vm *VM) LastInvocation() *Invocation + func (vm *VM) Log(_ rt.LogLevel, msg string, args ...interface{}) + func (vm *VM) NormalizeAddress(addr address.Address) (address.Address, bool) + func (vm *VM) SetActorState(ctx context.Context, key address.Address, state cbor.Marshaler) error + func (vm *VM) SetCirculatingSupply(supply abi.TokenAmount) + func (vm *VM) SetStatsSource(s StatsSource) + func (vm *VM) StateRoot() cid.Cid + func (vm *VM) Store() adt.Store + func (vm *VM) StoreReadBytes() uint64 + func (vm *VM) StoreReads() uint64 + func (vm *VM) StoreWriteBytes() uint64 + func (vm *VM) StoreWrites() uint64 + func (vm *VM) WithEpoch(epoch abi.ChainEpoch) (*VM, error) + func (vm *VM) WithNetworkVersion(nv network.Version) (*VM, error) Other modules containing this package github.com/filecoin-project/specs-actors github.com/filecoin-project/specs-actors/v2 github.com/filecoin-project/specs-actors/v3 github.com/filecoin-project/specs-actors/v4 github.com/filecoin-project/specs-actors/v5 github.com/filecoin-project/specs-actors/v6 github.com/filecoin-project/specs-actors/v7