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

Extract relayer.DockerRelayer from rly.CosmosRelayer #107

Merged
merged 2 commits into from
May 31, 2022

Conversation

mark-rushakoff
Copy link
Member

This wrapper type will allow a minimal definition of the hermes relayer,
or potentially any other relayer implementation, running inside Docker.

This will also be helpful if we end up having to support different
versions of rly or hermes that have a different CLI API.

For #3.

This wrapper type will allow a minimal definition of the hermes relayer,
or potentially any other relayer implementation, running inside Docker.

This will also be helpful if we end up having to support different
versions of rly or hermes that have a different CLI API.
@mark-rushakoff mark-rushakoff requested a review from a team as a code owner May 25, 2022 17:23
Copy link
Contributor

@DavidNix DavidNix left a comment

Choose a reason for hiding this comment

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

🚢

func (commander) GetConnections(chainID, homeDir string) []string {
return []string{
"rly", "q", "connections", chainID,
"--home", homeDir,
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️ this pattern

Copy link
Member

@agouin agouin 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!

@mark-rushakoff
Copy link
Member Author

@joeabbey has been studying the differences between the CLI for rly and hermes, so I am going to wait for his review before merging this one, so that we can be more sure the DockerRelayer type can handle both relayers.

…er-relayer

And add CreateChannel method to DockerRelayer to satisfy the updated
interface.
@mark-rushakoff mark-rushakoff merged commit 60cd4d1 into main May 31, 2022
@mark-rushakoff mark-rushakoff deleted the refactor/extract-docker-relayer branch May 31, 2022 19:51
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.

4 participants