Open emmanuelantony2000 opened 2 months ago
Yes. This is all good idea. I think there should be some kind of mapping (maybe a custom viem client?) that does translation between something like client.setNextBlockTimestamp
and calling node_prefix_setNextBlockTimestamp or cheat_setNextBlockTimestamp. This translation layer is important because some calls not only do not follow same naming patterns but even have different signatures.
I will try to push a PoC of this today so you can pick this up tmrw.
@emmanuelantony2000 have a look at https://github.com/krzkaczor/cheatcalls-eip/pull/13
I'm thinking to add more testcases to the
spec_tests
. The current tests written are forevm_setNextBlockTimestamp
. My opinion on how to proceed with this:hardhat_
orevm_
namespaces as we don't have a test-node as of now that supports thecheat_
namespace. This makes it easy to write test cases and test the conditions out according the proposal.cheat_
namespace easily.Would love to know any other thoughts on how to proceed with this.