Struct terra_rust_api::messages::oracle::MsgAggregateExchangeRateVote [−][src]
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: Stringfeeder: Stringsalt: StringThe salt is used in the next round’s ‘PreVote’
validator: StringImplementations
pub fn create_internal(
salt: String,
exchange_rates: Vec<Coin>,
feeder: String,
validator: String
) -> MsgAggregateExchangeRateVote
Create a vote message
Create a vote message from internal 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
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