X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fbindings.mts;fp=ts%2Fbindings.mts;h=68d39042cf788ef23a309b58fbe4580f932339d8;hb=44e2b3520205dadcda0d34de8addc7a0b7ea7362;hp=00440c9d8a8948ea7a902796058530360704e229;hpb=27b8cc09b5182166e0ee7d7071dff5abfe71b8a2;p=ldk-java diff --git a/ts/bindings.mts b/ts/bindings.mts index 00440c9d..68d39042 100644 --- a/ts/bindings.mts +++ b/ts/bindings.mts @@ -12909,6 +12909,24 @@ export function COption_ScalarZ_free(_res: bigint): void { } const nativeResponseValue = wasm.TS_COption_ScalarZ_free(_res); // debug statements here +} + // uint64_t COption_ScalarZ_clone_ptr(LDKCOption_ScalarZ *NONNULL_PTR arg); +/* @internal */ +export function COption_ScalarZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ScalarZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_ScalarZ COption_ScalarZ_clone(const struct LDKCOption_ScalarZ *NONNULL_PTR orig); +/* @internal */ +export function COption_ScalarZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ScalarZ_clone(orig); + return nativeResponseValue; } // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o); /* @internal */