X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FStaticPaymentOutputDescriptor.ts;h=e126ff06063f7a1db28ca898afdb9b0a0bdbb80f;hb=ebbb6f57d6b5072730fd50ef3a011db1d6577ad9;hp=f4585c8391566589a07fc9db76e2bde4de9918da;hpb=276893d3b8bd3fcb2bb10e3cab73a69d34831909;p=ldk-java diff --git a/ts/structs/StaticPaymentOutputDescriptor.ts b/ts/structs/StaticPaymentOutputDescriptor.ts index f4585c83..e126ff06 100644 --- a/ts/structs/StaticPaymentOutputDescriptor.ts +++ b/ts/structs/StaticPaymentOutputDescriptor.ts @@ -67,4 +67,15 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public Uint8Array write() { + Uint8Array ret = bindings.StaticPaymentOutputDescriptor_write(this.ptr); + return ret; + } + + public static Result_StaticPaymentOutputDescriptorDecodeErrorZ constructor_read(Uint8Array ser) { + number ret = bindings.StaticPaymentOutputDescriptor_read(ser); + Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }