Skip to main content

Crate zombienet_sdk

Crate zombienet_sdk 

Source

Re-exports§

pub use snapshot::Bundle;
pub use snapshot::BundleBuilder;
pub use snapshot::SnapshotManifest;
pub use configuration::json_patch;
pub use orchestrator::sc_chain_spec;
pub use subxt;
pub use subxt_signer;

Modules§

environment
Helpers functions to get configuration (e.g. Provider and images) from the env vars
generators
Generator that could be handy from outside
snapshot
Bundle per-node DB snapshots into a single uploadable artifact.
tx_helper
Helpers used for interact with the network

Structs§

AddCollatorOptions
AddNodeOptions
AttachToLiveNetwork
CustomProcess
A custom process to spawn next to the nodes: its command, args, env, image (provider specific), named ports, resources (provider specific), and its lifecycle: ready_check, depends_on, one_shot and timeout.
CustomProcessBuilder
A custom process builder, used to build a CustomProcess declaratively with fields validation.
CustomProcessNode
A running custom process.
Dependency
Another custom process this one starts after. Written as a bare name ("postgres") or as { name = "init", condition = "..." }; without a condition the target’s natural one applies, see CustomProcess::natural_condition.
GlobalSettings
Global settings applied to an entire network.
GlobalSettingsBuilder
A global settings builder, used to build GlobalSettings declaratively with fields validation.
JamNetworkNode
A running JAM node.
Jamchain
The JAM chain of a network, and the nodes running it.
LocalFileSystem
NamedPort
A port a custom process listens on, by name.
Network
NetworkConfig
A network configuration, composed of a relaychain (or a JAM chain), parachains and HRMP channels.
NetworkConfigBuilder
A network configuration builder, used to build a NetworkConfig declaratively with fields validation.
NetworkNode
A substrate-based node (relaychain node or collator).
Orchestrator
ProcessPort
Where one declared port of a custom process is reachable.
ReadyCheck
How a custom process is known to be ready. tcp is a declared port name that must accept a connection; http is a declared port name and a path that must answer 2xx. On kubernetes the check is the pod’s readiness probe; elsewhere zombienet probes the port from where it runs. How long to wait is the process’s timeout.
RunScriptOptions

Enums§

Arg
A CLI argument passed to an executed command.
AssetLocation
A location for a locally or remotely stored asset. It can be constructed from an url::Url, a std::path::PathBuf or an &str.
Buildable
CustomProcessState
Where a custom process is in its lifecycle. In zombie.json it is the state field (starting, ready, completed, failed) plus state_reason for a failure; a record without one is taken as ready.
DependencyCondition
When a dependency counts as met, as docker-compose names them.
NodeKind
Which flavour of node a SpawnedNode is.
OrchestratorError
ReadyTarget
What a ReadyCheck probes, by declared port name.
RegistrationStrategy
The registration strategy that will be used for the parachain.

Constants§

PROVIDERS

Traits§

AttachToLive
NetworkConfigExt
SpawnedNode
Behaviour shared by every node zombienet spawns, regardless of what it runs.

Type Aliases§

ExecutionResult