NetworkProfile

Trait NetworkProfile 

pub trait NetworkProfile: Send + Sync {
    // Required methods
    fn display_name(&self) -> &'static str;
    fn id(&self) -> &'static str;
    fn network_type(&self) -> NetworkType;
    fn dns_suffix(&self) -> &'static str;
    fn sequencer<'a>(&'a self) -> &'a str;
    fn bartender_id(&self) -> &'static str;
    fn bartender_addr(&self) -> &'static str;
    fn init_chain_position(&self) -> ChainPos;
    fn finality(&self) -> &'static str;
}
Expand description

Network-specific configuration.

Required Methods§

fn display_name(&self) -> &'static str

Display name of the network.

fn id(&self) -> &'static str

Id of the networ, used in path names and identifiers.

fn network_type(&self) -> NetworkType

Network enum for this profile.

fn dns_suffix(&self) -> &'static str

DNS suffix for nodes on this network.

fn sequencer<'a>(&'a self) -> &'a str

Url of Ethernet API offered by the sequencer.

fn bartender_id(&self) -> &'static str

Bartender’s lyquid id.

fn bartender_addr(&self) -> &'static str

Bartender’s sequencer contract addresss (initial).

fn init_chain_position(&self) -> ChainPos

The first chain position that can possibly contain any events.

fn finality(&self) -> &'static str

Which block tag (latest/finalized, etc.) should be used to determine the sequenced blocks.

Implementors§