Struct osmosis_std::types::osmosis::incentives::MsgCreateGauge
source · pub struct MsgCreateGauge {
pub is_perpetual: bool,
pub owner: String,
pub distribute_to: Option<QueryCondition>,
pub coins: Vec<Coin>,
pub start_time: Option<Timestamp>,
pub num_epochs_paid_over: u64,
pub pool_id: u64,
}Expand description
MsgCreateGauge creates a gague to distribute rewards to users
Fields§
§is_perpetual: boolis_perpetual shows if it’s a perpetual or non-perpetual gauge Non-perpetual gauges distribute their tokens equally per epoch while the gauge is in the active period. Perpetual gauges distribute all their tokens at a single time and only distribute their tokens again once the gauge is refilled
owner: Stringowner is the address of gauge creator
distribute_to: Option<QueryCondition>distribute_to show which lock the gauge should distribute to by time duration or by timestamp
coins: Vec<Coin>coins are coin(s) to be distributed by the gauge
start_time: Option<Timestamp>start_time is the distribution start time
num_epochs_paid_over: u64num_epochs_paid_over is the number of epochs distribution will be completed over
pool_id: u64pool_id is the ID of the pool that the gauge is meant to be associated
with. if pool_id is set, then the “QueryCondition.LockQueryType” must be
“NoLock” with all other fields of the “QueryCondition.LockQueryType” struct
unset, including “QueryCondition.Denom”. However, note that, internally,
the empty string in “QueryCondition.Denom” ends up being overwritten with
incentivestypes.NoLockExternalGaugeDenom(
Implementations§
Trait Implementations§
source§impl Clone for MsgCreateGauge
impl Clone for MsgCreateGauge
source§fn clone(&self) -> MsgCreateGauge
fn clone(&self) -> MsgCreateGauge
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MsgCreateGauge
impl Debug for MsgCreateGauge
source§impl Default for MsgCreateGauge
impl Default for MsgCreateGauge
source§impl<'de> Deserialize<'de> for MsgCreateGauge
impl<'de> Deserialize<'de> for MsgCreateGauge
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 From<MsgCreateGauge> for Binary
impl From<MsgCreateGauge> for Binary
source§fn from(msg: MsgCreateGauge) -> Self
fn from(msg: MsgCreateGauge) -> Self
source§impl<T> From<MsgCreateGauge> for CosmosMsg<T>
impl<T> From<MsgCreateGauge> for CosmosMsg<T>
source§fn from(msg: MsgCreateGauge) -> Self
fn from(msg: MsgCreateGauge) -> Self
source§impl JsonSchema for MsgCreateGauge
impl JsonSchema for MsgCreateGauge
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl Message for MsgCreateGauge
impl Message for MsgCreateGauge
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.source§impl PartialEq for MsgCreateGauge
impl PartialEq for MsgCreateGauge
source§fn eq(&self, other: &MsgCreateGauge) -> bool
fn eq(&self, other: &MsgCreateGauge) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for MsgCreateGauge
impl Serialize for MsgCreateGauge
source§impl TryFrom<Binary> for MsgCreateGauge
impl TryFrom<Binary> for MsgCreateGauge
source§impl TryFrom<SubMsgResult> for MsgCreateGauge
impl TryFrom<SubMsgResult> for MsgCreateGauge
impl Eq for MsgCreateGauge
impl StructuralEq for MsgCreateGauge
impl StructuralPartialEq for MsgCreateGauge
Auto Trait Implementations§
impl RefUnwindSafe for MsgCreateGauge
impl Send for MsgCreateGauge
impl Sync for MsgCreateGauge
impl Unpin for MsgCreateGauge
impl UnwindSafe for MsgCreateGauge
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>,
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 more