Expose a way to build subxt::Block for unit test
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 489
- Forks
- 293
- Avg merge
- 18h 35m
- Merged PRs (30d)
- 3
Description
Right now the crate does not expose a way to construct a Block https://docs.rs/subxt/latest/subxt/blocks/struct.Block.html
You need to fetch it from a source chain, which is not ideal for simple unit tests.
It would be great to expose a constructor for test target.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the documented subxt::Block type at the linked docs.rs page and trace how blocks are currently obtained from a source chain. Determine the smallest public construction API that supports unit tests. Done means callers can construct a Block without fetching it from a chain, with appropriate unit-test coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100