-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add the ability to add post conditions to transactions #1577
Comments
Hey @one-hundred-proof, First of all, can you please elaborate on your use case? It requires a bit of work:
|
Oh, this is an easy one to answer. Tests are often used as Proof of Concept when reporting a security vulnerability. As a security researcher I often use Foundry on EVM-based chains to show the feasibility of an attack. For this to be convincing I must be able to simulate every aspect of the chain.
Thanks for telling me about this distinction. I was not aware. Getting parity between simnet and devnets will be a must. |
I guess it's not that easy. The simnet is a "simulated network", that uses the clarity-vm and simulates everything around it.
The simnet tries to be as close to the real networks as it can, but parity is not wanted nor achievable. That being said, post conditions in the simnet will probably be implemented at some point, but it might not serve your purpose as well as you expect |
The Clarinet testing framework has many useful and convenient functions for testing smart contracts such as
callPublicFn
,callReadOnlyFn
and so on. Seeing as it uses a devnet under the hood it should also be possible to simulate the adding of post conditions.Since many protocols now use post conditions as a vital part of the their security it seems natural to add this is a feature to Clarinet.
What would be involved in getting this feature added? How feasible is it? If it's easy enough I might be able to provide a PR if given some guidance on how to do it.
The text was updated successfully, but these errors were encountered: