From 74e22375f65d6629532ff7febd7637f613772c2b Mon Sep 17 00:00:00 2001 From: katelyn martin Date: Wed, 28 Feb 2024 16:55:26 -0500 Subject: [PATCH] =?UTF-8?q?staking:=20=F0=9F=A7=B9=20tidy=20`validator=5Fs?= =?UTF-8?q?tore`=20imports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../validator_handler/validator_store.rs | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/crates/core/component/stake/src/component/validator_handler/validator_store.rs b/crates/core/component/stake/src/component/validator_handler/validator_store.rs index a03846109f..2d6a196db8 100644 --- a/crates/core/component/stake/src/component/validator_handler/validator_store.rs +++ b/crates/core/component/stake/src/component/validator_handler/validator_store.rs @@ -1,28 +1,20 @@ -use std::pin::Pin; - use crate::{ + component::{StateReadExt as _, MAX_VOTING_POWER}, rate::RateData, - validator::{State, Validator}, - DelegationToken, + state_key, + validator::{self, BondingState::*, State, Validator}, + DelegationToken, IdentityKey, Uptime, }; use anyhow::Result; use async_trait::async_trait; +use cnidarium::{StateRead, StateWrite}; use futures::{Future, FutureExt, TryStreamExt}; use penumbra_num::Amount; -use tendermint::PublicKey; -use validator::BondingState::*; - -use cnidarium::{StateRead, StateWrite}; use penumbra_proto::{state::future::DomainFuture, StateReadProto, StateWriteProto}; +use std::pin::Pin; +use tendermint::PublicKey; use tracing::instrument; -use crate::component::MAX_VOTING_POWER; -use crate::{ - component::StateReadExt as _, - state_key, - validator::{self}, - IdentityKey, Uptime, -}; #[async_trait] pub trait ValidatorDataRead: StateRead { async fn get_validator_info(