1 stable release

2.3.0 Oct 18, 2023

#21 in #stake

Download history 32/week @ 2024-01-11 17/week @ 2024-01-18 8/week @ 2024-01-25 7/week @ 2024-02-01 37/week @ 2024-02-08 33/week @ 2024-02-15 47/week @ 2024-02-22 38/week @ 2024-02-29 53/week @ 2024-03-07 44/week @ 2024-03-14 60/week @ 2024-03-21 99/week @ 2024-03-28 49/week @ 2024-04-04 50/week @ 2024-04-11 49/week @ 2024-04-18 35/week @ 2024-04-25

198 downloads per month
Used in 17 crates (8 directly)

BSD-3-Clause

78KB
1.5K 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

~9.5MB
~201K SLoC