pub struct ChainConfig {
pub rpc_url: String,
pub chain_id: u64,
pub payment_pool: Address,
pub slash_judge: Address,
pub capacity_bond: Option<Address>,
}Expand description
The chain a pull pays on: its RPC endpoint and the deCDN contracts.
Fields§
§rpc_url: StringThe JSON-RPC endpoint every chain read and transaction goes through.
chain_id: u64The chain id the EIP-712 domains are built for.
payment_pool: AddressThe PaymentPool the pull’s pool lives on.
slash_judge: AddressThe SlashJudge whose domain every probe answer and stream response
verifies against.
capacity_bond: Option<Address>The CapacityBond registry discovery reads, and the domain of the
client identity binding. None disables both: the pull needs a pinned
node, and a node serves it only content it already holds.
Implementations§
Source§impl ChainConfig
impl ChainConfig
Sourcepub const fn deployment(&self) -> Deployment
pub const fn deployment(&self) -> Deployment
The PaymentPool deployment this pull runs against: the chain id and
the contract address. A buyer row is reused only on this deployment.
Trait Implementations§
Source§impl Clone for ChainConfig
impl Clone for ChainConfig
Source§impl Debug for ChainConfig
impl Debug for ChainConfig
impl Eq for ChainConfig
Source§impl PartialEq for ChainConfig
impl PartialEq for ChainConfig
impl StructuralPartialEq for ChainConfig
Auto Trait Implementations§
impl Freeze for ChainConfig
impl RefUnwindSafe for ChainConfig
impl Send for ChainConfig
impl Sync for ChainConfig
impl Unpin for ChainConfig
impl UnsafeUnpin for ChainConfig
impl UnwindSafe for ChainConfig
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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