pub enum OwnerMsg {
AddAdmin {
admin: RawAddr,
},
RemoveAdmin {
admin: RawAddr,
},
SetTapLimit {
tap_limit: Option<u32>,
},
SetTapAmount {
asset: FaucetAsset,
amount: Number,
},
DeployToken {
name: String,
tap_amount: Number,
trading_competition_index: Option<u32>,
initial_balances: Vec<Cw20Coin>,
},
SetMarketAddress {
name: String,
trading_competition_index: u32,
market: RawAddr,
},
SetCw20CodeId {
cw20_code_id: u64,
},
Mint {
cw20: String,
balances: Vec<Cw20Coin>,
},
SetGasAllowance {
allowance: GasAllowance,
},
ClearGasAllowance {},
SetMultitapAmount {
name: String,
amount: Decimal256,
},
}
Variants§
AddAdmin
RemoveAdmin
SetTapLimit
Given in seconds
SetTapAmount
DeployToken
Fields
§
trading_competition_index: Option<u32>
Each trading competition token for an asset is assigned an index to disambiguate them. It also makes it easier to find the token you just created with a deploy. These are intended to be monotonically increasing. When deploying a new trading competition token, consider using QueryMsg::NextTradingIndex to find the next available number.
By providing None, you’re saying that you want to deploy an unrestricted token which can be tapped multiple times and be used with any contract.
SetMarketAddress
SetCw20CodeId
Mint
SetGasAllowance
Fields
§
allowance: GasAllowance
ClearGasAllowance
SetMultitapAmount
Set the tap amount for a named asset
Trait Implementations§
source§impl<'de> Deserialize<'de> for OwnerMsg
impl<'de> Deserialize<'de> for OwnerMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for OwnerMsg
impl JsonSchema for OwnerMsg
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for OwnerMsg
impl PartialEq for OwnerMsg
impl StructuralPartialEq for OwnerMsg
Auto Trait Implementations§
impl Freeze for OwnerMsg
impl RefUnwindSafe for OwnerMsg
impl Send for OwnerMsg
impl Sync for OwnerMsg
impl Unpin for OwnerMsg
impl UnwindSafe for OwnerMsg
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> QueryResultExt for Twhere
T: Serialize,
impl<T> QueryResultExt for Twhere
T: Serialize,
source§fn query_result(&self) -> Result<Binary, Error>
fn query_result(&self) -> Result<Binary, Error>
Convert the value to its JSON representation