X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FStaticPaymentOutputDescriptor.ts;fp=ts%2Fstructs%2FStaticPaymentOutputDescriptor.ts;h=e126ff06063f7a1db28ca898afdb9b0a0bdbb80f;hb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;hp=f4585c8391566589a07fc9db76e2bde4de9918da;hpb=fb06c6af463da9aa188980c750f787f5e936634a;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; + } + }