@@ -205,8 +205,6 @@ import Pos.Infra.Util.LogSafe (BuildableSafeGen (..), SecureLog (..),
205
205
buildSafe , buildSafeList , buildSafeMaybe ,
206
206
deriveSafeBuildable , plainOrSecureF )
207
207
import Pos.Util.Servant (Flaggable (.. ))
208
- import Pos.Wallet.Web.ClientTypes.Instances ()
209
- import qualified Pos.Wallet.Web.State.Storage as OldStorage
210
208
import Test.Pos.Core.Arbitrary ()
211
209
212
210
-- | Declare generic schema, while documenting properties
@@ -911,31 +909,31 @@ instance ToSchema EstimatedCompletionTime where
911
909
)
912
910
)
913
911
914
-
915
- newtype SyncThroughput = SyncThroughput (MeasuredIn 'BlocksPerSecond OldStorage. SyncThroughput )
912
+ newtype SyncThroughput
913
+ = SyncThroughput (MeasuredIn 'BlocksPerSecond Core. BlockCount )
916
914
deriving (Show , Eq )
917
915
918
916
mkSyncThroughput :: Core. BlockCount -> SyncThroughput
919
- mkSyncThroughput = SyncThroughput . MeasuredIn . OldStorage. SyncThroughput
917
+ mkSyncThroughput = SyncThroughput . MeasuredIn
920
918
921
919
instance Ord SyncThroughput where
922
- compare (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount b1) )))
923
- (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount b2) ))) =
920
+ compare (SyncThroughput (MeasuredIn (Core. BlockCount b1)))
921
+ (SyncThroughput (MeasuredIn (Core. BlockCount b2))) =
924
922
compare b1 b2
925
923
926
924
instance Arbitrary SyncThroughput where
927
- arbitrary = SyncThroughput . MeasuredIn . OldStorage. SyncThroughput <$> arbitrary
925
+ arbitrary = SyncThroughput . MeasuredIn <$> arbitrary
928
926
929
927
deriveSafeBuildable ''SyncThroughput
930
928
instance BuildableSafeGen SyncThroughput where
931
- buildSafeGen _ (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount blocks) ))) = bprint (" {"
929
+ buildSafeGen _ (SyncThroughput (MeasuredIn (Core. BlockCount blocks))) = bprint (" {"
932
930
% " quantity=" % build
933
931
% " unit=blocksPerSecond"
934
932
% " }" )
935
933
blocks
936
934
937
935
instance ToJSON SyncThroughput where
938
- toJSON (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount blocks) ))) =
936
+ toJSON (SyncThroughput (MeasuredIn (Core. BlockCount blocks))) =
939
937
object [ " quantity" .= toJSON blocks
940
938
, " unit" .= String " blocksPerSecond"
941
939
]
0 commit comments