Skip to main content

MmpConfigReader

Trait MmpConfigReader 

Source
pub trait MmpConfigReader: Send + Sync {
    // Required methods
    fn get_mmp_config_sync(
        &self,
        wallet: &WalletAddress,
        currency: &str,
    ) -> Result<Option<MmpConfigRecord>>;
    fn get_all_mmp_configs_for_wallet_sync(
        &self,
        wallet: &WalletAddress,
    ) -> Result<Vec<MmpConfigRecord>>;
    fn get_all_mmp_configs_sync(&self) -> Result<Vec<MmpConfigRecord>>;
}
Expand description

Read-only MMP config queries.

Required Methods§

Source

fn get_mmp_config_sync( &self, wallet: &WalletAddress, currency: &str, ) -> Result<Option<MmpConfigRecord>>

Load MMP config for a specific wallet+currency pair.

Source

fn get_all_mmp_configs_for_wallet_sync( &self, wallet: &WalletAddress, ) -> Result<Vec<MmpConfigRecord>>

Load all MMP configs for a wallet (all currencies).

Source

fn get_all_mmp_configs_sync(&self) -> Result<Vec<MmpConfigRecord>>

Load all MMP configs across all wallets.

Implementors§