Skip to content

Commit 2c9a59a

Browse files
committed
chore: refmt again
1 parent 0ceb6f8 commit 2c9a59a

File tree

71 files changed

+237
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+237
-207
lines changed

cosmwasm/ibc-union/app/ucs00-pingpong/src/contract.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
use cosmwasm_schema::cw_serde;
22
#[cfg(not(feature = "library"))]
33
use cosmwasm_std::entry_point;
4-
use cosmwasm_std::{wasm_execute, DepsMut, Env, MessageInfo, Response, StdError};
4+
use cosmwasm_std::{DepsMut, Env, MessageInfo, Response, StdError, wasm_execute};
55
use ibc_union_msg::{module::IbcUnionMsg, msg::MsgWriteAcknowledgement};
66
use ibc_union_spec::Timestamp;
77

88
use crate::{
9+
ContractError,
910
msg::{ExecuteMsg, InitMsg, UCS00PingPong},
1011
state::CONFIG,
11-
ContractError,
1212
};
1313

1414
pub const PROTOCOL_VERSION: &str = "ucs00-pingpong-1";

cosmwasm/ibc-union/app/ucs00-pingpong/src/msg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use ethabi::{ParamType, Token};
33
use ibc_union_msg::msg::MsgSendPacket;
44
use ibc_union_spec::{ChannelId, Duration, Timestamp};
55

6-
use crate::{state::Config, ContractError};
6+
use crate::{ContractError, state::Config};
77

