Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell interface { cells.Cell // Parent - Parent cell. Parent() cells.Cell // ExecChild - Child cell by index. ExecChild(int) Cell // Context - Execution context. Context() context.Context // WithContext - Cell with context. WithContext(context.Context) Cell }
Cell - Cell during execution.
type State ¶
type State interface { // Op - Execution cell. Op() Cell // Block - Chain block. Block() *chain.Block // Store - Execution state. Store() Store // WithOp - Switches op cell. WithOp(Cell) State }
State - Execution stack context.
type Store ¶
type Store interface { // Get - Gets value under key. Get(key *cells.CID) (uint64, error) // Update - Updates value under key. Update(key *cells.CID, value uint64) error // Total - Total power. Total() uint64 // Commit - Saves store state to database. Commit() (*cells.CID, error) // Clone - Clones store with current state. Clone() (Store, error) }
Store - Execution store.
Click to show internal directories.
Click to hide internal directories.