pub struct Params {
pub template_client: Option<ClientState>,
pub trusting_period_fraction: String,
pub ccv_timeout_period: Option<Duration>,
pub init_timeout_period: Option<Duration>,
pub vsc_timeout_period: Option<Duration>,
pub slash_meter_replenish_period: Option<Duration>,
pub slash_meter_replenish_fraction: String,
pub max_throttled_packets: i64,
pub consumer_reward_denom_registration_fee: Option<Coin>,
}
Expand description
Params defines the parameters for CCV Provider module
Fields§
§template_client: Option<ClientState>
§trusting_period_fraction: String
TrustingPeriodFraction is used to compute the consumer and provider IBC client’s TrustingPeriod from the chain defined UnbondingPeriod
ccv_timeout_period: Option<Duration>
Sent IBC packets will timeout after this duration
init_timeout_period: Option<Duration>
The channel initialization (IBC channel opening handshake) will timeout after this duration
vsc_timeout_period: Option<Duration>
The VSC packets sent by the provider will timeout after this duration. Note that unlike ccv_timeout_period which is an IBC param, the vsc_timeout_period is a provider-side param that enables the provider to timeout VSC packets even when a consumer chain is not live.
slash_meter_replenish_period: Option<Duration>
The period for which the slash meter is replenished
slash_meter_replenish_fraction: String
The fraction of total voting power that is replenished to the slash meter every replenish period. This param also serves as a maximum fraction of total voting power that the slash meter can hold.
max_throttled_packets: i64
The maximum amount of throttled slash or vsc matured packets that can be queued for a single consumer before the provider chain halts.
consumer_reward_denom_registration_fee: Option<Coin>
The fee required to be paid to add a reward denom
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