88
#[cw_serde]
99
pub struct UCS00PingPong {
@@ -17,7 +17,7 @@ impl UCS00PingPong {
1717
let values = ethabi::decode(&[ParamType::Bool /*ParamType::Int(64)*/], bz.as_ref())
1818
.map_err(|_| ContractError::EthAbiDecoding)?;
1919
match &values[..] {
20-
&[Token::Bool(ping),/* Token::Int(timeout) */] => Ok(UCS00PingPong {
20+
&[Token::Bool(ping) /* Token::Int(timeout) */] => Ok(UCS00PingPong {
2121
ping,
2222
// counterparty_timeout: timeout.as_u64(),
2323
}),

cosmwasm/ibc-union/lightclient/linea/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ use cosmwasm_std::{Deps, DepsMut, Env};
22
use ethereum_light_client::client::{canonicalize_stored_value, check_commitment_key};
33
use gnark_mimc::new_mimc_constants_bls12_377;
44
use ics008_wasm_client::{
5+
IbcClient, IbcClientError, Status, StorageState,
56
storage_utils::{
67
read_client_state, read_consensus_state, save_client_state, save_consensus_state,
78
update_client_state,
89
},
9-
IbcClient, IbcClientError, Status, StorageState,
1010
};
1111
use linea_light_client_types::{
1212
client_state::ClientState, consensus_state::ConsensusState, header::Header,
1313
};
1414
use unionlabs::{
15-
cosmwasm::wasm::union::custom_query::{query_consensus_state, UnionCustomQuery},
15+
cosmwasm::wasm::union::custom_query::{UnionCustomQuery, query_consensus_state},
1616
encoding::{DecodeAs, Proto},
1717
ethereum::keccak256,
1818
ibc::{

cosmwasm/ibc-union/lightclient/linea/src/contract.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use cosmwasm_std::{entry_point, DepsMut, Env, MessageInfo, Response};
1+
use cosmwasm_std::{DepsMut, Env, MessageInfo, Response, entry_point};
22
use ics008_wasm_client::{
3-
define_cosmwasm_light_client_contract,
3+
CustomQueryOf, InstantiateMsg, define_cosmwasm_light_client_contract,
44
storage_utils::{save_proto_client_state, save_proto_consensus_state},
5-
CustomQueryOf, InstantiateMsg,
65
};
76
use linea_light_client_types::ClientState;
87
use protos::ibc::lightclients::wasm::v1::{

cosmwasm/ibc-union/lightclient/movement/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use cosmwasm_std::{Addr, Empty};
22
use ibc_union_light_client::{
3-
spec::Timestamp, ClientCreationResult, IbcClient, IbcClientCtx, IbcClientError, StateUpdate,
3+
ClientCreationResult, IbcClient, IbcClientCtx, IbcClientError, StateUpdate, spec::Timestamp,
44
};
55
use ibc_union_msg::lightclient::Status;
66
use movement_light_client_types::{

cosmwasm/ibc-union/lightclient/movement/src/contract.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
use cosmwasm_std::{entry_point, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
1+
use cosmwasm_std::{Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult, entry_point};
22
use frissitheto::UpgradeMsg;
33
use ibc_union_light_client::{
4-
msg::{InitMsg, QueryMsg},
54
IbcClientError,
5+
msg::{InitMsg, QueryMsg},
66
};
77

88
use crate::client::MovementLightClient;
99

1010
#[cfg_attr(not(feature = "library"), entry_point)]
1111
pub fn instantiate(_: DepsMut, _: Env, _: MessageInfo, _: ()) -> StdResult<Response> {
12-
panic!("this contract cannot be instantiated directly, but must be migrated from an existing instantiated contract.");
12+
panic!(
13+
"this contract cannot be instantiated directly, but must be migrated from an existing instantiated contract."
14+
);
1315
}
1416

1517
#[entry_point]

cosmwasm/ibc-union/lightclient/scroll/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use cosmwasm_std::Empty;
2-
use ethereum_light_client::client::{check_commitment_key, EthereumLightClient};
2+
use ethereum_light_client::client::{EthereumLightClient, check_commitment_key};
33
use ethereum_light_client_types::StorageProof;
44
use ibc_union_light_client::{IbcClient, IbcClientCtx, IbcClientError};
55
use ibc_union_msg::lightclient::Status;

cosmwasm/ibc-union/lightclient/scroll/src/contract.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use cosmwasm_std::{entry_point, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
1+
use cosmwasm_std::{Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult, entry_point};
22
use ibc_union_light_client::{
3-
msg::{InstantiateMsg, QueryMsg},
43
IbcClientError,
4+
msg::{InstantiateMsg, QueryMsg},
55
};
66

77
use crate::client::ScrollLightClient;

cosmwasm/ibc-union/lightclient/state-lens-ics23-smt/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use ibc_union_light_client::{
44
ClientCreationResult, IbcClient, IbcClientCtx, IbcClientError, StateUpdate,
55
};
66
use ibc_union_msg::lightclient::{Status, VerifyCreationResponseEvent};
7-
use ibc_union_spec::{path::ConsensusStatePath, Timestamp};
7+
use ibc_union_spec::{Timestamp, path::ConsensusStatePath};
88
use movement_light_client_types::ConsensusState as L2ConsensusState;
99
use state_lens_ics23_smt_light_client_types::{ClientState, ConsensusState};
1010
use state_lens_light_client_types::Header;

cosmwasm/ibc-union/lightclient/state-lens-ics23-smt/src/contract.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ use cosmwasm_std::entry_point;
33
use cosmwasm_std::{Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult};
44
use frissitheto::UpgradeMsg;
55
use ibc_union_light_client::{
6-
msg::{InitMsg, QueryMsg},
76
IbcClientError,
7+
msg::{InitMsg, QueryMsg},
88
};
99

1010
use crate::client::StateLensIcs23SmtLightClient;
1111

1212
#[cfg_attr(not(feature = "library"), entry_point)]
1313
pub fn instantiate(_: DepsMut, _: Env, _: MessageInfo, _: ()) -> StdResult<Response> {
14-
panic!("this contract cannot be instantiated directly, but must be migrated from an existing instantiated contract.");
14+
panic!(
15+
"this contract cannot be instantiated directly, but must be migrated from an existing instantiated contract."
16+
);
1517
}
1618

1719
#[cfg_attr(not(feature = "library"), entry_point)]

0 commit comments

Comments
 (0)