-
Notifications
You must be signed in to change notification settings - Fork 108
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
Investigate including precompiles operations as part of simulation testing #2992
Comments
Precomipiled contracts at a very high high level , bypass the Msg Delivery System that Cosmos has . We can think of the a precompiled contracts similar to applying state changes directly based on user input [ it would similar to if we import the keeper into the x/module/cli package ] Every contract call consists the following steps
With simulation tests we primary want to test , the step 3. We already see a similar pattern being followed the the staking precompiles where , we are internally calling a Comsos Message from the procompile , and since the MSG is already being tests via simulation tests , it provides us the coverage needed This same pattern can be easily extended to Bank and distribution precompiles . |
Replying to the message here as it more appropriate to continue this converstation on the parent issue I agree witht he points mentioned , However I would want to note a few things before we close off the three tasks entirely .
|
Describe the Issue
Precompiles will become an important component of the protocol and sensitive security wise.
Precompile interaction can involve invariant as mentioned in #2991
We should add precompile interactions as part of the simulation test suite.
Tricky part is that simulation tests are designed for Comsos modules, whereas precompile are smart contract interaction (sending EVM messages), so would potentially involve extending EVM simulation tests
Tasks
The text was updated successfully, but these errors were encountered: