pub struct ConfigFile {
pub shard: Shard,
pub keypair: PathBuf,
pub rpc_url: Option<String>,
pub storage: Option<StorageConfig>,
pub admin_api: Option<SocketAddr>,
pub proving: Option<ConfigFile>,
pub signature_verification: Option<SignatureVerificationConfig>,
}Expand description
Contents of the domain configuration file
Configuration files can be written in one of the allowed formats and are read with Config::load.
Fields§
§shard: ShardShard number this domain operates on
keypair: PathBufPath to a JSON file containing the (ed25519) keypair the domain signs transactions with.
This PathBuf value, when indicating a relative path, is relative to the location of the configuration file.
rpc_url: Option<String>URL of the base layer RPC to connect to. If none, a mock RPC is used.
storage: Option<StorageConfig>Storage path. This is ignored when not using the rocksdb feature
admin_api: Option<SocketAddr>Admin API listen address. This is ignored when not using the admin-api feature
proving: Option<ConfigFile>Proving configuration (global_laws, local_laws), ELF not yet resolved.
signature_verification: Option<SignatureVerificationConfig>Signature verification config
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
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 ConfigFile
impl Debug for ConfigFile
Source§impl<'de> Deserialize<'de> for ConfigFile
impl<'de> Deserialize<'de> for ConfigFile
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnwindSafe for ConfigFile
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request