Struct ProposeParams
pub struct ProposeParams {
pub max_bridges_per_block: u32,
pub propose_delay_duration: Option<Duration>,
pub skip_rate_ppm: u32,
pub skip_if_block_delayed_by_duration: Option<Duration>,
}Expand description
ProposeParams stores parameters for proposing to the module.
Fields§
§max_bridges_per_block: u32The maximum number of bridge events to propose per block. Limits the number of events to propose in a single block in-order to smooth out the flow of events.
propose_delay_duration: Option<Duration>The minimum duration to wait between a finalized bridge and proposing it. This allows other validators to have enough time to also recognize its occurence. Therefore the bridge daemon should pool for new finalized events at least as often as this parameter.
skip_rate_ppm: u32Do not propose any events if a [0, 1_000_000) random number generator generates a number smaller than this number. Setting this parameter to 1_000_000 means always skipping proposing events.
skip_if_block_delayed_by_duration: Option<Duration>Do not propose any events if the timestamp of the proposal block is behind the proposers’ wall-clock by at least this duration.
Trait Implementations§
§impl Clone for ProposeParams
impl Clone for ProposeParams
§fn clone(&self) -> ProposeParams
fn clone(&self) -> ProposeParams
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ProposeParams
impl Debug for ProposeParams
§impl Default for ProposeParams
impl Default for ProposeParams
§fn default() -> ProposeParams
fn default() -> ProposeParams
§impl Message for ProposeParams
impl Message for ProposeParams
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.§impl Name for ProposeParams
impl Name for ProposeParams
§const NAME: &'static str = "ProposeParams"
const NAME: &'static str = "ProposeParams"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.§const PACKAGE: &'static str = "dydxprotocol.bridge"
const PACKAGE: &'static str = "dydxprotocol.bridge"
., e.g. google.protobuf.§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.§impl PartialEq for ProposeParams
impl PartialEq for ProposeParams
impl Copy for ProposeParams
impl StructuralPartialEq for ProposeParams
Auto Trait Implementations§
impl Freeze for ProposeParams
impl RefUnwindSafe for ProposeParams
impl Send for ProposeParams
impl Sync for ProposeParams
impl Unpin for ProposeParams
impl UnwindSafe for ProposeParams
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].