Solidity API
AGovernance
_governance
address _governanceconstructor
constructor(address governance) publicpropose
function propose(struct IGovernanceVoting.ProposedAction[] actions, string description) externalAllows to make a proposal to the Rigoblock governance.
Parameters
Name
Type
Description
actions
struct IGovernanceVoting.ProposedAction[]
Array of tuples of proposed actions.
description
string
A human-readable description.
castVote
function castVote(uint256 proposalId, enum IGovernanceVoting.VoteType voteType) externalAllows a pool to vote on a proposal.
Parameters
Name
Type
Description
proposalId
uint256
Number of the proposal.
voteType
enum IGovernanceVoting.VoteType
Enum of the vote type.
execute
function execute(uint256 proposalId) externalAllows a pool to execute a proposal.
Parameters
Name
Type
Description
proposalId
uint256
Number of the proposal.
_getGovernance
function _getGovernance() private view returns (address)Last updated