bindings updates
[ldk-java] / ts / bindings.ts
1 package org.ldk.impl;
2 import org.ldk.enums.*;
3
4 public class bindings {
5         public static class VecOrSliceDef {
6                 public long dataptr;
7                 public long datalen;
8                 public long stride;
9                 public VecOrSliceDef(long dataptr, long datalen, long stride) {
10                         this.dataptr = dataptr; this.datalen = datalen; this.stride = stride;
11                 }
12         }
13         static {
14                 System.loadLibrary("lightningjni");
15                 init(java.lang.Enum.class, VecOrSliceDef.class);
16                 init_class_cache();
17         }
18         static native void init(java.lang.Class c, java.lang.Class slicedef);
19         static native void init_class_cache();
20
21         public static native boolean deref_bool(long ptr);
22         public static native long deref_long(long ptr);
23         public static native void free_heap_ptr(long ptr);
24         public static native byte[] read_bytes(long ptr, long len);
25         public static native byte[] get_u8_slice_bytes(long slice_ptr);
26         public static native long bytes_to_u8_vec(byte[] bytes);
27         public static native long new_txpointer_copy_data(byte[] txdata);
28         public static native void txpointer_free(long ptr);
29         public static native byte[] txpointer_get_buffer(long ptr);
30         public static native long vec_slice_len(long vec);
31         public static native long new_empty_slice_vec();
32
33         public static native long LDKCVec_u8Z_new(byte[] elems);
34         public static native long LDKC2Tuple_u64u64Z_new(long a, long b);
35         public static native long LDKC2Tuple_u64u64Z_get_a(long ptr);
36         public static native long LDKC2Tuple_u64u64Z_get_b(long ptr);
37         public static class LDKSpendableOutputDescriptor {
38                 private LDKSpendableOutputDescriptor() {}
39                 export class StaticOutput extends LDKSpendableOutputDescriptor {
40                         public uint32_t outpoint;
41                         public uint32_t output;
42                         StaticOutput(uint32_t outpoint, uint32_t output) { this.outpoint = outpoint; this.output = output; }
43                 }
44                 export class DynamicOutputP2WSH extends LDKSpendableOutputDescriptor {
45                         public uint32_t outpoint;
46                         public byte[] per_commitment_point;
47                         public short to_self_delay;
48                         public uint32_t output;
49                         public uint32_t key_derivation_params;
50                         public byte[] revocation_pubkey;
51                         DynamicOutputP2WSH(uint32_t outpoint, byte[] per_commitment_point, short to_self_delay, uint32_t output, uint32_t key_derivation_params, byte[] revocation_pubkey) { this.outpoint = outpoint; this.per_commitment_point = per_commitment_point; this.to_self_delay = to_self_delay; this.output = output; this.key_derivation_params = key_derivation_params; this.revocation_pubkey = revocation_pubkey; }
52                 }
53                 export class StaticOutputCounterpartyPayment extends LDKSpendableOutputDescriptor {
54                         public uint32_t outpoint;
55                         public uint32_t output;
56                         public uint32_t key_derivation_params;
57                         StaticOutputCounterpartyPayment(uint32_t outpoint, uint32_t output, uint32_t key_derivation_params) { this.outpoint = outpoint; this.output = output; this.key_derivation_params = key_derivation_params; }
58                 }
59                 static native void init();
60         }
61         static { LDKSpendableOutputDescriptor.init(); }
62         public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
63         public static native long LDKCVec_SpendableOutputDescriptorZ_new(uint32_t[] elems);
64         public static class LDKErrorAction {
65                 private LDKErrorAction() {}
66                 export class DisconnectPeer extends LDKErrorAction {
67                         public uint32_t msg;
68                         DisconnectPeer(uint32_t msg) { this.msg = msg; }
69                 }
70                 export class IgnoreError extends LDKErrorAction {
71                         IgnoreError() { }
72                 }
73                 export class SendErrorMessage extends LDKErrorAction {
74                         public uint32_t msg;
75                         SendErrorMessage(uint32_t msg) { this.msg = msg; }
76                 }
77                 static native void init();
78         }
79         static { LDKErrorAction.init(); }
80         public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
81         public static class LDKHTLCFailChannelUpdate {
82                 private LDKHTLCFailChannelUpdate() {}
83                 export class ChannelUpdateMessage extends LDKHTLCFailChannelUpdate {
84                         public uint32_t msg;
85                         ChannelUpdateMessage(uint32_t msg) { this.msg = msg; }
86                 }
87                 export class ChannelClosed extends LDKHTLCFailChannelUpdate {
88                         public long short_channel_id;
89                         public boolean is_permanent;
90                         ChannelClosed(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
91                 }
92                 export class NodeFailure extends LDKHTLCFailChannelUpdate {
93                         public byte[] node_id;
94                         public boolean is_permanent;
95                         NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
96                 }
97                 static native void init();
98         }
99         static { LDKHTLCFailChannelUpdate.init(); }
100         public static native LDKHTLCFailChannelUpdate LDKHTLCFailChannelUpdate_ref_from_ptr(long ptr);
101         public static class LDKMessageSendEvent {
102                 private LDKMessageSendEvent() {}
103                 export class SendAcceptChannel extends LDKMessageSendEvent {
104                         public byte[] node_id;
105                         public uint32_t msg;
106                         SendAcceptChannel(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
107                 }
108                 export class SendOpenChannel extends LDKMessageSendEvent {
109                         public byte[] node_id;
110                         public uint32_t msg;
111                         SendOpenChannel(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
112                 }
113                 export class SendFundingCreated extends LDKMessageSendEvent {
114                         public byte[] node_id;
115                         public uint32_t msg;
116                         SendFundingCreated(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
117                 }
118                 export class SendFundingSigned extends LDKMessageSendEvent {
119                         public byte[] node_id;
120                         public uint32_t msg;
121                         SendFundingSigned(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
122                 }
123                 export class SendFundingLocked extends LDKMessageSendEvent {
124                         public byte[] node_id;
125                         public uint32_t msg;
126                         SendFundingLocked(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
127                 }
128                 export class SendAnnouncementSignatures extends LDKMessageSendEvent {
129                         public byte[] node_id;
130                         public uint32_t msg;
131                         SendAnnouncementSignatures(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
132                 }
133                 export class UpdateHTLCs extends LDKMessageSendEvent {
134                         public byte[] node_id;
135                         public uint32_t updates;
136                         UpdateHTLCs(byte[] node_id, uint32_t updates) { this.node_id = node_id; this.updates = updates; }
137                 }
138                 export class SendRevokeAndACK extends LDKMessageSendEvent {
139                         public byte[] node_id;
140                         public uint32_t msg;
141                         SendRevokeAndACK(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
142                 }
143                 export class SendClosingSigned extends LDKMessageSendEvent {
144                         public byte[] node_id;
145                         public uint32_t msg;
146                         SendClosingSigned(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
147                 }
148                 export class SendShutdown extends LDKMessageSendEvent {
149                         public byte[] node_id;
150                         public uint32_t msg;
151                         SendShutdown(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
152                 }
153                 export class SendChannelReestablish extends LDKMessageSendEvent {
154                         public byte[] node_id;
155                         public uint32_t msg;
156                         SendChannelReestablish(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
157                 }
158                 export class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
159                         public uint32_t msg;
160                         public uint32_t update_msg;
161                         BroadcastChannelAnnouncement(uint32_t msg, uint32_t update_msg) { this.msg = msg; this.update_msg = update_msg; }
162                 }
163                 export class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
164                         public uint32_t msg;
165                         BroadcastNodeAnnouncement(uint32_t msg) { this.msg = msg; }
166                 }
167                 export class BroadcastChannelUpdate extends LDKMessageSendEvent {
168                         public uint32_t msg;
169                         BroadcastChannelUpdate(uint32_t msg) { this.msg = msg; }
170                 }
171                 export class HandleError extends LDKMessageSendEvent {
172                         public byte[] node_id;
173                         public uint32_t action;
174                         HandleError(byte[] node_id, uint32_t action) { this.node_id = node_id; this.action = action; }
175                 }
176                 export class PaymentFailureNetworkUpdate extends LDKMessageSendEvent {
177                         public uint32_t update;
178                         PaymentFailureNetworkUpdate(uint32_t update) { this.update = update; }
179                 }
180                 export class SendChannelRangeQuery extends LDKMessageSendEvent {
181                         public byte[] node_id;
182                         public uint32_t msg;
183                         SendChannelRangeQuery(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
184                 }
185                 export class SendShortIdsQuery extends LDKMessageSendEvent {
186                         public byte[] node_id;
187                         public uint32_t msg;
188                         SendShortIdsQuery(byte[] node_id, uint32_t msg) { this.node_id = node_id; this.msg = msg; }
189                 }
190                 static native void init();
191         }
192         static { LDKMessageSendEvent.init(); }
193         public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
194         public static native long LDKCVec_MessageSendEventZ_new(uint32_t[] elems);
195         public static class LDKEvent {
196                 private LDKEvent() {}
197                 export class FundingGenerationReady extends LDKEvent {
198                         public byte[] temporary_channel_id;
199                         public long channel_value_satoshis;
200                         public byte[] output_script;
201                         public long user_channel_id;
202                         FundingGenerationReady(byte[] temporary_channel_id, long channel_value_satoshis, byte[] output_script, long user_channel_id) { this.temporary_channel_id = temporary_channel_id; this.channel_value_satoshis = channel_value_satoshis; this.output_script = output_script; this.user_channel_id = user_channel_id; }
203                 }
204                 export class FundingBroadcastSafe extends LDKEvent {
205                         public uint32_t funding_txo;
206                         public long user_channel_id;
207                         FundingBroadcastSafe(uint32_t funding_txo, long user_channel_id) { this.funding_txo = funding_txo; this.user_channel_id = user_channel_id; }
208                 }
209                 export class PaymentReceived extends LDKEvent {
210                         public byte[] payment_hash;
211                         public byte[] payment_secret;
212                         public long amt;
213                         PaymentReceived(byte[] payment_hash, byte[] payment_secret, long amt) { this.payment_hash = payment_hash; this.payment_secret = payment_secret; this.amt = amt; }
214                 }
215                 export class PaymentSent extends LDKEvent {
216                         public byte[] payment_preimage;
217                         PaymentSent(byte[] payment_preimage) { this.payment_preimage = payment_preimage; }
218                 }
219                 export class PaymentFailed extends LDKEvent {
220                         public byte[] payment_hash;
221                         public boolean rejected_by_dest;
222                         PaymentFailed(byte[] payment_hash, boolean rejected_by_dest) { this.payment_hash = payment_hash; this.rejected_by_dest = rejected_by_dest; }
223                 }
224                 export class PendingHTLCsForwardable extends LDKEvent {
225                         public long time_forwardable;
226                         PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
227                 }
228                 export class SpendableOutputs extends LDKEvent {
229                         public uint32_t[] outputs;
230                         SpendableOutputs(uint32_t[] outputs) { this.outputs = outputs; }
231                 }
232                 static native void init();
233         }
234         static { LDKEvent.init(); }
235         public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
236         public static native long LDKCVec_EventZ_new(uint32_t[] elems);
237         public static native long LDKC2Tuple_usizeTransactionZ_new(long a, byte[] b);
238         public static native long LDKC2Tuple_usizeTransactionZ_get_a(long ptr);
239         public static native byte[] LDKC2Tuple_usizeTransactionZ_get_b(long ptr);
240         public static native long LDKCVec_C2Tuple_usizeTransactionZZ_new(uint32_t[] elems);
241         public static native boolean LDKCResult_NoneChannelMonitorUpdateErrZ_result_ok(long arg);
242         public static native void LDKCResult_NoneChannelMonitorUpdateErrZ_get_ok(long arg);
243         public static native LDKChannelMonitorUpdateErr LDKCResult_NoneChannelMonitorUpdateErrZ_get_err(long arg);
244         public static native long LDKCVec_MonitorEventZ_new(uint32_t[] elems);
245         public static native boolean LDKCResult_ChannelMonitorUpdateDecodeErrorZ_result_ok(long arg);
246         public static native uint32_t LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long arg);
247         public static native uint32_t LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long arg);
248         public static native boolean LDKCResult_NoneMonitorUpdateErrorZ_result_ok(long arg);
249         public static native void LDKCResult_NoneMonitorUpdateErrorZ_get_ok(long arg);
250         public static native uint32_t LDKCResult_NoneMonitorUpdateErrorZ_get_err(long arg);
251         public static native long LDKC2Tuple_OutPointScriptZ_new(uint32_t a, byte[] b);
252         public static native uint32_t LDKC2Tuple_OutPointScriptZ_get_a(long ptr);
253         public static native byte[] LDKC2Tuple_OutPointScriptZ_get_b(long ptr);
254         public static native long LDKC2Tuple_u32TxOutZ_new(int a, uint32_t b);
255         public static native int LDKC2Tuple_u32TxOutZ_get_a(long ptr);
256         public static native uint32_t LDKC2Tuple_u32TxOutZ_get_b(long ptr);
257         public static native long LDKCVec_C2Tuple_u32TxOutZZ_new(uint32_t[] elems);
258         public static native long LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, uint32_t[] b);
259         public static native byte[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long ptr);
260         public static native uint32_t[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long ptr);
261         public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_new(uint32_t[] elems);
262         public static native long LDKC2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
263         public static native byte[] LDKC2Tuple_SignatureCVec_SignatureZZ_get_a(long ptr);
264         public static native byte[][] LDKC2Tuple_SignatureCVec_SignatureZZ_get_b(long ptr);
265         public static native boolean LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_result_ok(long arg);
266         public static native uint32_t LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(long arg);
267         public static native void LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(long arg);
268         public static native boolean LDKCResult_SignatureNoneZ_result_ok(long arg);
269         public static native byte[] LDKCResult_SignatureNoneZ_get_ok(long arg);
270         public static native void LDKCResult_SignatureNoneZ_get_err(long arg);
271         public static native boolean LDKCResult_CVec_SignatureZNoneZ_result_ok(long arg);
272         public static native byte[][] LDKCResult_CVec_SignatureZNoneZ_get_ok(long arg);
273         public static native void LDKCResult_CVec_SignatureZNoneZ_get_err(long arg);
274         // LDKPublicKey ChannelKeys_get_per_commitment_point LDKChannelKeys* this_arg, uint64_t idx
275         public static native byte[] ChannelKeys_get_per_commitment_point(uint32_t this_arg, long idx);
276         // LDKThirtyTwoBytes ChannelKeys_release_commitment_secret LDKChannelKeys* this_arg, uint64_t idx
277         public static native byte[] ChannelKeys_release_commitment_secret(uint32_t this_arg, long idx);
278         // LDKC2Tuple_u64u64Z ChannelKeys_key_derivation_params LDKChannelKeys* this_arg
279         public static native uint32_t ChannelKeys_key_derivation_params(uint32_t this_arg);
280         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ ChannelKeys_sign_counterparty_commitment LDKChannelKeys* this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx
281         public static native uint32_t ChannelKeys_sign_counterparty_commitment(uint32_t this_arg, uint32_t commitment_tx);
282         // LDKCResult_SignatureNoneZ ChannelKeys_sign_holder_commitment LDKChannelKeys* this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
283         public static native uint32_t ChannelKeys_sign_holder_commitment(uint32_t this_arg, uint32_t commitment_tx);
284         // LDKCResult_CVec_SignatureZNoneZ ChannelKeys_sign_holder_commitment_htlc_transactions LDKChannelKeys* this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
285         public static native uint32_t ChannelKeys_sign_holder_commitment_htlc_transactions(uint32_t this_arg, uint32_t commitment_tx);
286         // LDKCResult_SignatureNoneZ ChannelKeys_sign_justice_transaction LDKChannelKeys* this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
287         public static native uint32_t ChannelKeys_sign_justice_transaction(uint32_t this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key, uint32_t htlc);
288         // LDKCResult_SignatureNoneZ ChannelKeys_sign_counterparty_htlc_transaction LDKChannelKeys* this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
289         public static native uint32_t ChannelKeys_sign_counterparty_htlc_transaction(uint32_t this_arg, byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, uint32_t htlc);
290         // LDKCResult_SignatureNoneZ ChannelKeys_sign_closing_transaction LDKChannelKeys* this_arg, struct LDKTransaction closing_tx
291         public static native uint32_t ChannelKeys_sign_closing_transaction(uint32_t this_arg, byte[] closing_tx);
292         // LDKCResult_SignatureNoneZ ChannelKeys_sign_channel_announcement LDKChannelKeys* this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
293         public static native uint32_t ChannelKeys_sign_channel_announcement(uint32_t this_arg, uint32_t msg);
294         // void ChannelKeys_ready_channel LDKChannelKeys* this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
295         public static native void ChannelKeys_ready_channel(uint32_t this_arg, uint32_t channel_parameters);
296         // LDKCVec_u8Z ChannelKeys_write LDKChannelKeys* this_arg
297         public static native byte[] ChannelKeys_write(uint32_t this_arg);
298         // LDKChannelPublicKeys ChannelKeys_get_pubkeys LDKChannelKeys* this_arg
299         public static native uint32_t ChannelKeys_get_pubkeys(uint32_t this_arg);
300         public static native long LDKC2Tuple_BlockHashChannelMonitorZ_new(byte[] a, uint32_t b);
301         public static native byte[] LDKC2Tuple_BlockHashChannelMonitorZ_get_a(long ptr);
302         public static native uint32_t LDKC2Tuple_BlockHashChannelMonitorZ_get_b(long ptr);
303         public static native boolean LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_result_ok(long arg);
304         public static native uint32_t LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(long arg);
305         public static native uint32_t LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(long arg);
306         public static native boolean LDKCResult_SpendableOutputDescriptorDecodeErrorZ_result_ok(long arg);
307         public static native uint32_t LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long arg);
308         public static native uint32_t LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long arg);
309         public static native boolean LDKCResult_ChanKeySignerDecodeErrorZ_result_ok(long arg);
310         public static native uint32_t LDKCResult_ChanKeySignerDecodeErrorZ_get_ok(long arg);
311         public static native uint32_t LDKCResult_ChanKeySignerDecodeErrorZ_get_err(long arg);
312         public static native boolean LDKCResult_InMemoryChannelKeysDecodeErrorZ_result_ok(long arg);
313         public static native uint32_t LDKCResult_InMemoryChannelKeysDecodeErrorZ_get_ok(long arg);
314         public static native uint32_t LDKCResult_InMemoryChannelKeysDecodeErrorZ_get_err(long arg);
315         public static native boolean LDKCResult_TxOutAccessErrorZ_result_ok(long arg);
316         public static native uint32_t LDKCResult_TxOutAccessErrorZ_get_ok(long arg);
317         public static native LDKAccessError LDKCResult_TxOutAccessErrorZ_get_err(long arg);
318         public static class LDKAPIError {
319                 private LDKAPIError() {}
320                 export class APIMisuseError extends LDKAPIError {
321                         public byte[] err;
322                         APIMisuseError(byte[] err) { this.err = err; }
323                 }
324                 export class FeeRateTooHigh extends LDKAPIError {
325                         public byte[] err;
326                         public int feerate;
327                         FeeRateTooHigh(byte[] err, int feerate) { this.err = err; this.feerate = feerate; }
328                 }
329                 export class RouteError extends LDKAPIError {
330                         public String err;
331                         RouteError(String err) { this.err = err; }
332                 }
333                 export class ChannelUnavailable extends LDKAPIError {
334                         public byte[] err;
335                         ChannelUnavailable(byte[] err) { this.err = err; }
336                 }
337                 export class MonitorUpdateFailed extends LDKAPIError {
338                         MonitorUpdateFailed() { }
339                 }
340                 static native void init();
341         }
342         static { LDKAPIError.init(); }
343         public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
344         public static native boolean LDKCResult_NoneAPIErrorZ_result_ok(long arg);
345         public static native void LDKCResult_NoneAPIErrorZ_get_ok(long arg);
346         public static native uint32_t LDKCResult_NoneAPIErrorZ_get_err(long arg);
347         public static native long LDKCVec_ChannelDetailsZ_new(uint32_t[] elems);
348         public static native boolean LDKCResult_NonePaymentSendFailureZ_result_ok(long arg);
349         public static native void LDKCResult_NonePaymentSendFailureZ_get_ok(long arg);
350         public static native uint32_t LDKCResult_NonePaymentSendFailureZ_get_err(long arg);
351         public static class LDKNetAddress {
352                 private LDKNetAddress() {}
353                 export class IPv4 extends LDKNetAddress {
354                         public byte[] addr;
355                         public short port;
356                         IPv4(byte[] addr, short port) { this.addr = addr; this.port = port; }
357                 }
358                 export class IPv6 extends LDKNetAddress {
359                         public byte[] addr;
360                         public short port;
361                         IPv6(byte[] addr, short port) { this.addr = addr; this.port = port; }
362                 }
363                 export class OnionV2 extends LDKNetAddress {
364                         public byte[] addr;
365                         public short port;
366                         OnionV2(byte[] addr, short port) { this.addr = addr; this.port = port; }
367                 }
368                 export class OnionV3 extends LDKNetAddress {
369                         public byte[] ed25519_pubkey;
370                         public short checksum;
371                         public byte version;
372                         public short port;
373                         OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
374                 }
375                 static native void init();
376         }
377         static { LDKNetAddress.init(); }
378         public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
379         public static native long LDKCVec_NetAddressZ_new(uint32_t[] elems);
380         public static native long LDKCVec_ChannelMonitorZ_new(uint32_t[] elems);
381         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch* this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
382         public static native uint32_t Watch_watch_channel(uint32_t this_arg, uint32_t funding_txo, uint32_t monitor);
383         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch* this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
384         public static native uint32_t Watch_update_channel(uint32_t this_arg, uint32_t funding_txo, uint32_t update);
385         // LDKCVec_MonitorEventZ Watch_release_pending_monitor_events LDKWatch* this_arg
386         public static native uint32_t[] Watch_release_pending_monitor_events(uint32_t this_arg);
387         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface* this_arg, struct LDKTransaction tx
388         public static native void BroadcasterInterface_broadcast_transaction(uint32_t this_arg, byte[] tx);
389         // LDKSecretKey KeysInterface_get_node_secret LDKKeysInterface* this_arg
390         public static native byte[] KeysInterface_get_node_secret(uint32_t this_arg);
391         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface* this_arg
392         public static native byte[] KeysInterface_get_destination_script(uint32_t this_arg);
393         // LDKPublicKey KeysInterface_get_shutdown_pubkey LDKKeysInterface* this_arg
394         public static native byte[] KeysInterface_get_shutdown_pubkey(uint32_t this_arg);
395         // LDKChannelKeys KeysInterface_get_channel_keys LDKKeysInterface* this_arg, bool inbound, uint64_t channel_value_satoshis
396         public static native uint32_t KeysInterface_get_channel_keys(uint32_t this_arg, boolean inbound, long channel_value_satoshis);
397         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface* this_arg
398         public static native byte[] KeysInterface_get_secure_random_bytes(uint32_t this_arg);
399         // LDKCResult_ChanKeySignerDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface* this_arg, struct LDKu8slice reader
400         public static native uint32_t KeysInterface_read_chan_signer(uint32_t this_arg, byte[] reader);
401         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator* this_arg, enum LDKConfirmationTarget confirmation_target
402         public static native int FeeEstimator_get_est_sat_per_1000_weight(uint32_t this_arg, LDKConfirmationTarget confirmation_target);
403         public static native long LDKC2Tuple_BlockHashChannelManagerZ_new(byte[] a, uint32_t b);
404         public static native byte[] LDKC2Tuple_BlockHashChannelManagerZ_get_a(long ptr);
405         public static native uint32_t LDKC2Tuple_BlockHashChannelManagerZ_get_b(long ptr);
406         public static native boolean LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_result_ok(long arg);
407         public static native uint32_t LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(long arg);
408         public static native uint32_t LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(long arg);
409         public static native boolean LDKCResult_NetAddressu8Z_result_ok(long arg);
410         public static native uint32_t LDKCResult_NetAddressu8Z_get_ok(long arg);
411         public static native byte LDKCResult_NetAddressu8Z_get_err(long arg);
412         public static native boolean LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_result_ok(long arg);
413         public static native uint32_t LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_ok(long arg);
414         public static native uint32_t LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_err(long arg);
415         public static native long LDKCVec_u64Z_new(long[] elems);
416         public static native long LDKCVec_UpdateAddHTLCZ_new(uint32_t[] elems);
417         public static native long LDKCVec_UpdateFulfillHTLCZ_new(uint32_t[] elems);
418         public static native long LDKCVec_UpdateFailHTLCZ_new(uint32_t[] elems);
419         public static native long LDKCVec_UpdateFailMalformedHTLCZ_new(uint32_t[] elems);
420         public static native boolean LDKCResult_boolLightningErrorZ_result_ok(long arg);
421         public static native boolean LDKCResult_boolLightningErrorZ_get_ok(long arg);
422         public static native uint32_t LDKCResult_boolLightningErrorZ_get_err(long arg);
423         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(uint32_t a, uint32_t b, uint32_t c);
424         public static native uint32_t LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long ptr);
425         public static native uint32_t LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long ptr);
426         public static native uint32_t LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long ptr);
427         public static native long LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_new(uint32_t[] elems);
428         public static native long LDKCVec_NodeAnnouncementZ_new(uint32_t[] elems);
429         public static native boolean LDKCResult_NoneLightningErrorZ_result_ok(long arg);
430         public static native void LDKCResult_NoneLightningErrorZ_get_ok(long arg);
431         public static native uint32_t LDKCResult_NoneLightningErrorZ_get_err(long arg);
432         public static native boolean LDKCResult_ChannelReestablishDecodeErrorZ_result_ok(long arg);
433         public static native uint32_t LDKCResult_ChannelReestablishDecodeErrorZ_get_ok(long arg);
434         public static native uint32_t LDKCResult_ChannelReestablishDecodeErrorZ_get_err(long arg);
435         public static native boolean LDKCResult_InitDecodeErrorZ_result_ok(long arg);
436         public static native uint32_t LDKCResult_InitDecodeErrorZ_get_ok(long arg);
437         public static native uint32_t LDKCResult_InitDecodeErrorZ_get_err(long arg);
438         public static native boolean LDKCResult_PingDecodeErrorZ_result_ok(long arg);
439         public static native uint32_t LDKCResult_PingDecodeErrorZ_get_ok(long arg);
440         public static native uint32_t LDKCResult_PingDecodeErrorZ_get_err(long arg);
441         public static native boolean LDKCResult_PongDecodeErrorZ_result_ok(long arg);
442         public static native uint32_t LDKCResult_PongDecodeErrorZ_get_ok(long arg);
443         public static native uint32_t LDKCResult_PongDecodeErrorZ_get_err(long arg);
444         public static native boolean LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_result_ok(long arg);
445         public static native uint32_t LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long arg);
446         public static native uint32_t LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long arg);
447         public static native boolean LDKCResult_UnsignedChannelUpdateDecodeErrorZ_result_ok(long arg);
448         public static native uint32_t LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long arg);
449         public static native uint32_t LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long arg);
450         public static native boolean LDKCResult_ErrorMessageDecodeErrorZ_result_ok(long arg);
451         public static native uint32_t LDKCResult_ErrorMessageDecodeErrorZ_get_ok(long arg);
452         public static native uint32_t LDKCResult_ErrorMessageDecodeErrorZ_get_err(long arg);
453         public static native boolean LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_result_ok(long arg);
454         public static native uint32_t LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long arg);
455         public static native uint32_t LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long arg);
456         public static native boolean LDKCResult_QueryShortChannelIdsDecodeErrorZ_result_ok(long arg);
457         public static native uint32_t LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long arg);
458         public static native uint32_t LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_err(long arg);
459         public static native boolean LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_result_ok(long arg);
460         public static native uint32_t LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long arg);
461         public static native uint32_t LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long arg);
462         public static native boolean LDKCResult_QueryChannelRangeDecodeErrorZ_result_ok(long arg);
463         public static native uint32_t LDKCResult_QueryChannelRangeDecodeErrorZ_get_ok(long arg);
464         public static native uint32_t LDKCResult_QueryChannelRangeDecodeErrorZ_get_err(long arg);
465         public static native boolean LDKCResult_ReplyChannelRangeDecodeErrorZ_result_ok(long arg);
466         public static native uint32_t LDKCResult_ReplyChannelRangeDecodeErrorZ_get_ok(long arg);
467         public static native uint32_t LDKCResult_ReplyChannelRangeDecodeErrorZ_get_err(long arg);
468         public static native boolean LDKCResult_GossipTimestampFilterDecodeErrorZ_result_ok(long arg);
469         public static native uint32_t LDKCResult_GossipTimestampFilterDecodeErrorZ_get_ok(long arg);
470         public static native uint32_t LDKCResult_GossipTimestampFilterDecodeErrorZ_get_err(long arg);
471         public static native boolean LDKCResult_CVec_u8ZPeerHandleErrorZ_result_ok(long arg);
472         public static native byte[] LDKCResult_CVec_u8ZPeerHandleErrorZ_get_ok(long arg);
473         public static native uint32_t LDKCResult_CVec_u8ZPeerHandleErrorZ_get_err(long arg);
474         public static native boolean LDKCResult_NonePeerHandleErrorZ_result_ok(long arg);
475         public static native void LDKCResult_NonePeerHandleErrorZ_get_ok(long arg);
476         public static native uint32_t LDKCResult_NonePeerHandleErrorZ_get_err(long arg);
477         public static native boolean LDKCResult_boolPeerHandleErrorZ_result_ok(long arg);
478         public static native boolean LDKCResult_boolPeerHandleErrorZ_get_ok(long arg);
479         public static native uint32_t LDKCResult_boolPeerHandleErrorZ_get_err(long arg);
480         public static native boolean LDKCResult_SecretKeySecpErrorZ_result_ok(long arg);
481         public static native byte[] LDKCResult_SecretKeySecpErrorZ_get_ok(long arg);
482         public static native LDKSecp256k1Error LDKCResult_SecretKeySecpErrorZ_get_err(long arg);
483         public static native boolean LDKCResult_PublicKeySecpErrorZ_result_ok(long arg);
484         public static native byte[] LDKCResult_PublicKeySecpErrorZ_get_ok(long arg);
485         public static native LDKSecp256k1Error LDKCResult_PublicKeySecpErrorZ_get_err(long arg);
486         public static native boolean LDKCResult_TxCreationKeysSecpErrorZ_result_ok(long arg);
487         public static native uint32_t LDKCResult_TxCreationKeysSecpErrorZ_get_ok(long arg);
488         public static native LDKSecp256k1Error LDKCResult_TxCreationKeysSecpErrorZ_get_err(long arg);
489         public static native boolean LDKCResult_TrustedCommitmentTransactionNoneZ_result_ok(long arg);
490         public static native uint32_t LDKCResult_TrustedCommitmentTransactionNoneZ_get_ok(long arg);
491         public static native void LDKCResult_TrustedCommitmentTransactionNoneZ_get_err(long arg);
492         public static native long LDKCVec_RouteHopZ_new(uint32_t[] elems);
493         public static native boolean LDKCResult_RouteDecodeErrorZ_result_ok(long arg);
494         public static native uint32_t LDKCResult_RouteDecodeErrorZ_get_ok(long arg);
495         public static native uint32_t LDKCResult_RouteDecodeErrorZ_get_err(long arg);
496         public static native long LDKCVec_RouteHintZ_new(uint32_t[] elems);
497         public static native boolean LDKCResult_RouteLightningErrorZ_result_ok(long arg);
498         public static native uint32_t LDKCResult_RouteLightningErrorZ_get_ok(long arg);
499         public static native uint32_t LDKCResult_RouteLightningErrorZ_get_err(long arg);
500         public static native boolean LDKCResult_RoutingFeesDecodeErrorZ_result_ok(long arg);
501         public static native uint32_t LDKCResult_RoutingFeesDecodeErrorZ_get_ok(long arg);
502         public static native uint32_t LDKCResult_RoutingFeesDecodeErrorZ_get_err(long arg);
503         public static native boolean LDKCResult_NodeAnnouncementInfoDecodeErrorZ_result_ok(long arg);
504         public static native uint32_t LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long arg);
505         public static native uint32_t LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long arg);
506         public static native boolean LDKCResult_NodeInfoDecodeErrorZ_result_ok(long arg);
507         public static native uint32_t LDKCResult_NodeInfoDecodeErrorZ_get_ok(long arg);
508         public static native uint32_t LDKCResult_NodeInfoDecodeErrorZ_get_err(long arg);
509         public static native boolean LDKCResult_NetworkGraphDecodeErrorZ_result_ok(long arg);
510         public static native uint32_t LDKCResult_NetworkGraphDecodeErrorZ_get_ok(long arg);
511         public static native uint32_t LDKCResult_NetworkGraphDecodeErrorZ_get_err(long arg);
512         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider* this_arg
513         public static native uint32_t[] MessageSendEventsProvider_get_and_clear_pending_msg_events(uint32_t this_arg);
514         // LDKCVec_EventZ EventsProvider_get_and_clear_pending_events LDKEventsProvider* this_arg
515         public static native uint32_t[] EventsProvider_get_and_clear_pending_events(uint32_t this_arg);
516         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess* this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
517         public static native uint32_t Access_get_utxo(uint32_t this_arg, byte[] genesis_hash, long short_channel_id);
518         // void Filter_register_tx LDKFilter* this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
519         public static native void Filter_register_tx(uint32_t this_arg, byte[] txid, byte[] script_pubkey);
520         // void Filter_register_output LDKFilter* this_arg, const struct LDKOutPoint *NONNULL_PTR outpoint, struct LDKu8slice script_pubkey
521         public static native void Filter_register_output(uint32_t this_arg, uint32_t outpoint, byte[] script_pubkey);
522         // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_persist_new_channel LDKPersist* this_arg, struct LDKOutPoint id, const struct LDKChannelMonitor *NONNULL_PTR data
523         public static native uint32_t Persist_persist_new_channel(uint32_t this_arg, uint32_t id, uint32_t data);
524         // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_update_persisted_channel LDKPersist* this_arg, struct LDKOutPoint id, const struct LDKChannelMonitorUpdate *NONNULL_PTR update, const struct LDKChannelMonitor *NONNULL_PTR data
525         public static native uint32_t Persist_update_persisted_channel(uint32_t this_arg, uint32_t id, uint32_t update, uint32_t data);
526         // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKOpenChannel *NONNULL_PTR msg
527         public static native void ChannelMessageHandler_handle_open_channel(uint32_t this_arg, byte[] their_node_id, uint32_t their_features, uint32_t msg);
528         // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKAcceptChannel *NONNULL_PTR msg
529         public static native void ChannelMessageHandler_handle_accept_channel(uint32_t this_arg, byte[] their_node_id, uint32_t their_features, uint32_t msg);
530         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
531         public static native void ChannelMessageHandler_handle_funding_created(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
532         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
533         public static native void ChannelMessageHandler_handle_funding_signed(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
534         // void ChannelMessageHandler_handle_funding_locked LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingLocked *NONNULL_PTR msg
535         public static native void ChannelMessageHandler_handle_funding_locked(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
536         // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
537         public static native void ChannelMessageHandler_handle_shutdown(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
538         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
539         public static native void ChannelMessageHandler_handle_closing_signed(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
540         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
541         public static native void ChannelMessageHandler_handle_update_add_htlc(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
542         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
543         public static native void ChannelMessageHandler_handle_update_fulfill_htlc(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
544         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
545         public static native void ChannelMessageHandler_handle_update_fail_htlc(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
546         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
547         public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
548         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
549         public static native void ChannelMessageHandler_handle_commitment_signed(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
550         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
551         public static native void ChannelMessageHandler_handle_revoke_and_ack(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
552         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
553         public static native void ChannelMessageHandler_handle_update_fee(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
554         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
555         public static native void ChannelMessageHandler_handle_announcement_signatures(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
556         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
557         public static native void ChannelMessageHandler_peer_disconnected(uint32_t this_arg, byte[] their_node_id, boolean no_connection_possible);
558         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
559         public static native void ChannelMessageHandler_peer_connected(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
560         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
561         public static native void ChannelMessageHandler_handle_channel_reestablish(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
562         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
563         public static native void ChannelMessageHandler_handle_error(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
564         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler* this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
565         public static native uint32_t RoutingMessageHandler_handle_node_announcement(uint32_t this_arg, uint32_t msg);
566         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler* this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
567         public static native uint32_t RoutingMessageHandler_handle_channel_announcement(uint32_t this_arg, uint32_t msg);
568         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler* this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
569         public static native uint32_t RoutingMessageHandler_handle_channel_update(uint32_t this_arg, uint32_t msg);
570         // void RoutingMessageHandler_handle_htlc_fail_channel_update LDKRoutingMessageHandler* this_arg, const struct LDKHTLCFailChannelUpdate *NONNULL_PTR update
571         public static native void RoutingMessageHandler_handle_htlc_fail_channel_update(uint32_t this_arg, uint32_t update);
572         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler* this_arg, uint64_t starting_point, uint8_t batch_amount
573         public static native uint32_t[] RoutingMessageHandler_get_next_channel_announcements(uint32_t this_arg, long starting_point, byte batch_amount);
574         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler* this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
575         public static native uint32_t[] RoutingMessageHandler_get_next_node_announcements(uint32_t this_arg, byte[] starting_point, byte batch_amount);
576         // void RoutingMessageHandler_sync_routing_table LDKRoutingMessageHandler* this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
577         public static native void RoutingMessageHandler_sync_routing_table(uint32_t this_arg, byte[] their_node_id, uint32_t init);
578         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler* this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
579         public static native uint32_t RoutingMessageHandler_handle_reply_channel_range(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
580         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler* this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
581         public static native uint32_t RoutingMessageHandler_handle_reply_short_channel_ids_end(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
582         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler* this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
583         public static native uint32_t RoutingMessageHandler_handle_query_channel_range(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
584         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler* this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
585         public static native uint32_t RoutingMessageHandler_handle_query_short_channel_ids(uint32_t this_arg, byte[] their_node_id, uint32_t msg);
586         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor* this_arg, struct LDKu8slice data, bool resume_read
587         public static native long SocketDescriptor_send_data(uint32_t this_arg, byte[] data, boolean resume_read);
588         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor* this_arg
589         public static native void SocketDescriptor_disconnect_socket(uint32_t this_arg);
590         // uint64_t SocketDescriptor_hash LDKSocketDescriptor* this_arg
591         public static native long SocketDescriptor_hash(uint32_t this_arg);
592         // void Transaction_free(struct LDKTransaction _res);
593         public static native void Transaction_free(byte[] _res);
594         // void TxOut_free(struct LDKTxOut _res);
595         public static native void TxOut_free(uint32_t _res);
596         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
597         public static native void CVec_SpendableOutputDescriptorZ_free(uint32_t[] _res);
598         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
599         public static native void CVec_MessageSendEventZ_free(uint32_t[] _res);
600         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
601         public static native void CVec_EventZ_free(uint32_t[] _res);
602         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
603         public static native void C2Tuple_usizeTransactionZ_free(uint32_t _res);
604         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
605         public static native uint32_t C2Tuple_usizeTransactionZ_new(long a, byte[] b);
606         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
607         public static native void CVec_C2Tuple_usizeTransactionZZ_free(uint32_t[] _res);
608         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
609         public static native uint32_t CResult_NoneChannelMonitorUpdateErrZ_ok();
610         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
611         public static native uint32_t CResult_NoneChannelMonitorUpdateErrZ_err(LDKChannelMonitorUpdateErr e);
612         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
613         public static native void CResult_NoneChannelMonitorUpdateErrZ_free(uint32_t _res);
614         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
615         public static native void CVec_MonitorEventZ_free(uint32_t[] _res);
616         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
617         public static native uint32_t CResult_ChannelMonitorUpdateDecodeErrorZ_ok(uint32_t o);
618         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
619         public static native uint32_t CResult_ChannelMonitorUpdateDecodeErrorZ_err(uint32_t e);
620         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
621         public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(uint32_t _res);
622         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_ok(void);
623         public static native uint32_t CResult_NoneMonitorUpdateErrorZ_ok();
624         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_err(struct LDKMonitorUpdateError e);
625         public static native uint32_t CResult_NoneMonitorUpdateErrorZ_err(uint32_t e);
626         // void CResult_NoneMonitorUpdateErrorZ_free(struct LDKCResult_NoneMonitorUpdateErrorZ _res);
627         public static native void CResult_NoneMonitorUpdateErrorZ_free(uint32_t _res);
628         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
629         public static native void C2Tuple_OutPointScriptZ_free(uint32_t _res);
630         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
631         public static native uint32_t C2Tuple_OutPointScriptZ_new(uint32_t a, byte[] b);
632         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
633         public static native void CVec_TransactionZ_free(byte[][] _res);
634         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
635         public static native void C2Tuple_u32TxOutZ_free(uint32_t _res);
636         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
637         public static native uint32_t C2Tuple_u32TxOutZ_new(int a, uint32_t b);
638         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
639         public static native void CVec_C2Tuple_u32TxOutZZ_free(uint32_t[] _res);
640         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
641         public static native void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(uint32_t _res);
642         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
643         public static native uint32_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, uint32_t[] b);
644         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
645         public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(uint32_t[] _res);
646         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
647         public static native void C2Tuple_BlockHashChannelMonitorZ_free(uint32_t _res);
648         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
649         public static native uint32_t C2Tuple_BlockHashChannelMonitorZ_new(byte[] a, uint32_t b);
650         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
651         public static native uint32_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(uint32_t o);
652         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
653         public static native uint32_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(uint32_t e);
654         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
655         public static native void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(uint32_t _res);
656         // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
657         public static native void C2Tuple_u64u64Z_free(uint32_t _res);
658         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
659         public static native uint32_t C2Tuple_u64u64Z_new(long a, long b);
660         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
661         public static native uint32_t CResult_SpendableOutputDescriptorDecodeErrorZ_ok(uint32_t o);
662         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
663         public static native uint32_t CResult_SpendableOutputDescriptorDecodeErrorZ_err(uint32_t e);
664         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
665         public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(uint32_t _res);
666         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
667         public static native void CVec_SignatureZ_free(byte[][] _res);
668         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
669         public static native void C2Tuple_SignatureCVec_SignatureZZ_free(uint32_t _res);
670         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
671         public static native uint32_t C2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
672         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
673         public static native uint32_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(uint32_t o);
674         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
675         public static native uint32_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
676         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
677         public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(uint32_t _res);
678         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
679         public static native uint32_t CResult_SignatureNoneZ_ok(byte[] o);
680         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
681         public static native uint32_t CResult_SignatureNoneZ_err();
682         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
683         public static native void CResult_SignatureNoneZ_free(uint32_t _res);
684         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
685         public static native uint32_t CResult_CVec_SignatureZNoneZ_ok(byte[][] o);
686         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
687         public static native uint32_t CResult_CVec_SignatureZNoneZ_err();
688         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
689         public static native void CResult_CVec_SignatureZNoneZ_free(uint32_t _res);
690         // struct LDKCResult_ChanKeySignerDecodeErrorZ CResult_ChanKeySignerDecodeErrorZ_ok(struct LDKChannelKeys o);
691         public static native uint32_t CResult_ChanKeySignerDecodeErrorZ_ok(uint32_t o);
692         // struct LDKCResult_ChanKeySignerDecodeErrorZ CResult_ChanKeySignerDecodeErrorZ_err(struct LDKDecodeError e);
693         public static native uint32_t CResult_ChanKeySignerDecodeErrorZ_err(uint32_t e);
694         // void CResult_ChanKeySignerDecodeErrorZ_free(struct LDKCResult_ChanKeySignerDecodeErrorZ _res);
695         public static native void CResult_ChanKeySignerDecodeErrorZ_free(uint32_t _res);
696         // struct LDKCResult_InMemoryChannelKeysDecodeErrorZ CResult_InMemoryChannelKeysDecodeErrorZ_ok(struct LDKInMemoryChannelKeys o);
697         public static native uint32_t CResult_InMemoryChannelKeysDecodeErrorZ_ok(uint32_t o);
698         // struct LDKCResult_InMemoryChannelKeysDecodeErrorZ CResult_InMemoryChannelKeysDecodeErrorZ_err(struct LDKDecodeError e);
699         public static native uint32_t CResult_InMemoryChannelKeysDecodeErrorZ_err(uint32_t e);
700         // void CResult_InMemoryChannelKeysDecodeErrorZ_free(struct LDKCResult_InMemoryChannelKeysDecodeErrorZ _res);
701         public static native void CResult_InMemoryChannelKeysDecodeErrorZ_free(uint32_t _res);
702         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
703         public static native uint32_t CResult_TxOutAccessErrorZ_ok(uint32_t o);
704         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
705         public static native uint32_t CResult_TxOutAccessErrorZ_err(LDKAccessError e);
706         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
707         public static native void CResult_TxOutAccessErrorZ_free(uint32_t _res);
708         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
709         public static native uint32_t CResult_NoneAPIErrorZ_ok();
710         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
711         public static native uint32_t CResult_NoneAPIErrorZ_err(uint32_t e);
712         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
713         public static native void CResult_NoneAPIErrorZ_free(uint32_t _res);
714         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
715         public static native void CVec_ChannelDetailsZ_free(uint32_t[] _res);
716         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
717         public static native uint32_t CResult_NonePaymentSendFailureZ_ok();
718         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
719         public static native uint32_t CResult_NonePaymentSendFailureZ_err(uint32_t e);
720         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
721         public static native void CResult_NonePaymentSendFailureZ_free(uint32_t _res);
722         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
723         public static native void CVec_NetAddressZ_free(uint32_t[] _res);
724         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
725         public static native void CVec_ChannelMonitorZ_free(uint32_t[] _res);
726         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
727         public static native void C2Tuple_BlockHashChannelManagerZ_free(uint32_t _res);
728         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
729         public static native uint32_t C2Tuple_BlockHashChannelManagerZ_new(byte[] a, uint32_t b);
730         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
731         public static native uint32_t CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(uint32_t o);
732         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
733         public static native uint32_t CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(uint32_t e);
734         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
735         public static native void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(uint32_t _res);
736         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_ok(struct LDKNetAddress o);
737         public static native uint32_t CResult_NetAddressu8Z_ok(uint32_t o);
738         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_err(uint8_t e);
739         public static native uint32_t CResult_NetAddressu8Z_err(byte e);
740         // void CResult_NetAddressu8Z_free(struct LDKCResult_NetAddressu8Z _res);
741         public static native void CResult_NetAddressu8Z_free(uint32_t _res);
742         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(struct LDKCResult_NetAddressu8Z o);
743         public static native uint32_t CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(uint32_t o);
744         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_err(struct LDKDecodeError e);
745         public static native uint32_t CResult_CResult_NetAddressu8ZDecodeErrorZ_err(uint32_t e);
746         // void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ _res);
747         public static native void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(uint32_t _res);
748         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
749         public static native void CVec_u64Z_free(long[] _res);
750         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
751         public static native void CVec_UpdateAddHTLCZ_free(uint32_t[] _res);
752         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
753         public static native void CVec_UpdateFulfillHTLCZ_free(uint32_t[] _res);
754         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
755         public static native void CVec_UpdateFailHTLCZ_free(uint32_t[] _res);
756         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
757         public static native void CVec_UpdateFailMalformedHTLCZ_free(uint32_t[] _res);
758         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
759         public static native uint32_t CResult_boolLightningErrorZ_ok(boolean o);
760         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
761         public static native uint32_t CResult_boolLightningErrorZ_err(uint32_t e);
762         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
763         public static native void CResult_boolLightningErrorZ_free(uint32_t _res);
764         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
765         public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(uint32_t _res);
766         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
767         public static native uint32_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(uint32_t a, uint32_t b, uint32_t c);
768         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
769         public static native void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(uint32_t[] _res);
770         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
771         public static native void CVec_NodeAnnouncementZ_free(uint32_t[] _res);
772         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
773         public static native uint32_t CResult_NoneLightningErrorZ_ok();
774         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
775         public static native uint32_t CResult_NoneLightningErrorZ_err(uint32_t e);
776         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
777         public static native void CResult_NoneLightningErrorZ_free(uint32_t _res);
778         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
779         public static native uint32_t CResult_ChannelReestablishDecodeErrorZ_ok(uint32_t o);
780         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
781         public static native uint32_t CResult_ChannelReestablishDecodeErrorZ_err(uint32_t e);
782         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
783         public static native void CResult_ChannelReestablishDecodeErrorZ_free(uint32_t _res);
784         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
785         public static native uint32_t CResult_InitDecodeErrorZ_ok(uint32_t o);
786         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
787         public static native uint32_t CResult_InitDecodeErrorZ_err(uint32_t e);
788         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
789         public static native void CResult_InitDecodeErrorZ_free(uint32_t _res);
790         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
791         public static native uint32_t CResult_PingDecodeErrorZ_ok(uint32_t o);
792         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
793         public static native uint32_t CResult_PingDecodeErrorZ_err(uint32_t e);
794         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
795         public static native void CResult_PingDecodeErrorZ_free(uint32_t _res);
796         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
797         public static native uint32_t CResult_PongDecodeErrorZ_ok(uint32_t o);
798         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
799         public static native uint32_t CResult_PongDecodeErrorZ_err(uint32_t e);
800         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
801         public static native void CResult_PongDecodeErrorZ_free(uint32_t _res);
802         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
803         public static native uint32_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(uint32_t o);
804         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
805         public static native uint32_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(uint32_t e);
806         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
807         public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(uint32_t _res);
808         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
809         public static native uint32_t CResult_UnsignedChannelUpdateDecodeErrorZ_ok(uint32_t o);
810         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
811         public static native uint32_t CResult_UnsignedChannelUpdateDecodeErrorZ_err(uint32_t e);
812         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
813         public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(uint32_t _res);
814         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
815         public static native uint32_t CResult_ErrorMessageDecodeErrorZ_ok(uint32_t o);
816         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
817         public static native uint32_t CResult_ErrorMessageDecodeErrorZ_err(uint32_t e);
818         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
819         public static native void CResult_ErrorMessageDecodeErrorZ_free(uint32_t _res);
820         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
821         public static native uint32_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(uint32_t o);
822         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
823         public static native uint32_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(uint32_t e);
824         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
825         public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(uint32_t _res);
826         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
827         public static native uint32_t CResult_QueryShortChannelIdsDecodeErrorZ_ok(uint32_t o);
828         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
829         public static native uint32_t CResult_QueryShortChannelIdsDecodeErrorZ_err(uint32_t e);
830         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
831         public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(uint32_t _res);
832         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
833         public static native uint32_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(uint32_t o);
834         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
835         public static native uint32_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(uint32_t e);
836         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
837         public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(uint32_t _res);
838         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
839         public static native uint32_t CResult_QueryChannelRangeDecodeErrorZ_ok(uint32_t o);
840         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
841         public static native uint32_t CResult_QueryChannelRangeDecodeErrorZ_err(uint32_t e);
842         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
843         public static native void CResult_QueryChannelRangeDecodeErrorZ_free(uint32_t _res);
844         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
845         public static native uint32_t CResult_ReplyChannelRangeDecodeErrorZ_ok(uint32_t o);
846         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
847         public static native uint32_t CResult_ReplyChannelRangeDecodeErrorZ_err(uint32_t e);
848         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
849         public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(uint32_t _res);
850         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
851         public static native uint32_t CResult_GossipTimestampFilterDecodeErrorZ_ok(uint32_t o);
852         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
853         public static native uint32_t CResult_GossipTimestampFilterDecodeErrorZ_err(uint32_t e);
854         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
855         public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(uint32_t _res);
856         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
857         public static native void CVec_PublicKeyZ_free(byte[][] _res);
858         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
859         public static native void CVec_u8Z_free(byte[] _res);
860         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
861         public static native uint32_t CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
862         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
863         public static native uint32_t CResult_CVec_u8ZPeerHandleErrorZ_err(uint32_t e);
864         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
865         public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(uint32_t _res);
866         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
867         public static native uint32_t CResult_NonePeerHandleErrorZ_ok();
868         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
869         public static native uint32_t CResult_NonePeerHandleErrorZ_err(uint32_t e);
870         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
871         public static native void CResult_NonePeerHandleErrorZ_free(uint32_t _res);
872         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
873         public static native uint32_t CResult_boolPeerHandleErrorZ_ok(boolean o);
874         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
875         public static native uint32_t CResult_boolPeerHandleErrorZ_err(uint32_t e);
876         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
877         public static native void CResult_boolPeerHandleErrorZ_free(uint32_t _res);
878         // struct LDKCResult_SecretKeySecpErrorZ CResult_SecretKeySecpErrorZ_ok(struct LDKSecretKey o);
879         public static native uint32_t CResult_SecretKeySecpErrorZ_ok(byte[] o);
880         // struct LDKCResult_SecretKeySecpErrorZ CResult_SecretKeySecpErrorZ_err(enum LDKSecp256k1Error e);
881         public static native uint32_t CResult_SecretKeySecpErrorZ_err(LDKSecp256k1Error e);
882         // void CResult_SecretKeySecpErrorZ_free(struct LDKCResult_SecretKeySecpErrorZ _res);
883         public static native void CResult_SecretKeySecpErrorZ_free(uint32_t _res);
884         // struct LDKCResult_PublicKeySecpErrorZ CResult_PublicKeySecpErrorZ_ok(struct LDKPublicKey o);
885         public static native uint32_t CResult_PublicKeySecpErrorZ_ok(byte[] o);
886         // struct LDKCResult_PublicKeySecpErrorZ CResult_PublicKeySecpErrorZ_err(enum LDKSecp256k1Error e);
887         public static native uint32_t CResult_PublicKeySecpErrorZ_err(LDKSecp256k1Error e);
888         // void CResult_PublicKeySecpErrorZ_free(struct LDKCResult_PublicKeySecpErrorZ _res);
889         public static native void CResult_PublicKeySecpErrorZ_free(uint32_t _res);
890         // struct LDKCResult_TxCreationKeysSecpErrorZ CResult_TxCreationKeysSecpErrorZ_ok(struct LDKTxCreationKeys o);
891         public static native uint32_t CResult_TxCreationKeysSecpErrorZ_ok(uint32_t o);
892         // struct LDKCResult_TxCreationKeysSecpErrorZ CResult_TxCreationKeysSecpErrorZ_err(enum LDKSecp256k1Error e);
893         public static native uint32_t CResult_TxCreationKeysSecpErrorZ_err(LDKSecp256k1Error e);
894         // void CResult_TxCreationKeysSecpErrorZ_free(struct LDKCResult_TxCreationKeysSecpErrorZ _res);
895         public static native void CResult_TxCreationKeysSecpErrorZ_free(uint32_t _res);
896         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
897         public static native uint32_t CResult_TrustedCommitmentTransactionNoneZ_ok(uint32_t o);
898         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
899         public static native uint32_t CResult_TrustedCommitmentTransactionNoneZ_err();
900         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
901         public static native void CResult_TrustedCommitmentTransactionNoneZ_free(uint32_t _res);
902         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
903         public static native void CVec_RouteHopZ_free(uint32_t[] _res);
904         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
905         public static native void CVec_CVec_RouteHopZZ_free(uint32_t[][] _res);
906         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
907         public static native uint32_t CResult_RouteDecodeErrorZ_ok(uint32_t o);
908         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
909         public static native uint32_t CResult_RouteDecodeErrorZ_err(uint32_t e);
910         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
911         public static native void CResult_RouteDecodeErrorZ_free(uint32_t _res);
912         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
913         public static native void CVec_RouteHintZ_free(uint32_t[] _res);
914         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
915         public static native uint32_t CResult_RouteLightningErrorZ_ok(uint32_t o);
916         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
917         public static native uint32_t CResult_RouteLightningErrorZ_err(uint32_t e);
918         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
919         public static native void CResult_RouteLightningErrorZ_free(uint32_t _res);
920         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
921         public static native uint32_t CResult_RoutingFeesDecodeErrorZ_ok(uint32_t o);
922         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
923         public static native uint32_t CResult_RoutingFeesDecodeErrorZ_err(uint32_t e);
924         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
925         public static native void CResult_RoutingFeesDecodeErrorZ_free(uint32_t _res);
926         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
927         public static native uint32_t CResult_NodeAnnouncementInfoDecodeErrorZ_ok(uint32_t o);
928         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
929         public static native uint32_t CResult_NodeAnnouncementInfoDecodeErrorZ_err(uint32_t e);
930         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
931         public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(uint32_t _res);
932         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
933         public static native uint32_t CResult_NodeInfoDecodeErrorZ_ok(uint32_t o);
934         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
935         public static native uint32_t CResult_NodeInfoDecodeErrorZ_err(uint32_t e);
936         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
937         public static native void CResult_NodeInfoDecodeErrorZ_free(uint32_t _res);
938         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
939         public static native uint32_t CResult_NetworkGraphDecodeErrorZ_ok(uint32_t o);
940         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
941         public static native uint32_t CResult_NetworkGraphDecodeErrorZ_err(uint32_t e);
942         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
943         public static native void CResult_NetworkGraphDecodeErrorZ_free(uint32_t _res);
944         // void Event_free(struct LDKEvent this_ptr);
945         public static native void Event_free(uint32_t this_ptr);
946         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
947         public static native uint32_t Event_clone(uint32_t orig);
948         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
949         public static native byte[] Event_write(uint32_t obj);
950         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
951         public static native void MessageSendEvent_free(uint32_t this_ptr);
952         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
953         public static native uint32_t MessageSendEvent_clone(uint32_t orig);
954         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
955         public static native void MessageSendEventsProvider_free(uint32_t this_ptr);
956         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
957         public static native void EventsProvider_free(uint32_t this_ptr);
958         // void APIError_free(struct LDKAPIError this_ptr);
959         public static native void APIError_free(uint32_t this_ptr);
960         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
961         public static native uint32_t APIError_clone(uint32_t orig);
962         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
963         public static native LDKLevel Level_clone(uint32_t orig);
964         // MUST_USE_RES enum LDKLevel Level_max(void);
965         public static native LDKLevel Level_max();
966         // void Logger_free(struct LDKLogger this_ptr);
967         public static native void Logger_free(uint32_t this_ptr);
968         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_ptr);
969         public static native void ChannelHandshakeConfig_free(uint32_t this_ptr);
970         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
971         public static native uint32_t ChannelHandshakeConfig_clone(uint32_t orig);
972         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
973         public static native int ChannelHandshakeConfig_get_minimum_depth(uint32_t this_ptr);
974         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
975         public static native void ChannelHandshakeConfig_set_minimum_depth(uint32_t this_ptr, int val);
976         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
977         public static native short ChannelHandshakeConfig_get_our_to_self_delay(uint32_t this_ptr);
978         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
979         public static native void ChannelHandshakeConfig_set_our_to_self_delay(uint32_t this_ptr, short val);
980         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
981         public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(uint32_t this_ptr);
982         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
983         public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(uint32_t this_ptr, long val);
984         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg);
985         public static native uint32_t ChannelHandshakeConfig_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg);
986         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
987         public static native uint32_t ChannelHandshakeConfig_default();
988         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_ptr);
989         public static native void ChannelHandshakeLimits_free(uint32_t this_ptr);
990         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
991         public static native uint32_t ChannelHandshakeLimits_clone(uint32_t orig);
992         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
993         public static native long ChannelHandshakeLimits_get_min_funding_satoshis(uint32_t this_ptr);
994         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
995         public static native void ChannelHandshakeLimits_set_min_funding_satoshis(uint32_t this_ptr, long val);
996         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
997         public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(uint32_t this_ptr);
998         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
999         public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(uint32_t this_ptr, long val);
1000         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1001         public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(uint32_t this_ptr);
1002         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1003         public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(uint32_t this_ptr, long val);
1004         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1005         public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(uint32_t this_ptr);
1006         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1007         public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(uint32_t this_ptr, long val);
1008         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1009         public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(uint32_t this_ptr);
1010         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
1011         public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(uint32_t this_ptr, short val);
1012         // uint64_t ChannelHandshakeLimits_get_min_dust_limit_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1013         public static native long ChannelHandshakeLimits_get_min_dust_limit_satoshis(uint32_t this_ptr);
1014         // void ChannelHandshakeLimits_set_min_dust_limit_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1015         public static native void ChannelHandshakeLimits_set_min_dust_limit_satoshis(uint32_t this_ptr, long val);
1016         // uint64_t ChannelHandshakeLimits_get_max_dust_limit_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1017         public static native long ChannelHandshakeLimits_get_max_dust_limit_satoshis(uint32_t this_ptr);
1018         // void ChannelHandshakeLimits_set_max_dust_limit_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1019         public static native void ChannelHandshakeLimits_set_max_dust_limit_satoshis(uint32_t this_ptr, long val);
1020         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1021         public static native int ChannelHandshakeLimits_get_max_minimum_depth(uint32_t this_ptr);
1022         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
1023         public static native void ChannelHandshakeLimits_set_max_minimum_depth(uint32_t this_ptr, int val);
1024         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1025         public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(uint32_t this_ptr);
1026         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
1027         public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(uint32_t this_ptr, boolean val);
1028         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1029         public static native short ChannelHandshakeLimits_get_their_to_self_delay(uint32_t this_ptr);
1030         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
1031         public static native void ChannelHandshakeLimits_set_their_to_self_delay(uint32_t this_ptr, short val);
1032         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint64_t min_dust_limit_satoshis_arg, uint64_t max_dust_limit_satoshis_arg, uint32_t max_minimum_depth_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
1033         public static native uint32_t ChannelHandshakeLimits_new(long min_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, short min_max_accepted_htlcs_arg, long min_dust_limit_satoshis_arg, long max_dust_limit_satoshis_arg, int max_minimum_depth_arg, boolean force_announced_channel_preference_arg, short their_to_self_delay_arg);
1034         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
1035         public static native uint32_t ChannelHandshakeLimits_default();
1036         // void ChannelConfig_free(struct LDKChannelConfig this_ptr);
1037         public static native void ChannelConfig_free(uint32_t this_ptr);
1038         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
1039         public static native uint32_t ChannelConfig_clone(uint32_t orig);
1040         // uint32_t ChannelConfig_get_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
1041         public static native int ChannelConfig_get_fee_proportional_millionths(uint32_t this_ptr);
1042         // void ChannelConfig_set_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
1043         public static native void ChannelConfig_set_fee_proportional_millionths(uint32_t this_ptr, int val);
1044         // bool ChannelConfig_get_announced_channel(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
1045         public static native boolean ChannelConfig_get_announced_channel(uint32_t this_ptr);
1046         // void ChannelConfig_set_announced_channel(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
1047         public static native void ChannelConfig_set_announced_channel(uint32_t this_ptr, boolean val);
1048         // bool ChannelConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
1049         public static native boolean ChannelConfig_get_commit_upfront_shutdown_pubkey(uint32_t this_ptr);
1050         // void ChannelConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
1051         public static native void ChannelConfig_set_commit_upfront_shutdown_pubkey(uint32_t this_ptr, boolean val);
1052         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t fee_proportional_millionths_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg);
1053         public static native uint32_t ChannelConfig_new(int fee_proportional_millionths_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg);
1054         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
1055         public static native uint32_t ChannelConfig_default();
1056         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
1057         public static native byte[] ChannelConfig_write(uint32_t obj);
1058         // struct LDKChannelConfig ChannelConfig_read(struct LDKu8slice ser);
1059         public static native uint32_t ChannelConfig_read(byte[] ser);
1060         // void UserConfig_free(struct LDKUserConfig this_ptr);
1061         public static native void UserConfig_free(uint32_t this_ptr);
1062         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
1063         public static native uint32_t UserConfig_clone(uint32_t orig);
1064         // struct LDKChannelHandshakeConfig UserConfig_get_own_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
1065         public static native uint32_t UserConfig_get_own_channel_config(uint32_t this_ptr);
1066         // void UserConfig_set_own_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
1067         public static native void UserConfig_set_own_channel_config(uint32_t this_ptr, uint32_t val);
1068         // struct LDKChannelHandshakeLimits UserConfig_get_peer_channel_config_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
1069         public static native uint32_t UserConfig_get_peer_channel_config_limits(uint32_t this_ptr);
1070         // void UserConfig_set_peer_channel_config_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
1071         public static native void UserConfig_set_peer_channel_config_limits(uint32_t this_ptr, uint32_t val);
1072         // struct LDKChannelConfig UserConfig_get_channel_options(const struct LDKUserConfig *NONNULL_PTR this_ptr);
1073         public static native uint32_t UserConfig_get_channel_options(uint32_t this_ptr);
1074         // void UserConfig_set_channel_options(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
1075         public static native void UserConfig_set_channel_options(uint32_t this_ptr, uint32_t val);
1076         // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig own_channel_config_arg, struct LDKChannelHandshakeLimits peer_channel_config_limits_arg, struct LDKChannelConfig channel_options_arg);
1077         public static native uint32_t UserConfig_new(uint32_t own_channel_config_arg, uint32_t peer_channel_config_limits_arg, uint32_t channel_options_arg);
1078         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
1079         public static native uint32_t UserConfig_default();
1080         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
1081         public static native LDKAccessError AccessError_clone(uint32_t orig);
1082         // void Access_free(struct LDKAccess this_ptr);
1083         public static native void Access_free(uint32_t this_ptr);
1084         // void Watch_free(struct LDKWatch this_ptr);
1085         public static native void Watch_free(uint32_t this_ptr);
1086         // void Filter_free(struct LDKFilter this_ptr);
1087         public static native void Filter_free(uint32_t this_ptr);
1088         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
1089         public static native void BroadcasterInterface_free(uint32_t this_ptr);
1090         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
1091         public static native LDKConfirmationTarget ConfirmationTarget_clone(uint32_t orig);
1092         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
1093         public static native void FeeEstimator_free(uint32_t this_ptr);
1094         // void ChainMonitor_free(struct LDKChainMonitor this_ptr);
1095         public static native void ChainMonitor_free(uint32_t this_ptr);
1096         // void ChainMonitor_block_connected(const struct LDKChainMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height);
1097         public static native void ChainMonitor_block_connected(uint32_t this_arg, byte[] header, uint32_t[] txdata, int height);
1098         // void ChainMonitor_block_disconnected(const struct LDKChainMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t disconnected_height);
1099         public static native void ChainMonitor_block_disconnected(uint32_t this_arg, byte[] header, int disconnected_height);
1100         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKFilter *chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
1101         public static native uint32_t ChainMonitor_new(uint32_t chain_source, uint32_t broadcaster, uint32_t logger, uint32_t feeest, uint32_t persister);
1102         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
1103         public static native uint32_t ChainMonitor_as_Watch(uint32_t this_arg);
1104         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
1105         public static native uint32_t ChainMonitor_as_EventsProvider(uint32_t this_arg);
1106         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_ptr);
1107         public static native void ChannelMonitorUpdate_free(uint32_t this_ptr);
1108         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
1109         public static native uint32_t ChannelMonitorUpdate_clone(uint32_t orig);
1110         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
1111         public static native long ChannelMonitorUpdate_get_update_id(uint32_t this_ptr);
1112         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
1113         public static native void ChannelMonitorUpdate_set_update_id(uint32_t this_ptr, long val);
1114         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
1115         public static native byte[] ChannelMonitorUpdate_write(uint32_t obj);
1116         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
1117         public static native uint32_t ChannelMonitorUpdate_read(byte[] ser);
1118         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
1119         public static native LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(uint32_t orig);
1120         // void MonitorUpdateError_free(struct LDKMonitorUpdateError this_ptr);
1121         public static native void MonitorUpdateError_free(uint32_t this_ptr);
1122         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
1123         public static native void MonitorEvent_free(uint32_t this_ptr);
1124         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
1125         public static native uint32_t MonitorEvent_clone(uint32_t orig);
1126         // void HTLCUpdate_free(struct LDKHTLCUpdate this_ptr);
1127         public static native void HTLCUpdate_free(uint32_t this_ptr);
1128         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
1129         public static native uint32_t HTLCUpdate_clone(uint32_t orig);
1130         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
1131         public static native byte[] HTLCUpdate_write(uint32_t obj);
1132         // struct LDKHTLCUpdate HTLCUpdate_read(struct LDKu8slice ser);
1133         public static native uint32_t HTLCUpdate_read(byte[] ser);
1134         // void ChannelMonitor_free(struct LDKChannelMonitor this_ptr);
1135         public static native void ChannelMonitor_free(uint32_t this_ptr);
1136         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
1137         public static native byte[] ChannelMonitor_write(uint32_t obj);
1138         // MUST_USE_RES struct LDKCResult_NoneMonitorUpdateErrorZ ChannelMonitor_update_monitor(struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
1139         public static native uint32_t ChannelMonitor_update_monitor(uint32_t this_arg, uint32_t updates, uint32_t broadcaster, uint32_t fee_estimator, uint32_t logger);
1140         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
1141         public static native long ChannelMonitor_get_latest_update_id(uint32_t this_arg);
1142         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
1143         public static native uint32_t ChannelMonitor_get_funding_txo(uint32_t this_arg);
1144         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(struct LDKChannelMonitor *NONNULL_PTR this_arg);
1145         public static native uint32_t[] ChannelMonitor_get_and_clear_pending_monitor_events(uint32_t this_arg);
1146         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(struct LDKChannelMonitor *NONNULL_PTR this_arg);
1147         public static native uint32_t[] ChannelMonitor_get_and_clear_pending_events(uint32_t this_arg);
1148         // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
1149         public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(uint32_t this_arg, uint32_t logger);
1150         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
1151         public static native uint32_t[] ChannelMonitor_block_connected(uint32_t this_arg, byte[] header, uint32_t[] txdata, int height, uint32_t broadcaster, uint32_t fee_estimator, uint32_t logger);
1152         // void ChannelMonitor_block_disconnected(struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
1153         public static native void ChannelMonitor_block_disconnected(uint32_t this_arg, byte[] header, int height, uint32_t broadcaster, uint32_t fee_estimator, uint32_t logger);
1154         // void Persist_free(struct LDKPersist this_ptr);
1155         public static native void Persist_free(uint32_t this_ptr);
1156         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
1157         public static native uint32_t C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser, uint32_t arg);
1158         // void OutPoint_free(struct LDKOutPoint this_ptr);
1159         public static native void OutPoint_free(uint32_t this_ptr);
1160         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
1161         public static native uint32_t OutPoint_clone(uint32_t orig);
1162         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
1163         public static native byte[] OutPoint_get_txid(uint32_t this_ptr);
1164         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1165         public static native void OutPoint_set_txid(uint32_t this_ptr, byte[] val);
1166         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
1167         public static native short OutPoint_get_index(uint32_t this_ptr);
1168         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
1169         public static native void OutPoint_set_index(uint32_t this_ptr, short val);
1170         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
1171         public static native uint32_t OutPoint_new(byte[] txid_arg, short index_arg);
1172         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
1173         public static native byte[] OutPoint_to_channel_id(uint32_t this_arg);
1174         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
1175         public static native byte[] OutPoint_write(uint32_t obj);
1176         // struct LDKOutPoint OutPoint_read(struct LDKu8slice ser);
1177         public static native uint32_t OutPoint_read(byte[] ser);
1178         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
1179         public static native void SpendableOutputDescriptor_free(uint32_t this_ptr);
1180         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
1181         public static native uint32_t SpendableOutputDescriptor_clone(uint32_t orig);
1182         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
1183         public static native byte[] SpendableOutputDescriptor_write(uint32_t obj);
1184         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
1185         public static native uint32_t SpendableOutputDescriptor_read(byte[] ser);
1186         // struct LDKChannelKeys ChannelKeys_clone(const struct LDKChannelKeys *NONNULL_PTR orig);
1187         public static native uint32_t ChannelKeys_clone(uint32_t orig);
1188         // void ChannelKeys_free(struct LDKChannelKeys this_ptr);
1189         public static native void ChannelKeys_free(uint32_t this_ptr);
1190         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
1191         public static native void KeysInterface_free(uint32_t this_ptr);
1192         // void InMemoryChannelKeys_free(struct LDKInMemoryChannelKeys this_ptr);
1193         public static native void InMemoryChannelKeys_free(uint32_t this_ptr);
1194         // struct LDKInMemoryChannelKeys InMemoryChannelKeys_clone(const struct LDKInMemoryChannelKeys *NONNULL_PTR orig);
1195         public static native uint32_t InMemoryChannelKeys_clone(uint32_t orig);
1196         // const uint8_t (*InMemoryChannelKeys_get_funding_key(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr))[32];
1197         public static native byte[] InMemoryChannelKeys_get_funding_key(uint32_t this_ptr);
1198         // void InMemoryChannelKeys_set_funding_key(struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1199         public static native void InMemoryChannelKeys_set_funding_key(uint32_t this_ptr, byte[] val);
1200         // const uint8_t (*InMemoryChannelKeys_get_revocation_base_key(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr))[32];
1201         public static native byte[] InMemoryChannelKeys_get_revocation_base_key(uint32_t this_ptr);
1202         // void InMemoryChannelKeys_set_revocation_base_key(struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1203         public static native void InMemoryChannelKeys_set_revocation_base_key(uint32_t this_ptr, byte[] val);
1204         // const uint8_t (*InMemoryChannelKeys_get_payment_key(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr))[32];
1205         public static native byte[] InMemoryChannelKeys_get_payment_key(uint32_t this_ptr);
1206         // void InMemoryChannelKeys_set_payment_key(struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1207         public static native void InMemoryChannelKeys_set_payment_key(uint32_t this_ptr, byte[] val);
1208         // const uint8_t (*InMemoryChannelKeys_get_delayed_payment_base_key(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr))[32];
1209         public static native byte[] InMemoryChannelKeys_get_delayed_payment_base_key(uint32_t this_ptr);
1210         // void InMemoryChannelKeys_set_delayed_payment_base_key(struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1211         public static native void InMemoryChannelKeys_set_delayed_payment_base_key(uint32_t this_ptr, byte[] val);
1212         // const uint8_t (*InMemoryChannelKeys_get_htlc_base_key(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr))[32];
1213         public static native byte[] InMemoryChannelKeys_get_htlc_base_key(uint32_t this_ptr);
1214         // void InMemoryChannelKeys_set_htlc_base_key(struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1215         public static native void InMemoryChannelKeys_set_htlc_base_key(uint32_t this_ptr, byte[] val);
1216         // const uint8_t (*InMemoryChannelKeys_get_commitment_seed(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr))[32];
1217         public static native byte[] InMemoryChannelKeys_get_commitment_seed(uint32_t this_ptr);
1218         // void InMemoryChannelKeys_set_commitment_seed(struct LDKInMemoryChannelKeys *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1219         public static native void InMemoryChannelKeys_set_commitment_seed(uint32_t this_ptr, byte[] val);
1220         // MUST_USE_RES struct LDKInMemoryChannelKeys InMemoryChannelKeys_new(struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKC2Tuple_u64u64Z key_derivation_params);
1221         public static native uint32_t InMemoryChannelKeys_new(byte[] funding_key, byte[] revocation_base_key, byte[] payment_key, byte[] delayed_payment_base_key, byte[] htlc_base_key, byte[] commitment_seed, long channel_value_satoshis, uint32_t key_derivation_params);
1222         // MUST_USE_RES struct LDKChannelPublicKeys InMemoryChannelKeys_counterparty_pubkeys(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_arg);
1223         public static native uint32_t InMemoryChannelKeys_counterparty_pubkeys(uint32_t this_arg);
1224         // MUST_USE_RES uint16_t InMemoryChannelKeys_counterparty_selected_contest_delay(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_arg);
1225         public static native short InMemoryChannelKeys_counterparty_selected_contest_delay(uint32_t this_arg);
1226         // MUST_USE_RES uint16_t InMemoryChannelKeys_holder_selected_contest_delay(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_arg);
1227         public static native short InMemoryChannelKeys_holder_selected_contest_delay(uint32_t this_arg);
1228         // MUST_USE_RES bool InMemoryChannelKeys_is_outbound(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_arg);
1229         public static native boolean InMemoryChannelKeys_is_outbound(uint32_t this_arg);
1230         // MUST_USE_RES struct LDKOutPoint InMemoryChannelKeys_funding_outpoint(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_arg);
1231         public static native uint32_t InMemoryChannelKeys_funding_outpoint(uint32_t this_arg);
1232         // MUST_USE_RES struct LDKChannelTransactionParameters InMemoryChannelKeys_get_channel_parameters(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_arg);
1233         public static native uint32_t InMemoryChannelKeys_get_channel_parameters(uint32_t this_arg);
1234         // struct LDKChannelKeys InMemoryChannelKeys_as_ChannelKeys(const struct LDKInMemoryChannelKeys *NONNULL_PTR this_arg);
1235         public static native uint32_t InMemoryChannelKeys_as_ChannelKeys(uint32_t this_arg);
1236         // struct LDKCVec_u8Z InMemoryChannelKeys_write(const struct LDKInMemoryChannelKeys *NONNULL_PTR obj);
1237         public static native byte[] InMemoryChannelKeys_write(uint32_t obj);
1238         // struct LDKCResult_InMemoryChannelKeysDecodeErrorZ InMemoryChannelKeys_read(struct LDKu8slice ser);
1239         public static native uint32_t InMemoryChannelKeys_read(byte[] ser);
1240         // void KeysManager_free(struct LDKKeysManager this_ptr);
1241         public static native void KeysManager_free(uint32_t this_ptr);
1242         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], enum LDKNetwork network, uint64_t starting_time_secs, uint32_t starting_time_nanos);
1243         public static native uint32_t KeysManager_new(byte[] seed, LDKNetwork network, long starting_time_secs, int starting_time_nanos);
1244         // MUST_USE_RES struct LDKInMemoryChannelKeys KeysManager_derive_channel_keys(const struct LDKKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, uint64_t params_1, uint64_t params_2);
1245         public static native uint32_t KeysManager_derive_channel_keys(uint32_t this_arg, long channel_value_satoshis, long params_1, long params_2);
1246         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
1247         public static native uint32_t KeysManager_as_KeysInterface(uint32_t this_arg);
1248         // void ChannelManager_free(struct LDKChannelManager this_ptr);
1249         public static native void ChannelManager_free(uint32_t this_ptr);
1250         // void ChannelDetails_free(struct LDKChannelDetails this_ptr);
1251         public static native void ChannelDetails_free(uint32_t this_ptr);
1252         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
1253         public static native uint32_t ChannelDetails_clone(uint32_t orig);
1254         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
1255         public static native byte[] ChannelDetails_get_channel_id(uint32_t this_ptr);
1256         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1257         public static native void ChannelDetails_set_channel_id(uint32_t this_ptr, byte[] val);
1258         // struct LDKPublicKey ChannelDetails_get_remote_network_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
1259         public static native byte[] ChannelDetails_get_remote_network_id(uint32_t this_ptr);
1260         // void ChannelDetails_set_remote_network_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1261         public static native void ChannelDetails_set_remote_network_id(uint32_t this_ptr, byte[] val);
1262         // struct LDKInitFeatures ChannelDetails_get_counterparty_features(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
1263         public static native uint32_t ChannelDetails_get_counterparty_features(uint32_t this_ptr);
1264         // void ChannelDetails_set_counterparty_features(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
1265         public static native void ChannelDetails_set_counterparty_features(uint32_t this_ptr, uint32_t val);
1266         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
1267         public static native long ChannelDetails_get_channel_value_satoshis(uint32_t this_ptr);
1268         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
1269         public static native void ChannelDetails_set_channel_value_satoshis(uint32_t this_ptr, long val);
1270         // uint64_t ChannelDetails_get_user_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
1271         public static native long ChannelDetails_get_user_id(uint32_t this_ptr);
1272         // void ChannelDetails_set_user_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
1273         public static native void ChannelDetails_set_user_id(uint32_t this_ptr, long val);
1274         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
1275         public static native long ChannelDetails_get_outbound_capacity_msat(uint32_t this_ptr);
1276         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
1277         public static native void ChannelDetails_set_outbound_capacity_msat(uint32_t this_ptr, long val);
1278         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
1279         public static native long ChannelDetails_get_inbound_capacity_msat(uint32_t this_ptr);
1280         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
1281         public static native void ChannelDetails_set_inbound_capacity_msat(uint32_t this_ptr, long val);
1282         // bool ChannelDetails_get_is_live(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
1283         public static native boolean ChannelDetails_get_is_live(uint32_t this_ptr);
1284         // void ChannelDetails_set_is_live(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
1285         public static native void ChannelDetails_set_is_live(uint32_t this_ptr, boolean val);
1286         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
1287         public static native void PaymentSendFailure_free(uint32_t this_ptr);
1288         // MUST_USE_RES struct LDKChannelManager ChannelManager_new(enum LDKNetwork network, struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKLogger logger, struct LDKKeysInterface keys_manager, struct LDKUserConfig config, uintptr_t current_blockchain_height);
1289         public static native uint32_t ChannelManager_new(LDKNetwork network, uint32_t fee_est, uint32_t chain_monitor, uint32_t tx_broadcaster, uint32_t logger, uint32_t keys_manager, uint32_t config, long current_blockchain_height);
1290         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, uint64_t user_id, struct LDKUserConfig override_config);
1291         public static native uint32_t ChannelManager_create_channel(uint32_t this_arg, byte[] their_network_key, long channel_value_satoshis, long push_msat, long user_id, uint32_t override_config);
1292         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
1293         public static native uint32_t[] ChannelManager_list_channels(uint32_t this_arg);
1294         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
1295         public static native uint32_t[] ChannelManager_list_usable_channels(uint32_t this_arg);
1296         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
1297         public static native uint32_t ChannelManager_close_channel(uint32_t this_arg, byte[] channel_id);
1298         // void ChannelManager_force_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
1299         public static native void ChannelManager_force_close_channel(uint32_t this_arg, byte[] channel_id);
1300         // void ChannelManager_force_close_all_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
1301         public static native void ChannelManager_force_close_all_channels(uint32_t this_arg);
1302         // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
1303         public static native uint32_t ChannelManager_send_payment(uint32_t this_arg, uint32_t route, byte[] payment_hash, byte[] payment_secret);
1304         // void ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKOutPoint funding_txo);
1305         public static native void ChannelManager_funding_transaction_generated(uint32_t this_arg, byte[] temporary_channel_id, uint32_t funding_txo);
1306         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
1307         public static native void ChannelManager_broadcast_node_announcement(uint32_t this_arg, byte[] rgb, byte[] alias, uint32_t[] addresses);
1308         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
1309         public static native void ChannelManager_process_pending_htlc_forwards(uint32_t this_arg);
1310         // void ChannelManager_timer_chan_freshness_every_min(const struct LDKChannelManager *NONNULL_PTR this_arg);
1311         public static native void ChannelManager_timer_chan_freshness_every_min(uint32_t this_arg);
1312         // MUST_USE_RES bool ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKThirtyTwoBytes payment_secret);
1313         public static native boolean ChannelManager_fail_htlc_backwards(uint32_t this_arg, byte[] payment_hash, byte[] payment_secret);
1314         // MUST_USE_RES bool ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret, uint64_t expected_amount);
1315         public static native boolean ChannelManager_claim_funds(uint32_t this_arg, byte[] payment_preimage, byte[] payment_secret, long expected_amount);
1316         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
1317         public static native byte[] ChannelManager_get_our_node_id(uint32_t this_arg);
1318         // void ChannelManager_channel_monitor_updated(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKOutPoint *NONNULL_PTR funding_txo, uint64_t highest_applied_update_id);
1319         public static native void ChannelManager_channel_monitor_updated(uint32_t this_arg, uint32_t funding_txo, long highest_applied_update_id);
1320         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
1321         public static native uint32_t ChannelManager_as_MessageSendEventsProvider(uint32_t this_arg);
1322         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
1323         public static native uint32_t ChannelManager_as_EventsProvider(uint32_t this_arg);
1324         // void ChannelManager_block_connected(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height);
1325         public static native void ChannelManager_block_connected(uint32_t this_arg, byte[] header, uint32_t[] txdata, int height);
1326         // void ChannelManager_block_disconnected(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*header)[80]);
1327         public static native void ChannelManager_block_disconnected(uint32_t this_arg, byte[] header);
1328         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
1329         public static native uint32_t ChannelManager_as_ChannelMessageHandler(uint32_t this_arg);
1330         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
1331         public static native byte[] ChannelManager_write(uint32_t obj);
1332         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_ptr);
1333         public static native void ChannelManagerReadArgs_free(uint32_t this_ptr);
1334         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
1335         public static native uint32_t ChannelManagerReadArgs_get_keys_manager(uint32_t this_ptr);
1336         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
1337         public static native void ChannelManagerReadArgs_set_keys_manager(uint32_t this_ptr, uint32_t val);
1338         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
1339         public static native uint32_t ChannelManagerReadArgs_get_fee_estimator(uint32_t this_ptr);
1340         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
1341         public static native void ChannelManagerReadArgs_set_fee_estimator(uint32_t this_ptr, uint32_t val);
1342         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
1343         public static native uint32_t ChannelManagerReadArgs_get_chain_monitor(uint32_t this_ptr);
1344         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
1345         public static native void ChannelManagerReadArgs_set_chain_monitor(uint32_t this_ptr, uint32_t val);
1346         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
1347         public static native uint32_t ChannelManagerReadArgs_get_tx_broadcaster(uint32_t this_ptr);
1348         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
1349         public static native void ChannelManagerReadArgs_set_tx_broadcaster(uint32_t this_ptr, uint32_t val);
1350         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
1351         public static native uint32_t ChannelManagerReadArgs_get_logger(uint32_t this_ptr);
1352         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
1353         public static native void ChannelManagerReadArgs_set_logger(uint32_t this_ptr, uint32_t val);
1354         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
1355         public static native uint32_t ChannelManagerReadArgs_get_default_config(uint32_t this_ptr);
1356         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
1357         public static native void ChannelManagerReadArgs_set_default_config(uint32_t this_ptr, uint32_t val);
1358         // MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKKeysInterface keys_manager, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors);
1359         public static native uint32_t ChannelManagerReadArgs_new(uint32_t keys_manager, uint32_t fee_estimator, uint32_t chain_monitor, uint32_t tx_broadcaster, uint32_t logger, uint32_t default_config, uint32_t[] channel_monitors);
1360         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
1361         public static native uint32_t C2Tuple_BlockHashChannelManagerZ_read(byte[] ser, uint32_t arg);
1362         // void DecodeError_free(struct LDKDecodeError this_ptr);
1363         public static native void DecodeError_free(uint32_t this_ptr);
1364         // void Init_free(struct LDKInit this_ptr);
1365         public static native void Init_free(uint32_t this_ptr);
1366         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
1367         public static native uint32_t Init_clone(uint32_t orig);
1368         // void ErrorMessage_free(struct LDKErrorMessage this_ptr);
1369         public static native void ErrorMessage_free(uint32_t this_ptr);
1370         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
1371         public static native uint32_t ErrorMessage_clone(uint32_t orig);
1372         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
1373         public static native byte[] ErrorMessage_get_channel_id(uint32_t this_ptr);
1374         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1375         public static native void ErrorMessage_set_channel_id(uint32_t this_ptr, byte[] val);
1376         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
1377         public static native String ErrorMessage_get_data(uint32_t this_ptr);
1378         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
1379         public static native void ErrorMessage_set_data(uint32_t this_ptr, byte[] val);
1380         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z data_arg);
1381         public static native uint32_t ErrorMessage_new(byte[] channel_id_arg, byte[] data_arg);
1382         // void Ping_free(struct LDKPing this_ptr);
1383         public static native void Ping_free(uint32_t this_ptr);
1384         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
1385         public static native uint32_t Ping_clone(uint32_t orig);
1386         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
1387         public static native short Ping_get_ponglen(uint32_t this_ptr);
1388         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
1389         public static native void Ping_set_ponglen(uint32_t this_ptr, short val);
1390         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
1391         public static native short Ping_get_byteslen(uint32_t this_ptr);
1392         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
1393         public static native void Ping_set_byteslen(uint32_t this_ptr, short val);
1394         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
1395         public static native uint32_t Ping_new(short ponglen_arg, short byteslen_arg);
1396         // void Pong_free(struct LDKPong this_ptr);
1397         public static native void Pong_free(uint32_t this_ptr);
1398         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
1399         public static native uint32_t Pong_clone(uint32_t orig);
1400         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
1401         public static native short Pong_get_byteslen(uint32_t this_ptr);
1402         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
1403         public static native void Pong_set_byteslen(uint32_t this_ptr, short val);
1404         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
1405         public static native uint32_t Pong_new(short byteslen_arg);
1406         // void OpenChannel_free(struct LDKOpenChannel this_ptr);
1407         public static native void OpenChannel_free(uint32_t this_ptr);
1408         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
1409         public static native uint32_t OpenChannel_clone(uint32_t orig);
1410         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
1411         public static native byte[] OpenChannel_get_chain_hash(uint32_t this_ptr);
1412         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1413         public static native void OpenChannel_set_chain_hash(uint32_t this_ptr, byte[] val);
1414         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
1415         public static native byte[] OpenChannel_get_temporary_channel_id(uint32_t this_ptr);
1416         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1417         public static native void OpenChannel_set_temporary_channel_id(uint32_t this_ptr, byte[] val);
1418         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1419         public static native long OpenChannel_get_funding_satoshis(uint32_t this_ptr);
1420         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
1421         public static native void OpenChannel_set_funding_satoshis(uint32_t this_ptr, long val);
1422         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1423         public static native long OpenChannel_get_push_msat(uint32_t this_ptr);
1424         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
1425         public static native void OpenChannel_set_push_msat(uint32_t this_ptr, long val);
1426         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1427         public static native long OpenChannel_get_dust_limit_satoshis(uint32_t this_ptr);
1428         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
1429         public static native void OpenChannel_set_dust_limit_satoshis(uint32_t this_ptr, long val);
1430         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1431         public static native long OpenChannel_get_max_htlc_value_in_flight_msat(uint32_t this_ptr);
1432         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
1433         public static native void OpenChannel_set_max_htlc_value_in_flight_msat(uint32_t this_ptr, long val);
1434         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1435         public static native long OpenChannel_get_channel_reserve_satoshis(uint32_t this_ptr);
1436         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
1437         public static native void OpenChannel_set_channel_reserve_satoshis(uint32_t this_ptr, long val);
1438         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1439         public static native long OpenChannel_get_htlc_minimum_msat(uint32_t this_ptr);
1440         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
1441         public static native void OpenChannel_set_htlc_minimum_msat(uint32_t this_ptr, long val);
1442         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1443         public static native int OpenChannel_get_feerate_per_kw(uint32_t this_ptr);
1444         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
1445         public static native void OpenChannel_set_feerate_per_kw(uint32_t this_ptr, int val);
1446         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1447         public static native short OpenChannel_get_to_self_delay(uint32_t this_ptr);
1448         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
1449         public static native void OpenChannel_set_to_self_delay(uint32_t this_ptr, short val);
1450         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1451         public static native short OpenChannel_get_max_accepted_htlcs(uint32_t this_ptr);
1452         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
1453         public static native void OpenChannel_set_max_accepted_htlcs(uint32_t this_ptr, short val);
1454         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1455         public static native byte[] OpenChannel_get_funding_pubkey(uint32_t this_ptr);
1456         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1457         public static native void OpenChannel_set_funding_pubkey(uint32_t this_ptr, byte[] val);
1458         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1459         public static native byte[] OpenChannel_get_revocation_basepoint(uint32_t this_ptr);
1460         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1461         public static native void OpenChannel_set_revocation_basepoint(uint32_t this_ptr, byte[] val);
1462         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1463         public static native byte[] OpenChannel_get_payment_point(uint32_t this_ptr);
1464         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1465         public static native void OpenChannel_set_payment_point(uint32_t this_ptr, byte[] val);
1466         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1467         public static native byte[] OpenChannel_get_delayed_payment_basepoint(uint32_t this_ptr);
1468         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1469         public static native void OpenChannel_set_delayed_payment_basepoint(uint32_t this_ptr, byte[] val);
1470         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1471         public static native byte[] OpenChannel_get_htlc_basepoint(uint32_t this_ptr);
1472         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1473         public static native void OpenChannel_set_htlc_basepoint(uint32_t this_ptr, byte[] val);
1474         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1475         public static native byte[] OpenChannel_get_first_per_commitment_point(uint32_t this_ptr);
1476         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1477         public static native void OpenChannel_set_first_per_commitment_point(uint32_t this_ptr, byte[] val);
1478         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
1479         public static native byte OpenChannel_get_channel_flags(uint32_t this_ptr);
1480         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
1481         public static native void OpenChannel_set_channel_flags(uint32_t this_ptr, byte val);
1482         // void AcceptChannel_free(struct LDKAcceptChannel this_ptr);
1483         public static native void AcceptChannel_free(uint32_t this_ptr);
1484         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
1485         public static native uint32_t AcceptChannel_clone(uint32_t orig);
1486         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
1487         public static native byte[] AcceptChannel_get_temporary_channel_id(uint32_t this_ptr);
1488         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1489         public static native void AcceptChannel_set_temporary_channel_id(uint32_t this_ptr, byte[] val);
1490         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1491         public static native long AcceptChannel_get_dust_limit_satoshis(uint32_t this_ptr);
1492         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
1493         public static native void AcceptChannel_set_dust_limit_satoshis(uint32_t this_ptr, long val);
1494         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1495         public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(uint32_t this_ptr);
1496         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
1497         public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(uint32_t this_ptr, long val);
1498         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1499         public static native long AcceptChannel_get_channel_reserve_satoshis(uint32_t this_ptr);
1500         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
1501         public static native void AcceptChannel_set_channel_reserve_satoshis(uint32_t this_ptr, long val);
1502         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1503         public static native long AcceptChannel_get_htlc_minimum_msat(uint32_t this_ptr);
1504         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
1505         public static native void AcceptChannel_set_htlc_minimum_msat(uint32_t this_ptr, long val);
1506         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1507         public static native int AcceptChannel_get_minimum_depth(uint32_t this_ptr);
1508         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
1509         public static native void AcceptChannel_set_minimum_depth(uint32_t this_ptr, int val);
1510         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1511         public static native short AcceptChannel_get_to_self_delay(uint32_t this_ptr);
1512         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
1513         public static native void AcceptChannel_set_to_self_delay(uint32_t this_ptr, short val);
1514         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1515         public static native short AcceptChannel_get_max_accepted_htlcs(uint32_t this_ptr);
1516         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
1517         public static native void AcceptChannel_set_max_accepted_htlcs(uint32_t this_ptr, short val);
1518         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1519         public static native byte[] AcceptChannel_get_funding_pubkey(uint32_t this_ptr);
1520         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1521         public static native void AcceptChannel_set_funding_pubkey(uint32_t this_ptr, byte[] val);
1522         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1523         public static native byte[] AcceptChannel_get_revocation_basepoint(uint32_t this_ptr);
1524         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1525         public static native void AcceptChannel_set_revocation_basepoint(uint32_t this_ptr, byte[] val);
1526         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1527         public static native byte[] AcceptChannel_get_payment_point(uint32_t this_ptr);
1528         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1529         public static native void AcceptChannel_set_payment_point(uint32_t this_ptr, byte[] val);
1530         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1531         public static native byte[] AcceptChannel_get_delayed_payment_basepoint(uint32_t this_ptr);
1532         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1533         public static native void AcceptChannel_set_delayed_payment_basepoint(uint32_t this_ptr, byte[] val);
1534         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1535         public static native byte[] AcceptChannel_get_htlc_basepoint(uint32_t this_ptr);
1536         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1537         public static native void AcceptChannel_set_htlc_basepoint(uint32_t this_ptr, byte[] val);
1538         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
1539         public static native byte[] AcceptChannel_get_first_per_commitment_point(uint32_t this_ptr);
1540         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1541         public static native void AcceptChannel_set_first_per_commitment_point(uint32_t this_ptr, byte[] val);
1542         // void FundingCreated_free(struct LDKFundingCreated this_ptr);
1543         public static native void FundingCreated_free(uint32_t this_ptr);
1544         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
1545         public static native uint32_t FundingCreated_clone(uint32_t orig);
1546         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
1547         public static native byte[] FundingCreated_get_temporary_channel_id(uint32_t this_ptr);
1548         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1549         public static native void FundingCreated_set_temporary_channel_id(uint32_t this_ptr, byte[] val);
1550         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
1551         public static native byte[] FundingCreated_get_funding_txid(uint32_t this_ptr);
1552         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1553         public static native void FundingCreated_set_funding_txid(uint32_t this_ptr, byte[] val);
1554         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
1555         public static native short FundingCreated_get_funding_output_index(uint32_t this_ptr);
1556         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
1557         public static native void FundingCreated_set_funding_output_index(uint32_t this_ptr, short val);
1558         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
1559         public static native byte[] FundingCreated_get_signature(uint32_t this_ptr);
1560         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
1561         public static native void FundingCreated_set_signature(uint32_t this_ptr, byte[] val);
1562         // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKSignature signature_arg);
1563         public static native uint32_t FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
1564         // void FundingSigned_free(struct LDKFundingSigned this_ptr);
1565         public static native void FundingSigned_free(uint32_t this_ptr);
1566         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
1567         public static native uint32_t FundingSigned_clone(uint32_t orig);
1568         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
1569         public static native byte[] FundingSigned_get_channel_id(uint32_t this_ptr);
1570         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1571         public static native void FundingSigned_set_channel_id(uint32_t this_ptr, byte[] val);
1572         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
1573         public static native byte[] FundingSigned_get_signature(uint32_t this_ptr);
1574         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
1575         public static native void FundingSigned_set_signature(uint32_t this_ptr, byte[] val);
1576         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
1577         public static native uint32_t FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
1578         // void FundingLocked_free(struct LDKFundingLocked this_ptr);
1579         public static native void FundingLocked_free(uint32_t this_ptr);
1580         // struct LDKFundingLocked FundingLocked_clone(const struct LDKFundingLocked *NONNULL_PTR orig);
1581         public static native uint32_t FundingLocked_clone(uint32_t orig);
1582         // const uint8_t (*FundingLocked_get_channel_id(const struct LDKFundingLocked *NONNULL_PTR this_ptr))[32];
1583         public static native byte[] FundingLocked_get_channel_id(uint32_t this_ptr);
1584         // void FundingLocked_set_channel_id(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1585         public static native void FundingLocked_set_channel_id(uint32_t this_ptr, byte[] val);
1586         // struct LDKPublicKey FundingLocked_get_next_per_commitment_point(const struct LDKFundingLocked *NONNULL_PTR this_ptr);
1587         public static native byte[] FundingLocked_get_next_per_commitment_point(uint32_t this_ptr);
1588         // void FundingLocked_set_next_per_commitment_point(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1589         public static native void FundingLocked_set_next_per_commitment_point(uint32_t this_ptr, byte[] val);
1590         // MUST_USE_RES struct LDKFundingLocked FundingLocked_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg);
1591         public static native uint32_t FundingLocked_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg);
1592         // void Shutdown_free(struct LDKShutdown this_ptr);
1593         public static native void Shutdown_free(uint32_t this_ptr);
1594         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
1595         public static native uint32_t Shutdown_clone(uint32_t orig);
1596         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
1597         public static native byte[] Shutdown_get_channel_id(uint32_t this_ptr);
1598         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1599         public static native void Shutdown_set_channel_id(uint32_t this_ptr, byte[] val);
1600         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
1601         public static native byte[] Shutdown_get_scriptpubkey(uint32_t this_ptr);
1602         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
1603         public static native void Shutdown_set_scriptpubkey(uint32_t this_ptr, byte[] val);
1604         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
1605         public static native uint32_t Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
1606         // void ClosingSigned_free(struct LDKClosingSigned this_ptr);
1607         public static native void ClosingSigned_free(uint32_t this_ptr);
1608         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
1609         public static native uint32_t ClosingSigned_clone(uint32_t orig);
1610         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
1611         public static native byte[] ClosingSigned_get_channel_id(uint32_t this_ptr);
1612         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1613         public static native void ClosingSigned_set_channel_id(uint32_t this_ptr, byte[] val);
1614         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
1615         public static native long ClosingSigned_get_fee_satoshis(uint32_t this_ptr);
1616         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
1617         public static native void ClosingSigned_set_fee_satoshis(uint32_t this_ptr, long val);
1618         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
1619         public static native byte[] ClosingSigned_get_signature(uint32_t this_ptr);
1620         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
1621         public static native void ClosingSigned_set_signature(uint32_t this_ptr, byte[] val);
1622         // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg);
1623         public static native uint32_t ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg);
1624         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_ptr);
1625         public static native void UpdateAddHTLC_free(uint32_t this_ptr);
1626         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
1627         public static native uint32_t UpdateAddHTLC_clone(uint32_t orig);
1628         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
1629         public static native byte[] UpdateAddHTLC_get_channel_id(uint32_t this_ptr);
1630         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1631         public static native void UpdateAddHTLC_set_channel_id(uint32_t this_ptr, byte[] val);
1632         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
1633         public static native long UpdateAddHTLC_get_htlc_id(uint32_t this_ptr);
1634         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
1635         public static native void UpdateAddHTLC_set_htlc_id(uint32_t this_ptr, long val);
1636         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
1637         public static native long UpdateAddHTLC_get_amount_msat(uint32_t this_ptr);
1638         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
1639         public static native void UpdateAddHTLC_set_amount_msat(uint32_t this_ptr, long val);
1640         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
1641         public static native byte[] UpdateAddHTLC_get_payment_hash(uint32_t this_ptr);
1642         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1643         public static native void UpdateAddHTLC_set_payment_hash(uint32_t this_ptr, byte[] val);
1644         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
1645         public static native int UpdateAddHTLC_get_cltv_expiry(uint32_t this_ptr);
1646         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
1647         public static native void UpdateAddHTLC_set_cltv_expiry(uint32_t this_ptr, int val);
1648         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_ptr);
1649         public static native void UpdateFulfillHTLC_free(uint32_t this_ptr);
1650         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
1651         public static native uint32_t UpdateFulfillHTLC_clone(uint32_t orig);
1652         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
1653         public static native byte[] UpdateFulfillHTLC_get_channel_id(uint32_t this_ptr);
1654         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1655         public static native void UpdateFulfillHTLC_set_channel_id(uint32_t this_ptr, byte[] val);
1656         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
1657         public static native long UpdateFulfillHTLC_get_htlc_id(uint32_t this_ptr);
1658         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
1659         public static native void UpdateFulfillHTLC_set_htlc_id(uint32_t this_ptr, long val);
1660         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
1661         public static native byte[] UpdateFulfillHTLC_get_payment_preimage(uint32_t this_ptr);
1662         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1663         public static native void UpdateFulfillHTLC_set_payment_preimage(uint32_t this_ptr, byte[] val);
1664         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
1665         public static native uint32_t UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
1666         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_ptr);
1667         public static native void UpdateFailHTLC_free(uint32_t this_ptr);
1668         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
1669         public static native uint32_t UpdateFailHTLC_clone(uint32_t orig);
1670         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
1671         public static native byte[] UpdateFailHTLC_get_channel_id(uint32_t this_ptr);
1672         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1673         public static native void UpdateFailHTLC_set_channel_id(uint32_t this_ptr, byte[] val);
1674         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
1675         public static native long UpdateFailHTLC_get_htlc_id(uint32_t this_ptr);
1676         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
1677         public static native void UpdateFailHTLC_set_htlc_id(uint32_t this_ptr, long val);
1678         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_ptr);
1679         public static native void UpdateFailMalformedHTLC_free(uint32_t this_ptr);
1680         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
1681         public static native uint32_t UpdateFailMalformedHTLC_clone(uint32_t orig);
1682         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
1683         public static native byte[] UpdateFailMalformedHTLC_get_channel_id(uint32_t this_ptr);
1684         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1685         public static native void UpdateFailMalformedHTLC_set_channel_id(uint32_t this_ptr, byte[] val);
1686         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
1687         public static native long UpdateFailMalformedHTLC_get_htlc_id(uint32_t this_ptr);
1688         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
1689         public static native void UpdateFailMalformedHTLC_set_htlc_id(uint32_t this_ptr, long val);
1690         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
1691         public static native short UpdateFailMalformedHTLC_get_failure_code(uint32_t this_ptr);
1692         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
1693         public static native void UpdateFailMalformedHTLC_set_failure_code(uint32_t this_ptr, short val);
1694         // void CommitmentSigned_free(struct LDKCommitmentSigned this_ptr);
1695         public static native void CommitmentSigned_free(uint32_t this_ptr);
1696         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
1697         public static native uint32_t CommitmentSigned_clone(uint32_t orig);
1698         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
1699         public static native byte[] CommitmentSigned_get_channel_id(uint32_t this_ptr);
1700         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1701         public static native void CommitmentSigned_set_channel_id(uint32_t this_ptr, byte[] val);
1702         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
1703         public static native byte[] CommitmentSigned_get_signature(uint32_t this_ptr);
1704         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
1705         public static native void CommitmentSigned_set_signature(uint32_t this_ptr, byte[] val);
1706         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
1707         public static native void CommitmentSigned_set_htlc_signatures(uint32_t this_ptr, byte[][] val);
1708         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
1709         public static native uint32_t CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
1710         // void RevokeAndACK_free(struct LDKRevokeAndACK this_ptr);
1711         public static native void RevokeAndACK_free(uint32_t this_ptr);
1712         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
1713         public static native uint32_t RevokeAndACK_clone(uint32_t orig);
1714         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
1715         public static native byte[] RevokeAndACK_get_channel_id(uint32_t this_ptr);
1716         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1717         public static native void RevokeAndACK_set_channel_id(uint32_t this_ptr, byte[] val);
1718         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
1719         public static native byte[] RevokeAndACK_get_per_commitment_secret(uint32_t this_ptr);
1720         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1721         public static native void RevokeAndACK_set_per_commitment_secret(uint32_t this_ptr, byte[] val);
1722         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
1723         public static native byte[] RevokeAndACK_get_next_per_commitment_point(uint32_t this_ptr);
1724         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1725         public static native void RevokeAndACK_set_next_per_commitment_point(uint32_t this_ptr, byte[] val);
1726         // MUST_USE_RES struct LDKRevokeAndACK RevokeAndACK_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes per_commitment_secret_arg, struct LDKPublicKey next_per_commitment_point_arg);
1727         public static native uint32_t RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
1728         // void UpdateFee_free(struct LDKUpdateFee this_ptr);
1729         public static native void UpdateFee_free(uint32_t this_ptr);
1730         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
1731         public static native uint32_t UpdateFee_clone(uint32_t orig);
1732         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
1733         public static native byte[] UpdateFee_get_channel_id(uint32_t this_ptr);
1734         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1735         public static native void UpdateFee_set_channel_id(uint32_t this_ptr, byte[] val);
1736         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
1737         public static native int UpdateFee_get_feerate_per_kw(uint32_t this_ptr);
1738         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
1739         public static native void UpdateFee_set_feerate_per_kw(uint32_t this_ptr, int val);
1740         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
1741         public static native uint32_t UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
1742         // void DataLossProtect_free(struct LDKDataLossProtect this_ptr);
1743         public static native void DataLossProtect_free(uint32_t this_ptr);
1744         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
1745         public static native uint32_t DataLossProtect_clone(uint32_t orig);
1746         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
1747         public static native byte[] DataLossProtect_get_your_last_per_commitment_secret(uint32_t this_ptr);
1748         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1749         public static native void DataLossProtect_set_your_last_per_commitment_secret(uint32_t this_ptr, byte[] val);
1750         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
1751         public static native byte[] DataLossProtect_get_my_current_per_commitment_point(uint32_t this_ptr);
1752         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1753         public static native void DataLossProtect_set_my_current_per_commitment_point(uint32_t this_ptr, byte[] val);
1754         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
1755         public static native uint32_t DataLossProtect_new(byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg);
1756         // void ChannelReestablish_free(struct LDKChannelReestablish this_ptr);
1757         public static native void ChannelReestablish_free(uint32_t this_ptr);
1758         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
1759         public static native uint32_t ChannelReestablish_clone(uint32_t orig);
1760         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
1761         public static native byte[] ChannelReestablish_get_channel_id(uint32_t this_ptr);
1762         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1763         public static native void ChannelReestablish_set_channel_id(uint32_t this_ptr, byte[] val);
1764         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
1765         public static native long ChannelReestablish_get_next_local_commitment_number(uint32_t this_ptr);
1766         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
1767         public static native void ChannelReestablish_set_next_local_commitment_number(uint32_t this_ptr, long val);
1768         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
1769         public static native long ChannelReestablish_get_next_remote_commitment_number(uint32_t this_ptr);
1770         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
1771         public static native void ChannelReestablish_set_next_remote_commitment_number(uint32_t this_ptr, long val);
1772         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_ptr);
1773         public static native void AnnouncementSignatures_free(uint32_t this_ptr);
1774         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
1775         public static native uint32_t AnnouncementSignatures_clone(uint32_t orig);
1776         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
1777         public static native byte[] AnnouncementSignatures_get_channel_id(uint32_t this_ptr);
1778         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1779         public static native void AnnouncementSignatures_set_channel_id(uint32_t this_ptr, byte[] val);
1780         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
1781         public static native long AnnouncementSignatures_get_short_channel_id(uint32_t this_ptr);
1782         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
1783         public static native void AnnouncementSignatures_set_short_channel_id(uint32_t this_ptr, long val);
1784         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
1785         public static native byte[] AnnouncementSignatures_get_node_signature(uint32_t this_ptr);
1786         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
1787         public static native void AnnouncementSignatures_set_node_signature(uint32_t this_ptr, byte[] val);
1788         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
1789         public static native byte[] AnnouncementSignatures_get_bitcoin_signature(uint32_t this_ptr);
1790         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
1791         public static native void AnnouncementSignatures_set_bitcoin_signature(uint32_t this_ptr, byte[] val);
1792         // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKSignature node_signature_arg, struct LDKSignature bitcoin_signature_arg);
1793         public static native uint32_t AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
1794         // void NetAddress_free(struct LDKNetAddress this_ptr);
1795         public static native void NetAddress_free(uint32_t this_ptr);
1796         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
1797         public static native uint32_t NetAddress_clone(uint32_t orig);
1798         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
1799         public static native byte[] NetAddress_write(uint32_t obj);
1800         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ Result_read(struct LDKu8slice ser);
1801         public static native uint32_t Result_read(byte[] ser);
1802         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_ptr);
1803         public static native void UnsignedNodeAnnouncement_free(uint32_t this_ptr);
1804         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
1805         public static native uint32_t UnsignedNodeAnnouncement_clone(uint32_t orig);
1806         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
1807         public static native uint32_t UnsignedNodeAnnouncement_get_features(uint32_t this_ptr);
1808         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
1809         public static native void UnsignedNodeAnnouncement_set_features(uint32_t this_ptr, uint32_t val);
1810         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
1811         public static native int UnsignedNodeAnnouncement_get_timestamp(uint32_t this_ptr);
1812         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
1813         public static native void UnsignedNodeAnnouncement_set_timestamp(uint32_t this_ptr, int val);
1814         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
1815         public static native byte[] UnsignedNodeAnnouncement_get_node_id(uint32_t this_ptr);
1816         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1817         public static native void UnsignedNodeAnnouncement_set_node_id(uint32_t this_ptr, byte[] val);
1818         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
1819         public static native byte[] UnsignedNodeAnnouncement_get_rgb(uint32_t this_ptr);
1820         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
1821         public static native void UnsignedNodeAnnouncement_set_rgb(uint32_t this_ptr, byte[] val);
1822         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
1823         public static native byte[] UnsignedNodeAnnouncement_get_alias(uint32_t this_ptr);
1824         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1825         public static native void UnsignedNodeAnnouncement_set_alias(uint32_t this_ptr, byte[] val);
1826         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
1827         public static native void UnsignedNodeAnnouncement_set_addresses(uint32_t this_ptr, uint32_t[] val);
1828         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_ptr);
1829         public static native void NodeAnnouncement_free(uint32_t this_ptr);
1830         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
1831         public static native uint32_t NodeAnnouncement_clone(uint32_t orig);
1832         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
1833         public static native byte[] NodeAnnouncement_get_signature(uint32_t this_ptr);
1834         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
1835         public static native void NodeAnnouncement_set_signature(uint32_t this_ptr, byte[] val);
1836         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
1837         public static native uint32_t NodeAnnouncement_get_contents(uint32_t this_ptr);
1838         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
1839         public static native void NodeAnnouncement_set_contents(uint32_t this_ptr, uint32_t val);
1840         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
1841         public static native uint32_t NodeAnnouncement_new(byte[] signature_arg, uint32_t contents_arg);
1842         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_ptr);
1843         public static native void UnsignedChannelAnnouncement_free(uint32_t this_ptr);
1844         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
1845         public static native uint32_t UnsignedChannelAnnouncement_clone(uint32_t orig);
1846         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
1847         public static native uint32_t UnsignedChannelAnnouncement_get_features(uint32_t this_ptr);
1848         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
1849         public static native void UnsignedChannelAnnouncement_set_features(uint32_t this_ptr, uint32_t val);
1850         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
1851         public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(uint32_t this_ptr);
1852         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1853         public static native void UnsignedChannelAnnouncement_set_chain_hash(uint32_t this_ptr, byte[] val);
1854         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
1855         public static native long UnsignedChannelAnnouncement_get_short_channel_id(uint32_t this_ptr);
1856         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
1857         public static native void UnsignedChannelAnnouncement_set_short_channel_id(uint32_t this_ptr, long val);
1858         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
1859         public static native byte[] UnsignedChannelAnnouncement_get_node_id_1(uint32_t this_ptr);
1860         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1861         public static native void UnsignedChannelAnnouncement_set_node_id_1(uint32_t this_ptr, byte[] val);
1862         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
1863         public static native byte[] UnsignedChannelAnnouncement_get_node_id_2(uint32_t this_ptr);
1864         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1865         public static native void UnsignedChannelAnnouncement_set_node_id_2(uint32_t this_ptr, byte[] val);
1866         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
1867         public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_1(uint32_t this_ptr);
1868         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1869         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(uint32_t this_ptr, byte[] val);
1870         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
1871         public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_2(uint32_t this_ptr);
1872         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1873         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(uint32_t this_ptr, byte[] val);
1874         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_ptr);
1875         public static native void ChannelAnnouncement_free(uint32_t this_ptr);
1876         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
1877         public static native uint32_t ChannelAnnouncement_clone(uint32_t orig);
1878         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
1879         public static native byte[] ChannelAnnouncement_get_node_signature_1(uint32_t this_ptr);
1880         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
1881         public static native void ChannelAnnouncement_set_node_signature_1(uint32_t this_ptr, byte[] val);
1882         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
1883         public static native byte[] ChannelAnnouncement_get_node_signature_2(uint32_t this_ptr);
1884         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
1885         public static native void ChannelAnnouncement_set_node_signature_2(uint32_t this_ptr, byte[] val);
1886         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
1887         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(uint32_t this_ptr);
1888         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
1889         public static native void ChannelAnnouncement_set_bitcoin_signature_1(uint32_t this_ptr, byte[] val);
1890         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
1891         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(uint32_t this_ptr);
1892         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
1893         public static native void ChannelAnnouncement_set_bitcoin_signature_2(uint32_t this_ptr, byte[] val);
1894         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
1895         public static native uint32_t ChannelAnnouncement_get_contents(uint32_t this_ptr);
1896         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
1897         public static native void ChannelAnnouncement_set_contents(uint32_t this_ptr, uint32_t val);
1898         // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKSignature node_signature_1_arg, struct LDKSignature node_signature_2_arg, struct LDKSignature bitcoin_signature_1_arg, struct LDKSignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg);
1899         public static native uint32_t ChannelAnnouncement_new(byte[] node_signature_1_arg, byte[] node_signature_2_arg, byte[] bitcoin_signature_1_arg, byte[] bitcoin_signature_2_arg, uint32_t contents_arg);
1900         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_ptr);
1901         public static native void UnsignedChannelUpdate_free(uint32_t this_ptr);
1902         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
1903         public static native uint32_t UnsignedChannelUpdate_clone(uint32_t orig);
1904         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
1905         public static native byte[] UnsignedChannelUpdate_get_chain_hash(uint32_t this_ptr);
1906         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1907         public static native void UnsignedChannelUpdate_set_chain_hash(uint32_t this_ptr, byte[] val);
1908         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
1909         public static native long UnsignedChannelUpdate_get_short_channel_id(uint32_t this_ptr);
1910         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
1911         public static native void UnsignedChannelUpdate_set_short_channel_id(uint32_t this_ptr, long val);
1912         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
1913         public static native int UnsignedChannelUpdate_get_timestamp(uint32_t this_ptr);
1914         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
1915         public static native void UnsignedChannelUpdate_set_timestamp(uint32_t this_ptr, int val);
1916         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
1917         public static native byte UnsignedChannelUpdate_get_flags(uint32_t this_ptr);
1918         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
1919         public static native void UnsignedChannelUpdate_set_flags(uint32_t this_ptr, byte val);
1920         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
1921         public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(uint32_t this_ptr);
1922         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
1923         public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(uint32_t this_ptr, short val);
1924         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
1925         public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(uint32_t this_ptr);
1926         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
1927         public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(uint32_t this_ptr, long val);
1928         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
1929         public static native int UnsignedChannelUpdate_get_fee_base_msat(uint32_t this_ptr);
1930         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
1931         public static native void UnsignedChannelUpdate_set_fee_base_msat(uint32_t this_ptr, int val);
1932         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
1933         public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(uint32_t this_ptr);
1934         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
1935         public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(uint32_t this_ptr, int val);
1936         // void ChannelUpdate_free(struct LDKChannelUpdate this_ptr);
1937         public static native void ChannelUpdate_free(uint32_t this_ptr);
1938         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
1939         public static native uint32_t ChannelUpdate_clone(uint32_t orig);
1940         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
1941         public static native byte[] ChannelUpdate_get_signature(uint32_t this_ptr);
1942         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
1943         public static native void ChannelUpdate_set_signature(uint32_t this_ptr, byte[] val);
1944         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
1945         public static native uint32_t ChannelUpdate_get_contents(uint32_t this_ptr);
1946         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
1947         public static native void ChannelUpdate_set_contents(uint32_t this_ptr, uint32_t val);
1948         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
1949         public static native uint32_t ChannelUpdate_new(byte[] signature_arg, uint32_t contents_arg);
1950         // void QueryChannelRange_free(struct LDKQueryChannelRange this_ptr);
1951         public static native void QueryChannelRange_free(uint32_t this_ptr);
1952         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
1953         public static native uint32_t QueryChannelRange_clone(uint32_t orig);
1954         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
1955         public static native byte[] QueryChannelRange_get_chain_hash(uint32_t this_ptr);
1956         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1957         public static native void QueryChannelRange_set_chain_hash(uint32_t this_ptr, byte[] val);
1958         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
1959         public static native int QueryChannelRange_get_first_blocknum(uint32_t this_ptr);
1960         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
1961         public static native void QueryChannelRange_set_first_blocknum(uint32_t this_ptr, int val);
1962         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
1963         public static native int QueryChannelRange_get_number_of_blocks(uint32_t this_ptr);
1964         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
1965         public static native void QueryChannelRange_set_number_of_blocks(uint32_t this_ptr, int val);
1966         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
1967         public static native uint32_t QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
1968         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_ptr);
1969         public static native void ReplyChannelRange_free(uint32_t this_ptr);
1970         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
1971         public static native uint32_t ReplyChannelRange_clone(uint32_t orig);
1972         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
1973         public static native byte[] ReplyChannelRange_get_chain_hash(uint32_t this_ptr);
1974         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1975         public static native void ReplyChannelRange_set_chain_hash(uint32_t this_ptr, byte[] val);
1976         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
1977         public static native int ReplyChannelRange_get_first_blocknum(uint32_t this_ptr);
1978         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
1979         public static native void ReplyChannelRange_set_first_blocknum(uint32_t this_ptr, int val);
1980         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
1981         public static native int ReplyChannelRange_get_number_of_blocks(uint32_t this_ptr);
1982         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
1983         public static native void ReplyChannelRange_set_number_of_blocks(uint32_t this_ptr, int val);
1984         // bool ReplyChannelRange_get_full_information(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
1985         public static native boolean ReplyChannelRange_get_full_information(uint32_t this_ptr);
1986         // void ReplyChannelRange_set_full_information(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
1987         public static native void ReplyChannelRange_set_full_information(uint32_t this_ptr, boolean val);
1988         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
1989         public static native void ReplyChannelRange_set_short_channel_ids(uint32_t this_ptr, long[] val);
1990         // MUST_USE_RES struct LDKReplyChannelRange ReplyChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg, bool full_information_arg, struct LDKCVec_u64Z short_channel_ids_arg);
1991         public static native uint32_t ReplyChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean full_information_arg, long[] short_channel_ids_arg);
1992         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_ptr);
1993         public static native void QueryShortChannelIds_free(uint32_t this_ptr);
1994         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
1995         public static native uint32_t QueryShortChannelIds_clone(uint32_t orig);
1996         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
1997         public static native byte[] QueryShortChannelIds_get_chain_hash(uint32_t this_ptr);
1998         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1999         public static native void QueryShortChannelIds_set_chain_hash(uint32_t this_ptr, byte[] val);
2000         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
2001         public static native void QueryShortChannelIds_set_short_channel_ids(uint32_t this_ptr, long[] val);
2002         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
2003         public static native uint32_t QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
2004         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_ptr);
2005         public static native void ReplyShortChannelIdsEnd_free(uint32_t this_ptr);
2006         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
2007         public static native uint32_t ReplyShortChannelIdsEnd_clone(uint32_t orig);
2008         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
2009         public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(uint32_t this_ptr);
2010         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2011         public static native void ReplyShortChannelIdsEnd_set_chain_hash(uint32_t this_ptr, byte[] val);
2012         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
2013         public static native boolean ReplyShortChannelIdsEnd_get_full_information(uint32_t this_ptr);
2014         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
2015         public static native void ReplyShortChannelIdsEnd_set_full_information(uint32_t this_ptr, boolean val);
2016         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
2017         public static native uint32_t ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
2018         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_ptr);
2019         public static native void GossipTimestampFilter_free(uint32_t this_ptr);
2020         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
2021         public static native uint32_t GossipTimestampFilter_clone(uint32_t orig);
2022         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
2023         public static native byte[] GossipTimestampFilter_get_chain_hash(uint32_t this_ptr);
2024         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2025         public static native void GossipTimestampFilter_set_chain_hash(uint32_t this_ptr, byte[] val);
2026         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
2027         public static native int GossipTimestampFilter_get_first_timestamp(uint32_t this_ptr);
2028         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
2029         public static native void GossipTimestampFilter_set_first_timestamp(uint32_t this_ptr, int val);
2030         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
2031         public static native int GossipTimestampFilter_get_timestamp_range(uint32_t this_ptr);
2032         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
2033         public static native void GossipTimestampFilter_set_timestamp_range(uint32_t this_ptr, int val);
2034         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
2035         public static native uint32_t GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
2036         // void ErrorAction_free(struct LDKErrorAction this_ptr);
2037         public static native void ErrorAction_free(uint32_t this_ptr);
2038         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
2039         public static native uint32_t ErrorAction_clone(uint32_t orig);
2040         // void LightningError_free(struct LDKLightningError this_ptr);
2041         public static native void LightningError_free(uint32_t this_ptr);
2042         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
2043         public static native String LightningError_get_err(uint32_t this_ptr);
2044         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
2045         public static native void LightningError_set_err(uint32_t this_ptr, byte[] val);
2046         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
2047         public static native uint32_t LightningError_get_action(uint32_t this_ptr);
2048         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
2049         public static native void LightningError_set_action(uint32_t this_ptr, uint32_t val);
2050         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKCVec_u8Z err_arg, struct LDKErrorAction action_arg);
2051         public static native uint32_t LightningError_new(byte[] err_arg, uint32_t action_arg);
2052         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_ptr);
2053         public static native void CommitmentUpdate_free(uint32_t this_ptr);
2054         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
2055         public static native uint32_t CommitmentUpdate_clone(uint32_t orig);
2056         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
2057         public static native void CommitmentUpdate_set_update_add_htlcs(uint32_t this_ptr, uint32_t[] val);
2058         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
2059         public static native void CommitmentUpdate_set_update_fulfill_htlcs(uint32_t this_ptr, uint32_t[] val);
2060         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
2061         public static native void CommitmentUpdate_set_update_fail_htlcs(uint32_t this_ptr, uint32_t[] val);
2062         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
2063         public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(uint32_t this_ptr, uint32_t[] val);
2064         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
2065         public static native uint32_t CommitmentUpdate_get_update_fee(uint32_t this_ptr);
2066         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
2067         public static native void CommitmentUpdate_set_update_fee(uint32_t this_ptr, uint32_t val);
2068         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
2069         public static native uint32_t CommitmentUpdate_get_commitment_signed(uint32_t this_ptr);
2070         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
2071         public static native void CommitmentUpdate_set_commitment_signed(uint32_t this_ptr, uint32_t val);
2072         // MUST_USE_RES struct LDKCommitmentUpdate CommitmentUpdate_new(struct LDKCVec_UpdateAddHTLCZ update_add_htlcs_arg, struct LDKCVec_UpdateFulfillHTLCZ update_fulfill_htlcs_arg, struct LDKCVec_UpdateFailHTLCZ update_fail_htlcs_arg, struct LDKCVec_UpdateFailMalformedHTLCZ update_fail_malformed_htlcs_arg, struct LDKUpdateFee update_fee_arg, struct LDKCommitmentSigned commitment_signed_arg);
2073         public static native uint32_t CommitmentUpdate_new(uint32_t[] update_add_htlcs_arg, uint32_t[] update_fulfill_htlcs_arg, uint32_t[] update_fail_htlcs_arg, uint32_t[] update_fail_malformed_htlcs_arg, uint32_t update_fee_arg, uint32_t commitment_signed_arg);
2074         // void HTLCFailChannelUpdate_free(struct LDKHTLCFailChannelUpdate this_ptr);
2075         public static native void HTLCFailChannelUpdate_free(uint32_t this_ptr);
2076         // struct LDKHTLCFailChannelUpdate HTLCFailChannelUpdate_clone(const struct LDKHTLCFailChannelUpdate *NONNULL_PTR orig);
2077         public static native uint32_t HTLCFailChannelUpdate_clone(uint32_t orig);
2078         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
2079         public static native void ChannelMessageHandler_free(uint32_t this_ptr);
2080         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
2081         public static native void RoutingMessageHandler_free(uint32_t this_ptr);
2082         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
2083         public static native byte[] AcceptChannel_write(uint32_t obj);
2084         // struct LDKAcceptChannel AcceptChannel_read(struct LDKu8slice ser);
2085         public static native uint32_t AcceptChannel_read(byte[] ser);
2086         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
2087         public static native byte[] AnnouncementSignatures_write(uint32_t obj);
2088         // struct LDKAnnouncementSignatures AnnouncementSignatures_read(struct LDKu8slice ser);
2089         public static native uint32_t AnnouncementSignatures_read(byte[] ser);
2090         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
2091         public static native byte[] ChannelReestablish_write(uint32_t obj);
2092         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
2093         public static native uint32_t ChannelReestablish_read(byte[] ser);
2094         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
2095         public static native byte[] ClosingSigned_write(uint32_t obj);
2096         // struct LDKClosingSigned ClosingSigned_read(struct LDKu8slice ser);
2097         public static native uint32_t ClosingSigned_read(byte[] ser);
2098         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
2099         public static native byte[] CommitmentSigned_write(uint32_t obj);
2100         // struct LDKCommitmentSigned CommitmentSigned_read(struct LDKu8slice ser);
2101         public static native uint32_t CommitmentSigned_read(byte[] ser);
2102         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
2103         public static native byte[] FundingCreated_write(uint32_t obj);
2104         // struct LDKFundingCreated FundingCreated_read(struct LDKu8slice ser);
2105         public static native uint32_t FundingCreated_read(byte[] ser);
2106         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
2107         public static native byte[] FundingSigned_write(uint32_t obj);
2108         // struct LDKFundingSigned FundingSigned_read(struct LDKu8slice ser);
2109         public static native uint32_t FundingSigned_read(byte[] ser);
2110         // struct LDKCVec_u8Z FundingLocked_write(const struct LDKFundingLocked *NONNULL_PTR obj);
2111         public static native byte[] FundingLocked_write(uint32_t obj);
2112         // struct LDKFundingLocked FundingLocked_read(struct LDKu8slice ser);
2113         public static native uint32_t FundingLocked_read(byte[] ser);
2114         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
2115         public static native byte[] Init_write(uint32_t obj);
2116         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
2117         public static native uint32_t Init_read(byte[] ser);
2118         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
2119         public static native byte[] OpenChannel_write(uint32_t obj);
2120         // struct LDKOpenChannel OpenChannel_read(struct LDKu8slice ser);
2121         public static native uint32_t OpenChannel_read(byte[] ser);
2122         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
2123         public static native byte[] RevokeAndACK_write(uint32_t obj);
2124         // struct LDKRevokeAndACK RevokeAndACK_read(struct LDKu8slice ser);
2125         public static native uint32_t RevokeAndACK_read(byte[] ser);
2126         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
2127         public static native byte[] Shutdown_write(uint32_t obj);
2128         // struct LDKShutdown Shutdown_read(struct LDKu8slice ser);
2129         public static native uint32_t Shutdown_read(byte[] ser);
2130         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
2131         public static native byte[] UpdateFailHTLC_write(uint32_t obj);
2132         // struct LDKUpdateFailHTLC UpdateFailHTLC_read(struct LDKu8slice ser);
2133         public static native uint32_t UpdateFailHTLC_read(byte[] ser);
2134         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
2135         public static native byte[] UpdateFailMalformedHTLC_write(uint32_t obj);
2136         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
2137         public static native uint32_t UpdateFailMalformedHTLC_read(byte[] ser);
2138         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
2139         public static native byte[] UpdateFee_write(uint32_t obj);
2140         // struct LDKUpdateFee UpdateFee_read(struct LDKu8slice ser);
2141         public static native uint32_t UpdateFee_read(byte[] ser);
2142         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
2143         public static native byte[] UpdateFulfillHTLC_write(uint32_t obj);
2144         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_read(struct LDKu8slice ser);
2145         public static native uint32_t UpdateFulfillHTLC_read(byte[] ser);
2146         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
2147         public static native byte[] UpdateAddHTLC_write(uint32_t obj);
2148         // struct LDKUpdateAddHTLC UpdateAddHTLC_read(struct LDKu8slice ser);
2149         public static native uint32_t UpdateAddHTLC_read(byte[] ser);
2150         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
2151         public static native byte[] Ping_write(uint32_t obj);
2152         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
2153         public static native uint32_t Ping_read(byte[] ser);
2154         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
2155         public static native byte[] Pong_write(uint32_t obj);
2156         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
2157         public static native uint32_t Pong_read(byte[] ser);
2158         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
2159         public static native byte[] UnsignedChannelAnnouncement_write(uint32_t obj);
2160         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
2161         public static native uint32_t UnsignedChannelAnnouncement_read(byte[] ser);
2162         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
2163         public static native byte[] ChannelAnnouncement_write(uint32_t obj);
2164         // struct LDKChannelAnnouncement ChannelAnnouncement_read(struct LDKu8slice ser);
2165         public static native uint32_t ChannelAnnouncement_read(byte[] ser);
2166         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
2167         public static native byte[] UnsignedChannelUpdate_write(uint32_t obj);
2168         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
2169         public static native uint32_t UnsignedChannelUpdate_read(byte[] ser);
2170         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
2171         public static native byte[] ChannelUpdate_write(uint32_t obj);
2172         // struct LDKChannelUpdate ChannelUpdate_read(struct LDKu8slice ser);
2173         public static native uint32_t ChannelUpdate_read(byte[] ser);
2174         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
2175         public static native byte[] ErrorMessage_write(uint32_t obj);
2176         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
2177         public static native uint32_t ErrorMessage_read(byte[] ser);
2178         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
2179         public static native byte[] UnsignedNodeAnnouncement_write(uint32_t obj);
2180         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
2181         public static native uint32_t UnsignedNodeAnnouncement_read(byte[] ser);
2182         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
2183         public static native byte[] NodeAnnouncement_write(uint32_t obj);
2184         // struct LDKNodeAnnouncement NodeAnnouncement_read(struct LDKu8slice ser);
2185         public static native uint32_t NodeAnnouncement_read(byte[] ser);
2186         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
2187         public static native uint32_t QueryShortChannelIds_read(byte[] ser);
2188         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
2189         public static native byte[] QueryShortChannelIds_write(uint32_t obj);
2190         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
2191         public static native uint32_t ReplyShortChannelIdsEnd_read(byte[] ser);
2192         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
2193         public static native byte[] ReplyShortChannelIdsEnd_write(uint32_t obj);
2194         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
2195         public static native uint32_t QueryChannelRange_read(byte[] ser);
2196         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
2197         public static native byte[] QueryChannelRange_write(uint32_t obj);
2198         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
2199         public static native uint32_t ReplyChannelRange_read(byte[] ser);
2200         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
2201         public static native byte[] ReplyChannelRange_write(uint32_t obj);
2202         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
2203         public static native uint32_t GossipTimestampFilter_read(byte[] ser);
2204         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
2205         public static native byte[] GossipTimestampFilter_write(uint32_t obj);
2206         // void MessageHandler_free(struct LDKMessageHandler this_ptr);
2207         public static native void MessageHandler_free(uint32_t this_ptr);
2208         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
2209         public static native uint32_t MessageHandler_get_chan_handler(uint32_t this_ptr);
2210         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
2211         public static native void MessageHandler_set_chan_handler(uint32_t this_ptr, uint32_t val);
2212         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
2213         public static native uint32_t MessageHandler_get_route_handler(uint32_t this_ptr);
2214         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
2215         public static native void MessageHandler_set_route_handler(uint32_t this_ptr, uint32_t val);
2216         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
2217         public static native uint32_t MessageHandler_new(uint32_t chan_handler_arg, uint32_t route_handler_arg);
2218         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
2219         public static native uint32_t SocketDescriptor_clone(uint32_t orig);
2220         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
2221         public static native void SocketDescriptor_free(uint32_t this_ptr);
2222         // void PeerHandleError_free(struct LDKPeerHandleError this_ptr);
2223         public static native void PeerHandleError_free(uint32_t this_ptr);
2224         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
2225         public static native boolean PeerHandleError_get_no_connection_possible(uint32_t this_ptr);
2226         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
2227         public static native void PeerHandleError_set_no_connection_possible(uint32_t this_ptr, boolean val);
2228         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
2229         public static native uint32_t PeerHandleError_new(boolean no_connection_possible_arg);
2230         // void PeerManager_free(struct LDKPeerManager this_ptr);
2231         public static native void PeerManager_free(uint32_t this_ptr);
2232         // MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler message_handler, struct LDKSecretKey our_node_secret, const uint8_t (*ephemeral_random_data)[32], struct LDKLogger logger);
2233         public static native uint32_t PeerManager_new(uint32_t message_handler, byte[] our_node_secret, byte[] ephemeral_random_data, uint32_t logger);
2234         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
2235         public static native byte[][] PeerManager_get_peer_node_ids(uint32_t this_arg);
2236         // MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor);
2237         public static native uint32_t PeerManager_new_outbound_connection(uint32_t this_arg, byte[] their_node_id, uint32_t descriptor);
2238         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor);
2239         public static native uint32_t PeerManager_new_inbound_connection(uint32_t this_arg, uint32_t descriptor);
2240         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
2241         public static native uint32_t PeerManager_write_buffer_space_avail(uint32_t this_arg, uint32_t descriptor);
2242         // MUST_USE_RES struct LDKCResult_boolPeerHandleErrorZ PeerManager_read_event(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR peer_descriptor, struct LDKu8slice data);
2243         public static native uint32_t PeerManager_read_event(uint32_t this_arg, uint32_t peer_descriptor, byte[] data);
2244         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
2245         public static native void PeerManager_process_events(uint32_t this_arg);
2246         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
2247         public static native void PeerManager_socket_disconnected(uint32_t this_arg, uint32_t descriptor);
2248         // void PeerManager_timer_tick_occured(const struct LDKPeerManager *NONNULL_PTR this_arg);
2249         public static native void PeerManager_timer_tick_occured(uint32_t this_arg);
2250         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
2251         public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
2252         // struct LDKCResult_SecretKeySecpErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
2253         public static native uint32_t derive_private_key(byte[] per_commitment_point, byte[] base_secret);
2254         // struct LDKCResult_PublicKeySecpErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
2255         public static native uint32_t derive_public_key(byte[] per_commitment_point, byte[] base_point);
2256         // struct LDKCResult_SecretKeySecpErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
2257         public static native uint32_t derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
2258         // struct LDKCResult_PublicKeySecpErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
2259         public static native uint32_t derive_public_revocation_key(byte[] per_commitment_point, byte[] countersignatory_revocation_base_point);
2260         // void TxCreationKeys_free(struct LDKTxCreationKeys this_ptr);
2261         public static native void TxCreationKeys_free(uint32_t this_ptr);
2262         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
2263         public static native uint32_t TxCreationKeys_clone(uint32_t orig);
2264         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
2265         public static native byte[] TxCreationKeys_get_per_commitment_point(uint32_t this_ptr);
2266         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2267         public static native void TxCreationKeys_set_per_commitment_point(uint32_t this_ptr, byte[] val);
2268         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
2269         public static native byte[] TxCreationKeys_get_revocation_key(uint32_t this_ptr);
2270         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2271         public static native void TxCreationKeys_set_revocation_key(uint32_t this_ptr, byte[] val);
2272         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
2273         public static native byte[] TxCreationKeys_get_broadcaster_htlc_key(uint32_t this_ptr);
2274         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2275         public static native void TxCreationKeys_set_broadcaster_htlc_key(uint32_t this_ptr, byte[] val);
2276         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
2277         public static native byte[] TxCreationKeys_get_countersignatory_htlc_key(uint32_t this_ptr);
2278         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2279         public static native void TxCreationKeys_set_countersignatory_htlc_key(uint32_t this_ptr, byte[] val);
2280         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
2281         public static native byte[] TxCreationKeys_get_broadcaster_delayed_payment_key(uint32_t this_ptr);
2282         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2283         public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(uint32_t this_ptr, byte[] val);
2284         // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_new(struct LDKPublicKey per_commitment_point_arg, struct LDKPublicKey revocation_key_arg, struct LDKPublicKey broadcaster_htlc_key_arg, struct LDKPublicKey countersignatory_htlc_key_arg, struct LDKPublicKey broadcaster_delayed_payment_key_arg);
2285         public static native uint32_t TxCreationKeys_new(byte[] per_commitment_point_arg, byte[] revocation_key_arg, byte[] broadcaster_htlc_key_arg, byte[] countersignatory_htlc_key_arg, byte[] broadcaster_delayed_payment_key_arg);
2286         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
2287         public static native byte[] TxCreationKeys_write(uint32_t obj);
2288         // struct LDKTxCreationKeys TxCreationKeys_read(struct LDKu8slice ser);
2289         public static native uint32_t TxCreationKeys_read(byte[] ser);
2290         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_ptr);
2291         public static native void ChannelPublicKeys_free(uint32_t this_ptr);
2292         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
2293         public static native uint32_t ChannelPublicKeys_clone(uint32_t orig);
2294         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
2295         public static native byte[] ChannelPublicKeys_get_funding_pubkey(uint32_t this_ptr);
2296         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2297         public static native void ChannelPublicKeys_set_funding_pubkey(uint32_t this_ptr, byte[] val);
2298         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
2299         public static native byte[] ChannelPublicKeys_get_revocation_basepoint(uint32_t this_ptr);
2300         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2301         public static native void ChannelPublicKeys_set_revocation_basepoint(uint32_t this_ptr, byte[] val);
2302         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
2303         public static native byte[] ChannelPublicKeys_get_payment_point(uint32_t this_ptr);
2304         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2305         public static native void ChannelPublicKeys_set_payment_point(uint32_t this_ptr, byte[] val);
2306         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
2307         public static native byte[] ChannelPublicKeys_get_delayed_payment_basepoint(uint32_t this_ptr);
2308         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2309         public static native void ChannelPublicKeys_set_delayed_payment_basepoint(uint32_t this_ptr, byte[] val);
2310         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
2311         public static native byte[] ChannelPublicKeys_get_htlc_basepoint(uint32_t this_ptr);
2312         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2313         public static native void ChannelPublicKeys_set_htlc_basepoint(uint32_t this_ptr, byte[] val);
2314         // MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg);
2315         public static native uint32_t ChannelPublicKeys_new(byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg);
2316         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
2317         public static native byte[] ChannelPublicKeys_write(uint32_t obj);
2318         // struct LDKChannelPublicKeys ChannelPublicKeys_read(struct LDKu8slice ser);
2319         public static native uint32_t ChannelPublicKeys_read(byte[] ser);
2320         // MUST_USE_RES struct LDKCResult_TxCreationKeysSecpErrorZ TxCreationKeys_derive_new(struct LDKPublicKey per_commitment_point, struct LDKPublicKey broadcaster_delayed_payment_base, struct LDKPublicKey broadcaster_htlc_base, struct LDKPublicKey countersignatory_revocation_base, struct LDKPublicKey countersignatory_htlc_base);
2321         public static native uint32_t TxCreationKeys_derive_new(byte[] per_commitment_point, byte[] broadcaster_delayed_payment_base, byte[] broadcaster_htlc_base, byte[] countersignatory_revocation_base, byte[] countersignatory_htlc_base);
2322         // MUST_USE_RES struct LDKCResult_TxCreationKeysSecpErrorZ TxCreationKeys_from_channel_static_keys(struct LDKPublicKey per_commitment_point, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
2323         public static native uint32_t TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, uint32_t broadcaster_keys, uint32_t countersignatory_keys);
2324         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
2325         public static native byte[] get_revokeable_redeemscript(byte[] revocation_key, short contest_delay, byte[] broadcaster_delayed_payment_key);
2326         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_ptr);
2327         public static native void HTLCOutputInCommitment_free(uint32_t this_ptr);
2328         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
2329         public static native uint32_t HTLCOutputInCommitment_clone(uint32_t orig);
2330         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
2331         public static native boolean HTLCOutputInCommitment_get_offered(uint32_t this_ptr);
2332         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
2333         public static native void HTLCOutputInCommitment_set_offered(uint32_t this_ptr, boolean val);
2334         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
2335         public static native long HTLCOutputInCommitment_get_amount_msat(uint32_t this_ptr);
2336         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
2337         public static native void HTLCOutputInCommitment_set_amount_msat(uint32_t this_ptr, long val);
2338         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
2339         public static native int HTLCOutputInCommitment_get_cltv_expiry(uint32_t this_ptr);
2340         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
2341         public static native void HTLCOutputInCommitment_set_cltv_expiry(uint32_t this_ptr, int val);
2342         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
2343         public static native byte[] HTLCOutputInCommitment_get_payment_hash(uint32_t this_ptr);
2344         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2345         public static native void HTLCOutputInCommitment_set_payment_hash(uint32_t this_ptr, byte[] val);
2346         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
2347         public static native byte[] HTLCOutputInCommitment_write(uint32_t obj);
2348         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_read(struct LDKu8slice ser);
2349         public static native uint32_t HTLCOutputInCommitment_read(byte[] ser);
2350         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, const struct LDKTxCreationKeys *NONNULL_PTR keys);
2351         public static native byte[] get_htlc_redeemscript(uint32_t htlc, uint32_t keys);
2352         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
2353         public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
2354         // struct LDKTransaction build_htlc_transaction(const uint8_t (*prev_hash)[32], uint32_t feerate_per_kw, uint16_t contest_delay, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, struct LDKPublicKey broadcaster_delayed_payment_key, struct LDKPublicKey revocation_key);
2355         public static native byte[] build_htlc_transaction(byte[] prev_hash, int feerate_per_kw, short contest_delay, uint32_t htlc, byte[] broadcaster_delayed_payment_key, byte[] revocation_key);
2356         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_ptr);
2357         public static native void ChannelTransactionParameters_free(uint32_t this_ptr);
2358         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
2359         public static native uint32_t ChannelTransactionParameters_clone(uint32_t orig);
2360         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
2361         public static native uint32_t ChannelTransactionParameters_get_holder_pubkeys(uint32_t this_ptr);
2362         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
2363         public static native void ChannelTransactionParameters_set_holder_pubkeys(uint32_t this_ptr, uint32_t val);
2364         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
2365         public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(uint32_t this_ptr);
2366         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
2367         public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(uint32_t this_ptr, short val);
2368         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
2369         public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(uint32_t this_ptr);
2370         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
2371         public static native void ChannelTransactionParameters_set_is_outbound_from_holder(uint32_t this_ptr, boolean val);
2372         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
2373         public static native uint32_t ChannelTransactionParameters_get_counterparty_parameters(uint32_t this_ptr);
2374         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
2375         public static native void ChannelTransactionParameters_set_counterparty_parameters(uint32_t this_ptr, uint32_t val);
2376         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
2377         public static native uint32_t ChannelTransactionParameters_get_funding_outpoint(uint32_t this_ptr);
2378         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
2379         public static native void ChannelTransactionParameters_set_funding_outpoint(uint32_t this_ptr, uint32_t val);
2380         // MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg);
2381         public static native uint32_t ChannelTransactionParameters_new(uint32_t holder_pubkeys_arg, short holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, uint32_t counterparty_parameters_arg, uint32_t funding_outpoint_arg);
2382         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_ptr);
2383         public static native void CounterpartyChannelTransactionParameters_free(uint32_t this_ptr);
2384         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
2385         public static native uint32_t CounterpartyChannelTransactionParameters_clone(uint32_t orig);
2386         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
2387         public static native uint32_t CounterpartyChannelTransactionParameters_get_pubkeys(uint32_t this_ptr);
2388         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
2389         public static native void CounterpartyChannelTransactionParameters_set_pubkeys(uint32_t this_ptr, uint32_t val);
2390         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
2391         public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(uint32_t this_ptr);
2392         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
2393         public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(uint32_t this_ptr, short val);
2394         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
2395         public static native uint32_t CounterpartyChannelTransactionParameters_new(uint32_t pubkeys_arg, short selected_contest_delay_arg);
2396         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
2397         public static native boolean ChannelTransactionParameters_is_populated(uint32_t this_arg);
2398         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
2399         public static native uint32_t ChannelTransactionParameters_as_holder_broadcastable(uint32_t this_arg);
2400         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
2401         public static native uint32_t ChannelTransactionParameters_as_counterparty_broadcastable(uint32_t this_arg);
2402         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
2403         public static native byte[] CounterpartyChannelTransactionParameters_write(uint32_t obj);
2404         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
2405         public static native uint32_t CounterpartyChannelTransactionParameters_read(byte[] ser);
2406         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
2407         public static native byte[] ChannelTransactionParameters_write(uint32_t obj);
2408         // struct LDKChannelTransactionParameters ChannelTransactionParameters_read(struct LDKu8slice ser);
2409         public static native uint32_t ChannelTransactionParameters_read(byte[] ser);
2410         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_ptr);
2411         public static native void DirectedChannelTransactionParameters_free(uint32_t this_ptr);
2412         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
2413         public static native uint32_t DirectedChannelTransactionParameters_broadcaster_pubkeys(uint32_t this_arg);
2414         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
2415         public static native uint32_t DirectedChannelTransactionParameters_countersignatory_pubkeys(uint32_t this_arg);
2416         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
2417         public static native short DirectedChannelTransactionParameters_contest_delay(uint32_t this_arg);
2418         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
2419         public static native boolean DirectedChannelTransactionParameters_is_outbound(uint32_t this_arg);
2420         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
2421         public static native uint32_t DirectedChannelTransactionParameters_funding_outpoint(uint32_t this_arg);
2422         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_ptr);
2423         public static native void HolderCommitmentTransaction_free(uint32_t this_ptr);
2424         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
2425         public static native uint32_t HolderCommitmentTransaction_clone(uint32_t orig);
2426         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
2427         public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(uint32_t this_ptr);
2428         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
2429         public static native void HolderCommitmentTransaction_set_counterparty_sig(uint32_t this_ptr, byte[] val);
2430         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
2431         public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(uint32_t this_ptr, byte[][] val);
2432         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
2433         public static native byte[] HolderCommitmentTransaction_write(uint32_t obj);
2434         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_read(struct LDKu8slice ser);
2435         public static native uint32_t HolderCommitmentTransaction_read(byte[] ser);
2436         // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
2437         public static native uint32_t HolderCommitmentTransaction_new(uint32_t commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
2438         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_ptr);
2439         public static native void BuiltCommitmentTransaction_free(uint32_t this_ptr);
2440         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
2441         public static native uint32_t BuiltCommitmentTransaction_clone(uint32_t orig);
2442         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
2443         public static native byte[] BuiltCommitmentTransaction_get_transaction(uint32_t this_ptr);
2444         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
2445         public static native void BuiltCommitmentTransaction_set_transaction(uint32_t this_ptr, byte[] val);
2446         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
2447         public static native byte[] BuiltCommitmentTransaction_get_txid(uint32_t this_ptr);
2448         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2449         public static native void BuiltCommitmentTransaction_set_txid(uint32_t this_ptr, byte[] val);
2450         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
2451         public static native uint32_t BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
2452         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
2453         public static native byte[] BuiltCommitmentTransaction_write(uint32_t obj);
2454         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_read(struct LDKu8slice ser);
2455         public static native uint32_t BuiltCommitmentTransaction_read(byte[] ser);
2456         // MUST_USE_RES struct LDKThirtyTwoBytes BuiltCommitmentTransaction_get_sighash_all(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
2457         public static native byte[] BuiltCommitmentTransaction_get_sighash_all(uint32_t this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
2458         // MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
2459         public static native byte[] BuiltCommitmentTransaction_sign(uint32_t this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
2460         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_ptr);
2461         public static native void CommitmentTransaction_free(uint32_t this_ptr);
2462         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
2463         public static native uint32_t CommitmentTransaction_clone(uint32_t orig);
2464         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
2465         public static native byte[] CommitmentTransaction_write(uint32_t obj);
2466         // struct LDKCommitmentTransaction CommitmentTransaction_read(struct LDKu8slice ser);
2467         public static native uint32_t CommitmentTransaction_read(byte[] ser);
2468         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
2469         public static native long CommitmentTransaction_commitment_number(uint32_t this_arg);
2470         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
2471         public static native long CommitmentTransaction_to_broadcaster_value_sat(uint32_t this_arg);
2472         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
2473         public static native long CommitmentTransaction_to_countersignatory_value_sat(uint32_t this_arg);
2474         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
2475         public static native int CommitmentTransaction_feerate_per_kw(uint32_t this_arg);
2476         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
2477         public static native uint32_t CommitmentTransaction_trust(uint32_t this_arg);
2478         // MUST_USE_RES struct LDKCResult_TrustedCommitmentTransactionNoneZ CommitmentTransaction_verify(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg, const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
2479         public static native uint32_t CommitmentTransaction_verify(uint32_t this_arg, uint32_t channel_parameters, uint32_t broadcaster_keys, uint32_t countersignatory_keys);
2480         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_ptr);
2481         public static native void TrustedCommitmentTransaction_free(uint32_t this_ptr);
2482         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
2483         public static native byte[] TrustedCommitmentTransaction_txid(uint32_t this_arg);
2484         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
2485         public static native uint32_t TrustedCommitmentTransaction_built_transaction(uint32_t this_arg);
2486         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
2487         public static native uint32_t TrustedCommitmentTransaction_keys(uint32_t this_arg);
2488         // MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters);
2489         public static native uint32_t TrustedCommitmentTransaction_get_htlc_sigs(uint32_t this_arg, byte[] htlc_base_key, uint32_t channel_parameters);
2490         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
2491         public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
2492         // void InitFeatures_free(struct LDKInitFeatures this_ptr);
2493         public static native void InitFeatures_free(uint32_t this_ptr);
2494         // void NodeFeatures_free(struct LDKNodeFeatures this_ptr);
2495         public static native void NodeFeatures_free(uint32_t this_ptr);
2496         // void ChannelFeatures_free(struct LDKChannelFeatures this_ptr);
2497         public static native void ChannelFeatures_free(uint32_t this_ptr);
2498         // void RouteHop_free(struct LDKRouteHop this_ptr);
2499         public static native void RouteHop_free(uint32_t this_ptr);
2500         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
2501         public static native uint32_t RouteHop_clone(uint32_t orig);
2502         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
2503         public static native byte[] RouteHop_get_pubkey(uint32_t this_ptr);
2504         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2505         public static native void RouteHop_set_pubkey(uint32_t this_ptr, byte[] val);
2506         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
2507         public static native uint32_t RouteHop_get_node_features(uint32_t this_ptr);
2508         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
2509         public static native void RouteHop_set_node_features(uint32_t this_ptr, uint32_t val);
2510         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
2511         public static native long RouteHop_get_short_channel_id(uint32_t this_ptr);
2512         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
2513         public static native void RouteHop_set_short_channel_id(uint32_t this_ptr, long val);
2514         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
2515         public static native uint32_t RouteHop_get_channel_features(uint32_t this_ptr);
2516         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
2517         public static native void RouteHop_set_channel_features(uint32_t this_ptr, uint32_t val);
2518         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
2519         public static native long RouteHop_get_fee_msat(uint32_t this_ptr);
2520         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
2521         public static native void RouteHop_set_fee_msat(uint32_t this_ptr, long val);
2522         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
2523         public static native int RouteHop_get_cltv_expiry_delta(uint32_t this_ptr);
2524         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
2525         public static native void RouteHop_set_cltv_expiry_delta(uint32_t this_ptr, int val);
2526         // MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg);
2527         public static native uint32_t RouteHop_new(byte[] pubkey_arg, uint32_t node_features_arg, long short_channel_id_arg, uint32_t channel_features_arg, long fee_msat_arg, int cltv_expiry_delta_arg);
2528         // void Route_free(struct LDKRoute this_ptr);
2529         public static native void Route_free(uint32_t this_ptr);
2530         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
2531         public static native uint32_t Route_clone(uint32_t orig);
2532         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
2533         public static native void Route_set_paths(uint32_t this_ptr, uint32_t[][] val);
2534         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg);
2535         public static native uint32_t Route_new(uint32_t[][] paths_arg);
2536         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
2537         public static native byte[] Route_write(uint32_t obj);
2538         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
2539         public static native uint32_t Route_read(byte[] ser);
2540         // void RouteHint_free(struct LDKRouteHint this_ptr);
2541         public static native void RouteHint_free(uint32_t this_ptr);
2542         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
2543         public static native uint32_t RouteHint_clone(uint32_t orig);
2544         // struct LDKPublicKey RouteHint_get_src_node_id(const struct LDKRouteHint *NONNULL_PTR this_ptr);
2545         public static native byte[] RouteHint_get_src_node_id(uint32_t this_ptr);
2546         // void RouteHint_set_src_node_id(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2547         public static native void RouteHint_set_src_node_id(uint32_t this_ptr, byte[] val);
2548         // uint64_t RouteHint_get_short_channel_id(const struct LDKRouteHint *NONNULL_PTR this_ptr);
2549         public static native long RouteHint_get_short_channel_id(uint32_t this_ptr);
2550         // void RouteHint_set_short_channel_id(struct LDKRouteHint *NONNULL_PTR this_ptr, uint64_t val);
2551         public static native void RouteHint_set_short_channel_id(uint32_t this_ptr, long val);
2552         // struct LDKRoutingFees RouteHint_get_fees(const struct LDKRouteHint *NONNULL_PTR this_ptr);
2553         public static native uint32_t RouteHint_get_fees(uint32_t this_ptr);
2554         // void RouteHint_set_fees(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
2555         public static native void RouteHint_set_fees(uint32_t this_ptr, uint32_t val);
2556         // uint16_t RouteHint_get_cltv_expiry_delta(const struct LDKRouteHint *NONNULL_PTR this_ptr);
2557         public static native short RouteHint_get_cltv_expiry_delta(uint32_t this_ptr);
2558         // void RouteHint_set_cltv_expiry_delta(struct LDKRouteHint *NONNULL_PTR this_ptr, uint16_t val);
2559         public static native void RouteHint_set_cltv_expiry_delta(uint32_t this_ptr, short val);
2560         // uint64_t RouteHint_get_htlc_minimum_msat(const struct LDKRouteHint *NONNULL_PTR this_ptr);
2561         public static native long RouteHint_get_htlc_minimum_msat(uint32_t this_ptr);
2562         // void RouteHint_set_htlc_minimum_msat(struct LDKRouteHint *NONNULL_PTR this_ptr, uint64_t val);
2563         public static native void RouteHint_set_htlc_minimum_msat(uint32_t this_ptr, long val);
2564         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, struct LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg);
2565         public static native uint32_t RouteHint_new(byte[] src_node_id_arg, long short_channel_id_arg, uint32_t fees_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg);
2566         // struct LDKCResult_RouteLightningErrorZ get_route(struct LDKPublicKey our_node_id, const struct LDKNetworkGraph *NONNULL_PTR network, struct LDKPublicKey target, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKCVec_RouteHintZ last_hops, uint64_t final_value_msat, uint32_t final_cltv, struct LDKLogger logger);
2567         public static native uint32_t get_route(byte[] our_node_id, uint32_t network, byte[] target, uint32_t[] first_hops, uint32_t[] last_hops, long final_value_msat, int final_cltv, uint32_t logger);
2568         // void NetworkGraph_free(struct LDKNetworkGraph this_ptr);
2569         public static native void NetworkGraph_free(uint32_t this_ptr);
2570         // void LockedNetworkGraph_free(struct LDKLockedNetworkGraph this_ptr);
2571         public static native void LockedNetworkGraph_free(uint32_t this_ptr);
2572         // void NetGraphMsgHandler_free(struct LDKNetGraphMsgHandler this_ptr);
2573         public static native void NetGraphMsgHandler_free(uint32_t this_ptr);
2574         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKAccess *chain_access, struct LDKLogger logger);
2575         public static native uint32_t NetGraphMsgHandler_new(byte[] genesis_hash, uint32_t chain_access, uint32_t logger);
2576         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_from_net_graph(struct LDKAccess *chain_access, struct LDKLogger logger, struct LDKNetworkGraph network_graph);
2577         public static native uint32_t NetGraphMsgHandler_from_net_graph(uint32_t chain_access, uint32_t logger, uint32_t network_graph);
2578         // MUST_USE_RES struct LDKLockedNetworkGraph NetGraphMsgHandler_read_locked_graph(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
2579         public static native uint32_t NetGraphMsgHandler_read_locked_graph(uint32_t this_arg);
2580         // MUST_USE_RES struct LDKNetworkGraph LockedNetworkGraph_graph(const struct LDKLockedNetworkGraph *NONNULL_PTR this_arg);
2581         public static native uint32_t LockedNetworkGraph_graph(uint32_t this_arg);
2582         // struct LDKRoutingMessageHandler NetGraphMsgHandler_as_RoutingMessageHandler(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
2583         public static native uint32_t NetGraphMsgHandler_as_RoutingMessageHandler(uint32_t this_arg);
2584         // struct LDKMessageSendEventsProvider NetGraphMsgHandler_as_MessageSendEventsProvider(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
2585         public static native uint32_t NetGraphMsgHandler_as_MessageSendEventsProvider(uint32_t this_arg);
2586         // void DirectionalChannelInfo_free(struct LDKDirectionalChannelInfo this_ptr);
2587         public static native void DirectionalChannelInfo_free(uint32_t this_ptr);
2588         // uint32_t DirectionalChannelInfo_get_last_update(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
2589         public static native int DirectionalChannelInfo_get_last_update(uint32_t this_ptr);
2590         // void DirectionalChannelInfo_set_last_update(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint32_t val);
2591         public static native void DirectionalChannelInfo_set_last_update(uint32_t this_ptr, int val);
2592         // bool DirectionalChannelInfo_get_enabled(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
2593         public static native boolean DirectionalChannelInfo_get_enabled(uint32_t this_ptr);
2594         // void DirectionalChannelInfo_set_enabled(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, bool val);
2595         public static native void DirectionalChannelInfo_set_enabled(uint32_t this_ptr, boolean val);
2596         // uint16_t DirectionalChannelInfo_get_cltv_expiry_delta(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
2597         public static native short DirectionalChannelInfo_get_cltv_expiry_delta(uint32_t this_ptr);
2598         // void DirectionalChannelInfo_set_cltv_expiry_delta(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint16_t val);
2599         public static native void DirectionalChannelInfo_set_cltv_expiry_delta(uint32_t this_ptr, short val);
2600         // uint64_t DirectionalChannelInfo_get_htlc_minimum_msat(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
2601         public static native long DirectionalChannelInfo_get_htlc_minimum_msat(uint32_t this_ptr);
2602         // void DirectionalChannelInfo_set_htlc_minimum_msat(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint64_t val);
2603         public static native void DirectionalChannelInfo_set_htlc_minimum_msat(uint32_t this_ptr, long val);
2604         // struct LDKRoutingFees DirectionalChannelInfo_get_fees(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
2605         public static native uint32_t DirectionalChannelInfo_get_fees(uint32_t this_ptr);
2606         // void DirectionalChannelInfo_set_fees(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
2607         public static native void DirectionalChannelInfo_set_fees(uint32_t this_ptr, uint32_t val);
2608         // struct LDKChannelUpdate DirectionalChannelInfo_get_last_update_message(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
2609         public static native uint32_t DirectionalChannelInfo_get_last_update_message(uint32_t this_ptr);
2610         // void DirectionalChannelInfo_set_last_update_message(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
2611         public static native void DirectionalChannelInfo_set_last_update_message(uint32_t this_ptr, uint32_t val);
2612         // struct LDKCVec_u8Z DirectionalChannelInfo_write(const struct LDKDirectionalChannelInfo *NONNULL_PTR obj);
2613         public static native byte[] DirectionalChannelInfo_write(uint32_t obj);
2614         // struct LDKDirectionalChannelInfo DirectionalChannelInfo_read(struct LDKu8slice ser);
2615         public static native uint32_t DirectionalChannelInfo_read(byte[] ser);
2616         // void ChannelInfo_free(struct LDKChannelInfo this_ptr);
2617         public static native void ChannelInfo_free(uint32_t this_ptr);
2618         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
2619         public static native uint32_t ChannelInfo_get_features(uint32_t this_ptr);
2620         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
2621         public static native void ChannelInfo_set_features(uint32_t this_ptr, uint32_t val);
2622         // struct LDKPublicKey ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
2623         public static native byte[] ChannelInfo_get_node_one(uint32_t this_ptr);
2624         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2625         public static native void ChannelInfo_set_node_one(uint32_t this_ptr, byte[] val);
2626         // struct LDKDirectionalChannelInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
2627         public static native uint32_t ChannelInfo_get_one_to_two(uint32_t this_ptr);
2628         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKDirectionalChannelInfo val);
2629         public static native void ChannelInfo_set_one_to_two(uint32_t this_ptr, uint32_t val);
2630         // struct LDKPublicKey ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
2631         public static native byte[] ChannelInfo_get_node_two(uint32_t this_ptr);
2632         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2633         public static native void ChannelInfo_set_node_two(uint32_t this_ptr, byte[] val);
2634         // struct LDKDirectionalChannelInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
2635         public static native uint32_t ChannelInfo_get_two_to_one(uint32_t this_ptr);
2636         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKDirectionalChannelInfo val);
2637         public static native void ChannelInfo_set_two_to_one(uint32_t this_ptr, uint32_t val);
2638         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
2639         public static native uint32_t ChannelInfo_get_announcement_message(uint32_t this_ptr);
2640         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
2641         public static native void ChannelInfo_set_announcement_message(uint32_t this_ptr, uint32_t val);
2642         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
2643         public static native byte[] ChannelInfo_write(uint32_t obj);
2644         // struct LDKChannelInfo ChannelInfo_read(struct LDKu8slice ser);
2645         public static native uint32_t ChannelInfo_read(byte[] ser);
2646         // void RoutingFees_free(struct LDKRoutingFees this_ptr);
2647         public static native void RoutingFees_free(uint32_t this_ptr);
2648         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
2649         public static native uint32_t RoutingFees_clone(uint32_t orig);
2650         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
2651         public static native int RoutingFees_get_base_msat(uint32_t this_ptr);
2652         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
2653         public static native void RoutingFees_set_base_msat(uint32_t this_ptr, int val);
2654         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
2655         public static native int RoutingFees_get_proportional_millionths(uint32_t this_ptr);
2656         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
2657         public static native void RoutingFees_set_proportional_millionths(uint32_t this_ptr, int val);
2658         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
2659         public static native uint32_t RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
2660         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
2661         public static native uint32_t RoutingFees_read(byte[] ser);
2662         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
2663         public static native byte[] RoutingFees_write(uint32_t obj);
2664         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_ptr);
2665         public static native void NodeAnnouncementInfo_free(uint32_t this_ptr);
2666         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
2667         public static native uint32_t NodeAnnouncementInfo_get_features(uint32_t this_ptr);
2668         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
2669         public static native void NodeAnnouncementInfo_set_features(uint32_t this_ptr, uint32_t val);
2670         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
2671         public static native int NodeAnnouncementInfo_get_last_update(uint32_t this_ptr);
2672         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
2673         public static native void NodeAnnouncementInfo_set_last_update(uint32_t this_ptr, int val);
2674         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
2675         public static native byte[] NodeAnnouncementInfo_get_rgb(uint32_t this_ptr);
2676         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
2677         public static native void NodeAnnouncementInfo_set_rgb(uint32_t this_ptr, byte[] val);
2678         // const uint8_t (*NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[32];
2679         public static native byte[] NodeAnnouncementInfo_get_alias(uint32_t this_ptr);
2680         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2681         public static native void NodeAnnouncementInfo_set_alias(uint32_t this_ptr, byte[] val);
2682         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
2683         public static native void NodeAnnouncementInfo_set_addresses(uint32_t this_ptr, uint32_t[] val);
2684         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
2685         public static native uint32_t NodeAnnouncementInfo_get_announcement_message(uint32_t this_ptr);
2686         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
2687         public static native void NodeAnnouncementInfo_set_announcement_message(uint32_t this_ptr, uint32_t val);
2688         // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKThirtyTwoBytes alias_arg, struct LDKCVec_NetAddressZ addresses_arg, struct LDKNodeAnnouncement announcement_message_arg);
2689         public static native uint32_t NodeAnnouncementInfo_new(uint32_t features_arg, int last_update_arg, byte[] rgb_arg, byte[] alias_arg, uint32_t[] addresses_arg, uint32_t announcement_message_arg);
2690         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
2691         public static native byte[] NodeAnnouncementInfo_write(uint32_t obj);
2692         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
2693         public static native uint32_t NodeAnnouncementInfo_read(byte[] ser);
2694         // void NodeInfo_free(struct LDKNodeInfo this_ptr);
2695         public static native void NodeInfo_free(uint32_t this_ptr);
2696         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
2697         public static native void NodeInfo_set_channels(uint32_t this_ptr, long[] val);
2698         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
2699         public static native uint32_t NodeInfo_get_lowest_inbound_channel_fees(uint32_t this_ptr);
2700         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
2701         public static native void NodeInfo_set_lowest_inbound_channel_fees(uint32_t this_ptr, uint32_t val);
2702         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
2703         public static native uint32_t NodeInfo_get_announcement_info(uint32_t this_ptr);
2704         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
2705         public static native void NodeInfo_set_announcement_info(uint32_t this_ptr, uint32_t val);
2706         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
2707         public static native uint32_t NodeInfo_new(long[] channels_arg, uint32_t lowest_inbound_channel_fees_arg, uint32_t announcement_info_arg);
2708         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
2709         public static native byte[] NodeInfo_write(uint32_t obj);
2710         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
2711         public static native uint32_t NodeInfo_read(byte[] ser);
2712         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
2713         public static native byte[] NetworkGraph_write(uint32_t obj);
2714         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser);
2715         public static native uint32_t NetworkGraph_read(byte[] ser);
2716         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash);
2717         public static native uint32_t NetworkGraph_new(byte[] genesis_hash);
2718         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
2719         public static native uint32_t NetworkGraph_update_node_from_announcement(uint32_t this_arg, uint32_t msg);
2720         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg);
2721         public static native uint32_t NetworkGraph_update_node_from_unsigned_announcement(uint32_t this_arg, uint32_t msg);
2722         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg, struct LDKAccess *chain_access);
2723         public static native uint32_t NetworkGraph_update_channel_from_announcement(uint32_t this_arg, uint32_t msg, uint32_t chain_access);
2724         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_unsigned_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg, struct LDKAccess *chain_access);
2725         public static native uint32_t NetworkGraph_update_channel_from_unsigned_announcement(uint32_t this_arg, uint32_t msg, uint32_t chain_access);
2726         // void NetworkGraph_close_channel_from_update(struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
2727         public static native void NetworkGraph_close_channel_from_update(uint32_t this_arg, long short_channel_id, boolean is_permanent);
2728         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
2729         public static native uint32_t NetworkGraph_update_channel(uint32_t this_arg, uint32_t msg);
2730         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
2731         public static native uint32_t NetworkGraph_update_channel_unsigned(uint32_t this_arg, uint32_t msg);
2732 }