|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
use crate::monero::{
|
|
|
|
|
Amount, CreateWalletForOutput, InsufficientFunds, PrivateViewKey, PublicViewKey, Transfer,
|
|
|
|
|
TransferProof, TxHash, WatchForTransfer,
|
|
|
|
|
Amount, CreateWallet, CreateWalletForOutput, InsufficientFunds, PrivateViewKey, PublicViewKey,
|
|
|
|
|
Transfer, TransferProof, TxHash, WatchForTransfer,
|
|
|
|
|
};
|
|
|
|
|
use ::monero::{Address, Network, PrivateKey, PublicKey};
|
|
|
|
|
use anyhow::Result;
|
|
|
|
@ -94,6 +94,14 @@ impl CreateWalletForOutput for Wallet {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[async_trait]
|
|
|
|
|
impl CreateWallet for Wallet {
|
|
|
|
|
async fn create_wallet(&self, file_name: &str) -> Result<()> {
|
|
|
|
|
self.inner.create_wallet(file_name).await?;
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: For retry, use `backoff::ExponentialBackoff` in production as opposed
|
|
|
|
|
// to `ConstantBackoff`.
|
|
|
|
|
#[async_trait]
|
|
|
|
|