pub struct ChainInfo {Show 16 fields
pub channel_closure_grace_period: Uint64,
pub channel_dst: Option<String>,
pub block_number: i32,
pub chain_id: i32,
pub gas_price: Option<String>,
pub ledger_dst: Option<String>,
pub max_fee_per_gas: Option<String>,
pub max_priority_fee_per_gas: Option<String>,
pub min_ticket_winning_probability: f64,
pub key_binding_fee: TokenValueString,
pub safe_registry_dst: Option<String>,
pub ticket_price: TokenValueString,
pub network: String,
pub contract_addresses: ContractAddressMap,
pub expected_block_time: Uint64,
pub finality: Uint64,
}Expand description
Chain, contract, fee, and ticket parameters reported by Blokli.
Fields§
§channel_closure_grace_period: Uint64Channel closure grace period in chain units reported by Blokli.
channel_dst: Option<String>Deployed channel contract address, when available.
block_number: i32Latest block number indexed or observed by Blokli.
chain_id: i32Numeric chain id.
gas_price: Option<String>Legacy gas price value, when supplied by the chain.
ledger_dst: Option<String>Deployed ledger contract address, when available.
max_fee_per_gas: Option<String>Current EIP-1559 max fee per gas, when supplied by the chain.
max_priority_fee_per_gas: Option<String>Current EIP-1559 max priority fee per gas, when supplied by the chain.
min_ticket_winning_probability: f64Minimum winning probability accepted for tickets.
key_binding_fee: TokenValueStringFee required for key binding.
safe_registry_dst: Option<String>Deployed safe registry contract address, when available.
ticket_price: TokenValueStringCurrent ticket price.
network: StringHuman-readable network name.
contract_addresses: ContractAddressMapMap of known contract addresses encoded by the GraphQL API.
expected_block_time: Uint64Expected block time in chain units reported by Blokli.
finality: Uint64Finality depth in blocks reported by Blokli.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChainInfo
impl<'de> Deserialize<'de> for ChainInfo
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 QueryFragment for ChainInfo
impl QueryFragment for ChainInfo
Source§type SchemaType = ChainInfo
type SchemaType = ChainInfo
QueryFragment representsSource§type VariablesFields = ()
type VariablesFields = ()
QueryFragmentSource§fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
builderimpl StructuralPartialEq for ChainInfo
Auto Trait Implementations§
impl Freeze for ChainInfo
impl RefUnwindSafe for ChainInfo
impl Send for ChainInfo
impl Sync for ChainInfo
impl Unpin for ChainInfo
impl UnsafeUnpin for ChainInfo
impl UnwindSafe for ChainInfo
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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