hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
290 stars 129 forks source link

Have a way to fork mainnet #1439

Open OxMarco opened 2 months ago

OxMarco commented 2 months ago

It would be nice to have a way to fork the status of a network, in order to run "stateful" tests. This issue is particularly relevant when testing contracts that interact with other primitives, like lending protocols or oracles, where setting up the state manually in a test is not trivial.

stxer commented 1 month ago

We're running this experimental project, it's still in internal testing phase but might already be very helpful to many use cases including yours.

https://stxer.xyz/simulations

lgalabru commented 1 month ago

Related: https://github.com/lgalabru/stacks-core/pull/1