@@ -96,7 +96,7 @@ completelySynced = mkSyncPercentage 100
96
96
97
97
-- | Looks up the 'SyncPercentage' using 'getNodeInfo' from the 'WalletClient'
98
98
getSyncState
99
- :: (HasLoggerName m , MonadIO m )
99
+ :: (Monad m )
100
100
=> WalletClient m
101
101
-> m (Either ClientError SyncPercentage )
102
102
getSyncState client = do
@@ -106,7 +106,7 @@ getSyncState client = do
106
106
--------------------------------------------------------------------------------
107
107
108
108
listToEitherT
109
- :: (HasLoggerName m , CanLog m , MonadIO m )
109
+ :: (HasLoggerName m , CanLog m )
110
110
=> e -> Text -> Text -> [a ] -> ExceptT e m a
111
111
listToEitherT err errMsg successMsg as = case as of
112
112
[a] -> logInfo successMsg >> return a
@@ -120,7 +120,7 @@ runClient
120
120
runClient err m = ExceptT $ (fmap (first err)) $ fmap (fmap wrData) m
121
121
122
122
getOneAddress
123
- :: (HasLoggerName m , CanLog m , MonadIO m )
123
+ :: (HasLoggerName m , CanLog m )
124
124
=> WalletId
125
125
-> Account
126
126
-> ExceptT InitFaucetError m WalletAddress
@@ -198,7 +198,7 @@ writeCreatedWalletInfo fp cw = do
198
198
--
199
199
-- Fails with 'CouldntReadBalance'
200
200
readWalletBalance
201
- :: (HasLoggerName m , CanLog m , MonadIO m )
201
+ :: (CanLog m )
202
202
=> WalletClient m
203
203
-> PaymentSource
204
204
-> ExceptT InitFaucetError m Int64
@@ -233,7 +233,7 @@ monitorWalletBalance fEnv = do
233
233
--
234
234
-- Fails with 'BadAddress'
235
235
readReturnAddress
236
- :: (HasLoggerName m , CanLog m , MonadIO m )
236
+ :: (HasLoggerName m , CanLog m )
237
237
=> WalletClient m
238
238
-> PaymentSource
239
239
-> ExceptT InitFaucetError m (V1 Address )
0 commit comments