crate::ix!();
pub trait WalletInitInterface:
HasWalletSupport
+ AddWalletOptions
+ ParameterInteraction
+ Construct
{ }
pub trait HasWalletSupport {
fn has_wallet_support(&self) -> bool;
}
pub trait AddWalletOptions {
fn add_wallet_options(&self, argsman: &mut ArgsManager);
}
pub trait ParameterInteraction {
fn parameter_interaction(&self) -> bool;
}
pub trait Construct {
fn construct(&self, node: &mut NodeContext);
}
pub trait AttachChain {
fn attach_chain<'a>(
wallet: &Arc<Wallet>,
chain: &'a mut dyn ChainInterface,
rescan_required: bool,
error: &mut BilingualStr,
warnings: &mut Vec<BilingualStr>) -> bool;
}
pub trait Create {
fn create(
context: &mut WalletContext,
name: &String,
database: Box<WalletDatabase>,
wallet_creation_flags: u64,
error: &mut BilingualStr,
warnings: &mut Vec<BilingualStr>) -> Arc<Wallet>;
}