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

Introduce 'create connection' cmd #688

Merged
merged 19 commits into from
Mar 1, 2021
Merged

Introduce 'create connection' cmd #688

merged 19 commits into from
Mar 1, 2021

Conversation

adizere
Copy link
Member

@adizere adizere commented Feb 19, 2021

Closes: #630

Description

Adds a new command:

create connection <chain-a-id> <chain-b-id>

Optional: [--delay <delay>]

create connection <chain-a-id> --client-a <client-a-id> --client-b <client-b-id>

Optional: [--delay <delay>]


For contributor use:

  • Updated the Unreleased section of CHANGELOG.md with the issue.
  • If applicable: Unit tests written, added test to CI.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments.
  • Re-reviewed Files changed in the Github PR explorer.

@codecov-io
Copy link

codecov-io commented Feb 24, 2021

Codecov Report

Merging #688 (fd9f9d6) into master (b1b37f5) will increase coverage by 29.9%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #688      +/-   ##
=========================================
+ Coverage    13.6%   43.5%   +29.9%     
=========================================
  Files          69     152      +83     
  Lines        3752    9908    +6156     
  Branches     1374       0    -1374     
=========================================
+ Hits          513    4318    +3805     
- Misses       2618    5590    +2972     
+ Partials      621       0     -621     
Impacted Files Coverage Δ
modules/src/address.rs 100.0% <ø> (ø)
...application/ics20_fungible_token_transfer/error.rs 0.0% <ø> (ø)
...ion/ics20_fungible_token_transfer/msgs/transfer.rs 0.0% <ø> (ø)
modules/src/events.rs 0.0% <ø> (ø)
modules/src/handler.rs 100.0% <ø> (ø)
modules/src/ics02_client/client_def.rs 47.7% <ø> (ø)
modules/src/ics02_client/client_type.rs 79.1% <ø> (+31.5%) ⬆️
modules/src/ics02_client/context.rs 100.0% <ø> (ø)
modules/src/ics02_client/error.rs 100.0% <ø> (ø)
modules/src/ics02_client/events.rs 15.7% <ø> (+15.7%) ⬆️
... and 255 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e513db...fd9f9d6. Read the comment docs.

@adizere adizere changed the title WIP: 'create connection' cmd Introduce 'create connection' cmd Feb 25, 2021
@adizere adizere marked this pull request as ready for review February 25, 2021 15:15
Copy link
Collaborator

@ancazamfir ancazamfir left a comment

Choose a reason for hiding this comment

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

Looks great! A few comments and questions.

relayer-cli/src/commands/create/connection.rs Outdated Show resolved Hide resolved
relayer-cli/src/commands/create/connection.rs Outdated Show resolved Hide resolved
relayer-cli/src/commands/create/connection.rs Outdated Show resolved Hide resolved
relayer-cli/src/commands/create/connection.rs Outdated Show resolved Hide resolved
relayer/src/connection.rs Outdated Show resolved Hide resolved
relayer-cli/src/commands/create/connection.rs Show resolved Hide resolved
relayer-cli/src/conclude.rs Outdated Show resolved Hide resolved
@adizere adizere merged commit bcdea38 into master Mar 1, 2021
@adizere adizere deleted the adi/630_connhandshake branch March 1, 2021 08:13
@romac romac mentioned this pull request Apr 6, 2021
15 tasks
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
* Partial implementation of 'create connection' cmd

* More slick approach for exiting the program.

* Picking up work on this

* Split create connection into the two basic sub-cases

* Refactored create_reusing_clients

* Fixed handshake with delay period option.

* Typos, finishd impl for create_reusing_clients

* Aligned with ADR 006

* Changelog

* Refactored cli_utils. Improved error output.

* More decent doc for Unrecoverable

* fmt fix

* review based on Anca's suggestions

* Removed delay option.

* Update relayer-cli/src/conclude.rs

Co-authored-by: Romain Ruetschi <[email protected]>

* rm Unrecoverable, replaced with unreachable

Co-authored-by: Romain Ruetschi <[email protected]>
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.

Connection create CLI
4 participants