pub struct SettlementQueryApi<'api> { /* private fields */ }
Implementations§
Source§impl<'api> SettlementQueryApi<'api>
impl<'api> SettlementQueryApi<'api>
Sourcepub async fn venue_info(&self, key_0: VenueId) -> Result<Option<Venue>>
pub async fn venue_info(&self, key_0: VenueId) -> Result<Option<Venue>>
Info about a venue. venue_id -> venue
Sourcepub async fn details(&self, key_0: VenueId) -> Result<VenueDetails>
pub async fn details(&self, key_0: VenueId) -> Result<VenueDetails>
Free-form text about a venue. venue_id -> VenueDetails
Only needed for the UI.
Sourcepub async fn venue_instructions(
&self,
key_0: VenueId,
key_1: InstructionId,
) -> Result<()>
pub async fn venue_instructions( &self, key_0: VenueId, key_1: InstructionId, ) -> Result<()>
Instructions under a venue. Only needed for the UI.
venue_id -> instruction_id -> ()
Sourcepub async fn venue_signers(
&self,
key_0: VenueId,
key_1: AccountId,
) -> Result<bool>
pub async fn venue_signers( &self, key_0: VenueId, key_1: AccountId, ) -> Result<bool>
Signers allowed by the venue. (venue_id, signer) -> bool
Sourcepub async fn user_venues(&self, key_0: IdentityId, key_1: VenueId) -> Result<()>
pub async fn user_venues(&self, key_0: IdentityId, key_1: VenueId) -> Result<()>
Venues create by an identity. Only needed for the UI.
identity -> venue_id -> ()
Sourcepub async fn instruction_details(
&self,
key_0: InstructionId,
) -> Result<Instruction<u64, u32>>
pub async fn instruction_details( &self, key_0: InstructionId, ) -> Result<Instruction<u64, u32>>
Details about an instruction. instruction_id -> instruction_details
Sourcepub async fn instruction_leg_status(
&self,
key_0: InstructionId,
key_1: LegId,
) -> Result<LegStatus<AccountId>>
pub async fn instruction_leg_status( &self, key_0: InstructionId, key_1: LegId, ) -> Result<LegStatus<AccountId>>
Status of a leg under an instruction. (instruction_id, leg_id) -> LegStatus
Sourcepub async fn instruction_affirms_pending(
&self,
key_0: InstructionId,
) -> Result<u64>
pub async fn instruction_affirms_pending( &self, key_0: InstructionId, ) -> Result<u64>
Number of affirmations pending before instruction is executed. instruction_id -> affirm_pending
Sourcepub async fn affirms_received(
&self,
key_0: InstructionId,
key_1: PortfolioId,
) -> Result<AffirmationStatus>
pub async fn affirms_received( &self, key_0: InstructionId, key_1: PortfolioId, ) -> Result<AffirmationStatus>
Tracks affirmations received for an instruction. (instruction_id, counter_party) -> AffirmationStatus
Sourcepub async fn user_affirmations(
&self,
key_0: PortfolioId,
key_1: InstructionId,
) -> Result<AffirmationStatus>
pub async fn user_affirmations( &self, key_0: PortfolioId, key_1: InstructionId, ) -> Result<AffirmationStatus>
Helps a user track their pending instructions and affirmations (only needed for UI). (counter_party, instruction_id) -> AffirmationStatus
Sourcepub async fn receipts_used(&self, key_0: AccountId, key_1: u64) -> Result<bool>
pub async fn receipts_used(&self, key_0: AccountId, key_1: u64) -> Result<bool>
Tracks redemption of receipts. (signer, receipt_uid) -> receipt_used
Sourcepub async fn venue_filtering(&self, key_0: AssetId) -> Result<bool>
pub async fn venue_filtering(&self, key_0: AssetId) -> Result<bool>
Tracks if a token has enabled filtering venues that can create instructions involving their token. AssetId -> filtering_enabled
Sourcepub async fn venue_allow_list(
&self,
key_0: AssetId,
key_1: VenueId,
) -> Result<bool>
pub async fn venue_allow_list( &self, key_0: AssetId, key_1: VenueId, ) -> Result<bool>
Venues that are allowed to create instructions involving a particular asset. Only used if filtering is enabled.
([AssetId
], venue_id) -> allowed
Sourcepub async fn venue_counter(&self) -> Result<VenueId>
pub async fn venue_counter(&self) -> Result<VenueId>
Number of venues in the system (It’s one more than the actual number)
Sourcepub async fn instruction_counter(&self) -> Result<InstructionId>
pub async fn instruction_counter(&self) -> Result<InstructionId>
Number of instructions in the system (It’s one more than the actual number)
Sourcepub async fn instruction_memos(
&self,
key_0: InstructionId,
) -> Result<Option<Memo>>
pub async fn instruction_memos( &self, key_0: InstructionId, ) -> Result<Option<Memo>>
Instruction memo
Sourcepub async fn instruction_statuses(
&self,
key_0: InstructionId,
) -> Result<InstructionStatus<u32>>
pub async fn instruction_statuses( &self, key_0: InstructionId, ) -> Result<InstructionStatus<u32>>
Instruction statuses. instruction_id -> InstructionStatus
Sourcepub async fn instruction_legs(
&self,
key_0: InstructionId,
key_1: LegId,
) -> Result<Option<Leg>>
pub async fn instruction_legs( &self, key_0: InstructionId, key_1: LegId, ) -> Result<Option<Leg>>
Legs under an instruction. (instruction_id, leg_id) -> Leg
Sourcepub async fn off_chain_affirmations(
&self,
key_0: InstructionId,
key_1: LegId,
) -> Result<AffirmationStatus>
pub async fn off_chain_affirmations( &self, key_0: InstructionId, key_1: LegId, ) -> Result<AffirmationStatus>
Tracks the affirmation status for offchain legs in a instruction. [(InstructionId, LegId)
] -> [AffirmationStatus
]
Sourcepub async fn number_of_venue_signers(&self, key_0: VenueId) -> Result<u32>
pub async fn number_of_venue_signers(&self, key_0: VenueId) -> Result<u32>
Tracks the number of signers each venue has.
Sourcepub async fn instruction_mediators_affirmations(
&self,
key_0: InstructionId,
key_1: IdentityId,
) -> Result<MediatorAffirmationStatus<u64>>
pub async fn instruction_mediators_affirmations( &self, key_0: InstructionId, key_1: IdentityId, ) -> Result<MediatorAffirmationStatus<u64>>
The status for the mediators affirmation.
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 SettlementQueryApi<'api>
impl<'api> Clone for SettlementQueryApi<'api>
Source§fn clone(&self) -> SettlementQueryApi<'api>
fn clone(&self) -> SettlementQueryApi<'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 SettlementQueryApi<'api>
impl<'api> !RefUnwindSafe for SettlementQueryApi<'api>
impl<'api> Send for SettlementQueryApi<'api>
impl<'api> Sync for SettlementQueryApi<'api>
impl<'api> Unpin for SettlementQueryApi<'api>
impl<'api> !UnwindSafe for SettlementQueryApi<'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
.