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

Move event deposits into delegated storage setters #163

Closed
wants to merge 10 commits into from

Conversation

Rubberbandits
Copy link
Contributor

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

  • No new compiler warnings

Copy link
Contributor

@camfairchild camfairchild left a 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

@Rubberbandits
Copy link
Contributor Author

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.

@fabhed
Copy link

fabhed commented Jul 19, 2023

Love that this is being worked on so promptly after I mentioned it in Discord. This will make indexing the chain much nicer!

* 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>
@welikethestock welikethestock deleted the events/deposit_events_everywhere branch November 29, 2023 00:18
@Rubberbandits Rubberbandits restored the events/deposit_events_everywhere branch November 29, 2023 00:27
@Rubberbandits Rubberbandits reopened this Nov 29, 2023
@unconst unconst deleted the events/deposit_events_everywhere branch March 27, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants