0xbasar 95a38d0bce Typo fixed in: Update README.md (#1685) 9 ヶ月 前
..
src be8cc2193f Fix subxt integration test off-by-one test case (#1640) 1 年間 前
.gitignore 01707781ad Substrate: `subxt` integration tests (#990) 2 年 前
Cargo.toml 28c86b3f38 Polkadot: `ink!` 5.0 (#1632) 1 年間 前
README.md 95a38d0bce Typo fixed in: Update README.md (#1685) 9 ヶ月 前
metadata.scale 0f032dcec2 Bump polkadot node version (#1617) 1 年間 前

README.md

Solang subxt integration test suite

This directory contains integration tests against a real node using subxt.

How to execute the tests

The test cases requires compiled versions of the contracts from the polkadot integration test suite inside the ./outputs dir. To compile everything, run:

parallel solang compile -v --target polkadot --wasm-opt z -o ./contracts/ ::: ../polkadot/*.sol ../polkadot/test/*.sol

Make sure to start a solang-substrate-ci node or a substrate-contracts-node on the test host.

Run only one test at the time against the node by setting the RUST_TEST_THREADS=1 env var or by passing -- --test-threads=1 to cargo test.

# Execute all test cases
cargo test -- --test-threads=1 

How to upgrade the node metadata

A version upgrade of the node likely requires new metadata. The metadata from a local node can be acquired using subxt like so:

subxt metadata --url ws://127.0.0.1:9944 -f bytes > metadata.scale