2 stable releases

2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023
2.1.5 Jul 6, 2023
2.1.2 Jul 5, 2023
2.1.0 Jul 3, 2023

#1810 in Procedural macros

Download history 23/week @ 2024-01-27 39/week @ 2024-02-03 72/week @ 2024-02-10 64/week @ 2024-02-17 69/week @ 2024-02-24 60/week @ 2024-03-02 93/week @ 2024-03-09 84/week @ 2024-03-16 121/week @ 2024-03-23 112/week @ 2024-03-30 60/week @ 2024-04-06 90/week @ 2024-04-13 79/week @ 2024-04-20 87/week @ 2024-04-27 82/week @ 2024-05-04 93/week @ 2024-05-11

359 downloads per month
Used in 29 crates (14 directly)

BSD-3-Clause

13KB
158 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::{token_query, voting_module_query};
use dao_interface::voting::TotalPowerAtHeightResponse;
use dao_interface::voting::VotingPowerAtHeightResponse;

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

Dependencies

~0.9–1.6MB
~37K SLoC