-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADP-3335] Add functions and mock implementations to Deposit Wallet #4527
[ADP-3335] Add functions and mock implementations to Deposit Wallet #4527
Conversation
de236a9
to
b16bb0b
Compare
b16bb0b
to
5608d1e
Compare
09d294a
to
4bd8b0b
Compare
5608d1e
to
a1b11fa
Compare
4bd8b0b
to
f06018b
Compare
a1b11fa
to
418a80f
Compare
f06018b
to
d1d58af
Compare
418a80f
to
e76c26a
Compare
d1d58af
to
0e05b55
Compare
e76c26a
to
cc51cf6
Compare
0e05b55
to
da599d2
Compare
cc51cf6
to
ce2a99a
Compare
da599d2
to
4d683d0
Compare
ce2a99a
to
2d4cf2a
Compare
@@ -50,6 +55,9 @@ import Data.Foldable | |||
import Data.List.NonEmpty | |||
( NonEmpty | |||
) | |||
import Data.Map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my suggestion: use Data.Map.Strict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it needed when importing the type Map
rather than the functions? But maybe the Semigroup
instance… 🤔
@@ -59,6 +60,7 @@ import qualified Cardano.Wallet.Primitive.Types.Tx.TxIn as W | |||
import qualified Cardano.Wallet.Primitive.Types.Tx.TxOut as W | |||
import qualified Cardano.Wallet.Primitive.Types.UTxO as W | |||
import qualified Data.ByteString as BS | |||
import qualified Data.ByteString.Char8 as B8 | |||
-- import qualified Ouroboros.Consensus.Cardano.Block as O |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope we will clean those things later... Now, not a good moment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Cardano.Wallet.Deposit.Read
is essentially a messy lumber room at the moment. 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! What about adding test skeleton for db functions? With First invariances of method combinations that should be obeyed...
4d683d0
to
f186998
Compare
2d4cf2a
to
02078e9
Compare
Thanks for your review, Pawel! 😊
Not yet. The next pull request, #4513, will specify usage scenarios and (mock) test some of these scenarios. The methods will be mainly tested on the |
02078e9
to
1c697ff
Compare
This pull request adds various functions and mock implementations to the Deposit Wallet in order to prepare the execution of user scenarios.
Comment
This pull request prepares the implementation of a mock environment for
the Deposit Wallet. In turn, this enables execution of user scenarios.
Issue Number
ADP-3335