-
Notifications
You must be signed in to change notification settings - Fork 212
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
Reuse balance transaction in construct transaction #3553
Merged
iohk-bors
merged 27 commits into
master
from
paweljakubas/adp-2257/reuse-balance-transaction-in-construct-transaction
Nov 21, 2022
Merged
Reuse balance transaction in construct transaction #3553
iohk-bors
merged 27 commits into
master
from
paweljakubas/adp-2257/reuse-balance-transaction-in-construct-transaction
Nov 21, 2022
Commits on Nov 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bb13c9d - Browse repository at this point
Copy the full SHA bb13c9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f518541 - Browse repository at this point
Copy the full SHA f518541View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10b7ad2 - Browse repository at this point
Copy the full SHA 10b7ad2View commit details -
Configuration menu - View commit details
-
Copy full SHA for de2b3c1 - Browse repository at this point
Copy the full SHA de2b3c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71fa11b - Browse repository at this point
Copy the full SHA 71fa11bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d45589 - Browse repository at this point
Copy the full SHA 5d45589View commit details -
Configuration menu - View commit details
-
Copy full SHA for 530b0d6 - Browse repository at this point
Copy the full SHA 530b0d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c843c06 - Browse repository at this point
Copy the full SHA c843c06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e70871 - Browse repository at this point
Copy the full SHA 7e70871View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa61a6d - Browse repository at this point
Copy the full SHA aa61a6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19101f5 - Browse repository at this point
Copy the full SHA 19101f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1001601 - Browse repository at this point
Copy the full SHA 1001601View commit details -
Make inner functions of
constructTransaction
more concise.Use `LambdaCase` instead of repeating patterns. Use `Coin.fromQuantity` instead of `fromIntegral`.
Configuration menu - View commit details
-
Copy full SHA for 45e344f - Browse repository at this point
Copy the full SHA 45e344fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d32f3b6 - Browse repository at this point
Copy the full SHA d32f3b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34fcc5e - Browse repository at this point
Copy the full SHA 34fcc5eView commit details -
Match all cases in function
removeDummyInput
.This removes the incomplete pattern match warnings.
Configuration menu - View commit details
-
Copy full SHA for e5d9c95 - Browse repository at this point
Copy the full SHA e5d9c95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bdee5a - Browse repository at this point
Copy the full SHA 4bdee5aView commit details -
Simplify type of
Cardano.Wallet.constructTransaction
.The function `Cardano.Wallet.constructTransaction` is only ever called with a `Left PreSelection`, and never called with a `Right Selection`. Therefore, we can simplify the selection argument type from `Either PreSelection Selection` to just `PreSelection`.
Configuration menu - View commit details
-
Copy full SHA for 20fa2ff - Browse repository at this point
Copy the full SHA 20fa2ffView commit details -
Move type
PreSelection
toCardano.Wallet.Transaction
.This helper type is only used by the `constructTransaction` and `mkUnsignedTx` functions, and not used by anything within the `CoinSelection` module hierarchy.
Configuration menu - View commit details
-
Copy full SHA for cd4314f - Browse repository at this point
Copy the full SHA cd4314fView commit details -
Tweak retrospective computation of change & outs
Without this change integration tests would fail e.g. where: ```pseudo-code constructTx paymentTo addr1 (0 ada) | | V Tx output: addr1 (1 ada) -- min ada, set automatically output: addr2 (9 ada) -- change ``` as we'd believe both outputs in the resuling tx were change -- neither of them exists in the original output list. If there are 'n' outputs in the original unbalanced tx, we will with this commit instead judge that the first 'n' are "outputs" and that the ones after that are all change. While this makes assumptions about how balanceTx appends outputs, it is more importantly ressilient to outputs being modified, like with the `increaseZeroAdaOutputs` feature.
Configuration menu - View commit details
-
Copy full SHA for d41e258 - Browse repository at this point
Copy the full SHA d41e258View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8be3361 - Browse repository at this point
Copy the full SHA 8be3361View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba55d2c - Browse repository at this point
Copy the full SHA ba55d2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ddaabb9 - Browse repository at this point
Copy the full SHA ddaabb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5b73df - Browse repository at this point
Copy the full SHA d5b73dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9685c5c - Browse repository at this point
Copy the full SHA 9685c5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96c467b - Browse repository at this point
Copy the full SHA 96c467bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6473ee4 - Browse repository at this point
Copy the full SHA 6473ee4View commit details
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.