Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This applies a cleanup pass to the
Wallet
module including the following changes (see individual commits), mostly listed here to keep track of them for V2 changelog:Cardano
forCardano.***
modules,Pl
for everythingLedger
-y, andPl1
/Pl2
for everything that is explicitly fromPlutus.V1
orPlutus.V2
(and cannot be changed to genericLedger.***
).minAda
since the realminAda
amount per UTxO is not that trivial to determine. The information was therefore misleading. This also simplifiesInitialDistribution
. We do not issue a dedicated custom (unreliable) error anymore. We will stumble upon validation errors if we forget to provide enough lovelace per UTxO in our initial distributions.initialDistribution'
loses its prime. There was noinitialDistribution
(no prime) anyway. Also the field accessor forInitialDistribution
has a more conventional (and less misleading) name.toPKHMap
andvaluesForWallet
.Pl.MockPrivateKey
because no constructor or field accessor is exposed to do so. Since we have decided not to rely on explicit export lists in cooked, part of that hack has been moved away from the top-level and the weird-to-export-everywhereplease
field accessor is gone. See issue Get rid of the hack to retrieve private keys inCooked.Wallet.walletStakingSK
#255: we need to make a PR to expose the info we need. We could also investigate usingSolo
fromData.Tuple
inbase
instead ofHACK
if at some point we update our index state incabal.project
and require at leastbase 4.16