6 stable releases

new 2.5.0 Oct 31, 2024
2.4.2 Jul 22, 2024
2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023

#1908 in Procedural macros

Download history 66/week @ 2024-07-10 811/week @ 2024-07-17 364/week @ 2024-07-24 336/week @ 2024-07-31 252/week @ 2024-08-07 326/week @ 2024-08-14 94/week @ 2024-08-21 76/week @ 2024-08-28 211/week @ 2024-09-04 238/week @ 2024-09-11 187/week @ 2024-09-18 85/week @ 2024-09-25 73/week @ 2024-10-02 131/week @ 2024-10-09 203/week @ 2024-10-16 90/week @ 2024-10-23

500 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