block

type block

Represents a block builder which can build a block on the blockchain.

Since

0.10.4

Constructors

Link copied to clipboard
constructor(txs: list<rell.test.tx>)

Creates a new block builder with specified transactions.

constructor(txs: rell.test.tx...)

Creates a new block builder with specified transactions.

constructor(ops: list<rell.test.op>)

Creates a new block builder with a transaction containing the specified operations.

constructor(ops: rell.test.op...)

Creates a new block builder with a transaction containing the specified operations.

Functions

Link copied to clipboard
function copy(): rell.test.block

Copies this block builder.

Link copied to clipboard
function run()

Build this block

Link copied to clipboard

Try to build the block and require it to fail.

function run_must_fail(expected_message: text): rell.test.failure

Try to build the block and require it to fail with an expected message.

Link copied to clipboard
function tx(ops: rell.test.op...): rell.test.block

Adds a transaction containing a list of operations.

function tx(txs: rell.test.tx...): rell.test.block

Adds a list of transactions to this block builder.