Enum anchor_token::gov::ExecuteMsg
source ·
[−]pub enum ExecuteMsg {
Receive(Cw20ReceiveMsg),
ExecutePollMsgs {
poll_id: u64,
},
RegisterContracts {
anchor_token: String,
},
UpdateConfig {
owner: Option<String>,
quorum: Option<Decimal>,
threshold: Option<Decimal>,
voting_period: Option<u64>,
timelock_period: Option<u64>,
proposal_deposit: Option<Uint128>,
snapshot_period: Option<u64>,
},
CastVote {
poll_id: u64,
vote: VoteOption,
amount: Uint128,
},
WithdrawVotingTokens {
amount: Option<Uint128>,
},
EndPoll {
poll_id: u64,
},
ExecutePoll {
poll_id: u64,
},
SnapshotPoll {
poll_id: u64,
},
}
Variants
Receive(Cw20ReceiveMsg)
Tuple Fields
ExecutePollMsgs
Fields
poll_id: u64
RegisterContracts
Fields
anchor_token: String
UpdateConfig
Fields
CastVote
WithdrawVotingTokens
EndPoll
Fields
poll_id: u64
ExecutePoll
Fields
poll_id: u64
SnapshotPoll
Fields
poll_id: u64
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ExecuteMsg
impl Send for ExecuteMsg
impl Sync for ExecuteMsg
impl Unpin for ExecuteMsg
impl UnwindSafe for ExecuteMsg
Blanket Implementations
Mutably borrows from an owned value. Read more