Skip to main content

GraphQlQueries

Struct GraphQlQueries 

Source
pub struct GraphQlQueries;
Expand description

Contains all GraphQL queries used by the Blokli client.

Implementations§

Source§

impl GraphQlQueries

Source

pub fn query_curvy_pending_notes( from_block: Option<u64>, after: Option<CurvyEventCursor>, first: u32, ) -> Result<Operation<QueryCurvyPendingNotes, CurvyEventPageVariables>, BlokliClientError>

Paginated pending Curvy note query.

Source

pub fn query_curvy_committed_notes( from_block: Option<u64>, after: Option<CurvyEventCursor>, first: u32, ) -> Result<Operation<QueryCurvyCommittedNotes, CurvyEventPageVariables>, BlokliClientError>

Paginated committed Curvy note query.

Source

pub fn query_curvy_committed_nullifiers( from_block: Option<u64>, after: Option<CurvyEventCursor>, first: u32, ) -> Result<Operation<QueryCurvyCommittedNullifiers, CurvyEventPageVariables>, BlokliClientError>

Paginated committed Curvy nullifier query.

Source

pub fn query_curvy_sync_checkpoint( block_hash: Option<String>, ) -> Operation<QueryCurvySyncCheckpoint, CurvyCheckpointVariables>

Source

pub fn query_curvy_sync_notes( checkpoint: String, from_index: Option<u64>, first: u32, ) -> Result<Operation<QueryCurvySyncNotes, CurvySyncPageVariables>, BlokliClientError>

Source

pub fn query_curvy_sync_nullifiers( checkpoint: String, from_index: Option<u64>, first: u32, ) -> Result<Operation<QueryCurvySyncNullifiers, CurvySyncPageVariables>, BlokliClientError>

Source

pub fn query_curvy_shard_roots( checkpoint: String, from_index: Option<u64>, first: u32, ) -> Result<Operation<QueryCurvyShardRoots, CurvySyncPageVariables>, BlokliClientError>

Source

pub fn query_curvy_aggregator_state() -> Operation<QueryCurvyAggregatorState, ()>

Source

pub fn query_curvy_note_status( note_id: String, ) -> Operation<QueryCurvyNoteStatus, CurvyNoteIdVariables>

Source

pub fn query_curvy_valid_notes_root( root: String, ) -> Operation<QueryCurvyValidNotesRoot, CurvyRootVariables>

Source

pub fn query_curvy_nullifier_spent( nullifier: String, ) -> Operation<QueryCurvyNullifierSpent, CurvyNullifierVariables>

Source

pub fn query_curvy_vault_fees() -> Operation<QueryCurvyVaultFees, ()>

Source

pub fn query_curvy_aggregator_fees() -> Operation<QueryCurvyAggregatorFees, ()>

Source

pub fn query_curvy_vault_token_count() -> Operation<QueryCurvyVaultTokenCount, ()>

Source

pub fn query_curvy_vault_token( token_id: String, ) -> Operation<QueryCurvyVaultToken, CurvyVaultTokenVariables>

Source

pub fn query_curvy_entry_portal_address( owner_hash: String, recovery: String, ) -> Operation<QueryCurvyEntryPortalAddress, CurvyEntryPortalVariables>

Source

pub fn query_curvy_exit_portal_address( exit_address: String, exit_chain_id: String, recovery: String, ) -> Operation<QueryCurvyExitPortalAddress, CurvyExitPortalVariables>

Source

pub fn query_curvy_portal_registered( portal_address: String, ) -> Operation<QueryCurvyPortalRegistered, CurvyPortalVariables>

Source§

impl GraphQlQueries

Source

pub fn count_accounts( selector: AccountSelector, ) -> Operation<QueryAccountCount, AccountVariables>

AccountCount GraphQL query.

Source

pub fn query_accounts( selector: AccountSelector, ) -> Operation<QueryAccounts, AccountVariables>

Accounts GraphQL query.

Source

pub fn query_native_balance( address: &ChainAddress, ) -> Operation<QueryNativeBalance, BalanceVariables>

NativeBalance GraphQL query.

Source

pub fn query_token_balance( address: &ChainAddress, token: Token, ) -> Operation<QueryHoprBalance, BalanceVariables>

TokenBalance GraphQL query.

Source

pub fn query_transaction_count( address: &ChainAddress, ) -> Operation<QueryTxCount, TxCountVariables>

TransactionCount GraphQL query.

Source

pub fn query_safe_allowance( address: &ChainAddress, ) -> Operation<QuerySafeAllowance, BalanceVariables>

SafeAllowance GraphQL query.

Source

pub fn query_redeemed_stats( selector: RedeemedStatsSelector, ) -> Operation<QueryRedeemedStats, RedeemedStatsVariables>

TicketRedemptionStats GraphQL query.

Source

pub fn query_safe_by( selector: SafeSelectorInput, address: &ChainAddress, ) -> Operation<QuerySafeBy, SafeByVariables>

safeBy GraphQL query.

Source

pub fn query_module_address_prediction( input: ModulePredictionInput, ) -> Operation<QueryModuleAddress, ModuleAddressVariables>

ModuleAddressPrediction GraphQL query.

Source

pub fn query_channel_count( selector: ChannelSelector, ) -> Operation<QueryChannelCount, ChannelsVariables>

👎Deprecated:

Use query_channel_stats instead, which returns both count and total wxHOPR balance.

