Closed onikonychev closed 2 months ago
The changes encompass a thorough refactoring of the EVM module, emphasizing the management of fungible token events, CLI commands, and queries. Key updates include renaming functions and messages for clarity, enhancing CLI command structures for better usability, and aligning tests with the new configurations. This refactoring seeks to enhance the overall interaction with fungible tokens within the system, making operations more intuitive and efficient.
Files | Change Summary |
---|---|
CHANGELOG.md |
Added summary of changes regarding funtoken events, CLI commands, and queries in the EVM module. |
eth/rpc/backend/mocks/evm_query_client.go |
Renamed TokenMapping to FunTokenMapping , updated request and response types accordingly. |
proto/eth/evm/v1/events.proto |
Renamed EventFunTokenFromBankCoin to EventFunTokenCreated , added is_made_from_coin field. |
proto/eth/evm/v1/query.proto |
Renamed RPC methods and message types to reflect fun token terminology. |
x/evm/cli/query.go |
Introduced new CLI commands for querying fun token functionalities in the evm module. |
x/evm/cli/tx.go |
Updated existing CLI commands and added new ones for creating and sending fungible tokens. |
x/evm/keeper/erc20_test.go |
Updated tests to use Require assertions, added checks for specific events and attributes. |
x/evm/keeper/grpc_query.go |
Renamed TokenMapping function to FunTokenMapping , updated input and return types. |
x/evm/keeper/grpc_query_test.go |
Renamed TestQueryTokenMapping to TestQueryFunToken , updated types throughout the function. |
x/evm/keeper/msg_server.go |
Updated event emission in CreateFunToken to emit EventFunTokenCreated with additional details. |
In the code where tokens prance,
Refactor sings a joyful dance.
Funtoken events, freshly spun,
Queries sparkle, all in fun.
CLI commands, a breeze to wield,
A rabbit's cheer, a tech-filled field.
πβ¨π
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 (
f898bae
) to head (777ab3a
).
EventFunTokenCreated
on any funtoken creationTokenMapping
->FunToken
FunToken
Summary by CodeRabbit
New Features
Refactor
Tests