Closed zakir-code closed 1 week ago
The pull request introduces significant changes to the cross-chain functionality within the application. Key modifications include the removal of the appKeepers.EthKeeper
parameter from the NewAppKeeper
function and the deletion of the TransferAfter
method in the hook.go
file. Additionally, the NewPrecompiledContract
function no longer accepts the crossChainKeeper
parameter, and several updates were made to the Erc20Keeper
and CrosschainKeeper
interfaces. These changes streamline the instantiation of components and enhance the handling of transfers and validations related to cross-chain operations.
File Path | Change Summary |
---|---|
app/keepers/keepers.go | Removed appKeepers.EthKeeper from NewAppKeeper instantiation of crosschainprecompile.NewPrecompiledContract . |
x/crosschain/keeper/hook.go | Deleted hook.go which contained the TransferAfter method. |
x/crosschain/precompile/contract.go | Removed crossChainKeeper parameter from NewPrecompiledContract function signature. |
x/crosschain/precompile/expected_keepers.go | - Added SetOutgoingTransferRelation to Erc20Keeper . - Removed TransferAfter from CrosschainKeeper . - Added BaseCoinToIBCCoin and AddToOutgoingPool to CrosschainKeeper . |
x/crosschain/precompile/keeper.go | Removed crossChainKeeper field from Keeper struct; updated methods to access cross-chain functionality via router. |
EvmKeeper
parameter from the NewPrecompiledContract
function, which is similar to the removal of appKeepers.EthKeeper
in the main PR's NewAppKeeper
function, indicating a restructuring of dependencies related to cross-chain functionality.AddToOutgoingPool
method, which aligns with the main PR's changes that streamline cross-chain operations by modifying how components are instantiated and interact.🐇 In the land of code, changes unfold,
A keeper's tale, in whispers told.
With hooks removed and paths anew,
Cross-chain dreams are coming true.
So hop along, let's take a glance,
At how we dance in this code romance! 🐇✨
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
Refactor
Chores
hook.go
file that previously handled post-transfer operations.