-
Notifications
You must be signed in to change notification settings - Fork 329
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
Remove the OCap system #2186
Remove the OCap system #2186
Conversation
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.
This is a very satisfying PR! Pre-approved.
@@ -18,6 +18,31 @@ Implementation of the Inter-Blockchain Communication Protocol ([IBC]) module. | |||
|
|||
See documentation on [docs.rs][docs-link]. | |||
|
|||
## Divergence from the Interchain Standards (ICS) |
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.
Tip-top, thanks for taking the care to describe this!
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.
Thanks, @plafer! 🙏 There's nothing like a PR that has more deletions than additions! I added some suggestions and comments.
Test { | ||
name: "Good parameters".to_string(), | ||
ctx: context | ||
.with_client(&ClientId::default(), client_height) | ||
.with_connection(ConnectionId::default(), connection_end) | ||
.with_port_capability(packet.destination_port.clone()) | ||
.with_port(packet.destination_port.clone()) |
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.
IIUC, I don't think we need to set a port mapping to test handshakes, so we should be able to remove most of them.
Co-authored-by: Shoaib Ahmed <sufialhussaini@gmail.com>
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.
🙏
* Remove capabilities * changelog * Start documenting where we diverge from spec * Update modules/README.md Co-authored-by: Shoaib Ahmed <sufialhussaini@gmail.com> * remove MockContext::with_port * cippy tests Co-authored-by: Shoaib Ahmed <sufialhussaini@gmail.com>
Closes: cosmos/ibc-rs#45
Closes: #2116
Description
This PR removes everything "object capability" in the modules. Notably, there is now only 1 function to bind a module to a port (
PortKeeper::bind_module_to_port(module_id, port_Id)
), and 1 function to lookup a module by port (PortReader::lookup_module_by_port(port_id)
).We currently don't support transferring ownership of a port or releasing a port.
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.