op

type op

Represent a operation that can be included in a transaction.

Since

0.10.4

Constructors

Link copied to clipboard
constructor(name: text, args: list<gtv>)

Creates a new test operation.

constructor(name: text, args: gtv...)

Creates a new test operation.

Properties

Link copied to clipboard
val args: list<gtv>

Arguments to this operation

Link copied to clipboard
val name: text

Name of this operaiton

Functions

Link copied to clipboard
function run()

Build a block that contains a transaction with this operation.

Link copied to clipboard

Try to build a block that contains a transaction including this operation and require it to fail.

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

Try to build a block that contains a transaction including this operation and require it to fail with an expected message.

Link copied to clipboard
function sign(privkeys: byte_array...): rell.test.tx
function sign(privkeys: list<byte_array>): rell.test.tx

Creates a new transaction builder and signs it with a number of private keys.

function sign(keypairs: list<rell.test.keypair>): rell.test.tx
function sign(keypairs: rell.test.keypair...): rell.test.tx

Creates a new transaction builder and signs it with a number of keypairs.

Link copied to clipboard

Convert this operation to a gtx_operation struct.

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

Creates a new transaction builder that contains this operation.