revm
revm copied to clipboard
Handler Example: use ERC-20 token to pay for gas
It is one of the interesting use cases where gas can be paid from ERC-20 account.
Handler that needs to be overwritten:
-
deduct_callerfromPreExecution: https://bluealloy.github.io/revm/crates/revm/handler.html#preexecutionhandler -
reimburse_callerandreward_beneficiaryfrom post execution: https://bluealloy.github.io/revm/crates/revm/handler.html#postexecutionhandler - validation check for Account here:
validate_tx_against_statehttps://bluealloy.github.io/revm/crates/revm/handler.html#validationhandler.
can i take on this ?
@royvardhan has amazing amount of progress here: https://github.com/royvardhan/revm/pull/1 it needs to be ported to new handler on main
@royvardhan has amazing amount of progress here: royvardhan#1 it needs to be ported to new handler on main
Working on the new handler example