-
Notifications
You must be signed in to change notification settings - Fork 302
Reenable alpha fees #2353
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
Merged
Merged
Reenable alpha fees #2353
Changes from 39 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
68525d9
Unignore alpha fee tests
gztensor 7481c9a
Real swap when withdrawing alpha tx fees
gztensor 01c8dff
fmt
gztensor b5416fe
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 136f007
Add drafty storage items for high precision alpha share pool
gztensor 4c8cf2a
Add bigmath for share pool
gztensor 1d4221f
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 49dc08b
Make SafeFloat exponent work like m*10^e, allow negative exponents
gztensor 3716b0c
Fix safe float max exp type
gztensor 054abb1
Update lencode
gztensor b523ff7
Fix safefloat addition and mantissa normalization, add tests
gztensor 2151c1f
Add more test cases for safefloat add tests
gztensor e138732
fmt
gztensor f616e11
Add more test cases for safefloat add
gztensor cbb41d1
Add safefloat tests for div and mul_div
gztensor 60f7153
Handle overflows in safefloat
gztensor 9360f92
fmt
gztensor b54f38d
Add THS and Alpha migration and the test
gztensor 22e2538
Test actual coldkey alphas in share pool migration
gztensor 2883569
Add real-life scenario test when 7 TAO was lost due to precision loss…
gztensor 323e0f3
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 1206016
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 36af1d8
fix zstd error
sam0x17 d690e6b
Update llvm installation instructions in readme
gztensor dbbc3a9
Fix test_sets_a_lower_value_clears_small_nominations
gztensor 0ce0a19
Fix test_recycle_precision and test_burn_precision
gztensor a6a624e
Fix test_share_based_staking_denominator_precision
gztensor aaeaf16
Fix test_remove_99_9991_per_cent_stake_removes_all
gztensor d83f8a4
Fix test_coldkey_delegations
gztensor 6154251
Fix clippy
gztensor 4b19e1a
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 282cbf5
Spec version bump
gztensor 919dc1b
Add lazy migration and fix remaining tests
gztensor d517a2f
Remove fn alpha_iter_keys
gztensor daf0b54
Fix get_alpha_staked_validators precompile, fix swapping alpha in swa…
gztensor cba4f41
Add alpha/ths v2 tests for swap hotkey
gztensor b4ba4a3
Add tests for real (non-mock) sharepool data operations
gztensor 5457035
Fix clippy
gztensor 36b3bc1
Use sfser_from_u64 in tests
gztensor d7f8ac9
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor ace8198
Deduplicate alpha values in getters
gztensor e60183a
Move zstd patches out to a separate repo
gztensor 5d9d3bb
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 5b4b8c2
Remove unused imports
gztensor 2c12f25
Add TODO reminder for populate_root_coldkey_staking_maps_v2 removal
gztensor 314f443
spec bump
gztensor 472c923
Integration with balancer
gztensor 0214730
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 0bf0cda
Spec bump
gztensor ffeba36
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 96b3f80
Merge devnet-ready
gztensor 4898c13
Cleanup merge
gztensor af77dd4
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 62ee40d
Merge cleanup
gztensor 97be3d2
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor b210097
Add alpha fee event and alpha fee bookkeeping tests
ppolewicz 418d607
Format transaction-fee alpha fee merge resolution
ppolewicz 2c3eb2a
Replace synthetic alpha-fee event test with real extrinsic assertions
ppolewicz 646897e
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor d0bbcc8
Cleanup merge, tests failing
gztensor 3d5310c
Fix tests and clippy
gztensor 9bb4853
Apply freeze_struct to SafeFloatSerializable
gztensor 5001582
Credit tao swapped from alpha fees to block author
gztensor 5105316
Fix benchmarks
gztensor 168a50d
Spec bump
gztensor 4df4fd6
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 3b26b88
Cleanup merge, still in progress
gztensor 51c95be
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor de44a5c
Add broad range tests for SafeFloat
gztensor 8cb0809
Cleanup patches
gztensor d1dced9
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor fcc7624
Fix build and clippy
gztensor 8deddfe
Spec bump
gztensor 68b257f
Patch weights
gztensor eca6feb
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor f081968
Implement SafeFloat with U256
gztensor 23bb80a
Remove zstd from dependencies
gztensor d5506e8
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor 99e509d
Cleanup merge
gztensor ba8869b
Patch weights, bump spec
gztensor e687d43
Merge branch 'devnet-ready' into feat/re-enable-alpha-fees
gztensor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Why do we need this?
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.
In case if slow migration doesn't finish by the time this PR is on mainnet, this function may get used. Leaving in for now, but will mark it with a "TODO" to remove later.