pub struct RpcOperationsConfig {
pub chain_id: u64,
pub contract_addrs: ContractAddresses,
pub module_address: Address,
pub safe_address: Address,
pub expected_block_time: Duration,
pub max_block_range_fetch_size: u64,
pub tx_polling_interval: Duration,
pub finality: u32,
pub gas_oracle_url: Option<Url>,
}
Expand description
Configuration of the RPC related parameters.
Fields§
§chain_id: u64
Blockchain id
Default is 100.
contract_addrs: ContractAddresses
Addresses of all deployed contracts
Default contains empty (null) addresses.
module_address: Address
Address of the node’s module.
Defaults to null address.
safe_address: Address
Address of the node’s safe contract.
Defaults to null address.
expected_block_time: Duration
Expected block time of the blockchain
Defaults to 5 seconds
max_block_range_fetch_size: u64
The largest amount of blocks to fetch at once when fetching a range of blocks.
If the requested block range size is N, then the client will always fetch min(N, max_block_range_fetch_size)
Defaults to 2000 blocks
tx_polling_interval: Duration
Interval for polling on TX submission
Defaults to 7 seconds.
finality: u32
Finalization chain length
The number of blocks including and decreasing from the chain HEAD that the logs will be buffered for before being considered successfully joined to the chain.
Defaults to 8
gas_oracle_url: Option<Url>
URL to the gas price oracle.
Defaults to DEFAULT_GAS_ORACLE_URL
.
Trait Implementations§
Source§impl Clone for RpcOperationsConfig
impl Clone for RpcOperationsConfig
Source§fn clone(&self) -> RpcOperationsConfig
fn clone(&self) -> RpcOperationsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RpcOperationsConfig
impl Debug for RpcOperationsConfig
Source§impl Default for RpcOperationsConfig
impl Default for RpcOperationsConfig
Source§fn default() -> Self
fn default() -> Self
Return RpcOperationsConfig { chain_id: 100, contract_addrs: Default::default(), module_address: Default::default(), safe_address: Default::default(), expected_block_time: Duration::from_secs(5), max_block_range_fetch_size: 2000, tx_polling_interval: Duration::from_secs(7), finality: 8, gas_oracle_url: Some(DEFAULT_GAS_ORACLE_URL.parse().unwrap()) }
Source§impl<'de> Deserialize<'de> for RpcOperationsConfig
impl<'de> Deserialize<'de> for RpcOperationsConfig
Source§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>,
Source§impl PartialEq for RpcOperationsConfig
impl PartialEq for RpcOperationsConfig
Source§impl Serialize for RpcOperationsConfig
impl Serialize for RpcOperationsConfig
Source§impl Validate for RpcOperationsConfig
impl Validate for RpcOperationsConfig
Source§impl<'v_a> ValidateArgs<'v_a> for RpcOperationsConfig
impl<'v_a> ValidateArgs<'v_a> for RpcOperationsConfig
impl Eq for RpcOperationsConfig
impl StructuralPartialEq for RpcOperationsConfig
Auto Trait Implementations§
impl Freeze for RpcOperationsConfig
impl RefUnwindSafe for RpcOperationsConfig
impl Send for RpcOperationsConfig
impl Sync for RpcOperationsConfig
impl Unpin for RpcOperationsConfig
impl UnwindSafe for RpcOperationsConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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> 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> 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