pub enum ExecuteMsg {
ManageCampaign {
action: CampaignAction,
},
Claim {
receiver: Option<String>,
amount: Option<Uint128>,
},
AddAllocations {
allocations: Vec<(String, Uint128)>,
},
ReplaceAddress {
old_address: String,
new_address: String,
},
RemoveAddress {
address: String,
},
BlacklistAddress {
address: String,
blacklist: bool,
},
ManageAuthorizedWallets {
addresses: Vec<String>,
authorized: bool,
},
Sweep {
denom: String,
amount: Option<Uint128>,
},
UpdateOwnership(Action),
}Variants§
ManageCampaign
Manages campaigns based on the action, defined by CampaignAction.
Fields
action: CampaignActionClaim
Claims rewards from a campaign
Fields
AddAllocations
Adds a batch of addresses and their allocations. This can only be done before the campaign has started.
ReplaceAddress
Replaces an address in the allocation list. This can only be done before the campaign has started.
RemoveAddress
Removes an address in the allocation list. This can only be done before the campaign has started.
BlacklistAddress
Blacklists or unblacklists an address. This can be done at any time.
Fields
ManageAuthorizedWallets
Manages authorized wallets that can perform admin actions. Only the owner can manage authorized wallets.
Fields
Whether to authorize or unauthorize the addresses
Sweep
Sweep non-reward tokens from the contract (owner only) This allows retrieving any tokens accidentally sent to the contract that are not the campaign’s reward denom
Fields
UpdateOwnership(Action)
Update the contract’s ownership. The action to be provided
can be either to propose transferring ownership to an account,
accept a pending ownership transfer, or renounce the ownership
permanently.
Trait Implementations§
Source§impl Clone for ExecuteMsg
impl Clone for ExecuteMsg
Source§fn clone(&self) -> ExecuteMsg
fn clone(&self) -> ExecuteMsg
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecuteMsg
impl Debug for ExecuteMsg
Source§impl<'de> Deserialize<'de> for ExecuteMsg
impl<'de> Deserialize<'de> for ExecuteMsg
Source§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>,
Source§impl JsonSchema for ExecuteMsg
impl JsonSchema for ExecuteMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for ExecuteMsg
impl PartialEq for ExecuteMsg
Source§impl Serialize for ExecuteMsg
impl Serialize for ExecuteMsg
impl StructuralPartialEq for ExecuteMsg
Auto Trait Implementations§
impl Freeze for ExecuteMsg
impl RefUnwindSafe for ExecuteMsg
impl Send for ExecuteMsg
impl Sync for ExecuteMsg
impl Unpin for ExecuteMsg
impl UnsafeUnpin for ExecuteMsg
impl UnwindSafe for ExecuteMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more