Struct raiden_blockchain::proxies::ServiceRegistryProxy
source · pub struct ServiceRegistryProxy<T: Transport> { /* private fields */ }
Expand description
The service registry proxy to interact with the on-chain contract.
Implementations§
source§impl<T: Transport> ServiceRegistryProxy<T>
impl<T: Transport> ServiceRegistryProxy<T>
sourcepub async fn ever_made_deposits(
&self,
index: u64,
block: Option<H256>
) -> Result<Address, ProxyError>
pub async fn ever_made_deposits( &self, index: u64, block: Option<H256> ) -> Result<Address, ProxyError>
Get one of the addresses that have ever made a deposit.
sourcepub async fn ever_made_deposits_len(
&self,
block: Option<H256>
) -> Result<U256, ProxyError>
pub async fn ever_made_deposits_len( &self, block: Option<H256> ) -> Result<U256, ProxyError>
Get the number of addresses that have ever made a deposit.
sourcepub async fn has_valid_registration(
&self,
address: Address,
block: Option<H256>
) -> Result<bool, ProxyError>
pub async fn has_valid_registration( &self, address: Address, block: Option<H256> ) -> Result<bool, ProxyError>
Returns a boolean indicating whether an address has a valid service registration.
sourcepub async fn service_valid_til(
&self,
address: Address,
block: Option<H256>
) -> Result<U256, ProxyError>
pub async fn service_valid_til( &self, address: Address, block: Option<H256> ) -> Result<U256, ProxyError>
Returns the block number marking the expiration of the service validity.
sourcepub async fn get_service_url(
&self,
address: Address,
block: Option<H256>
) -> Result<String, ProxyError>
pub async fn get_service_url( &self, address: Address, block: Option<H256> ) -> Result<String, ProxyError>
Gets the URL of a service by address. If does not exist return None
sourcepub async fn current_price(
&self,
block: Option<H256>
) -> Result<U256, ProxyError>
pub async fn current_price( &self, block: Option<H256> ) -> Result<U256, ProxyError>
Gets the currently required deposit amount.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ServiceRegistryProxy<T>where
T: Freeze,
impl<T> RefUnwindSafe for ServiceRegistryProxy<T>where
T: RefUnwindSafe,
impl<T> Send for ServiceRegistryProxy<T>where
T: Send,
impl<T> Sync for ServiceRegistryProxy<T>where
T: Sync,
impl<T> Unpin for ServiceRegistryProxy<T>where
T: Unpin,
impl<T> UnwindSafe for ServiceRegistryProxy<T>where
T: UnwindSafe,
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
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> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.