AGovernance
Overview
License: Apache-2.0-or-later
contract AGovernance is IAGovernance, IMinimumVersionAuthor: Gabriele Rigo - gab@rigoblock.com
Errors info
DirectCallNotAllowed
error DirectCallNotAllowed()Thrown when the adapter is called directly instead of via a pool's fallback.
Modifiers info
onlyDelegateCall
modifier onlyDelegateCall()Functions info
constructor
Parameters:
governance
address
Address of the Rigoblock governance contract (chain-specific, immutable).
propose (0x367015bb)
Allows to make a proposal to the Rigoblock governance.
Parameters:
actions
struct IGovernanceVoting.ProposedAction[]
Array of tuples of proposed actions.
description
string
A human-readable description.
Return values:
proposalId
uint256
Number of the newly created proposal.
castVote (0x56781388)
Allows a pool to vote on a proposal.
The support value is passed verbatim to the governance, which interprets it according to its own VoteType ordering (see docs/governance/TALLY_COMPAT.md).
Parameters:
proposalId
uint256
Number of the proposal.
support
uint8
Encoded vote type (uint8 for OZ selector compatibility).
execute (0xfe0d94c1)
Allows a pool to execute a proposal.
Payable to support proposals whose actions carry native value.
Parameters:
proposalId
uint256
Number of the proposal.
requiredVersion (0x2ea6c3f0)
Returns the minimum implementation version to use an external application.
Adapters must implement it when modifying proxy state or storage.
Return values:
[0]
string
String of the minimum supported version.
Last updated