Queries
This section outlines the various query messages for Enterprise smart contracts.
DaoInfo
Returns all available info on a particular DAO.
dao_membership_contract
refers to the contract that is used to calculate DAO membership.dao_code_version
is the version of the Enterprise code that the DAO is currently running.
QueryMemberInfoMsg
Returns the voting power or weight of a DAO member.
-
member_address
: The address of a particular DAO member. -
voting_power
: The weight or number of votes given to the requested DAO member expressed as a decimal. This query returns 0 if the address is not a member of the DAO.
For example, a voting power of 0.31 means that the member holds 31% of available votes.
AssetWhitelist
Returns a list of a DAOs current whitelisted assets.
NftWhitelistResponse
The whitelist response for an NFT DAO.
ProposalParams
Returns the parameters for a single proposal.
ProposalStatusParams
Returns all proposals. Proposal types can be specified to filter by a proposal's status.
ProposalStatusParams
Returns the status parameters of a proposal, including the status, expiration time, and the total vote count (value) for each outcome (key).
PollVoterParams
Returns the vote outcome and the number of votes of a specific DAO member given a poll id and an address.
DaoInfo
Returns all available info on a particular DAO.
dao_membership_contract
refers to the contract that is used to calculate DAO membership.dao_code_version
is the version of the Enterprise code that the DAO is currently running.
QueryMemberInfoMsg
Returns the voting power or weight of a DAO member.
-
member_address
: The address of a particular DAO member. -
voting_power
: The weight or number of votes given to the requested DAO member expressed as a decimal. This query returns 0 if the address is not a member of the DAO.
For example, a voting power of 0.31 means that the member holds 31% of available votes.
AssetWhitelist
Returns a list of a DAOs current whitelisted assets.
NftWhitelistResponse
The whitelist response for an NFT DAO.
ProposalParams
Returns the parameters for a single proposal.
ProposalStatusParams
Returns all proposals. Proposal types can be specified to filter by a proposal's status.
ProposalStatusParams
Returns the status parameters of a proposal, including the status, expiration time, and the total vote count (value) for each outcome (key).
PollVoterParams
Returns the vote outcome and the number of votes of a specific DAO member given a poll id and an address.