Closed zakir-code closed 4 days ago
The pull request introduces significant modifications to the GenesisState
structure in the fx.gravity.crosschain.v1
package, including the removal of the BridgeTokens
field and adjustments to various other fields. Changes extend to the removal of the bridge_tokens
field in multiple blockchain configurations, updates in the Swagger documentation, and alterations in several protocol buffer files. Additionally, method signatures across various components have been updated, primarily involving the reordering of parameters, and several deprecated message definitions have been introduced.
File Path | Change Summary |
---|---|
api/fx/gravity/crosschain/v1/genesis.pulsar.go |
Removed BridgeTokens field; updated multiple fields with type replacements and repositioning; modified list handling methods. |
app/genesis.json |
Removed bridge_tokens field from multiple blockchain configurations. |
docs/swagger-ui/swagger.yaml |
Removed title: BridgeToken from various locations in the Swagger documentation. |
proto/fx/gravity/crosschain/v1/genesis.proto |
Reordered fields in GenesisState message; removed bridge_tokens and renumbered several fields. |
proto/fx/gravity/crosschain/v1/legacy.proto |
Added deprecated message definitions for BridgeToken , BatchFees , MinBatchFee , QueryBatchFeeRequest , and QueryBatchFeeResponse . |
proto/fx/gravity/crosschain/v1/query.proto |
Added import for legacy.proto ; removed QueryBatchFeeRequest and QueryBatchFeeResponse message definitions. |
proto/fx/gravity/crosschain/v1/types.proto |
Removed BridgeToken , BatchFees , and MinBatchFee message definitions; marked oracles field in Params as deprecated. |
x/crosschain/keeper/bridge_token.go |
Reordered parameters in method calls related to erc20Keeper ; no changes to exported declarations. |
x/crosschain/keeper/grpc_query.go |
Updated parameter orders in DenomToToken and TokenToDenom ; modified BridgeTokens method to accept a request parameter. |
x/crosschain/keeper/many_to_one.go |
Swapped parameter orders in GetBridgeToken and GetIBCToken method calls. |
x/crosschain/mock/expected_keepers_mocks.go |
Reordered parameters in GetBridgeToken and GetIBCToken ; added GetBridgeTokens method. |
x/crosschain/types/expected_keepers.go |
Updated parameter orders in GetBridgeToken and GetIBCToken ; added GetBridgeTokens method. |
x/crosschain/types/types.go |
Removed BridgeDenomToContract function and its import statement. |
x/crosschain/types/types_test.go |
Removed TestBridgeDenomToContract function. |
x/erc20/keeper/bridge_token.go |
Changed parameter order in GetBridgeToken ; added GetBaseDenom and GetBridgeTokens methods. |
x/erc20/keeper/ibc_token.go |
Reordered parameters in GetIBCToken and AddIBCToken methods. |
x/erc20/types/events.go |
Removed constant EventTypeConvertERC20 . |
x/erc20/types/keys_test.go |
Deleted the test file, removing TestName function. |
x/erc20/types/msg_test.go |
Removed MsgTestSuite struct; TestMsgConvertCoin function is now standalone. |
π In the land of code, where changes unfold,
TheBridgeTokens
have left, their story retold.
Fields are reordered, and mocks now align,
With tokens and bridges, all working in line.
So hop along, friends, letβs celebrate this feat,
For in every change, our code feels complete! π
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
bridge_tokens
field from multiple blockchain configurations.Bug Fixes
GenesisState
.Documentation
BridgeToken
references.Chores