X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelFeatures.ts;h=1b6dd141a278d76e001a56a62116ba64db01843b;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=c0be3bbad2c18daa8c3b20a82448ad614d04aab8;hpb=2f243794d7f279cdc81628a94533b70404bbe888;p=ldk-java diff --git a/ts/structs/ChannelFeatures.ts b/ts/structs/ChannelFeatures.ts index c0be3bba..1b6dd141 100644 --- a/ts/structs/ChannelFeatures.ts +++ b/ts/structs/ChannelFeatures.ts @@ -18,4 +18,36 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ChannelFeatures_free(this.ptr); } } + public ChannelFeatures clone() { + number ret = bindings.ChannelFeatures_clone(this.ptr); + const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + + public static ChannelFeatures constructor_empty() { + number ret = bindings.ChannelFeatures_empty(); + const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public static ChannelFeatures constructor_known() { + number ret = bindings.ChannelFeatures_known(); + const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public Uint8Array write() { + Uint8Array ret = bindings.ChannelFeatures_write(this.ptr); + return ret; + } + + public static Result_ChannelFeaturesDecodeErrorZ constructor_read(Uint8Array ser) { + number ret = bindings.ChannelFeatures_read(ser); + Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }