Documentation ¶
Index ¶
- func Diff(ctx context.Context, oldTree, newTree *StateTree) (map[string]types.Actor, error)
- func VersionForNetwork(ver network.Version) (types.StateTreeVersion, error)
- 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 ¶
func VersionForNetwork(ver network.Version) (types.StateTreeVersion, error)
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 ¶
func (st *StateTree) ClearSnapshot()
func (*StateTree) DeleteActor ¶
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 ¶
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.