pub struct TangleClientConfig {
pub http_rpc_endpoint: Url,
pub ws_rpc_endpoint: Url,
pub keystore_uri: String,
pub data_dir: PathBuf,
pub settings: TangleSettings,
pub test_mode: bool,
pub dry_run: bool,
}Expand description
Client configuration for connecting to Tangle contracts
Fields§
§http_rpc_endpoint: UrlHTTP RPC endpoint for the EVM network
ws_rpc_endpoint: UrlWebSocket RPC endpoint for the EVM network
keystore_uri: StringPath to the keystore directory
data_dir: PathBufData directory for the client
settings: TangleSettingsProtocol-specific settings
test_mode: boolWhether the client is in test mode
dry_run: boolWhen true, avoid on-chain submissions from this client.
Implementations§
Source§impl TangleClientConfig
impl TangleClientConfig
Sourcepub fn new(
http_rpc_endpoint: impl Into<Url>,
ws_rpc_endpoint: impl Into<Url>,
keystore_uri: impl Into<String>,
settings: TangleSettings,
) -> Self
pub fn new( http_rpc_endpoint: impl Into<Url>, ws_rpc_endpoint: impl Into<Url>, keystore_uri: impl Into<String>, settings: TangleSettings, ) -> Self
Create a new client config with required parameters
Sourcepub fn keystore_config(&self) -> KeystoreConfig
pub fn keystore_config(&self) -> KeystoreConfig
Get keystore configuration
Trait Implementations§
Source§impl Clone for TangleClientConfig
impl Clone for TangleClientConfig
Source§fn clone(&self) -> TangleClientConfig
fn clone(&self) -> TangleClientConfig
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 TangleClientConfig
impl Debug for TangleClientConfig
Source§impl<'de> Deserialize<'de> for TangleClientConfig
impl<'de> Deserialize<'de> for TangleClientConfig
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 TangleClientConfig
impl RefUnwindSafe for TangleClientConfig
impl Send for TangleClientConfig
impl Sync for TangleClientConfig
impl Unpin for TangleClientConfig
impl UnsafeUnpin for TangleClientConfig
impl UnwindSafe for TangleClientConfig
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,
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>
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