Crate dao_proposal_hooks

Source
Expand description

§CosmWasm DAO Proposal Hooks

This package provides an interface for managing and dispatching proposal hooks from a proposal module.

There are two types of proposal hooks:

  • New Proposal Hook: fired when a new proposal is created.
  • Proposal Staus Changed Hook: fired when a proposal’s status changes.

Our wiki contains more info on Proposal Hooks.

Enums§

ProposalHookExecuteMsg
ProposalHookMsg

Functions§

new_proposal_hooks
Prepares new proposal hook messages. These messages reply on error and have even reply IDs. IDs are set to even numbers to then be interleaved with the vote hooks.
proposal_status_changed_hooks
Prepares proposal status hook messages. These messages reply on error and have even reply IDs. IDs are set to even numbers to then be interleaved with the vote hooks.