Skip to content

Commit

Permalink
test: Add packet test for Axon
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Sep 18, 2023
1 parent 6b5aee4 commit 7b2b283
Show file tree
Hide file tree
Showing 18 changed files with 24,479 additions and 35 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ members = [
"tools/check-guide",
"tools/query-events",
"tools/forcerelay-test",
"tools/ibc-test"
"tools/ibc-test",
"tools/ibc-solidity-abi"
]

[patch.crates-io]
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer/src/chain/axon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ use super::{
};
use tokio::runtime::Runtime as TokioRuntime;

mod contract;
pub mod contract;
mod monitor;
mod msg;
mod rpc;
Expand Down
8 changes: 8 additions & 0 deletions crates/relayer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ impl ChainConfig {
}
}

pub fn downcast_axon(self) -> AxonChainConfig {
if let ChainConfig::Axon(c) = self {
c
} else {
panic!("Not a axon chain")
}
}

pub fn rpc_addr(&self) -> &Url {
if let ChainConfig::Cosmos(c) = &self {
&c.rpc_addr
Expand Down
3 changes: 3 additions & 0 deletions crates/relayer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ pub mod transfer;
pub mod upgrade_chain;
pub mod util;
pub mod worker;

/// TODO move ibc contract abi to a standalone crate
pub use chain::axon::contract as ibc_contract;
13 changes: 13 additions & 0 deletions tools/ibc-solidity-abi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "ibc-solidity-abi"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
env_logger = "0.10.0"
ethers = "2.0.10"
eyre = "0.6.8"
log = "0.4.20"
tokio = { version = "1.32.0", features = ["full"] }
Loading

0 comments on commit 7b2b283

Please sign in to comment.