Documentation ¶
Index ¶
- type Actor
- type Tree
- func (t *Tree) Flush() (cid.Cid, error)
- func (t *Tree) ForEach(fn func(addr address.Address, actor *Actor) error) error
- func (t *Tree) ForEachKey(fn func(addr address.Address) error) error
- func (t *Tree) GetActor(addr address.Address) (*Actor, bool, error)
- func (t *Tree) SetActor(addr address.Address, actor *Actor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct { Code cid.Cid // CID representing the code associated with the actor Head cid.Cid // CID of the head state object for the actor CallSeqNum uint64 // CallSeqNum for the next message to be received by the actor (non-zero for accounts only) Balance big.Int // Token balance of the actor }
Value type of the top level of the state tree. Represents the on-chain state of a single actor.
type Tree ¶
A specialization of a map of ID-addresses to actor heads.
func (*Tree) ForEachKey ¶
Traverses all keys in the tree, without decoding the actor states.
Click to show internal directories.
Click to hide internal directories.