Class

Cell

Cell(attrs) → {Cell}

Class for working with Operate tape cells.

A cell represents a single atomic procedure call. A Cell contains the Op script and parameters. When the cell is executed it returns a result.

Constructor

# new Cell(attrs) → {Cell}

Creates a Cell instance.

Parameters:
Name Type Description
attrs Object

Attributes

View Source operate/cell.js, line 20

Cell

Members

# isValid

Validates the given cell. Returns true if the cell has a reference and script.

View Source operate/cell.js, line 69

Methods

# static fromBPU(attrs) → {Cell}

Converts the given BPU Cell into an Operate Cell.

Parameters:
Name Type Description
attrs Object

BPU Cell

View Source operate/cell.js, line 35

Cell

# async exec(vm, opts) → {Promise(any)}

Executes the Cell in the given VM state.

Parameters:
Name Type Description
vm VM

VM state

opts Object

Options

View Source operate/cell.js, line 55

Promise(any)