pub trait MmpConfigWriter: MmpConfigReader {
// Required methods
fn save_mmp_config_sync(&self, config: &MmpConfigRecord) -> Result<()>;
fn delete_mmp_config_sync(
&self,
wallet: &WalletAddress,
currency: &str,
) -> Result<()>;
}Expand description
MMP config mutations.
Required Methods§
Sourcefn save_mmp_config_sync(&self, config: &MmpConfigRecord) -> Result<()>
fn save_mmp_config_sync(&self, config: &MmpConfigRecord) -> Result<()>
Upsert an MMP config (insert or update on wallet+currency conflict).
Sourcefn delete_mmp_config_sync(
&self,
wallet: &WalletAddress,
currency: &str,
) -> Result<()>
fn delete_mmp_config_sync( &self, wallet: &WalletAddress, currency: &str, ) -> Result<()>
Delete an MMP config for a specific wallet+currency pair.