a414060c69c23bc54c82f55443952204aeba8f9e
[ldk-java] / src / main / java / org / ldk / impl / bindings.java
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         static { LDKAccessError.values(); /* Force enum statics to run */ }
34         static { LDKChannelMonitorUpdateErr.values(); /* Force enum statics to run */ }
35         static { LDKConfirmationTarget.values(); /* Force enum statics to run */ }
36         static { LDKLevel.values(); /* Force enum statics to run */ }
37         static { LDKNetwork.values(); /* Force enum statics to run */ }
38         static { LDKSecp256k1Error.values(); /* Force enum statics to run */ }
39         public static native long LDKCVec_u8Z_new(byte[] elems);
40         public static native boolean LDKCResult_SecretKeyErrorZ_result_ok(long arg);
41         public static native byte[] LDKCResult_SecretKeyErrorZ_get_ok(long arg);
42         public static native LDKSecp256k1Error LDKCResult_SecretKeyErrorZ_get_err(long arg);
43         public static native boolean LDKCResult_PublicKeyErrorZ_result_ok(long arg);
44         public static native byte[] LDKCResult_PublicKeyErrorZ_get_ok(long arg);
45         public static native LDKSecp256k1Error LDKCResult_PublicKeyErrorZ_get_err(long arg);
46         public static native boolean LDKCResult_TxCreationKeysDecodeErrorZ_result_ok(long arg);
47         public static native long LDKCResult_TxCreationKeysDecodeErrorZ_get_ok(long arg);
48         public static native long LDKCResult_TxCreationKeysDecodeErrorZ_get_err(long arg);
49         public static native boolean LDKCResult_ChannelPublicKeysDecodeErrorZ_result_ok(long arg);
50         public static native long LDKCResult_ChannelPublicKeysDecodeErrorZ_get_ok(long arg);
51         public static native long LDKCResult_ChannelPublicKeysDecodeErrorZ_get_err(long arg);
52         public static native boolean LDKCResult_TxCreationKeysErrorZ_result_ok(long arg);
53         public static native long LDKCResult_TxCreationKeysErrorZ_get_ok(long arg);
54         public static native LDKSecp256k1Error LDKCResult_TxCreationKeysErrorZ_get_err(long arg);
55         public static native boolean LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_result_ok(long arg);
56         public static native long LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long arg);
57         public static native long LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long arg);
58         public static native boolean LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ_result_ok(long arg);
59         public static native long LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long arg);
60         public static native long LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long arg);
61         public static native boolean LDKCResult_ChannelTransactionParametersDecodeErrorZ_result_ok(long arg);
62         public static native long LDKCResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long arg);
63         public static native long LDKCResult_ChannelTransactionParametersDecodeErrorZ_get_err(long arg);
64         public static native boolean LDKCResult_HolderCommitmentTransactionDecodeErrorZ_result_ok(long arg);
65         public static native long LDKCResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long arg);
66         public static native long LDKCResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long arg);
67         public static native boolean LDKCResult_BuiltCommitmentTransactionDecodeErrorZ_result_ok(long arg);
68         public static native long LDKCResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long arg);
69         public static native long LDKCResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long arg);
70         public static native boolean LDKCResult_CommitmentTransactionDecodeErrorZ_result_ok(long arg);
71         public static native long LDKCResult_CommitmentTransactionDecodeErrorZ_get_ok(long arg);
72         public static native long LDKCResult_CommitmentTransactionDecodeErrorZ_get_err(long arg);
73         public static native boolean LDKCResult_TrustedCommitmentTransactionNoneZ_result_ok(long arg);
74         public static native long LDKCResult_TrustedCommitmentTransactionNoneZ_get_ok(long arg);
75         public static native void LDKCResult_TrustedCommitmentTransactionNoneZ_get_err(long arg);
76         public static native boolean LDKCResult_CVec_SignatureZNoneZ_result_ok(long arg);
77         public static native byte[][] LDKCResult_CVec_SignatureZNoneZ_get_ok(long arg);
78         public static native void LDKCResult_CVec_SignatureZNoneZ_get_err(long arg);
79         public static class LDKErrorAction {
80                 private LDKErrorAction() {}
81                 public final static class DisconnectPeer extends LDKErrorAction {
82                         public long msg;
83                         DisconnectPeer(long msg) { this.msg = msg; }
84                 }
85                 public final static class IgnoreError extends LDKErrorAction {
86                         IgnoreError() { }
87                 }
88                 public final static class SendErrorMessage extends LDKErrorAction {
89                         public long msg;
90                         SendErrorMessage(long msg) { this.msg = msg; }
91                 }
92                 static native void init();
93         }
94         static { LDKErrorAction.init(); }
95         public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
96         public static class LDKHTLCFailChannelUpdate {
97                 private LDKHTLCFailChannelUpdate() {}
98                 public final static class ChannelUpdateMessage extends LDKHTLCFailChannelUpdate {
99                         public long msg;
100                         ChannelUpdateMessage(long msg) { this.msg = msg; }
101                 }
102                 public final static class ChannelClosed extends LDKHTLCFailChannelUpdate {
103                         public long short_channel_id;
104                         public boolean is_permanent;
105                         ChannelClosed(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
106                 }
107                 public final static class NodeFailure extends LDKHTLCFailChannelUpdate {
108                         public byte[] node_id;
109                         public boolean is_permanent;
110                         NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
111                 }
112                 static native void init();
113         }
114         static { LDKHTLCFailChannelUpdate.init(); }
115         public static native LDKHTLCFailChannelUpdate LDKHTLCFailChannelUpdate_ref_from_ptr(long ptr);
116         public static class LDKMessageSendEvent {
117                 private LDKMessageSendEvent() {}
118                 public final static class SendAcceptChannel extends LDKMessageSendEvent {
119                         public byte[] node_id;
120                         public long msg;
121                         SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
122                 }
123                 public final static class SendOpenChannel extends LDKMessageSendEvent {
124                         public byte[] node_id;
125                         public long msg;
126                         SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
127                 }
128                 public final static class SendFundingCreated extends LDKMessageSendEvent {
129                         public byte[] node_id;
130                         public long msg;
131                         SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
132                 }
133                 public final static class SendFundingSigned extends LDKMessageSendEvent {
134                         public byte[] node_id;
135                         public long msg;
136                         SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
137                 }
138                 public final static class SendFundingLocked extends LDKMessageSendEvent {
139                         public byte[] node_id;
140                         public long msg;
141                         SendFundingLocked(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
142                 }
143                 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
144                         public byte[] node_id;
145                         public long msg;
146                         SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
147                 }
148                 public final static class UpdateHTLCs extends LDKMessageSendEvent {
149                         public byte[] node_id;
150                         public long updates;
151                         UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
152                 }
153                 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
154                         public byte[] node_id;
155                         public long msg;
156                         SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
157                 }
158                 public final static class SendClosingSigned extends LDKMessageSendEvent {
159                         public byte[] node_id;
160                         public long msg;
161                         SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
162                 }
163                 public final static class SendShutdown extends LDKMessageSendEvent {
164                         public byte[] node_id;
165                         public long msg;
166                         SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
167                 }
168                 public final static class SendChannelReestablish extends LDKMessageSendEvent {
169                         public byte[] node_id;
170                         public long msg;
171                         SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
172                 }
173                 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
174                         public long msg;
175                         public long update_msg;
176                         BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
177                 }
178                 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
179                         public long msg;
180                         BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
181                 }
182                 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
183                         public long msg;
184                         BroadcastChannelUpdate(long msg) { this.msg = msg; }
185                 }
186                 public final static class HandleError extends LDKMessageSendEvent {
187                         public byte[] node_id;
188                         public long action;
189                         HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
190                 }
191                 public final static class PaymentFailureNetworkUpdate extends LDKMessageSendEvent {
192                         public long update;
193                         PaymentFailureNetworkUpdate(long update) { this.update = update; }
194                 }
195                 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
196                         public byte[] node_id;
197                         public long msg;
198                         SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
199                 }
200                 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
201                         public byte[] node_id;
202                         public long msg;
203                         SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
204                 }
205                 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
206                         public byte[] node_id;
207                         public long msg;
208                         SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
209                 }
210                 static native void init();
211         }
212         static { LDKMessageSendEvent.init(); }
213         public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
214         public static native long LDKCVec_MessageSendEventZ_new(long[] elems);
215         public static native boolean LDKCResult_boolLightningErrorZ_result_ok(long arg);
216         public static native boolean LDKCResult_boolLightningErrorZ_get_ok(long arg);
217         public static native long LDKCResult_boolLightningErrorZ_get_err(long arg);
218         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
219         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long ptr);
220         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long ptr);
221         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long ptr);
222         public static native long LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_new(long[] elems);
223         public static native long LDKCVec_NodeAnnouncementZ_new(long[] elems);
224         public static native boolean LDKCResult_NoneLightningErrorZ_result_ok(long arg);
225         public static native void LDKCResult_NoneLightningErrorZ_get_ok(long arg);
226         public static native long LDKCResult_NoneLightningErrorZ_get_err(long arg);
227         public static native boolean LDKCResult_CVec_u8ZPeerHandleErrorZ_result_ok(long arg);
228         public static native byte[] LDKCResult_CVec_u8ZPeerHandleErrorZ_get_ok(long arg);
229         public static native long LDKCResult_CVec_u8ZPeerHandleErrorZ_get_err(long arg);
230         public static native boolean LDKCResult_NonePeerHandleErrorZ_result_ok(long arg);
231         public static native void LDKCResult_NonePeerHandleErrorZ_get_ok(long arg);
232         public static native long LDKCResult_NonePeerHandleErrorZ_get_err(long arg);
233         public static native boolean LDKCResult_boolPeerHandleErrorZ_result_ok(long arg);
234         public static native boolean LDKCResult_boolPeerHandleErrorZ_get_ok(long arg);
235         public static native long LDKCResult_boolPeerHandleErrorZ_get_err(long arg);
236         public static native boolean LDKCResult_InitFeaturesDecodeErrorZ_result_ok(long arg);
237         public static native long LDKCResult_InitFeaturesDecodeErrorZ_get_ok(long arg);
238         public static native long LDKCResult_InitFeaturesDecodeErrorZ_get_err(long arg);
239         public static native boolean LDKCResult_NodeFeaturesDecodeErrorZ_result_ok(long arg);
240         public static native long LDKCResult_NodeFeaturesDecodeErrorZ_get_ok(long arg);
241         public static native long LDKCResult_NodeFeaturesDecodeErrorZ_get_err(long arg);
242         public static native boolean LDKCResult_ChannelFeaturesDecodeErrorZ_result_ok(long arg);
243         public static native long LDKCResult_ChannelFeaturesDecodeErrorZ_get_ok(long arg);
244         public static native long LDKCResult_ChannelFeaturesDecodeErrorZ_get_err(long arg);
245         public static native boolean LDKCResult_InvoiceFeaturesDecodeErrorZ_result_ok(long arg);
246         public static native long LDKCResult_InvoiceFeaturesDecodeErrorZ_get_ok(long arg);
247         public static native long LDKCResult_InvoiceFeaturesDecodeErrorZ_get_err(long arg);
248         public static native boolean LDKCResult_ChannelConfigDecodeErrorZ_result_ok(long arg);
249         public static native long LDKCResult_ChannelConfigDecodeErrorZ_get_ok(long arg);
250         public static native long LDKCResult_ChannelConfigDecodeErrorZ_get_err(long arg);
251         public static native boolean LDKCResult_DirectionalChannelInfoDecodeErrorZ_result_ok(long arg);
252         public static native long LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_ok(long arg);
253         public static native long LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_err(long arg);
254         public static native boolean LDKCResult_ChannelInfoDecodeErrorZ_result_ok(long arg);
255         public static native long LDKCResult_ChannelInfoDecodeErrorZ_get_ok(long arg);
256         public static native long LDKCResult_ChannelInfoDecodeErrorZ_get_err(long arg);
257         public static native boolean LDKCResult_RoutingFeesDecodeErrorZ_result_ok(long arg);
258         public static native long LDKCResult_RoutingFeesDecodeErrorZ_get_ok(long arg);
259         public static native long LDKCResult_RoutingFeesDecodeErrorZ_get_err(long arg);
260         public static class LDKNetAddress {
261                 private LDKNetAddress() {}
262                 public final static class IPv4 extends LDKNetAddress {
263                         public byte[] addr;
264                         public short port;
265                         IPv4(byte[] addr, short port) { this.addr = addr; this.port = port; }
266                 }
267                 public final static class IPv6 extends LDKNetAddress {
268                         public byte[] addr;
269                         public short port;
270                         IPv6(byte[] addr, short port) { this.addr = addr; this.port = port; }
271                 }
272                 public final static class OnionV2 extends LDKNetAddress {
273                         public byte[] addr;
274                         public short port;
275                         OnionV2(byte[] addr, short port) { this.addr = addr; this.port = port; }
276                 }
277                 public final static class OnionV3 extends LDKNetAddress {
278                         public byte[] ed25519_pubkey;
279                         public short checksum;
280                         public byte version;
281                         public short port;
282                         OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
283                 }
284                 static native void init();
285         }
286         static { LDKNetAddress.init(); }
287         public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
288         public static native long LDKCVec_NetAddressZ_new(long[] elems);
289         public static native boolean LDKCResult_NodeAnnouncementInfoDecodeErrorZ_result_ok(long arg);
290         public static native long LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long arg);
291         public static native long LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long arg);
292         public static native long LDKCVec_u64Z_new(long[] elems);
293         public static native boolean LDKCResult_NodeInfoDecodeErrorZ_result_ok(long arg);
294         public static native long LDKCResult_NodeInfoDecodeErrorZ_get_ok(long arg);
295         public static native long LDKCResult_NodeInfoDecodeErrorZ_get_err(long arg);
296         public static native boolean LDKCResult_NetworkGraphDecodeErrorZ_result_ok(long arg);
297         public static native long LDKCResult_NetworkGraphDecodeErrorZ_get_ok(long arg);
298         public static native long LDKCResult_NetworkGraphDecodeErrorZ_get_err(long arg);
299         public static native long LDKC2Tuple_usizeTransactionZ_new(long a, byte[] b);
300         public static native long LDKC2Tuple_usizeTransactionZ_get_a(long ptr);
301         public static native byte[] LDKC2Tuple_usizeTransactionZ_get_b(long ptr);
302         public static native long LDKCVec_C2Tuple_usizeTransactionZZ_new(long[] elems);
303         public static native boolean LDKCResult_NoneChannelMonitorUpdateErrZ_result_ok(long arg);
304         public static native void LDKCResult_NoneChannelMonitorUpdateErrZ_get_ok(long arg);
305         public static native LDKChannelMonitorUpdateErr LDKCResult_NoneChannelMonitorUpdateErrZ_get_err(long arg);
306         public static class LDKMonitorEvent {
307                 private LDKMonitorEvent() {}
308                 public final static class HTLCEvent extends LDKMonitorEvent {
309                         HTLCEvent() { }
310                 }
311                 public final static class CommitmentTxBroadcasted extends LDKMonitorEvent {
312                         CommitmentTxBroadcasted() { }
313                 }
314                 static native void init();
315         }
316         static { LDKMonitorEvent.init(); }
317         public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
318         public static native long LDKCVec_MonitorEventZ_new(long[] elems);
319         public static class LDKSpendableOutputDescriptor {
320                 private LDKSpendableOutputDescriptor() {}
321                 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
322                         public long outpoint;
323                         public long output;
324                         StaticOutput(long outpoint, long output) { this.outpoint = outpoint; this.output = output; }
325                 }
326                 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
327                         DelayedPaymentOutput() { }
328                 }
329                 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
330                         StaticPaymentOutput() { }
331                 }
332                 static native void init();
333         }
334         static { LDKSpendableOutputDescriptor.init(); }
335         public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
336         public static native long LDKCVec_SpendableOutputDescriptorZ_new(long[] elems);
337         public static class LDKEvent {
338                 private LDKEvent() {}
339                 public final static class FundingGenerationReady extends LDKEvent {
340                         public byte[] temporary_channel_id;
341                         public long channel_value_satoshis;
342                         public byte[] output_script;
343                         public long user_channel_id;
344                         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; }
345                 }
346                 public final static class FundingBroadcastSafe extends LDKEvent {
347                         public long funding_txo;
348                         public long user_channel_id;
349                         FundingBroadcastSafe(long funding_txo, long user_channel_id) { this.funding_txo = funding_txo; this.user_channel_id = user_channel_id; }
350                 }
351                 public final static class PaymentReceived extends LDKEvent {
352                         public byte[] payment_hash;
353                         public byte[] payment_secret;
354                         public long amt;
355                         PaymentReceived(byte[] payment_hash, byte[] payment_secret, long amt) { this.payment_hash = payment_hash; this.payment_secret = payment_secret; this.amt = amt; }
356                 }
357                 public final static class PaymentSent extends LDKEvent {
358                         public byte[] payment_preimage;
359                         PaymentSent(byte[] payment_preimage) { this.payment_preimage = payment_preimage; }
360                 }
361                 public final static class PaymentFailed extends LDKEvent {
362                         public byte[] payment_hash;
363                         public boolean rejected_by_dest;
364                         PaymentFailed(byte[] payment_hash, boolean rejected_by_dest) { this.payment_hash = payment_hash; this.rejected_by_dest = rejected_by_dest; }
365                 }
366                 public final static class PendingHTLCsForwardable extends LDKEvent {
367                         public long time_forwardable;
368                         PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
369                 }
370                 public final static class SpendableOutputs extends LDKEvent {
371                         public long[] outputs;
372                         SpendableOutputs(long[] outputs) { this.outputs = outputs; }
373                 }
374                 static native void init();
375         }
376         static { LDKEvent.init(); }
377         public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
378         public static native long LDKCVec_EventZ_new(long[] elems);
379         public static native boolean LDKCResult_OutPointDecodeErrorZ_result_ok(long arg);
380         public static native long LDKCResult_OutPointDecodeErrorZ_get_ok(long arg);
381         public static native long LDKCResult_OutPointDecodeErrorZ_get_err(long arg);
382         public static native boolean LDKCResult_ChannelMonitorUpdateDecodeErrorZ_result_ok(long arg);
383         public static native long LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long arg);
384         public static native long LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long arg);
385         public static native boolean LDKCResult_HTLCUpdateDecodeErrorZ_result_ok(long arg);
386         public static native long LDKCResult_HTLCUpdateDecodeErrorZ_get_ok(long arg);
387         public static native long LDKCResult_HTLCUpdateDecodeErrorZ_get_err(long arg);
388         public static native boolean LDKCResult_NoneMonitorUpdateErrorZ_result_ok(long arg);
389         public static native void LDKCResult_NoneMonitorUpdateErrorZ_get_ok(long arg);
390         public static native long LDKCResult_NoneMonitorUpdateErrorZ_get_err(long arg);
391         public static native long LDKC2Tuple_OutPointScriptZ_new(long a, byte[] b);
392         public static native long LDKC2Tuple_OutPointScriptZ_get_a(long ptr);
393         public static native byte[] LDKC2Tuple_OutPointScriptZ_get_b(long ptr);
394         public static native long LDKC2Tuple_u32ScriptZ_new(int a, byte[] b);
395         public static native int LDKC2Tuple_u32ScriptZ_get_a(long ptr);
396         public static native byte[] LDKC2Tuple_u32ScriptZ_get_b(long ptr);
397         public static native long LDKCVec_C2Tuple_u32ScriptZZ_new(long[] elems);
398         public static native long LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
399         public static native byte[] LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(long ptr);
400         public static native long[] LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(long ptr);
401         public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_new(long[] elems);
402         public static native long LDKC2Tuple_u32TxOutZ_new(int a, long b);
403         public static native int LDKC2Tuple_u32TxOutZ_get_a(long ptr);
404         public static native long LDKC2Tuple_u32TxOutZ_get_b(long ptr);
405         public static native long LDKCVec_C2Tuple_u32TxOutZZ_new(long[] elems);
406         public static native long LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
407         public static native byte[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long ptr);
408         public static native long[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long ptr);
409         public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_new(long[] elems);
410         public static native long LDKC2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
411         public static native byte[] LDKC2Tuple_SignatureCVec_SignatureZZ_get_a(long ptr);
412         public static native byte[][] LDKC2Tuple_SignatureCVec_SignatureZZ_get_b(long ptr);
413         public static native boolean LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_result_ok(long arg);
414         public static native long LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(long arg);
415         public static native void LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(long arg);
416         public static native boolean LDKCResult_SignatureNoneZ_result_ok(long arg);
417         public static native byte[] LDKCResult_SignatureNoneZ_get_ok(long arg);
418         public static native void LDKCResult_SignatureNoneZ_get_err(long arg);
419         public interface LDKSign {
420                  byte[] get_per_commitment_point(long idx);
421                  byte[] release_commitment_secret(long idx);
422                  byte[] channel_keys_id();
423                  long sign_counterparty_commitment(long commitment_tx);
424                  long sign_holder_commitment_and_htlcs(long commitment_tx);
425                  long sign_justice_transaction(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
426                  long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
427                  long sign_closing_transaction(byte[] closing_tx);
428                  long sign_channel_announcement(long msg);
429                  void ready_channel(long channel_parameters);
430                  byte[] write();
431         }
432         public static native long LDKSign_new(LDKSign impl, long pubkeys);
433         // LDKPublicKey Sign_get_per_commitment_point LDKSign *NONNULL_PTR this_arg, uint64_t idx
434         public static native byte[] Sign_get_per_commitment_point(long this_arg, long idx);
435         // LDKThirtyTwoBytes Sign_release_commitment_secret LDKSign *NONNULL_PTR this_arg, uint64_t idx
436         public static native byte[] Sign_release_commitment_secret(long this_arg, long idx);
437         // LDKThirtyTwoBytes Sign_channel_keys_id LDKSign *NONNULL_PTR this_arg
438         public static native byte[] Sign_channel_keys_id(long this_arg);
439         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ Sign_sign_counterparty_commitment LDKSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx
440         public static native long Sign_sign_counterparty_commitment(long this_arg, long commitment_tx);
441         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ Sign_sign_holder_commitment_and_htlcs LDKSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
442         public static native long Sign_sign_holder_commitment_and_htlcs(long this_arg, long commitment_tx);
443         // LDKCResult_SignatureNoneZ Sign_sign_justice_transaction LDKSign *NONNULL_PTR 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
444         public static native long Sign_sign_justice_transaction(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
445         // LDKCResult_SignatureNoneZ Sign_sign_counterparty_htlc_transaction LDKSign *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
446         public static native long Sign_sign_counterparty_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
447         // LDKCResult_SignatureNoneZ Sign_sign_closing_transaction LDKSign *NONNULL_PTR this_arg, struct LDKTransaction closing_tx
448         public static native long Sign_sign_closing_transaction(long this_arg, byte[] closing_tx);
449         // LDKCResult_SignatureNoneZ Sign_sign_channel_announcement LDKSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
450         public static native long Sign_sign_channel_announcement(long this_arg, long msg);
451         // void Sign_ready_channel LDKSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
452         public static native void Sign_ready_channel(long this_arg, long channel_parameters);
453         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
454         public static native byte[] Sign_write(long this_arg);
455         // LDKChannelPublicKeys Sign_get_pubkeys LDKSign *NONNULL_PTR this_arg
456         public static native long Sign_get_pubkeys(long this_arg);
457         public static native long LDKC2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
458         public static native byte[] LDKC2Tuple_BlockHashChannelMonitorZ_get_a(long ptr);
459         public static native long LDKC2Tuple_BlockHashChannelMonitorZ_get_b(long ptr);
460         public static native boolean LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_result_ok(long arg);
461         public static native long LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(long arg);
462         public static native long LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(long arg);
463         public static native boolean LDKCResult_TxOutAccessErrorZ_result_ok(long arg);
464         public static native long LDKCResult_TxOutAccessErrorZ_get_ok(long arg);
465         public static native LDKAccessError LDKCResult_TxOutAccessErrorZ_get_err(long arg);
466         public static class LDKAPIError {
467                 private LDKAPIError() {}
468                 public final static class APIMisuseError extends LDKAPIError {
469                         public byte[] err;
470                         APIMisuseError(byte[] err) { this.err = err; }
471                 }
472                 public final static class FeeRateTooHigh extends LDKAPIError {
473                         public byte[] err;
474                         public int feerate;
475                         FeeRateTooHigh(byte[] err, int feerate) { this.err = err; this.feerate = feerate; }
476                 }
477                 public final static class RouteError extends LDKAPIError {
478                         public String err;
479                         RouteError(String err) { this.err = err; }
480                 }
481                 public final static class ChannelUnavailable extends LDKAPIError {
482                         public byte[] err;
483                         ChannelUnavailable(byte[] err) { this.err = err; }
484                 }
485                 public final static class MonitorUpdateFailed extends LDKAPIError {
486                         MonitorUpdateFailed() { }
487                 }
488                 static native void init();
489         }
490         static { LDKAPIError.init(); }
491         public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
492         public static native boolean LDKCResult_NoneAPIErrorZ_result_ok(long arg);
493         public static native void LDKCResult_NoneAPIErrorZ_get_ok(long arg);
494         public static native long LDKCResult_NoneAPIErrorZ_get_err(long arg);
495         public static native long LDKCVec_CResult_NoneAPIErrorZZ_new(long[] elems);
496         public static native long LDKCVec_APIErrorZ_new(long[] elems);
497         public static native long LDKCVec_ChannelDetailsZ_new(long[] elems);
498         public static class LDKPaymentSendFailure {
499                 private LDKPaymentSendFailure() {}
500                 public final static class ParameterError extends LDKPaymentSendFailure {
501                         ParameterError() { }
502                 }
503                 public final static class PathParameterError extends LDKPaymentSendFailure {
504                         PathParameterError() { }
505                 }
506                 public final static class AllFailedRetrySafe extends LDKPaymentSendFailure {
507                         AllFailedRetrySafe() { }
508                 }
509                 public final static class PartialFailure extends LDKPaymentSendFailure {
510                         PartialFailure() { }
511                 }
512                 static native void init();
513         }
514         static { LDKPaymentSendFailure.init(); }
515         public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
516         public static native boolean LDKCResult_NonePaymentSendFailureZ_result_ok(long arg);
517         public static native void LDKCResult_NonePaymentSendFailureZ_get_ok(long arg);
518         public static native long LDKCResult_NonePaymentSendFailureZ_get_err(long arg);
519         public static native long LDKCVec_ChannelMonitorZ_new(long[] elems);
520         public interface LDKWatch {
521                  long watch_channel(long funding_txo, long monitor);
522                  long update_channel(long funding_txo, long update);
523                  long[] release_pending_monitor_events();
524         }
525         public static native long LDKWatch_new(LDKWatch impl);
526         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
527         public static native long Watch_watch_channel(long this_arg, long funding_txo, long monitor);
528         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
529         public static native long Watch_update_channel(long this_arg, long funding_txo, long update);
530         // LDKCVec_MonitorEventZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
531         public static native long[] Watch_release_pending_monitor_events(long this_arg);
532         public interface LDKBroadcasterInterface {
533                  void broadcast_transaction(byte[] tx);
534         }
535         public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
536         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
537         public static native void BroadcasterInterface_broadcast_transaction(long this_arg, byte[] tx);
538         public static native boolean LDKCResult_SignDecodeErrorZ_result_ok(long arg);
539         public static native long LDKCResult_SignDecodeErrorZ_get_ok(long arg);
540         public static native long LDKCResult_SignDecodeErrorZ_get_err(long arg);
541         public interface LDKKeysInterface {
542                  byte[] get_node_secret();
543                  byte[] get_destination_script();
544                  byte[] get_shutdown_pubkey();
545                  long get_channel_signer(boolean inbound, long channel_value_satoshis);
546                  byte[] get_secure_random_bytes();
547                  long read_chan_signer(byte[] reader);
548         }
549         public static native long LDKKeysInterface_new(LDKKeysInterface impl);
550         // LDKSecretKey KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg
551         public static native byte[] KeysInterface_get_node_secret(long this_arg);
552         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
553         public static native byte[] KeysInterface_get_destination_script(long this_arg);
554         // LDKPublicKey KeysInterface_get_shutdown_pubkey LDKKeysInterface *NONNULL_PTR this_arg
555         public static native byte[] KeysInterface_get_shutdown_pubkey(long this_arg);
556         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
557         public static native long KeysInterface_get_channel_signer(long this_arg, boolean inbound, long channel_value_satoshis);
558         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
559         public static native byte[] KeysInterface_get_secure_random_bytes(long this_arg);
560         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
561         public static native long KeysInterface_read_chan_signer(long this_arg, byte[] reader);
562         public interface LDKFeeEstimator {
563                  int get_est_sat_per_1000_weight(LDKConfirmationTarget confirmation_target);
564         }
565         public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
566         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
567         public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, LDKConfirmationTarget confirmation_target);
568         public interface LDKLogger {
569                  void log(String record);
570         }
571         public static native long LDKLogger_new(LDKLogger impl);
572         public static native long LDKC2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
573         public static native byte[] LDKC2Tuple_BlockHashChannelManagerZ_get_a(long ptr);
574         public static native long LDKC2Tuple_BlockHashChannelManagerZ_get_b(long ptr);
575         public static native boolean LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_result_ok(long arg);
576         public static native long LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(long arg);
577         public static native long LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(long arg);
578         public static native boolean LDKCResult_SpendableOutputDescriptorDecodeErrorZ_result_ok(long arg);
579         public static native long LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long arg);
580         public static native long LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long arg);
581         public static native boolean LDKCResult_CVec_CVec_u8ZZNoneZ_result_ok(long arg);
582         public static native byte[][] LDKCResult_CVec_CVec_u8ZZNoneZ_get_ok(long arg);
583         public static native void LDKCResult_CVec_CVec_u8ZZNoneZ_get_err(long arg);
584         public static native boolean LDKCResult_InMemorySignerDecodeErrorZ_result_ok(long arg);
585         public static native long LDKCResult_InMemorySignerDecodeErrorZ_get_ok(long arg);
586         public static native long LDKCResult_InMemorySignerDecodeErrorZ_get_err(long arg);
587         public static native long LDKCVec_TxOutZ_new(long[] elems);
588         public static native boolean LDKCResult_TransactionNoneZ_result_ok(long arg);
589         public static native byte[] LDKCResult_TransactionNoneZ_get_ok(long arg);
590         public static native void LDKCResult_TransactionNoneZ_get_err(long arg);
591         public static native long LDKCVec_RouteHopZ_new(long[] elems);
592         public static native boolean LDKCResult_RouteDecodeErrorZ_result_ok(long arg);
593         public static native long LDKCResult_RouteDecodeErrorZ_get_ok(long arg);
594         public static native long LDKCResult_RouteDecodeErrorZ_get_err(long arg);
595         public static native long LDKCVec_RouteHintZ_new(long[] elems);
596         public static native boolean LDKCResult_RouteLightningErrorZ_result_ok(long arg);
597         public static native long LDKCResult_RouteLightningErrorZ_get_ok(long arg);
598         public static native long LDKCResult_RouteLightningErrorZ_get_err(long arg);
599         public static native boolean LDKCResult_NetAddressu8Z_result_ok(long arg);
600         public static native long LDKCResult_NetAddressu8Z_get_ok(long arg);
601         public static native byte LDKCResult_NetAddressu8Z_get_err(long arg);
602         public static native boolean LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_result_ok(long arg);
603         public static native long LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_ok(long arg);
604         public static native long LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_err(long arg);
605         public static native long LDKCVec_UpdateAddHTLCZ_new(long[] elems);
606         public static native long LDKCVec_UpdateFulfillHTLCZ_new(long[] elems);
607         public static native long LDKCVec_UpdateFailHTLCZ_new(long[] elems);
608         public static native long LDKCVec_UpdateFailMalformedHTLCZ_new(long[] elems);
609         public static native boolean LDKCResult_AcceptChannelDecodeErrorZ_result_ok(long arg);
610         public static native long LDKCResult_AcceptChannelDecodeErrorZ_get_ok(long arg);
611         public static native long LDKCResult_AcceptChannelDecodeErrorZ_get_err(long arg);
612         public static native boolean LDKCResult_AnnouncementSignaturesDecodeErrorZ_result_ok(long arg);
613         public static native long LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long arg);
614         public static native long LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_err(long arg);
615         public static native boolean LDKCResult_ChannelReestablishDecodeErrorZ_result_ok(long arg);
616         public static native long LDKCResult_ChannelReestablishDecodeErrorZ_get_ok(long arg);
617         public static native long LDKCResult_ChannelReestablishDecodeErrorZ_get_err(long arg);
618         public static native boolean LDKCResult_ClosingSignedDecodeErrorZ_result_ok(long arg);
619         public static native long LDKCResult_ClosingSignedDecodeErrorZ_get_ok(long arg);
620         public static native long LDKCResult_ClosingSignedDecodeErrorZ_get_err(long arg);
621         public static native boolean LDKCResult_CommitmentSignedDecodeErrorZ_result_ok(long arg);
622         public static native long LDKCResult_CommitmentSignedDecodeErrorZ_get_ok(long arg);
623         public static native long LDKCResult_CommitmentSignedDecodeErrorZ_get_err(long arg);
624         public static native boolean LDKCResult_FundingCreatedDecodeErrorZ_result_ok(long arg);
625         public static native long LDKCResult_FundingCreatedDecodeErrorZ_get_ok(long arg);
626         public static native long LDKCResult_FundingCreatedDecodeErrorZ_get_err(long arg);
627         public static native boolean LDKCResult_FundingSignedDecodeErrorZ_result_ok(long arg);
628         public static native long LDKCResult_FundingSignedDecodeErrorZ_get_ok(long arg);
629         public static native long LDKCResult_FundingSignedDecodeErrorZ_get_err(long arg);
630         public static native boolean LDKCResult_FundingLockedDecodeErrorZ_result_ok(long arg);
631         public static native long LDKCResult_FundingLockedDecodeErrorZ_get_ok(long arg);
632         public static native long LDKCResult_FundingLockedDecodeErrorZ_get_err(long arg);
633         public static native boolean LDKCResult_InitDecodeErrorZ_result_ok(long arg);
634         public static native long LDKCResult_InitDecodeErrorZ_get_ok(long arg);
635         public static native long LDKCResult_InitDecodeErrorZ_get_err(long arg);
636         public static native boolean LDKCResult_OpenChannelDecodeErrorZ_result_ok(long arg);
637         public static native long LDKCResult_OpenChannelDecodeErrorZ_get_ok(long arg);
638         public static native long LDKCResult_OpenChannelDecodeErrorZ_get_err(long arg);
639         public static native boolean LDKCResult_RevokeAndACKDecodeErrorZ_result_ok(long arg);
640         public static native long LDKCResult_RevokeAndACKDecodeErrorZ_get_ok(long arg);
641         public static native long LDKCResult_RevokeAndACKDecodeErrorZ_get_err(long arg);
642         public static native boolean LDKCResult_ShutdownDecodeErrorZ_result_ok(long arg);
643         public static native long LDKCResult_ShutdownDecodeErrorZ_get_ok(long arg);
644         public static native long LDKCResult_ShutdownDecodeErrorZ_get_err(long arg);
645         public static native boolean LDKCResult_UpdateFailHTLCDecodeErrorZ_result_ok(long arg);
646         public static native long LDKCResult_UpdateFailHTLCDecodeErrorZ_get_ok(long arg);
647         public static native long LDKCResult_UpdateFailHTLCDecodeErrorZ_get_err(long arg);
648         public static native boolean LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_result_ok(long arg);
649         public static native long LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long arg);
650         public static native long LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long arg);
651         public static native boolean LDKCResult_UpdateFeeDecodeErrorZ_result_ok(long arg);
652         public static native long LDKCResult_UpdateFeeDecodeErrorZ_get_ok(long arg);
653         public static native long LDKCResult_UpdateFeeDecodeErrorZ_get_err(long arg);
654         public static native boolean LDKCResult_UpdateFulfillHTLCDecodeErrorZ_result_ok(long arg);
655         public static native long LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long arg);
656         public static native long LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long arg);
657         public static native boolean LDKCResult_UpdateAddHTLCDecodeErrorZ_result_ok(long arg);
658         public static native long LDKCResult_UpdateAddHTLCDecodeErrorZ_get_ok(long arg);
659         public static native long LDKCResult_UpdateAddHTLCDecodeErrorZ_get_err(long arg);
660         public static native boolean LDKCResult_PingDecodeErrorZ_result_ok(long arg);
661         public static native long LDKCResult_PingDecodeErrorZ_get_ok(long arg);
662         public static native long LDKCResult_PingDecodeErrorZ_get_err(long arg);
663         public static native boolean LDKCResult_PongDecodeErrorZ_result_ok(long arg);
664         public static native long LDKCResult_PongDecodeErrorZ_get_ok(long arg);
665         public static native long LDKCResult_PongDecodeErrorZ_get_err(long arg);
666         public static native boolean LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_result_ok(long arg);
667         public static native long LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long arg);
668         public static native long LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long arg);
669         public static native boolean LDKCResult_ChannelAnnouncementDecodeErrorZ_result_ok(long arg);
670         public static native long LDKCResult_ChannelAnnouncementDecodeErrorZ_get_ok(long arg);
671         public static native long LDKCResult_ChannelAnnouncementDecodeErrorZ_get_err(long arg);
672         public static native boolean LDKCResult_UnsignedChannelUpdateDecodeErrorZ_result_ok(long arg);
673         public static native long LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long arg);
674         public static native long LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long arg);
675         public static native boolean LDKCResult_ChannelUpdateDecodeErrorZ_result_ok(long arg);
676         public static native long LDKCResult_ChannelUpdateDecodeErrorZ_get_ok(long arg);
677         public static native long LDKCResult_ChannelUpdateDecodeErrorZ_get_err(long arg);
678         public static native boolean LDKCResult_ErrorMessageDecodeErrorZ_result_ok(long arg);
679         public static native long LDKCResult_ErrorMessageDecodeErrorZ_get_ok(long arg);
680         public static native long LDKCResult_ErrorMessageDecodeErrorZ_get_err(long arg);
681         public static native boolean LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_result_ok(long arg);
682         public static native long LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long arg);
683         public static native long LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long arg);
684         public static native boolean LDKCResult_NodeAnnouncementDecodeErrorZ_result_ok(long arg);
685         public static native long LDKCResult_NodeAnnouncementDecodeErrorZ_get_ok(long arg);
686         public static native long LDKCResult_NodeAnnouncementDecodeErrorZ_get_err(long arg);
687         public static native boolean LDKCResult_QueryShortChannelIdsDecodeErrorZ_result_ok(long arg);
688         public static native long LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long arg);
689         public static native long LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_err(long arg);
690         public static native boolean LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_result_ok(long arg);
691         public static native long LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long arg);
692         public static native long LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long arg);
693         public static native boolean LDKCResult_QueryChannelRangeDecodeErrorZ_result_ok(long arg);
694         public static native long LDKCResult_QueryChannelRangeDecodeErrorZ_get_ok(long arg);
695         public static native long LDKCResult_QueryChannelRangeDecodeErrorZ_get_err(long arg);
696         public static native boolean LDKCResult_ReplyChannelRangeDecodeErrorZ_result_ok(long arg);
697         public static native long LDKCResult_ReplyChannelRangeDecodeErrorZ_get_ok(long arg);
698         public static native long LDKCResult_ReplyChannelRangeDecodeErrorZ_get_err(long arg);
699         public static native boolean LDKCResult_GossipTimestampFilterDecodeErrorZ_result_ok(long arg);
700         public static native long LDKCResult_GossipTimestampFilterDecodeErrorZ_get_ok(long arg);
701         public static native long LDKCResult_GossipTimestampFilterDecodeErrorZ_get_err(long arg);
702         public interface LDKMessageSendEventsProvider {
703                  long[] get_and_clear_pending_msg_events();
704         }
705         public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
706         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
707         public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
708         public interface LDKEventsProvider {
709                  long[] get_and_clear_pending_events();
710         }
711         public static native long LDKEventsProvider_new(LDKEventsProvider impl);
712         // LDKCVec_EventZ EventsProvider_get_and_clear_pending_events LDKEventsProvider *NONNULL_PTR this_arg
713         public static native long[] EventsProvider_get_and_clear_pending_events(long this_arg);
714         public interface LDKAccess {
715                  long get_utxo(byte[] genesis_hash, long short_channel_id);
716         }
717         public static native long LDKAccess_new(LDKAccess impl);
718         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
719         public static native long Access_get_utxo(long this_arg, byte[] genesis_hash, long short_channel_id);
720         public interface LDKListen {
721                  void block_connected(byte[] block, int height);
722                  void block_disconnected(byte[] header, int height);
723         }
724         public static native long LDKListen_new(LDKListen impl);
725         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
726         public static native void Listen_block_connected(long this_arg, byte[] block, int height);
727         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
728         public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
729         public interface LDKFilter {
730                  void register_tx(byte[] txid, byte[] script_pubkey);
731                  void register_output(long outpoint, byte[] script_pubkey);
732         }
733         public static native long LDKFilter_new(LDKFilter impl);
734         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
735         public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
736         // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, const struct LDKOutPoint *NONNULL_PTR outpoint, struct LDKu8slice script_pubkey
737         public static native void Filter_register_output(long this_arg, long outpoint, byte[] script_pubkey);
738         public interface LDKPersist {
739                  long persist_new_channel(long id, long data);
740                  long update_persisted_channel(long id, long update, long data);
741         }
742         public static native long LDKPersist_new(LDKPersist impl);
743         // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint id, const struct LDKChannelMonitor *NONNULL_PTR data
744         public static native long Persist_persist_new_channel(long this_arg, long id, long data);
745         // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint id, const struct LDKChannelMonitorUpdate *NONNULL_PTR update, const struct LDKChannelMonitor *NONNULL_PTR data
746         public static native long Persist_update_persisted_channel(long this_arg, long id, long update, long data);
747         public interface LDKChannelMessageHandler {
748                  void handle_open_channel(byte[] their_node_id, long their_features, long msg);
749                  void handle_accept_channel(byte[] their_node_id, long their_features, long msg);
750                  void handle_funding_created(byte[] their_node_id, long msg);
751                  void handle_funding_signed(byte[] their_node_id, long msg);
752                  void handle_funding_locked(byte[] their_node_id, long msg);
753                  void handle_shutdown(byte[] their_node_id, long their_features, long msg);
754                  void handle_closing_signed(byte[] their_node_id, long msg);
755                  void handle_update_add_htlc(byte[] their_node_id, long msg);
756                  void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
757                  void handle_update_fail_htlc(byte[] their_node_id, long msg);
758                  void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
759                  void handle_commitment_signed(byte[] their_node_id, long msg);
760                  void handle_revoke_and_ack(byte[] their_node_id, long msg);
761                  void handle_update_fee(byte[] their_node_id, long msg);
762                  void handle_announcement_signatures(byte[] their_node_id, long msg);
763                  void peer_disconnected(byte[] their_node_id, boolean no_connection_possible);
764                  void peer_connected(byte[] their_node_id, long msg);
765                  void handle_channel_reestablish(byte[] their_node_id, long msg);
766                  void handle_channel_update(byte[] their_node_id, long msg);
767                  void handle_error(byte[] their_node_id, long msg);
768         }
769         public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
770         // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKOpenChannel *NONNULL_PTR msg
771         public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long their_features, long msg);
772         // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKAcceptChannel *NONNULL_PTR msg
773         public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long their_features, long msg);
774         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
775         public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
776         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
777         public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
778         // void ChannelMessageHandler_handle_funding_locked LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingLocked *NONNULL_PTR msg
779         public static native void ChannelMessageHandler_handle_funding_locked(long this_arg, byte[] their_node_id, long msg);
780         // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInitFeatures *NONNULL_PTR their_features, const struct LDKShutdown *NONNULL_PTR msg
781         public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long their_features, long msg);
782         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
783         public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
784         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
785         public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
786         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
787         public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
788         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
789         public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
790         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
791         public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
792         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
793         public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
794         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
795         public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
796         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
797         public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
798         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
799         public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
800         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
801         public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id, boolean no_connection_possible);
802         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
803         public static native void ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg);
804         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
805         public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
806         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
807         public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
808         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
809         public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
810         public interface LDKRoutingMessageHandler {
811                  long handle_node_announcement(long msg);
812                  long handle_channel_announcement(long msg);
813                  long handle_channel_update(long msg);
814                  void handle_htlc_fail_channel_update(long update);
815                  long[] get_next_channel_announcements(long starting_point, byte batch_amount);
816                  long[] get_next_node_announcements(byte[] starting_point, byte batch_amount);
817                  void sync_routing_table(byte[] their_node_id, long init);
818                  long handle_reply_channel_range(byte[] their_node_id, long msg);
819                  long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
820                  long handle_query_channel_range(byte[] their_node_id, long msg);
821                  long handle_query_short_channel_ids(byte[] their_node_id, long msg);
822         }
823         public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
824         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
825         public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
826         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
827         public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
828         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
829         public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
830         // void RoutingMessageHandler_handle_htlc_fail_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKHTLCFailChannelUpdate *NONNULL_PTR update
831         public static native void RoutingMessageHandler_handle_htlc_fail_channel_update(long this_arg, long update);
832         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
833         public static native long[] RoutingMessageHandler_get_next_channel_announcements(long this_arg, long starting_point, byte batch_amount);
834         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
835         public static native long[] RoutingMessageHandler_get_next_node_announcements(long this_arg, byte[] starting_point, byte batch_amount);
836         // void RoutingMessageHandler_sync_routing_table LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
837         public static native void RoutingMessageHandler_sync_routing_table(long this_arg, byte[] their_node_id, long init);
838         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
839         public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
840         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
841         public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
842         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
843         public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
844         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
845         public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
846         public interface LDKSocketDescriptor {
847                  long send_data(byte[] data, boolean resume_read);
848                  void disconnect_socket();
849                  boolean eq(long other_arg);
850                  long hash();
851         }
852         public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
853         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
854         public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
855         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
856         public static native void SocketDescriptor_disconnect_socket(long this_arg);
857         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
858         public static native long SocketDescriptor_hash(long this_arg);
859         // void Transaction_free(struct LDKTransaction _res);
860         public static native void Transaction_free(byte[] _res);
861         // void TxOut_free(struct LDKTxOut _res);
862         public static native void TxOut_free(long _res);
863         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
864         public static native long TxOut_clone(long orig);
865         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
866         public static native long CResult_SecretKeyErrorZ_ok(byte[] o);
867         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
868         public static native long CResult_SecretKeyErrorZ_err(LDKSecp256k1Error e);
869         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
870         public static native void CResult_SecretKeyErrorZ_free(long _res);
871         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
872         public static native long CResult_PublicKeyErrorZ_ok(byte[] o);
873         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
874         public static native long CResult_PublicKeyErrorZ_err(LDKSecp256k1Error e);
875         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
876         public static native void CResult_PublicKeyErrorZ_free(long _res);
877         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
878         public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
879         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
880         public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
881         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
882         public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
883         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
884         public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
885         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
886         public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
887         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
888         public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
889         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
890         public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
891         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
892         public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
893         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
894         public static native long CResult_TxCreationKeysErrorZ_ok(long o);
895         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
896         public static native long CResult_TxCreationKeysErrorZ_err(LDKSecp256k1Error e);
897         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
898         public static native void CResult_TxCreationKeysErrorZ_free(long _res);
899         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
900         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
901         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
902         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
903         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
904         public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
905         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
906         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
907         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
908         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
909         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
910         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
911         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
912         public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
913         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
914         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
915         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
916         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
917         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
918         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
919         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
920         public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
921         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
922         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
923         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
924         public static native void CVec_SignatureZ_free(byte[][] _res);
925         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
926         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
927         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
928         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
929         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
930         public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
931         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
932         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
933         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
934         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
935         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
936         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
937         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
938         public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
939         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
940         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
941         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
942         public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
943         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
944         public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
945         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
946         public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
947         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
948         public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
949         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
950         public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
951         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
952         public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
953         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
954         public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
955         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
956         public static native long CResult_CVec_SignatureZNoneZ_ok(byte[][] o);
957         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
958         public static native long CResult_CVec_SignatureZNoneZ_err();
959         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
960         public static native void CResult_CVec_SignatureZNoneZ_free(long _res);
961         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
962         public static native long CResult_CVec_SignatureZNoneZ_clone(long orig);
963         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
964         public static native void CVec_MessageSendEventZ_free(long[] _res);
965         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
966         public static native long CResult_boolLightningErrorZ_ok(boolean o);
967         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
968         public static native long CResult_boolLightningErrorZ_err(long e);
969         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
970         public static native void CResult_boolLightningErrorZ_free(long _res);
971         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
972         public static native long CResult_boolLightningErrorZ_clone(long orig);
973         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
974         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
975         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
976         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
977         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
978         public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
979         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
980         public static native void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long[] _res);
981         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
982         public static native void CVec_NodeAnnouncementZ_free(long[] _res);
983         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
984         public static native long CResult_NoneLightningErrorZ_ok();
985         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
986         public static native long CResult_NoneLightningErrorZ_err(long e);
987         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
988         public static native void CResult_NoneLightningErrorZ_free(long _res);
989         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
990         public static native long CResult_NoneLightningErrorZ_clone(long orig);
991         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
992         public static native void CVec_PublicKeyZ_free(byte[][] _res);
993         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
994         public static native void CVec_u8Z_free(byte[] _res);
995         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
996         public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
997         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
998         public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
999         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
1000         public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
1001         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
1002         public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
1003         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
1004         public static native long CResult_NonePeerHandleErrorZ_ok();
1005         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
1006         public static native long CResult_NonePeerHandleErrorZ_err(long e);
1007         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
1008         public static native void CResult_NonePeerHandleErrorZ_free(long _res);
1009         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
1010         public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
1011         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
1012         public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
1013         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
1014         public static native long CResult_boolPeerHandleErrorZ_err(long e);
1015         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
1016         public static native void CResult_boolPeerHandleErrorZ_free(long _res);
1017         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
1018         public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
1019         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
1020         public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
1021         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1022         public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
1023         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
1024         public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
1025         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
1026         public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
1027         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1028         public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
1029         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
1030         public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
1031         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
1032         public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
1033         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1034         public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
1035         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
1036         public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
1037         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
1038         public static native long CResult_InvoiceFeaturesDecodeErrorZ_ok(long o);
1039         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1040         public static native long CResult_InvoiceFeaturesDecodeErrorZ_err(long e);
1041         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
1042         public static native void CResult_InvoiceFeaturesDecodeErrorZ_free(long _res);
1043         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
1044         public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
1045         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
1046         public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
1047         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
1048         public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
1049         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
1050         public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
1051         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_ok(struct LDKDirectionalChannelInfo o);
1052         public static native long CResult_DirectionalChannelInfoDecodeErrorZ_ok(long o);
1053         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
1054         public static native long CResult_DirectionalChannelInfoDecodeErrorZ_err(long e);
1055         // void CResult_DirectionalChannelInfoDecodeErrorZ_free(struct LDKCResult_DirectionalChannelInfoDecodeErrorZ _res);
1056         public static native void CResult_DirectionalChannelInfoDecodeErrorZ_free(long _res);
1057         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_clone(const struct LDKCResult_DirectionalChannelInfoDecodeErrorZ *NONNULL_PTR orig);
1058         public static native long CResult_DirectionalChannelInfoDecodeErrorZ_clone(long orig);
1059         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
1060         public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
1061         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
1062         public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
1063         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
1064         public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
1065         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
1066         public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
1067         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
1068         public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
1069         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
1070         public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
1071         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
1072         public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
1073         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
1074         public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
1075         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
1076         public static native void CVec_NetAddressZ_free(long[] _res);
1077         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
1078         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
1079         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
1080         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
1081         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
1082         public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
1083         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
1084         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
1085         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
1086         public static native void CVec_u64Z_free(long[] _res);
1087         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
1088         public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
1089         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
1090         public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
1091         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
1092         public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
1093         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
1094         public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
1095         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
1096         public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
1097         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
1098         public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
1099         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
1100         public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
1101         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_clone(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR orig);
1102         public static native long CResult_NetworkGraphDecodeErrorZ_clone(long orig);
1103         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
1104         public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
1105         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
1106         public static native void C2Tuple_usizeTransactionZ_free(long _res);
1107         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
1108         public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
1109         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
1110         public static native long CResult_NoneChannelMonitorUpdateErrZ_ok();
1111         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
1112         public static native long CResult_NoneChannelMonitorUpdateErrZ_err(LDKChannelMonitorUpdateErr e);
1113         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
1114         public static native void CResult_NoneChannelMonitorUpdateErrZ_free(long _res);
1115         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
1116         public static native long CResult_NoneChannelMonitorUpdateErrZ_clone(long orig);
1117         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
1118         public static native void CVec_MonitorEventZ_free(long[] _res);
1119         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
1120         public static native void CVec_EventZ_free(long[] _res);
1121         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
1122         public static native long CResult_OutPointDecodeErrorZ_ok(long o);
1123         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
1124         public static native long CResult_OutPointDecodeErrorZ_err(long e);
1125         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
1126         public static native void CResult_OutPointDecodeErrorZ_free(long _res);
1127         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
1128         public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
1129         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
1130         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
1131         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1132         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
1133         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
1134         public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
1135         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
1136         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
1137         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
1138         public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
1139         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1140         public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
1141         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
1142         public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
1143         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
1144         public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
1145         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_ok(void);
1146         public static native long CResult_NoneMonitorUpdateErrorZ_ok();
1147         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_err(struct LDKMonitorUpdateError e);
1148         public static native long CResult_NoneMonitorUpdateErrorZ_err(long e);
1149         // void CResult_NoneMonitorUpdateErrorZ_free(struct LDKCResult_NoneMonitorUpdateErrorZ _res);
1150         public static native void CResult_NoneMonitorUpdateErrorZ_free(long _res);
1151         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_clone(const struct LDKCResult_NoneMonitorUpdateErrorZ *NONNULL_PTR orig);
1152         public static native long CResult_NoneMonitorUpdateErrorZ_clone(long orig);
1153         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
1154         public static native long C2Tuple_OutPointScriptZ_clone(long orig);
1155         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
1156         public static native long C2Tuple_OutPointScriptZ_new(long a, byte[] b);
1157         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
1158         public static native void C2Tuple_OutPointScriptZ_free(long _res);
1159         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
1160         public static native long C2Tuple_u32ScriptZ_clone(long orig);
1161         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
1162         public static native long C2Tuple_u32ScriptZ_new(int a, byte[] b);
1163         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
1164         public static native void C2Tuple_u32ScriptZ_free(long _res);
1165         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
1166         public static native void CVec_C2Tuple_u32ScriptZZ_free(long[] _res);
1167         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
1168         public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
1169         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
1170         public static native void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(long _res);
1171         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
1172         public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(long[] _res);
1173         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
1174         public static native void CVec_TransactionZ_free(byte[][] _res);
1175         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
1176         public static native long C2Tuple_u32TxOutZ_clone(long orig);
1177         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
1178         public static native long C2Tuple_u32TxOutZ_new(int a, long b);
1179         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
1180         public static native void C2Tuple_u32TxOutZ_free(long _res);
1181         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
1182         public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
1183         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
1184         public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
1185         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
1186         public static native void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(long _res);
1187         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
1188         public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
1189         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
1190         public static native long C2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
1191         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
1192         public static native void C2Tuple_BlockHashChannelMonitorZ_free(long _res);
1193         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
1194         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(long o);
1195         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
1196         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(long e);
1197         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
1198         public static native void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(long _res);
1199         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
1200         public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
1201         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
1202         public static native long CResult_TxOutAccessErrorZ_ok(long o);
1203         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
1204         public static native long CResult_TxOutAccessErrorZ_err(LDKAccessError e);
1205         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
1206         public static native void CResult_TxOutAccessErrorZ_free(long _res);
1207         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
1208         public static native long CResult_TxOutAccessErrorZ_clone(long orig);
1209         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
1210         public static native long CResult_NoneAPIErrorZ_ok();
1211         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
1212         public static native long CResult_NoneAPIErrorZ_err(long e);
1213         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
1214         public static native void CResult_NoneAPIErrorZ_free(long _res);
1215         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
1216         public static native long CResult_NoneAPIErrorZ_clone(long orig);
1217         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
1218         public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
1219         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
1220         public static native void CVec_APIErrorZ_free(long[] _res);
1221         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
1222         public static native void CVec_ChannelDetailsZ_free(long[] _res);
1223         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
1224         public static native long CResult_NonePaymentSendFailureZ_ok();
1225         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
1226         public static native long CResult_NonePaymentSendFailureZ_err(long e);
1227         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
1228         public static native void CResult_NonePaymentSendFailureZ_free(long _res);
1229         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
1230         public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
1231         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
1232         public static native void CVec_ChannelMonitorZ_free(long[] _res);
1233         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
1234         public static native long C2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
1235         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
1236         public static native void C2Tuple_BlockHashChannelManagerZ_free(long _res);
1237         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
1238         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(long o);
1239         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
1240         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(long e);
1241         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
1242         public static native void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(long _res);
1243         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
1244         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
1245         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
1246         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
1247         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
1248         public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
1249         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
1250         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
1251         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
1252         public static native long C2Tuple_SignatureCVec_SignatureZZ_clone(long orig);
1253         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
1254         public static native long C2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
1255         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
1256         public static native void C2Tuple_SignatureCVec_SignatureZZ_free(long _res);
1257         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
1258         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(long o);
1259         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
1260         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
1261         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
1262         public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(long _res);
1263         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
1264         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(long orig);
1265         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
1266         public static native long CResult_SignatureNoneZ_ok(byte[] o);
1267         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
1268         public static native long CResult_SignatureNoneZ_err();
1269         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
1270         public static native void CResult_SignatureNoneZ_free(long _res);
1271         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
1272         public static native long CResult_SignatureNoneZ_clone(long orig);
1273         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
1274         public static native long CResult_SignDecodeErrorZ_ok(long o);
1275         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
1276         public static native long CResult_SignDecodeErrorZ_err(long e);
1277         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
1278         public static native void CResult_SignDecodeErrorZ_free(long _res);
1279         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
1280         public static native long CResult_SignDecodeErrorZ_clone(long orig);
1281         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
1282         public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
1283         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
1284         public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
1285         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
1286         public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
1287         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
1288         public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
1289         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
1290         public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
1291         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
1292         public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
1293         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
1294         public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
1295         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
1296         public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
1297         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
1298         public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
1299         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
1300         public static native void CVec_TxOutZ_free(long[] _res);
1301         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
1302         public static native long CResult_TransactionNoneZ_ok(byte[] o);
1303         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
1304         public static native long CResult_TransactionNoneZ_err();
1305         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
1306         public static native void CResult_TransactionNoneZ_free(long _res);
1307         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
1308         public static native void CVec_RouteHopZ_free(long[] _res);
1309         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
1310         public static native void CVec_CVec_RouteHopZZ_free(long[][] _res);
1311         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
1312         public static native long CResult_RouteDecodeErrorZ_ok(long o);
1313         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
1314         public static native long CResult_RouteDecodeErrorZ_err(long e);
1315         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
1316         public static native void CResult_RouteDecodeErrorZ_free(long _res);
1317         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
1318         public static native long CResult_RouteDecodeErrorZ_clone(long orig);
1319         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
1320         public static native void CVec_RouteHintZ_free(long[] _res);
1321         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
1322         public static native long CResult_RouteLightningErrorZ_ok(long o);
1323         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
1324         public static native long CResult_RouteLightningErrorZ_err(long e);
1325         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
1326         public static native void CResult_RouteLightningErrorZ_free(long _res);
1327         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
1328         public static native long CResult_RouteLightningErrorZ_clone(long orig);
1329         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_ok(struct LDKNetAddress o);
1330         public static native long CResult_NetAddressu8Z_ok(long o);
1331         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_err(uint8_t e);
1332         public static native long CResult_NetAddressu8Z_err(byte e);
1333         // void CResult_NetAddressu8Z_free(struct LDKCResult_NetAddressu8Z _res);
1334         public static native void CResult_NetAddressu8Z_free(long _res);
1335         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_clone(const struct LDKCResult_NetAddressu8Z *NONNULL_PTR orig);
1336         public static native long CResult_NetAddressu8Z_clone(long orig);
1337         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(struct LDKCResult_NetAddressu8Z o);
1338         public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(long o);
1339         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_err(struct LDKDecodeError e);
1340         public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_err(long e);
1341         // void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ _res);
1342         public static native void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(long _res);
1343         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_clone(const struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ *NONNULL_PTR orig);
1344         public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_clone(long orig);
1345         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
1346         public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
1347         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
1348         public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
1349         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
1350         public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
1351         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
1352         public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
1353         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
1354         public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
1355         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
1356         public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
1357         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
1358         public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
1359         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
1360         public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
1361         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
1362         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
1363         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
1364         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
1365         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
1366         public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
1367         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
1368         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
1369         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
1370         public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
1371         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
1372         public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
1373         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
1374         public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
1375         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
1376         public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
1377         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
1378         public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
1379         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
1380         public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
1381         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
1382         public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
1383         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
1384         public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
1385         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
1386         public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
1387         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
1388         public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
1389         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
1390         public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
1391         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
1392         public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
1393         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
1394         public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
1395         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
1396         public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
1397         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
1398         public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
1399         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
1400         public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
1401         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
1402         public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
1403         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
1404         public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
1405         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
1406         public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
1407         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
1408         public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
1409         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_ok(struct LDKFundingLocked o);
1410         public static native long CResult_FundingLockedDecodeErrorZ_ok(long o);
1411         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_err(struct LDKDecodeError e);
1412         public static native long CResult_FundingLockedDecodeErrorZ_err(long e);
1413         // void CResult_FundingLockedDecodeErrorZ_free(struct LDKCResult_FundingLockedDecodeErrorZ _res);
1414         public static native void CResult_FundingLockedDecodeErrorZ_free(long _res);
1415         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_clone(const struct LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR orig);
1416         public static native long CResult_FundingLockedDecodeErrorZ_clone(long orig);
1417         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
1418         public static native long CResult_InitDecodeErrorZ_ok(long o);
1419         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
1420         public static native long CResult_InitDecodeErrorZ_err(long e);
1421         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
1422         public static native void CResult_InitDecodeErrorZ_free(long _res);
1423         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
1424         public static native long CResult_InitDecodeErrorZ_clone(long orig);
1425         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
1426         public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
1427         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
1428         public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
1429         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
1430         public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
1431         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
1432         public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
1433         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
1434         public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
1435         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
1436         public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
1437         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
1438         public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
1439         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
1440         public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
1441         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
1442         public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
1443         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
1444         public static native long CResult_ShutdownDecodeErrorZ_err(long e);
1445         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
1446         public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
1447         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
1448         public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
1449         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
1450         public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
1451         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1452         public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
1453         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
1454         public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
1455         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
1456         public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
1457         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
1458         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
1459         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1460         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
1461         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
1462         public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
1463         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
1464         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
1465         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
1466         public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
1467         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
1468         public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
1469         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
1470         public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
1471         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
1472         public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
1473         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
1474         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
1475         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1476         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
1477         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
1478         public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
1479         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
1480         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
1481         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
1482         public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
1483         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1484         public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
1485         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
1486         public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
1487         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
1488         public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
1489         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
1490         public static native long CResult_PingDecodeErrorZ_ok(long o);
1491         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
1492         public static native long CResult_PingDecodeErrorZ_err(long e);
1493         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
1494         public static native void CResult_PingDecodeErrorZ_free(long _res);
1495         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
1496         public static native long CResult_PingDecodeErrorZ_clone(long orig);
1497         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
1498         public static native long CResult_PongDecodeErrorZ_ok(long o);
1499         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
1500         public static native long CResult_PongDecodeErrorZ_err(long e);
1501         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
1502         public static native void CResult_PongDecodeErrorZ_free(long _res);
1503         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
1504         public static native long CResult_PongDecodeErrorZ_clone(long orig);
1505         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
1506         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
1507         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1508         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
1509         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
1510         public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
1511         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1512         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
1513         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
1514         public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
1515         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1516         public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
1517         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
1518         public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
1519         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1520         public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
1521         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
1522         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
1523         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1524         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
1525         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
1526         public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
1527         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
1528         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
1529         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
1530         public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
1531         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1532         public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
1533         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
1534         public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
1535         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
1536         public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
1537         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
1538         public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
1539         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
1540         public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
1541         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
1542         public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
1543         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
1544         public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
1545         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
1546         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
1547         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1548         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
1549         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
1550         public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
1551         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1552         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
1553         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
1554         public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
1555         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1556         public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
1557         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
1558         public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
1559         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1560         public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
1561         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
1562         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
1563         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
1564         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
1565         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
1566         public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
1567         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
1568         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
1569         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
1570         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
1571         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
1572         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
1573         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
1574         public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
1575         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
1576         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
1577         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
1578         public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
1579         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
1580         public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
1581         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
1582         public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
1583         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
1584         public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
1585         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
1586         public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
1587         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
1588         public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
1589         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
1590         public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
1591         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
1592         public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
1593         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
1594         public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
1595         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
1596         public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
1597         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
1598         public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
1599         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
1600         public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
1601         // void Event_free(struct LDKEvent this_ptr);
1602         public static native void Event_free(long this_ptr);
1603         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
1604         public static native long Event_clone(long orig);
1605         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
1606         public static native byte[] Event_write(long obj);
1607         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
1608         public static native void MessageSendEvent_free(long this_ptr);
1609         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
1610         public static native long MessageSendEvent_clone(long orig);
1611         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
1612         public static native void MessageSendEventsProvider_free(long this_ptr);
1613         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
1614         public static native void EventsProvider_free(long this_ptr);
1615         // void APIError_free(struct LDKAPIError this_ptr);
1616         public static native void APIError_free(long this_ptr);
1617         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
1618         public static native long APIError_clone(long orig);
1619         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
1620         public static native LDKLevel Level_clone(long orig);
1621         // MUST_USE_RES enum LDKLevel Level_max(void);
1622         public static native LDKLevel Level_max();
1623         // void Logger_free(struct LDKLogger this_ptr);
1624         public static native void Logger_free(long this_ptr);
1625         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
1626         public static native void ChannelHandshakeConfig_free(long this_obj);
1627         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
1628         public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
1629         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
1630         public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
1631         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
1632         public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
1633         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
1634         public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
1635         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
1636         public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
1637         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
1638         public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
1639         // 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);
1640         public static native long ChannelHandshakeConfig_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg);
1641         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
1642         public static native long ChannelHandshakeConfig_clone(long orig);
1643         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
1644         public static native long ChannelHandshakeConfig_default();
1645         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
1646         public static native void ChannelHandshakeLimits_free(long this_obj);
1647         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1648         public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
1649         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1650         public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
1651         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1652         public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
1653         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1654         public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
1655         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1656         public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
1657         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1658         public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
1659         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1660         public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
1661         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1662         public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
1663         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1664         public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
1665         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
1666         public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
1667         // uint64_t ChannelHandshakeLimits_get_min_dust_limit_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1668         public static native long ChannelHandshakeLimits_get_min_dust_limit_satoshis(long this_ptr);
1669         // void ChannelHandshakeLimits_set_min_dust_limit_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1670         public static native void ChannelHandshakeLimits_set_min_dust_limit_satoshis(long this_ptr, long val);
1671         // uint64_t ChannelHandshakeLimits_get_max_dust_limit_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1672         public static native long ChannelHandshakeLimits_get_max_dust_limit_satoshis(long this_ptr);
1673         // void ChannelHandshakeLimits_set_max_dust_limit_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
1674         public static native void ChannelHandshakeLimits_set_max_dust_limit_satoshis(long this_ptr, long val);
1675         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1676         public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
1677         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
1678         public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
1679         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1680         public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
1681         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
1682         public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
1683         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
1684         public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
1685         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
1686         public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
1687         // 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);
1688         public static native long 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);
1689         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
1690         public static native long ChannelHandshakeLimits_clone(long orig);
1691         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
1692         public static native long ChannelHandshakeLimits_default();
1693         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
1694         public static native void ChannelConfig_free(long this_obj);
1695         // uint32_t ChannelConfig_get_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
1696         public static native int ChannelConfig_get_fee_proportional_millionths(long this_ptr);
1697         // void ChannelConfig_set_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
1698         public static native void ChannelConfig_set_fee_proportional_millionths(long this_ptr, int val);
1699         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
1700         public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
1701         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
1702         public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
1703         // bool ChannelConfig_get_announced_channel(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
1704         public static native boolean ChannelConfig_get_announced_channel(long this_ptr);
1705         // void ChannelConfig_set_announced_channel(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
1706         public static native void ChannelConfig_set_announced_channel(long this_ptr, boolean val);
1707         // bool ChannelConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
1708         public static native boolean ChannelConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
1709         // void ChannelConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
1710         public static native void ChannelConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
1711         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg);
1712         public static native long ChannelConfig_new(int fee_proportional_millionths_arg, short cltv_expiry_delta_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg);
1713         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
1714         public static native long ChannelConfig_clone(long orig);
1715         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
1716         public static native long ChannelConfig_default();
1717         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
1718         public static native byte[] ChannelConfig_write(long obj);
1719         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
1720         public static native long ChannelConfig_read(byte[] ser);
1721         // void UserConfig_free(struct LDKUserConfig this_obj);
1722         public static native void UserConfig_free(long this_obj);
1723         // struct LDKChannelHandshakeConfig UserConfig_get_own_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
1724         public static native long UserConfig_get_own_channel_config(long this_ptr);
1725         // void UserConfig_set_own_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
1726         public static native void UserConfig_set_own_channel_config(long this_ptr, long val);
1727         // struct LDKChannelHandshakeLimits UserConfig_get_peer_channel_config_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
1728         public static native long UserConfig_get_peer_channel_config_limits(long this_ptr);
1729         // void UserConfig_set_peer_channel_config_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
1730         public static native void UserConfig_set_peer_channel_config_limits(long this_ptr, long val);
1731         // struct LDKChannelConfig UserConfig_get_channel_options(const struct LDKUserConfig *NONNULL_PTR this_ptr);
1732         public static native long UserConfig_get_channel_options(long this_ptr);
1733         // void UserConfig_set_channel_options(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
1734         public static native void UserConfig_set_channel_options(long this_ptr, long val);
1735         // 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);
1736         public static native long UserConfig_new(long own_channel_config_arg, long peer_channel_config_limits_arg, long channel_options_arg);
1737         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
1738         public static native long UserConfig_clone(long orig);
1739         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
1740         public static native long UserConfig_default();
1741         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
1742         public static native LDKAccessError AccessError_clone(long orig);
1743         // void Access_free(struct LDKAccess this_ptr);
1744         public static native void Access_free(long this_ptr);
1745         // void Listen_free(struct LDKListen this_ptr);
1746         public static native void Listen_free(long this_ptr);
1747         // void Watch_free(struct LDKWatch this_ptr);
1748         public static native void Watch_free(long this_ptr);
1749         // void Filter_free(struct LDKFilter this_ptr);
1750         public static native void Filter_free(long this_ptr);
1751         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
1752         public static native void BroadcasterInterface_free(long this_ptr);
1753         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
1754         public static native LDKConfirmationTarget ConfirmationTarget_clone(long orig);
1755         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
1756         public static native void FeeEstimator_free(long this_ptr);
1757         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
1758         public static native void ChainMonitor_free(long this_obj);
1759         // void ChainMonitor_block_connected(const struct LDKChainMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height);
1760         public static native void ChainMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height);
1761         // void ChainMonitor_block_disconnected(const struct LDKChainMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t disconnected_height);
1762         public static native void ChainMonitor_block_disconnected(long this_arg, byte[] header, int disconnected_height);
1763         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKFilter *chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
1764         public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
1765         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
1766         public static native long ChainMonitor_as_Watch(long this_arg);
1767         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
1768         public static native long ChainMonitor_as_EventsProvider(long this_arg);
1769         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
1770         public static native void ChannelMonitorUpdate_free(long this_obj);
1771         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
1772         public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
1773         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
1774         public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
1775         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
1776         public static native long ChannelMonitorUpdate_clone(long orig);
1777         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
1778         public static native byte[] ChannelMonitorUpdate_write(long obj);
1779         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
1780         public static native long ChannelMonitorUpdate_read(byte[] ser);
1781         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
1782         public static native LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(long orig);
1783         // void MonitorUpdateError_free(struct LDKMonitorUpdateError this_obj);
1784         public static native void MonitorUpdateError_free(long this_obj);
1785         // struct LDKMonitorUpdateError MonitorUpdateError_clone(const struct LDKMonitorUpdateError *NONNULL_PTR orig);
1786         public static native long MonitorUpdateError_clone(long orig);
1787         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
1788         public static native void MonitorEvent_free(long this_ptr);
1789         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
1790         public static native long MonitorEvent_clone(long orig);
1791         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
1792         public static native void HTLCUpdate_free(long this_obj);
1793         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
1794         public static native long HTLCUpdate_clone(long orig);
1795         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
1796         public static native byte[] HTLCUpdate_write(long obj);
1797         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
1798         public static native long HTLCUpdate_read(byte[] ser);
1799         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
1800         public static native void ChannelMonitor_free(long this_obj);
1801         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
1802         public static native long ChannelMonitor_clone(long orig);
1803         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
1804         public static native byte[] ChannelMonitor_write(long obj);
1805         // MUST_USE_RES struct LDKCResult_NoneMonitorUpdateErrorZ ChannelMonitor_update_monitor(const 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);
1806         public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
1807         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
1808         public static native long ChannelMonitor_get_latest_update_id(long this_arg);
1809         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
1810         public static native long ChannelMonitor_get_funding_txo(long this_arg);
1811         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
1812         public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
1813         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
1814         public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
1815         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
1816         public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
1817         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
1818         public static native long[] ChannelMonitor_get_and_clear_pending_events(long this_arg);
1819         // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
1820         public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
1821         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const 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);
1822         public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
1823         // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
1824         public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
1825         // void Persist_free(struct LDKPersist this_ptr);
1826         public static native void Persist_free(long this_ptr);
1827         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
1828         public static native long C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser, long arg);
1829         // void OutPoint_free(struct LDKOutPoint this_obj);
1830         public static native void OutPoint_free(long this_obj);
1831         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
1832         public static native byte[] OutPoint_get_txid(long this_ptr);
1833         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1834         public static native void OutPoint_set_txid(long this_ptr, byte[] val);
1835         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
1836         public static native short OutPoint_get_index(long this_ptr);
1837         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
1838         public static native void OutPoint_set_index(long this_ptr, short val);
1839         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
1840         public static native long OutPoint_new(byte[] txid_arg, short index_arg);
1841         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
1842         public static native long OutPoint_clone(long orig);
1843         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
1844         public static native byte[] OutPoint_to_channel_id(long this_arg);
1845         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
1846         public static native byte[] OutPoint_write(long obj);
1847         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
1848         public static native long OutPoint_read(byte[] ser);
1849         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
1850         public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
1851         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
1852         public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
1853         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
1854         public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
1855         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
1856         public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
1857         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1858         public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
1859         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
1860         public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
1861         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
1862         public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
1863         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
1864         public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
1865         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
1866         public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
1867         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
1868         public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
1869         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
1870         public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
1871         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1872         public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
1873         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
1874         public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
1875         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
1876         public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
1877         // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKPublicKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
1878         public static native long DelayedPaymentOutputDescriptor_new(long outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, long output_arg, byte[] revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
1879         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
1880         public static native long DelayedPaymentOutputDescriptor_clone(long orig);
1881         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
1882         public static native void StaticPaymentOutputDescriptor_free(long this_obj);
1883         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
1884         public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
1885         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
1886         public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
1887         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
1888         public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
1889         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
1890         public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
1891         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1892         public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
1893         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
1894         public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
1895         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
1896         public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
1897         // MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
1898         public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
1899         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
1900         public static native long StaticPaymentOutputDescriptor_clone(long orig);
1901         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
1902         public static native void SpendableOutputDescriptor_free(long this_ptr);
1903         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
1904         public static native long SpendableOutputDescriptor_clone(long orig);
1905         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
1906         public static native byte[] SpendableOutputDescriptor_write(long obj);
1907         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
1908         public static native long SpendableOutputDescriptor_read(byte[] ser);
1909         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
1910         public static native long Sign_clone(long orig);
1911         // void Sign_free(struct LDKSign this_ptr);
1912         public static native void Sign_free(long this_ptr);
1913         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
1914         public static native void KeysInterface_free(long this_ptr);
1915         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
1916         public static native void InMemorySigner_free(long this_obj);
1917         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
1918         public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
1919         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1920         public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
1921         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
1922         public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
1923         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1924         public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
1925         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
1926         public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
1927         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1928         public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
1929         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
1930         public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
1931         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1932         public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
1933         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
1934         public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
1935         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
1936         public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
1937         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
1938         public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
1939         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1940         public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
1941         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
1942         public static native long InMemorySigner_clone(long orig);
1943         // MUST_USE_RES struct LDKInMemorySigner InMemorySigner_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 LDKThirtyTwoBytes channel_keys_id);
1944         public static native long InMemorySigner_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, byte[] channel_keys_id);
1945         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
1946         public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
1947         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
1948         public static native short InMemorySigner_counterparty_selected_contest_delay(long this_arg);
1949         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
1950         public static native short InMemorySigner_holder_selected_contest_delay(long this_arg);
1951         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
1952         public static native boolean InMemorySigner_is_outbound(long this_arg);
1953         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
1954         public static native long InMemorySigner_funding_outpoint(long this_arg);
1955         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
1956         public static native long InMemorySigner_get_channel_parameters(long this_arg);
1957         // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_counterparty_payment_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR descriptor);
1958         public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
1959         // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_dynamic_p2wsh_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR descriptor);
1960         public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
1961         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
1962         public static native long InMemorySigner_as_Sign(long this_arg);
1963         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
1964         public static native byte[] InMemorySigner_write(long obj);
1965         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser);
1966         public static native long InMemorySigner_read(byte[] ser);
1967         // void KeysManager_free(struct LDKKeysManager this_obj);
1968         public static native void KeysManager_free(long this_obj);
1969         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
1970         public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
1971         // MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const struct LDKKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
1972         public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
1973         // MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight);
1974         public static native long KeysManager_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight);
1975         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
1976         public static native long KeysManager_as_KeysInterface(long this_arg);
1977         // void ChannelManager_free(struct LDKChannelManager this_obj);
1978         public static native void ChannelManager_free(long this_obj);
1979         // void ChainParameters_free(struct LDKChainParameters this_obj);
1980         public static native void ChainParameters_free(long this_obj);
1981         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
1982         public static native LDKNetwork ChainParameters_get_network(long this_ptr);
1983         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
1984         public static native void ChainParameters_set_network(long this_ptr, LDKNetwork val);
1985         // const uint8_t (*ChainParameters_get_latest_hash(const struct LDKChainParameters *NONNULL_PTR this_ptr))[32];
1986         public static native byte[] ChainParameters_get_latest_hash(long this_ptr);
1987         // void ChainParameters_set_latest_hash(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
1988         public static native void ChainParameters_set_latest_hash(long this_ptr, byte[] val);
1989         // uintptr_t ChainParameters_get_latest_height(const struct LDKChainParameters *NONNULL_PTR this_ptr);
1990         public static native long ChainParameters_get_latest_height(long this_ptr);
1991         // void ChainParameters_set_latest_height(struct LDKChainParameters *NONNULL_PTR this_ptr, uintptr_t val);
1992         public static native void ChainParameters_set_latest_height(long this_ptr, long val);
1993         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKThirtyTwoBytes latest_hash_arg, uintptr_t latest_height_arg);
1994         public static native long ChainParameters_new(LDKNetwork network_arg, byte[] latest_hash_arg, long latest_height_arg);
1995         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
1996         public static native void ChannelDetails_free(long this_obj);
1997         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
1998         public static native byte[] ChannelDetails_get_channel_id(long this_ptr);
1999         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2000         public static native void ChannelDetails_set_channel_id(long this_ptr, byte[] val);
2001         // struct LDKPublicKey ChannelDetails_get_remote_network_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2002         public static native byte[] ChannelDetails_get_remote_network_id(long this_ptr);
2003         // void ChannelDetails_set_remote_network_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2004         public static native void ChannelDetails_set_remote_network_id(long this_ptr, byte[] val);
2005         // struct LDKInitFeatures ChannelDetails_get_counterparty_features(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2006         public static native long ChannelDetails_get_counterparty_features(long this_ptr);
2007         // void ChannelDetails_set_counterparty_features(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
2008         public static native void ChannelDetails_set_counterparty_features(long this_ptr, long val);
2009         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2010         public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
2011         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2012         public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
2013         // uint64_t ChannelDetails_get_user_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2014         public static native long ChannelDetails_get_user_id(long this_ptr);
2015         // void ChannelDetails_set_user_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2016         public static native void ChannelDetails_set_user_id(long this_ptr, long val);
2017         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2018         public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
2019         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2020         public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
2021         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2022         public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
2023         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2024         public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
2025         // bool ChannelDetails_get_is_live(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2026         public static native boolean ChannelDetails_get_is_live(long this_ptr);
2027         // void ChannelDetails_set_is_live(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
2028         public static native void ChannelDetails_set_is_live(long this_ptr, boolean val);
2029         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
2030         public static native long ChannelDetails_clone(long orig);
2031         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
2032         public static native void PaymentSendFailure_free(long this_ptr);
2033         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
2034         public static native long PaymentSendFailure_clone(long orig);
2035         // MUST_USE_RES struct LDKChannelManager ChannelManager_new(struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKLogger logger, struct LDKKeysInterface keys_manager, struct LDKUserConfig config, struct LDKChainParameters params);
2036         public static native long ChannelManager_new(long fee_est, long chain_monitor, long tx_broadcaster, long logger, long keys_manager, long config, long params);
2037         // 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);
2038         public static native long ChannelManager_create_channel(long this_arg, byte[] their_network_key, long channel_value_satoshis, long push_msat, long user_id, long override_config);
2039         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
2040         public static native long[] ChannelManager_list_channels(long this_arg);
2041         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
2042         public static native long[] ChannelManager_list_usable_channels(long this_arg);
2043         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
2044         public static native long ChannelManager_close_channel(long this_arg, byte[] channel_id);
2045         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
2046         public static native long ChannelManager_force_close_channel(long this_arg, byte[] channel_id);
2047         // void ChannelManager_force_close_all_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
2048         public static native void ChannelManager_force_close_all_channels(long this_arg);
2049         // 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);
2050         public static native long ChannelManager_send_payment(long this_arg, long route, byte[] payment_hash, byte[] payment_secret);
2051         // void ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKOutPoint funding_txo);
2052         public static native void ChannelManager_funding_transaction_generated(long this_arg, byte[] temporary_channel_id, long funding_txo);
2053         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
2054         public static native void ChannelManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
2055         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
2056         public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
2057         // void ChannelManager_timer_chan_freshness_every_min(const struct LDKChannelManager *NONNULL_PTR this_arg);
2058         public static native void ChannelManager_timer_chan_freshness_every_min(long this_arg);
2059         // 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);
2060         public static native boolean ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash, byte[] payment_secret);
2061         // 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);
2062         public static native boolean ChannelManager_claim_funds(long this_arg, byte[] payment_preimage, byte[] payment_secret, long expected_amount);
2063         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
2064         public static native byte[] ChannelManager_get_our_node_id(long this_arg);
2065         // 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);
2066         public static native void ChannelManager_channel_monitor_updated(long this_arg, long funding_txo, long highest_applied_update_id);
2067         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
2068         public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
2069         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
2070         public static native long ChannelManager_as_EventsProvider(long this_arg);
2071         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
2072         public static native long ChannelManager_as_Listen(long this_arg);
2073         // void ChannelManager_block_connected(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height);
2074         public static native void ChannelManager_block_connected(long this_arg, byte[] header, long[] txdata, int height);
2075         // void ChannelManager_block_disconnected(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*header)[80]);
2076         public static native void ChannelManager_block_disconnected(long this_arg, byte[] header);
2077         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
2078         public static native void ChannelManager_await_persistable_update(long this_arg);
2079         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
2080         public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
2081         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
2082         public static native byte[] ChannelManager_write(long obj);
2083         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
2084         public static native void ChannelManagerReadArgs_free(long this_obj);
2085         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2086         public static native long ChannelManagerReadArgs_get_keys_manager(long this_ptr);
2087         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
2088         public static native void ChannelManagerReadArgs_set_keys_manager(long this_ptr, long val);
2089         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2090         public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
2091         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
2092         public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
2093         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2094         public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
2095         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
2096         public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
2097         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2098         public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
2099         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
2100         public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
2101         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2102         public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
2103         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
2104         public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
2105         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2106         public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
2107         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
2108         public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
2109         // 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);
2110         public static native long ChannelManagerReadArgs_new(long keys_manager, long fee_estimator, long chain_monitor, long tx_broadcaster, long logger, long default_config, long[] channel_monitors);
2111         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
2112         public static native long C2Tuple_BlockHashChannelManagerZ_read(byte[] ser, long arg);
2113         // void DecodeError_free(struct LDKDecodeError this_obj);
2114         public static native void DecodeError_free(long this_obj);
2115         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
2116         public static native long DecodeError_clone(long orig);
2117         // void Init_free(struct LDKInit this_obj);
2118         public static native void Init_free(long this_obj);
2119         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
2120         public static native long Init_get_features(long this_ptr);
2121         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
2122         public static native void Init_set_features(long this_ptr, long val);
2123         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg);
2124         public static native long Init_new(long features_arg);
2125         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
2126         public static native long Init_clone(long orig);
2127         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
2128         public static native void ErrorMessage_free(long this_obj);
2129         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
2130         public static native byte[] ErrorMessage_get_channel_id(long this_ptr);
2131         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2132         public static native void ErrorMessage_set_channel_id(long this_ptr, byte[] val);
2133         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
2134         public static native String ErrorMessage_get_data(long this_ptr);
2135         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
2136         public static native void ErrorMessage_set_data(long this_ptr, byte[] val);
2137         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z data_arg);
2138         public static native long ErrorMessage_new(byte[] channel_id_arg, byte[] data_arg);
2139         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
2140         public static native long ErrorMessage_clone(long orig);
2141         // void Ping_free(struct LDKPing this_obj);
2142         public static native void Ping_free(long this_obj);
2143         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
2144         public static native short Ping_get_ponglen(long this_ptr);
2145         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
2146         public static native void Ping_set_ponglen(long this_ptr, short val);
2147         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
2148         public static native short Ping_get_byteslen(long this_ptr);
2149         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
2150         public static native void Ping_set_byteslen(long this_ptr, short val);
2151         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
2152         public static native long Ping_new(short ponglen_arg, short byteslen_arg);
2153         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
2154         public static native long Ping_clone(long orig);
2155         // void Pong_free(struct LDKPong this_obj);
2156         public static native void Pong_free(long this_obj);
2157         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
2158         public static native short Pong_get_byteslen(long this_ptr);
2159         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
2160         public static native void Pong_set_byteslen(long this_ptr, short val);
2161         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
2162         public static native long Pong_new(short byteslen_arg);
2163         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
2164         public static native long Pong_clone(long orig);
2165         // void OpenChannel_free(struct LDKOpenChannel this_obj);
2166         public static native void OpenChannel_free(long this_obj);
2167         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
2168         public static native byte[] OpenChannel_get_chain_hash(long this_ptr);
2169         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2170         public static native void OpenChannel_set_chain_hash(long this_ptr, byte[] val);
2171         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
2172         public static native byte[] OpenChannel_get_temporary_channel_id(long this_ptr);
2173         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2174         public static native void OpenChannel_set_temporary_channel_id(long this_ptr, byte[] val);
2175         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2176         public static native long OpenChannel_get_funding_satoshis(long this_ptr);
2177         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2178         public static native void OpenChannel_set_funding_satoshis(long this_ptr, long val);
2179         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2180         public static native long OpenChannel_get_push_msat(long this_ptr);
2181         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2182         public static native void OpenChannel_set_push_msat(long this_ptr, long val);
2183         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2184         public static native long OpenChannel_get_dust_limit_satoshis(long this_ptr);
2185         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2186         public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);
2187         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2188         public static native long OpenChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
2189         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2190         public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
2191         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2192         public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
2193         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2194         public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
2195         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2196         public static native long OpenChannel_get_htlc_minimum_msat(long this_ptr);
2197         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2198         public static native void OpenChannel_set_htlc_minimum_msat(long this_ptr, long val);
2199         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2200         public static native int OpenChannel_get_feerate_per_kw(long this_ptr);
2201         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
2202         public static native void OpenChannel_set_feerate_per_kw(long this_ptr, int val);
2203         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2204         public static native short OpenChannel_get_to_self_delay(long this_ptr);
2205         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
2206         public static native void OpenChannel_set_to_self_delay(long this_ptr, short val);
2207         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2208         public static native short OpenChannel_get_max_accepted_htlcs(long this_ptr);
2209         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
2210         public static native void OpenChannel_set_max_accepted_htlcs(long this_ptr, short val);
2211         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2212         public static native byte[] OpenChannel_get_funding_pubkey(long this_ptr);
2213         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2214         public static native void OpenChannel_set_funding_pubkey(long this_ptr, byte[] val);
2215         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2216         public static native byte[] OpenChannel_get_revocation_basepoint(long this_ptr);
2217         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2218         public static native void OpenChannel_set_revocation_basepoint(long this_ptr, byte[] val);
2219         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2220         public static native byte[] OpenChannel_get_payment_point(long this_ptr);
2221         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2222         public static native void OpenChannel_set_payment_point(long this_ptr, byte[] val);
2223         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2224         public static native byte[] OpenChannel_get_delayed_payment_basepoint(long this_ptr);
2225         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2226         public static native void OpenChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
2227         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2228         public static native byte[] OpenChannel_get_htlc_basepoint(long this_ptr);
2229         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2230         public static native void OpenChannel_set_htlc_basepoint(long this_ptr, byte[] val);
2231         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2232         public static native byte[] OpenChannel_get_first_per_commitment_point(long this_ptr);
2233         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2234         public static native void OpenChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
2235         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2236         public static native byte OpenChannel_get_channel_flags(long this_ptr);
2237         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
2238         public static native void OpenChannel_set_channel_flags(long this_ptr, byte val);
2239         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
2240         public static native long OpenChannel_clone(long orig);
2241         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
2242         public static native void AcceptChannel_free(long this_obj);
2243         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
2244         public static native byte[] AcceptChannel_get_temporary_channel_id(long this_ptr);
2245         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2246         public static native void AcceptChannel_set_temporary_channel_id(long this_ptr, byte[] val);
2247         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2248         public static native long AcceptChannel_get_dust_limit_satoshis(long this_ptr);
2249         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2250         public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);
2251         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2252         public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
2253         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2254         public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
2255         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2256         public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
2257         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2258         public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
2259         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2260         public static native long AcceptChannel_get_htlc_minimum_msat(long this_ptr);
2261         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2262         public static native void AcceptChannel_set_htlc_minimum_msat(long this_ptr, long val);
2263         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2264         public static native int AcceptChannel_get_minimum_depth(long this_ptr);
2265         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
2266         public static native void AcceptChannel_set_minimum_depth(long this_ptr, int val);
2267         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2268         public static native short AcceptChannel_get_to_self_delay(long this_ptr);
2269         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
2270         public static native void AcceptChannel_set_to_self_delay(long this_ptr, short val);
2271         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2272         public static native short AcceptChannel_get_max_accepted_htlcs(long this_ptr);
2273         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
2274         public static native void AcceptChannel_set_max_accepted_htlcs(long this_ptr, short val);
2275         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2276         public static native byte[] AcceptChannel_get_funding_pubkey(long this_ptr);
2277         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2278         public static native void AcceptChannel_set_funding_pubkey(long this_ptr, byte[] val);
2279         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2280         public static native byte[] AcceptChannel_get_revocation_basepoint(long this_ptr);
2281         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2282         public static native void AcceptChannel_set_revocation_basepoint(long this_ptr, byte[] val);
2283         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2284         public static native byte[] AcceptChannel_get_payment_point(long this_ptr);
2285         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2286         public static native void AcceptChannel_set_payment_point(long this_ptr, byte[] val);
2287         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2288         public static native byte[] AcceptChannel_get_delayed_payment_basepoint(long this_ptr);
2289         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2290         public static native void AcceptChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
2291         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2292         public static native byte[] AcceptChannel_get_htlc_basepoint(long this_ptr);
2293         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2294         public static native void AcceptChannel_set_htlc_basepoint(long this_ptr, byte[] val);
2295         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2296         public static native byte[] AcceptChannel_get_first_per_commitment_point(long this_ptr);
2297         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2298         public static native void AcceptChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
2299         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
2300         public static native long AcceptChannel_clone(long orig);
2301         // void FundingCreated_free(struct LDKFundingCreated this_obj);
2302         public static native void FundingCreated_free(long this_obj);
2303         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
2304         public static native byte[] FundingCreated_get_temporary_channel_id(long this_ptr);
2305         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2306         public static native void FundingCreated_set_temporary_channel_id(long this_ptr, byte[] val);
2307         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
2308         public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
2309         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2310         public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
2311         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
2312         public static native short FundingCreated_get_funding_output_index(long this_ptr);
2313         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
2314         public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
2315         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
2316         public static native byte[] FundingCreated_get_signature(long this_ptr);
2317         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
2318         public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
2319         // 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);
2320         public static native long FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
2321         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
2322         public static native long FundingCreated_clone(long orig);
2323         // void FundingSigned_free(struct LDKFundingSigned this_obj);
2324         public static native void FundingSigned_free(long this_obj);
2325         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
2326         public static native byte[] FundingSigned_get_channel_id(long this_ptr);
2327         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2328         public static native void FundingSigned_set_channel_id(long this_ptr, byte[] val);
2329         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
2330         public static native byte[] FundingSigned_get_signature(long this_ptr);
2331         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
2332         public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
2333         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
2334         public static native long FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
2335         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
2336         public static native long FundingSigned_clone(long orig);
2337         // void FundingLocked_free(struct LDKFundingLocked this_obj);
2338         public static native void FundingLocked_free(long this_obj);
2339         // const uint8_t (*FundingLocked_get_channel_id(const struct LDKFundingLocked *NONNULL_PTR this_ptr))[32];
2340         public static native byte[] FundingLocked_get_channel_id(long this_ptr);
2341         // void FundingLocked_set_channel_id(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2342         public static native void FundingLocked_set_channel_id(long this_ptr, byte[] val);
2343         // struct LDKPublicKey FundingLocked_get_next_per_commitment_point(const struct LDKFundingLocked *NONNULL_PTR this_ptr);
2344         public static native byte[] FundingLocked_get_next_per_commitment_point(long this_ptr);
2345         // void FundingLocked_set_next_per_commitment_point(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2346         public static native void FundingLocked_set_next_per_commitment_point(long this_ptr, byte[] val);
2347         // MUST_USE_RES struct LDKFundingLocked FundingLocked_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg);
2348         public static native long FundingLocked_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg);
2349         // struct LDKFundingLocked FundingLocked_clone(const struct LDKFundingLocked *NONNULL_PTR orig);
2350         public static native long FundingLocked_clone(long orig);
2351         // void Shutdown_free(struct LDKShutdown this_obj);
2352         public static native void Shutdown_free(long this_obj);
2353         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
2354         public static native byte[] Shutdown_get_channel_id(long this_ptr);
2355         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2356         public static native void Shutdown_set_channel_id(long this_ptr, byte[] val);
2357         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
2358         public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
2359         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
2360         public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
2361         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
2362         public static native long Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
2363         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
2364         public static native long Shutdown_clone(long orig);
2365         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
2366         public static native void ClosingSigned_free(long this_obj);
2367         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
2368         public static native byte[] ClosingSigned_get_channel_id(long this_ptr);
2369         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2370         public static native void ClosingSigned_set_channel_id(long this_ptr, byte[] val);
2371         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
2372         public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
2373         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
2374         public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
2375         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
2376         public static native byte[] ClosingSigned_get_signature(long this_ptr);
2377         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
2378         public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
2379         // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg);
2380         public static native long ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg);
2381         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
2382         public static native long ClosingSigned_clone(long orig);
2383         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
2384         public static native void UpdateAddHTLC_free(long this_obj);
2385         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
2386         public static native byte[] UpdateAddHTLC_get_channel_id(long this_ptr);
2387         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2388         public static native void UpdateAddHTLC_set_channel_id(long this_ptr, byte[] val);
2389         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
2390         public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
2391         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
2392         public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
2393         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
2394         public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
2395         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
2396         public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
2397         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
2398         public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
2399         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2400         public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
2401         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
2402         public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
2403         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
2404         public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
2405         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
2406         public static native long UpdateAddHTLC_clone(long orig);
2407         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
2408         public static native void UpdateFulfillHTLC_free(long this_obj);
2409         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
2410         public static native byte[] UpdateFulfillHTLC_get_channel_id(long this_ptr);
2411         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2412         public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, byte[] val);
2413         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
2414         public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
2415         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
2416         public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
2417         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
2418         public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
2419         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2420         public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
2421         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
2422         public static native long UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
2423         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
2424         public static native long UpdateFulfillHTLC_clone(long orig);
2425         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
2426         public static native void UpdateFailHTLC_free(long this_obj);
2427         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
2428         public static native byte[] UpdateFailHTLC_get_channel_id(long this_ptr);
2429         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2430         public static native void UpdateFailHTLC_set_channel_id(long this_ptr, byte[] val);
2431         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
2432         public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
2433         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
2434         public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
2435         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
2436         public static native long UpdateFailHTLC_clone(long orig);
2437         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
2438         public static native void UpdateFailMalformedHTLC_free(long this_obj);
2439         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
2440         public static native byte[] UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
2441         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2442         public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, byte[] val);
2443         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
2444         public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
2445         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
2446         public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
2447         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
2448         public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
2449         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
2450         public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
2451         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
2452         public static native long UpdateFailMalformedHTLC_clone(long orig);
2453         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
2454         public static native void CommitmentSigned_free(long this_obj);
2455         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
2456         public static native byte[] CommitmentSigned_get_channel_id(long this_ptr);
2457         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2458         public static native void CommitmentSigned_set_channel_id(long this_ptr, byte[] val);
2459         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
2460         public static native byte[] CommitmentSigned_get_signature(long this_ptr);
2461         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
2462         public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
2463         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
2464         public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
2465         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
2466         public static native long CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
2467         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
2468         public static native long CommitmentSigned_clone(long orig);
2469         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
2470         public static native void RevokeAndACK_free(long this_obj);
2471         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
2472         public static native byte[] RevokeAndACK_get_channel_id(long this_ptr);
2473         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2474         public static native void RevokeAndACK_set_channel_id(long this_ptr, byte[] val);
2475         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
2476         public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
2477         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2478         public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
2479         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
2480         public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
2481         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2482         public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
2483         // 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);
2484         public static native long RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
2485         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
2486         public static native long RevokeAndACK_clone(long orig);
2487         // void UpdateFee_free(struct LDKUpdateFee this_obj);
2488         public static native void UpdateFee_free(long this_obj);
2489         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
2490         public static native byte[] UpdateFee_get_channel_id(long this_ptr);
2491         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2492         public static native void UpdateFee_set_channel_id(long this_ptr, byte[] val);
2493         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
2494         public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
2495         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
2496         public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
2497         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
2498         public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
2499         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
2500         public static native long UpdateFee_clone(long orig);
2501         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
2502         public static native void DataLossProtect_free(long this_obj);
2503         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
2504         public static native byte[] DataLossProtect_get_your_last_per_commitment_secret(long this_ptr);
2505         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2506         public static native void DataLossProtect_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
2507         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
2508         public static native byte[] DataLossProtect_get_my_current_per_commitment_point(long this_ptr);
2509         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2510         public static native void DataLossProtect_set_my_current_per_commitment_point(long this_ptr, byte[] val);
2511         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
2512         public static native long DataLossProtect_new(byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg);
2513         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
2514         public static native long DataLossProtect_clone(long orig);
2515         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
2516         public static native void ChannelReestablish_free(long this_obj);
2517         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
2518         public static native byte[] ChannelReestablish_get_channel_id(long this_ptr);
2519         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2520         public static native void ChannelReestablish_set_channel_id(long this_ptr, byte[] val);
2521         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
2522         public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
2523         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
2524         public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
2525         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
2526         public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
2527         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
2528         public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
2529         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
2530         public static native long ChannelReestablish_clone(long orig);
2531         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
2532         public static native void AnnouncementSignatures_free(long this_obj);
2533         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
2534         public static native byte[] AnnouncementSignatures_get_channel_id(long this_ptr);
2535         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2536         public static native void AnnouncementSignatures_set_channel_id(long this_ptr, byte[] val);
2537         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
2538         public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
2539         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
2540         public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
2541         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
2542         public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
2543         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
2544         public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
2545         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
2546         public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
2547         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
2548         public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
2549         // 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);
2550         public static native long AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
2551         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
2552         public static native long AnnouncementSignatures_clone(long orig);
2553         // void NetAddress_free(struct LDKNetAddress this_ptr);
2554         public static native void NetAddress_free(long this_ptr);
2555         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
2556         public static native long NetAddress_clone(long orig);
2557         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
2558         public static native byte[] NetAddress_write(long obj);
2559         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ Result_read(struct LDKu8slice ser);
2560         public static native long Result_read(byte[] ser);
2561         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
2562         public static native void UnsignedNodeAnnouncement_free(long this_obj);
2563         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
2564         public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
2565         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
2566         public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
2567         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
2568         public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
2569         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
2570         public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
2571         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
2572         public static native byte[] UnsignedNodeAnnouncement_get_node_id(long this_ptr);
2573         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2574         public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, byte[] val);
2575         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
2576         public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
2577         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
2578         public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
2579         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
2580         public static native byte[] UnsignedNodeAnnouncement_get_alias(long this_ptr);
2581         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2582         public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, byte[] val);
2583         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
2584         public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
2585         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
2586         public static native long UnsignedNodeAnnouncement_clone(long orig);
2587         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
2588         public static native void NodeAnnouncement_free(long this_obj);
2589         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
2590         public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
2591         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
2592         public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
2593         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
2594         public static native long NodeAnnouncement_get_contents(long this_ptr);
2595         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
2596         public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
2597         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
2598         public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
2599         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
2600         public static native long NodeAnnouncement_clone(long orig);
2601         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
2602         public static native void UnsignedChannelAnnouncement_free(long this_obj);
2603         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
2604         public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
2605         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
2606         public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
2607         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
2608         public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
2609         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2610         public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
2611         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
2612         public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
2613         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
2614         public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
2615         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
2616         public static native byte[] UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
2617         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2618         public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, byte[] val);
2619         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
2620         public static native byte[] UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
2621         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2622         public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, byte[] val);
2623         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
2624         public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
2625         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2626         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, byte[] val);
2627         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
2628         public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
2629         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2630         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, byte[] val);
2631         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
2632         public static native long UnsignedChannelAnnouncement_clone(long orig);
2633         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
2634         public static native void ChannelAnnouncement_free(long this_obj);
2635         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
2636         public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
2637         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
2638         public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
2639         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
2640         public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
2641         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
2642         public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
2643         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
2644         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
2645         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
2646         public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
2647         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
2648         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
2649         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
2650         public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
2651         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
2652         public static native long ChannelAnnouncement_get_contents(long this_ptr);
2653         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
2654         public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
2655         // 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);
2656         public static native long ChannelAnnouncement_new(byte[] node_signature_1_arg, byte[] node_signature_2_arg, byte[] bitcoin_signature_1_arg, byte[] bitcoin_signature_2_arg, long contents_arg);
2657         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
2658         public static native long ChannelAnnouncement_clone(long orig);
2659         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
2660         public static native void UnsignedChannelUpdate_free(long this_obj);
2661         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
2662         public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
2663         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2664         public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
2665         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
2666         public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
2667         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
2668         public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
2669         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
2670         public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
2671         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
2672         public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
2673         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
2674         public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
2675         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
2676         public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
2677         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
2678         public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
2679         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
2680         public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
2681         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
2682         public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
2683         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
2684         public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
2685         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
2686         public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
2687         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
2688         public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
2689         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
2690         public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
2691         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
2692         public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
2693         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
2694         public static native long UnsignedChannelUpdate_clone(long orig);
2695         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
2696         public static native void ChannelUpdate_free(long this_obj);
2697         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
2698         public static native byte[] ChannelUpdate_get_signature(long this_ptr);
2699         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
2700         public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
2701         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
2702         public static native long ChannelUpdate_get_contents(long this_ptr);
2703         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
2704         public static native void ChannelUpdate_set_contents(long this_ptr, long val);
2705         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
2706         public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
2707         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
2708         public static native long ChannelUpdate_clone(long orig);
2709         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
2710         public static native void QueryChannelRange_free(long this_obj);
2711         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
2712         public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
2713         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2714         public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
2715         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
2716         public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
2717         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
2718         public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
2719         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
2720         public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
2721         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
2722         public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
2723         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
2724         public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
2725         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
2726         public static native long QueryChannelRange_clone(long orig);
2727         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
2728         public static native void ReplyChannelRange_free(long this_obj);
2729         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
2730         public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
2731         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2732         public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
2733         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
2734         public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
2735         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
2736         public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
2737         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
2738         public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
2739         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
2740         public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
2741         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
2742         public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
2743         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
2744         public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
2745         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
2746         public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
2747         // MUST_USE_RES struct LDKReplyChannelRange ReplyChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg, bool sync_complete_arg, struct LDKCVec_u64Z short_channel_ids_arg);
2748         public static native long ReplyChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean sync_complete_arg, long[] short_channel_ids_arg);
2749         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
2750         public static native long ReplyChannelRange_clone(long orig);
2751         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
2752         public static native void QueryShortChannelIds_free(long this_obj);
2753         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
2754         public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
2755         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2756         public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
2757         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
2758         public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
2759         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
2760         public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
2761         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
2762         public static native long QueryShortChannelIds_clone(long orig);
2763         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
2764         public static native void ReplyShortChannelIdsEnd_free(long this_obj);
2765         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
2766         public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
2767         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2768         public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
2769         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
2770         public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
2771         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
2772         public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
2773         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
2774         public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
2775         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
2776         public static native long ReplyShortChannelIdsEnd_clone(long orig);
2777         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
2778         public static native void GossipTimestampFilter_free(long this_obj);
2779         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
2780         public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
2781         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2782         public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
2783         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
2784         public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
2785         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
2786         public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
2787         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
2788         public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
2789         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
2790         public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
2791         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
2792         public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
2793         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
2794         public static native long GossipTimestampFilter_clone(long orig);
2795         // void ErrorAction_free(struct LDKErrorAction this_ptr);
2796         public static native void ErrorAction_free(long this_ptr);
2797         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
2798         public static native long ErrorAction_clone(long orig);
2799         // void LightningError_free(struct LDKLightningError this_obj);
2800         public static native void LightningError_free(long this_obj);
2801         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
2802         public static native String LightningError_get_err(long this_ptr);
2803         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
2804         public static native void LightningError_set_err(long this_ptr, byte[] val);
2805         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
2806         public static native long LightningError_get_action(long this_ptr);
2807         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
2808         public static native void LightningError_set_action(long this_ptr, long val);
2809         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKCVec_u8Z err_arg, struct LDKErrorAction action_arg);
2810         public static native long LightningError_new(byte[] err_arg, long action_arg);
2811         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
2812         public static native long LightningError_clone(long orig);
2813         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
2814         public static native void CommitmentUpdate_free(long this_obj);
2815         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
2816         public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
2817         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
2818         public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
2819         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
2820         public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
2821         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
2822         public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
2823         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
2824         public static native long CommitmentUpdate_get_update_fee(long this_ptr);
2825         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
2826         public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
2827         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
2828         public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
2829         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
2830         public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
2831         // 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);
2832         public static native long CommitmentUpdate_new(long[] update_add_htlcs_arg, long[] update_fulfill_htlcs_arg, long[] update_fail_htlcs_arg, long[] update_fail_malformed_htlcs_arg, long update_fee_arg, long commitment_signed_arg);
2833         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
2834         public static native long CommitmentUpdate_clone(long orig);
2835         // void HTLCFailChannelUpdate_free(struct LDKHTLCFailChannelUpdate this_ptr);
2836         public static native void HTLCFailChannelUpdate_free(long this_ptr);
2837         // struct LDKHTLCFailChannelUpdate HTLCFailChannelUpdate_clone(const struct LDKHTLCFailChannelUpdate *NONNULL_PTR orig);
2838         public static native long HTLCFailChannelUpdate_clone(long orig);
2839         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
2840         public static native void ChannelMessageHandler_free(long this_ptr);
2841         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
2842         public static native void RoutingMessageHandler_free(long this_ptr);
2843         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
2844         public static native byte[] AcceptChannel_write(long obj);
2845         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
2846         public static native long AcceptChannel_read(byte[] ser);
2847         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
2848         public static native byte[] AnnouncementSignatures_write(long obj);
2849         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
2850         public static native long AnnouncementSignatures_read(byte[] ser);
2851         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
2852         public static native byte[] ChannelReestablish_write(long obj);
2853         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
2854         public static native long ChannelReestablish_read(byte[] ser);
2855         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
2856         public static native byte[] ClosingSigned_write(long obj);
2857         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
2858         public static native long ClosingSigned_read(byte[] ser);
2859         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
2860         public static native byte[] CommitmentSigned_write(long obj);
2861         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
2862         public static native long CommitmentSigned_read(byte[] ser);
2863         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
2864         public static native byte[] FundingCreated_write(long obj);
2865         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
2866         public static native long FundingCreated_read(byte[] ser);
2867         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
2868         public static native byte[] FundingSigned_write(long obj);
2869         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
2870         public static native long FundingSigned_read(byte[] ser);
2871         // struct LDKCVec_u8Z FundingLocked_write(const struct LDKFundingLocked *NONNULL_PTR obj);
2872         public static native byte[] FundingLocked_write(long obj);
2873         // struct LDKCResult_FundingLockedDecodeErrorZ FundingLocked_read(struct LDKu8slice ser);
2874         public static native long FundingLocked_read(byte[] ser);
2875         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
2876         public static native byte[] Init_write(long obj);
2877         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
2878         public static native long Init_read(byte[] ser);
2879         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
2880         public static native byte[] OpenChannel_write(long obj);
2881         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
2882         public static native long OpenChannel_read(byte[] ser);
2883         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
2884         public static native byte[] RevokeAndACK_write(long obj);
2885         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
2886         public static native long RevokeAndACK_read(byte[] ser);
2887         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
2888         public static native byte[] Shutdown_write(long obj);
2889         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
2890         public static native long Shutdown_read(byte[] ser);
2891         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
2892         public static native byte[] UpdateFailHTLC_write(long obj);
2893         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
2894         public static native long UpdateFailHTLC_read(byte[] ser);
2895         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
2896         public static native byte[] UpdateFailMalformedHTLC_write(long obj);
2897         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
2898         public static native long UpdateFailMalformedHTLC_read(byte[] ser);
2899         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
2900         public static native byte[] UpdateFee_write(long obj);
2901         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
2902         public static native long UpdateFee_read(byte[] ser);
2903         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
2904         public static native byte[] UpdateFulfillHTLC_write(long obj);
2905         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
2906         public static native long UpdateFulfillHTLC_read(byte[] ser);
2907         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
2908         public static native byte[] UpdateAddHTLC_write(long obj);
2909         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
2910         public static native long UpdateAddHTLC_read(byte[] ser);
2911         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
2912         public static native byte[] Ping_write(long obj);
2913         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
2914         public static native long Ping_read(byte[] ser);
2915         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
2916         public static native byte[] Pong_write(long obj);
2917         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
2918         public static native long Pong_read(byte[] ser);
2919         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
2920         public static native byte[] UnsignedChannelAnnouncement_write(long obj);
2921         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
2922         public static native long UnsignedChannelAnnouncement_read(byte[] ser);
2923         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
2924         public static native byte[] ChannelAnnouncement_write(long obj);
2925         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
2926         public static native long ChannelAnnouncement_read(byte[] ser);
2927         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
2928         public static native byte[] UnsignedChannelUpdate_write(long obj);
2929         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
2930         public static native long UnsignedChannelUpdate_read(byte[] ser);
2931         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
2932         public static native byte[] ChannelUpdate_write(long obj);
2933         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
2934         public static native long ChannelUpdate_read(byte[] ser);
2935         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
2936         public static native byte[] ErrorMessage_write(long obj);
2937         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
2938         public static native long ErrorMessage_read(byte[] ser);
2939         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
2940         public static native byte[] UnsignedNodeAnnouncement_write(long obj);
2941         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
2942         public static native long UnsignedNodeAnnouncement_read(byte[] ser);
2943         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
2944         public static native byte[] NodeAnnouncement_write(long obj);
2945         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
2946         public static native long NodeAnnouncement_read(byte[] ser);
2947         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
2948         public static native long QueryShortChannelIds_read(byte[] ser);
2949         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
2950         public static native byte[] QueryShortChannelIds_write(long obj);
2951         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
2952         public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
2953         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
2954         public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
2955         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
2956         public static native int QueryChannelRange_end_blocknum(long this_arg);
2957         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
2958         public static native long QueryChannelRange_read(byte[] ser);
2959         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
2960         public static native byte[] QueryChannelRange_write(long obj);
2961         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
2962         public static native long ReplyChannelRange_read(byte[] ser);
2963         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
2964         public static native byte[] ReplyChannelRange_write(long obj);
2965         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
2966         public static native long GossipTimestampFilter_read(byte[] ser);
2967         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
2968         public static native byte[] GossipTimestampFilter_write(long obj);
2969         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
2970         public static native void IgnoringMessageHandler_free(long this_obj);
2971         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
2972         public static native long IgnoringMessageHandler_new();
2973         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
2974         public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
2975         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
2976         public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
2977         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
2978         public static native void ErroringMessageHandler_free(long this_obj);
2979         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
2980         public static native long ErroringMessageHandler_new();
2981         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
2982         public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
2983         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
2984         public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
2985         // void MessageHandler_free(struct LDKMessageHandler this_obj);
2986         public static native void MessageHandler_free(long this_obj);
2987         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
2988         public static native long MessageHandler_get_chan_handler(long this_ptr);
2989         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
2990         public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
2991         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
2992         public static native long MessageHandler_get_route_handler(long this_ptr);
2993         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
2994         public static native void MessageHandler_set_route_handler(long this_ptr, long val);
2995         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
2996         public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg);
2997         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
2998         public static native long SocketDescriptor_clone(long orig);
2999         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
3000         public static native void SocketDescriptor_free(long this_ptr);
3001         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
3002         public static native void PeerHandleError_free(long this_obj);
3003         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
3004         public static native boolean PeerHandleError_get_no_connection_possible(long this_ptr);
3005         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
3006         public static native void PeerHandleError_set_no_connection_possible(long this_ptr, boolean val);
3007         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
3008         public static native long PeerHandleError_new(boolean no_connection_possible_arg);
3009         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
3010         public static native long PeerHandleError_clone(long orig);
3011         // void PeerManager_free(struct LDKPeerManager this_obj);
3012         public static native void PeerManager_free(long this_obj);
3013         // 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);
3014         public static native long PeerManager_new(long message_handler, byte[] our_node_secret, byte[] ephemeral_random_data, long logger);
3015         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
3016         public static native byte[][] PeerManager_get_peer_node_ids(long this_arg);
3017         // 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);
3018         public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor);
3019         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor);
3020         public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor);
3021         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
3022         public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
3023         // 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);
3024         public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
3025         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
3026         public static native void PeerManager_process_events(long this_arg);
3027         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
3028         public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
3029         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
3030         public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id, boolean no_connection_possible);
3031         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
3032         public static native void PeerManager_timer_tick_occurred(long this_arg);
3033         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
3034         public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
3035         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
3036         public static native long derive_private_key(byte[] per_commitment_point, byte[] base_secret);
3037         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
3038         public static native long derive_public_key(byte[] per_commitment_point, byte[] base_point);
3039         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
3040         public static native long derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
3041         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
3042         public static native long derive_public_revocation_key(byte[] per_commitment_point, byte[] countersignatory_revocation_base_point);
3043         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
3044         public static native void TxCreationKeys_free(long this_obj);
3045         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3046         public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
3047         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3048         public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
3049         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3050         public static native byte[] TxCreationKeys_get_revocation_key(long this_ptr);
3051         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3052         public static native void TxCreationKeys_set_revocation_key(long this_ptr, byte[] val);
3053         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3054         public static native byte[] TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
3055         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3056         public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, byte[] val);
3057         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3058         public static native byte[] TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
3059         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3060         public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, byte[] val);
3061         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3062         public static native byte[] TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
3063         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3064         public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, byte[] val);
3065         // 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);
3066         public static native long 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);
3067         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
3068         public static native long TxCreationKeys_clone(long orig);
3069         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
3070         public static native byte[] TxCreationKeys_write(long obj);
3071         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
3072         public static native long TxCreationKeys_read(byte[] ser);
3073         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
3074         public static native void ChannelPublicKeys_free(long this_obj);
3075         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3076         public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
3077         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3078         public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
3079         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3080         public static native byte[] ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
3081         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3082         public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, byte[] val);
3083         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3084         public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
3085         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3086         public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
3087         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3088         public static native byte[] ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
3089         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3090         public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, byte[] val);
3091         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3092         public static native byte[] ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
3093         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3094         public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, byte[] val);
3095         // 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);
3096         public static native long ChannelPublicKeys_new(byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg);
3097         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
3098         public static native long ChannelPublicKeys_clone(long orig);
3099         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
3100         public static native byte[] ChannelPublicKeys_write(long obj);
3101         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
3102         public static native long ChannelPublicKeys_read(byte[] ser);
3103         // MUST_USE_RES struct LDKCResult_TxCreationKeysErrorZ 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);
3104         public static native long TxCreationKeys_derive_new(byte[] per_commitment_point, byte[] broadcaster_delayed_payment_base, byte[] broadcaster_htlc_base, byte[] countersignatory_revocation_base, byte[] countersignatory_htlc_base);
3105         // MUST_USE_RES struct LDKCResult_TxCreationKeysErrorZ TxCreationKeys_from_channel_static_keys(struct LDKPublicKey per_commitment_point, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
3106         public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
3107         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
3108         public static native byte[] get_revokeable_redeemscript(byte[] revocation_key, short contest_delay, byte[] broadcaster_delayed_payment_key);
3109         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
3110         public static native void HTLCOutputInCommitment_free(long this_obj);
3111         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
3112         public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
3113         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
3114         public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
3115         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
3116         public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
3117         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
3118         public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
3119         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
3120         public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
3121         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
3122         public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
3123         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
3124         public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
3125         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3126         public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
3127         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
3128         public static native long HTLCOutputInCommitment_clone(long orig);
3129         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
3130         public static native byte[] HTLCOutputInCommitment_write(long obj);
3131         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
3132         public static native long HTLCOutputInCommitment_read(byte[] ser);
3133         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, const struct LDKTxCreationKeys *NONNULL_PTR keys);
3134         public static native byte[] get_htlc_redeemscript(long htlc, long keys);
3135         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
3136         public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
3137         // 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);
3138         public static native byte[] build_htlc_transaction(byte[] prev_hash, int feerate_per_kw, short contest_delay, long htlc, byte[] broadcaster_delayed_payment_key, byte[] revocation_key);
3139         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
3140         public static native void ChannelTransactionParameters_free(long this_obj);
3141         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3142         public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
3143         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
3144         public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
3145         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3146         public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
3147         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
3148         public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
3149         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3150         public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
3151         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
3152         public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
3153         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3154         public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
3155         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
3156         public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
3157         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3158         public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
3159         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
3160         public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
3161         // 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);
3162         public static native long ChannelTransactionParameters_new(long holder_pubkeys_arg, short holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, long counterparty_parameters_arg, long funding_outpoint_arg);
3163         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
3164         public static native long ChannelTransactionParameters_clone(long orig);
3165         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
3166         public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
3167         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
3168         public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
3169         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
3170         public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
3171         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
3172         public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
3173         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
3174         public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
3175         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
3176         public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
3177         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
3178         public static native long CounterpartyChannelTransactionParameters_clone(long orig);
3179         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
3180         public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
3181         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
3182         public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
3183         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
3184         public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
3185         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
3186         public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
3187         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
3188         public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
3189         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
3190         public static native byte[] ChannelTransactionParameters_write(long obj);
3191         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
3192         public static native long ChannelTransactionParameters_read(byte[] ser);
3193         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
3194         public static native void DirectedChannelTransactionParameters_free(long this_obj);
3195         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3196         public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
3197         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3198         public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
3199         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3200         public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
3201         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3202         public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
3203         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3204         public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
3205         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
3206         public static native void HolderCommitmentTransaction_free(long this_obj);
3207         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
3208         public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
3209         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
3210         public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
3211         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
3212         public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
3213         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
3214         public static native long HolderCommitmentTransaction_clone(long orig);
3215         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
3216         public static native byte[] HolderCommitmentTransaction_write(long obj);
3217         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
3218         public static native long HolderCommitmentTransaction_read(byte[] ser);
3219         // 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);
3220         public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
3221         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
3222         public static native void BuiltCommitmentTransaction_free(long this_obj);
3223         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
3224         public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
3225         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
3226         public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
3227         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
3228         public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
3229         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3230         public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
3231         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
3232         public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
3233         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
3234         public static native long BuiltCommitmentTransaction_clone(long orig);
3235         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
3236         public static native byte[] BuiltCommitmentTransaction_write(long obj);
3237         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
3238         public static native long BuiltCommitmentTransaction_read(byte[] ser);
3239         // 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);
3240         public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
3241         // 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);
3242         public static native byte[] BuiltCommitmentTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
3243         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
3244         public static native void CommitmentTransaction_free(long this_obj);
3245         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
3246         public static native long CommitmentTransaction_clone(long orig);
3247         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
3248         public static native byte[] CommitmentTransaction_write(long obj);
3249         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
3250         public static native long CommitmentTransaction_read(byte[] ser);
3251         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3252         public static native long CommitmentTransaction_commitment_number(long this_arg);
3253         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3254         public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
3255         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3256         public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
3257         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3258         public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
3259         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3260         public static native long CommitmentTransaction_trust(long this_arg);
3261         // 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);
3262         public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
3263         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
3264         public static native void TrustedCommitmentTransaction_free(long this_obj);
3265         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
3266         public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
3267         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
3268         public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
3269         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
3270         public static native long TrustedCommitmentTransaction_keys(long this_arg);
3271         // 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);
3272         public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters);
3273         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
3274         public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
3275         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
3276         public static native long InitFeatures_clone(long orig);
3277         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
3278         public static native long NodeFeatures_clone(long orig);
3279         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
3280         public static native long ChannelFeatures_clone(long orig);
3281         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
3282         public static native long InvoiceFeatures_clone(long orig);
3283         // void InitFeatures_free(struct LDKInitFeatures this_obj);
3284         public static native void InitFeatures_free(long this_obj);
3285         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
3286         public static native void NodeFeatures_free(long this_obj);
3287         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
3288         public static native void ChannelFeatures_free(long this_obj);
3289         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
3290         public static native void InvoiceFeatures_free(long this_obj);
3291         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
3292         public static native long InitFeatures_empty();
3293         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
3294         public static native long InitFeatures_known();
3295         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
3296         public static native long NodeFeatures_empty();
3297         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
3298         public static native long NodeFeatures_known();
3299         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
3300         public static native long ChannelFeatures_empty();
3301         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
3302         public static native long ChannelFeatures_known();
3303         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
3304         public static native long InvoiceFeatures_empty();
3305         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
3306         public static native long InvoiceFeatures_known();
3307         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
3308         public static native byte[] InitFeatures_write(long obj);
3309         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
3310         public static native byte[] NodeFeatures_write(long obj);
3311         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
3312         public static native byte[] ChannelFeatures_write(long obj);
3313         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
3314         public static native byte[] InvoiceFeatures_write(long obj);
3315         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
3316         public static native long InitFeatures_read(byte[] ser);
3317         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
3318         public static native long NodeFeatures_read(byte[] ser);
3319         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
3320         public static native long ChannelFeatures_read(byte[] ser);
3321         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
3322         public static native long InvoiceFeatures_read(byte[] ser);
3323         // void RouteHop_free(struct LDKRouteHop this_obj);
3324         public static native void RouteHop_free(long this_obj);
3325         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3326         public static native byte[] RouteHop_get_pubkey(long this_ptr);
3327         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3328         public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
3329         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3330         public static native long RouteHop_get_node_features(long this_ptr);
3331         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
3332         public static native void RouteHop_set_node_features(long this_ptr, long val);
3333         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3334         public static native long RouteHop_get_short_channel_id(long this_ptr);
3335         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
3336         public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
3337         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3338         public static native long RouteHop_get_channel_features(long this_ptr);
3339         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
3340         public static native void RouteHop_set_channel_features(long this_ptr, long val);
3341         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3342         public static native long RouteHop_get_fee_msat(long this_ptr);
3343         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
3344         public static native void RouteHop_set_fee_msat(long this_ptr, long val);
3345         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3346         public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
3347         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
3348         public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
3349         // 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);
3350         public static native long RouteHop_new(byte[] pubkey_arg, long node_features_arg, long short_channel_id_arg, long channel_features_arg, long fee_msat_arg, int cltv_expiry_delta_arg);
3351         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
3352         public static native long RouteHop_clone(long orig);
3353         // void Route_free(struct LDKRoute this_obj);
3354         public static native void Route_free(long this_obj);
3355         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
3356         public static native void Route_set_paths(long this_ptr, long[][] val);
3357         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg);
3358         public static native long Route_new(long[][] paths_arg);
3359         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
3360         public static native long Route_clone(long orig);
3361         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
3362         public static native byte[] Route_write(long obj);
3363         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
3364         public static native long Route_read(byte[] ser);
3365         // void RouteHint_free(struct LDKRouteHint this_obj);
3366         public static native void RouteHint_free(long this_obj);
3367         // struct LDKPublicKey RouteHint_get_src_node_id(const struct LDKRouteHint *NONNULL_PTR this_ptr);
3368         public static native byte[] RouteHint_get_src_node_id(long this_ptr);
3369         // void RouteHint_set_src_node_id(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3370         public static native void RouteHint_set_src_node_id(long this_ptr, byte[] val);
3371         // uint64_t RouteHint_get_short_channel_id(const struct LDKRouteHint *NONNULL_PTR this_ptr);
3372         public static native long RouteHint_get_short_channel_id(long this_ptr);
3373         // void RouteHint_set_short_channel_id(struct LDKRouteHint *NONNULL_PTR this_ptr, uint64_t val);
3374         public static native void RouteHint_set_short_channel_id(long this_ptr, long val);
3375         // struct LDKRoutingFees RouteHint_get_fees(const struct LDKRouteHint *NONNULL_PTR this_ptr);
3376         public static native long RouteHint_get_fees(long this_ptr);
3377         // void RouteHint_set_fees(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
3378         public static native void RouteHint_set_fees(long this_ptr, long val);
3379         // uint16_t RouteHint_get_cltv_expiry_delta(const struct LDKRouteHint *NONNULL_PTR this_ptr);
3380         public static native short RouteHint_get_cltv_expiry_delta(long this_ptr);
3381         // void RouteHint_set_cltv_expiry_delta(struct LDKRouteHint *NONNULL_PTR this_ptr, uint16_t val);
3382         public static native void RouteHint_set_cltv_expiry_delta(long this_ptr, short val);
3383         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
3384         public static native long RouteHint_clone(long orig);
3385         // struct LDKCResult_RouteLightningErrorZ get_route(struct LDKPublicKey our_node_id, const struct LDKNetworkGraph *NONNULL_PTR network, struct LDKPublicKey payee, struct LDKInvoiceFeatures payee_features, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKCVec_RouteHintZ last_hops, uint64_t final_value_msat, uint32_t final_cltv, struct LDKLogger logger);
3386         public static native long get_route(byte[] our_node_id, long network, byte[] payee, long payee_features, long[] first_hops, long[] last_hops, long final_value_msat, int final_cltv, long logger);
3387         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
3388         public static native void NetworkGraph_free(long this_obj);
3389         // struct LDKNetworkGraph NetworkGraph_clone(const struct LDKNetworkGraph *NONNULL_PTR orig);
3390         public static native long NetworkGraph_clone(long orig);
3391         // void LockedNetworkGraph_free(struct LDKLockedNetworkGraph this_obj);
3392         public static native void LockedNetworkGraph_free(long this_obj);
3393         // void NetGraphMsgHandler_free(struct LDKNetGraphMsgHandler this_obj);
3394         public static native void NetGraphMsgHandler_free(long this_obj);
3395         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKAccess *chain_access, struct LDKLogger logger);
3396         public static native long NetGraphMsgHandler_new(byte[] genesis_hash, long chain_access, long logger);
3397         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_from_net_graph(struct LDKAccess *chain_access, struct LDKLogger logger, struct LDKNetworkGraph network_graph);
3398         public static native long NetGraphMsgHandler_from_net_graph(long chain_access, long logger, long network_graph);
3399         // void NetGraphMsgHandler_add_chain_access(struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg, struct LDKAccess *chain_access);
3400         public static native void NetGraphMsgHandler_add_chain_access(long this_arg, long chain_access);
3401         // MUST_USE_RES struct LDKLockedNetworkGraph NetGraphMsgHandler_read_locked_graph(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
3402         public static native long NetGraphMsgHandler_read_locked_graph(long this_arg);
3403         // MUST_USE_RES struct LDKNetworkGraph LockedNetworkGraph_graph(const struct LDKLockedNetworkGraph *NONNULL_PTR this_arg);
3404         public static native long LockedNetworkGraph_graph(long this_arg);
3405         // struct LDKRoutingMessageHandler NetGraphMsgHandler_as_RoutingMessageHandler(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
3406         public static native long NetGraphMsgHandler_as_RoutingMessageHandler(long this_arg);
3407         // struct LDKMessageSendEventsProvider NetGraphMsgHandler_as_MessageSendEventsProvider(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
3408         public static native long NetGraphMsgHandler_as_MessageSendEventsProvider(long this_arg);
3409         // void DirectionalChannelInfo_free(struct LDKDirectionalChannelInfo this_obj);
3410         public static native void DirectionalChannelInfo_free(long this_obj);
3411         // uint32_t DirectionalChannelInfo_get_last_update(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3412         public static native int DirectionalChannelInfo_get_last_update(long this_ptr);
3413         // void DirectionalChannelInfo_set_last_update(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint32_t val);
3414         public static native void DirectionalChannelInfo_set_last_update(long this_ptr, int val);
3415         // bool DirectionalChannelInfo_get_enabled(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3416         public static native boolean DirectionalChannelInfo_get_enabled(long this_ptr);
3417         // void DirectionalChannelInfo_set_enabled(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, bool val);
3418         public static native void DirectionalChannelInfo_set_enabled(long this_ptr, boolean val);
3419         // uint16_t DirectionalChannelInfo_get_cltv_expiry_delta(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3420         public static native short DirectionalChannelInfo_get_cltv_expiry_delta(long this_ptr);
3421         // void DirectionalChannelInfo_set_cltv_expiry_delta(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint16_t val);
3422         public static native void DirectionalChannelInfo_set_cltv_expiry_delta(long this_ptr, short val);
3423         // uint64_t DirectionalChannelInfo_get_htlc_minimum_msat(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3424         public static native long DirectionalChannelInfo_get_htlc_minimum_msat(long this_ptr);
3425         // void DirectionalChannelInfo_set_htlc_minimum_msat(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint64_t val);
3426         public static native void DirectionalChannelInfo_set_htlc_minimum_msat(long this_ptr, long val);
3427         // struct LDKRoutingFees DirectionalChannelInfo_get_fees(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3428         public static native long DirectionalChannelInfo_get_fees(long this_ptr);
3429         // void DirectionalChannelInfo_set_fees(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
3430         public static native void DirectionalChannelInfo_set_fees(long this_ptr, long val);
3431         // struct LDKChannelUpdate DirectionalChannelInfo_get_last_update_message(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3432         public static native long DirectionalChannelInfo_get_last_update_message(long this_ptr);
3433         // void DirectionalChannelInfo_set_last_update_message(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
3434         public static native void DirectionalChannelInfo_set_last_update_message(long this_ptr, long val);
3435         // struct LDKDirectionalChannelInfo DirectionalChannelInfo_clone(const struct LDKDirectionalChannelInfo *NONNULL_PTR orig);
3436         public static native long DirectionalChannelInfo_clone(long orig);
3437         // struct LDKCVec_u8Z DirectionalChannelInfo_write(const struct LDKDirectionalChannelInfo *NONNULL_PTR obj);
3438         public static native byte[] DirectionalChannelInfo_write(long obj);
3439         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ DirectionalChannelInfo_read(struct LDKu8slice ser);
3440         public static native long DirectionalChannelInfo_read(byte[] ser);
3441         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
3442         public static native void ChannelInfo_free(long this_obj);
3443         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3444         public static native long ChannelInfo_get_features(long this_ptr);
3445         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
3446         public static native void ChannelInfo_set_features(long this_ptr, long val);
3447         // struct LDKPublicKey ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3448         public static native byte[] ChannelInfo_get_node_one(long this_ptr);
3449         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3450         public static native void ChannelInfo_set_node_one(long this_ptr, byte[] val);
3451         // struct LDKDirectionalChannelInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3452         public static native long ChannelInfo_get_one_to_two(long this_ptr);
3453         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKDirectionalChannelInfo val);
3454         public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
3455         // struct LDKPublicKey ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3456         public static native byte[] ChannelInfo_get_node_two(long this_ptr);
3457         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3458         public static native void ChannelInfo_set_node_two(long this_ptr, byte[] val);
3459         // struct LDKDirectionalChannelInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3460         public static native long ChannelInfo_get_two_to_one(long this_ptr);
3461         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKDirectionalChannelInfo val);
3462         public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
3463         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3464         public static native long ChannelInfo_get_announcement_message(long this_ptr);
3465         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
3466         public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
3467         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
3468         public static native long ChannelInfo_clone(long orig);
3469         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
3470         public static native byte[] ChannelInfo_write(long obj);
3471         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
3472         public static native long ChannelInfo_read(byte[] ser);
3473         // void RoutingFees_free(struct LDKRoutingFees this_obj);
3474         public static native void RoutingFees_free(long this_obj);
3475         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
3476         public static native int RoutingFees_get_base_msat(long this_ptr);
3477         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
3478         public static native void RoutingFees_set_base_msat(long this_ptr, int val);
3479         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
3480         public static native int RoutingFees_get_proportional_millionths(long this_ptr);
3481         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
3482         public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
3483         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
3484         public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
3485         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
3486         public static native long RoutingFees_clone(long orig);
3487         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
3488         public static native long RoutingFees_read(byte[] ser);
3489         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
3490         public static native byte[] RoutingFees_write(long obj);
3491         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
3492         public static native void NodeAnnouncementInfo_free(long this_obj);
3493         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
3494         public static native long NodeAnnouncementInfo_get_features(long this_ptr);
3495         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
3496         public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
3497         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
3498         public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
3499         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
3500         public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
3501         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
3502         public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
3503         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
3504         public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
3505         // const uint8_t (*NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[32];
3506         public static native byte[] NodeAnnouncementInfo_get_alias(long this_ptr);
3507         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3508         public static native void NodeAnnouncementInfo_set_alias(long this_ptr, byte[] val);
3509         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
3510         public static native void NodeAnnouncementInfo_set_addresses(long this_ptr, long[] val);
3511         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
3512         public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
3513         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
3514         public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
3515         // 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);
3516         public static native long NodeAnnouncementInfo_new(long features_arg, int last_update_arg, byte[] rgb_arg, byte[] alias_arg, long[] addresses_arg, long announcement_message_arg);
3517         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
3518         public static native long NodeAnnouncementInfo_clone(long orig);
3519         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
3520         public static native byte[] NodeAnnouncementInfo_write(long obj);
3521         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
3522         public static native long NodeAnnouncementInfo_read(byte[] ser);
3523         // void NodeInfo_free(struct LDKNodeInfo this_obj);
3524         public static native void NodeInfo_free(long this_obj);
3525         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
3526         public static native void NodeInfo_set_channels(long this_ptr, long[] val);
3527         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
3528         public static native long NodeInfo_get_lowest_inbound_channel_fees(long this_ptr);
3529         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
3530         public static native void NodeInfo_set_lowest_inbound_channel_fees(long this_ptr, long val);
3531         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
3532         public static native long NodeInfo_get_announcement_info(long this_ptr);
3533         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
3534         public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
3535         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
3536         public static native long NodeInfo_new(long[] channels_arg, long lowest_inbound_channel_fees_arg, long announcement_info_arg);
3537         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
3538         public static native long NodeInfo_clone(long orig);
3539         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
3540         public static native byte[] NodeInfo_write(long obj);
3541         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
3542         public static native long NodeInfo_read(byte[] ser);
3543         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
3544         public static native byte[] NetworkGraph_write(long obj);
3545         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser);
3546         public static native long NetworkGraph_read(byte[] ser);
3547         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash);
3548         public static native long NetworkGraph_new(byte[] genesis_hash);
3549         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
3550         public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
3551         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg);
3552         public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
3553         // 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);
3554         public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long chain_access);
3555         // 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);
3556         public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long chain_access);
3557         // void NetworkGraph_close_channel_from_update(struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
3558         public static native void NetworkGraph_close_channel_from_update(long this_arg, long short_channel_id, boolean is_permanent);
3559         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
3560         public static native long NetworkGraph_update_channel(long this_arg, long msg);
3561         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
3562         public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
3563 }