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§
Source§impl 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§
Source§impl Debug for MsgAggregateExchangeRateVote
impl Debug for MsgAggregateExchangeRateVote
Source§impl<'de> Deserialize<'de> for MsgAggregateExchangeRateVote
impl<'de> Deserialize<'de> for MsgAggregateExchangeRateVote
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
impl MsgInternal for MsgAggregateExchangeRateVote
Auto Trait Implementations§
impl Freeze for MsgAggregateExchangeRateVote
impl RefUnwindSafe for MsgAggregateExchangeRateVote
impl Send for MsgAggregateExchangeRateVote
impl Sync for MsgAggregateExchangeRateVote
impl Unpin for MsgAggregateExchangeRateVote
impl UnwindSafe for MsgAggregateExchangeRateVote
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
Mutably borrows from an owned value. Read more