-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement cross-chain mechanism between op and greenfield #413
Conversation
LGTM |
@@ -734,7 +734,7 @@ func (app *App) initModules(ctx sdk.Context) { | |||
|
|||
func (app *App) initCrossChain() { | |||
app.CrossChainKeeper.SetSrcChainID(sdk.ChainID(app.appConfig.CrossChain.SrcChainId)) | |||
app.CrossChainKeeper.SetDestChainID(sdk.ChainID(app.appConfig.CrossChain.DestBscChainId)) | |||
app.CrossChainKeeper.SetDestBscChainID(sdk.ChainID(app.appConfig.CrossChain.DestBscChainId)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is DestOpChainID needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need a hardfork to register the DestOpChainID
CreateRawIBCPackageWithFee(ctx sdk.Context, chainID sdk.ChainID, channelID sdk.ChannelID, packageType sdk.CrossChainPackageType, | ||
packageLoad []byte, relayerFee *big.Int, ackRelayerFee *big.Int, | ||
) (uint64, error) | ||
|
||
IsDestChainSupported(chainID sdk.ChainID) bool | ||
|
||
RegisterChannel(name string, id sdk.ChannelID, app sdk.CrossChainApplication) error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to specify the dest chain id ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, the app is bind to the channel, all the dest chains use the same app
Description
This pr implements the cross-chain mechanism between op and greenfield.
Rationale
Implement cross-chain mechanism between op and greenfield.
Example
n/a
Changes
Notable changes: