serialize cache to json
This commit is contained in:
committed by
Some Random Crypto Guy
parent
8f10e7748f
commit
2968e45b4c
@@ -3604,6 +3604,17 @@ void Wallet_setLedgerCallback(Pointer<NativeFunction<Void Function(Pointer<Unsig
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Deprecated("TODO")
|
||||
String MONERO_Wallet_serializeCacheToJson(wallet ptr) {
|
||||
debugStart?.call('MONERO_Wallet_serializeCacheToJson');
|
||||
lib ??= MoneroC(DynamicLibrary.open(libPath));
|
||||
final ret = lib!.MONERO_Wallet_serializeCacheToJson(ptr);
|
||||
final str = ret.cast<Utf8>().toDartString();
|
||||
MONERO_free(ret.cast());
|
||||
debugEnd?.call('MONERO_Wallet_serializeCacheToJson');
|
||||
return str;
|
||||
}
|
||||
|
||||
// WalletManager
|
||||
@Deprecated("TODO")
|
||||
typedef WalletManager = Pointer<Void>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ignore_for_file: constant_identifier_names
|
||||
const String wallet2_api_c_h_sha256 = "91218f60e937753a606b1db899ee2ed66a1b02144eb2d79b950ce59804397f84";
|
||||
const String wallet2_api_c_cpp_sha256 = "282128494f3419c128dff7ed67daadd9c2ad0600d10557e829df03d9bc1ad891-0232839913b13cf0ab0bb7ad25fff0c05f37d2fe";
|
||||
const String wallet2_api_c_exp_sha256 = "b2f2355242f9ad852ccf860a60a5c7a74054f9450ba1fbf9c0f42c58dbfdee9d";
|
||||
const String wallet2_api_c_h_sha256 = "3515e4c9e537ca3efa664f0b364a3aeb106ff64337f542a262ce104c00b31235";
|
||||
const String wallet2_api_c_cpp_sha256 = "ca44a8d4a201ba6dc0a25c857e95d07bc8d514039b38cd5b3826100e8943cbcc-0232839913b13cf0ab0bb7ad25fff0c05f37d2fe";
|
||||
const String wallet2_api_c_exp_sha256 = "0561e14606106e6b0ec49fb2aefe743ff500f7c3de07557f7041e06aef9509ce";
|
||||
|
||||
@@ -4488,6 +4488,22 @@ class MoneroC {
|
||||
ffi.Void Function(ffi.Pointer<ffi.UnsignedChar> command,
|
||||
ffi.UnsignedInt cmd_len)>>)>();
|
||||
|
||||
ffi.Pointer<ffi.Char> MONERO_Wallet_serializeCacheToJson(
|
||||
ffi.Pointer<ffi.Void> wallet_ptr,
|
||||
) {
|
||||
return _MONERO_Wallet_serializeCacheToJson(
|
||||
wallet_ptr,
|
||||
);
|
||||
}
|
||||
|
||||
late final _MONERO_Wallet_serializeCacheToJsonPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Pointer<ffi.Char> Function(
|
||||
ffi.Pointer<ffi.Void>)>>('MONERO_Wallet_serializeCacheToJson');
|
||||
late final _MONERO_Wallet_serializeCacheToJson =
|
||||
_MONERO_Wallet_serializeCacheToJsonPtr.asFunction<
|
||||
ffi.Pointer<ffi.Char> Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
ffi.Pointer<ffi.Void> MONERO_WalletManager_createWallet(
|
||||
ffi.Pointer<ffi.Void> wm_ptr,
|
||||
ffi.Pointer<ffi.Char> path,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const moneroChecksum = {
|
||||
wallet2_api_c_h_sha256: "91218f60e937753a606b1db899ee2ed66a1b02144eb2d79b950ce59804397f84",
|
||||
wallet2_api_c_cpp_sha256: "282128494f3419c128dff7ed67daadd9c2ad0600d10557e829df03d9bc1ad891-0232839913b13cf0ab0bb7ad25fff0c05f37d2fe",
|
||||
wallet2_api_c_exp_sha256: "b2f2355242f9ad852ccf860a60a5c7a74054f9450ba1fbf9c0f42c58dbfdee9d",
|
||||
wallet2_api_c_h_sha256: "3515e4c9e537ca3efa664f0b364a3aeb106ff64337f542a262ce104c00b31235",
|
||||
wallet2_api_c_cpp_sha256: "ca44a8d4a201ba6dc0a25c857e95d07bc8d514039b38cd5b3826100e8943cbcc-0232839913b13cf0ab0bb7ad25fff0c05f37d2fe",
|
||||
wallet2_api_c_exp_sha256: "0561e14606106e6b0ec49fb2aefe743ff500f7c3de07557f7041e06aef9509ce",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user