-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update universal-channel-middleware.md #279
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request updates the documentation for the Universal Channel and IBC Middleware. It replaces relative links with absolute URLs to specific lines in the GitHub repository for the Changes
Possibly related PRs
Poem
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
🧹 Outside diff range and nitpick comments (3)
docs/universal-channel-middleware.md (3)
16-16
: Consider using main branch links instead of commit hashesWhile using specific commit hashes (
b9f269e0...
) ensures link stability, it may lead readers to outdated code versions. Consider using links to themain
branch unless there's a specific need to reference this exact version.-[UniversalChannelHandler.sol](https://github.com/open-ibc/vibc-core-smart-contracts/blob/b9f269e0d51d1696723f95bf61fab101596514a0/contracts/core/UniversalChannelHandler.sol#L4) +[UniversalChannelHandler.sol](https://github.com/open-ibc/vibc-core-smart-contracts/blob/main/contracts/core/UniversalChannelHandler.sol)Also applies to: 33-33
77-77
: Fix grammar and update link referenceTwo suggestions for this line:
- Use "an MW stack" instead of "a MW stack" as "MW" is pronounced starting with a vowel sound
- Consider using a main branch link instead of commit hash
-You can also check out the [Earth contract](https://github.com/open-ibc/vibc-core-smart-contracts/blob/b9f269e0d51d1696723f95bf61fab101596514a0/contracts/examples/Earth.sol#L4) for a more complete example of how to use the Universal Channel or a MW stack to send and receive packets. +You can also check out the [Earth contract](https://github.com/open-ibc/vibc-core-smart-contracts/blob/main/contracts/examples/Earth.sol) for a more complete example of how to use the Universal Channel or an MW stack to send and receive packets.🧰 Tools
🪛 LanguageTool
[misspelling] ~77-~77: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ... of how to use the Universal Channel or a MW stack to send and receive packets. ...(EN_A_VS_AN)
83-85
: Update links for consistency and reliabilityTwo suggestions for improved documentation maintainability:
- Use main branch link instead of commit hash for UniversalChannelHandler.sol
- Replace relative path with absolute GitHub URL for the test file reference
-To create a Middleware stack, you need to register the Middleware contracts with the Universal Channel Middleware. This is done using the registerMwStack function in the [UniversalChannelHandler.sol](https://github.com/open-ibc/vibc-core-smart-contracts/blob/b9f269e0d51d1696723f95bf61fab101596514a0/contracts/core/UniversalChannelHandler.sol#L4) contract. The Middleware contracts are identified by a bitmap and an array of addresses. +To create a Middleware stack, you need to register the Middleware contracts with the Universal Channel Middleware. This is done using the registerMwStack function in the [UniversalChannelHandler.sol](https://github.com/open-ibc/vibc-core-smart-contracts/blob/main/contracts/core/UniversalChannelHandler.sol) contract. The Middleware contracts are identified by a bitmap and an array of addresses. -Check out tests in [Universal channel and MW tests](../test/universal.channel.t.sol) for full examples of how to register a Middleware stack. +Check out tests in [Universal channel and MW tests](https://github.com/open-ibc/vibc-core-smart-contracts/blob/main/test/universal.channel.t.sol) for full examples of how to register a Middleware stack.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
docs/universal-channel-middleware.md
(3 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/universal-channel-middleware.md
[misspelling] ~77-~77: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ... of how to use the Universal Channel or a MW stack to send and receive packets. ...
(EN_A_VS_AN)
🔇 Additional comments (1)
docs/universal-channel-middleware.md (1)
Line range hint 1-103
: Documentation is well-structured and comprehensive
The documentation provides clear explanations of Universal Channel and IBC Middleware concepts, includes helpful code examples, and covers important caveats. The content is logically organized and technically accurate.
🧰 Tools
🪛 LanguageTool
[misspelling] ~77-~77: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ... of how to use the Universal Channel or a MW stack to send and receive packets. ...
(EN_A_VS_AN)
update outdated links
Summary by CodeRabbit
sendUniversalPacket
function.