|
1 | | -{-# LANGUAGE DataKinds #-} |
2 | | -{-# LANGUAGE OverloadedStrings #-} |
| 1 | +{-# LANGUAGE DataKinds #-} |
| 2 | +{-# LANGUAGE OverloadedStrings #-} |
3 | 3 | {-# LANGUAGE ScopedTypeVariables #-} |
4 | | -module Cardano.WalletClient where |
| 4 | +{-# OPTIONS_GHC -Wall #-} |
| 5 | +module Cardano.WalletClient ( |
| 6 | + withdraw |
| 7 | + ) where |
5 | 8 | -- ( export |
6 | 9 | -- , export |
7 | 10 | -- ) where |
8 | 11 |
|
9 | | -import Crypto.Hash (Blake2b, Blake2b_224, Blake2b_256, Digest) |
10 | | -import Data.ByteString (ByteString) |
11 | | -import qualified Data.ByteString.Base16 as Base16 |
12 | | -import qualified Data.ByteArray as BA |
13 | | --- import qualified Serokell.Util.Base16 as Base16 |
14 | | -import qualified Crypto.Hash as CryptoHash |
15 | | -import Control.Lens |
16 | | -import Control.Monad.Reader |
17 | | -import Data.Text (Text) |
18 | | -import Data.List.NonEmpty (NonEmpty(..)) |
19 | | -import Data.Text.Buildable (build) |
20 | 12 | import Cardano.Faucet.Types |
21 | | -import Cardano.Wallet.API.V1.Types (Payment (..), PaymentDistribution (..), |
22 | | - PaymentSource (..), V1(..), mkPassPhrase) |
23 | | --- import Cardano.Wallet.API.V1.Types.V1 (Coin (..), Address(..)) |
24 | | -import Cardano.Wallet.Client (Resp, Transaction, WalletClient (..), WalletResponse (..), |
25 | | - liftClient) |
26 | | -import Pos.Wallet.Web.Methods.Payment (newPayment) |
27 | | -import Pos.Core (Coin (..), Address(..)) |
28 | | -import Pos.Crypto.Signing (PassPhrase(..)) |
29 | | -import Pos.Wallet.Web.ClientTypes.Types (Addr (..), CId (..)) |
| 13 | +import Cardano.Wallet.API.V1.Types (Payment (..), PaymentDistribution (..), V1 (..)) |
| 14 | +import Cardano.Wallet.Client (Resp, Transaction, WalletClient (..), liftClient) |
| 15 | +import Control.Lens |
| 16 | +import Crypto.Hash (Blake2b_256, Digest) |
| 17 | +import qualified Crypto.Hash as CryptoHash |
| 18 | +import qualified Data.ByteArray as BA |
| 19 | +import Data.ByteString (ByteString) |
| 20 | +import Data.List.NonEmpty (NonEmpty (..)) |
| 21 | +import Pos.Core (Address (..), Coin (..)) |
| 22 | +import Pos.Crypto.Signing (PassPhrase) |
| 23 | + |
30 | 24 |
|
31 | 25 |
|
32 | 26 | withdraw :: (MonadFaucet c m) => V1 Address -> V1 Coin -> Resp m Transaction |
|
0 commit comments