X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FSignOrCreationError.ts;h=d2e1e36bced8ede6a6209780715b7b0b070f09ed;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=c40ee79aa9c971289a1ba867d2c4d3a9cff2268b;hpb=b0c50b891cbca28d3bd1d86276c132ff5221d8e4;p=ldk-java diff --git a/ts/structs/SignOrCreationError.ts b/ts/structs/SignOrCreationError.ts index c40ee79a..d2e1e36b 100644 --- a/ts/structs/SignOrCreationError.ts +++ b/ts/structs/SignOrCreationError.ts @@ -32,6 +32,11 @@ export class CreationError extends SignOrCreationError { this.creation_error = obj.creation_error; } } + public number clone_ptr() { + number ret = bindings.SignOrCreationError_clone_ptr(this.ptr); + return ret; + } + public SignOrCreationError clone() { number ret = bindings.SignOrCreationError_clone(this.ptr); SignOrCreationError ret_hu_conv = SignOrCreationError.constr_from_ptr(ret); @@ -39,9 +44,22 @@ export class CreationError extends SignOrCreationError { return ret_hu_conv; } + public static SignOrCreationError constructor_sign_error() { + number ret = bindings.SignOrCreationError_sign_error(); + SignOrCreationError ret_hu_conv = SignOrCreationError.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public static SignOrCreationError constructor_creation_error(CreationError a) { + number ret = bindings.SignOrCreationError_creation_error(a); + SignOrCreationError ret_hu_conv = SignOrCreationError.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + public boolean eq(SignOrCreationError b) { boolean ret = bindings.SignOrCreationError_eq(this.ptr, b == null ? 0 : b.ptr & ~1); - this.ptrs_to.add(b); return ret; }