Skip to content

Commit

Permalink
Wire up ParseInitCosmosChannelOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchen1991 committed Jan 17, 2025
1 parent 0f8f5af commit 580507b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ where
+ CanRaiseError<Relay::Error>
+ CanParseArg<Args, symbol!("target_chain_id"), Parsed = Chain::ChainId>
+ CanParseArg<Args, symbol!("target_client_id"), Parsed = Chain::ClientId>
+ CanParseArg<Args, symbol!("target_connection_id"), Parsed = Chain::ConnectionId>
+ CanParseArg<Args, symbol!("target_port_id"), Parsed = Chain::PortId>
+ CanParseArg<Args, symbol!("counterparty_chain_id"), Parsed = Counterparty::ChainId>
+ CanParseArg<Args, symbol!("counterparty_client_id"), Parsed = Counterparty::ClientId>
+ CanParseArg<Args, symbol!("counterparty_port_id"), Parsed = Counterparty::PortId>
+ CanParseArg<Args, symbol!("ordering"), Parsed = Counterparty::PortId>,
+ CanParseArg<Args, symbol!("version"), Parsed = Counterparty::PortId>,
+ CanParseArg<Args, symbol!("init_channel_options"), Parsed = Chain::InitChannelOptions>,
App::Logger: CanLog<LevelInfo>,
Args: Async,
Builder: CanBuildRelay<Index<0>, Index<1>, Relay = Relay>
Expand Down
7 changes: 4 additions & 3 deletions crates/cli/cli/src/contexts/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ use hermes_cli_components::impls::commands::start::{RunStartRelayerCommand, Star
use hermes_cli_components::impls::config::get_config_path::GetDefaultConfigField;
use hermes_cli_components::impls::config::load_toml_config::LoadTomlConfig;
use hermes_cli_components::impls::config::save_toml_config::WriteTomlConfig;
use hermes_cli_components::impls::parse::identifier::{ParseInitCosmosChannelOptions, ParsePortId};
use hermes_cli_components::impls::parse::string::{ParseFromOptionalString, ParseFromString};
use hermes_cli_components::traits::any_counterparty::ProvideAnyCounterparty;
use hermes_cli_components::traits::bootstrap::{BootstrapLoaderComponent, BootstrapTypeComponent};
Expand Down Expand Up @@ -203,11 +204,11 @@ delegate_components! {

(CreateChannelArgs, symbol!("target_chain_id")): ParseFromString<ChainId>,
(CreateChannelArgs, symbol!("target_client_id")): ParseFromString<ClientId>,
(CreateChannelArgs, symbol!("target_port_id")): ParseFromOptionalString<PortId>,
(CreateChannelArgs, symbol!("target_connection_id")): ParseFromString<ConnectionId>,
(CreateChannelArgs, symbol!("target_port_id")): ParsePortId,
(CreateChannelArgs, symbol!("counterparty_chain_id")): ParseFromString<ChainId>,
(CreateChannelArgs, symbol!("counterparty_client_id")): ParseFromString<ClientId>,
(CreateChannelArgs, symbol!("counterparty_port_id")): ParseFromOptionalString<PortId>,
(CreateChannelArgs, symbol!("counterparty_port_id")): ParsePortId,
(CreateChannelArgs, symbol!("init_channel_options")): ParseInitCosmosChannelOptions,

(CreateConnectionArgs, symbol!("target_chain_id")): ParseFromString<ChainId>,
(CreateConnectionArgs, symbol!("target_client_id")): ParseFromString<ClientId>,
Expand Down

0 comments on commit 580507b

Please sign in to comment.