X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FCounterpartyChannelTransactionParameters.ts;h=c30efd9689edd9b82fbff88886eaf35c3be8b3cd;hb=fcf4198defb48c5fa122ece7f5e922d22bbeb813;hp=55dcf04d2daf117a3536192dbab9d87343c28818;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/CounterpartyChannelTransactionParameters.ts b/ts/structs/CounterpartyChannelTransactionParameters.ts index 55dcf04d..c30efd96 100644 --- a/ts/structs/CounterpartyChannelTransactionParameters.ts +++ b/ts/structs/CounterpartyChannelTransactionParameters.ts @@ -18,15 +18,10 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.CounterpartyChannelTransactionParameters_free(this.ptr); } } - public CounterpartyChannelTransactionParameters clone() { - number ret = bindings.CounterpartyChannelTransactionParameters_clone(this.ptr); - const ret_hu_conv: CounterpartyChannelTransactionParameters = new CounterpartyChannelTransactionParameters(null, ret); - return ret_hu_conv; - } - public ChannelPublicKeys get_pubkeys() { number ret = bindings.CounterpartyChannelTransactionParameters_get_pubkeys(this.ptr); const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -47,18 +42,26 @@ import * as bindings from '../bindings' // TODO: figure out location public static CounterpartyChannelTransactionParameters constructor_new(ChannelPublicKeys pubkeys_arg, number selected_contest_delay_arg) { number ret = bindings.CounterpartyChannelTransactionParameters_new(pubkeys_arg == null ? 0 : pubkeys_arg.ptr & ~1, selected_contest_delay_arg); const ret_hu_conv: CounterpartyChannelTransactionParameters = new CounterpartyChannelTransactionParameters(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); ret_hu_conv.ptrs_to.add(pubkeys_arg); return ret_hu_conv; } + public CounterpartyChannelTransactionParameters clone() { + number ret = bindings.CounterpartyChannelTransactionParameters_clone(this.ptr); + const ret_hu_conv: CounterpartyChannelTransactionParameters = new CounterpartyChannelTransactionParameters(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.CounterpartyChannelTransactionParameters_write(this.ptr); return ret; } - public static CounterpartyChannelTransactionParameters constructor_read(Uint8Array ser) { + public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.CounterpartyChannelTransactionParameters_read(ser); - const ret_hu_conv: CounterpartyChannelTransactionParameters = new CounterpartyChannelTransactionParameters(null, ret); + Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }