pub struct BridgeQueryApi<'api> { /* private fields */ }
Implementations§
Source§impl<'api> BridgeQueryApi<'api>
impl<'api> BridgeQueryApi<'api>
Sourcepub async fn controller(&self) -> Result<Option<AccountId>>
pub async fn controller(&self) -> Result<Option<AccountId>>
The multisig account of the bridge controller. The genesis signers accept their authorizations and are able to get their proposals delivered. The bridge creator transfers some POLY to their identity.
Sourcepub async fn bridge_tx_details(
&self,
key_0: AccountId,
key_1: u32,
) -> Result<BridgeTxDetail<u32>>
pub async fn bridge_tx_details( &self, key_0: AccountId, key_1: u32, ) -> Result<BridgeTxDetail<u32>>
Details of bridge transactions identified with pairs of the recipient account and the bridge transaction nonce.
Sourcepub async fn freeze_admins(&self, key_0: AccountId) -> Result<bool>
pub async fn freeze_admins(&self, key_0: AccountId) -> Result<bool>
Freeze bridge admins. These accounts can only freeze the bridge.
Sourcepub async fn timelock(&self) -> Result<u32>
pub async fn timelock(&self) -> Result<u32>
The bridge transaction timelock period, in blocks, since the acceptance of the transaction proposal during which the admin key can freeze the transaction.
Sourcepub async fn bridge_limit(&self) -> Result<(u128, u32)>
pub async fn bridge_limit(&self) -> Result<(u128, u32)>
The maximum number of bridged POLYX per identity within a set interval of blocks. Fields: POLYX amount and the block interval duration.
Sourcepub async fn polyx_bridged(&self, key_0: IdentityId) -> Result<(u128, u32)>
pub async fn polyx_bridged(&self, key_0: IdentityId) -> Result<(u128, u32)>
Amount of POLYX bridged by the identity in last block interval. Fields: the bridged amount and the last interval number.
Sourcepub async fn bridge_limit_exempted(&self, key_0: IdentityId) -> Result<bool>
pub async fn bridge_limit_exempted(&self, key_0: IdentityId) -> Result<bool>
Identities not constrained by the bridge limit.
Sourcepub async fn storage_version(&self) -> Result<Version>
pub async fn storage_version(&self) -> Result<Version>
Storage version.
Trait Implementations§
Source§impl<'api> Clone for BridgeQueryApi<'api>
impl<'api> Clone for BridgeQueryApi<'api>
Source§fn clone(&self) -> BridgeQueryApi<'api>
fn clone(&self) -> BridgeQueryApi<'api>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'api> Freeze for BridgeQueryApi<'api>
impl<'api> !RefUnwindSafe for BridgeQueryApi<'api>
impl<'api> Send for BridgeQueryApi<'api>
impl<'api> Sync for BridgeQueryApi<'api>
impl<'api> Unpin for BridgeQueryApi<'api>
impl<'api> !UnwindSafe for BridgeQueryApi<'api>
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
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
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>
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>
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<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read moreSource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.