X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRoutingFees.ts;h=2fb461a4567ffaa617e6b828992ebcf07a77e37e;hb=e30b350e325e7d517ea744578876d473839ad495;hp=f71fd081fb6e6bb8ebfa874503250fa21e9a4234;hpb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;p=ldk-java diff --git a/ts/structs/RoutingFees.ts b/ts/structs/RoutingFees.ts index f71fd081..2fb461a4 100644 --- a/ts/structs/RoutingFees.ts +++ b/ts/structs/RoutingFees.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.RoutingFees_free(this.ptr); } } - public RoutingFees clone() { - number ret = bindings.RoutingFees_clone(this.ptr); - const ret_hu_conv: RoutingFees = new RoutingFees(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public number get_base_msat() { number ret = bindings.RoutingFees_get_base_msat(this.ptr); return ret; @@ -50,15 +43,33 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } - public static Result_RoutingFeesDecodeErrorZ constructor_read(Uint8Array ser) { - number ret = bindings.RoutingFees_read(ser); - Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret); + public boolean eq(RoutingFees b) { + boolean ret = bindings.RoutingFees_eq(this.ptr, b == null ? 0 : b.ptr & ~1); + this.ptrs_to.add(b); + return ret; + } + + public RoutingFees clone() { + number ret = bindings.RoutingFees_clone(this.ptr); + const ret_hu_conv: RoutingFees = new RoutingFees(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } + public number hash() { + number ret = bindings.RoutingFees_hash(this.ptr); + return ret; + } + public Uint8Array write() { Uint8Array ret = bindings.RoutingFees_write(this.ptr); return ret; } + public static Result_RoutingFeesDecodeErrorZ constructor_read(Uint8Array ser) { + number ret = bindings.RoutingFees_read(ser); + Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }