15 releases (9 stable)

new 20.3.4 Apr 15, 2024
20.3.1 Feb 23, 2024
20.2.0 Jan 12, 2024
20.1.1 Dec 21, 2023
0.0.2 Jul 30, 2022

#612 in Magic Beans

Download history 47/week @ 2023-12-31 72/week @ 2024-01-07 31/week @ 2024-01-14 1/week @ 2024-01-21 41/week @ 2024-01-28 94/week @ 2024-02-04 132/week @ 2024-02-11 163/week @ 2024-02-18 212/week @ 2024-02-25 93/week @ 2024-03-03 124/week @ 2024-03-10 190/week @ 2024-03-17 644/week @ 2024-03-24 101/week @ 2024-03-31 61/week @ 2024-04-07 223/week @ 2024-04-14

1,065 downloads per month
Used in 2 crates

Apache-2.0

225KB
5.5K SLoC

soroban-cli

CLI for running Soroban contracts locally in a test VM. Executes WASM files built using the rs-soroban-sdk.

Soroban: https://soroban.stellar.org

Install

cargo install --locked soroban-cli

To install with the opt feature, which includes a WASM optimization feature and wasm-opt built in:

cargo install --locked soroban-cli --features opt

Usage

Can invoke a contract method as a subcommand with different arguments. Anything after the slop (--) is passed to the contract's CLI. You can use --help to learn about which methods are available and what their arguments are including an example of the type of the input.

Example

soroban invoke --id <CONTRACT_ID> --wasm <WASMFILE> -- --help
soroban invoke --id <CONTRACT_ID> --network futurenet -- --help

Dependencies

~51–74MB
~1.5M SLoC