Skip to main content

IOZGovernor

Functions

propose

function propose(
address[] targets,
uint256[] values,
bytes[] calldatas,
string description
) external returns (uint256 proposalId)

Parameters

NameTypeDescription
targetsaddress[]
valuesuint256[]
calldatasbytes[]
descriptionstring

castVote

function castVote(
uint256 proposalId,
uint8 support
) external returns (uint256 weight)

Parameters

NameTypeDescription
proposalIduint256
supportuint8

state

function state(
uint256 proposalId
) external returns (uint256)

Parameters

NameTypeDescription
proposalIduint256

OZGovernorVoter

Functions

propose

function propose(
contract IOZGovernor governor,
address[] targets,
uint256[] values,
bytes[] calldatas,
string description
) external returns (uint256)

propose a new proposal on the target governor.

Parameters

NameTypeDescription
governorcontract IOZGovernor
targetsaddress[]
valuesuint256[]
calldatasbytes[]
descriptionstring

castVote

function castVote(
contract IOZGovernor governor,
uint256 proposalId,
uint8 support
) external returns (uint256)

cast a vote on a given proposal on the target governor.

Parameters

NameTypeDescription
governorcontract IOZGovernor
proposalIduint256
supportuint8

Events

Proposed

event Proposed(
contract IOZGovernor governor,
uint256 proposalId
)

Parameters

NameTypeDescription
governorcontract IOZGovernor
proposalIduint256

Voted

event Voted(
contract IOZGovernor governor,
uint256 proposalId,
uint256 weight,
uint8 support
)

Parameters

NameTypeDescription
governorcontract IOZGovernor
proposalIduint256
weightuint256
supportuint8