7 stable releases

2.6.0 Nov 7, 2024
2.5.0 Oct 31, 2024
2.4.2 Jul 22, 2024
2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023

#2002 in Procedural macros

Download history 68/week @ 2024-08-17 98/week @ 2024-08-24 110/week @ 2024-08-31 295/week @ 2024-09-07 161/week @ 2024-09-14 168/week @ 2024-09-21 86/week @ 2024-09-28 50/week @ 2024-10-05 270/week @ 2024-10-12 98/week @ 2024-10-19 414/week @ 2024-10-26 347/week @ 2024-11-02 73/week @ 2024-11-09 51/week @ 2024-11-16 87/week @ 2024-11-23 96/week @ 2024-11-30

468 downloads per month
Used in 31 crates (15 directly)

BSD-3-Clause

15KB
172 lines

CosmWasm DAO Macros

This package provides a collection of macros that may be used to derive DAO module interfaces on message enums. For example, to derive the voting module interface on an enum:

use cosmwasm_schema::{cw_serde, QueryResponses};
use dao_dao_macros::{cw20_token_query, voting_module_query};
use dao_interface::voting::TotalPowerAtHeightResponse;
use dao_interface::voting::VotingPowerAtHeightResponse;

#[cw20_token_query]
#[voting_module_query]
#[cw_serde]
#[derive(QueryResponses)]
pub enum Query {}

Dependencies

~2–2.6MB
~59K SLoC