pub struct Params {
pub min_deposit: Vec<Coin>,
pub max_deposit_period: Option<Duration>,
pub voting_period: Option<Duration>,
pub quorum: String,
pub threshold: String,
pub veto_threshold: String,
pub min_initial_deposit_ratio: String,
pub burn_vote_quorum: bool,
pub burn_proposal_deposit_prevote: bool,
pub burn_vote_veto: bool,
}
Expand description
Params defines the parameters for the x/gov module.
Since: cosmos-sdk 0.47
Fields§
§min_deposit: Vec<Coin>
Minimum deposit for a proposal to enter voting period.
max_deposit_period: Option<Duration>
Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months.
voting_period: Option<Duration>
Duration of the voting period.
quorum: String
Minimum percentage of total stake needed to vote for a result to be considered valid.
threshold: String
Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
veto_threshold: String
Minimum value of Veto votes to Total votes ratio for proposal to be vetoed. Default value: 1/3.
min_initial_deposit_ratio: String
The ratio representing the proportion of the deposit value that must be paid at proposal submission.
burn_vote_quorum: bool
burn deposits if a proposal does not meet quorum
burn_proposal_deposit_prevote: bool
burn deposits if the proposal does not enter voting period
burn_vote_veto: bool
burn deposits if quorum with vote type no_veto is met
Trait Implementations§
source§impl Message for Params
impl Message for Params
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 Params
impl PartialEq for Params
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request