Skip to content
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

Add automatic mana allotment #1961

Merged
merged 74 commits into from
Feb 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
865cf5a
Add automatic mana allotment
Feb 6, 2024
13a55e1
rework
Feb 6, 2024
e3bfbf7
better loop
Feb 6, 2024
d15d9ef
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 6, 2024
2108a8c
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 6, 2024
38e7734
set mana allotment to 1 not 0
Feb 6, 2024
69b628d
Merge branch 'feat/automatic-mana-allotment' of https://github.com/io…
Feb 6, 2024
5b8988d
better error when there is insufficient mana provided
Feb 6, 2024
b0d6ae6
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 6, 2024
be1a40f
make auto mana allotment optional
Feb 7, 2024
773448b
revert some accidental changes
Feb 7, 2024
f9560a9
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 7, 2024
a5596a6
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 7, 2024
b5173e1
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 8, 2024
5a467c9
missed
Feb 8, 2024
5273d2a
rework transaction options
Feb 8, 2024
0872e4d
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 8, 2024
83fc511
improvements
Feb 8, 2024
5a88376
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 8, 2024
4fb1135
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 9, 2024
0a40797
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 9, 2024
474efa3
sort
Feb 9, 2024
d40b984
privatize
Feb 12, 2024
1f93565
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 12, 2024
a54519f
fix mana addition on newly selected inputs
Feb 12, 2024
f62195d
Merge branch 'feat/automatic-mana-allotment' of https://github.com/io…
Feb 12, 2024
5a4ff71
Allow ISA to add mana to existing outputs
Feb 12, 2024
bd49c60
better calculation
Feb 12, 2024
b8454fa
little cleanup
Feb 12, 2024
98c4308
fix slot usage and detect mana remainder more accurately
Feb 12, 2024
063d88a
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 12, 2024
5f9c4a4
add some debug logging
Feb 12, 2024
56827a8
Merge branch 'feat/automatic-mana-allotment' of https://github.com/io…
Feb 12, 2024
b8abe20
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 13, 2024
5bceb5d
rename to required
Feb 13, 2024
65a42dd
more renames
Feb 13, 2024
6a82da7
make context inputs optional
Feb 13, 2024
f19558c
remove hard coded reward index
Feb 13, 2024
4d786a5
another
Feb 13, 2024
7e8add3
Allow using account mana for allotments, fix semantic validation
Thoralf-M Feb 13, 2024
f91bf99
Add test
Thoralf-M Feb 13, 2024
97684d0
carry over previous required allotment value
Feb 13, 2024
e1d3ea1
add more tests
Feb 13, 2024
dc57b4f
simplify
Feb 13, 2024
568dc59
more simpler
Feb 13, 2024
769c55f
just build the transaction in ISA
Feb 13, 2024
b15d64c
cleanup
Feb 13, 2024
544b534
increase mana bits to fix tests
Feb 13, 2024
589b7a7
review
Feb 14, 2024
544ffb4
Set automatically transitioned account mana to zero and order mana re…
Feb 14, 2024
72dbfc0
fix python
Feb 14, 2024
5ff83da
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 14, 2024
1c84083
unused import
Feb 14, 2024
e01fad2
rename tests
Feb 14, 2024
9fdafd2
don't stack allotments
Feb 14, 2024
8529512
track allotment debt for future selected accounts
Feb 14, 2024
6ac3751
more unused imports
Feb 14, 2024
3825a41
Rework allotment
Feb 14, 2024
42d0933
skip allotment step if there are no inputs selected
Feb 14, 2024
5666e30
Loop over remainder calculations too
Feb 15, 2024
8ea3f42
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 15, 2024
6569ccf
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 15, 2024
7127d81
fix last test
Feb 15, 2024
fe02563
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 15, 2024
9fcecaa
one more creation slot usage
Feb 15, 2024
bc2a7af
only add mana to added outputs with no weird unlock conditions
Feb 15, 2024
d155b8b
merge mana and allotments
Feb 15, 2024
6e20820
include provided
Feb 15, 2024
4ba7497
fix amount sums
Feb 15, 2024
d8c9ac4
remove automatically_transitioned
Feb 15, 2024
e3b9bda
unused import
Feb 15, 2024
c24587a
rework allotment again
Feb 15, 2024
2a0efbf
fix skipping allotment
Feb 15, 2024
f193e12
Merge branch '2.0' into feat/automatic-mana-allotment
Feb 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl InputSelection {
}
}

for output in self.all_outputs() {
for output in self.non_remainder_outputs() {
thibault-martinez marked this conversation as resolved.
Show resolved Hide resolved
outputs_sum += output.amount();

if let Output::Basic(output) = output {
Expand Down
Loading