Skip to content

Commit a3db4c9

Browse files
committed
formatting again
1 parent 5970af1 commit a3db4c9

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

packages/sei-cosmwasm/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub use query::{
1515
DenomAuthorityMetadataResponse, DenomsFromCreatorResponse, DexTwapsResponse, EpochResponse,
1616
EvmAddressResponse, ExchangeRatesResponse, GetLatestPriceResponse, GetOrderByIdResponse,
1717
GetOrdersResponse, OracleTwapsResponse, OrderSimulationResponse, PriceResponse,
18-
SeiAddressResponse, SeiQuery, SeiQueryWrapper, StaticCallResponse
18+
SeiAddressResponse, SeiQuery, SeiQueryWrapper, StaticCallResponse,
1919
};
2020
pub use route::SeiRoute;
2121
pub use sei_types::{

packages/sei-cosmwasm/src/querier.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ use crate::query::{
77
Erc721NameSymbolResponse, Erc721OwnerResponse, Erc721UriResponse, ErcPayloadResponse,
88
EvmAddressResponse, ExchangeRatesResponse, GetLatestPriceResponse, GetOrderByIdResponse,
99
GetOrdersResponse, OracleTwapsResponse, OrderSimulationResponse, SeiAddressResponse, SeiQuery,
10-
SeiQueryWrapper,StaticCallResponse
10+
SeiQueryWrapper, StaticCallResponse,
1111
};
1212
use crate::route::SeiRoute;
13-
use crate::{Order};
13+
use crate::Order;
1414

1515
/// This is a helper wrapper to easily use our custom queries
1616
pub struct SeiQuerier<'a> {

packages/sei-integration-tests/src/module.rs

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
use anyhow::Result as AnyResult;
2+
use base64::{engine::general_purpose, Engine as _};
23
use cosmwasm_std::{
34
from_json, to_json_binary, Addr, Api, BankMsg, Binary, BlockInfo, Coin, CosmosMsg, CustomQuery,
45
Decimal, Querier, Storage, Uint128, Uint64,
56
};
67
use cw_multi_test::{AppResponse, BankSudo, CosmosRouter, Module, SudoMsg};
78
use schemars::JsonSchema;
8-
use sei_cosmwasm::{Cancellation, DenomOracleExchangeRatePair, DexPair, DexTwap, DexTwapsResponse, Epoch, EpochResponse, EvmAddressResponse, ExchangeRatesResponse, GetOrderByIdResponse, GetOrdersResponse, OracleTwap, OracleTwapsResponse, Order, OrderResponse, OrderSimulationResponse, OrderStatus, PositionDirection, SeiAddressResponse, SeiMsg, SeiQuery, SeiQueryWrapper, StaticCallResponse, SudoMsg as SeiSudoMsg};
9+
use sei_cosmwasm::{
10+
Cancellation, DenomOracleExchangeRatePair, DexPair, DexTwap, DexTwapsResponse, Epoch,
11+
EpochResponse, EvmAddressResponse, ExchangeRatesResponse, GetOrderByIdResponse,
12+
GetOrdersResponse, OracleTwap, OracleTwapsResponse, Order, OrderResponse,
13+
OrderSimulationResponse, OrderStatus, PositionDirection, SeiAddressResponse, SeiMsg, SeiQuery,
14+
SeiQueryWrapper, StaticCallResponse, SudoMsg as SeiSudoMsg,
15+
};
916
use serde::de::DeserializeOwned;
1017
use std::{
1118
collections::HashMap,
1219
fmt::Debug,
1320
ops::{Add, Div, Mul, Sub},
1421
};
15-
use base64::{Engine as _, engine::{general_purpose}};
1622

1723
pub struct SeiModule {
1824
epoch: Epoch,
@@ -186,9 +192,7 @@ impl Module for SeiModule {
186192
id,
187193
);
188194
}
189-
SeiQuery::StaticCall { .. } => {
190-
Ok(to_json_binary(&get_static_call_response())?)
191-
}
195+
SeiQuery::StaticCall { .. } => Ok(to_json_binary(&get_static_call_response())?),
192196
SeiQuery::GetEvmAddress { sei_address } => {
193197
Ok(to_json_binary(&get_evm_address(sei_address))?)
194198
}
@@ -655,7 +659,7 @@ fn get_epoch(epoch: Epoch) -> EpochResponse {
655659

656660
fn get_static_call_response() -> StaticCallResponse {
657661
StaticCallResponse {
658-
encoded_data: general_purpose::STANDARD.encode(b"static call response")
662+
encoded_data: general_purpose::STANDARD.encode(b"static call response"),
659663
}
660664
}
661665

0 commit comments

Comments
 (0)