Closed k-yang closed 1 week ago
The recent updates introduce a new feature in the Ethereum Virtual Machine (EVM) component, which allows querying fungible token mappings by either coin denomination or ERC-20 contract address. This functionality includes modifications across various files, adding new methods, RPC services, and relevant tests to ensure seamless integration and proper validation of the newly added feature.
File(s) | Change Summary |
---|---|
CHANGELOG.md |
Documented the addition of the fungible token mapping query feature. |
eth/rpc/backend/mocks/evm_query_client.go |
Added a TokenMapping method to the EVMQueryClient struct. |
proto/eth/evm/v1/query.proto |
Introduced a new RPC TokenMapping with QueryTokenMappingRequest and QueryTokenMappingResponse definitions. |
x/evm/keeper/grpc_query.go |
Implemented the TokenMapping method to handle token mapping queries. |
x/evm/keeper/grpc_query_test.go |
Added a TestQueryTokenMapping function to validate various token mapping scenarios. |
Objective (from issues) | Addressed | Explanation |
---|---|---|
Implement a query for FunToken mapping by coin denomination or ERC20 contract address (#1940) |
✅ |
In the realm of code, a tale unfolds,
Tokens mapped with stories told.
From Cosmos' coins to ERC’s might,
Queries now unveil their sight.
Functions, tests, all set to go,
EVM’s magic, watch it glow.
🐇✨
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 64.83%. Comparing base (
422c676
) to head (0d42974
). Report is 1 commits behind head on main.
Purpose / Abstract
unibi
) or an ERC20 address (e.g.0xAEf9437FF23D48D73271a41a8A094DEc9ac71477
)Summary by CodeRabbit