Skip to content

Commit

Permalink
Set dst-channel flag to required for channel upgrade CLIs and updated…
Browse files Browse the repository at this point in the history
… templates
  • Loading branch information
ljoss17 committed Aug 3, 2023
1 parent 05b08d0 commit 2c65075
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions crates/relayer-cli/src/commands/tx/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ pub struct TxChanUpgradeTryCmd {
long = "dst-channel",
visible_alias = "dst-chan",
required = true,
help_heading = "REQUIRED",
value_name = "DST_CHANNEL_ID",
help = "Identifier of the destination channel (optional)"
)]
Expand Down Expand Up @@ -1038,6 +1039,8 @@ pub struct TxChanUpgradeAckCmd {
#[clap(
long = "dst-channel",
visible_alias = "dst-chan",
required = true,
help_heading = "REQUIRED",
value_name = "DST_CHANNEL_ID",
help = "Identifier of the destination channel (optional)"
)]
Expand Down Expand Up @@ -1182,6 +1185,8 @@ pub struct TxChanUpgradeOpenCmd {
#[clap(
long = "dst-channel",
visible_alias = "dst-chan",
required = true,
help_heading = "REQUIRED",
value_name = "DST_CHANNEL_ID",
help = "Identifier of the destination channel (optional)"
)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[[#BINARY hermes]][[#GLOBALOPTIONS]] tx chan-upgrade-ack[[#OPTIONS]] --dst-chain [[#DST_CHAIN_ID]] --src-chain [[#SRC_CHAIN_ID]] --dst-connection [[#DST_CONNECTION_ID]] --dst-port [[#DST_PORT_ID]] --src-port [[#SRC_PORT_ID]] --src-channel [[#SRC_CHANNEL_ID]]
[[#BINARY hermes]][[#GLOBALOPTIONS]] tx chan-upgrade-ack[[#OPTIONS]] --dst-chain [[#DST_CHAIN_ID]] --src-chain [[#SRC_CHAIN_ID]] --dst-connection [[#DST_CONNECTION_ID]] --dst-port [[#DST_PORT_ID]] --src-port [[#SRC_PORT_ID]] --src-channel [[#SRC_CHANNEL_ID]] --dst-channel [[#DST_CHANNEL_ID]]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[[#BINARY hermes]][[#GLOBALOPTIONS]] tx chan-upgrade-open[[#OPTIONS]] --dst-chain [[#DST_CHAIN_ID]] --src-chain [[#SRC_CHAIN_ID]] --dst-connection [[#DST_CONNECTION_ID]] --dst-port [[#DST_PORT_ID]] --src-port [[#SRC_PORT_ID]] --src-channel [[#SRC_CHANNEL_ID]]
[[#BINARY hermes]][[#GLOBALOPTIONS]] tx chan-upgrade-open[[#OPTIONS]] --dst-chain [[#DST_CHAIN_ID]] --src-chain [[#SRC_CHAIN_ID]] --dst-connection [[#DST_CONNECTION_ID]] --dst-port [[#DST_PORT_ID]] --src-port [[#SRC_PORT_ID]] --src-channel [[#SRC_CHANNEL_ID]] --dst-channel [[#DST_CHANNEL_ID]]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[[#BINARY hermes]][[#GLOBALOPTIONS]] tx chan-upgrade-try[[#OPTIONS]] --dst-chain [[#DST_CHAIN_ID]] --src-chain [[#SRC_CHAIN_ID]] --dst-connection [[#DST_CONNECTION_ID]] --dst-port [[#DST_PORT_ID]] --src-port [[#SRC_PORT_ID]] --src-channel [[#SRC_CHANNEL_ID]]
[[#BINARY hermes]][[#GLOBALOPTIONS]] tx chan-upgrade-try[[#OPTIONS]] --dst-chain [[#DST_CHAIN_ID]] --src-chain [[#SRC_CHAIN_ID]] --dst-connection [[#DST_CONNECTION_ID]] --dst-port [[#DST_PORT_ID]] --src-port [[#SRC_PORT_ID]] --src-channel [[#SRC_CHANNEL_ID]] --dst-channel [[#DST_CHANNEL_ID]]
8 changes: 4 additions & 4 deletions guide/src/templates/help_templates/tx/chan-upgrade-ack.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ DESCRIPTION:
Relay the channel upgrade attempt (ChannelUpgradeAck)

USAGE:
hermes tx chan-upgrade-ack [OPTIONS] --dst-chain <DST_CHAIN_ID> --src-chain <SRC_CHAIN_ID> --dst-connection <DST_CONNECTION_ID> --dst-port <DST_PORT_ID> --src-port <SRC_PORT_ID> --src-channel <SRC_CHANNEL_ID>
hermes tx chan-upgrade-ack [OPTIONS] --dst-chain <DST_CHAIN_ID> --src-chain <SRC_CHAIN_ID> --dst-connection <DST_CONNECTION_ID> --dst-port <DST_PORT_ID> --src-port <SRC_PORT_ID> --src-channel <SRC_CHANNEL_ID> --dst-channel <DST_CHANNEL_ID>

OPTIONS:
--dst-channel <DST_CHANNEL_ID>
Identifier of the destination channel (optional) [aliases: dst-chan]

-h, --help
Print help information

Expand All @@ -23,6 +20,9 @@ REQUIRED:
--dst-chain <DST_CHAIN_ID>
Identifier of the destination chain

--dst-channel <DST_CHANNEL_ID>
Identifier of the destination channel (optional) [aliases: dst-chan]

--dst-connection <DST_CONNECTION_ID>
Identifier of the destination connection [aliases: dst-conn]

Expand Down
8 changes: 4 additions & 4 deletions guide/src/templates/help_templates/tx/chan-upgrade-open.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ DESCRIPTION:
Relay the channel upgrade attempt (ChannelUpgradeOpen)

USAGE:
hermes tx chan-upgrade-open [OPTIONS] --dst-chain <DST_CHAIN_ID> --src-chain <SRC_CHAIN_ID> --dst-connection <DST_CONNECTION_ID> --dst-port <DST_PORT_ID> --src-port <SRC_PORT_ID> --src-channel <SRC_CHANNEL_ID>
hermes tx chan-upgrade-open [OPTIONS] --dst-chain <DST_CHAIN_ID> --src-chain <SRC_CHAIN_ID> --dst-connection <DST_CONNECTION_ID> --dst-port <DST_PORT_ID> --src-port <SRC_PORT_ID> --src-channel <SRC_CHANNEL_ID> --dst-channel <DST_CHANNEL_ID>

OPTIONS:
--dst-channel <DST_CHANNEL_ID>
Identifier of the destination channel (optional) [aliases: dst-chan]

-h, --help
Print help information

Expand All @@ -23,6 +20,9 @@ REQUIRED:
--dst-chain <DST_CHAIN_ID>
Identifier of the destination chain

--dst-channel <DST_CHANNEL_ID>
Identifier of the destination channel (optional) [aliases: dst-chan]

--dst-connection <DST_CONNECTION_ID>
Identifier of the destination connection [aliases: dst-conn]

Expand Down
8 changes: 4 additions & 4 deletions guide/src/templates/help_templates/tx/chan-upgrade-try.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ DESCRIPTION:
Relay the channel upgrade attempt (ChannelUpgradeTry)

USAGE:
hermes tx chan-upgrade-try [OPTIONS] --dst-chain <DST_CHAIN_ID> --src-chain <SRC_CHAIN_ID> --dst-connection <DST_CONNECTION_ID> --dst-port <DST_PORT_ID> --src-port <SRC_PORT_ID> --src-channel <SRC_CHANNEL_ID>
hermes tx chan-upgrade-try [OPTIONS] --dst-chain <DST_CHAIN_ID> --src-chain <SRC_CHAIN_ID> --dst-connection <DST_CONNECTION_ID> --dst-port <DST_PORT_ID> --src-port <SRC_PORT_ID> --src-channel <SRC_CHANNEL_ID> --dst-channel <DST_CHANNEL_ID>

OPTIONS:
--dst-channel <DST_CHANNEL_ID>
Identifier of the destination channel (optional) [aliases: dst-chan]

-h, --help
Print help information

Expand All @@ -23,6 +20,9 @@ REQUIRED:
--dst-chain <DST_CHAIN_ID>
Identifier of the destination chain

--dst-channel <DST_CHANNEL_ID>
Identifier of the destination channel (optional) [aliases: dst-chan]

--dst-connection <DST_CONNECTION_ID>
Identifier of the destination connection [aliases: dst-conn]

Expand Down

0 comments on commit 2c65075

Please sign in to comment.