Andrew Jones 055ebff52d Convert integration tests to use test node process (#253)
* Remove integration-tests feature, use test node process

* Allow tests to run in parallel

* Fmt

* Fix errors

* Fix more errors

* Use test node process in test context

* Remove code for managing accounts for contract tests

* Update contract dispatchables

* Fix up contract calls for 3.0 compat

* Fmt

* Fix up some tests

* Fix some more tests

* Fix some more tests

* Fmt
2021-03-22 10:30:42 +00:00
2021-03-19 12:42:11 +00:00
2021-03-19 12:42:11 +00:00
2021-02-08 10:51:52 +00:00

subxt · build Latest Version Documentation

A library to submit extrinsics to a substrate node via RPC.

Usage

See examples.

Integration Testing

Most tests require a running substrate node to communicate with. This is done by spawning an instance of the substrate node per test. It requires an executable binary substrate at v3.0.0 on your path.

This can be done by downloading the prebuilt binary:

curl "https://releases.parity.io/substrate/x86_64-debian:stretch/v3.0.0/substrate/substrate" --output substrate --location
chmod +x ./substrate
mv substrate ~/.local/bin

Or installed from source via cargo:

cargo install --git https://github.com/paritytech/substrate node-cli --tag=v3.0.0 --force

Alternatives

substrate-api-client provides similar functionality.

Subxt Client

By default the client builder will connect to a full node via rpc. The subxt-client helps embedding a light client directly. It can also be used to embed a full node. This is especially useful for testing and ci.

License

The entire code within this repository is licensed under the GPLv3. Please contact us if you have questions about the licensing of our products.
S
Description
No description provided
Readme 529 MiB
Languages
Rust 99.8%
Shell 0.2%