-
Notifications
You must be signed in to change notification settings - Fork 143
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
Move event deposits into delegated storage setters #163
Conversation
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.
We should add a check to each test for these calls that each event is emitted, as expected.
This was from ToB feedback
This is true, and is the standard for pallets from Paritytech. They have some code in the collective pallet for checking emitted event history which is super helpful. |
Love that this is being worked on so promptly after I mentioned it in Discord. This will make indexing the chain much nicer! |
* add macro to check events emitted * use macro for emission set test
* Add motion duration argument to Collective::propose with minimum duration * Update CouncilMotionDuration 6 DAYS -> 12 HOURS * Up spec_version -> 127 * Fix testing and benchmarks for propose change and auto threshold * 🤖 🧈 Reformat source code * Remove husky hooks for pre-push, pre-commit, post-commit (#162) * Prevent unstake call from allowing zero amount (#165) * Remove senate instance of collective pallet (#166) * Add scheduler pallet to runtime (#164) * Add scheduler pallet to runtime * Update runtime/src/lib.rs Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> --------- Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * Remove unused validator-related hyperparameters (#167) * Fix PrivilegeCmp invalid origin enum in runtime * Cargo fix run, eliminating all compiler warnings (#169) * Up DefaultWeightsSetRateLimit -> 100 (#168) * Up DefaultWeightsSetRateLimit -> 100 * Fix weight rate limit tests * Run cargo fmt on workspace (#170) * Emergency fix for block_step when dealing with empty networks * Decrease max weight limit (#149) * update version key for netuid 1 * decrease max weight limit * Update hyperparameters.md --------- Co-authored-by: Cameron Fairchild <cameron@opentensor.ai> * keep emission set event * run cargo fmt --------- Co-authored-by: Ayden Brewer <dalegribble@riseup.net> Co-authored-by: Ala Shaabana <shaabana@gmail.com> Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Description
This change moves all storage-setter related event deposits into the delegated function, allowing events to be emitted when the runtime changes storage values outside of sudo calls.
Checklist