BeneficiaryGovernance

This contract is for submitting beneficiary nomination proposals and beneficiary takedown proposals


Functions:

Events:

Modifiers:

Graphs:


Function Definitions:

constructor()

constructor(contract IContractRegistry _contractRegistry) public 

getNumberOfProposals()

getNumberOfProposals(enum BeneficiaryGovernance.ProposalType _type) external  returns (uint256)

getNumberOfVoters()

getNumberOfVoters(uint256 _proposalId) external  returns (uint256)
Parameter NameTypeDescription

_proposalId

uint256

id of the proposal

Return Values:

Return NameTypeDescription

number

uint256

of votes to a proposal

getStatus()

getStatus(uint256 _proposalId) external  returns (enum BeneficiaryGovernance.ProposalStatus)
Parameter NameTypeDescription

_proposalId

uint256

id of the proposal

Return Values:

Return NameTypeDescription

status

uint256

of proposal

hasVoted()

hasVoted(uint256 _proposalId, address _voter) external  returns (bool)
Parameter NameTypeDescription

_proposalId

uint256

id of the proposal

_voter

address

address opf voter

createProposal()

createProposal(address _beneficiary, bytes32 _region, bytes _applicationCid, enum BeneficiaryGovernance.ProposalType _type) external  returns (uint256)
Parameter NameTypeDescription

_beneficiary

address

address of the beneficiary

_region

bytes32

id of region

_applicationCid

bytes

IPFS content hash

_type

enum BeneficiaryGovernance.ProposalType

the proposal type (nomination / takedown)

refreshState()

refreshState(uint256 _proposalId) external 
Parameter NameTypeDescription

_proposalId

uint256

id of the proposal

vote()

vote(uint256 _proposalId, enum BeneficiaryGovernance.VoteOption _vote) external 
Parameter NameTypeDescription

_proposalId

uint256

id of the proposal which you are going to vote

_vote

enum BeneficiaryGovernance.VoteOption

a yes or no vote

finalize()

finalize(uint256 _proposalId) public 
Parameter NameTypeDescription

_proposalId

uint256

id of the proposal

claimBond()

claimBond(uint256 _proposalId) public 
Parameter NameTypeDescription

_proposalId

uint256

id of the proposal

setConfiguration()

setConfiguration(uint256 _votingPeriod, uint256 _vetoPeriod, uint256 _proposalBond) public 

Events

ProposalCreated

ProposalCreated(uint256 proposalId, address proposer, address beneficiary, bytes applicationCid)

Vote

Vote(uint256 proposalId, address voter, uint256 weight)

Finalize

Finalize(uint256 proposalId)

BondWithdrawn

BondWithdrawn(address _address, uint256 amount)

Modifiers

validAddress()

validAddress(address _address)

enoughBond()

enoughBond(address _address)

Graphs

Dependency Graph

Inheritance Graph

Last updated