Skip to main content

Crate tnt_core_fixtures

Crate tnt_core_fixtures 

Source
Expand description

Local testnet fixture data for TNT Core.

Constants§

LOCALTESTNET_BROADCAST_FILENAME
Default filename for the LocalTestnet broadcast snapshot.
LOCALTESTNET_BROADCAST_JSON
Raw JSON for the LocalTestnet deployment broadcast.
LOCALTESTNET_STATE_FILENAME
Default filename for the LocalTestnet state snapshot.
LOCALTESTNET_STATE_JSON
Raw JSON for the LocalTestnet anvil state snapshot.

Functions§

localtestnet_broadcast_bytes
Returns the LocalTestnet broadcast JSON as bytes.
localtestnet_broadcast_json
Returns the LocalTestnet broadcast JSON.
localtestnet_state_bytes
Returns the LocalTestnet state snapshot JSON as bytes.
localtestnet_state_json
Returns the LocalTestnet state snapshot JSON.
write_localtestnet_fixtures
Writes both fixtures to disk using the default filenames.