-
Notifications
You must be signed in to change notification settings - Fork 19
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
launchtools: ibc nft channel improvement #135
base: main
Are you sure you want to change the base?
launchtools: ibc nft channel improvement #135
Conversation
WalkthroughThe changes update the IBC channel creation process. The previously used function Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant channelWithPorts
participant Relayer
Caller->>channelWithPorts: Call with srcPort, dstPort, version
channelWithPorts->>Relayer: Execute "channel" command
Relayer-->>channelWithPorts: Return operation result
channelWithPorts-->>Caller: Return execution status
Possibly related PRs
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 golangci-lint (1.62.2)level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package injective: could not load export data: no export data for "github.com/cosmos/relayer/v2/relayer/codecs/injective"" ✨ Finishing Touches
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
contrib/launchtools/steps/ibc.go (1)
267-289
: Update log message to reflect channel creation.The log message still mentions "linking chains" which is inconsistent with the new
channel
command. Consider updating it to better reflect the operation being performed.Apply this diff to improve the log message:
- r.logger.Info("linking chains for relayer...", "version", string(versionBz)) + r.logger.Info("creating channel for relayer...", "version", string(versionBz), "src-port", srcPort, "dst-port", dstPort)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
contrib/launchtools/steps/ibc.go
(3 hunks)
🔇 Additional comments (1)
contrib/launchtools/steps/ibc.go (1)
58-58
: LGTM! Improved IBC channel creation sequence.The sequence of first creating default transfer ports with
link
and then reusing the light client for NFT channel withchannelWithPorts
is a good approach. This reduces the risk of channel expiration as long as any of the channels continue to receive updates.
Description
This change modifies how the nft ibc channel is created by instead doing
rly tx channel
rather thantx link
and it essentially reuses the light client created for the ics20 channel so as long as any of the channel keep getting updated there is less chance of expiration.Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit