Skip to content

Commit 1dd8db5

Browse files
committed
cargo ftm
1 parent 85ece4f commit 1dd8db5

15 files changed

Lines changed: 44 additions & 39 deletions

File tree

crates/chain-traits/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
pub mod types;
1+
pub mod events;
2+
pub mod message_builders;
23
pub mod messaging;
3-
pub mod queries;
4+
pub mod packet_builders;
45
pub mod packet_queries;
56
pub mod payload_builders;
6-
pub mod message_builders;
7-
pub mod packet_builders;
8-
pub mod events;
9-
pub mod tx;
7+
pub mod queries;
108
pub mod relay;
9+
pub mod tx;
10+
pub mod types;
1111

1212
pub use types::*;

crates/chain-traits/src/queries.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ pub trait CanQueryChainStatus: HasChainStatusType {
99
}
1010

1111
#[async_trait]
12-
pub trait CanQueryClientState<Counterparty: HasChainTypes + ?Sized>: HasIbcTypes<Counterparty> {
12+
pub trait CanQueryClientState<Counterparty: HasChainTypes + ?Sized>:
13+
HasIbcTypes<Counterparty>
14+
{
1315
async fn query_client_state(
1416
&self,
1517
client_id: &Self::ClientId,
@@ -18,7 +20,9 @@ pub trait CanQueryClientState<Counterparty: HasChainTypes + ?Sized>: HasIbcTypes
1820
}
1921

2022
#[async_trait]
21-
pub trait CanQueryConsensusState<Counterparty: HasChainTypes + ?Sized>: HasIbcTypes<Counterparty> {
23+
pub trait CanQueryConsensusState<Counterparty: HasChainTypes + ?Sized>:
24+
HasIbcTypes<Counterparty>
25+
{
2226
async fn query_consensus_state(
2327
&self,
2428
client_id: &Self::ClientId,

crates/chain-traits/src/relay.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
pub mod context;
2-
pub mod packet;
1+
pub mod birelay;
32
pub mod client;
3+
pub mod context;
44
pub mod event;
5-
pub mod birelay;
5+
pub mod packet;
66

7-
pub use context::Relay;
87
pub use birelay::BiRelay;
8+
pub use context::Relay;

crates/chain-traits/src/relay/birelay.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use super::context::Relay;
55
pub trait BiRelay: ThreadSafe {
66
type RelayAToB: Relay;
77
type RelayBToA: Relay<
8-
SrcChain = <Self::RelayAToB as Relay>::DstChain,
9-
DstChain = <Self::RelayAToB as Relay>::SrcChain,
10-
>;
8+
SrcChain = <Self::RelayAToB as Relay>::DstChain,
9+
DstChain = <Self::RelayAToB as Relay>::SrcChain,
10+
>;
1111

1212
fn relay_a_to_b(&self) -> &Self::RelayAToB;
1313
fn relay_b_to_a(&self) -> &Self::RelayBToA;

crates/chain-traits/src/relay/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use async_trait::async_trait;
22
use mercury_core::error::Result;
33

4-
use crate::types::HasChainTypes;
54
use super::context::Relay;
5+
use crate::types::HasChainTypes;
66

77
#[async_trait]
88
pub trait CanRelayEvents: Relay {

crates/chain-traits/src/relay/packet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use async_trait::async_trait;
22
use mercury_core::error::Result;
33

4-
use crate::types::HasPacketTypes;
54
use super::context::Relay;
5+
use crate::types::HasPacketTypes;
66

77
#[async_trait]
88
pub trait CanRelayReceivePacket: Relay {

crates/core/src/encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::error::Result;
21
use crate::ThreadSafe;
2+
use crate::error::Result;
33

44
pub trait Encoding: ThreadSafe {
55
type Encoded: AsRef<[u8]> + ThreadSafe;

crates/cosmos/src/chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::time::Duration;
44
use ibc::core::host::types::identifiers::ChainId;
55
use ibc_client_tendermint::types::ClientState as TendermintClientState;
66
use ibc_client_tendermint::types::ConsensusState as TendermintConsensusState;
7-
use tendermint::block::Height as TmHeight;
87
use tendermint::Time as TmTime;
8+
use tendermint::block::Height as TmHeight;
99
use tendermint_rpc::HttpClient;
1010
use tokio::sync::Mutex;
1111

crates/cosmos/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
pub mod chain;
22
pub mod config;
3-
pub mod types;
3+
pub mod encoding;
4+
pub mod events;
45
pub mod keys;
5-
pub mod rpc;
6-
pub mod tx;
7-
pub mod queries;
8-
pub mod packet_queries;
9-
pub mod payload_builders;
106
pub mod message_builders;
117
pub mod packet_builders;
12-
pub mod events;
13-
pub mod encoding;
8+
pub mod packet_queries;
9+
pub mod payload_builders;
10+
pub mod queries;
11+
pub mod rpc;
12+
pub mod tx;
13+
pub mod types;

crates/cosmos/src/tx.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use async_trait::async_trait;
22

3-
use mercury_chain_traits::tx::{CanEstimateFee, CanPollTxResponse, CanQueryNonce, CanSubmitTx, HasTxTypes};
3+
use mercury_chain_traits::tx::{
4+
CanEstimateFee, CanPollTxResponse, CanQueryNonce, CanSubmitTx, HasTxTypes,
5+
};
46
use mercury_core::error::Result;
57

68
use crate::chain::CosmosChain;

0 commit comments

Comments
 (0)