-
Notifications
You must be signed in to change notification settings - Fork 710
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
Collective: dynamic deposit based on number of proposals #3151
Conversation
bot bench substrate-pallet --pallet=pallet_collective |
@muharem https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5126963 was started for your command Comment |
…=dev --target_dir=substrate --pallet=pallet_collective
@muharem Command |
@muharem https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7206517 was started for your command Comment |
…=dev --target_dir=substrate --pallet=pallet_collective
@muharem Command |
/cmd bench --runtime dev --pallet pallet_collective |
Command "bench --runtime dev --pallet pallet_collective" has started 🚀 See logs here |
/cmd bench --runtime dev --pallet pallet_collective |
Command "bench --runtime dev --pallet pallet_collective" has started 🚀 See logs here |
Command "bench --runtime dev --pallet pallet_collective" has failed ❌! See logs here |
Command "bench --runtime dev --pallet pallet_collective" has failed ❌! See logs here |
@mordamax I run the bot to get this PR merged |
bot bench substrate-pallet --pallet=pallet_collective |
@muharem https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7209062 was started for your command Comment |
The CI pipeline was cancelled due to failure one of the required jobs. |
@muharem Command |
bot bench substrate-pallet --pallet=pallet_collective |
@muharem https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7211356 was started for your command Comment |
…=dev --target_dir=substrate --pallet=pallet_collective
@muharem Command |
Introduce a dynamic proposal deposit mechanism influenced by the total number of active proposals, with the option to set the deposit to none.
The potential cost (e.g., balance hold) for proposal submission and storage is determined by the implementation of the
Consideration
trait. The footprint is defined asproposal_count
, representing the total number of active proposals in the system, excluding the one currently being proposed. This cost may vary based on the proposal count. The pallet also offers various types to define a cost strategy based on the number of proposals.Two new calls are introduced:
Additionally change:
ensure_successful
function added to theConsideration
underruntime-benchmarks
feature.