X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FFilesystemPersister.ts;fp=ts%2Fstructs%2FFilesystemPersister.ts;h=7c0e2961fb9287a601b028c484c73326bce5c04e;hb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;hp=c92e5b702d1defc4c12753652e5b43e939c7fa9c;hpb=fb06c6af463da9aa188980c750f787f5e936634a;p=ldk-java diff --git a/ts/structs/FilesystemPersister.ts b/ts/structs/FilesystemPersister.ts index c92e5b70..7c0e2961 100644 --- a/ts/structs/FilesystemPersister.ts +++ b/ts/structs/FilesystemPersister.ts @@ -18,25 +18,18 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.FilesystemPersister_free(this.ptr); } } - public static FilesystemPersister constructor_new(Uint8Array path_to_channel_data) { + public static FilesystemPersister constructor_new(String path_to_channel_data) { number ret = bindings.FilesystemPersister_new(path_to_channel_data); const ret_hu_conv: FilesystemPersister = new FilesystemPersister(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } - public Uint8Array get_data_dir() { - Uint8Array ret = bindings.FilesystemPersister_get_data_dir(this.ptr); + public String get_data_dir() { + String ret = bindings.FilesystemPersister_get_data_dir(this.ptr); return ret; } - public static Result_NoneErrorZ constructor_persist_manager(Uint8Array data_dir, ChannelManager manager) { - number ret = bindings.FilesystemPersister_persist_manager(data_dir, manager == null ? 0 : manager.ptr & ~1); - Result_NoneErrorZ ret_hu_conv = Result_NoneErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(manager); - return ret_hu_conv; - } - public Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ read_channelmonitors(KeysInterface keys_manager) { number ret = bindings.FilesystemPersister_read_channelmonitors(this.ptr, keys_manager == null ? 0 : keys_manager.ptr); Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ ret_hu_conv = Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ.constr_from_ptr(ret);