Module ink_env::test[][src]

Expand description

Operations on the off-chain testing environment.

Structs

The raw ABI respecting input data to a call.

The chain specification.

The result of a successful contract termination.

The default accounts.

Record for an emitted event.

Traits

Types implementing this trait can be used as chain extensions.

Functions

Advances the chain by a single block.

Tests if a contract terminates successfully after self.env().terminate() has been called.

Returns the amount of storage cells used by the account account_id.

Returns the default accounts for testing purposes: Alice, Bob, Charlie, Django, Eve and Frank.

Returns the balance of the account.

Returns the rent allowance of the contract account.

Returns the total number of reads and writes of the contract’s storage.

Returns the account id of the currently executing contract.

Initializes the whole off-chain environment.

Pops the top contract execution context.

Pushes a contract execution context.

Returns the contents of the past performed environmental debug messages in order.

Returns the recorded emitted events in order.

Registers a new chain extension.

Runs the given closure test function with the default configuration for the off-chain environment.

Sets the balance of the account to the given balance.

Set the entropy hash of the current block.

Set to true to disable clearing storage

Sets the rent allowance of the contract account to the given rent allowance.

Update the ChainSpec for the test environment