X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FOutPoint.ts;fp=ts%2Fstructs%2FOutPoint.ts;h=508f2e13f162b7067031a4b9e20bb39bbd20758a;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=decbf7b744897d63ce403fff6ea7fbb392b066e8;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/OutPoint.ts b/ts/structs/OutPoint.ts index decbf7b7..508f2e13 100644 --- a/ts/structs/OutPoint.ts +++ b/ts/structs/OutPoint.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.OutPoint_free(this.ptr); } } - public OutPoint clone() { - number ret = bindings.OutPoint_clone(this.ptr); - const ret_hu_conv: OutPoint = new OutPoint(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public Uint8Array get_txid() { Uint8Array ret = bindings.OutPoint_get_txid(this.ptr); return ret; @@ -50,6 +43,13 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public OutPoint clone() { + number ret = bindings.OutPoint_clone(this.ptr); + const ret_hu_conv: OutPoint = new OutPoint(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array to_channel_id() { Uint8Array ret = bindings.OutPoint_to_channel_id(this.ptr); return ret; @@ -60,10 +60,9 @@ import * as bindings from '../bindings' // TODO: figure out location return ret; } - public static OutPoint constructor_read(Uint8Array ser) { + public static Result_OutPointDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.OutPoint_read(ser); - const ret_hu_conv: OutPoint = new OutPoint(null, ret); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }