Skip to content

Commit

Permalink
Add listTransactions function to WalletClient.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Jul 16, 2019
1 parent 7495ae4 commit bde5cce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/cli/src/Cardano/CLI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import Cardano.Launcher
, setupStateDir
)
import Cardano.Wallet.Api
( Api )
( Api, Iso8601Range (..) )
import Cardano.Wallet.Api.Server
( Listen (..) )
import Cardano.Wallet.Api.Types
Expand Down Expand Up @@ -778,6 +778,10 @@ data WalletClient t = WalletClient
:: ApiT WalletId
-> WalletPutPassphraseData
-> ClientM NoContent
, listTransactions
:: ApiT WalletId
-> Maybe (Iso8601Range "inserted-at")
-> ClientM [ApiTransaction t]
, postTransaction
:: ApiT WalletId
-> PostTransactionData t
Expand Down Expand Up @@ -818,6 +822,7 @@ walletClient =
, postWallet = _postWallet
, putWallet = _putWallet
, putWalletPassphrase = _putWalletPassphrase
, listTransactions = _listTransactions
, postTransaction = _postTransaction
, postTransactionFee = _postTransactionFee
}
Expand Down

0 comments on commit bde5cce

Please sign in to comment.