Crate dao_hooks

source ·
Expand description

DAO Hooks

This package provides an interface for managing and dispatching proposal, staking, and voting related hooks.

NFT Stake Hooks

Staking hooks are fired when NFTs are staked or unstaked in a DAO.

Proposal Hooks

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.

Stake Hooks

Staking hooks are fired when tokens are staked or unstaked in a DAO.

Vote Hooks

Vote hooks are fired when new votes are cast.

You can read more about vote hooks in our wiki.

Modules

Structs

  • MemberChangedHookMsg should be de/serialized under MemberChangedHook() variant in a ExecuteMsg. This contains a list of all diffs on the given transaction.

Enums

  • An enum representing all possible DAO hooks.