ex3_core_registry_client

Trait CoreRegistry

Source
pub trait CoreRegistry: Send + Sync {
Show 33 methods // Required methods fn get_asset_by_id<'life0, 'async_trait>( &'life0 self, asset_id: CandidAssetId, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidRegisteredCryptoAsset>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_assets_by_page<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidRegisteredCryptoAsset>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_global_withdrawal_fee_to<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidWalletRegisterId>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_chains_confirmation_times_by_page<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidChainNetworkConfirmationTime>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_spot_market_initial_fee_to<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidWalletRegisterId>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_spot_market_initial_trading_fee<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidSpotMarketTradingFee>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_spot_markets_by_page<'life0, 'async_trait>( &'life0 self, input: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidRegisteredSpotMarket>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_meme_market_initial_trading_settings<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidMemeMarketTradingSettings>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_meme_market_initial_trading_fee<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidMemeMarketTradingFee>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_meme_market_initial_fee_to<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidWalletRegisterId>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_meme_markets_by_page<'life0, 'async_trait>( &'life0 self, input: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidRegisteredMemeMarket>>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_node_providers<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<Vec<Principal>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_node_provider_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_wallet_registry_ids<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<CanisterId>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_wallet_registries<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<WalletRegistryInfo>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_wallet_registry_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_wallet_registry_setting<'life0, 'async_trait>( &'life0 self, wallet_registry_id: CanisterId, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidWalletRegistrySetting>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_secret_vault_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_secret_vault_ids<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<CanisterId>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_secret_vaults<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<SecretVaultInfo>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_secret_vault_setting<'life0, 'async_trait>( &'life0 self, secret_vault_id: CanisterId, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidSecretVaultSetting>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_balance_vault_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_balance_vault_ids<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<CanisterId>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_balance_vaults<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<BalanceVaultInfo>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_balance_vault_setting<'life0, 'async_trait>( &'life0 self, balance_vault_id: CanisterId, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidBalanceVaultSetting>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_current_block_height<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<CandidBlockHeight>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_current_snapshot_height<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidBlockHeight>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_sharding_report_progress_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<ShardingReportProgressInfo>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn apply_to_be_a_submitter<'life0, 'async_trait>( &'life0 self, height: CandidBlockHeight, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn submit_sharding_sub_report<'life0, 'async_trait>( &'life0 self, block_height: CandidBlockHeight, sub_report: ShardingSubReport, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validate_or_drop_sharding_report<'life0, 'async_trait>( &'life0 self, block_height: CandidBlockHeight, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn commit_sharding_report<'life0, 'async_trait>( &'life0 self, block_height: CandidBlockHeight, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<bool>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn report_gas_price<'life0, 'async_trait>( &'life0 self, chain: CandidChain, gas_price: CandidAssetAmount, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}

Required Methods§

Source

fn get_asset_by_id<'life0, 'async_trait>( &'life0 self, asset_id: CandidAssetId, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidRegisteredCryptoAsset>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get asset information by asset id

  • asset_id - the asset id If the asset is not registered, return None If the asset is registered, return the asset information
Source

fn get_assets_by_page<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidRegisteredCryptoAsset>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_global_withdrawal_fee_to<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidWalletRegisterId>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_chains_confirmation_times_by_page<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidChainNetworkConfirmationTime>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_spot_market_initial_fee_to<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidWalletRegisterId>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_spot_market_initial_trading_fee<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidSpotMarketTradingFee>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_spot_markets_by_page<'life0, 'async_trait>( &'life0 self, input: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidRegisteredSpotMarket>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_meme_market_initial_trading_settings<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidMemeMarketTradingSettings>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_meme_market_initial_trading_fee<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidMemeMarketTradingFee>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_meme_market_initial_fee_to<'life0, 'async_trait>( &'life0 self, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<Option<CandidWalletRegisterId>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_meme_markets_by_page<'life0, 'async_trait>( &'life0 self, input: GetPageInput, height: Option<CandidBlockHeight>, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<GetPageOutput<CandidRegisteredMemeMarket>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_node_providers<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<Vec<Principal>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_node_provider_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_wallet_registry_ids<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<CanisterId>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_wallet_registries<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<WalletRegistryInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_wallet_registry_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_wallet_registry_setting<'life0, 'async_trait>( &'life0 self, wallet_registry_id: CanisterId, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidWalletRegistrySetting>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_secret_vault_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_secret_vault_ids<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<CanisterId>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_secret_vaults<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<SecretVaultInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_secret_vault_setting<'life0, 'async_trait>( &'life0 self, secret_vault_id: CanisterId, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidSecretVaultSetting>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_balance_vault_count<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_balance_vault_ids<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<CanisterId>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_balance_vaults<'life0, 'async_trait>( &'life0 self, pager: GetPageInput, ) -> Pin<Box<dyn Future<Output = CanisterResult<GetPageOutput<BalanceVaultInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_balance_vault_setting<'life0, 'async_trait>( &'life0 self, balance_vault_id: CanisterId, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidBalanceVaultSetting>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_current_block_height<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<CandidBlockHeight>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_current_snapshot_height<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<CandidBlockHeight>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_sharding_report_progress_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CanisterResult<ShardingReportProgressInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn apply_to_be_a_submitter<'life0, 'async_trait>( &'life0 self, height: CandidBlockHeight, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn submit_sharding_sub_report<'life0, 'async_trait>( &'life0 self, block_height: CandidBlockHeight, sub_report: ShardingSubReport, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn validate_or_drop_sharding_report<'life0, 'async_trait>( &'life0 self, block_height: CandidBlockHeight, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn commit_sharding_report<'life0, 'async_trait>( &'life0 self, block_height: CandidBlockHeight, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<bool>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn report_gas_price<'life0, 'async_trait>( &'life0 self, chain: CandidChain, gas_price: CandidAssetAmount, ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§