logo
pub type LmdbWasmTestBuilder = WasmTestBuilder<LmdbGlobalState>;
Expand description

Wasm test builder where state is held in LMDB.

Implementations

Returns an LmdbWasmTestBuilder with configuration.

Flushes the LMDB environment to disk.

Returns a new LmdbWasmTestBuilder.

Creates a new instance of builder using the supplied configurations, opening wrapped LMDBs (e.g. in the Trie and Data stores) rather than creating them.

Creates a new instance of builder using the supplied configurations, opening wrapped LMDBs (e.g. in the Trie and Data stores) rather than creating them. Differs from open in that it doesn’t append GLOBAL_STATE_DIR to the supplied path.

Returns the file size on disk of the backing lmdb file behind LmdbGlobalState.

Execute and commit transforms from an ExecuteRequest into a scratch global state. You MUST call write_scratch_to_lmdb to flush these changes to LmdbGlobalState.

Commit scratch to global state, and reset the scratch cache.

run step against scratch global state.