Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + const MaxCallDepth + var BatchSealVerifyParallelism = goruntime.NumCPU() + var EmptyObjectCid cid.Cid + var EnableGasTracing = false + var StatApplied uint64 + var StatSends uint64 + func ComputeGasOverestimationBurn(gasUsed, gasLimit int64) (int64, int64) + func Copy(ctx context.Context, from, to blockstore.Blockstore, root cid.Cid) error + func DecodeParams(b []byte, out interface{}) error + func DumpActorState(act *types.Actor, b []byte) (interface{}, error) + func ResolveToKeyAddr(state types.StateTree, cst cbor.IpldStore, addr address.Address) (address.Address, error) + func TryCreateAccountActor(rt *Runtime, addr address.Address) (*types.Actor, address.Address, aerrors.ActorError) + type ActorPredicate func(vmr.Runtime, rtt.VMActor) error + func ActorsVersionPredicate(ver actors.Version) ActorPredicate + type ActorRegistry struct + func NewActorRegistry() *ActorRegistry + func (ar *ActorRegistry) Create(codeCid cid.Cid, rt vmr.Runtime) (*types.Actor, aerrors.ActorError) + func (ar *ActorRegistry) Invoke(codeCid cid.Cid, rt vmr.Runtime, method abi.MethodNum, params []byte) ([]byte, aerrors.ActorError) + func (ar *ActorRegistry) Register(pred ActorPredicate, actors ...rtt.VMActor) + type ApplyRet struct + ActorErr aerrors.ActorError + Duration time.Duration + ExecutionTrace types.ExecutionTrace + GasCosts *GasOutputs + type CircSupplyCalculator func(context.Context, abi.ChainEpoch, *state.StateTree) (abi.TokenAmount, error) + 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 GasOutputs struct + BaseFeeBurn abi.TokenAmount + GasBurned int64 + GasRefund int64 + MinerPenalty abi.TokenAmount + MinerTip abi.TokenAmount + OverEstimationBurn abi.TokenAmount + Refund abi.TokenAmount + func ComputeGasOutputs(gasUsed, gasLimit int64, baseFee, feeCap, gasPremium abi.TokenAmount, ...) GasOutputs + func ZeroGasOutputs() GasOutputs + type LookbackStateGetter func(context.Context, abi.ChainEpoch) (*state.StateTree, error) + type Message struct + func (m *Message) Caller() address.Address + func (m *Message) Receiver() address.Address + func (m *Message) ValueReceived() abi.TokenAmount + type NtwkVersionGetter func(context.Context, abi.ChainEpoch) network.Version + 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 proof2.WindowPoStVerifyInfo) GasCharge + OnVerifySeal func(info proof2.SealVerifyInfo) GasCharge + OnVerifySignature func(sigType crypto.SigType, planTextSize int) (GasCharge, error) + func PricelistByEpoch(epoch abi.ChainEpoch) Pricelist + type Rand interface + GetBeaconRandomness func(ctx context.Context, pers crypto.DomainSeparationTag, round abi.ChainEpoch, ...) ([]byte, error) + GetChainRandomness func(ctx context.Context, pers crypto.DomainSeparationTag, round abi.ChainEpoch, ...) ([]byte, error) + type Runtime struct + func (rt *Runtime) AbortStateMsg(msg string) + func (rt *Runtime) Abortf(code exitcode.ExitCode, msg string, args ...interface{}) + func (rt *Runtime) ChargeGas(name string, compute int64, virtual int64) + func (rt *Runtime) Context() context.Context + func (rt *Runtime) CreateActor(codeID cid.Cid, addr address.Address) + func (rt *Runtime) CurrEpoch() abi.ChainEpoch + func (rt *Runtime) CurrentBalance() abi.TokenAmount + func (rt *Runtime) DeleteActor(beneficiary address.Address) + func (rt *Runtime) GetActorCodeCID(addr address.Address) (ret cid.Cid, ok bool) + func (rt *Runtime) GetBalance(a address.Address) (types.BigInt, aerrors.ActorError) + func (rt *Runtime) GetRandomnessFromBeacon(personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, ...) abi.Randomness + func (rt *Runtime) GetRandomnessFromTickets(personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, ...) abi.Randomness + func (rt *Runtime) Log(level rtt.LogLevel, msg string, args ...interface{}) + func (rt *Runtime) NetworkVersion() network.Version + func (rt *Runtime) NewActorAddress() address.Address + func (rt *Runtime) Pricelist() Pricelist + func (rt *Runtime) ResolveAddress(addr address.Address) (ret address.Address, ok bool) + func (rt *Runtime) Send(to address.Address, method abi.MethodNum, m cbor.Marshaler, ...) exitcode.ExitCode + func (rt *Runtime) StartSpan(name string) func() + func (rt *Runtime) StateCreate(obj cbor.Marshaler) + func (rt *Runtime) StateReadonly(obj cbor.Unmarshaler) + func (rt *Runtime) StateTransaction(obj cbor.Er, f func()) + func (rt *Runtime) StoreGet(c cid.Cid, o cbor.Unmarshaler) bool + func (rt *Runtime) StorePut(x cbor.Marshaler) cid.Cid + func (rt *Runtime) TotalFilCircSupply() abi.TokenAmount + func (rt *Runtime) ValidateImmediateCallerAcceptAny() + func (rt *Runtime) ValidateImmediateCallerIs(as ...address.Address) + func (rt *Runtime) ValidateImmediateCallerType(ts ...cid.Cid) + type SyscallBuilder func(ctx context.Context, rt *Runtime) runtime2.Syscalls + func Syscalls(verifier ffiwrapper.Verifier) SyscallBuilder + type UnsafeVM struct + VM *VM + func (vm *UnsafeVM) MakeRuntime(ctx context.Context, msg *types.Message) *Runtime + type VM struct + Syscalls SyscallBuilder + func NewVM(ctx context.Context, opts *VMOpts) (*VM, error) + func (vm *VM) ActorBalance(addr address.Address) (types.BigInt, aerrors.ActorError) + func (vm *VM) ApplyImplicitMessage(ctx context.Context, msg *types.Message) (*ApplyRet, error) + func (vm *VM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet, error) + func (vm *VM) Flush(ctx context.Context) (cid.Cid, error) + func (vm *VM) GetCircSupply(ctx context.Context) (abi.TokenAmount, error) + func (vm *VM) GetNtwkVersion(ctx context.Context, ce abi.ChainEpoch) network.Version + func (vm *VM) Invoke(act *types.Actor, rt *Runtime, method abi.MethodNum, params []byte) ([]byte, aerrors.ActorError) + func (vm *VM) MutateState(ctx context.Context, addr address.Address, fn interface{}) error + func (vm *VM) SetBlockHeight(h abi.ChainEpoch) + func (vm *VM) SetInvoker(i *ActorRegistry) + func (vm *VM) ShouldBurn(st *state.StateTree, msg *types.Message, errcode exitcode.ExitCode) (bool, error) + func (vm *VM) StateTree() types.StateTree + type VMOpts struct + BaseFee abi.TokenAmount + Bstore blockstore.Blockstore + CircSupplyCalc CircSupplyCalculator + Epoch abi.ChainEpoch + LookbackState LookbackStateGetter + NtwkVersion NtwkVersionGetter + Rand Rand + StateBase cid.Cid + Syscalls SyscallBuilder