Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support for devnet-rs test provider in starknet-rs #646

Open
amanusk opened this issue Aug 5, 2024 · 0 comments
Open

Comments

@amanusk
Copy link

amanusk commented Aug 5, 2024

It would be great to have a Test Provider or Devnet Provider , which abstracts the added capabilities of starknet-devnet-rs for the user.

Starknet devnet has testing specific APIs, like mining blocks, changing timestamps, connecting to an L1 node etc.
The API is documented here: https://0xspaceshard.github.io/starknet-devnet-rs/docs/api

An example from Ethereum is the integration of anvil API into alloy: https://alloy.rs/examples/anvil/deploy_contract_anvil.html

This would aid in creating testing environments that run on devnet without spinning up devnet in the background, but as part of the rust test suite.

Additional reference, devnet-js provider
https://github.com/0xSpaceShard/starknet-devnet-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant