Crates.io | pallet-bounties |
lib.rs | pallet-bounties |
version | 37.0.0 |
source | src |
created_at | 2021-02-10 21:20:32.103535 |
updated_at | 2024-09-26 09:32:03.786762 |
description | FRAME pallet to manage bounties |
homepage | https://paritytech.github.io/polkadot-sdk/ |
repository | https://github.com/paritytech/polkadot-sdk.git |
max_upload_size | |
id | 353504 |
size | 121,059 |
NOTE: This pallet is tightly coupled with pallet-treasury.
A Bounty Spending is a reward for a specified body of work - or specified set of objectives - that needs to be executed for a predefined Treasury amount to be paid out. A curator is assigned after the bounty is approved and funded by Council, to be delegated with the responsibility of assigning a payout address once the specified set of objectives is completed.
After the Council has activated a bounty, it delegates the work that requires expertise to a curator in exchange of a deposit. Once the curator accepts the bounty, they get to close the active bounty. Closing the active bounty enacts a delayed payout to the payout address, the curator fee and the return of the curator deposit. The delay allows for intervention through regular democracy. The Council gets to unassign the curator, resulting in a new curator election. The Council also gets to cancel the bounty if deemed necessary before assigning a curator or once the bounty is active or payout is pending, resulting in the slash of the curator's deposit.
This pallet may opt into using a [ChildBountyManager
] that enables bounties to be split into
sub-bounties, as children of anh established bounty (called the parent in the context of it's
children).
NOTE: The parent bounty cannot be closed if it has a non-zero number of it has active child bounties associated with it.
Bounty:
Bounty protocol:
propose_bounty
- Propose a specific treasury amount to be earmarked for a predefined set of
tasks and stake the required deposit.
approve_bounty
- Accept a specific treasury amount to be earmarked for a predefined body of
work.
propose_curator
- Assign an account to a bounty as candidate curator.
accept_curator
- Accept a bounty assignment from the Council, setting a curator deposit.
extend_bounty_expiry
- Extend the expiry block number of the bounty and stay active.
award_bounty
- Close and pay out the specified amount for the completed work.
claim_bounty
- Claim a specific bounty amount from the Payout Address.
unassign_curator
- Unassign an accepted curator from a specific earmark.
close_bounty
- Cancel the earmark for a specific treasury amount and close the bounty.
Polkadot SDK stable2409