dao-dao-macros

Crates.iodao-dao-macros
lib.rsdao-dao-macros
version2.6.0
sourcesrc
created_at2023-07-03 12:34:59.466187
updated_at2024-11-07 23:42:06.729916
descriptionA package macros for deriving DAO module interfaces.
homepage
repositoryhttps://github.com/DA0-DA0/dao-contracts
max_upload_size
id906963
size16,224
publishers (github:da0-da0:publishers)

documentation

README

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 {}
Commit count: 879

cargo fmt