X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FFundingLocked.ts;h=e03acf3e3dff529d69fa34b31ee4e25e1f6219c8;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=b298b222e54da9ac1b911cae8adabd23d07a50bc;hpb=2f243794d7f279cdc81628a94533b70404bbe888;p=ldk-java diff --git a/ts/structs/FundingLocked.ts b/ts/structs/FundingLocked.ts index b298b222..e03acf3e 100644 --- a/ts/structs/FundingLocked.ts +++ b/ts/structs/FundingLocked.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.FundingLocked_free(this.ptr); } } - public FundingLocked clone() { - number ret = bindings.FundingLocked_clone(this.ptr); - const ret_hu_conv: FundingLocked = new FundingLocked(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public Uint8Array get_channel_id() { Uint8Array ret = bindings.FundingLocked_get_channel_id(this.ptr); return ret; @@ -50,15 +43,21 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public FundingLocked clone() { + number ret = bindings.FundingLocked_clone(this.ptr); + const ret_hu_conv: FundingLocked = new FundingLocked(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.FundingLocked_write(this.ptr); return ret; } - public static FundingLocked constructor_read(Uint8Array ser) { + public static Result_FundingLockedDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.FundingLocked_read(ser); - const ret_hu_conv: FundingLocked = new FundingLocked(null, ret); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_FundingLockedDecodeErrorZ ret_hu_conv = Result_FundingLockedDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }