Documentation ¶
Index ¶
- type Applier
- func (a *Applier) ApplyMessage(epoch abi.ChainEpoch, message *vtypes.Message) (vtypes.ApplyMessageResult, error)
- func (a *Applier) ApplySignedMessage(epoch abi.ChainEpoch, msg *vtypes.SignedMessage) (vtypes.ApplyMessageResult, error)
- func (a *Applier) ApplyTipSetMessages(epoch abi.ChainEpoch, blocks []vtypes.BlockMessagesInfo, ...) (vtypes.ApplyTipSetResult, error)
- type Config
- type Factories
- type KeyManager
- type StateWrapper
- func (s *StateWrapper) Actor(addr address.Address) (vstate.Actor, error)
- func (s *StateWrapper) CreateActor(code cid.Cid, addr address.Address, balance abi.TokenAmount, ...) (vstate.Actor, address.Address, error)
- func (s *StateWrapper) NewVM()
- func (s *StateWrapper) Root() cid.Cid
- func (s *StateWrapper) SetActorState(addr address.Address, balance abi.TokenAmount, ...) (vstate.Actor, error)
- func (s *StateWrapper) StoreGet(key cid.Cid, out runtime.CBORUnmarshaler) error
- func (s *StateWrapper) StorePut(value runtime.CBORMarshaler) (cid.Cid, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Applier ¶
type Applier struct {
// contains filtered or unexported fields
}
Applier applies messages to state trees and storage.
func NewApplier ¶
func NewApplier(sw *StateWrapper, syscalls vm.SyscallBuilder) *Applier
func (*Applier) ApplyMessage ¶
func (a *Applier) ApplyMessage(epoch abi.ChainEpoch, message *vtypes.Message) (vtypes.ApplyMessageResult, error)
func (*Applier) ApplySignedMessage ¶ added in v0.3.0
func (a *Applier) ApplySignedMessage(epoch abi.ChainEpoch, msg *vtypes.SignedMessage) (vtypes.ApplyMessageResult, error)
func (*Applier) ApplyTipSetMessages ¶ added in v0.3.0
func (a *Applier) ApplyTipSetMessages(epoch abi.ChainEpoch, blocks []vtypes.BlockMessagesInfo, rnd vstate.RandomnessSource) (vtypes.ApplyTipSetResult, error)
type Config ¶ added in v0.3.0
type Config struct {
// contains filtered or unexported fields
}
func (Config) ValidateExitCode ¶ added in v0.3.0
func (Config) ValidateGas ¶ added in v0.3.0
func (Config) ValidateReturnValue ¶ added in v0.3.0
func (Config) ValidateStateRoot ¶ added in v0.3.0
type Factories ¶ added in v0.3.0
type Factories struct {
*Applier
}
func NewFactories ¶
func NewFactories() *Factories
func (*Factories) NewKeyManager ¶ added in v0.3.0
func (f *Factories) NewKeyManager() vstate.KeyManager
func (*Factories) NewStateAndApplier ¶ added in v0.3.0
func (*Factories) NewValidationConfig ¶ added in v0.3.0
func (f *Factories) NewValidationConfig() vstate.ValidationConfig
type KeyManager ¶ added in v0.3.0
type KeyManager struct {
// contains filtered or unexported fields
}
func (*KeyManager) NewBLSAccountAddress ¶ added in v0.3.0
func (k *KeyManager) NewBLSAccountAddress() address.Address
func (*KeyManager) NewSECP256k1AccountAddress ¶ added in v0.3.0
func (k *KeyManager) NewSECP256k1AccountAddress() address.Address
type StateWrapper ¶
type StateWrapper struct {
// contains filtered or unexported fields
}
func NewState ¶
func NewState() *StateWrapper
func (*StateWrapper) Actor ¶
func (s *StateWrapper) Actor(addr address.Address) (vstate.Actor, error)
func (*StateWrapper) CreateActor ¶ added in v0.3.0
func (s *StateWrapper) CreateActor(code cid.Cid, addr address.Address, balance abi.TokenAmount, actorState runtime.CBORMarshaler) (vstate.Actor, address.Address, error)
func (*StateWrapper) NewVM ¶ added in v0.3.0
func (s *StateWrapper) NewVM()
func (*StateWrapper) Root ¶ added in v0.3.0
func (s *StateWrapper) Root() cid.Cid
func (*StateWrapper) SetActorState ¶ added in v0.3.0
func (s *StateWrapper) SetActorState(addr address.Address, balance abi.TokenAmount, actorState runtime.CBORMarshaler) (vstate.Actor, error)
func (*StateWrapper) StoreGet ¶ added in v0.3.0
func (s *StateWrapper) StoreGet(key cid.Cid, out runtime.CBORUnmarshaler) error
StoreGet the value at key from vm store
func (*StateWrapper) StorePut ¶ added in v0.3.0
func (s *StateWrapper) StorePut(value runtime.CBORMarshaler) (cid.Cid, error)
StorePut `value` into vm store
Click to show internal directories.
Click to hide internal directories.