-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update ICA tests to use 'simd' instead of 'interchain-accounts-demo' * Remove 'ica' from flake.nix * Minor improvements * Add changelog entry * Update 'ibc-proto-rs' to 'v0.32.0' * Update Cargo.lock with 'ibc-proto-rs' v0.32.0 * Fix comment in ICA tests * Fix from Github review
- Loading branch information
Showing
21 changed files
with
494 additions
and
183 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
.changelog/unreleased/improvements/ibc-integration-test/3353-improve-ica-tests.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Update ICA tests to use ibc-go's `simd` instead of `interchain-accounts-demo`. | ||
([#3353](https://github.com/informalsystems/hermes/issues/3353)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
crates/relayer-types/src/applications/ics27_ica/cosmos_tx.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
use ibc_proto::google::protobuf::Any; | ||
use ibc_proto::ibc::applications::interchain_accounts::v1::CosmosTx as RawCosmosTx; | ||
use ibc_proto::protobuf::Protobuf; | ||
use serde_derive::Deserialize; | ||
use serde_derive::Serialize; | ||
|
||
use crate::applications::ics27_ica::error::Error; | ||
use crate::core::ics24_host::error::ValidationError; | ||
use crate::tx_msg::Msg; | ||
|
||
pub const TYPE_URL: &str = "/ibc.applications.interchain_accounts.v1.CosmosTx"; | ||
|
||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] | ||
pub struct CosmosTx { | ||
pub messages: Vec<Any>, | ||
} | ||
|
||
impl Msg for CosmosTx { | ||
type ValidationError = ValidationError; | ||
type Raw = RawCosmosTx; | ||
|
||
fn route(&self) -> String { | ||
crate::keys::ROUTER_KEY.to_string() | ||
} | ||
|
||
fn type_url(&self) -> String { | ||
TYPE_URL.to_string() | ||
} | ||
} | ||
|
||
impl Protobuf<RawCosmosTx> for CosmosTx {} | ||
|
||
impl TryFrom<RawCosmosTx> for CosmosTx { | ||
type Error = Error; | ||
|
||
fn try_from(value: RawCosmosTx) -> Result<Self, Self::Error> { | ||
Ok(CosmosTx { | ||
messages: value.messages, | ||
}) | ||
} | ||
} | ||
|
||
impl From<CosmosTx> for RawCosmosTx { | ||
fn from(value: CosmosTx) -> Self { | ||
RawCosmosTx { | ||
messages: value.messages, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use crate::core::ics24_host::error::ValidationError; | ||
use crate::signer::SignerError; | ||
|
||
use flex_error::define_error; | ||
|
||
define_error! { | ||
#[derive(Debug, PartialEq, Eq)] | ||
Error { | ||
Owner | ||
[ SignerError ] | ||
| _ | { "failed to parse owner" }, | ||
|
||
InvalidConnectionIdentifier | ||
[ ValidationError ] | ||
| _ | { "connection identifier error" }, | ||
|
||
InvalidPacketData | ||
| _ | { "packet data is None" }, | ||
|
||
InvalidRelativeTimeout | ||
{ timestamp: u64 } | ||
| e | { format_args!("invalid packet timeout timestamp value: `{}`", e.timestamp) }, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pub mod cosmos_tx; | ||
pub mod error; | ||
pub mod msgs; | ||
pub mod packet_data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod register; | ||
pub mod send_tx; |
Oops, something went wrong.