Skip to main content

ConfidentialAssetsPagedQueryApi

Struct ConfidentialAssetsPagedQueryApi 

Source
pub struct ConfidentialAssetsPagedQueryApi<'api> { /* private fields */ }

Implementations§

Source§

impl<'api> ConfidentialAssetsPagedQueryApi<'api>

Source

pub fn details(&self) -> StoragePaged<u32, AssetDetails>

Mapping of Confidential Asset ID to its details.

Source

pub fn keys(&self) -> StoragePaged<u32, AssetKeys>

Mapping of Confidential Asset ID to its auditor and mediator keys.

Source

pub fn names(&self) -> StoragePaged<u32, Name>

A Confidential assets token name.

Source

pub fn symbols(&self) -> StoragePaged<u32, Symbol>

A Confidential assets token symbol.

Source

pub fn decimals(&self) -> StoragePaged<u32, u8>

A Confidential assets token decimals.

Source

pub fn owner_assets(&self, key_0: IdentityId) -> StoragePaged<u32, ()>

Mapping of asset owner to their assets.

Source

pub fn encryption_key_did( &self, ) -> StoragePaged<EncryptionPublicKey, IdentityId>

Encryption key to identity mapping.

This is used for the auditor and mediator encryption keys.

Source

pub fn account_did(&self) -> StoragePaged<AccountPublicKey, IdentityId>

Confidential account to identity mapping.

Source

pub fn did_accounts( &self, key_0: IdentityId, ) -> StoragePaged<AccountPublicKey, ()>

Mapping of identity to their Confidential accounts.

Source

pub fn fee_account_did(&self) -> StoragePaged<AccountPublicKey, IdentityId>

Confidential fee account to identity mapping.

Source

pub fn account_encryption_key( &self, ) -> StoragePaged<AccountPublicKey, EncryptionPublicKey>

Mapping of Confidential account public keys to their encryption keys.

Source

pub fn encryption_key_account( &self, ) -> StoragePaged<EncryptionPublicKey, AccountPublicKey>

Mapping of Confidential encryption keys to their public keys.

Source

pub fn account_asset_registrations( &self, key_0: AccountPublicKey, ) -> StoragePaged<u32, bool>

Confidential account asset registrations.

The chain must prevent the same account from registering the same asset multiple times.

This is a double map where the first key is the account public key and the second key is the asset ID.

Source

pub fn asset_leaves(&self) -> StoragePaged<u64, CompressedLeafValue>

Leaf storage for Confidential assets curve tree.

A counted map is used since we need to support updating the leaves in the tree.

Source

pub fn asset_inner_nodes(&self) -> StoragePaged<NodeLocation, CompressedInner>

Inner node storage for Confidential assets curve tree.

Source

pub fn asset_curve_tree_roots( &self, ) -> StoragePaged<u32, TimestampedTreeRoot<CompressedCurveTreeRoot>>

CurveTree Roots for Confidential assets curve tree.

At the end of each block we will store the root of the assets curve tree. The map key is the block number and the value is the root of the assets curve tree.

Source

pub fn account_leaves(&self) -> StoragePaged<u64, AccountStateCommitment>

Leaf storage for Confidential accounts curve tree.

The leaves are immutable, so we use a simple storage map.

Source

pub fn account_inner_nodes(&self) -> StoragePaged<NodeLocation, CompressedInner>

Inner node storage for Confidential accounts curve tree.

Source

pub fn account_curve_tree_roots( &self, ) -> StoragePaged<u32, TimestampedTreeRoot<CompressedCurveTreeRoot>>

CurveTree Roots for Confidential accounts curve tree.

At the end of each block we will store the root of the accounts curve tree. The map key is the block number and the value is the root of the accounts curve tree.

Source

pub fn account_state_commitment_nullifiers( &self, ) -> StoragePaged<AccountStateNullifier, ()>

Nullifiers for Confidential account state commitments.

This is used to ensure that the same account state commitment cannot be used twice.

Source

pub fn fee_account_registrations(&self) -> StoragePaged<AccountPublicKey, bool>

Confidential fee account egistrations.

The chain must prevent the same account from registering the multiple times.

Source

pub fn fee_account_leaves(&self) -> StoragePaged<u64, FeeAccountStateCommitment>

Leaf storage for Confidential fee accounts curve tree.

The leaves are immutable, so we use a simple storage map.

Source

pub fn fee_account_inner_nodes( &self, ) -> StoragePaged<NodeLocation, CompressedInner>

Inner node storage for Confidential fee accounts curve tree.

Source

pub fn fee_account_curve_tree_roots( &self, ) -> StoragePaged<u32, TimestampedTreeRoot<CompressedCurveTreeRoot>>

CurveTree Roots for Confidential fee accounts curve tree.

At the end of each block we will store the root of the fee accounts curve tree. The map key is the block number and the value is the root of the fee accounts curve tree.

Source

pub fn fee_account_state_commitment_nullifiers( &self, ) -> StoragePaged<FeeAccountStateNullifier, ()>

Nullifiers for Confidential fee account state commitments.

This is used to ensure that the same fee account state commitment cannot be used twice.

Source

pub fn settlement_state(&self) -> StoragePaged<SettlementRef, SettlementStatus>

The settlement status.

Source

pub fn settlement_memo(&self) -> StoragePaged<SettlementRef, Vec<u8>>

The settlement memo.

Source

pub fn settlement_legs( &self, key_0: SettlementRef, ) -> StoragePaged<u8, LegEncrypted>

The settlement legs.

This is a double map where the first key is the settlement ID and the second key is the leg ID. The value is the DartSettlementLeg.

Source

pub fn settlement_leg_count(&self) -> StoragePaged<SettlementRef, u32>

The number of legs in each settlement.

Source

pub fn settlement_pending_affirmations( &self, ) -> StoragePaged<SettlementRef, u32>

The number of pending affirmations for a settlement. This is used to track when a settlement can be executed.

Source

pub fn settlement_pending_finalizations( &self, ) -> StoragePaged<SettlementRef, u32>

The number of pending finalizations for a settlement. This is used to track when a settlement can be finalized and all storage can be cleaned up.

Source

pub fn leg_affirmation_status( &self, key_0: SettlementRef, key_1: u8, ) -> StoragePaged<LegAffirmParty, AffirmationStatus>

The affirmation status of each party in a settlement leg. This is a triple map where the first key is the settlement ID, the second key is the leg ID, and the third key is the party (sender, receiver, mediator).

Trait Implementations§

Source§

impl<'api> Clone for ConfidentialAssetsPagedQueryApi<'api>

Source§

fn clone(&self) -> ConfidentialAssetsPagedQueryApi<'api>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedConversion for T

Source§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
Source§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<Src, Dest> IntoTuple<Dest> for Src
where Dest: FromTuple<Src>,

Source§

fn into_tuple(self) -> Dest

Source§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

Source§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

Source§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatedConversion for T

Source§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
Source§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

Source§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
Source§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

Source§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> JsonSchemaMaybe for T

Source§

impl<T> MaybeSend for T
where T: Send,