23 stable releases (4 major)
5.2.0 | Jul 27, 2022 |
---|---|
5.0.2 | Apr 17, 2022 |
4.2.1 | Apr 16, 2022 |
4.1.0 | Mar 29, 2022 |
1.10.6 | Nov 29, 2021 |
#5 in #quarry
72 downloads per month
Used in gauge
120KB
2.5K
SLoC
quarry-operator
Delegates Quarry Rewarder authority roles.
This program defines four roles:
admin
, which can update the three authorized roles.rate_setter
, which can modify rates.quarry_creator
, which can create new quarries.share_allocator
, which can choose the number of rewards shares each quarry receives.
Usage
To use this program
- Generate the PDA of the Operator.
- Set the rewarder authority via
quarry_mine::transfer_authority
. - Create the Operator and accept the authority via
quarry_operator::create_operator
.
lib.rs
:
Delegates Quarry Rewarder authority roles.
Dependencies
~20–30MB
~515K SLoC