Skip to main content

NyxdClient

Struct NyxdClient 

Source
pub struct NyxdClient<C, S = NoSigner> { /* private fields */ }

Implementations§

Source§

impl NyxdClient<HttpClient>

Source§

impl NyxdClient<ReqwestRpcClient>

Source§

impl<C> NyxdClient<C>

Source

pub fn new(config: Config, client: C) -> Self

Source§

impl NyxdClient<HttpClient, DirectSecp256k1HdWallet>

Source§

impl NyxdClient<ReqwestRpcClient, DirectSecp256k1HdWallet>

Source§

impl<C, S> NyxdClient<C, S>
where S: OfflineSigner,

Source

pub fn connect_with_signer( config: Config, client: C, signer: S, ) -> NyxdClient<C, S>

Source§

impl<S> NyxdClient<HttpClient, S>

Source

pub fn change_endpoint<U>(&mut self, new_endpoint: U) -> Result<(), NyxdError>

Source§

impl<C, S> NyxdClient<C, S>

Source

pub fn new_signing(config: Config, client: C, signer: S) -> Self
where S: OfflineSigner,

Source

pub fn clone_query_client(&self) -> NyxdClient<C>
where C: Clone,

Source

pub fn current_config(&self) -> &Config

Source

pub fn current_chain_details(&self) -> &ChainDetails

Source

pub fn set_mixnet_contract_address(&mut self, address: AccountId)

Source

pub fn set_vesting_contract_address(&mut self, address: AccountId)

Source

pub fn set_ecash_contract_address(&mut self, address: AccountId)

Source

pub fn set_multisig_contract_address(&mut self, address: AccountId)

Source

pub fn set_node_families_contract_address(&mut self, address: AccountId)

Source

pub fn set_simulated_gas_multiplier(&mut self, multiplier: f32)

Source

pub fn get_nym_contracts(&self) -> TypedNymContracts

Source

pub fn get_chain_details(&self) -> ChainDetails

Source§

impl<C, S> NyxdClient<C, S>
where C: TendermintRpcClient + Send + Sync, S: Send + Sync,

Source

pub async fn get_account_public_key( &self, address: &AccountId, ) -> Result<Option<PublicKey>, NyxdError>

Source

pub async fn get_current_block_timestamp( &self, ) -> Result<TendermintTime, NyxdError>

Source

pub async fn get_block_timestamp( &self, height: Option<u32>, ) -> Result<TendermintTime, NyxdError>

Source

pub async fn get_block( &self, height: Option<u32>, ) -> Result<BlockResponse, NyxdError>

Source

pub async fn get_current_block_height(&self) -> Result<Height, NyxdError>

Source

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

pub async fn try_get_cw2_contract_version( &self, contract_address: &AccountId, ) -> Option<ContractVersion>

Source

pub async fn try_get_contract_build_information( &self, contract_address: &AccountId, ) -> Option<ContractBuildInformation>

Source§

impl<C, S> NyxdClient<C, S>

Source

pub fn signing_account(&self) -> Result<&AccountData, NyxdError>

Source

pub fn address(&self) -> AccountId

Source

pub fn mix_coin(&self, amount: u128) -> Coin

Source

pub fn mix_coins(&self, amount: u128) -> Vec<Coin>

Source

pub fn cw_address(&self) -> Addr

Source

pub async fn account_sequence(&self) -> Result<SequenceResponse, NyxdError>

Source

pub fn wrap_contract_execute_message<M>( &self, contract_address: &AccountId, msg: &M, funds: Vec<Coin>, ) -> Result<MsgExecuteContract, NyxdError>
where M: ?Sized + Serialize,

Source

