Crates.io | essential-dry-run |
lib.rs | essential-dry-run |
version | 0.2.0 |
source | src |
created_at | 2024-07-08 04:25:50.335379 |
updated_at | 2024-08-23 03:11:10.712838 |
description | Cli and library for dry running solutions against a running essential-server |
homepage | https://essential.builders/ |
repository | https://github.com/essential-contributions/essential-integration |
max_upload_size | |
id | 1295348 |
size | 53,007 |
This is a Rust library and CLI tool that allows dry running solutions on Essential server.
The dry run is performed through essential-rest-client
that sends requests to essential-rest-server
.
Under the hood, essential-server
:
The Rust library provides modifications of functions that accept deserialized Contract
/Solution
objects (as well as functions that accept paths like the CLI tool does).
Usage: essential-dry-run [ADDRESS] <COMMAND>
Commands:
check-with-contracts
check
help Print this message or the help of the given subcommand(s)
Arguments:
[ADDRESS] Server address to bind to [default: http://0.0.0.0:0]
Options:
-h, --help Print help
-V, --version Print version
Dry runs a solution on the server.
Before simulating state transitions and checking constraints, the contracts are read from storage.
If you already have the contracts and do not need to read them from storage, use Dry Run With Contracts instead.
Usage: essential-dry-run dry-run --server <SERVER> --solution <SOLUTION>
Options:
--server <SERVER> The address of the server to connect to
--solution <SOLUTION> Path to solution
-h, --help Print help
essential-dry-run dry-run --server http://0.0.0.0:8080 --solution a_solution.json
Dry runs a solution on the server without reading contracts from storage.
If you do not have the contracts that the solution points to, use Dry Run instead.
Usage: essential-dry-run dry-run-with-contracts --server <SERVER> --contracts <CONTRACTS> --solution <SOLUTION>
Options:
--server <SERVER> The address of the server to connect to
--contracts <CONTRACTS> Path to compiled contracts
--solution <SOLUTION> Path to solution
-h, --help Print help
essential-dry-run dry-run --server http://0.0.0.0:8080 --contracts src/contracts --solution a_solution.json