#hook #proposal #dao #vote #stake #nft #fired

dao-hooks

A package for managing DAO vote, proposal, and stake hooks

6 stable releases

2.6.0 Nov 7, 2024
2.5.0 Oct 31, 2024
2.4.2 Jul 22, 2024
2.4.0 Jul 21, 2024
2.3.0 Oct 18, 2023

#7 in #stake

Download history 116/week @ 2024-09-02 118/week @ 2024-09-09 83/week @ 2024-09-16 116/week @ 2024-09-23 24/week @ 2024-09-30 37/week @ 2024-10-07 174/week @ 2024-10-14 35/week @ 2024-10-21 335/week @ 2024-10-28 260/week @ 2024-11-04 35/week @ 2024-11-11 36/week @ 2024-11-18 50/week @ 2024-11-25 40/week @ 2024-12-02 64/week @ 2024-12-09 27/week @ 2024-12-16

189 downloads per month
Used in 14 crates (9 directly)

BSD-3-Clause

140KB
3K SLoC

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.

Dependencies

~10MB
~211K SLoC