Documentation ¶
Index ¶
- func Diff(oldTree, newTree *StateTree) (map[string]types.Actor, error)
- func VersionForNetwork(ver network.Version) types.StateTreeVersion
- type AdtStore
- type StateTree
- func (st *StateTree) ClearSnapshot()
- func (st *StateTree) DeleteActor(addr address.Address) error
- func (st *StateTree) Flush(ctx context.Context) (cid.Cid, error)
- func (st *StateTree) ForEach(f func(address.Address, *types.Actor) error) error
- func (st *StateTree) GetActor(addr address.Address) (*types.Actor, error)
- func (st *StateTree) LookupID(addr address.Address) (address.Address, error)
- func (st *StateTree) MutateActor(addr address.Address, f func(*types.Actor) error) error
- func (st *StateTree) RegisterNewAddress(addr address.Address) (address.Address, error)
- func (st *StateTree) Revert() error
- func (st *StateTree) SetActor(addr address.Address, act *types.Actor) error
- func (st *StateTree) Snapshot(ctx context.Context) error
- func (st *StateTree) Version() types.StateTreeVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VersionForNetwork ¶ added in v0.9.0
func VersionForNetwork(ver network.Version) types.StateTreeVersion
VersionForNetwork returns the state tree version for the given network version.
Types ¶
type StateTree ¶
StateTree stores actors state by their ID.
func NewStateTree ¶
func (*StateTree) ClearSnapshot ¶ added in v0.3.0
func (st *StateTree) ClearSnapshot()
func (*StateTree) DeleteActor ¶ added in v0.3.0
func (*StateTree) LookupID ¶
LookupID gets the ID address of this actor's `addr` stored in the `InitActor`.
func (*StateTree) MutateActor ¶
func (*StateTree) RegisterNewAddress ¶
func (*StateTree) Version ¶ added in v0.8.0
func (st *StateTree) Version() types.StateTreeVersion
Version returns the version of the StateTree data structure in use.
Click to show internal directories.
Click to hide internal directories.