Last updated
Last updated
Inherits: ILM_PC_Bounties_v1, ERC20PaymentClientBase_v1
Author: Inverter Network
Provides functionality to manage bounties and process claims, allowing participants to propose, update, and claim bounties securely and transparently.
Extends {ERC20PaymentClientBase_v1} to integrate payment processing with bounty management, supporting dynamic additions, updates, and the locking of bounties. Utilizes roles for managing permissions and maintaining robust control over bounty operations.
Marks the beginning of the list.
Role for the bounty issuer.
Role for the claimant.
Role for the verifier.
Value for what the next id will be.
Registry mapping ids to Bounty structs id => Bounty.
List of Bounty id's.
Registry mapping ids to Claim struct id => Claim.
List of Claim id's.
Connects contributor addresses to claim Ids contributor address => claim ids.
Storage gap for future upgrades.
See {IERC165-supportsInterface}.
Checks if the sender is a contributor of the given claimId.
Parameters
Checks if the payout amounts are valid.
Parameters
Checks if the array lengths are valid
Parameters
Checks if the bountyId is valid.
Parameters
Checks if the claimId is valid.
Parameters
Checks if the bounty is not locked.
Parameters
Checks if the claim is not claimed.
Parameters
Checks if the contributors have not changed.
Parameters
Returns the Bounty instance with id id
.
Parameters
Returns
Returns total list of Bounty ids.
List is in ascending order.
Returns
Returns whether Bounty with id id
exists.
Parameters
Returns
Returns the Claim instance with id id
.
Parameters
Returns
Returns total list of Claim ids.
List is in ascending order.
Returns
Returns whether Claim with id id
exists.
Parameters
Returns
Returns a list of Claim ids in which contributor Address is used.
List is in ascending order.
Parameters
Returns
Adds a new Bounty.
Reverts if an argument invalid.
Parameters
Returns
Adds a new array of Bounties.
Reverts if an argument invalid.
Parameters
Returns
Updates a Bounty's informations.
Reverts if an argument invalid.
Parameters
Locks the Bounty so it cant be claimed.
Only callable by authorized addresses.
Parameters
Adds a new Claim.
Reverts if an argument invalid.
Parameters
Returns
Updates a Claim's contributor informations.
Reverts if an argument invalid.
Parameters
Updates a Claim Details.
Parameters
Completes a Bounty by verifying a claim.
Only callable by authorized addresses.
Parameters
Internal function to check if the payout amounts are valid
Parameters
Checks if the contributors are valid for the given bounty.
Parameters
Internal function to add a bounty
Parameters
Returns