Test a callback

This commit is contained in:
artfuldev
2021-10-15 01:54:32 +05:30
parent 47651f3681
commit 41afeafcd3
2 changed files with 39 additions and 0 deletions

View File

@@ -91,8 +91,14 @@ interface BlockchainConfig {
Esplora(EsploraConfig config);
};
callback interface BdkProgress {
void update(f32 progress, string? message);
};
interface OnlineWallet {
[Throws=BdkError]
constructor(string descriptor, Network network, DatabaseConfig database_config, BlockchainConfig blockchain_config);
Network get_network();
[Throws=BdkError]
void sync(BdkProgress progress_update, u32? max_address_param);
};