pub struct MsgAggregateExchangeRateVote {
pub exchange_rates: String,
pub feeder: String,
pub salt: String,
pub validator: String,
}
Expand description
used in feeder oracle to submit exchange rates
Fields
exchange_rates: String
feeder: String
salt: String
The salt is used in the next round’s ‘PreVote’
validator: String
Implementations
sourceimpl MsgAggregateExchangeRateVote
impl MsgAggregateExchangeRateVote
pub fn create_internal(
salt: String,
exchange_rates: Vec<Coin>,
feeder: String,
validator: String
) -> MsgAggregateExchangeRateVote
sourcepub fn create(
salt: String,
exchange_rates: Vec<Coin>,
feeder: String,
validator: String
) -> Result<Message>
pub fn create(
salt: String,
exchange_rates: Vec<Coin>,
feeder: String,
validator: String
) -> Result<Message>
Create a vote message
sourcepub fn create_from_internal(
internal: MsgAggregateExchangeRateVote
) -> Result<Message>
pub fn create_from_internal(
internal: MsgAggregateExchangeRateVote
) -> Result<Message>
Create a vote message from internal message
sourcepub fn gen_pre_vote(&self, previous_salt: &str) -> Result<Message>
pub fn gen_pre_vote(&self, previous_salt: &str) -> Result<Message>
Pre-Vote messages are like a ‘linked list’. they use the salt of the previous ‘RateVote’ to hash the current prices, to ensure continuity
Trait Implementations
sourceimpl Debug for MsgAggregateExchangeRateVote
impl Debug for MsgAggregateExchangeRateVote
sourceimpl<'de> Deserialize<'de> for MsgAggregateExchangeRateVote
impl<'de> Deserialize<'de> for MsgAggregateExchangeRateVote
sourcefn 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
impl MsgInternal for MsgAggregateExchangeRateVote
Auto Trait Implementations
impl RefUnwindSafe for MsgAggregateExchangeRateVote
impl Send for MsgAggregateExchangeRateVote
impl Sync for MsgAggregateExchangeRateVote
impl Unpin for MsgAggregateExchangeRateVote
impl UnwindSafe for MsgAggregateExchangeRateVote
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more