dao-hooks

Crates.iodao-hooks
lib.rsdao-hooks
version2.6.0
sourcesrc
created_at2023-10-18 19:23:26.68958
updated_at2024-11-07 23:44:35.059678
descriptionA package for managing DAO vote, proposal, and stake hooks.
homepage
repositoryhttps://github.com/DA0-DA0/dao-contracts
max_upload_size
id1007091
size12,258
publishers (github:da0-da0:publishers)

documentation

README

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.

Commit count: 879

cargo fmt