X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRouteHintHop.ts;h=dc25be939c4cfce29f38e340fd51729b78b9e3b9;hb=c6bac88847b7c09560af81f00ba8dd3c2ebe3a19;hp=eb888ebe779fa971b58bf4c7da2c845504850fdb;hpb=a7653cf8717b1f9df4d3f4c4bd0b1f50f3bbc230;p=ldk-java diff --git a/ts/structs/RouteHintHop.ts b/ts/structs/RouteHintHop.ts index eb888ebe..dc25be93 100644 --- a/ts/structs/RouteHintHop.ts +++ b/ts/structs/RouteHintHop.ts @@ -45,7 +45,6 @@ import * as bindings from '../bindings' // TODO: figure out location public void set_fees(RoutingFees val) { bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1); - this.ptrs_to.add(val); } public number get_cltv_expiry_delta() { @@ -83,7 +82,6 @@ import * as bindings from '../bindings' // TODO: figure out location number ret = bindings.RouteHintHop_new(src_node_id_arg, short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr & ~1, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr); const ret_hu_conv: RouteHintHop = new RouteHintHop(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); - ret_hu_conv.ptrs_to.add(fees_arg); return ret_hu_conv; } @@ -105,4 +103,15 @@ import * as bindings from '../bindings' // TODO: figure out location return ret; } + public Uint8Array write() { + Uint8Array ret = bindings.RouteHintHop_write(this.ptr); + return ret; + } + + public static Result_RouteHintHopDecodeErrorZ constructor_read(Uint8Array ser) { + number ret = bindings.RouteHintHop_read(ser); + Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }