validation

package
v0.5.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2020 License: Apache-2.0, MIT Imports: 25 Imported by: 0

Documentation

Index

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 NewConfig added in v0.3.0

func NewConfig(gas, exit, ret, state bool) *Config

func (Config) ValidateExitCode added in v0.3.0

func (v Config) ValidateExitCode() bool

func (Config) ValidateGas added in v0.3.0

func (v Config) ValidateGas() bool

func (Config) ValidateReturnValue added in v0.3.0

func (v Config) ValidateReturnValue() bool

func (Config) ValidateStateRoot added in v0.3.0

func (v Config) ValidateStateRoot() bool

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 (f *Factories) NewStateAndApplier(syscalls runtime.Syscalls) (vstate.VMWrapper, vstate.Applier)

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

func (*KeyManager) Sign added in v0.3.0

func (k *KeyManager) Sign(addr address.Address, data []byte) (acrypto.Signature, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL