X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FCounterpartyChannelTransactionParameters.ts;fp=ts%2Fstructs%2FCounterpartyChannelTransactionParameters.ts;h=c30efd9689edd9b82fbff88886eaf35c3be8b3cd;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=de6a67b8318b215bb6ad705c68d1d734297cb6c0;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/CounterpartyChannelTransactionParameters.ts b/ts/structs/CounterpartyChannelTransactionParameters.ts index de6a67b8..c30efd96 100644 --- a/ts/structs/CounterpartyChannelTransactionParameters.ts +++ b/ts/structs/CounterpartyChannelTransactionParameters.ts @@ -18,13 +18,6 @@ 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); - ret_hu_conv.ptrs_to.add(this); - 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); @@ -54,15 +47,21 @@ import * as bindings from '../bindings' // TODO: figure out location 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); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }