-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(dart/catalyst_cardano_serialization): initial implementation of dynamic coin selection algorithm #1684
base: main
Are you sure you want to change the base?
Conversation
…dynamic coin selection algorithm (input-output-hk#1520)
…on and fix various issues
…s for better clarity and reduced ambiguity
…roperly check for available inputs
…lyst-voices into feature/dynamic-coin-selection
@ilap thank you for the contribution, will review it later today. |
No worries, thx. But, I am going to refactor/simplify the coin selection logic in this week, as the last two commits broke the property-based tests. |
...st_voices/packages/libs/catalyst_cardano_serialization/test/builders/input_builder_test.dart
Outdated
Show resolved
Hide resolved
...st_voices/packages/libs/catalyst_cardano_serialization/test/builders/input_builder_test.dart
Outdated
Show resolved
Hide resolved
...st_voices/packages/libs/catalyst_cardano_serialization/test/builders/input_builder_test.dart
Outdated
Show resolved
Hide resolved
...st_voices/packages/libs/catalyst_cardano_serialization/test/builders/input_builder_test.dart
Outdated
Show resolved
Hide resolved
...st_voices/packages/libs/catalyst_cardano_serialization/test/builders/input_builder_test.dart
Show resolved
Hide resolved
...yst_voices/packages/libs/catalyst_cardano_serialization/test/test_utils/selection_utils.dart
Outdated
Show resolved
Hide resolved
...yst_voices/packages/libs/catalyst_cardano_serialization/test/test_utils/selection_utils.dart
Outdated
Show resolved
Hide resolved
...yst_voices/packages/libs/catalyst_cardano_serialization/test/test_utils/selection_utils.dart
Outdated
Show resolved
Hide resolved
The spell checker is complaining about these issues:
The ones that are not typos should be added to |
…ed tests and improve code readability
…lyst-voices into feature/dynamic-coin-selection
Thx, will go through all of them soon. |
…s, use final/enum, resolve typos
The changes from this branch are causing the following error in one of the dependent packages (but I think it's an issue with the serializing package): To reproduce:
On current |
…c, normalize balance, and refine asset mapping in input handling
Hey @dtscalac, thanks for the heads-up! My latest commit should fix this. The main issue was that the output fee calculation ( Can you give it another shot and see if everything works now? |
…saction fee calculation
… calculation by removing unnecessary CBOR length adjustment
…raction and improve fake witness set generation
…lic constants for easier usage
Hey @dtscalac , Here are some suggestions:
|
Description
This PR introduces the initial implementation of a coin selection algorithm in the
TransactionBuilder
. The algorithm automatically selects the set of unspent transaction outputs (UTXOs) for constructing a transaction.It aims to minimise transaction fees and improve overall efficiency.
Key changes include:
Related Issue(s)
Resolves #1520
Breaking Changes
There are no breaking changes in this pull request.
Screenshots
N/A
Related Pull Requests
N/A
Please confirm the following checks