pub struct NyxdClient<C, S = NoSigner> { /* private fields */ }Implementations§
Source§impl NyxdClient<HttpClient>
impl NyxdClient<HttpClient>
pub fn connect<U>( config: Config, endpoint: U, ) -> Result<QueryHttpRpcNyxdClient, NyxdError>
pub fn connect_with_network_details<U>( endpoint: U, network_details: NymNetworkDetails, ) -> Result<QueryHttpRpcNyxdClient, NyxdError>
pub fn connect_to_default_env<U>( endpoint: U, ) -> Result<QueryHttpRpcNyxdClient, NyxdError>
Source§impl NyxdClient<ReqwestRpcClient>
impl NyxdClient<ReqwestRpcClient>
pub fn connect_reqwest( config: Config, endpoint: Url, ) -> Result<QueryReqwestRpcNyxdClient, NyxdError>
Source§impl NyxdClient<HttpClient, DirectSecp256k1HdWallet>
impl NyxdClient<HttpClient, DirectSecp256k1HdWallet>
pub fn connect_with_mnemonic<U>( config: Config, endpoint: U, mnemonic: Mnemonic, ) -> Result<DirectSigningHttpRpcNyxdClient, NyxdError>
pub fn connect_with_mnemonic_and_network_details<U>( endpoint: U, network_details: NymNetworkDetails, mnemonic: Mnemonic, ) -> Result<DirectSigningHttpRpcNyxdClient, NyxdError>
Source§impl NyxdClient<ReqwestRpcClient, DirectSecp256k1HdWallet>
impl NyxdClient<ReqwestRpcClient, DirectSecp256k1HdWallet>
pub fn connect_reqwest_with_mnemonic( config: Config, endpoint: Url, mnemonic: Mnemonic, ) -> DirectSigningReqwestRpcNyxdClient
Source§impl<C, S> NyxdClient<C, S>where
S: OfflineSigner,
impl<C, S> NyxdClient<C, S>where
S: OfflineSigner,
pub fn connect_with_signer( config: Config, client: C, signer: S, ) -> NyxdClient<C, S>
Source§impl<S> NyxdClient<HttpClient, S>
impl<S> NyxdClient<HttpClient, S>
pub fn change_endpoint<U>(&mut self, new_endpoint: U) -> Result<(), NyxdError>
Source§impl<C, S> NyxdClient<C, S>
impl<C, S> NyxdClient<C, S>
pub fn new_signing(config: Config, client: C, signer: S) -> Selfwhere
S: OfflineSigner,
pub fn clone_query_client(&self) -> NyxdClient<C>where
C: Clone,
pub fn current_config(&self) -> &Config
pub fn current_chain_details(&self) -> &ChainDetails
pub fn set_mixnet_contract_address(&mut self, address: AccountId)
pub fn set_vesting_contract_address(&mut self, address: AccountId)
pub fn set_ecash_contract_address(&mut self, address: AccountId)
pub fn set_multisig_contract_address(&mut self, address: AccountId)
pub fn set_node_families_contract_address(&mut self, address: AccountId)
pub fn set_simulated_gas_multiplier(&mut self, multiplier: f32)
pub fn get_nym_contracts(&self) -> TypedNymContracts
pub fn get_chain_details(&self) -> ChainDetails
Source§impl<C, S> NyxdClient<C, S>
impl<C, S> NyxdClient<C, S>
pub async fn get_account_public_key( &self, address: &AccountId, ) -> Result<Option<PublicKey>, NyxdError>
pub async fn get_current_block_timestamp( &self, ) -> Result<TendermintTime, NyxdError>
pub async fn get_block_timestamp( &self, height: Option<u32>, ) -> Result<TendermintTime, NyxdError>
pub async fn get_block( &self, height: Option<u32>, ) -> Result<BlockResponse, NyxdError>
pub async fn get_current_block_height(&self) -> Result<Height, NyxdError>
Sourcepub async fn get_block_hash(&self, height: u32) -> Result<Hash, NyxdError>
pub async fn get_block_hash(&self, height: u32) -> Result<Hash, NyxdError>
Obtains the hash of a block specified by the provided height.
§Arguments
height: height of the block for which we want to obtain the hash.
pub async fn try_get_cw2_contract_version( &self, contract_address: &AccountId, ) -> Option<ContractVersion>
pub async fn try_get_contract_build_information( &self, contract_address: &AccountId, ) -> Option<ContractBuildInformation>
Source§impl<C, S> NyxdClient<C, S>where
C: TendermintRpcClient + Send + Sync,
S: OfflineSigner + Send + Sync,
NyxdError: From<<S as OfflineSigner>::Error>,
impl<C, S> NyxdClient<C, S>where
C: TendermintRpcClient + Send + Sync,
S: OfflineSigner + Send + Sync,
NyxdError: From<<S as OfflineSigner>::Error>,
pub fn signing_account(&self) -> Result<&AccountData, NyxdError>
pub fn address(&self) -> AccountId
pub fn mix_coin(&self, amount: u128) -> Coin
pub fn mix_coins(&self, amount: u128) -> Vec<Coin>
pub fn cw_address(&self) -> Addr
pub async fn account_sequence(&self) -> Result<SequenceResponse, NyxdError>
pub fn wrap_contract_execute_message<M>( &self, contract_address: &AccountId, msg: &M, funds: Vec<Coin>, ) -> Result<MsgExecuteContract, NyxdError>
pub async fn simulate<I, M>( &self, messages: I, memo: impl Into<String> + Send + 'static, ) -> Result<SimulateResponse, NyxdError>
Sourcepub async fn send(
&self,
recipient: &AccountId,
amount: Vec<Coin>,
memo: impl Into<String> + Send + 'static,
fee: Option<Fee>,
) -> Result<TxResponse, NyxdError>
pub async fn send( &self, recipient: &AccountId, amount: Vec<Coin>, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<TxResponse, NyxdError>
Send funds from one address to another
Sourcepub async fn send_multiple(
&self,
msgs: Vec<(AccountId, Vec<Coin>)>,
memo: impl Into<String> + Send + 'static,
fee: Option<Fee>,
) -> Result<TxResponse, NyxdError>
pub async fn send_multiple( &self, msgs: Vec<(AccountId, Vec<Coin>)>, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<TxResponse, NyxdError>
Send funds from one address to multiple others
Sourcepub async fn grant_allowance(
&self,
grantee: &AccountId,
spend_limit: Vec<Coin>,
expiration: Option<SystemTime>,
allowed_messages: Vec<String>,
memo: impl Into<String> + Send + 'static,
fee: Option<Fee>,
) -> Result<TxResponse, NyxdError>
pub async fn grant_allowance( &self, grantee: &AccountId, spend_limit: Vec<Coin>, expiration: Option<SystemTime>, allowed_messages: Vec<String>, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<TxResponse, NyxdError>
Grant a fee allowance from one address to another
Sourcepub async fn revoke_allowance(
&self,
grantee: &AccountId,
memo: impl Into<String> + Send + 'static,
fee: Option<Fee>,
) -> Result<TxResponse, NyxdError>
pub async fn revoke_allowance( &self, grantee: &AccountId, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<TxResponse, NyxdError>
Revoke a fee allowance from one address to another
pub async fn execute<M>( &self, contract_address: &AccountId, msg: &M, fee: Option<Fee>, memo: impl Into<String> + Send + 'static, funds: Vec<Coin>, ) -> Result<ExecuteResult, NyxdError>
pub async fn execute_multiple<I, M>( &self, contract_address: &AccountId, msgs: I, fee: Option<Fee>, memo: impl Into<String> + Send + 'static, ) -> Result<ExecuteResult, NyxdError>
pub async fn upload( &self, wasm_code: Vec<u8>, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<UploadResult, NyxdError>
pub async fn instantiate<M>( &self, code_id: ContractCodeId, msg: &M, label: String, memo: impl Into<String> + Send + 'static, options: Option<InstantiateOptions>, fee: Option<Fee>, ) -> Result<InstantiateResult, NyxdError>
pub async fn update_admin( &self, contract_address: &AccountId, new_admin: &AccountId, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<ChangeAdminResult, NyxdError>
pub async fn clear_admin( &self, contract_address: &AccountId, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<ChangeAdminResult, NyxdError>
pub async fn migrate<M>( &self, contract_address: &AccountId, code_id: ContractCodeId, msg: &M, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<MigrateResult, NyxdError>
Trait Implementations§
Source§impl<C, S> NymContractsProvider for NyxdClient<C, S>
impl<C, S> NymContractsProvider for NyxdClient<C, S>
fn mixnet_contract_address(&self) -> Option<&AccountId>
fn vesting_contract_address(&self) -> Option<&AccountId>
fn performance_contract_address(&self) -> Option<&AccountId>
fn network_monitors_contract_address(&self) -> Option<&AccountId>
fn node_families_contract_address(&self) -> Option<&AccountId>
fn ecash_contract_address(&self) -> Option<&AccountId>
fn dkg_contract_address(&self) -> Option<&AccountId>
fn group_contract_address(&self) -> Option<&AccountId>
fn multisig_contract_address(&self) -> Option<&AccountId>
Source§impl<C, S> OfflineSigner for NyxdClient<C, S>where
S: OfflineSigner,
impl<C, S> OfflineSigner for NyxdClient<C, S>where
S: OfflineSigner,
type Error = <S as OfflineSigner>::Error
fn get_accounts(&self) -> &[AccountData]
fn sign_direct_with_account( &self, signer: &AccountData, sign_doc: SignDoc, ) -> Result<Raw, Self::Error>
fn signer_addresses(&self) -> Vec<AccountId>
fn find_account( &self, signer_address: &AccountId, ) -> Result<&AccountData, Self::Error>
fn sign_raw_with_account<M: AsRef<[u8]>>( &self, signer: &AccountData, message: M, ) -> Result<Signature, Self::Error>
fn sign_raw<M: AsRef<[u8]>>( &self, signer_address: &AccountId, message: M, ) -> Result<Signature, Self::Error>
fn sign_direct( &self, signer_address: &AccountId, sign_doc: SignDoc, ) -> Result<Raw, Self::Error>
Source§impl<C, S> SigningCosmWasmClient for NyxdClient<C, S>
impl<C, S> SigningCosmWasmClient for NyxdClient<C, S>
fn gas_price(&self) -> &GasPrice
fn simulated_gas_multiplier(&self) -> f32
fn simulate<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<SimulateResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upload<'life0, 'life1, 'async_trait>(
&'life0 self,
sender_address: &'life1 AccountId,
wasm_code: Vec<u8>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<UploadResult, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn instantiate<'life0, 'life1, 'life2, 'async_trait, M>( &'life0 self, sender_address: &'life1 AccountId, code_id: ContractCodeId, msg: &'life2 M, label: String, fee: Fee, memo: impl 'async_trait + Into<String> + Send + 'static, options: Option<InstantiateOptions>, ) -> Pin<Box<dyn Future<Output = Result<InstantiateResult, NyxdError>> + Send + 'async_trait>>
fn update_admin<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sender_address: &'life1 AccountId,
contract_address: &'life2 AccountId,
new_admin: &'life3 AccountId,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<ChangeAdminResult, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn clear_admin<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sender_address: &'life1 AccountId,
contract_address: &'life2 AccountId,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<ChangeAdminResult, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn migrate<'life0, 'life1, 'life2, 'life3, 'async_trait, M>( &'life0 self, sender_address: &'life1 AccountId, contract_address: &'life2 AccountId, code_id: u64, fee: Fee, msg: &'life3 M, memo: impl 'async_trait + Into<String> + Send + 'static, ) -> Pin<Box<dyn Future<Output = Result<MigrateResult, NyxdError>> + Send + 'async_trait>>
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait, M>( &'life0 self, sender_address: &'life1 AccountId, contract_address: &'life2 AccountId, msg: &'life3 M, fee: Fee, memo: impl 'async_trait + Into<String> + Send + 'static, funds: Vec<Coin>, ) -> Pin<Box<dyn Future<Output = Result<ExecuteResult, NyxdError>> + Send + 'async_trait>>
fn execute_multiple<'life0, 'life1, 'life2, 'async_trait, I, M>( &'life0 self, sender_address: &'life1 AccountId, contract_address: &'life2 AccountId, msgs: I, fee: Fee, memo: impl 'async_trait + Into<String> + Send + 'static, ) -> Pin<Box<dyn Future<Output = Result<ExecuteResult, NyxdError>> + Send + 'async_trait>>
fn send_tokens<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sender_address: &'life1 AccountId,
recipient_address: &'life2 AccountId,
amount: Vec<Coin>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_tokens_multiple<'life0, 'life1, 'async_trait, I>( &'life0 self, sender_address: &'life1 AccountId, msgs: I, fee: Fee, memo: impl 'async_trait + Into<String> + Send + 'static, ) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>
fn grant_allowance<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
granter: &'life1 AccountId,
grantee: &'life2 AccountId,
spend_limit: Vec<Coin>,
expiration: Option<SystemTime>,
allowed_messages: Vec<String>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn revoke_allowance<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
granter: &'life1 AccountId,
grantee: &'life2 AccountId,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delegate_tokens<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
delegator_address: &'life1 AccountId,
validator_address: &'life2 AccountId,
amount: Coin,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn undelegate_tokens<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
delegator_address: &'life1 AccountId,
validator_address: &'life2 AccountId,
amount: Coin,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn withdraw_rewards<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
delegator_address: &'life1 AccountId,
validator_address: &'life2 AccountId,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn determine_transaction_fee<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: &'life2 [Any],
fee: Fee,
memo: &'life3 String,
) -> Pin<Box<dyn Future<Output = Result<Fee, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Source§fn sign_and_broadcast_async<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_and_broadcast_async<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Broadcast a transaction, returning immediately.
Source§fn sign_and_broadcast_sync<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_and_broadcast_sync<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Broadcast a transaction, returning the response from
CheckTx.Source§fn sign_and_broadcast_commit<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_and_broadcast_commit<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Broadcast a transaction, returning the response from
DeliverTx.Source§fn sign_and_broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_and_broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Broadcast a transaction to the network and monitors its inclusion in a block.
fn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_address: &'life1 AccountId,
messages: Vec<Any>,
fee: Fee,
memo: impl 'async_trait + Into<String> + Send + 'static,
explicit_signer_data: Option<SignerData>,
) -> Pin<Box<dyn Future<Output = Result<Raw, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl<C, S> TendermintRpcClient for NyxdClient<C, S>
impl<C, S> TendermintRpcClient for NyxdClient<C, S>
Source§fn abci_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Info, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn abci_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Info, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/abci_info: get information about the ABCI application.Source§fn abci_query<'life0, 'async_trait, V>(
&'life0 self,
path: Option<String>,
data: V,
height: Option<Height>,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<AbciQuery, TendermintRpcError>> + Send + 'async_trait>>
fn abci_query<'life0, 'async_trait, V>( &'life0 self, path: Option<String>, data: V, height: Option<Height>, prove: bool, ) -> Pin<Box<dyn Future<Output = Result<AbciQuery, TendermintRpcError>> + Send + 'async_trait>>
/abci_query: query the ABCI applicationSource§fn block<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn block<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/block: get block at a given height.Source§fn block_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/block_by_hash: get block by hash.Source§fn latest_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn latest_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/block: get the latest block.Source§fn header<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn header<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/header: get block header at a given height.Source§fn header_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn header_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/header_by_hash: get block by hash.Source§fn block_results<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn block_results<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/block_results: get ABCI results for a block at a particular height.Source§fn latest_block_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn latest_block_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/block_results: get ABCI results for the latest block.Source§fn block_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/block_search: search for blocks by BeginBlock and EndBlock events.Source§fn blockchain<'life0, 'async_trait, H>(
&'life0 self,
min: H,
max: H,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn blockchain<'life0, 'async_trait, H>( &'life0 self, min: H, max: H, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
Source§fn broadcast_tx_async<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn broadcast_tx_async<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/broadcast_tx_async: broadcast a transaction, returning immediately.Source§fn broadcast_tx_sync<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn broadcast_tx_sync<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/broadcast_tx_sync: broadcast a transaction, returning the response
from CheckTx.Source§fn broadcast_tx_commit<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn broadcast_tx_commit<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/broadcast_tx_commit: broadcast a transaction, returning the response
from DeliverTx.Source§fn commit<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn commit<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/commit: get block commit at a given height.Source§fn consensus_params<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn consensus_params<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/consensus_params: get current consensus parameters at the specified
height.Source§fn consensus_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consensus_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/consensus_state: get current consensus stateSource§fn validators<'life0, 'async_trait, H>(
&'life0 self,
height: H,
paging: Paging,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
fn validators<'life0, 'async_trait, H>( &'life0 self, height: H, paging: Paging, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
/validators: get validators a given height.Source§fn latest_consensus_params<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn latest_consensus_params<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/consensus_params: get the latest consensus parameters.Source§fn latest_commit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn latest_commit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/commit: get the latest block commitSource§fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/health: get node health. Read moreSource§fn genesis<'life0, 'async_trait, AppState>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Genesis<AppState>, TendermintRpcError>> + Send + 'async_trait>>where
AppState: Debug + Serialize + DeserializeOwned + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn genesis<'life0, 'async_trait, AppState>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Genesis<AppState>, TendermintRpcError>> + Send + 'async_trait>>where
AppState: Debug + Serialize + DeserializeOwned + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
/genesis: get genesis file.Source§fn net_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn net_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/net_info: obtain information about P2P and other network connections.Source§fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/status: get Tendermint status including node info, pubkey, latest
block hash, app hash, block height and time.Source§fn broadcast_evidence<'life0, 'async_trait>(
&'life0 self,
e: Evidence,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn broadcast_evidence<'life0, 'async_trait>(
&'life0 self,
e: Evidence,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/broadcast_evidence: broadcast an evidence.Source§fn tx<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tx<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/tx: find transaction by hash.Source§fn tx_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
prove: bool,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tx_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
prove: bool,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/tx_search: search for transactions with their results.Auto Trait Implementations§
impl<C, S> Freeze for NyxdClient<C, S>
impl<C, S> RefUnwindSafe for NyxdClient<C, S>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<C, S> Send for NyxdClient<C, S>
impl<C, S> Sync for NyxdClient<C, S>
impl<C, S> Unpin for NyxdClient<C, S>
impl<C, S> UnsafeUnpin for NyxdClient<C, S>where
C: UnsafeUnpin,
S: UnsafeUnpin,
impl<C, S> UnwindSafe for NyxdClient<C, S>where
C: UnwindSafe,
S: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CosmWasmClient for Twhere
T: TendermintRpcClient,
impl<T> CosmWasmClient for Twhere
T: TendermintRpcClient,
fn make_abci_query<'life0, 'async_trait, Req, Res>( &'life0 self, path: Option<String>, req: Req, ) -> Pin<Box<dyn Future<Output = Result<Res, NyxdError>> + Send + 'async_trait>>
fn get_chain_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Id, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_height<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Height, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_account<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Option<Account>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_sequence<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<SequenceResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_block<'life0, 'async_trait>(
&'life0 self,
height: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<BlockResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_balance<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
search_denom: String,
) -> Pin<Box<dyn Future<Output = Result<Option<Coin>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_all_balances<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Coin>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_total_supply<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Coin>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_tx<'life0, 'async_trait>(
&'life0 self,
id: Hash,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn search_tx<'life0, 'async_trait>(
&'life0 self,
query: Query,
) -> Pin<Box<dyn Future<Output = Result<Vec<TxResponse>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§fn broadcast_tx_async<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
fn broadcast_tx_async<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
Broadcast a transaction, returning immediately.
Source§fn broadcast_tx_sync<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
fn broadcast_tx_sync<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
Broadcast a transaction, returning the response from
CheckTx.Source§fn broadcast_tx_commit<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
fn broadcast_tx_commit<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
Broadcast a transaction, returning the response from
DeliverTx.fn broadcast_tx<'life0, 'async_trait, T>( &'life0 self, tx: T, timeout: impl 'async_trait + Into<Option<Duration>> + Send, poll_interval: impl 'async_trait + Into<Option<Duration>> + Send, ) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>
fn get_codes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<CodeInfoResponse>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_code_details<'life0, 'async_trait>(
&'life0 self,
code_id: ContractCodeId,
) -> Pin<Box<dyn Future<Output = Result<CodeDetails, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_contracts<'life0, 'async_trait>(
&'life0 self,
code_id: ContractCodeId,
) -> Pin<Box<dyn Future<Output = Result<Vec<AccountId>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_contract<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Contract, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_contract_code_history<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Vec<ContractCodeHistoryEntry>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_all_contract_state<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Model>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_contract_raw<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
query_data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_contract_smart<'life0, 'life1, 'life2, 'async_trait, M, T>(
&'life0 self,
address: &'life1 AccountId,
query_msg: &'life2 M,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
M: ?Sized + Serialize + Sync + 'async_trait,
for<'a> T: Deserialize<'a> + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn query_simulate<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<SimulateResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Deprecatable for T
impl<T> Deprecatable for T
fn deprecate(self) -> Deprecated<Self>where
Self: Sized,
Source§impl<C> DkgQueryClient for C
impl<C> DkgQueryClient for C
fn query_dkg_contract<'life0, 'async_trait, T>(
&'life0 self,
query: QueryMsg,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: for<'a> Deserialize<'a> + 'async_trait,
C: 'async_trait,
fn get_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<State, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_epoch<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Epoch, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_epoch_at_height<'life0, 'async_trait>(
&'life0 self,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<Epoch>, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn can_advance_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<StateAdvanceResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_epoch_threshold<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_epoch_threshold<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_registered_dealer_details<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
epoch_id: Option<EpochId>,
) -> Pin<Box<dyn Future<Output = Result<RegisteredDealerDetails, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_dealer_details<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<DealerDetailsResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_current_dealers_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedDealerResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_epoch_dealers_paged<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedDealerResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_epoch_dealers_addresses_paged<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedDealerResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_dealer_indices_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedDealerIndexResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_dealings_metadata<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
dealer: String,
dealing_index: DealingIndex,
) -> Pin<Box<dyn Future<Output = Result<DealingMetadataResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_dealer_dealings_status<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
dealer: String,
) -> Pin<Box<dyn Future<Output = Result<DealerDealingsStatusResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_dealing_status<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
dealer: String,
dealing_index: DealingIndex,
) -> Pin<Box<dyn Future<Output = Result<DealingStatusResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_dealing_chunk_status<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
dealer: String,
dealing_index: DealingIndex,
chunk_index: ChunkIndex,
) -> Pin<Box<dyn Future<Output = Result<DealingChunkStatusResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_dealing_chunk<'life0, 'async_trait>(
&'life0 self,
epoch_id: EpochId,
dealer: String,
dealing_index: DealingIndex,
chunk_index: ChunkIndex,
) -> Pin<Box<dyn Future<Output = Result<DealingChunkResponse, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_contract_cw2_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ContractVersion, NyxdError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<C> EcashQueryClient for C
impl<C> EcashQueryClient for C
fn query_ecash_contract<'life0, 'async_trait, T>(
&'life0 self,
query: QueryMsg,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: for<'a> Deserialize<'a> + 'async_trait,
C: 'async_trait,
fn get_blacklisted_account<'life0, 'async_trait>(
&'life0 self,
public_key: String,
) -> Pin<Box<dyn Future<Output = Result<BlacklistedAccountResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_blacklist_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedBlacklistedAccountResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_default_deposit_amount<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_reduced_deposit_amount<'life0, 'async_trait>(
&'life0 self,
address: String,
) -> Pin<Box<dyn Future<Output = Result<Option<Coin>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_all_whitelisted_accounts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WhitelistedAccountsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_deposit<'life0, 'async_trait>(
&'life0 self,
deposit_id: u32,
) -> Pin<Box<dyn Future<Output = Result<DepositResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_latest_deposit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<LatestDepositResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_deposits_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<u32>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedDepositsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_deposits_statistics<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DepositsStatistics, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<T> FeegrantQueryClient for Twhere
T: CosmWasmClient,
impl<T> FeegrantQueryClient for Twhere
T: CosmWasmClient,
fn allowances<'life0, 'async_trait>(
&'life0 self,
grantee: AccountId,
pagination: Option<PageRequest>,
) -> Pin<Box<dyn Future<Output = Result<QueryAllowancesResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<C> GroupQueryClient for C
impl<C> GroupQueryClient for C
fn query_group_contract<'life0, 'async_trait, T>(
&'life0 self,
query: QueryMsg,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: for<'a> Deserialize<'a> + 'async_trait,
C: 'async_trait,
fn admin<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AdminResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn total_weight<'life0, 'async_trait>(
&'life0 self,
at_height: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<TotalWeightResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn list_members_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<MemberListResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn member<'life0, 'async_trait>(
&'life0 self,
addr: String,
at_height: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<MemberResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn hooks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HooksResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
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>
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 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>
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 moreSource§impl<C> MixnetQueryClient for C
impl<C> MixnetQueryClient for C
fn query_mixnet_contract<'life0, 'async_trait, T>(
&'life0 self,
query: QueryMsg,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: for<'a> Deserialize<'a> + 'async_trait,
C: 'async_trait,
fn admin<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AdminResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnet_contract_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ContractBuildInformation, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnet_contract_cw2_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ContractVersion, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_rewarding_validator_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AccountId, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnet_contract_state_params<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ContractStateParams, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_nym_node_version_history_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<u32>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<NymNodeVersionHistoryResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_current_nym_node_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CurrentNymNodeVersionResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnet_contract_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ContractState, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_rewarding_parameters<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RewardingParams, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_current_epoch_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<EpochStatus, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_current_interval_details<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CurrentIntervalResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnode_bonds_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedMixnodeBondsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnodes_detailed_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedMixnodesDetailsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_unbonded_mixnodes_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedUnbondedMixnodesResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_unbonded_mixnodes_by_owner_paged<'life0, 'life1, 'async_trait>(
&'life0 self,
owner: &'life1 AccountId,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedUnbondedMixnodesResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_unbonded_mixnodes_by_identity_paged<'life0, 'life1, 'async_trait>(
&'life0 self,
identity_key: IdentityKeyRef<'life1>,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedUnbondedMixnodesResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_owned_mixnode<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<MixOwnershipResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mixnode_details<'life0, 'async_trait>(
&'life0 self,
mix_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<MixnodeDetailsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnode_details_by_identity<'life0, 'async_trait>(
&'life0 self,
mix_identity: IdentityKey,
) -> Pin<Box<dyn Future<Output = Result<MixnodeDetailsByIdentityResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnode_rewarding_details<'life0, 'async_trait>(
&'life0 self,
mix_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<MixnodeRewardingDetailsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnode_stake_saturation<'life0, 'async_trait>(
&'life0 self,
mix_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<MixStakeSaturationResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_unbonded_mixnode_information<'life0, 'async_trait>(
&'life0 self,
mix_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<UnbondedMixnodeResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_gateways_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<IdentityKey>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedGatewayResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§fn get_gateway_bond<'life0, 'async_trait>(
&'life0 self,
identity: IdentityKey,
) -> Pin<Box<dyn Future<Output = Result<GatewayBondResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_gateway_bond<'life0, 'async_trait>(
&'life0 self,
identity: IdentityKey,
) -> Pin<Box<dyn Future<Output = Result<GatewayBondResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Checks whether there is a bonded gateway associated with the provided identity key
Source§fn get_owned_gateway<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<GatewayOwnershipResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_owned_gateway<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<GatewayOwnershipResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Checks whether there is a bonded gateway associated with the provided client’s address
fn get_preassigned_gateway_ids_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<IdentityKey>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PreassignedGatewayIdsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_nymnode_bonds_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedNymNodeBondsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_nymnodes_detailed_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedNymNodeDetailsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_unbonded_nymnodes_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedUnbondedNymNodesResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_unbonded_nymnodes_by_owner_paged<'life0, 'life1, 'async_trait>(
&'life0 self,
owner: &'life1 AccountId,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedUnbondedNymNodesResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_unbonded_nymnodes_by_identity_paged<'life0, 'life1, 'async_trait>(
&'life0 self,
identity_key: IdentityKeyRef<'life1>,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedUnbondedNymNodesResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_owned_nymnode<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<NodeOwnershipResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_nymnode_details<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<NodeDetailsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_nymnode_details_by_identity<'life0, 'async_trait>(
&'life0 self,
node_identity: IdentityKey,
) -> Pin<Box<dyn Future<Output = Result<NodeDetailsByIdentityResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_nymnode_rewarding_details<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<NodeRewardingDetailsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_node_stake_saturation<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<StakeSaturationResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_unbonded_nymnode_information<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<UnbondedNodeResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_role_assignment<'life0, 'async_trait>(
&'life0 self,
role: Role,
) -> Pin<Box<dyn Future<Output = Result<EpochAssignmentResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_rewarded_set_metadata<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RolesMetadataResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§fn get_mixnode_delegations_paged<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedNodeDelegationsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_mixnode_delegations_paged<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedNodeDelegationsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Gets list of all delegations towards particular mixnode on particular page.
Source§fn get_delegator_delegations_paged<'life0, 'life1, 'async_trait>(
&'life0 self,
delegator: &'life1 AccountId,
start_after: Option<(NodeId, OwnerProxySubKey)>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedDelegatorDelegationsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_delegator_delegations_paged<'life0, 'life1, 'async_trait>(
&'life0 self,
delegator: &'life1 AccountId,
start_after: Option<(NodeId, OwnerProxySubKey)>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedDelegatorDelegationsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets list of all the mixnodes to which a particular address delegated.
Source§fn get_delegation_details<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: NodeId,
delegator: &'life1 AccountId,
proxy: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<NodeDelegationResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_delegation_details<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: NodeId,
delegator: &'life1 AccountId,
proxy: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<NodeDelegationResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Checks value of delegation of given client towards particular mixnode.
Source§fn get_all_network_delegations_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<StorageKey>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedAllDelegationsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_all_network_delegations_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<StorageKey>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PagedAllDelegationsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Gets all the delegations on the entire network
fn get_pending_operator_reward<'life0, 'life1, 'async_trait>(
&'life0 self,
operator: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<PendingRewardResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pending_mixnode_operator_reward<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<PendingRewardResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_pending_delegator_reward<'life0, 'life1, 'async_trait>(
&'life0 self,
delegator: &'life1 AccountId,
node_id: NodeId,
proxy: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<PendingRewardResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_estimated_current_epoch_operator_reward<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
estimated_performance: Performance,
estimated_work: Option<WorkFactor>,
) -> Pin<Box<dyn Future<Output = Result<EstimatedCurrentEpochRewardResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_estimated_current_epoch_delegator_reward<'life0, 'life1, 'async_trait>(
&'life0 self,
delegator: &'life1 AccountId,
node_id: NodeId,
estimated_performance: Performance,
estimated_work: Option<WorkFactor>,
) -> Pin<Box<dyn Future<Output = Result<EstimatedCurrentEpochRewardResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pending_epoch_events_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<EpochEventId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PendingEpochEventsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_pending_interval_events_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<IntervalEventId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PendingIntervalEventsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_pending_epoch_event<'life0, 'async_trait>(
&'life0 self,
event_id: EpochEventId,
) -> Pin<Box<dyn Future<Output = Result<PendingEpochEventResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_pending_interval_event<'life0, 'async_trait>(
&'life0 self,
event_id: IntervalEventId,
) -> Pin<Box<dyn Future<Output = Result<PendingIntervalEventResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_number_of_pending_events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<NumberOfPendingEventsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_signing_nonce<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Nonce, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_key_rotation_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<KeyRotationState, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_key_rotation_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<KeyRotationIdResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<T> MixnetQueryClientExt for Twhere
T: MixnetQueryClient,
impl<T> MixnetQueryClientExt for Twhere
T: MixnetQueryClient,
Source§impl<C> MultisigQueryClient for C
impl<C> MultisigQueryClient for C
fn query_multisig_contract<'life0, 'async_trait, T>(
&'life0 self,
query: QueryMsg,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: for<'a> Deserialize<'a> + 'async_trait,
C: 'async_trait,
fn query_threshold<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ThresholdResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn query_proposal<'life0, 'async_trait>(
&'life0 self,
proposal_id: u64,
) -> Pin<Box<dyn Future<Output = Result<ProposalResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn list_proposals<'life0, 'async_trait>(
&'life0 self,
start_after: Option<u64>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<ProposalListResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn reverse_proposals<'life0, 'async_trait>(
&'life0 self,
start_before: Option<u64>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<ProposalListResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn query_vote<'life0, 'async_trait>(
&'life0 self,
proposal_id: u64,
voter: String,
) -> Pin<Box<dyn Future<Output = Result<VoteResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn list_votes<'life0, 'async_trait>(
&'life0 self,
proposal_id: u64,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<VoteListResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn query_voter<'life0, 'async_trait>(
&'life0 self,
address: String,
) -> Pin<Box<dyn Future<Output = Result<VoterResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn list_voters<'life0, 'async_trait>(
&'life0 self,
start_after: Option<String>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<VoterListResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn query_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<C> NetworkMonitorsQueryClient for C
impl<C> NetworkMonitorsQueryClient for C
fn query_network_monitors_contract<'life0, 'async_trait, T>(
&'life0 self,
query: QueryMsg,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: for<'a> Deserialize<'a> + 'async_trait,
C: 'async_trait,
fn get_admin<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AdminResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_network_monitor_orchestrators<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AuthorisedNetworkMonitorOrchestratorsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_network_monitor_agents_paged<'life0, 'async_trait>(
&'life0 self,
start_next_after: Option<SocketAddr>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<AuthorisedNetworkMonitorsPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<C> NodeFamiliesQueryClient for C
impl<C> NodeFamiliesQueryClient for C
fn query_node_families_contract<'life0, 'async_trait, T>(
&'life0 self,
query: QueryMsg,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: for<'a> Deserialize<'a> + 'async_trait,
C: 'async_trait,
fn get_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Config, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_family_by_id<'life0, 'async_trait>(
&'life0 self,
family_id: NodeFamilyId,
) -> Pin<Box<dyn Future<Output = Result<NodeFamilyResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_family_by_owner<'life0, 'life1, 'async_trait>(
&'life0 self,
owner: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<NodeFamilyByOwnerResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_family_by_name<'life0, 'async_trait>(
&'life0 self,
name: String,
) -> Pin<Box<dyn Future<Output = Result<NodeFamilyByNameResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_families_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeFamilyId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<FamiliesPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_family_membership<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<NodeFamilyMembershipResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_family_members_paged<'life0, 'async_trait>(
&'life0 self,
family_id: NodeFamilyId,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<FamilyMembersPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_all_family_members_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<AllFamilyMembersPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_pending_invitation<'life0, 'async_trait>(
&'life0 self,
family_id: NodeFamilyId,
node_id: NodeId,
) -> Pin<Box<dyn Future<Output = Result<PendingFamilyInvitationResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_pending_invitations_for_family_paged<'life0, 'async_trait>(
&'life0 self,
family_id: NodeFamilyId,
start_after: Option<NodeId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PendingFamilyInvitationsPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_pending_invitations_for_node_paged<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
start_after: Option<NodeFamilyId>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PendingInvitationsForNodePagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_all_pending_invitations_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<(NodeFamilyId, NodeId)>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PendingInvitationsPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_past_invitations_for_family_paged<'life0, 'async_trait>(
&'life0 self,
family_id: NodeFamilyId,
start_after: Option<PastFamilyInvitationCursor>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PastFamilyInvitationsPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_past_invitations_for_node_paged<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
start_after: Option<PastFamilyInvitationForNodeCursor>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PastFamilyInvitationsForNodePagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_all_past_invitations_paged<'life0, 'async_trait>(
&'life0 self,
start_after: Option<GlobalPastFamilyInvitationCursor>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<AllPastFamilyInvitationsPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_past_members_for_family_paged<'life0, 'async_trait>(
&'life0 self,
family_id: NodeFamilyId,
start_after: Option<PastFamilyMemberCursor>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PastFamilyMembersPagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_past_members_for_node_paged<'life0, 'async_trait>(
&'life0 self,
node_id: NodeId,
start_after: Option<PastFamilyMemberForNodeCursor>,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<PastFamilyMembersForNodePagedResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<T> OptionalSet for T
impl<T> OptionalSet for T
Source§fn with_optional<F, T>(self, f: F, val: Option<T>) -> Self
fn with_optional<F, T>(self, f: F, val: Option<T>) -> Self
If the value is available (i.e.
Some), the provided closure is applied.
Otherwise self is returned with no modifications.Source§fn with_validated_optional<F, T, V, E>(
self,
f: F,
value: Option<T>,
validate: V,
) -> Result<Self, E>
fn with_validated_optional<F, T, V, E>( self, f: F, value: Option<T>, validate: V, ) -> Result<Self, E>
If the value is available (i.e.
Some) it is validated and then the provided closure is applied.
Otherwise self is returned with no modifications.Source§fn with_optional_env<F, T>(self, f: F, val: Option<T>, env_var: &str) -> Self
fn with_optional_env<F, T>(self, f: F, val: Option<T>, env_var: &str) -> Self
If the value is available (i.e.
Some), the provided closure is applied.
Otherwise, if the environment was configured and the corresponding variable was set,
the value is parsed using the FromStr implementation and the closure is applied on that instead.
Finally, if none of those were available, self is returned with no modifications.Source§fn with_optional_custom_env<F, T, G>(
self,
f: F,
val: Option<T>,
env_var: &str,
parser: G,
) -> Self
fn with_optional_custom_env<F, T, G>( self, f: F, val: Option<T>, env_var: &str, parser: G, ) -> Self
If the value is available (i.e.
Some), the provided closure is applied.
Otherwise, if the environment was configured and the corresponding variable was set,
the value is parsed using the provided parser and the closure is applied on that instead.
Finally, if none of those were available, self is returned with no modifications.