X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRouteHintHop.ts;h=dc25be939c4cfce29f38e340fd51729b78b9e3b9;hb=c6bac88847b7c09560af81f00ba8dd3c2ebe3a19;hp=461b00ddd08f5b2a6466477ae287483858943f8d;hpb=0d48e557e83ef085cc92c2de63b9c81c061ce78c;p=ldk-java diff --git a/ts/structs/RouteHintHop.ts b/ts/structs/RouteHintHop.ts index 461b00dd..dc25be93 100644 --- a/ts/structs/RouteHintHop.ts +++ b/ts/structs/RouteHintHop.ts @@ -103,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; + } + }