Uh oh!
There was an error while loading. Please reload this page.
make BagsList::put_in_front_of be permissionless - #14714
Conversation
BagsList::put_in_fron_of be permissionless
gpestana
left a comment
There was a problem hiding this comment.
I'd probably just add a simple test for the new extrinsic just to ensure that future changes do not affect the wanted behaviour.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
…ytech/substrate into kiz-permissionless-put-in-front-of
kianenigma
commented
Aug 12, 2023
@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. |
…missionless-put-in-front-of
Uh oh!
There was an error while loading. Please reload this page.
BagsList::put_in_fron_of be permissionlessBagsList::put_in_front_of be permissionlessCo-authored-by: Sam Johnson <sam@durosoft.com>
…ytech/substrate into kiz-permissionless-put-in-front-of
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Michael Assaf <94772640+snowmead@users.noreply.github.com>
kianenigma
commented
Aug 12, 2023
bot merge |
Waiting for commit status. |
* 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>
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.