Tailflow
Skip to article
Browse documentation

Triggers

Governance proposal

Follow proposals on a governor as they are created, queued, executed, or canceled, and the calls waiting on its timelock.

Choose a governor or a timelock

Choose Governance proposal, select chains, and name one to three contracts. Pick Uniswap, Compound, or ENS on Ethereum, or Arbitrum Core or Arbitrum Treasury on Arbitrum, or paste the address of another governor contract.

A governor reports proposals. Its timelock is a separate contract, where an approved call waits before it runs, and it reports the calls queued, executed, and canceled there. Name the timelock as well as the governor to follow both: pick the Uniswap, Compound, or ENS timelock on Ethereum, or paste the address of another.

A pasted governor works when it follows the OpenZeppelin Governor or Compound Governor Bravo design, and a pasted timelock when it is an OpenZeppelin TimelockController or a Compound Timelock. Governors with their own design, such as Aave, Lido, and Maker, are not read, and neither is offchain voting such as Snapshot. Check Example triggers for a contract you paste: if one with recent activity shows none, it is probably not supported.

Governance Proposal Trigger Configuration
1Event source
Governance proposal
2Filters
Edit the conditions to explore the controls. Event samples stay fixed.
Inspect Example triggers to check your selection.
3Trigger
Chains
1 selected · 3 of 7 chains shown
Example. Pick a governor from the list or paste its address. This example runs once per proposal, when it is created.Changes stay in this example. Nothing is saved or sent.

Follow the stages

On a governor, the stage field is created, queued, executed, or canceled. Use Is new proposal, Is queued, Is executed, or Is canceled to keep the stages you want, and Proposer or Proposal id to narrow further.

On a timelock, the stage field is timelock_queued, timelock_executed, or timelock_canceled. Use Is call queued on timelock for advance warning: a queued call cannot run before its delay has passed. Narrow with Call target, Call value, or Delay (seconds).

Without a stage filter, one proposal can run the flow several times, once per stage. Votes are not events of this trigger: they are a separate trigger, Governance vote, so a proposal flow never runs once per vote.

Use the event

A new proposal carries title, description, proposer, vote_start, and vote_end. The title is the first heading or first line of the description. Later stages carry only the proposal id, so use proposal_label in messages: it is the title on a new proposal and “Proposal” with the id afterwards.

description holds up to 8,000 characters; description_truncated is true when the proposal’s text was longer. vote_start and vote_end are block numbers on some governors and timestamps on others. A queued proposal carries eta, the earliest time it may execute.

The description is suitable input for an Agent action that summarizes the proposal. The proposal’s onchain actions are not part of the event; open the proposal to review them.

A timelock call carries target, the contract it will call; value_decimal, the native coin it sends; call_selector, the function as four bytes; and operation_id, the timelock’s own id for it. A queued call also carries delay_seconds and eta, the earliest time it may run. A timelock event has no proposal id, and proposal_label reads “Timelock call” with the start of its id. A cancel on an OpenZeppelin timelock carries only the id. The call’s full data is not part of the event.