state

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0, MIT Imports: 9 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateTree

type StateTree struct {
	Store *hamt.CborIpldStore
	// contains filtered or unexported fields
}

func LoadStateTree

func LoadStateTree(cst *hamt.CborIpldStore, c cid.Cid) (*StateTree, error)

func NewStateTree

func NewStateTree(cst *hamt.CborIpldStore) (*StateTree, error)

func (*StateTree) Flush

func (st *StateTree) Flush() (cid.Cid, error)

func (*StateTree) GetActor

func (st *StateTree) GetActor(addr address.Address) (*types.Actor, error)

func (*StateTree) LookupID

func (st *StateTree) LookupID(addr address.Address) (address.Address, error)

func (*StateTree) MutateActor

func (st *StateTree) MutateActor(addr address.Address, f func(*types.Actor) error) error

func (*StateTree) RegisterNewAddress

func (st *StateTree) RegisterNewAddress(addr address.Address, act *types.Actor) (address.Address, error)

func (*StateTree) Revert

func (st *StateTree) Revert() error

func (*StateTree) SetActor

func (st *StateTree) SetActor(addr address.Address, act *types.Actor) error

func (*StateTree) Snapshot

func (st *StateTree) Snapshot() error

Jump to

Keyboard shortcuts

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