Closed k-yang closed 3 months ago
This update introduces a precompile to the Ethereum Virtual Machine (EVM) within the Nibiru blockchain, enabling ERC20 token transfers to "nibi" accounts via regular Ethereum transactions. Additionally, it removes redundant post-processing hooks from the EVM to streamline transaction handling. These changes aim to enhance functionality and improve code maintainability by eliminating unnecessary dependencies.
File(s) | Change Summary |
---|---|
CHANGELOG.md |
Documented the addition of ERC20 transfer precompile and removal of EVM post-processing hooks. |
x/evm/deps.go |
Removed references to gethcore and gethcoretypes , and the EvmHooks interface. |
x/evm/keeper/keeper.go , msg_server.go |
Deleted hooks declaration, removed PostTxProcessing method, and streamlined transaction handling. |
sequenceDiagram
participant User
participant EVM
participant NibiruAccount
User->>EVM: Initiate ERC20 Transfer
EVM->>NibiruAccount: Transfer tokens as regular Ethereum transaction
NibiruAccount->>User: Confirmation of Transfer
In the world of blockchain bright, Transfers swift as rays of light. From Ethereum’s vast domain, To Nibiru where tokens reign. Simplified, refined, now grand, EVM flows at our command.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 65.95%. Comparing base (
fc1edd9
) to head (d3b4e03
).
Purpose / Abstract
Originally, the EVM post processing hooks were meant to allow EVM to talk to native Cosmos modules, but we are using precompiles for that now.
Summary by CodeRabbit
New Features
Refactor