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

#1860 in Procedural macros

Download history 62/week @ 2024-01-09 42/week @ 2024-01-16 34/week @ 2024-01-23 12/week @ 2024-01-30 56/week @ 2024-02-06 74/week @ 2024-02-13 65/week @ 2024-02-20 69/week @ 2024-02-27 61/week @ 2024-03-05 112/week @ 2024-03-12 79/week @ 2024-03-19 111/week @ 2024-03-26 128/week @ 2024-04-02 51/week @ 2024-04-09 92/week @ 2024-04-16 63/week @ 2024-04-23

336 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

~1.6–2.2MB
~52K SLoC