pub struct Chain {Show 13 fields
pub chain: EvmChain,
pub rpc: String,
pub chain_id: u64,
pub htlc: Hex,
pub adaptor_escrow: Option<Hex>,
pub from_block: Option<u64>,
pub fee_token: Option<Hex>,
pub tokens: Vec<Hex>,
pub token: Option<Token>,
pub key: KeySource,
pub relayer: Option<KeySource>,
pub rpc_timeout: Option<Duration>,
pub verify_rpc: Option<String>,
}Expand description
One EVM chain.
Fields§
§chain: EvmChainThe chain.
rpc: StringJSON-RPC endpoint.
chain_id: u64Chain id.
htlc: HexParalockHTLC.
adaptor_escrow: Option<Hex>ParalockAdaptorEscrow (private mode).
from_block: Option<u64>Block the contracts were deployed in.
fee_token: Option<Hex>Tempo: the TIP-20 that pays fees.
tokens: Vec<Hex>Taker: stablecoins accepted (empty: the registry’s for the chain id).
token: Option<Token>Maker: the stablecoin quoted.
key: KeySourceThis role’s account.
relayer: Option<KeySource>Taker: submits claims (--relay).
rpc_timeout: Option<Duration>Per-request RPC timeout.
verify_rpc: Option<String>Taker: a second, independent RPC endpoint; the last check before claiming needs both to agree.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnsafeUnpin for Chain
impl UnwindSafe for Chain
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 moreSource§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