-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reward trait * reward distribution code * tests (wip) * reward distribution tests * fix test + remove warning * chore: create pallet inflation-rewards and primitive tp-maths * chore: move trait DistributeRewards in tp-traits * ref: move AuthorNotingHook in tp-traits * ref: pooled-staking: use Credit for rewards * reword pallet inflation rewards * ref: use bounded vec for container chains * fix existing rust tests compilation * reward orchestrator chain * add rust tests for pallet inflation-rewards * fmt * remove dead code Co-authored-by: tmpolaczyk <[email protected]> * note container author only if block increase * fmt * cleanup merge * reward author if it increases * Re-design on-container-author-noted to simplify it for now * adapt to 1.1.0 * fmt * fix merge mistakes and benchmarking * types and unitest error * take invulnerables into account * fmt * let's use collatorAssignment to fethc the author account * hack around how to get the collator account to be rewarded * fix rust tests * TODO: important! * events for inflation rewards and benchmark for rewards * add runtime event to mock * substitute extractFee for extractFeeAuthor * fix ts-tests and local interfaceS * fix linting and fmt * first ts-tests dedicated to inflation * add new parafchain bond account * add more test * fmt lint * wire in container rewarding * fmt * add more test, including container-chain reward * try-runtime * staking rewards tests, not through invlunerables * test fixed * a couple of tests for staking * make distribute_rewards transactional (#299) * make distribute_rewards transactional * fmt --------- Co-authored-by: girazoki <[email protected]> * reward the author of the first container block * PR feedback * compile * Inflation rewards integration tests (#295) * test reward distribution * ensure it still works even with key change * find_map + fmt * fmt * remove dbg! * a few todos added and cleaning the remaining feedback --------- Co-authored-by: nanocryk <[email protected]> Co-authored-by: tmpolaczyk <[email protected]> Co-authored-by: girazoki <[email protected]>
- Loading branch information
1 parent
8f95799
commit 84d3d97
Showing
57 changed files
with
2,873 additions
and
622 deletions.
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.