Closed zakir-code closed 3 weeks ago
The changes encompass updates to various files, primarily focusing on the documentation and functionality related to deprecated properties within the Swagger YAML and protocol definitions. Several functions in the test utilities have been renamed for consistency, and new methods have been introduced to streamline testing processes. Additionally, modifications to context handling and test case structures have been implemented across multiple test files, enhancing clarity and maintainability.
Files | Change Summary |
---|---|
docs/swagger-ui/swagger.yaml , proto/fx/gravity/crosschain/v1/types.proto |
Updated titles for deprecated properties to "Deprecated: do not use" and added comments for clarity in protocol definitions. New fields added to the Params message. |
proto/fx/ibc/applications/transfer/v1/call.proto |
Changed the go_package option to reflect a new package structure. No changes to existing enums or message structures. |
testutil/helpers/helpers.go , testutil/helpers/suite.go |
Deprecated functions renamed for consistency, and new methods introduced for address generation. Removed old methods for adding test addresses. |
x/crosschain/keeper/grpc_query_v1_test.go , x/crosschain/keeper/keeper_v1_test.go |
Refactored test address setup to use a new method, improving readability and efficiency. |
x/crosschain/precompile/*.go |
Adjusted context references and updated method calls to reflect new naming conventions. Expanded test cases for various functionalities, improving coverage and clarity. |
x/evm/keeper/contract_code_test.go |
Expanded tests for contract code management, including new scenarios for FIP20 and WFX contracts. |
x/staking/precompile/*.go |
Replaced old address handling methods with suite.MintToken , enhancing clarity in token minting processes across various test cases. |
proto/fx/gravity/crosschain/v1/types.proto
file.hasOracle
and isOracleOnline
methods in the crosschain precompile interface, enhancing oracle functionality tied to documentation updates.SendToFxExecuted
, potentially impacted by changes regarding deprecated properties.🐰 In the code where rabbits hop,
Changes made, they never stop!
From Swagger docs to tests so bright,
Clarity shines, oh what a sight!
With every tweak, our code takes flight,
Hooray for updates, all feels right! 🌟
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?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests