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§
Sourcefn get_mmp_config_sync(
&self,
wallet: &WalletAddress,
currency: &str,
) -> Result<Option<MmpConfigRecord>>
fn get_mmp_config_sync( &self, wallet: &WalletAddress, currency: &str, ) -> Result<Option<MmpConfigRecord>>
Load MMP config for a specific wallet+currency pair.
Sourcefn get_all_mmp_configs_for_wallet_sync(
&self,
wallet: &WalletAddress,
) -> Result<Vec<MmpConfigRecord>>
fn get_all_mmp_configs_for_wallet_sync( &self, wallet: &WalletAddress, ) -> Result<Vec<MmpConfigRecord>>
Load all MMP configs for a wallet (all currencies).
Sourcefn get_all_mmp_configs_sync(&self) -> Result<Vec<MmpConfigRecord>>
fn get_all_mmp_configs_sync(&self) -> Result<Vec<MmpConfigRecord>>
Load all MMP configs across all wallets.