pub struct IndexerData {
pub ledger_dst: Option<Hash>,
pub safe_registry_dst: Option<Hash>,
pub channels_dst: Option<Hash>,
pub ticket_price: Option<HoprBalance>,
pub minimum_incoming_ticket_winning_prob: WinningProbability,
pub nr_enabled: bool,
}Expand description
Contains various on-chain information collected by Indexer, such as domain separators, ticket price, Network Registry status…etc. All these members change very rarely and therefore can be cached.
Fields§
§ledger_dst: Option<Hash>Ledger smart contract domain separator
safe_registry_dst: Option<Hash>Node safe registry smart contract domain separator
channels_dst: Option<Hash>Channels smart contract domain separator
ticket_price: Option<HoprBalance>Current ticket price
minimum_incoming_ticket_winning_prob: WinningProbabilityMinimum winning probability
nr_enabled: boolNetwork registry state
Implementations§
Source§impl IndexerData
impl IndexerData
Sourcepub fn domain_separator(&self, dst_type: DomainSeparator) -> Option<Hash>
pub fn domain_separator(&self, dst_type: DomainSeparator) -> Option<Hash>
Convenience method to retrieve domain separator according to the DomainSeparator enum.
Trait Implementations§
Source§impl Clone for IndexerData
impl Clone for IndexerData
Source§fn clone(&self) -> IndexerData
fn clone(&self) -> IndexerData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexerData
impl Debug for IndexerData
impl Copy for IndexerData
Auto Trait Implementations§
impl Freeze for IndexerData
impl RefUnwindSafe for IndexerData
impl Send for IndexerData
impl Sync for IndexerData
impl Unpin for IndexerData
impl UnwindSafe for IndexerData
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
Converts
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>
Converts
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