From 563af2cfd7f9950dbe6645363f080c28f9bdfc24 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 27 Jun 2023 20:51:18 +0200 Subject: [PATCH] Minor cleanup --- .../provider/external-staking/src/contract.rs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/contracts/provider/external-staking/src/contract.rs b/contracts/provider/external-staking/src/contract.rs index 1bcebe83..c4aeda2d 100644 --- a/contracts/provider/external-staking/src/contract.rs +++ b/contracts/provider/external-staking/src/contract.rs @@ -1,32 +1,31 @@ use cosmwasm_std::{ - coin, ensure, ensure_eq, from_binary, Addr, Binary, Coin, Decimal, DepsMut, Env, Event, Order, - Response, StdResult, Storage, Uint128, Uint256, WasmMsg, + coin, ensure, ensure_eq, from_binary, to_binary, Addr, Binary, Coin, Decimal, DepsMut, Env, + Event, IbcMsg, Order, Response, StdResult, Storage, Uint128, Uint256, WasmMsg, }; use cw2::set_contract_version; use cw_storage_plus::{Bounder, Item, Map}; use cw_utils::PaymentError; + +use sylvia::contract; +use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx}; + use mesh_apis::cross_staking_api::{self, CrossStakingApi}; use mesh_apis::ibc::AddValidator; +use mesh_apis::ibc::ProviderPacket; use mesh_apis::local_staking_api::MaxSlashResponse; use mesh_apis::vault_api::VaultApiHelper; use mesh_sync::Lockable; +use mesh_sync::Tx; use crate::crdt::CrdtState; -use crate::ibc::{packet_timeout, IBC_CHANNEL}; -use cosmwasm_std::{to_binary, IbcMsg}; -use mesh_apis::ibc::ProviderPacket; - -use sylvia::contract; -use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx}; - use crate::error::ContractError; +use crate::ibc::{packet_timeout, IBC_CHANNEL}; use crate::msg::{ AllTxsResponse, AuthorizedEndpointResponse, ConfigResponse, IbcChannelResponse, ListRemoteValidatorsResponse, PendingRewards, ReceiveVirtualStake, StakeInfo, StakesResponse, TxResponse, }; use crate::state::{Config, Distribution, Stake}; -use mesh_sync::Tx; pub const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME"); pub const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");