10 unstable releases (3 breaking)

new 0.10.5 Mar 3, 2026
0.10.4 Feb 24, 2026
0.8.2 Jan 30, 2026
0.5.5 Jan 15, 2026
0.4.10 Dec 23, 2025

#18 in #anvil

MIT/Apache

2MB

TNT Core Fixtures

This crate packages the LocalTestnet fixtures (Anvil state snapshot and the deployment broadcast) used for deterministic local testing.

Update the fixtures by running:

./scripts/update-localtestnet-fixtures.sh

Usage

use tnt_core_fixtures::{
    localtestnet_broadcast_json, localtestnet_state_json, write_localtestnet_fixtures,
    LOCALTESTNET_STATE_JSON, LOCALTESTNET_STATE_FILENAME,
};

let state = localtestnet_state_json();
let broadcast = localtestnet_broadcast_json();
let _raw = LOCALTESTNET_STATE_JSON;

// Example: write to disk for anvil --load-state.
std::fs::write(LOCALTESTNET_STATE_FILENAME, state)?;
std::fs::write("localtestnet-broadcast.json", broadcast)?;

// Example: write both fixtures to a directory.
let _paths = write_localtestnet_fixtures("./fixtures")?;
# Ok::<(), std::io::Error>(())

No runtime deps