krzkaczor / cheatcalls-eip

Standardizing JSON-RPC interface for Ethereum development nodes
5 stars 1 forks source link

Adding more testcases #6

Open emmanuelantony2000 opened 2 months ago

emmanuelantony2000 commented 2 months ago

I'm thinking to add more testcases to the spec_tests. The current tests written are for evm_setNextBlockTimestamp. My opinion on how to proceed with this:

Would love to know any other thoughts on how to proceed with this.

krzkaczor commented 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.

krzkaczor commented 2 months ago

@emmanuelantony2000 have a look at https://github.com/krzkaczor/cheatcalls-eip/pull/13