pub async fn simulate<I, M>( &self, messages: I, memo: impl Into<String> + Send + 'static, ) -> Result<SimulateResponse, NyxdError>
where I: IntoIterator<Item = M> + Send, M: Msg,

Source

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

Source

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

Source

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

Source

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

Source

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>
where M: ?Sized + Serialize + Sync,

Source

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>
where I: IntoIterator<Item = (M, Vec<Coin>)> + Send, M: Serialize,

Source

pub async fn upload( &self, wasm_code: Vec<u8>, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<UploadResult, NyxdError>

Source

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>
where M: ?Sized + Serialize + Sync,

Source

pub async fn update_admin( &self, contract_address: &AccountId, new_admin: &AccountId, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<ChangeAdminResult, NyxdError>

Source

pub async fn clear_admin( &self, contract_address: &AccountId, memo: impl Into<String> + Send + 'static, fee: Option<Fee>, ) -> Result<ChangeAdminResult, NyxdError>

Source

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>
where M: ?Sized + Serialize + Sync,

Trait Implementations§

Source§

impl<C: Debug, S: Debug> Debug for NyxdClient<C, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<C, S> NymContractsProvider for NyxdClient<C, S>

Source§

impl<C, S> OfflineSigner for NyxdClient<C, S>
where S: OfflineSigner,

Source§

type Error = <S as OfflineSigner>::Error

Source§

fn get_accounts(&self) -> &[AccountData]

Source§

fn sign_direct_with_account( &self, signer: &AccountData, sign_doc: SignDoc, ) -> Result<Raw, Self::Error>

Source§

fn signer_addresses(&self) -> Vec<AccountId>

Source§

fn find_account( &self, signer_address: &AccountId, ) -> Result<&AccountData, Self::Error>

Source§

fn sign_raw_with_account<M: AsRef<[u8]>>( &self, signer: &AccountData, message: M, ) -> Result<Signature, Self::Error>

Source§

fn sign_raw<M: AsRef<[u8]>>( &self, signer_address: &AccountId, message: M, ) -> Result<Signature, Self::Error>

Source§

fn sign_direct( &self, signer_address: &AccountId, sign_doc: SignDoc, ) -> Result<Raw, Self::Error>

Source§

impl<C, S> SigningCosmWasmClient for NyxdClient<C, S>

Source§

fn gas_price(&self) -> &GasPrice

Source§

fn simulated_gas_multiplier(&self) -> f32

Source§

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,

Source§

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,

Source§

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>>
where M: ?Sized + Serialize + Sync + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

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,

Source§

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,

Source§

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>>
where M: ?Sized + Serialize + Sync + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source§

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>>
where M: ?Sized + Serialize + Sync + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source§

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>>
where I: IntoIterator<Item = (M, Vec<Coin>)> + Send + 'async_trait, M: Serialize + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

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,

Source§

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>>
where I: IntoIterator<Item = (AccountId, Vec<Coin>)> + Send + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

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,

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,

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,

Broadcast a transaction to the network and monitors its inclusion in a block.
Source§

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>
where C: TendermintRpcClient + Send + Sync, S: Send + Sync,

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,

/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>>
where V: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

/abci_query: query the ABCI application
Source§

fn block<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
where H: Into<Height> + Send + 'async_trait, Self: 'async_trait, 'life0: '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,

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

/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>>
where H: Into<Height> + Send + 'async_trait, Self: 'async_trait, 'life0: '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,

/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>>
where H: Into<Height> + Send + 'async_trait, Self: 'async_trait, 'life0: '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,

/block_results: get ABCI results for the latest block.
/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>>
where H: Into<Height> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

/blockchain: get block headers for min <= height <= max. Read more
Source§

fn broadcast_tx_async<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
where T: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: '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>>
where T: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: '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>>
where T: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: '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>>
where H: Into<Height> + Send + 'async_trait, Self: 'async_trait, 'life0: '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>>
where H: Into<Height> + Send + 'async_trait, Self: 'async_trait, 'life0: '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,

/consensus_state: get current consensus state
Source§

fn validators<'life0, 'async_trait, H>( &'life0 self, height: H, paging: Paging, ) -> Pin<Box<dyn Future<Output = Result<Response, TendermintRpcError>> + Send + 'async_trait>>
where H: Into<Height> + Send + 'async_trait, Self: 'async_trait, 'life0: '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,

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

/commit: get the latest block commit
Source§

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

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,

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

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

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

/tx: find transaction by hash.
/tx_search: search for transactions with their results.
Source§

fn perform<'life0, 'async_trait, R>( &'life0 self, request: R, ) -> Pin<Box<dyn Future<Output = Result<R::Output, TendermintRpcError>> + Send + 'async_trait>>
where R: SimpleRequest + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Perform a request against the RPC endpoint. Read more

Auto Trait Implementations§

§

impl<C, S> Freeze for NyxdClient<C, S>
where C: Freeze, S: Freeze,

§

impl<C, S> RefUnwindSafe for NyxdClient<C, S>

§

impl<C, S> Send for NyxdClient<C, S>
where C: Send, S: Send,

§

impl<C, S> Sync for NyxdClient<C, S>
where C: Sync, S: Sync,

§

impl<C, S> Unpin for NyxdClient<C, S>
where C: Unpin, S: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>, U: Sized,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. 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> Classify for T

Source§

type Classified = T

Source§

fn classify(self) -> T

Source§

impl<T> CosmWasmClient for T

Source§

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>>
where Req: Message + 'async_trait, Res: Message + Default + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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>>
where T: Into<Vec<u8>> + Send + 'async_trait, Self: Sync + 'async_trait, 'life0: '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>>
where T: Into<Vec<u8>> + Send + 'async_trait, Self: Sync + 'async_trait, 'life0: '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>>
where T: Into<Vec<u8>> + Send + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait,

Broadcast a transaction, returning the response from DeliverTx.
Source§

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>>
where T: Into<Vec<u8>> + Send + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

impl<T> Deprecatable for T

Source§

fn deprecate(self) -> Deprecated<Self>
where Self: Sized,

Source§

impl<C> DkgQueryClient for C

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

fn get_vk_share<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, owner: String, ) -> Pin<Box<dyn Future<Output = Result<VkShareResponse, NyxdError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_vk_shares_paged<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, start_after: Option<String>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<PagedVKSharesResponse, NyxdError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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 T
where T: CosmWasmClient,

Source§

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

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<C> GroupQueryClient for C

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

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<C> MixnetQueryClient for C

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

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,

Checks whether there is a bonded gateway associated with the provided client’s address
Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

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,

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,

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,

Gets all the delegations on the entire network
Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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 T

Source§

fn get_rewarded_set<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<EpochRewardedSet, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<C> MultisigQueryClient for C

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

fn with_optional<F, T>(self, f: F, val: Option<T>) -> Self
where F: Fn(Self, T) -> Self, Self: Sized,

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>
where F: Fn(Self, T) -> Self, V: Fn(&T) -> Result<(), E>, Self: Sized,

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
where F: Fn(Self, T) -> Self, T: FromStr, <T as FromStr>::Err: Debug, Self: Sized,

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
where F: Fn(Self, T) -> Self, G: Fn(&str) -> T, Self: Sized,

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

impl<T> PagedDkgQueryClient for T
where T: DkgQueryClient,

Source§

fn get_all_current_dealers<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<DealerDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_epoch_dealers<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, ) -> Pin<Box<dyn Future<Output = Result<Vec<DealerDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_epoch_dealers_addresses<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, ) -> Pin<Box<dyn Future<Output = Result<Vec<DealerDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_dealer_indices<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<(Addr, NodeIndex)>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_verification_key_shares<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, ) -> Pin<Box<dyn Future<Output = Result<Vec<ContractVKShare>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedEcashQueryClient for T

Source§

fn get_all_blacklisted_accounts<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<BlacklistedAccount>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_deposits<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<DepositData>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedGroupQueryClient for T

Source§

fn get_all_members<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Member>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedMixnetQueryClient for T

Source§

fn get_all_nymnode_bonds<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<NymNodeBond>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_nymnodes_detailed<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<NymNodeDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_unbonded_nymnodes<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<UnbondedNymNode>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_unbonded_nymnodes_by_owner<'life0, 'life1, 'async_trait>( &'life0 self, owner: &'life1 AccountId, ) -> Pin<Box<dyn Future<Output = Result<Vec<UnbondedNymNode>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_all_unbonded_nymnodes_by_identity<'life0, 'life1, 'async_trait>( &'life0 self, identity_key: IdentityKeyRef<'life1>, ) -> Pin<Box<dyn Future<Output = Result<Vec<UnbondedNymNode>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_all_mixnode_bonds<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<MixNodeBond>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_mixnodes_detailed<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<MixNodeDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_unbonded_mixnodes<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<(NodeId, UnbondedMixnode)>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_unbonded_mixnodes_by_owner<'life0, 'life1, 'async_trait>( &'life0 self, owner: &'life1 AccountId, ) -> Pin<Box<dyn Future<Output = Result<Vec<(NodeId, UnbondedMixnode)>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_all_unbonded_mixnodes_by_identity<'life0, 'life1, 'async_trait>( &'life0 self, identity_key: IdentityKeyRef<'life1>, ) -> Pin<Box<dyn Future<Output = Result<Vec<(NodeId, UnbondedMixnode)>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_all_gateways<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<GatewayBond>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_preassigned_gateway_ids<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<PreassignedId>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_single_mixnode_delegations<'life0, 'async_trait>( &'life0 self, mix_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Delegation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_delegator_delegations<'life0, 'life1, 'async_trait>( &'life0 self, delegation_owner: &'life1 AccountId, ) -> Pin<Box<dyn Future<Output = Result<Vec<Delegation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_all_network_delegations<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Delegation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_pending_epoch_events<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingEpochEvent>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_pending_interval_events<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingIntervalEvent>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_full_nym_node_version_history<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<HistoricalNymNodeVersionEntry>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedMultisigQueryClient for T

Source§

fn get_all_proposals<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProposalResponse>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_voters<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<VoterDetail>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_votes<'life0, 'async_trait>( &'life0 self, proposal_id: u64, ) -> Pin<Box<dyn Future<Output = Result<Vec<VoteInfo>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedNetworkMonitorsQueryClient for T

Source§

fn get_all_network_monitor_agents<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<AuthorisedNetworkMonitor>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedNodeFamiliesQueryClient for T

Source§

fn get_all_families<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<NodeFamily>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_family_members_for_family<'life0, 'async_trait>( &'life0 self, family_id: NodeFamilyId, ) -> Pin<Box<dyn Future<Output = Result<Vec<FamilyMemberRecord>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_family_members<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<FamilyMemberRecord>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_pending_invitations_for_family<'life0, 'async_trait>( &'life0 self, family_id: NodeFamilyId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingFamilyInvitationDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_pending_invitations_for_node<'life0, 'async_trait>( &'life0 self, node_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingFamilyInvitationDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_pending_invitations<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingFamilyInvitationDetails>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_past_invitations_for_family<'life0, 'async_trait>( &'life0 self, family_id: NodeFamilyId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PastFamilyInvitation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_past_invitations_for_node<'life0, 'async_trait>( &'life0 self, node_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PastFamilyInvitation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_past_invitations<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<PastFamilyInvitation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_past_members_for_family<'life0, 'async_trait>( &'life0 self, family_id: NodeFamilyId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PastFamilyMember>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_past_members_for_node<'life0, 'async_trait>( &'life0 self, node_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PastFamilyMember>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedPerformanceQueryClient for T

Source§

fn get_all_node_performance<'life0, 'async_trait>( &'life0 self, node_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<Vec<EpochNodePerformance>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_epoch_measurements<'life0, 'async_trait>( &'life0 self, node_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<Vec<NodeMeasurement>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_epoch_performance<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, ) -> Pin<Box<dyn Future<Output = Result<Vec<NodePerformance>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_full_historical_performance<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<HistoricalPerformance>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_network_monitors<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<NetworkMonitorInformation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_retired_network_monitors<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<RetiredNetworkMonitor>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<T> PagedVestingQueryClient for T

Source§

fn get_all_vesting_delegations<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<VestingDelegation>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_accounts_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<BaseVestingAccountInfo>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_accounts_vesting_coins<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<AccountVestingCoins>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

impl<C> PerformanceQueryClient for C

Source§

fn query_performance_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,

Source§

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,

Source§

fn get_node_performance<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, node_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<NodePerformanceResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_node_performance_paged<'life0, 'async_trait>( &'life0 self, node_id: NodeId, start_after: Option<EpochId>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<NodePerformancePagedResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_node_measurements<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, node_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<NodeMeasurementsResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_epoch_measurements_paged<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, start_after: Option<NodeId>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<EpochMeasurementsPagedResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_epoch_performance_paged<'life0, 'async_trait>( &'life0 self, epoch_id: EpochId, start_after: Option<NodeId>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<EpochPerformancePagedResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_full_historical_performance_paged<'life0, 'async_trait>( &'life0 self, start_after: Option<(EpochId, NodeId)>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<FullHistoricalPerformancePagedResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_network_monitor<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 AccountId, ) -> Pin<Box<dyn Future<Output = Result<NetworkMonitorResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_network_monitors_paged<'life0, 'async_trait>( &'life0 self, start_after: Option<String>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<NetworkMonitorsPagedResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_retired_network_monitors_paged<'life0, 'async_trait>( &'life0 self, start_after: Option<String>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<RetiredNetworkMonitorsPagedResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_last_submission<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<LastSubmission, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

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> StakingQueryClient for T
where T: CosmWasmClient,

Source§

fn historical_info<'life0, 'async_trait>( &'life0 self, height: i64, ) -> Pin<Box<dyn Future<Output = Result<QueryHistoricalInfoResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn validator<'life0, 'async_trait>( &'life0 self, validator_addr: AccountId, ) -> Pin<Box<dyn Future<Output = Result<QueryValidatorResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn validators<'life0, 'async_trait>( &'life0 self, status: String, pagination: Option<PageRequest>, ) -> Pin<Box<dyn Future<Output = Result<QueryValidatorsResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

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<T> TxSigner for T
where T: OfflineSigner,

Source§

fn signer_public_key( &self, signer_address: &AccountId, ) -> Option<SignerPublicKey>

Source§

fn sign_amino( &self, _signer_address: &AccountId, _messages: Vec<Any>, _fee: Fee, _memo: impl Into<String> + Send + 'static, _signer_data: SignerData, ) -> Result<Raw, <Self as OfflineSigner>::Error>

Source§

fn sign_direct( &self, signer_address: &AccountId, messages: Vec<Any>, fee: Fee, memo: impl Into<String> + Send + 'static, signer_data: SignerData, ) -> Result<Raw, <Self as OfflineSigner>::Error>

Source§

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

Source§

fn vzip(self) -> V

Source§

impl<C> VestingQueryClient for C

Source§

fn query_vesting_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,

Source§

fn get_vesting_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,

Source§

fn get_vesting_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,

Source§

fn get_all_accounts_paged<'life0, 'async_trait>( &'life0 self, start_next_after: Option<String>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<AccountsResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn get_all_accounts_vesting_coins_paged<'life0, 'async_trait>( &'life0 self, start_next_after: Option<String>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<VestingCoinsResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source§

fn locked_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, block_time: Option<Timestamp>, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn spendable_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, block_time: Option<Timestamp>, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn vested_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, block_time: Option<Timestamp>, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn vesting_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, block_time: Option<Timestamp>, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn vesting_start_time<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Timestamp, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn vesting_end_time<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Timestamp, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn original_vesting<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<OriginalVestingResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_historical_vesting_staking_reward<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_spendable_vested_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_spendable_reward_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_delegated_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_pledged_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_staked_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_withdrawn_coins<'life0, 'life1, 'async_trait>( &'life0 self, vesting_account_address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_account<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Account, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_mixnode_pledge<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<PledgeData>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_gateway_pledge<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<PledgeData>, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_current_vesting_period<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Period, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_vesting_delegation<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, mix_id: NodeId, block_timestamp_secs: u64, ) -> Pin<Box<dyn Future<Output = Result<VestingDelegation, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_total_delegation_amount<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, mix_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<Coin, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_delegation_timestamps<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 str, mix_id: NodeId, ) -> Pin<Box<dyn Future<Output = Result<DelegationTimesResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_all_vesting_delegations_paged<'life0, 'async_trait>( &'life0 self, start_after: Option<(u32, NodeId, u64)>, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<AllDelegationsResponse, NyxdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

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