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>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl Name for Params
impl Name for Params
source§const NAME: &'static str = "Params"
const NAME: &'static str = "Params"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.source§const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"
const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"
.
, e.g. google.protobuf
.source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.source§impl PartialEq for Params
impl PartialEq for Params
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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