ChannelCount GraphQL query.

Source

pub fn query_channel_stats( selector: ChannelSelector, ) -> Operation<QueryChannelStats, ChannelStatsVariables>

ChannelStats GraphQL query.

Source

pub fn query_channels( selector: ChannelSelector, ) -> Operation<QueryChannels, ChannelsVariables>

Channels GraphQL query.

Source

pub fn query_safes_balance( owner_address: Option<ChainAddress>, ) -> Operation<QuerySafesBalance, SafesBalanceVariables>

SafesBalance GraphQL query.

Source

pub fn count_services( selector: ServiceSelector, ) -> Operation<QueryServiceCount, ServiceVariables>

ServiceCount GraphQL query.

Source

pub fn query_services( selector: ServiceSelector, after: Option<Uint64>, watermark: Option<Uint64>, live_only: bool, ) -> Operation<QueryServices, ServicePageVariables>

Services GraphQL query.

Source

pub fn query_service_types( service_type: Option<ServiceTypeId>, ) -> Operation<QueryServiceTypes, ServiceTypeVariables>

ServiceTypes GraphQL query.

Source

pub fn query_service_registry_config() -> Operation<QueryServiceRegistryConfig, ()>

ServiceRegistryConfig GraphQL query.

Source

pub fn query_transaction( id: TxId, ) -> Operation<QueryTransaction, TransactionsVariables>

Transaction GraphQL query.

Source

pub fn query_chain_info() -> Operation<QueryChainInfo, ()>

ChainInfo GraphQL query.

Source

pub fn query_version() -> Operation<QueryVersion, ()>

Version GraphQL query.

Source

pub fn query_health() -> Operation<QueryHealth, ()>

Health GraphQL query.

Source

pub fn query_compatibility() -> Operation<QueryCompatibility, ()>

Compatibility GraphQL query.

Source§

impl GraphQlQueries

Source

pub fn subscribe_channels( selector: ChannelSelector, ) -> StreamingOperation<SubscribeChannels, ChannelsVariables>

SubscribeChannels subscription GraphQL query.

Source

pub fn subscribe_accounts( selector: AccountSelector, ) -> StreamingOperation<SubscribeAccounts, AccountVariables>

SubscribeAccounts subscription GraphQL query.

Source

pub fn subscribe_graph() -> StreamingOperation<SubscribeGraph, ()>

SubscribeGraph subscription GraphQL query.

Source

pub fn subscribe_ticket_params() -> StreamingOperation<SubscribeTicketParams, ()>

SubscribeTicketParams subscription GraphQL query.

Source

pub fn subscribe_health() -> StreamingOperation<SubscribeHealth, ()>

SubscribeHealth subscription GraphQL query.

Source

pub fn subscribe_safe_deployments() -> StreamingOperation<SubscribeSafeDeployment, ()>

SubscribeSafeDeployment subscription GraphQL query.

Source

pub fn subscribe_services( selector: ServiceSelector, ) -> StreamingOperation<SubscribeServices, ServiceVariables>

SubscribeServices subscription GraphQL query.

Source

pub fn subscribe_service_types( service_type: Option<ServiceTypeId>, ) -> StreamingOperation<SubscribeServiceTypes, ServiceTypeVariables>

SubscribeServiceTypes subscription GraphQL query.

Source

pub fn subscribe_service_registry_config() -> StreamingOperation<SubscribeServiceRegistryConfig, ()>

SubscribeServiceRegistryConfig subscription GraphQL query.

Source

pub fn subscribe_ticket_redeemed( selector: TicketSelector, ) -> StreamingOperation<SubscribeTicketRedeemed, TicketRedeemedVariables>

SubscribeTicketRedeemed subscription GraphQL query.

Source

pub fn subscribe_curvy_pending_notes( from_block: Option<u64>, ) -> StreamingOperation<SubscribeCurvyPendingNote, CurvyEventSubscriptionVariables>

Pending Curvy note subscription used for local ownership detection.

Source

pub fn subscribe_curvy_committed_notes( from_block: Option<u64>, ) -> StreamingOperation<SubscribeCurvyCommittedNote, CurvyEventSubscriptionVariables>

Committed Curvy note subscription used for owned-note correlation.

Source

pub fn subscribe_curvy_committed_nullifiers( from_block: Option<u64>, ) -> StreamingOperation<SubscribeCurvyCommittedNullifier, CurvyEventSubscriptionVariables>

Committed Curvy nullifier subscription.

Source§

impl GraphQlQueries

Source

pub fn mutate_submit_transaction( signed_tx: &[u8], ) -> Operation<MutateSendTransaction, SendTransactionVariables>

SendTransaction GraphQL mutation.

Source

pub fn mutate_submit_and_track_transaction( signed_tx: &[u8], ) -> Operation<MutateTrackTransaction, SendTransactionVariables>

TrackTransaction GraphQL mutation.

Source

pub fn mutate_submit_and_confirm_transaction( signed_tx: &[u8], confirmations: usize, ) -> Operation<MutateConfirmTransaction, ConfirmTransactionVariables>

ConfirmTransaction GraphQL mutation.

Source

pub fn subscribe_track_transaction( tx_id: TxId, ) -> StreamingOperation<SubscribeTransaction, TransactionsVariables>

TrackTransaction GraphQL subscription.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<T> IsFieldType<T> for T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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