Skip to content
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

Implement IBC channel handshake #62

Merged
merged 7 commits into from
Jun 21, 2023
Merged

Implement IBC channel handshake #62

merged 7 commits into from
Jun 21, 2023

Conversation

ethanfrey
Copy link
Collaborator

@ethanfrey ethanfrey commented Jun 20, 2023

  • Add version handshake logic
  • Extends documentation on channel handshake protocol
  • Add all ibc entry points as stubs for external-staking and converter
  • Implement the 3 channel lifetime calls
  • Add E2E tests (with Go ibctesting?)

@ethanfrey ethanfrey marked this pull request as ready for review June 21, 2023 09:30
@ethanfrey
Copy link
Collaborator Author

This is implemented and documented. We need E2E tests, but I think that is not blocking the merge

@ethanfrey ethanfrey requested a review from maurolacy June 21, 2023 09:31
Copy link
Collaborator

@maurolacy maurolacy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

packages/apis/src/ibc/version.rs Show resolved Hide resolved
@@ -70,6 +70,20 @@ The general process (assuming a vault is already established on the provider) is
3. Create IBC channel from provider to consumer
4. Apply to consumer governance to provide a virtual staking max cap to the associated virtual staking contract, so that this connection may have voting power.

### Handshake
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 Good description.

@@ -73,6 +74,10 @@ impl ExternalStakingContract<'_> {

set_contract_version(ctx.deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;

// Question: do we need to validate here? Is there a defined schema for such
// Question: should we add a query endpoint for this?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. Just turn into a TODO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 70a71ff

@ethanfrey ethanfrey merged commit 2ef9075 into main Jun 21, 2023
@ethanfrey ethanfrey deleted the ibc-handshake branch June 21, 2023 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants