pub struct ChainConfig {
Show 26 fields pub id: ChainId, pub type: ChainType, pub rpc_addr: Url, pub websocket_addr: Url, pub grpc_addr: Url, pub rpc_timeout: Duration, pub account_prefix: String, pub key_name: String, pub key_store_type: Store, pub store_prefix: String, pub default_gas: Option<u64>, pub max_gas: Option<u64>, pub gas_adjustment: Option<f64>, pub gas_multiplier: Option<f64>, pub fee_granter: Option<String>, pub max_msg_num: MaxMsgNum, pub max_tx_size: MaxTxSize, pub clock_drift: Duration, pub max_block_time: Duration, pub trusting_period: Option<Duration>, pub memo_prefix: Memo, pub proof_specs: ProofSpecs, pub trust_threshold: TrustThreshold, pub gas_price: GasPrice, pub packet_filter: PacketFilter, pub address_type: AddressType,
}

Fields

id: ChainIdtype: ChainTyperpc_addr: Urlwebsocket_addr: Urlgrpc_addr: Urlrpc_timeout: Durationaccount_prefix: Stringkey_name: Stringkey_store_type: Storestore_prefix: Stringdefault_gas: Option<u64>max_gas: Option<u64>gas_adjustment: Option<f64>gas_multiplier: Option<f64>fee_granter: Option<String>max_msg_num: MaxMsgNummax_tx_size: MaxTxSizeclock_drift: Duration

A correction parameter that helps deal with clocks that are only approximately synchronized between the source and destination chains for a client. This parameter is used when deciding to accept or reject a new header (originating from the source chain) for any client with the destination chain that uses this configuration, unless it is overridden by the client-specific clock drift option.

max_block_time: Durationtrusting_period: Option<Duration>

The trusting period specifies how long a validator set is trusted for (must be shorter than the chain’s unbonding period).

memo_prefix: Memoproof_specs: ProofSpecstrust_threshold: TrustThreshold

The trust threshold defines what fraction of the total voting power of a known and trusted validator set is sufficient for a commit to be accepted going forward.

gas_price: GasPricepacket_filter: PacketFilteraddress_type: AddressType

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more