-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This pull request changes the module `Cardano.Wallet.Deposit.Read` to use the types from `Cardano.Wallet.Read` and implements a minimal set of necessary follow-up adjustments. This pull request manages to remove the dependency of the `customer-deposit-wallet` on the `cardano-wallet-primitive` package. ### Issue Number ADP-3344
- Loading branch information
Showing
14 changed files
with
159 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 23 additions & 1 deletion
24
lib/customer-deposit-wallet/src/Cardano/Wallet/Deposit/Pure/UTxOHistory.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
module Cardano.Wallet.Deposit.Pure.UTxOHistory | ||
( UTxOHistory | ||
, empty | ||
, appendBlock | ||
|
||
, DeltaUTxOHistory (..) | ||
, getUTxO | ||
) where | ||
|
||
import Cardano.Wallet.DB.Store.UTxOHistory.Model | ||
import Cardano.Wallet.Deposit.Pure.UTxO.DeltaUTxO | ||
( DeltaUTxO | ||
) | ||
import Cardano.Wallet.Deposit.Pure.UTxO.UTxOHistory | ||
( UTxOHistory | ||
, appendBlock | ||
, empty | ||
, getUTxO | ||
) | ||
import Cardano.Wallet.Deposit.Read | ||
( Slot | ||
, SlotNo | ||
) | ||
|
||
-- | Changes to the UTxO history. | ||
data DeltaUTxOHistory | ||
= -- | New slot tip, changes within that block. | ||
AppendBlock SlotNo DeltaUTxO | ||
| -- | Rollback tip. | ||
Rollback Slot | ||
| -- | Move finality forward. | ||
Prune SlotNo |
Oops, something went wrong.