5 stable releases

2.4.2 Jul 22, 2024
2.4.0 Jul 21, 2024
2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023

#1840 in Procedural macros

Download history 120/week @ 2024-06-20 30/week @ 2024-06-27 20/week @ 2024-07-04 83/week @ 2024-07-11 896/week @ 2024-07-18 271/week @ 2024-07-25 347/week @ 2024-08-01 345/week @ 2024-08-08 213/week @ 2024-08-15 95/week @ 2024-08-22 95/week @ 2024-08-29 244/week @ 2024-09-05 242/week @ 2024-09-12 139/week @ 2024-09-19 94/week @ 2024-09-26 41/week @ 2024-10-03

572 downloads per month
Used in 29 crates (14 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

~1.9–2.6MB
~58K SLoC