Closed zakir-code closed 4 days ago
The pull request includes extensive renaming and restructuring of the CrossChain
terminology across multiple files in the codebase. This involves changing instances of CrossChain
to Crosschain
for consistency in naming conventions, affecting structs, interfaces, variables, and method signatures. Additionally, some methods have been updated to enhance error handling, particularly by introducing error return types. The overall functionality and logic of the code remain unchanged, focusing primarily on standardizing naming conventions and improving clarity.
File Path | Change Summary |
---|---|
app/keepers/keepers.go | Renamed CrossChainKeepers to CrosschainKeepers , and precompileRouter to crosschainPrecompileRouter . |
app/modules.go | Updated method call from app.CrossChainKeepers.ToSlice() to app.CrosschainKeepers.ToSlice() . |
contract/ICrossChain.go | Renamed ICrossChain and related variables/types to ICrosschain . |
contract/compile.sh | Updated contract names from ICrossChain to ICrosschain and CrossChainTest to CrosschainTest . |
contract/contract.go | Renamed constant CrossChainAddress to CrosschainAddress . |
solidity/contracts/bridge/BridgeFeeOracle.sol | Updated import statement from ICrossChain to ICrosschain . |
solidity/contracts/bridge/ICrosschain.sol | Renamed interface from ICrossChain to ICrosschain . |
solidity/contracts/test/CrosschainTest.sol | Updated references to ICrossChain to ICrosschain , and renamed contract from CrossChainTest to CrosschainTest . |
tests/contract/CrossChainTest.go | Renamed CrossChainTest references to CrosschainTest . |
x/crosschain/keeper/bridge_call_out.go | Renamed method CrossChainBaseCoin to CrosschainBaseCoin . |
x/crosschain/keeper/keeper_router.go | Updated comment for NewRouterKeeper from "cross chain keeper" to "crosschain keeper". |
x/crosschain/keeper/keeper_test.go | Renamed method CrossChainParams to CrosschainParams . |
x/crosschain/keeper/many_to_one.go | Changed return type of AfterIBCAckSuccess from void to error . |
x/crosschain/keeper/msg_server_router.go | Updated error message from "Unrecognized cross chain type" to "Unrecognized crosschain type". |
x/crosschain/precompile/bridge_call_test.go | Renamed interface ICrossChainBridgeCallEvent to ICrosschainBridgeCallEvent . |
x/crosschain/precompile/contract.go | Renamed method NewCrossChainMethod to NewCrosschainMethod . |
x/crosschain/precompile/contract_test.go | Renamed method CrossChainKeepers to CrosschainKeepers . |
x/crosschain/precompile/crosschain.go | Renamed CrossChainMethod to CrosschainMethod and updated related method signatures. |
x/crosschain/precompile/crosschain_test.go | Renamed test function from TestCrossChainABI to TestCrosschainABI . |
x/crosschain/precompile/expected_keepers.go | Renamed method CrossChainBaseCoin to CrosschainBaseCoin . |
x/crosschain/precompile/has_oracle_test.go | Renamed test function from TestCrossChainHasOracleABI to TestCrosschainHasOracleABI . |
x/crosschain/precompile/is_oracle_online_test.go | Renamed test function from TestCrossChainIsOracleOnlineABI to TestCrosschainIsOracleOnlineABI . |
x/crosschain/precompile/keeper.go | Renamed parameter crossChainKeeper to crosschainKeeper . |
x/crosschain/types/contract.go | Renamed variables crossChainAddress and crossChainABI to crosschainAddress and crosschainABI . |
x/crosschain/types/external_address.go | Updated error messages from "cross chain" to "crosschain" in multiple functions. |
x/crosschain/types/legacy.go | Changed error message in UpdateChainOraclesProposal from "unrecognized cross chain name" to "unrecognized crosschain name". |
x/crosschain/types/msgs.go | Renamed interface CrossChainMsg to CrosschainMsg and updated error messages in validation methods. |
x/crosschain/types/msgs_test.go | Updated error messages in validation tests for various message types. |
x/erc20/types/token.go | Changed comment from "todo" to "TODO" in BridgeDenom method. |
x/gov/keeper/keeper_test.go | Renamed test case from "set CrossChainParam" to "set CrosschainParam". |
x/ibc/middleware/keeper/keeper.go | Renamed field crossChainKeeper to crosschainKeeper . |
x/ibc/middleware/keeper/relay.go | Updated references from crossChainKeeper to crosschainKeeper in multiple methods. |
x/ibc/middleware/types/expected_keepers.go | Renamed interface CrossChainKeeper to CrosschainKeeper , updated method signature to include error return type. |
ICrossChain.go
involve renaming and restructuring related to cross-chain functionality, which aligns with the renaming of CrossChainKeepers
to CrosschainKeepers
in the main PR.ICrossChain.go
regarding the bridgeCall
function parameters and return types are related to the renaming and restructuring of cross-chain functionality in the main PR.CrossChainTest.sol
to reflect changes in the ICrossChain
interface are relevant as they pertain to the same cross-chain functionality being renamed in the main PR.ICrossChain
interface to mark deprecated functions and events is related to the overall restructuring of cross-chain functionality in the main PR.🐰 In the land of code, where changes abound,
A rabbit hops softly, with new names profound.
Crosschain is here, clear as can be,
With functions renamed, oh what a spree!
Consistency reigns, like carrots in rows,
In the garden of logic, where clarity grows! 🌱✨
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?
@coderabbitai full review
Summary by CodeRabbit
New Features
AfterIBCAckSuccess
method to return error values.Bug Fixes
Refactor
CrossChain
toCrosschain
) for consistency in naming conventions across the codebase.Tests