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

#2074 in Procedural macros

Download history 150/week @ 2024-09-22 88/week @ 2024-09-29 62/week @ 2024-10-06 258/week @ 2024-10-13 93/week @ 2024-10-20 435/week @ 2024-10-27 340/week @ 2024-11-03 61/week @ 2024-11-10 53/week @ 2024-11-17 103/week @ 2024-11-24 103/week @ 2024-12-01 90/week @ 2024-12-08 83/week @ 2024-12-15 28/week @ 2024-12-22 8/week @ 2024-12-29 32/week @ 2025-01-05

153 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.7MB
~59K SLoC