Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Introduce EnsureOrigin to democracy.propose #13410

Conversation

mrshiposha
Copy link
Contributor

@mrshiposha mrshiposha commented Feb 17, 2023

This PR adds a SubmitOrigin to the democracy pallet.
It replaces the plain ensure_signed within the propose extrinsic.

To achieve the old behavior, the users of the pallet can insert the following line into the Config:

type SubmitOrigin = EnsureSigned<AccountId>;

Polkadot companion: paritytech/polkadot#6750

@bkchr bkchr added B1-note_worthy Changes should be noted in the release notes T1-runtime This PR/Issue is related to the topic “runtime”. A0-pleasereview D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit C1-low PR touches the given topic and has a low impact on builders. labels Feb 17, 2023
@ggwpez
Copy link
Member

ggwpez commented Feb 18, 2023

Will need companions MRs for all deployed runtimes in Polkadot/Cumulus repos.

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
@ggwpez
Copy link
Member

ggwpez commented Feb 21, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit b77175d into paritytech:master Feb 21, 2023
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
* feat: add submitorigin to democracy

* fix: democracy tests

* fix: SubmitOrigin doc comment

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

---------

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* feat: add submitorigin to democracy

* fix: democracy tests

* fix: SubmitOrigin doc comment

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

---------

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Ank4n pushed a commit that referenced this pull request Feb 28, 2023
* feat: add submitorigin to democracy

* fix: democracy tests

* fix: SubmitOrigin doc comment

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

---------

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
ukint-vs pushed a commit to gear-tech/substrate that referenced this pull request Apr 10, 2023
* feat: add submitorigin to democracy

* fix: democracy tests

* fix: SubmitOrigin doc comment

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

---------

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
AurevoirXavier added a commit to darwinia-network/darwinia that referenced this pull request May 22, 2023
AurevoirXavier added a commit to darwinia-network/darwinia that referenced this pull request May 23, 2023
* Remove `account`

* Update and companions

* Companion of paritytech/cumulus#2164

* Companion of paritytech/substrate#13159

* Companion of paritytech/cumulus#1909

* Fmt

* Companion of paritytech/polkadot#6744

* Companion of paritytech/cumulus#2245

* Companion of paritytech/substrate#12828

* Companion of paritytech/cumulus#2287

* Companion of paritytech/substrate#13592

* Companion of paritytech/cumulus#2308

* Companion of paritytech/substrate#13410

* Companion of paritytech/substrate#13305

* Companion of polkadot-evm/frontier#1050

* TODO weight

* TODO weight

* Companion of polkadot-evm/frontier#1040

Signed-off-by: Xavier Lau <xavier@inv.cafe>

* Remove unused dep

* Try fix dev node paritytech/substrate#12828

* Fix the frontier part (#1154)

* Fix dev node

* Fmt

* Bump moonbeam

* Bump moonbeam

* Remove unnecessary clone

* Fix tests

---------

Signed-off-by: Xavier Lau <xavier@inv.cafe>
Co-authored-by: Guantong <i@gt.email>
Co-authored-by: bear <boundless.forest@outlook.com>
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* feat: add submitorigin to democracy

* fix: democracy tests

* fix: SubmitOrigin doc comment

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

---------

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants