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: String
feeder: String
salt: String
The salt is used in the next round’s ‘PreVote’
validator: String
Implementations
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
Auto Trait Implementations
impl Send for MsgAggregateExchangeRateVote
impl Sync for MsgAggregateExchangeRateVote
impl Unpin for MsgAggregateExchangeRateVote
impl UnwindSafe for MsgAggregateExchangeRateVote
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more