Rigoblock Documentation
  • Welcome
  • Introduction to RigoBlock
  • Contracts
    • Protocol
      • RigoblockPoolExtended
      • Core
        • constants
        • immutables
        • storage
        • actions
        • owner actions
        • abstract
        • fallback
        • initializer
        • state
        • storage accessible
      • Deps
        • Authority
          • authority docs
        • PoolRegistry
          • pool registry docs
      • Extensions
        • AGovernance
          • Solidity API
        • AMulticall
          • aMulticall docs
        • AStaking
          • aStaking docs
        • AUniswap
          • aUniswap docs
        • EUpgrade
          • eUpgrade docs
        • EWhitelist
          • eWhitelist docs
      • Proxies
        • proxy
          • proxy docs
        • proxy factory
          • proxyFactory docs
    • GRG Token
      • RigoToken
        • rigoToken docs
      • Inflation
        • inflation docs
      • ProofOfPerformance
        • pop docs
    • GRG Staking
      • GrgVault
        • grgVault docs
      • StakingProxy
        • stakingProxy docs
      • Staking
        • staking docs
    • Governance
      • Solidity API
  • Deployments
    • deployed contracts - V4
    • deployed contracts
    • v1.5.0
    • v1.4.2
    • v1.4.1
    • v1.3.0
    • v1.1.1
    • v1.1.0
  • Governance
    • Rigoblock Governance
    • Supported Applications
    • Token Whitelists
    • Supported Methods
      • Selectors - V4
      • Selectors - V3
  • Bug Bounty
    • Known Issues
  • Oracles and Price Feeds
Powered by GitBook
On this page
  • AGovernance
  • _governance
  • constructor
  • propose
  • castVote
  • execute
  • _getGovernance
  1. Contracts
  2. Protocol
  3. Extensions
  4. AGovernance

Solidity API

AGovernance

_governance

address _governance

constructor

constructor(address governance) public

propose

function propose(struct IGovernanceVoting.ProposedAction[] actions, string description) external

Allows 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) external

Allows 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) external

Allows a pool to execute a proposal.

Parameters

Name
Type
Description

proposalId

uint256

Number of the proposal.

_getGovernance

function _getGovernance() private view returns (address)
PreviousAGovernanceNextAMulticall

Last updated 2 years ago