Allow using configs for database
This commit is contained in:
13
src/bdk.udl
13
src/bdk.udl
@@ -44,8 +44,19 @@ enum BdkError {
|
||||
"Sled",
|
||||
};
|
||||
|
||||
dictionary SledDbConfiguration {
|
||||
string path;
|
||||
string tree_name;
|
||||
};
|
||||
|
||||
[Enum]
|
||||
interface DatabaseConfig {
|
||||
Memory(string junk);
|
||||
Sled(SledDbConfiguration configuration);
|
||||
};
|
||||
|
||||
interface OfflineWallet {
|
||||
[Throws=BdkError]
|
||||
constructor(string descriptor);
|
||||
constructor(string descriptor, DatabaseConfig database_config);
|
||||
string get_new_address();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user