nomoixyz / vulcan

Development framework for Foundry projects
https://nomoixyz.github.io/vulcan/
MIT License
286 stars 18 forks source link

Add RPC module #235

Open gnkz opened 10 months ago

gnkz commented 10 months ago

Using the new rpc cheatcode a new rpc module can be created. This module can include a call function that accepts a method name and a Json object or a Json string as parameters and return the raw data. Specific methods can be added to let users interact with an rpc in a more convenient way, for example the module can have a ethGasPrice function that calls the eth_gasPrice rpc method and return the integer instead of the raw data