BeneficiaryGovernance
This contract is for submitting beneficiary nomination proposals and beneficiary takedown proposals
Functions:
Events:
Modifiers:
Graphs:
Function Definitions:
constructor()
getNumberOfProposals()
getNumberOfVoters()
Parameter Name | Type | Description |
---|---|---|
| uint256 | id of the proposal |
Return Values:
Return Name | Type | Description |
---|---|---|
number | uint256 | of votes to a proposal |
getStatus()
Parameter Name | Type | Description |
---|---|---|
| uint256 | id of the proposal |
Return Values:
Return Name | Type | Description |
---|---|---|
status | uint256 | of proposal |
hasVoted()
Parameter Name | Type | Description |
---|---|---|
| uint256 | id of the proposal |
| address | address opf voter |
createProposal()
Parameter Name | Type | Description |
---|---|---|
| address | address of the beneficiary |
| bytes32 | id of region |
| bytes | IPFS content hash |
| enum BeneficiaryGovernance.ProposalType | the proposal type (nomination / takedown) |
refreshState()
Parameter Name | Type | Description |
---|---|---|
| uint256 | id of the proposal |
vote()
Parameter Name | Type | Description |
---|---|---|
| uint256 | id of the proposal which you are going to vote |
| enum BeneficiaryGovernance.VoteOption | a yes or no vote |
finalize()
Parameter Name | Type | Description |
---|---|---|
| uint256 | id of the proposal |
claimBond()
Parameter Name | Type | Description |
---|---|---|
| uint256 | id of the proposal |
setConfiguration()
Events
ProposalCreated
Vote
Finalize
BondWithdrawn
Modifiers
validAddress()
validAddress()
enoughBond()
enoughBond()
Graphs
Dependency Graph
Inheritance Graph
Last updated