Skip to content

Commit

Permalink
Channel open handshake message relaying/CLIs (informalsystems#403)
Browse files Browse the repository at this point in the history
* Add chan init and try CLIs

* Add ack and confirm CLIs

* Move to tendermint rc3

* Update changelog
  • Loading branch information
ancazamfir authored Nov 19, 2020
1 parent 84a5d01 commit fdb0d82
Show file tree
Hide file tree
Showing 17 changed files with 970 additions and 26 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ Special thanks to external contributors for this release: @CharlyCst ([#347]).
- ICS 4 Domain Types for channel handshakes ([#315])
- [relayer]
- Implement `query_header_at_height` via plain RPC queries (no light client verification) ([#336])
- Implement the relayer logic for connection handshake message ([#358], [#359], [#360])
- Implement the relayer logic for connection handshake messages ([#358], [#359], [#360])
- Implement the relayer logic for channel handshake messages ([#371], [#372], [#373], [#374])
- [relayer-cli]
- Merge light clients config in relayer config and add commands to add/remove light clients ([#348])
- CLI for client update message ([#277])
- Implement the relayer CLI for connection handshake message ([#358], [#359], [#360])
- Implement the relayer CLI for connection handshake messages ([#358], [#359], [#360])
- Implement the relayer CLI for channel handshake messages ([#371], [#372], [#373], [#374])
- [proto-compiler]
- Refactor and allow specifying a commit at which the Cosmos SDK should be checked out ([#366])
- Add a `--tag` option to the `clone-sdk` command to check out a tag instead of a commit ([#369])
Expand All @@ -36,6 +38,11 @@ Special thanks to external contributors for this release: @CharlyCst ([#347]).
[#366]: https://github.com/informalsystems/ibc-rs/issues/366
[#368]: https://github.com/informalsystems/ibc-rs/issues/368
[#369]: https://github.com/informalsystems/ibc-rs/pulls/369
[#371]: https://github.com/informalsystems/ibc-rs/issues/371
[#372]: https://github.com/informalsystems/ibc-rs/issues/372
[#373]: https://github.com/informalsystems/ibc-rs/issues/373
[#374]: https://github.com/informalsystems/ibc-rs/issues/374

[proto-compiler]: https://github.com/informalsystems/ibc-rs/tree/master/proto-compiler

### IMPROVEMENTS
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ members = [

exclude = [
"proto-compiler"
]
]
11 changes: 4 additions & 7 deletions relayer-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,20 @@ prost-types = { version = "0.6.1" }
hex = "0.4"

[dependencies.tendermint-proto]
version = "0.17.0-rc2"
version = "=0.17.0-rc3"

[dependencies.tendermint]
version = "0.17.0-rc2"
version = "=0.17.0-rc3"

[dependencies.tendermint-rpc]
version = "0.17.0-rc2"
version = "=0.17.0-rc3"
features = ["http-client", "websocket-client"]

[dependencies.tendermint-light-client]
version = "0.17.0-rc2"
version = "=0.17.0-rc3"

[dependencies.abscissa_core]
version = "0.5.2"
# optional: use `gimli` to capture backtraces
# see https://github.com/rust-lang/backtrace-rs/issues/189
# features = ["gimli-backtrace"]

[dev-dependencies]
abscissa_core = { version = "0.5.2", features = ["testing"] }
Expand Down
2 changes: 1 addition & 1 deletion relayer-cli/src/commands/query/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::error::{Error, Kind};
use ibc::ics24_host::error::ValidationError;
use relayer::chain::{Chain, CosmosSDKChain};
use tendermint::chain::Id as ChainId;
use tendermint_proto::DomainType;
use tendermint_proto::Protobuf;

#[derive(Clone, Command, Debug, Options)]
pub struct QueryChannelEndCmd {
Expand Down
2 changes: 1 addition & 1 deletion relayer-cli/src/commands/query/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use ibc::ics24_host::Path::{ClientConnections, ClientConsensusState, ClientState
use relayer::chain::Chain;
use relayer::chain::CosmosSDKChain;
use tendermint::chain::Id as ChainId;
use tendermint_proto::DomainType;
use tendermint_proto::Protobuf;

use std::convert::TryInto;

Expand Down
17 changes: 17 additions & 0 deletions relayer-cli/src/commands/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use abscissa_core::{Command, Help, Options, Runnable};

use crate::commands::tx::client::{TxCreateClientCmd, TxUpdateClientCmd};

mod channel;
mod client;
mod connection;

Expand Down Expand Up @@ -47,4 +48,20 @@ pub enum TxRawCommands {
/// The `tx raw conn-confirm` subcommand
#[options(help = "tx raw conn-confirm")]
ConnConfirm(connection::TxRawConnConfirmCmd),

/// The `tx raw chan-init` subcommand
#[options(help = "tx raw chan-init")]
ChanInit(channel::TxRawChanInitCmd),

/// The `tx raw chan-try` subcommand
#[options(help = "tx raw chan-try")]
ChanTry(channel::TxRawChanTryCmd),

/// The `tx raw chan-ack` subcommand
#[options(help = "tx raw chan-ack")]
ChanAck(channel::TxRawChanAckCmd),

/// The `tx raw chan-confirm` subcommand
#[options(help = "tx raw chan-confirm")]
ChanConfirm(channel::TxRawChanConfirmCmd),
}
Loading

0 comments on commit fdb0d82

Please sign in to comment.