-
Notifications
You must be signed in to change notification settings - Fork 53
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 pallet reward inflation #277
Merged
Merged
Changes from 55 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
e019e26
reward trait
nanocryk 14aa1c1
reward distribution code
nanocryk 3d1793e
tests (wip)
nanocryk 9fb4f66
reward distribution tests
nanocryk 36583d3
fix test + remove warning
nanocryk d83f92e
chore: create pallet inflation-rewards and primitive tp-maths
librelois 862f19b
chore: move trait DistributeRewards in tp-traits
librelois 8463feb
ref: move AuthorNotingHook in tp-traits
librelois 8c1448c
ref: pooled-staking: use Credit for rewards
librelois 1f1dd5a
reword pallet inflation rewards
librelois 875953b
ref: use bounded vec for container chains
librelois 47a5a8f
fix existing rust tests compilation
librelois c686196
reward orchestrator chain
librelois 3368ae2
Merge branch 'master' into elois-pallet-rewards
librelois 88a55fc
add rust tests for pallet inflation-rewards
librelois a11b3df
fmt
librelois ef72074
remove dead code
nanocryk f09ff87
Merge remote-tracking branch 'origin/master' into jeremy-staking-rewa…
nanocryk 263adff
note container author only if block increase
librelois e5fff7c
Merge branch 'jeremy-staking-rewards-distribution' into elois-pallet-…
librelois 3565bb4
fmt
librelois b2d102e
Merge remote-tracking branch 'origin/master' into elois-pallet-rewards
nanocryk 595246d
cleanup merge
nanocryk d777ccc
reward author if it increases
girazoki a97b3a2
Re-design on-container-author-noted to simplify it for now
girazoki 1188dc7
Merge remote-tracking branch 'origin/master' into elois-pallet-rewards
girazoki ab0dce4
adapt to 1.1.0
girazoki 8bb84f2
fmt
girazoki e25be7d
fix merge mistakes and benchmarking
girazoki 25b0ae5
types and unitest error
girazoki 49d1028
take invulnerables into account
nanocryk 8db89fb
fmt
nanocryk bb5eb07
let's use collatorAssignment to fethc the author account
girazoki cf86006
hack around how to get the collator account to be rewarded
girazoki a1a4e6a
fix rust tests
girazoki 74e42e5
TODO: important!
girazoki 38b8fb2
Merge remote-tracking branch 'origin/master' into HEAD
girazoki dc42ba4
events for inflation rewards and benchmark for rewards
girazoki 9ce62e0
add runtime event to mock
girazoki 8eec4c5
substitute extractFee for extractFeeAuthor
girazoki b49d627
fix ts-tests and local interfaceS
girazoki c24d1c5
fix linting and fmt
girazoki 6f82135
first ts-tests dedicated to inflation
girazoki cc79907
add new parafchain bond account
girazoki 55ad901
add more test
girazoki 9109b24
fmt lint
girazoki daa03d0
Merge remote-tracking branch 'origin/master' into elois-pallet-rewards
nanocryk 347a928
wire in container rewarding
girazoki 96d4668
fmt
girazoki 5d51452
add more test, including container-chain reward
girazoki bf3d9c8
try-runtime
girazoki c264068
staking rewards tests, not through invlunerables
girazoki e84ee7d
test fixed
girazoki 4fb9ae2
a couple of tests for staking
girazoki 3be9f61
make distribute_rewards transactional (#299)
nanocryk c570d15
reward the author of the first container block
librelois 238b5ee
PR feedback
nanocryk cda81e9
compile
girazoki 323584f
Inflation rewards integration tests (#295)
nanocryk be84d2d
a few todos added and cleaning the remaining feedback
girazoki 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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.
If you don't care about the old value you don't need mem::replace