Proposal Hooks Interactions - DA0-DA0/dao-contracts Wiki

Proposal Hooks Interactions

With the implementation of v1, DAO proposal modules can now feature hooks that notify another contract on a change of status in a proposal e.g. from passed to executed or when a user votes.

Vote Hooks

Proposal Hooks

New Proposal Hook

This hook is fired when a new proposal hook is created and simply provides the id of the proposal in its message.

Proposal Status Changed Hook

This hook is fired when a proposal changes status. A state machine with all the transitions between proposal statuses can be seen below: