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

make BagsList::put_in_front_of be permissionless#14714

Merged
paritytech-processbot[bot] merged 10 commits intomasterfrom
kiz-permissionless-put-in-front-of
Aug 12, 2023
Merged

make BagsList::put_in_front_of be permissionless#14714
paritytech-processbot[bot] merged 10 commits intomasterfrom
kiz-permissionless-put-in-front-of

Conversation

@kianenigma
Copy link
Contributor

This creates a permissionless variant of the put_in_front_of, allowing anyone to move users within a bag.

Learn more about bags and put-in-front-of: https://polkadot.network/blog/staking-update-january-2022#put-in-front-of-extrinsic

No operation is free in this process.

Moving within the bag is only possible if you are being strictly moved to a better position. But there is no guarantee that you will be moved to the best possibly position.

I kept the old transaction untouched to not break any existing UIs.

This new transaction should be integrated into https://github.com/paritytech/polkadot-scripts, and run as a bot by w3f.

@kianenigma kianenigma added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Aug 4, 2023
@kianenigma kianenigma requested review from a team August 4, 2023 19:05
@kianenigma kianenigma changed the title make BagsList::put_in_fron_of be permissionless make BagsList::put_in_fron_of be permissionless Aug 4, 2023
Copy link
Contributor

@gpestana gpestana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably just add a simple test for the new extrinsic just to ensure that future changes do not affect the wanted behaviour.

@jakoblell jakoblell added D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited and removed D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Aug 10, 2023
kianenigma and others added 3 commits August 11, 2023 20:17
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
…ytech/substrate into kiz-permissionless-put-in-front-of
@kianenigma
Copy link
Contributor Author

@snowmead @wentelteefje @aaronbassett can you do a quick review in terms of doc? This is the type of work I would love to see more of: Make a small contribution to Pallet, and use it as an excuse to learn and improve its documentation. Ofc this won't scale to all pallets in the universe, but it should help us improve the docs of the more heavily used, and recently developed ones.

@liamaharon liamaharon changed the title make BagsList::put_in_fron_of be permissionless make BagsList::put_in_front_of be permissionless Aug 12, 2023
kianenigma and others added 3 commits August 12, 2023 11:05
Co-authored-by: Sam Johnson <sam@durosoft.com>
…ytech/substrate into kiz-permissionless-put-in-front-of
Co-authored-by: Michael Assaf <94772640+snowmead@users.noreply.github.com>
@kianenigma
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit 48d4313 into master Aug 12, 2023
@paritytech-processbot paritytech-processbot bot deleted the kiz-permissionless-put-in-front-of branch August 12, 2023 19:25
Ank4n pushed a commit that referenced this pull request Aug 20, 2023
* make BagsList::put_in_fron_of be permissionless

* Update frame/bags-list/src/lib.rs

Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>

* improve docs as well

* update lock

* Update frame/bags-list/Cargo.toml

Co-authored-by: Sam Johnson <sam@durosoft.com>

* fix

* Update frame/bags-list/src/lib.rs

Co-authored-by: Michael Assaf <94772640+snowmead@users.noreply.github.com>

---------

Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
Co-authored-by: Sam Johnson <sam@durosoft.com>
Co-authored-by: Michael Assaf <94772640+snowmead@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants