Skip to content

Commit

Permalink
Add getBIP32PathsForOwnedInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed May 2, 2024
1 parent 39ddfdc commit cc51cf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/customer-deposit-wallet/src/Cardano/Wallet/Deposit/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module Cardano.Wallet.Deposit.IO

-- ** Writing to the blockchain
, createPayment
, getBIP32PathsForOwnedInputs
) where

import Prelude
Expand Down Expand Up @@ -203,6 +204,11 @@ createPayment
createPayment a w =
Wallet.createPayment a <$> readWalletState w

getBIP32PathsForOwnedInputs
:: Write.TxBody -> WalletInstance -> IO [()]
getBIP32PathsForOwnedInputs a w =
Wallet.getBIP32PathsForOwnedInputs a <$> readWalletState w

{-----------------------------------------------------------------------------
Logging
------------------------------------------------------------------------------}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module Cardano.Wallet.Deposit.Pure

-- ** Writing to the blockchain
, createPayment
, getBIP32PathsForOwnedInputs

, addTxSubmission
, listTxsInSubmission
Expand Down Expand Up @@ -211,6 +212,9 @@ createPayment = undefined
-- needs balanceTx
-- needs to sign the transaction

getBIP32PathsForOwnedInputs :: Write.TxBody -> WalletState -> [()]
getBIP32PathsForOwnedInputs = undefined

addTxSubmission :: Write.Tx -> WalletState -> WalletState
addTxSubmission _tx _w = undefined

Expand Down

0 comments on commit cc51cf6

Please sign in to comment.