Add functionality to open monero wallet through rpc

This commit is contained in:
Daniel Karzel 2021-02-09 14:32:33 +11:00
parent 62605a318a
commit dac4443bbd
3 changed files with 47 additions and 2 deletions

View file

@ -207,6 +207,11 @@ pub trait CreateWalletForOutput {
) -> anyhow::Result<()>;
}
#[async_trait]
pub trait OpenWallet {
async fn open_wallet(&self, file_name: &str) -> anyhow::Result<()>;
}
#[async_trait]
pub trait CreateWallet {
async fn create_wallet(&self, file_name: &str) -> anyhow::Result<()>;