Skip to main content

Crate near_sandbox

Crate near_sandbox 

Source
Expand description

§Features

FeatureDefaultDescription
singleton_cleanupoffRegisters an atexit hook and SIGINT handler to kill sandbox
processes stored in statics (OnceCell, LazyLock). Not needed with nextest or per-test
sandboxes since kill_on_drop already handles cleanup.
generateoffEnables random_account_id and random_key_pair helpers
global_installoffInstalls the sandbox binary under $HOME/.near instead of $OUT_DIR

Re-exports§

pub use config::GenesisAccount;
pub use config::SandboxConfig;
pub use sandbox::Sandbox;
pub use sandbox::patch::FetchData;

Modules§

config
Network specific configurations used to modify behavior inside a chain.
error_kind
sandbox

Constants§

DEFAULT_NEAR_SANDBOX_VERSION

Functions§

install
Installs sandbox node with the default version. This is a version that is usually stable and has landed into mainnet to reflect the latest stable features and fixes.