Crate tg_voting_contract

Crate tg_voting_contract 

Source

Re-exports§

pub use error::ContractError;

Modules§

ballots
error
msg
state

Functions§

close
execute_text
instantiate
list_proposals
list_text_proposals
list_voters
list_votes
list_votes_by_voter
mark_executed
Checks if a given proposal is passed and can then be executed, and returns it. Notice that this call is mutable, so, better execute the returned proposal after this succeeds, as you you wouldn’t be able to execute it in the future (If the contract call errors, this status change will be reverted / ignored).
propose
query_group_contract
query_proposal
query_rules
query_vote
query_voter
reverse_proposals
vote