cuprate-hinto-janai/test-utils
hinto-janai ee22e81c7e
test-utils: add rpc module (#110)
* test-utils: impl `rpc` module

* client: use `spawn_blocking`

* client: add tests

* ignore test for now

* add example and `get_transaction_verification_data()`

* client: calculate proper `generated_coins`

* data: fix `generated_coins/reward` references

* data: fix height
2024-04-21 17:11:23 +01:00
..
src test-utils: add rpc module (#110) 2024-04-21 17:11:23 +01:00
Cargo.toml test-utils: add rpc module (#110) 2024-04-21 17:11:23 +01:00
README.md test-utils: add rpc module (#110) 2024-04-21 17:11:23 +01:00

Test Utils

This crate contains code that can be shared across multiple Cuprate crates tests, this crate should not be included in any Cuprate crate, only in tests.

It currently contains:

  • Code to spawn monerod instances and a testing network zone
  • Real raw and typed Monero data, e.g. Block, Transaction
  • An RPC client to generate types from cuprate_types