Update auto-generated bindings with missed files and v0.0.98 tags
[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                 if (!get_lib_version_string().equals(get_ldk_java_bindings_version()))
18                         throw new IllegalArgumentException("Compiled LDK library and LDK class failes do not match");
19                 // Fetching the LDK versions from C also checks that the header and binaries match
20                 get_ldk_c_bindings_version();
21                 get_ldk_version();
22         }
23         static native void init(java.lang.Class c, java.lang.Class slicedef);
24         static native void init_class_cache();
25         static native String get_lib_version_string();
26
27         public static String get_ldk_java_bindings_version() {
28                 return "v0.0.98";
29         }
30         public static native String get_ldk_c_bindings_version();
31         public static native String get_ldk_version();
32
33         public static native boolean deref_bool(long ptr);
34         public static native long deref_long(long ptr);
35         public static native void free_heap_ptr(long ptr);
36         public static native byte[] read_bytes(long ptr, long len);
37         public static native byte[] get_u8_slice_bytes(long slice_ptr);
38         public static native long bytes_to_u8_vec(byte[] bytes);
39         public static native long new_txpointer_copy_data(byte[] txdata);
40         public static native void txpointer_free(long ptr);
41         public static native byte[] txpointer_get_buffer(long ptr);
42         public static native long vec_slice_len(long vec);
43         public static native long new_empty_slice_vec();
44
45         static { AccessError.values(); /* Force enum statics to run */ }
46         static { ChannelMonitorUpdateErr.values(); /* Force enum statics to run */ }
47         static { ConfirmationTarget.values(); /* Force enum statics to run */ }
48         static { CreationError.values(); /* Force enum statics to run */ }
49         static { Currency.values(); /* Force enum statics to run */ }
50         static { IOError.values(); /* Force enum statics to run */ }
51         static { Level.values(); /* Force enum statics to run */ }
52         static { Network.values(); /* Force enum statics to run */ }
53         static { Secp256k1Error.values(); /* Force enum statics to run */ }
54         static { SemanticError.values(); /* Force enum statics to run */ }
55         static { SiPrefix.values(); /* Force enum statics to run */ }
56         public static native long LDKCVec_u8Z_new(byte[] elems);
57         public static native boolean LDKCResult_SecretKeyErrorZ_result_ok(long arg);
58         public static native byte[] LDKCResult_SecretKeyErrorZ_get_ok(long arg);
59         public static native Secp256k1Error LDKCResult_SecretKeyErrorZ_get_err(long arg);
60         public static native boolean LDKCResult_PublicKeyErrorZ_result_ok(long arg);
61         public static native byte[] LDKCResult_PublicKeyErrorZ_get_ok(long arg);
62         public static native Secp256k1Error LDKCResult_PublicKeyErrorZ_get_err(long arg);
63         public static native boolean LDKCResult_TxCreationKeysDecodeErrorZ_result_ok(long arg);
64         public static native long LDKCResult_TxCreationKeysDecodeErrorZ_get_ok(long arg);
65         public static native long LDKCResult_TxCreationKeysDecodeErrorZ_get_err(long arg);
66         public static native boolean LDKCResult_ChannelPublicKeysDecodeErrorZ_result_ok(long arg);
67         public static native long LDKCResult_ChannelPublicKeysDecodeErrorZ_get_ok(long arg);
68         public static native long LDKCResult_ChannelPublicKeysDecodeErrorZ_get_err(long arg);
69         public static native boolean LDKCResult_TxCreationKeysErrorZ_result_ok(long arg);
70         public static native long LDKCResult_TxCreationKeysErrorZ_get_ok(long arg);
71         public static native Secp256k1Error LDKCResult_TxCreationKeysErrorZ_get_err(long arg);
72         public static class LDKCOption_u32Z {
73                 private LDKCOption_u32Z() {}
74                 public final static class Some extends LDKCOption_u32Z {
75                         public int some;
76                         Some(int some) { this.some = some; }
77                 }
78                 public final static class None extends LDKCOption_u32Z {
79                         None() { }
80                 }
81                 static native void init();
82         }
83         static { LDKCOption_u32Z.init(); }
84         public static native LDKCOption_u32Z LDKCOption_u32Z_ref_from_ptr(long ptr);
85         public static native boolean LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_result_ok(long arg);
86         public static native long LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long arg);
87         public static native long LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long arg);
88         public static native boolean LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ_result_ok(long arg);
89         public static native long LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long arg);
90         public static native long LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long arg);
91         public static native boolean LDKCResult_ChannelTransactionParametersDecodeErrorZ_result_ok(long arg);
92         public static native long LDKCResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long arg);
93         public static native long LDKCResult_ChannelTransactionParametersDecodeErrorZ_get_err(long arg);
94         public static native boolean LDKCResult_HolderCommitmentTransactionDecodeErrorZ_result_ok(long arg);
95         public static native long LDKCResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long arg);
96         public static native long LDKCResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long arg);
97         public static native boolean LDKCResult_BuiltCommitmentTransactionDecodeErrorZ_result_ok(long arg);
98         public static native long LDKCResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long arg);
99         public static native long LDKCResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long arg);
100         public static native boolean LDKCResult_CommitmentTransactionDecodeErrorZ_result_ok(long arg);
101         public static native long LDKCResult_CommitmentTransactionDecodeErrorZ_get_ok(long arg);
102         public static native long LDKCResult_CommitmentTransactionDecodeErrorZ_get_err(long arg);
103         public static native boolean LDKCResult_TrustedCommitmentTransactionNoneZ_result_ok(long arg);
104         public static native long LDKCResult_TrustedCommitmentTransactionNoneZ_get_ok(long arg);
105         public static native void LDKCResult_TrustedCommitmentTransactionNoneZ_get_err(long arg);
106         public static native boolean LDKCResult_CVec_SignatureZNoneZ_result_ok(long arg);
107         public static native byte[][] LDKCResult_CVec_SignatureZNoneZ_get_ok(long arg);
108         public static native void LDKCResult_CVec_SignatureZNoneZ_get_err(long arg);
109         public static native boolean LDKCResult_NoneErrorZ_result_ok(long arg);
110         public static native void LDKCResult_NoneErrorZ_get_ok(long arg);
111         public static native IOError LDKCResult_NoneErrorZ_get_err(long arg);
112         public static native boolean LDKCResult_RouteHopDecodeErrorZ_result_ok(long arg);
113         public static native long LDKCResult_RouteHopDecodeErrorZ_get_ok(long arg);
114         public static native long LDKCResult_RouteHopDecodeErrorZ_get_err(long arg);
115         public static native long LDKCVec_RouteHopZ_new(long[] elems);
116         public static native boolean LDKCResult_RouteDecodeErrorZ_result_ok(long arg);
117         public static native long LDKCResult_RouteDecodeErrorZ_get_ok(long arg);
118         public static native long LDKCResult_RouteDecodeErrorZ_get_err(long arg);
119         public static class LDKCOption_u64Z {
120                 private LDKCOption_u64Z() {}
121                 public final static class Some extends LDKCOption_u64Z {
122                         public long some;
123                         Some(long some) { this.some = some; }
124                 }
125                 public final static class None extends LDKCOption_u64Z {
126                         None() { }
127                 }
128                 static native void init();
129         }
130         static { LDKCOption_u64Z.init(); }
131         public static native LDKCOption_u64Z LDKCOption_u64Z_ref_from_ptr(long ptr);
132         public static native long LDKCVec_ChannelDetailsZ_new(long[] elems);
133         public static native long LDKCVec_RouteHintZ_new(long[] elems);
134         public static native boolean LDKCResult_RouteLightningErrorZ_result_ok(long arg);
135         public static native long LDKCResult_RouteLightningErrorZ_get_ok(long arg);
136         public static native long LDKCResult_RouteLightningErrorZ_get_err(long arg);
137         public static native boolean LDKCResult_TxOutAccessErrorZ_result_ok(long arg);
138         public static native long LDKCResult_TxOutAccessErrorZ_get_ok(long arg);
139         public static native AccessError LDKCResult_TxOutAccessErrorZ_get_err(long arg);
140         public static native long LDKC2Tuple_usizeTransactionZ_new(long a, byte[] b);
141         public static native long LDKC2Tuple_usizeTransactionZ_get_a(long ptr);
142         public static native byte[] LDKC2Tuple_usizeTransactionZ_get_b(long ptr);
143         public static native long LDKCVec_C2Tuple_usizeTransactionZZ_new(long[] elems);
144         public static native boolean LDKCResult_NoneChannelMonitorUpdateErrZ_result_ok(long arg);
145         public static native void LDKCResult_NoneChannelMonitorUpdateErrZ_get_ok(long arg);
146         public static native ChannelMonitorUpdateErr LDKCResult_NoneChannelMonitorUpdateErrZ_get_err(long arg);
147         public static class LDKMonitorEvent {
148                 private LDKMonitorEvent() {}
149                 public final static class HTLCEvent extends LDKMonitorEvent {
150                         public long htlc_event;
151                         HTLCEvent(long htlc_event) { this.htlc_event = htlc_event; }
152                 }
153                 public final static class CommitmentTxBroadcasted extends LDKMonitorEvent {
154                         public long commitment_tx_broadcasted;
155                         CommitmentTxBroadcasted(long commitment_tx_broadcasted) { this.commitment_tx_broadcasted = commitment_tx_broadcasted; }
156                 }
157                 static native void init();
158         }
159         static { LDKMonitorEvent.init(); }
160         public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
161         public static native long LDKCVec_MonitorEventZ_new(long[] elems);
162         public static class LDKCOption_C2Tuple_usizeTransactionZZ {
163                 private LDKCOption_C2Tuple_usizeTransactionZZ() {}
164                 public final static class Some extends LDKCOption_C2Tuple_usizeTransactionZZ {
165                         public long some;
166                         Some(long some) { this.some = some; }
167                 }
168                 public final static class None extends LDKCOption_C2Tuple_usizeTransactionZZ {
169                         None() { }
170                 }
171                 static native void init();
172         }
173         static { LDKCOption_C2Tuple_usizeTransactionZZ.init(); }
174         public static native LDKCOption_C2Tuple_usizeTransactionZZ LDKCOption_C2Tuple_usizeTransactionZZ_ref_from_ptr(long ptr);
175         public static class LDKSpendableOutputDescriptor {
176                 private LDKSpendableOutputDescriptor() {}
177                 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
178                         public long outpoint;
179                         public long output;
180                         StaticOutput(long outpoint, long output) { this.outpoint = outpoint; this.output = output; }
181                 }
182                 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
183                         public long delayed_payment_output;
184                         DelayedPaymentOutput(long delayed_payment_output) { this.delayed_payment_output = delayed_payment_output; }
185                 }
186                 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
187                         public long static_payment_output;
188                         StaticPaymentOutput(long static_payment_output) { this.static_payment_output = static_payment_output; }
189                 }
190                 static native void init();
191         }
192         static { LDKSpendableOutputDescriptor.init(); }
193         public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
194         public static native long LDKCVec_SpendableOutputDescriptorZ_new(long[] elems);
195         public static class LDKErrorAction {
196                 private LDKErrorAction() {}
197                 public final static class DisconnectPeer extends LDKErrorAction {
198                         public long msg;
199                         DisconnectPeer(long msg) { this.msg = msg; }
200                 }
201                 public final static class IgnoreError extends LDKErrorAction {
202                         IgnoreError() { }
203                 }
204                 public final static class SendErrorMessage extends LDKErrorAction {
205                         public long msg;
206                         SendErrorMessage(long msg) { this.msg = msg; }
207                 }
208                 static native void init();
209         }
210         static { LDKErrorAction.init(); }
211         public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
212         public static class LDKHTLCFailChannelUpdate {
213                 private LDKHTLCFailChannelUpdate() {}
214                 public final static class ChannelUpdateMessage extends LDKHTLCFailChannelUpdate {
215                         public long msg;
216                         ChannelUpdateMessage(long msg) { this.msg = msg; }
217                 }
218                 public final static class ChannelClosed extends LDKHTLCFailChannelUpdate {
219                         public long short_channel_id;
220                         public boolean is_permanent;
221                         ChannelClosed(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
222                 }
223                 public final static class NodeFailure extends LDKHTLCFailChannelUpdate {
224                         public byte[] node_id;
225                         public boolean is_permanent;
226                         NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
227                 }
228                 static native void init();
229         }
230         static { LDKHTLCFailChannelUpdate.init(); }
231         public static native LDKHTLCFailChannelUpdate LDKHTLCFailChannelUpdate_ref_from_ptr(long ptr);
232         public static class LDKMessageSendEvent {
233                 private LDKMessageSendEvent() {}
234                 public final static class SendAcceptChannel extends LDKMessageSendEvent {
235                         public byte[] node_id;
236                         public long msg;
237                         SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
238                 }
239                 public final static class SendOpenChannel extends LDKMessageSendEvent {
240                         public byte[] node_id;
241                         public long msg;
242                         SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
243                 }
244                 public final static class SendFundingCreated extends LDKMessageSendEvent {
245                         public byte[] node_id;
246                         public long msg;
247                         SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
248                 }
249                 public final static class SendFundingSigned extends LDKMessageSendEvent {
250                         public byte[] node_id;
251                         public long msg;
252                         SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
253                 }
254                 public final static class SendFundingLocked extends LDKMessageSendEvent {
255                         public byte[] node_id;
256                         public long msg;
257                         SendFundingLocked(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
258                 }
259                 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
260                         public byte[] node_id;
261                         public long msg;
262                         SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
263                 }
264                 public final static class UpdateHTLCs extends LDKMessageSendEvent {
265                         public byte[] node_id;
266                         public long updates;
267                         UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
268                 }
269                 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
270                         public byte[] node_id;
271                         public long msg;
272                         SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
273                 }
274                 public final static class SendClosingSigned extends LDKMessageSendEvent {
275                         public byte[] node_id;
276                         public long msg;
277                         SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
278                 }
279                 public final static class SendShutdown extends LDKMessageSendEvent {
280                         public byte[] node_id;
281                         public long msg;
282                         SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
283                 }
284                 public final static class SendChannelReestablish extends LDKMessageSendEvent {
285                         public byte[] node_id;
286                         public long msg;
287                         SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
288                 }
289                 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
290                         public long msg;
291                         public long update_msg;
292                         BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
293                 }
294                 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
295                         public long msg;
296                         BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
297                 }
298                 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
299                         public long msg;
300                         BroadcastChannelUpdate(long msg) { this.msg = msg; }
301                 }
302                 public final static class HandleError extends LDKMessageSendEvent {
303                         public byte[] node_id;
304                         public long action;
305                         HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
306                 }
307                 public final static class PaymentFailureNetworkUpdate extends LDKMessageSendEvent {
308                         public long update;
309                         PaymentFailureNetworkUpdate(long update) { this.update = update; }
310                 }
311                 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
312                         public byte[] node_id;
313                         public long msg;
314                         SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
315                 }
316                 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
317                         public byte[] node_id;
318                         public long msg;
319                         SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
320                 }
321                 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
322                         public byte[] node_id;
323                         public long msg;
324                         SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
325                 }
326                 static native void init();
327         }
328         static { LDKMessageSendEvent.init(); }
329         public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
330         public static native long LDKCVec_MessageSendEventZ_new(long[] elems);
331         public static native boolean LDKCResult_InitFeaturesDecodeErrorZ_result_ok(long arg);
332         public static native long LDKCResult_InitFeaturesDecodeErrorZ_get_ok(long arg);
333         public static native long LDKCResult_InitFeaturesDecodeErrorZ_get_err(long arg);
334         public static native boolean LDKCResult_NodeFeaturesDecodeErrorZ_result_ok(long arg);
335         public static native long LDKCResult_NodeFeaturesDecodeErrorZ_get_ok(long arg);
336         public static native long LDKCResult_NodeFeaturesDecodeErrorZ_get_err(long arg);
337         public static native boolean LDKCResult_ChannelFeaturesDecodeErrorZ_result_ok(long arg);
338         public static native long LDKCResult_ChannelFeaturesDecodeErrorZ_get_ok(long arg);
339         public static native long LDKCResult_ChannelFeaturesDecodeErrorZ_get_err(long arg);
340         public static native boolean LDKCResult_InvoiceFeaturesDecodeErrorZ_result_ok(long arg);
341         public static native long LDKCResult_InvoiceFeaturesDecodeErrorZ_get_ok(long arg);
342         public static native long LDKCResult_InvoiceFeaturesDecodeErrorZ_get_err(long arg);
343         public static native boolean LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ_result_ok(long arg);
344         public static native long LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long arg);
345         public static native long LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long arg);
346         public static native boolean LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ_result_ok(long arg);
347         public static native long LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long arg);
348         public static native long LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long arg);
349         public static native boolean LDKCResult_SpendableOutputDescriptorDecodeErrorZ_result_ok(long arg);
350         public static native long LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long arg);
351         public static native long LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long arg);
352         public static native long LDKC2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
353         public static native byte[] LDKC2Tuple_SignatureCVec_SignatureZZ_get_a(long ptr);
354         public static native byte[][] LDKC2Tuple_SignatureCVec_SignatureZZ_get_b(long ptr);
355         public static native boolean LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_result_ok(long arg);
356         public static native long LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(long arg);
357         public static native void LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(long arg);
358         public static native boolean LDKCResult_SignatureNoneZ_result_ok(long arg);
359         public static native byte[] LDKCResult_SignatureNoneZ_get_ok(long arg);
360         public static native void LDKCResult_SignatureNoneZ_get_err(long arg);
361         public interface LDKBaseSign {
362                  byte[] get_per_commitment_point(long idx);
363                  byte[] release_commitment_secret(long idx);
364                  byte[] channel_keys_id();
365                  long sign_counterparty_commitment(long commitment_tx);
366                  long sign_holder_commitment_and_htlcs(long commitment_tx);
367                  long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
368                  long sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
369                  long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
370                  long sign_closing_transaction(byte[] closing_tx);
371                  long sign_channel_announcement(long msg);
372                  void ready_channel(long channel_parameters);
373         }
374         public static native long LDKBaseSign_new(LDKBaseSign impl, long pubkeys);
375         // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
376         public static native byte[] BaseSign_get_per_commitment_point(long this_arg, long idx);
377         // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
378         public static native byte[] BaseSign_release_commitment_secret(long this_arg, long idx);
379         // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
380         public static native byte[] BaseSign_channel_keys_id(long this_arg);
381         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx
382         public static native long BaseSign_sign_counterparty_commitment(long this_arg, long commitment_tx);
383         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
384         public static native long BaseSign_sign_holder_commitment_and_htlcs(long this_arg, long commitment_tx);
385         // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_output LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
386         public static native long BaseSign_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
387         // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_htlc LDKBaseSign *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
388         public static native long BaseSign_sign_justice_revoked_htlc(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
389         // LDKCResult_SignatureNoneZ BaseSign_sign_counterparty_htlc_transaction LDKBaseSign *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
390         public static native long BaseSign_sign_counterparty_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
391         // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction closing_tx
392         public static native long BaseSign_sign_closing_transaction(long this_arg, byte[] closing_tx);
393         // LDKCResult_SignatureNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
394         public static native long BaseSign_sign_channel_announcement(long this_arg, long msg);
395         // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
396         public static native void BaseSign_ready_channel(long this_arg, long channel_parameters);
397         // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
398         public static native long BaseSign_get_pubkeys(long this_arg);
399         public interface LDKSign {
400                  byte[] write();
401         }
402         public static native long LDKSign_new(LDKSign impl, LDKBaseSign BaseSign, long pubkeys);
403         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
404         public static native byte[] Sign_write(long this_arg);
405         public static native boolean LDKCResult_SignDecodeErrorZ_result_ok(long arg);
406         public static native long LDKCResult_SignDecodeErrorZ_get_ok(long arg);
407         public static native long LDKCResult_SignDecodeErrorZ_get_err(long arg);
408         public static native boolean LDKCResult_RecoverableSignatureNoneZ_result_ok(long arg);
409         public static native byte[] LDKCResult_RecoverableSignatureNoneZ_get_ok(long arg);
410         public static native void LDKCResult_RecoverableSignatureNoneZ_get_err(long arg);
411         public static native boolean LDKCResult_CVec_CVec_u8ZZNoneZ_result_ok(long arg);
412         public static native byte[][] LDKCResult_CVec_CVec_u8ZZNoneZ_get_ok(long arg);
413         public static native void LDKCResult_CVec_CVec_u8ZZNoneZ_get_err(long arg);
414         public static native boolean LDKCResult_InMemorySignerDecodeErrorZ_result_ok(long arg);
415         public static native long LDKCResult_InMemorySignerDecodeErrorZ_get_ok(long arg);
416         public static native long LDKCResult_InMemorySignerDecodeErrorZ_get_err(long arg);
417         public static native long LDKCVec_TxOutZ_new(long[] elems);
418         public static native boolean LDKCResult_TransactionNoneZ_result_ok(long arg);
419         public static native byte[] LDKCResult_TransactionNoneZ_get_ok(long arg);
420         public static native void LDKCResult_TransactionNoneZ_get_err(long arg);
421         public static native long LDKC2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
422         public static native byte[] LDKC2Tuple_BlockHashChannelMonitorZ_get_a(long ptr);
423         public static native long LDKC2Tuple_BlockHashChannelMonitorZ_get_b(long ptr);
424         public static native long LDKCVec_C2Tuple_BlockHashChannelMonitorZZ_new(long[] elems);
425         public static native boolean LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_result_ok(long arg);
426         public static native long[] LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(long arg);
427         public static native IOError LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(long arg);
428         public static class LDKAPIError {
429                 private LDKAPIError() {}
430                 public final static class APIMisuseError extends LDKAPIError {
431                         public String err;
432                         APIMisuseError(String err) { this.err = err; }
433                 }
434                 public final static class FeeRateTooHigh extends LDKAPIError {
435                         public String err;
436                         public int feerate;
437                         FeeRateTooHigh(String err, int feerate) { this.err = err; this.feerate = feerate; }
438                 }
439                 public final static class RouteError extends LDKAPIError {
440                         public String err;
441                         RouteError(String err) { this.err = err; }
442                 }
443                 public final static class ChannelUnavailable extends LDKAPIError {
444                         public String err;
445                         ChannelUnavailable(String err) { this.err = err; }
446                 }
447                 public final static class MonitorUpdateFailed extends LDKAPIError {
448                         MonitorUpdateFailed() { }
449                 }
450                 static native void init();
451         }
452         static { LDKAPIError.init(); }
453         public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
454         public static native boolean LDKCResult_NoneAPIErrorZ_result_ok(long arg);
455         public static native void LDKCResult_NoneAPIErrorZ_get_ok(long arg);
456         public static native long LDKCResult_NoneAPIErrorZ_get_err(long arg);
457         public static native long LDKCVec_CResult_NoneAPIErrorZZ_new(long[] elems);
458         public static native long LDKCVec_APIErrorZ_new(long[] elems);
459         public static class LDKPaymentSendFailure {
460                 private LDKPaymentSendFailure() {}
461                 public final static class ParameterError extends LDKPaymentSendFailure {
462                         public long parameter_error;
463                         ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
464                 }
465                 public final static class PathParameterError extends LDKPaymentSendFailure {
466                         public long[] path_parameter_error;
467                         PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
468                 }
469                 public final static class AllFailedRetrySafe extends LDKPaymentSendFailure {
470                         public long[] all_failed_retry_safe;
471                         AllFailedRetrySafe(long[] all_failed_retry_safe) { this.all_failed_retry_safe = all_failed_retry_safe; }
472                 }
473                 public final static class PartialFailure extends LDKPaymentSendFailure {
474                         public long[] partial_failure;
475                         PartialFailure(long[] partial_failure) { this.partial_failure = partial_failure; }
476                 }
477                 static native void init();
478         }
479         static { LDKPaymentSendFailure.init(); }
480         public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
481         public static native boolean LDKCResult_NonePaymentSendFailureZ_result_ok(long arg);
482         public static native void LDKCResult_NonePaymentSendFailureZ_get_ok(long arg);
483         public static native long LDKCResult_NonePaymentSendFailureZ_get_err(long arg);
484         public static class LDKNetAddress {
485                 private LDKNetAddress() {}
486                 public final static class IPv4 extends LDKNetAddress {
487                         public byte[] addr;
488                         public short port;
489                         IPv4(byte[] addr, short port) { this.addr = addr; this.port = port; }
490                 }
491                 public final static class IPv6 extends LDKNetAddress {
492                         public byte[] addr;
493                         public short port;
494                         IPv6(byte[] addr, short port) { this.addr = addr; this.port = port; }
495                 }
496                 public final static class OnionV2 extends LDKNetAddress {
497                         public byte[] addr;
498                         public short port;
499                         OnionV2(byte[] addr, short port) { this.addr = addr; this.port = port; }
500                 }
501                 public final static class OnionV3 extends LDKNetAddress {
502                         public byte[] ed25519_pubkey;
503                         public short checksum;
504                         public byte version;
505                         public short port;
506                         OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
507                 }
508                 static native void init();
509         }
510         static { LDKNetAddress.init(); }
511         public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
512         public static native long LDKCVec_NetAddressZ_new(long[] elems);
513         public static native long LDKC2Tuple_PaymentHashPaymentSecretZ_new(byte[] a, byte[] b);
514         public static native byte[] LDKC2Tuple_PaymentHashPaymentSecretZ_get_a(long ptr);
515         public static native byte[] LDKC2Tuple_PaymentHashPaymentSecretZ_get_b(long ptr);
516         public static native boolean LDKCResult_PaymentSecretAPIErrorZ_result_ok(long arg);
517         public static native byte[] LDKCResult_PaymentSecretAPIErrorZ_get_ok(long arg);
518         public static native long LDKCResult_PaymentSecretAPIErrorZ_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 interface LDKKeysInterface {
539                  byte[] get_node_secret();
540                  byte[] get_destination_script();
541                  byte[] get_shutdown_pubkey();
542                  long get_channel_signer(boolean inbound, long channel_value_satoshis);
543                  byte[] get_secure_random_bytes();
544                  long read_chan_signer(byte[] reader);
545                  long sign_invoice(byte[] invoice_preimage);
546         }
547         public static native long LDKKeysInterface_new(LDKKeysInterface impl);
548         // LDKSecretKey KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg
549         public static native byte[] KeysInterface_get_node_secret(long this_arg);
550         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
551         public static native byte[] KeysInterface_get_destination_script(long this_arg);
552         // LDKPublicKey KeysInterface_get_shutdown_pubkey LDKKeysInterface *NONNULL_PTR this_arg
553         public static native byte[] KeysInterface_get_shutdown_pubkey(long this_arg);
554         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
555         public static native long KeysInterface_get_channel_signer(long this_arg, boolean inbound, long channel_value_satoshis);
556         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
557         public static native byte[] KeysInterface_get_secure_random_bytes(long this_arg);
558         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
559         public static native long KeysInterface_read_chan_signer(long this_arg, byte[] reader);
560         // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKCVec_u8Z invoice_preimage
561         public static native long KeysInterface_sign_invoice(long this_arg, byte[] invoice_preimage);
562         public interface LDKFeeEstimator {
563                  int get_est_sat_per_1000_weight(ConfirmationTarget 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, ConfirmationTarget 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_ChannelConfigDecodeErrorZ_result_ok(long arg);
579         public static native long LDKCResult_ChannelConfigDecodeErrorZ_get_ok(long arg);
580         public static native long LDKCResult_ChannelConfigDecodeErrorZ_get_err(long arg);
581         public static native boolean LDKCResult_OutPointDecodeErrorZ_result_ok(long arg);
582         public static native long LDKCResult_OutPointDecodeErrorZ_get_ok(long arg);
583         public static native long LDKCResult_OutPointDecodeErrorZ_get_err(long arg);
584         public static native boolean LDKCResult_SiPrefixNoneZ_result_ok(long arg);
585         public static native SiPrefix LDKCResult_SiPrefixNoneZ_get_ok(long arg);
586         public static native void LDKCResult_SiPrefixNoneZ_get_err(long arg);
587         public static native boolean LDKCResult_InvoiceNoneZ_result_ok(long arg);
588         public static native long LDKCResult_InvoiceNoneZ_get_ok(long arg);
589         public static native void LDKCResult_InvoiceNoneZ_get_err(long arg);
590         public static native boolean LDKCResult_SignedRawInvoiceNoneZ_result_ok(long arg);
591         public static native long LDKCResult_SignedRawInvoiceNoneZ_get_ok(long arg);
592         public static native void LDKCResult_SignedRawInvoiceNoneZ_get_err(long arg);
593         public static native long LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ_new(long a, byte[] b, long c);
594         public static native long LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(long ptr);
595         public static native byte[] LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(long ptr);
596         public static native long LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(long ptr);
597         public static native boolean LDKCResult_PayeePubKeyErrorZ_result_ok(long arg);
598         public static native long LDKCResult_PayeePubKeyErrorZ_get_ok(long arg);
599         public static native Secp256k1Error LDKCResult_PayeePubKeyErrorZ_get_err(long arg);
600         public static native long LDKCVec_PrivateRouteZ_new(long[] elems);
601         public static native boolean LDKCResult_PositiveTimestampCreationErrorZ_result_ok(long arg);
602         public static native long LDKCResult_PositiveTimestampCreationErrorZ_get_ok(long arg);
603         public static native CreationError LDKCResult_PositiveTimestampCreationErrorZ_get_err(long arg);
604         public static native boolean LDKCResult_NoneSemanticErrorZ_result_ok(long arg);
605         public static native void LDKCResult_NoneSemanticErrorZ_get_ok(long arg);
606         public static native SemanticError LDKCResult_NoneSemanticErrorZ_get_err(long arg);
607         public static native boolean LDKCResult_InvoiceSemanticErrorZ_result_ok(long arg);
608         public static native long LDKCResult_InvoiceSemanticErrorZ_get_ok(long arg);
609         public static native SemanticError LDKCResult_InvoiceSemanticErrorZ_get_err(long arg);
610         public static native boolean LDKCResult_DescriptionCreationErrorZ_result_ok(long arg);
611         public static native long LDKCResult_DescriptionCreationErrorZ_get_ok(long arg);
612         public static native CreationError LDKCResult_DescriptionCreationErrorZ_get_err(long arg);
613         public static native boolean LDKCResult_ExpiryTimeCreationErrorZ_result_ok(long arg);
614         public static native long LDKCResult_ExpiryTimeCreationErrorZ_get_ok(long arg);
615         public static native CreationError LDKCResult_ExpiryTimeCreationErrorZ_get_err(long arg);
616         public static native boolean LDKCResult_PrivateRouteCreationErrorZ_result_ok(long arg);
617         public static native long LDKCResult_PrivateRouteCreationErrorZ_get_ok(long arg);
618         public static native CreationError LDKCResult_PrivateRouteCreationErrorZ_get_err(long arg);
619         public static native boolean LDKCResult_StringErrorZ_result_ok(long arg);
620         public static native String LDKCResult_StringErrorZ_get_ok(long arg);
621         public static native Secp256k1Error LDKCResult_StringErrorZ_get_err(long arg);
622         public static native boolean LDKCResult_ChannelMonitorUpdateDecodeErrorZ_result_ok(long arg);
623         public static native long LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long arg);
624         public static native long LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long arg);
625         public static native boolean LDKCResult_HTLCUpdateDecodeErrorZ_result_ok(long arg);
626         public static native long LDKCResult_HTLCUpdateDecodeErrorZ_get_ok(long arg);
627         public static native long LDKCResult_HTLCUpdateDecodeErrorZ_get_err(long arg);
628         public static native boolean LDKCResult_NoneMonitorUpdateErrorZ_result_ok(long arg);
629         public static native void LDKCResult_NoneMonitorUpdateErrorZ_get_ok(long arg);
630         public static native long LDKCResult_NoneMonitorUpdateErrorZ_get_err(long arg);
631         public static native long LDKC2Tuple_OutPointScriptZ_new(long a, byte[] b);
632         public static native long LDKC2Tuple_OutPointScriptZ_get_a(long ptr);
633         public static native byte[] LDKC2Tuple_OutPointScriptZ_get_b(long ptr);
634         public static native long LDKC2Tuple_u32ScriptZ_new(int a, byte[] b);
635         public static native int LDKC2Tuple_u32ScriptZ_get_a(long ptr);
636         public static native byte[] LDKC2Tuple_u32ScriptZ_get_b(long ptr);
637         public static native long LDKCVec_C2Tuple_u32ScriptZZ_new(long[] elems);
638         public static native long LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
639         public static native byte[] LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(long ptr);
640         public static native long[] LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(long ptr);
641         public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_new(long[] elems);
642         public static class LDKEvent {
643                 private LDKEvent() {}
644                 public final static class FundingGenerationReady extends LDKEvent {
645                         public byte[] temporary_channel_id;
646                         public long channel_value_satoshis;
647                         public byte[] output_script;
648                         public long user_channel_id;
649                         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; }
650                 }
651                 public final static class PaymentReceived extends LDKEvent {
652                         public byte[] payment_hash;
653                         public byte[] payment_preimage;
654                         public byte[] payment_secret;
655                         public long amt;
656                         public long user_payment_id;
657                         PaymentReceived(byte[] payment_hash, byte[] payment_preimage, byte[] payment_secret, long amt, long user_payment_id) { this.payment_hash = payment_hash; this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; this.amt = amt; this.user_payment_id = user_payment_id; }
658                 }
659                 public final static class PaymentSent extends LDKEvent {
660                         public byte[] payment_preimage;
661                         PaymentSent(byte[] payment_preimage) { this.payment_preimage = payment_preimage; }
662                 }
663                 public final static class PaymentFailed extends LDKEvent {
664                         public byte[] payment_hash;
665                         public boolean rejected_by_dest;
666                         PaymentFailed(byte[] payment_hash, boolean rejected_by_dest) { this.payment_hash = payment_hash; this.rejected_by_dest = rejected_by_dest; }
667                 }
668                 public final static class PendingHTLCsForwardable extends LDKEvent {
669                         public long time_forwardable;
670                         PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
671                 }
672                 public final static class SpendableOutputs extends LDKEvent {
673                         public long[] outputs;
674                         SpendableOutputs(long[] outputs) { this.outputs = outputs; }
675                 }
676                 static native void init();
677         }
678         static { LDKEvent.init(); }
679         public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
680         public static native long LDKCVec_EventZ_new(long[] elems);
681         public static native long LDKC2Tuple_u32TxOutZ_new(int a, long b);
682         public static native int LDKC2Tuple_u32TxOutZ_get_a(long ptr);
683         public static native long LDKC2Tuple_u32TxOutZ_get_b(long ptr);
684         public static native long LDKCVec_C2Tuple_u32TxOutZZ_new(long[] elems);
685         public static native long LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
686         public static native byte[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long ptr);
687         public static native long[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long ptr);
688         public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_new(long[] elems);
689         public static native boolean LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_result_ok(long arg);
690         public static native long LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(long arg);
691         public static native long LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(long arg);
692         public static native boolean LDKCResult_boolLightningErrorZ_result_ok(long arg);
693         public static native boolean LDKCResult_boolLightningErrorZ_get_ok(long arg);
694         public static native long LDKCResult_boolLightningErrorZ_get_err(long arg);
695         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
696         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long ptr);
697         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long ptr);
698         public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long ptr);
699         public static native long LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_new(long[] elems);
700         public static native long LDKCVec_NodeAnnouncementZ_new(long[] elems);
701         public static native boolean LDKCResult_NoneLightningErrorZ_result_ok(long arg);
702         public static native void LDKCResult_NoneLightningErrorZ_get_ok(long arg);
703         public static native long LDKCResult_NoneLightningErrorZ_get_err(long arg);
704         public static native boolean LDKCResult_CVec_u8ZPeerHandleErrorZ_result_ok(long arg);
705         public static native byte[] LDKCResult_CVec_u8ZPeerHandleErrorZ_get_ok(long arg);
706         public static native long LDKCResult_CVec_u8ZPeerHandleErrorZ_get_err(long arg);
707         public static native boolean LDKCResult_NonePeerHandleErrorZ_result_ok(long arg);
708         public static native void LDKCResult_NonePeerHandleErrorZ_get_ok(long arg);
709         public static native long LDKCResult_NonePeerHandleErrorZ_get_err(long arg);
710         public static native boolean LDKCResult_boolPeerHandleErrorZ_result_ok(long arg);
711         public static native boolean LDKCResult_boolPeerHandleErrorZ_get_ok(long arg);
712         public static native long LDKCResult_boolPeerHandleErrorZ_get_err(long arg);
713         public static native boolean LDKCResult_DirectionalChannelInfoDecodeErrorZ_result_ok(long arg);
714         public static native long LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_ok(long arg);
715         public static native long LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_err(long arg);
716         public static native boolean LDKCResult_ChannelInfoDecodeErrorZ_result_ok(long arg);
717         public static native long LDKCResult_ChannelInfoDecodeErrorZ_get_ok(long arg);
718         public static native long LDKCResult_ChannelInfoDecodeErrorZ_get_err(long arg);
719         public static native boolean LDKCResult_RoutingFeesDecodeErrorZ_result_ok(long arg);
720         public static native long LDKCResult_RoutingFeesDecodeErrorZ_get_ok(long arg);
721         public static native long LDKCResult_RoutingFeesDecodeErrorZ_get_err(long arg);
722         public static native boolean LDKCResult_NodeAnnouncementInfoDecodeErrorZ_result_ok(long arg);
723         public static native long LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long arg);
724         public static native long LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long arg);
725         public static native long LDKCVec_u64Z_new(long[] elems);
726         public static native boolean LDKCResult_NodeInfoDecodeErrorZ_result_ok(long arg);
727         public static native long LDKCResult_NodeInfoDecodeErrorZ_get_ok(long arg);
728         public static native long LDKCResult_NodeInfoDecodeErrorZ_get_err(long arg);
729         public static native boolean LDKCResult_NetworkGraphDecodeErrorZ_result_ok(long arg);
730         public static native long LDKCResult_NetworkGraphDecodeErrorZ_get_ok(long arg);
731         public static native long LDKCResult_NetworkGraphDecodeErrorZ_get_err(long arg);
732         public static native boolean LDKCResult_NetAddressu8Z_result_ok(long arg);
733         public static native long LDKCResult_NetAddressu8Z_get_ok(long arg);
734         public static native byte LDKCResult_NetAddressu8Z_get_err(long arg);
735         public static native boolean LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_result_ok(long arg);
736         public static native long LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_ok(long arg);
737         public static native long LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_err(long arg);
738         public static native boolean LDKCResult_NetAddressDecodeErrorZ_result_ok(long arg);
739         public static native long LDKCResult_NetAddressDecodeErrorZ_get_ok(long arg);
740         public static native long LDKCResult_NetAddressDecodeErrorZ_get_err(long arg);
741         public static native long LDKCVec_UpdateAddHTLCZ_new(long[] elems);
742         public static native long LDKCVec_UpdateFulfillHTLCZ_new(long[] elems);
743         public static native long LDKCVec_UpdateFailHTLCZ_new(long[] elems);
744         public static native long LDKCVec_UpdateFailMalformedHTLCZ_new(long[] elems);
745         public static native boolean LDKCResult_AcceptChannelDecodeErrorZ_result_ok(long arg);
746         public static native long LDKCResult_AcceptChannelDecodeErrorZ_get_ok(long arg);
747         public static native long LDKCResult_AcceptChannelDecodeErrorZ_get_err(long arg);
748         public static native boolean LDKCResult_AnnouncementSignaturesDecodeErrorZ_result_ok(long arg);
749         public static native long LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long arg);
750         public static native long LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_err(long arg);
751         public static native boolean LDKCResult_ChannelReestablishDecodeErrorZ_result_ok(long arg);
752         public static native long LDKCResult_ChannelReestablishDecodeErrorZ_get_ok(long arg);
753         public static native long LDKCResult_ChannelReestablishDecodeErrorZ_get_err(long arg);
754         public static native boolean LDKCResult_ClosingSignedDecodeErrorZ_result_ok(long arg);
755         public static native long LDKCResult_ClosingSignedDecodeErrorZ_get_ok(long arg);
756         public static native long LDKCResult_ClosingSignedDecodeErrorZ_get_err(long arg);
757         public static native boolean LDKCResult_CommitmentSignedDecodeErrorZ_result_ok(long arg);
758         public static native long LDKCResult_CommitmentSignedDecodeErrorZ_get_ok(long arg);
759         public static native long LDKCResult_CommitmentSignedDecodeErrorZ_get_err(long arg);
760         public static native boolean LDKCResult_FundingCreatedDecodeErrorZ_result_ok(long arg);
761         public static native long LDKCResult_FundingCreatedDecodeErrorZ_get_ok(long arg);
762         public static native long LDKCResult_FundingCreatedDecodeErrorZ_get_err(long arg);
763         public static native boolean LDKCResult_FundingSignedDecodeErrorZ_result_ok(long arg);
764         public static native long LDKCResult_FundingSignedDecodeErrorZ_get_ok(long arg);
765         public static native long LDKCResult_FundingSignedDecodeErrorZ_get_err(long arg);
766         public static native boolean LDKCResult_FundingLockedDecodeErrorZ_result_ok(long arg);
767         public static native long LDKCResult_FundingLockedDecodeErrorZ_get_ok(long arg);
768         public static native long LDKCResult_FundingLockedDecodeErrorZ_get_err(long arg);
769         public static native boolean LDKCResult_InitDecodeErrorZ_result_ok(long arg);
770         public static native long LDKCResult_InitDecodeErrorZ_get_ok(long arg);
771         public static native long LDKCResult_InitDecodeErrorZ_get_err(long arg);
772         public static native boolean LDKCResult_OpenChannelDecodeErrorZ_result_ok(long arg);
773         public static native long LDKCResult_OpenChannelDecodeErrorZ_get_ok(long arg);
774         public static native long LDKCResult_OpenChannelDecodeErrorZ_get_err(long arg);
775         public static native boolean LDKCResult_RevokeAndACKDecodeErrorZ_result_ok(long arg);
776         public static native long LDKCResult_RevokeAndACKDecodeErrorZ_get_ok(long arg);
777         public static native long LDKCResult_RevokeAndACKDecodeErrorZ_get_err(long arg);
778         public static native boolean LDKCResult_ShutdownDecodeErrorZ_result_ok(long arg);
779         public static native long LDKCResult_ShutdownDecodeErrorZ_get_ok(long arg);
780         public static native long LDKCResult_ShutdownDecodeErrorZ_get_err(long arg);
781         public static native boolean LDKCResult_UpdateFailHTLCDecodeErrorZ_result_ok(long arg);
782         public static native long LDKCResult_UpdateFailHTLCDecodeErrorZ_get_ok(long arg);
783         public static native long LDKCResult_UpdateFailHTLCDecodeErrorZ_get_err(long arg);
784         public static native boolean LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_result_ok(long arg);
785         public static native long LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long arg);
786         public static native long LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long arg);
787         public static native boolean LDKCResult_UpdateFeeDecodeErrorZ_result_ok(long arg);
788         public static native long LDKCResult_UpdateFeeDecodeErrorZ_get_ok(long arg);
789         public static native long LDKCResult_UpdateFeeDecodeErrorZ_get_err(long arg);
790         public static native boolean LDKCResult_UpdateFulfillHTLCDecodeErrorZ_result_ok(long arg);
791         public static native long LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long arg);
792         public static native long LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long arg);
793         public static native boolean LDKCResult_UpdateAddHTLCDecodeErrorZ_result_ok(long arg);
794         public static native long LDKCResult_UpdateAddHTLCDecodeErrorZ_get_ok(long arg);
795         public static native long LDKCResult_UpdateAddHTLCDecodeErrorZ_get_err(long arg);
796         public static native boolean LDKCResult_PingDecodeErrorZ_result_ok(long arg);
797         public static native long LDKCResult_PingDecodeErrorZ_get_ok(long arg);
798         public static native long LDKCResult_PingDecodeErrorZ_get_err(long arg);
799         public static native boolean LDKCResult_PongDecodeErrorZ_result_ok(long arg);
800         public static native long LDKCResult_PongDecodeErrorZ_get_ok(long arg);
801         public static native long LDKCResult_PongDecodeErrorZ_get_err(long arg);
802         public static native boolean LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_result_ok(long arg);
803         public static native long LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long arg);
804         public static native long LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long arg);
805         public static native boolean LDKCResult_ChannelAnnouncementDecodeErrorZ_result_ok(long arg);
806         public static native long LDKCResult_ChannelAnnouncementDecodeErrorZ_get_ok(long arg);
807         public static native long LDKCResult_ChannelAnnouncementDecodeErrorZ_get_err(long arg);
808         public static native boolean LDKCResult_UnsignedChannelUpdateDecodeErrorZ_result_ok(long arg);
809         public static native long LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long arg);
810         public static native long LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long arg);
811         public static native boolean LDKCResult_ChannelUpdateDecodeErrorZ_result_ok(long arg);
812         public static native long LDKCResult_ChannelUpdateDecodeErrorZ_get_ok(long arg);
813         public static native long LDKCResult_ChannelUpdateDecodeErrorZ_get_err(long arg);
814         public static native boolean LDKCResult_ErrorMessageDecodeErrorZ_result_ok(long arg);
815         public static native long LDKCResult_ErrorMessageDecodeErrorZ_get_ok(long arg);
816         public static native long LDKCResult_ErrorMessageDecodeErrorZ_get_err(long arg);
817         public static native boolean LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_result_ok(long arg);
818         public static native long LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long arg);
819         public static native long LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long arg);
820         public static native boolean LDKCResult_NodeAnnouncementDecodeErrorZ_result_ok(long arg);
821         public static native long LDKCResult_NodeAnnouncementDecodeErrorZ_get_ok(long arg);
822         public static native long LDKCResult_NodeAnnouncementDecodeErrorZ_get_err(long arg);
823         public static native boolean LDKCResult_QueryShortChannelIdsDecodeErrorZ_result_ok(long arg);
824         public static native long LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long arg);
825         public static native long LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_err(long arg);
826         public static native boolean LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_result_ok(long arg);
827         public static native long LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long arg);
828         public static native long LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long arg);
829         public static native boolean LDKCResult_QueryChannelRangeDecodeErrorZ_result_ok(long arg);
830         public static native long LDKCResult_QueryChannelRangeDecodeErrorZ_get_ok(long arg);
831         public static native long LDKCResult_QueryChannelRangeDecodeErrorZ_get_err(long arg);
832         public static native boolean LDKCResult_ReplyChannelRangeDecodeErrorZ_result_ok(long arg);
833         public static native long LDKCResult_ReplyChannelRangeDecodeErrorZ_get_ok(long arg);
834         public static native long LDKCResult_ReplyChannelRangeDecodeErrorZ_get_err(long arg);
835         public static native boolean LDKCResult_GossipTimestampFilterDecodeErrorZ_result_ok(long arg);
836         public static native long LDKCResult_GossipTimestampFilterDecodeErrorZ_get_ok(long arg);
837         public static native long LDKCResult_GossipTimestampFilterDecodeErrorZ_get_err(long arg);
838         public static class LDKSignOrCreationError {
839                 private LDKSignOrCreationError() {}
840                 public final static class SignError extends LDKSignOrCreationError {
841                         SignError() { }
842                 }
843                 public final static class CreationError extends LDKSignOrCreationError {
844                         public org.ldk.enums.CreationError creation_error;
845                         CreationError(org.ldk.enums.CreationError creation_error) { this.creation_error = creation_error; }
846                 }
847                 static native void init();
848         }
849         static { LDKSignOrCreationError.init(); }
850         public static native LDKSignOrCreationError LDKSignOrCreationError_ref_from_ptr(long ptr);
851         public static native boolean LDKCResult_InvoiceSignOrCreationErrorZ_result_ok(long arg);
852         public static native long LDKCResult_InvoiceSignOrCreationErrorZ_get_ok(long arg);
853         public static native long LDKCResult_InvoiceSignOrCreationErrorZ_get_err(long arg);
854         public interface LDKMessageSendEventsProvider {
855                  long[] get_and_clear_pending_msg_events();
856         }
857         public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
858         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
859         public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
860         public interface LDKEventHandler {
861                  void handle_event(long event);
862         }
863         public static native long LDKEventHandler_new(LDKEventHandler impl);
864         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
865         public static native void EventHandler_handle_event(long this_arg, long event);
866         public interface LDKEventsProvider {
867                  void process_pending_events(long handler);
868         }
869         public static native long LDKEventsProvider_new(LDKEventsProvider impl);
870         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
871         public static native void EventsProvider_process_pending_events(long this_arg, long handler);
872         public interface LDKAccess {
873                  long get_utxo(byte[] genesis_hash, long short_channel_id);
874         }
875         public static native long LDKAccess_new(LDKAccess impl);
876         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
877         public static native long Access_get_utxo(long this_arg, byte[] genesis_hash, long short_channel_id);
878         public interface LDKListen {
879                  void block_connected(byte[] block, int height);
880                  void block_disconnected(byte[] header, int height);
881         }
882         public static native long LDKListen_new(LDKListen impl);
883         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
884         public static native void Listen_block_connected(long this_arg, byte[] block, int height);
885         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
886         public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
887         public interface LDKConfirm {
888                  void transactions_confirmed(byte[] header, long[] txdata, int height);
889                  void transaction_unconfirmed(byte[] txid);
890                  void best_block_updated(byte[] header, int height);
891                  byte[][] get_relevant_txids();
892         }
893         public static native long LDKConfirm_new(LDKConfirm impl);
894         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
895         public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
896         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
897         public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
898         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
899         public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
900         // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
901         public static native byte[][] Confirm_get_relevant_txids(long this_arg);
902         public interface LDKFilter {
903                  void register_tx(byte[] txid, byte[] script_pubkey);
904                  long register_output(long output);
905         }
906         public static native long LDKFilter_new(LDKFilter impl);
907         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
908         public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
909         // LDKCOption_C2Tuple_usizeTransactionZZ Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
910         public static native long Filter_register_output(long this_arg, long output);
911         public interface LDKPersist {
912                  long persist_new_channel(long id, long data);
913                  long update_persisted_channel(long id, long update, long data);
914         }
915         public static native long LDKPersist_new(LDKPersist impl);
916         // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint id, const struct LDKChannelMonitor *NONNULL_PTR data
917         public static native long Persist_persist_new_channel(long this_arg, long id, long data);
918         // 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
919         public static native long Persist_update_persisted_channel(long this_arg, long id, long update, long data);
920         public interface LDKChannelMessageHandler {
921                  void handle_open_channel(byte[] their_node_id, long their_features, long msg);
922                  void handle_accept_channel(byte[] their_node_id, long their_features, long msg);
923                  void handle_funding_created(byte[] their_node_id, long msg);
924                  void handle_funding_signed(byte[] their_node_id, long msg);
925                  void handle_funding_locked(byte[] their_node_id, long msg);
926                  void handle_shutdown(byte[] their_node_id, long their_features, long msg);
927                  void handle_closing_signed(byte[] their_node_id, long msg);
928                  void handle_update_add_htlc(byte[] their_node_id, long msg);
929                  void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
930                  void handle_update_fail_htlc(byte[] their_node_id, long msg);
931                  void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
932                  void handle_commitment_signed(byte[] their_node_id, long msg);
933                  void handle_revoke_and_ack(byte[] their_node_id, long msg);
934                  void handle_update_fee(byte[] their_node_id, long msg);
935                  void handle_announcement_signatures(byte[] their_node_id, long msg);
936                  void peer_disconnected(byte[] their_node_id, boolean no_connection_possible);
937                  void peer_connected(byte[] their_node_id, long msg);
938                  void handle_channel_reestablish(byte[] their_node_id, long msg);
939                  void handle_channel_update(byte[] their_node_id, long msg);
940                  void handle_error(byte[] their_node_id, long msg);
941         }
942         public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
943         // 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
944         public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long their_features, long msg);
945         // 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
946         public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long their_features, long msg);
947         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
948         public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
949         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
950         public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
951         // void ChannelMessageHandler_handle_funding_locked LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingLocked *NONNULL_PTR msg
952         public static native void ChannelMessageHandler_handle_funding_locked(long this_arg, byte[] their_node_id, long msg);
953         // 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
954         public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long their_features, long msg);
955         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
956         public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
957         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
958         public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
959         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
960         public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
961         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
962         public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
963         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
964         public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
965         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
966         public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
967         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
968         public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
969         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
970         public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
971         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
972         public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
973         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
974         public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id, boolean no_connection_possible);
975         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
976         public static native void ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg);
977         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
978         public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
979         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
980         public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
981         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
982         public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
983         public interface LDKRoutingMessageHandler {
984                  long handle_node_announcement(long msg);
985                  long handle_channel_announcement(long msg);
986                  long handle_channel_update(long msg);
987                  void handle_htlc_fail_channel_update(long update);
988                  long[] get_next_channel_announcements(long starting_point, byte batch_amount);
989                  long[] get_next_node_announcements(byte[] starting_point, byte batch_amount);
990                  void sync_routing_table(byte[] their_node_id, long init);
991                  long handle_reply_channel_range(byte[] their_node_id, long msg);
992                  long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
993                  long handle_query_channel_range(byte[] their_node_id, long msg);
994                  long handle_query_short_channel_ids(byte[] their_node_id, long msg);
995         }
996         public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
997         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
998         public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
999         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
1000         public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
1001         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
1002         public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
1003         // void RoutingMessageHandler_handle_htlc_fail_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKHTLCFailChannelUpdate *NONNULL_PTR update
1004         public static native void RoutingMessageHandler_handle_htlc_fail_channel_update(long this_arg, long update);
1005         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
1006         public static native long[] RoutingMessageHandler_get_next_channel_announcements(long this_arg, long starting_point, byte batch_amount);
1007         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
1008         public static native long[] RoutingMessageHandler_get_next_node_announcements(long this_arg, byte[] starting_point, byte batch_amount);
1009         // void RoutingMessageHandler_sync_routing_table LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
1010         public static native void RoutingMessageHandler_sync_routing_table(long this_arg, byte[] their_node_id, long init);
1011         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
1012         public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
1013         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
1014         public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
1015         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
1016         public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
1017         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
1018         public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
1019         public interface LDKSocketDescriptor {
1020                  long send_data(byte[] data, boolean resume_read);
1021                  void disconnect_socket();
1022                  boolean eq(long other_arg);
1023                  long hash();
1024         }
1025         public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
1026         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
1027         public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
1028         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
1029         public static native void SocketDescriptor_disconnect_socket(long this_arg);
1030         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
1031         public static native long SocketDescriptor_hash(long this_arg);
1032         public interface LDKChannelManagerPersister {
1033                  long persist_manager(long channel_manager);
1034         }
1035         public static native long LDKChannelManagerPersister_new(LDKChannelManagerPersister impl);
1036         // LDKCResult_NoneErrorZ ChannelManagerPersister_persist_manager LDKChannelManagerPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
1037         public static native long ChannelManagerPersister_persist_manager(long this_arg, long channel_manager);
1038         public static class LDKFallback {
1039                 private LDKFallback() {}
1040                 public final static class SegWitProgram extends LDKFallback {
1041                         public byte version;
1042                         public byte[] program;
1043                         SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
1044                 }
1045                 public final static class PubKeyHash extends LDKFallback {
1046                         public byte[] pub_key_hash;
1047                         PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
1048                 }
1049                 public final static class ScriptHash extends LDKFallback {
1050                         public byte[] script_hash;
1051                         ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
1052                 }
1053                 static native void init();
1054         }
1055         static { LDKFallback.init(); }
1056         public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
1057         // struct LDKStr _ldk_get_compiled_version(void);
1058         public static native String _ldk_get_compiled_version();
1059         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
1060         public static native String _ldk_c_bindings_get_compiled_version();
1061         // void Transaction_free(struct LDKTransaction _res);
1062         public static native void Transaction_free(byte[] _res);
1063         // void TxOut_free(struct LDKTxOut _res);
1064         public static native void TxOut_free(long _res);
1065         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
1066         public static native long TxOut_clone(long orig);
1067         // void Str_free(struct LDKStr _res);
1068         public static native void Str_free(String _res);
1069         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
1070         public static native long CResult_SecretKeyErrorZ_ok(byte[] o);
1071         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
1072         public static native long CResult_SecretKeyErrorZ_err(Secp256k1Error e);
1073         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
1074         public static native void CResult_SecretKeyErrorZ_free(long _res);
1075         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
1076         public static native long CResult_PublicKeyErrorZ_ok(byte[] o);
1077         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
1078         public static native long CResult_PublicKeyErrorZ_err(Secp256k1Error e);
1079         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
1080         public static native void CResult_PublicKeyErrorZ_free(long _res);
1081         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
1082         public static native long CResult_PublicKeyErrorZ_clone(long orig);
1083         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
1084         public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
1085         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
1086         public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
1087         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
1088         public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
1089         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
1090         public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
1091         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
1092         public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
1093         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
1094         public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
1095         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
1096         public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
1097         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
1098         public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
1099         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
1100         public static native long CResult_TxCreationKeysErrorZ_ok(long o);
1101         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
1102         public static native long CResult_TxCreationKeysErrorZ_err(Secp256k1Error e);
1103         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
1104         public static native void CResult_TxCreationKeysErrorZ_free(long _res);
1105         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
1106         public static native long CResult_TxCreationKeysErrorZ_clone(long orig);
1107         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
1108         public static native long COption_u32Z_some(int o);
1109         // struct LDKCOption_u32Z COption_u32Z_none(void);
1110         public static native long COption_u32Z_none();
1111         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
1112         public static native void COption_u32Z_free(long _res);
1113         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
1114         public static native long COption_u32Z_clone(long orig);
1115         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
1116         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
1117         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
1118         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
1119         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
1120         public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
1121         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
1122         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
1123         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
1124         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
1125         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
1126         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
1127         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
1128         public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
1129         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
1130         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
1131         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
1132         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
1133         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
1134         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
1135         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
1136         public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
1137         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
1138         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
1139         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
1140         public static native void CVec_SignatureZ_free(byte[][] _res);
1141         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
1142         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
1143         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
1144         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
1145         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
1146         public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
1147         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
1148         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
1149         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
1150         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
1151         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
1152         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
1153         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
1154         public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
1155         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
1156         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
1157         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
1158         public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
1159         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
1160         public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
1161         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
1162         public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
1163         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
1164         public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
1165         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
1166         public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
1167         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
1168         public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
1169         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
1170         public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
1171         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
1172         public static native long CResult_CVec_SignatureZNoneZ_ok(byte[][] o);
1173         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
1174         public static native long CResult_CVec_SignatureZNoneZ_err();
1175         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
1176         public static native void CResult_CVec_SignatureZNoneZ_free(long _res);
1177         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
1178         public static native long CResult_CVec_SignatureZNoneZ_clone(long orig);
1179         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
1180         public static native long CResult_NoneErrorZ_ok();
1181         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
1182         public static native long CResult_NoneErrorZ_err(IOError e);
1183         // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
1184         public static native void CResult_NoneErrorZ_free(long _res);
1185         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
1186         public static native long CResult_NoneErrorZ_clone(long orig);
1187         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
1188         public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
1189         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
1190         public static native long CResult_RouteHopDecodeErrorZ_err(long e);
1191         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
1192         public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
1193         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
1194         public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
1195         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
1196         public static native void CVec_RouteHopZ_free(long[] _res);
1197         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
1198         public static native void CVec_CVec_RouteHopZZ_free(long[][] _res);
1199         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
1200         public static native long CResult_RouteDecodeErrorZ_ok(long o);
1201         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
1202         public static native long CResult_RouteDecodeErrorZ_err(long e);
1203         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
1204         public static native void CResult_RouteDecodeErrorZ_free(long _res);
1205         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
1206         public static native long CResult_RouteDecodeErrorZ_clone(long orig);
1207         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
1208         public static native long COption_u64Z_some(long o);
1209         // struct LDKCOption_u64Z COption_u64Z_none(void);
1210         public static native long COption_u64Z_none();
1211         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
1212         public static native void COption_u64Z_free(long _res);
1213         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
1214         public static native long COption_u64Z_clone(long orig);
1215         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
1216         public static native void CVec_ChannelDetailsZ_free(long[] _res);
1217         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
1218         public static native void CVec_RouteHintZ_free(long[] _res);
1219         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
1220         public static native long CResult_RouteLightningErrorZ_ok(long o);
1221         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
1222         public static native long CResult_RouteLightningErrorZ_err(long e);
1223         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
1224         public static native void CResult_RouteLightningErrorZ_free(long _res);
1225         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
1226         public static native long CResult_RouteLightningErrorZ_clone(long orig);
1227         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
1228         public static native long CResult_TxOutAccessErrorZ_ok(long o);
1229         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
1230         public static native long CResult_TxOutAccessErrorZ_err(AccessError e);
1231         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
1232         public static native void CResult_TxOutAccessErrorZ_free(long _res);
1233         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
1234         public static native long CResult_TxOutAccessErrorZ_clone(long orig);
1235         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
1236         public static native long C2Tuple_usizeTransactionZ_clone(long orig);
1237         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
1238         public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
1239         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
1240         public static native void C2Tuple_usizeTransactionZ_free(long _res);
1241         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
1242         public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
1243         // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
1244         public static native void CVec_TxidZ_free(byte[][] _res);
1245         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
1246         public static native long CResult_NoneChannelMonitorUpdateErrZ_ok();
1247         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
1248         public static native long CResult_NoneChannelMonitorUpdateErrZ_err(ChannelMonitorUpdateErr e);
1249         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
1250         public static native void CResult_NoneChannelMonitorUpdateErrZ_free(long _res);
1251         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
1252         public static native long CResult_NoneChannelMonitorUpdateErrZ_clone(long orig);
1253         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
1254         public static native void CVec_MonitorEventZ_free(long[] _res);
1255         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_some(struct LDKC2Tuple_usizeTransactionZ o);
1256         public static native long COption_C2Tuple_usizeTransactionZZ_some(long o);
1257         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_none(void);
1258         public static native long COption_C2Tuple_usizeTransactionZZ_none();
1259         // void COption_C2Tuple_usizeTransactionZZ_free(struct LDKCOption_C2Tuple_usizeTransactionZZ _res);
1260         public static native void COption_C2Tuple_usizeTransactionZZ_free(long _res);
1261         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_clone(const struct LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR orig);
1262         public static native long COption_C2Tuple_usizeTransactionZZ_clone(long orig);
1263         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
1264         public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
1265         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
1266         public static native void CVec_MessageSendEventZ_free(long[] _res);
1267         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
1268         public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
1269         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1270         public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
1271         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
1272         public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
1273         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
1274         public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
1275         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1276         public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
1277         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
1278         public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
1279         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
1280         public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
1281         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1282         public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
1283         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
1284         public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
1285         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
1286         public static native long CResult_InvoiceFeaturesDecodeErrorZ_ok(long o);
1287         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
1288         public static native long CResult_InvoiceFeaturesDecodeErrorZ_err(long e);
1289         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
1290         public static native void CResult_InvoiceFeaturesDecodeErrorZ_free(long _res);
1291         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
1292         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
1293         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
1294         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
1295         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
1296         public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
1297         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
1298         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
1299         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
1300         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
1301         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
1302         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
1303         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
1304         public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
1305         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
1306         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
1307         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
1308         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
1309         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
1310         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
1311         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
1312         public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
1313         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
1314         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
1315         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
1316         public static native long C2Tuple_SignatureCVec_SignatureZZ_clone(long orig);
1317         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
1318         public static native long C2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
1319         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
1320         public static native void C2Tuple_SignatureCVec_SignatureZZ_free(long _res);
1321         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
1322         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(long o);
1323         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
1324         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
1325         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
1326         public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(long _res);
1327         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
1328         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(long orig);
1329         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
1330         public static native long CResult_SignatureNoneZ_ok(byte[] o);
1331         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
1332         public static native long CResult_SignatureNoneZ_err();
1333         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
1334         public static native void CResult_SignatureNoneZ_free(long _res);
1335         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
1336         public static native long CResult_SignatureNoneZ_clone(long orig);
1337         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
1338         public static native long CResult_SignDecodeErrorZ_ok(long o);
1339         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
1340         public static native long CResult_SignDecodeErrorZ_err(long e);
1341         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
1342         public static native void CResult_SignDecodeErrorZ_free(long _res);
1343         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
1344         public static native long CResult_SignDecodeErrorZ_clone(long orig);
1345         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
1346         public static native void CVec_u8Z_free(byte[] _res);
1347         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
1348         public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] arg);
1349         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
1350         public static native long CResult_RecoverableSignatureNoneZ_err();
1351         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
1352         public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
1353         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
1354         public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
1355         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
1356         public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
1357         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
1358         public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
1359         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
1360         public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
1361         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
1362         public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
1363         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
1364         public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
1365         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
1366         public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
1367         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
1368         public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
1369         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
1370         public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
1371         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
1372         public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
1373         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
1374         public static native void CVec_TxOutZ_free(long[] _res);
1375         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
1376         public static native long CResult_TransactionNoneZ_ok(byte[] o);
1377         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
1378         public static native long CResult_TransactionNoneZ_err();
1379         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
1380         public static native void CResult_TransactionNoneZ_free(long _res);
1381         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
1382         public static native long CResult_TransactionNoneZ_clone(long orig);
1383         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
1384         public static native long C2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
1385         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
1386         public static native void C2Tuple_BlockHashChannelMonitorZ_free(long _res);
1387         // void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ _res);
1388         public static native void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(long[] _res);
1389         // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ o);
1390         public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(long[] o);
1391         // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(enum LDKIOError e);
1392         public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(IOError e);
1393         // void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ _res);
1394         public static native void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(long _res);
1395         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
1396         public static native long CResult_NoneAPIErrorZ_ok();
1397         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
1398         public static native long CResult_NoneAPIErrorZ_err(long e);
1399         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
1400         public static native void CResult_NoneAPIErrorZ_free(long _res);
1401         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
1402         public static native long CResult_NoneAPIErrorZ_clone(long orig);
1403         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
1404         public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
1405         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
1406         public static native void CVec_APIErrorZ_free(long[] _res);
1407         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
1408         public static native long CResult_NonePaymentSendFailureZ_ok();
1409         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
1410         public static native long CResult_NonePaymentSendFailureZ_err(long e);
1411         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
1412         public static native void CResult_NonePaymentSendFailureZ_free(long _res);
1413         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
1414         public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
1415         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
1416         public static native void CVec_NetAddressZ_free(long[] _res);
1417         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
1418         public static native long C2Tuple_PaymentHashPaymentSecretZ_clone(long orig);
1419         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
1420         public static native long C2Tuple_PaymentHashPaymentSecretZ_new(byte[] a, byte[] b);
1421         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
1422         public static native void C2Tuple_PaymentHashPaymentSecretZ_free(long _res);
1423         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
1424         public static native long CResult_PaymentSecretAPIErrorZ_ok(byte[] o);
1425         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
1426         public static native long CResult_PaymentSecretAPIErrorZ_err(long e);
1427         // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
1428         public static native void CResult_PaymentSecretAPIErrorZ_free(long _res);
1429         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
1430         public static native long CResult_PaymentSecretAPIErrorZ_clone(long orig);
1431         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
1432         public static native void CVec_ChannelMonitorZ_free(long[] _res);
1433         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
1434         public static native long C2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
1435         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
1436         public static native void C2Tuple_BlockHashChannelManagerZ_free(long _res);
1437         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
1438         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(long o);
1439         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
1440         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(long e);
1441         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
1442         public static native void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(long _res);
1443         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
1444         public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
1445         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
1446         public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
1447         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
1448         public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
1449         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
1450         public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
1451         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
1452         public static native long CResult_OutPointDecodeErrorZ_ok(long o);
1453         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
1454         public static native long CResult_OutPointDecodeErrorZ_err(long e);
1455         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
1456         public static native void CResult_OutPointDecodeErrorZ_free(long _res);
1457         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
1458         public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
1459         // struct LDKCResult_SiPrefixNoneZ CResult_SiPrefixNoneZ_ok(enum LDKSiPrefix o);
1460         public static native long CResult_SiPrefixNoneZ_ok(SiPrefix o);
1461         // struct LDKCResult_SiPrefixNoneZ CResult_SiPrefixNoneZ_err(void);
1462         public static native long CResult_SiPrefixNoneZ_err();
1463         // void CResult_SiPrefixNoneZ_free(struct LDKCResult_SiPrefixNoneZ _res);
1464         public static native void CResult_SiPrefixNoneZ_free(long _res);
1465         // struct LDKCResult_SiPrefixNoneZ CResult_SiPrefixNoneZ_clone(const struct LDKCResult_SiPrefixNoneZ *NONNULL_PTR orig);
1466         public static native long CResult_SiPrefixNoneZ_clone(long orig);
1467         // struct LDKCResult_InvoiceNoneZ CResult_InvoiceNoneZ_ok(struct LDKInvoice o);
1468         public static native long CResult_InvoiceNoneZ_ok(long o);
1469         // struct LDKCResult_InvoiceNoneZ CResult_InvoiceNoneZ_err(void);
1470         public static native long CResult_InvoiceNoneZ_err();
1471         // void CResult_InvoiceNoneZ_free(struct LDKCResult_InvoiceNoneZ _res);
1472         public static native void CResult_InvoiceNoneZ_free(long _res);
1473         // struct LDKCResult_InvoiceNoneZ CResult_InvoiceNoneZ_clone(const struct LDKCResult_InvoiceNoneZ *NONNULL_PTR orig);
1474         public static native long CResult_InvoiceNoneZ_clone(long orig);
1475         // struct LDKCResult_SignedRawInvoiceNoneZ CResult_SignedRawInvoiceNoneZ_ok(struct LDKSignedRawInvoice o);
1476         public static native long CResult_SignedRawInvoiceNoneZ_ok(long o);
1477         // struct LDKCResult_SignedRawInvoiceNoneZ CResult_SignedRawInvoiceNoneZ_err(void);
1478         public static native long CResult_SignedRawInvoiceNoneZ_err();
1479         // void CResult_SignedRawInvoiceNoneZ_free(struct LDKCResult_SignedRawInvoiceNoneZ _res);
1480         public static native void CResult_SignedRawInvoiceNoneZ_free(long _res);
1481         // struct LDKCResult_SignedRawInvoiceNoneZ CResult_SignedRawInvoiceNoneZ_clone(const struct LDKCResult_SignedRawInvoiceNoneZ *NONNULL_PTR orig);
1482         public static native long CResult_SignedRawInvoiceNoneZ_clone(long orig);
1483         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
1484         public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(long orig);
1485         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
1486         public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(long a, byte[] b, long c);
1487         // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
1488         public static native void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(long _res);
1489         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
1490         public static native long CResult_PayeePubKeyErrorZ_ok(long o);
1491         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
1492         public static native long CResult_PayeePubKeyErrorZ_err(Secp256k1Error e);
1493         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
1494         public static native void CResult_PayeePubKeyErrorZ_free(long _res);
1495         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
1496         public static native long CResult_PayeePubKeyErrorZ_clone(long orig);
1497         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
1498         public static native void CVec_PrivateRouteZ_free(long[] _res);
1499         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
1500         public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
1501         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
1502         public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
1503         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
1504         public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
1505         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
1506         public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
1507         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
1508         public static native long CResult_NoneSemanticErrorZ_ok();
1509         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
1510         public static native long CResult_NoneSemanticErrorZ_err(SemanticError e);
1511         // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
1512         public static native void CResult_NoneSemanticErrorZ_free(long _res);
1513         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
1514         public static native long CResult_NoneSemanticErrorZ_clone(long orig);
1515         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
1516         public static native long CResult_InvoiceSemanticErrorZ_ok(long o);
1517         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
1518         public static native long CResult_InvoiceSemanticErrorZ_err(SemanticError e);
1519         // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
1520         public static native void CResult_InvoiceSemanticErrorZ_free(long _res);
1521         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
1522         public static native long CResult_InvoiceSemanticErrorZ_clone(long orig);
1523         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
1524         public static native long CResult_DescriptionCreationErrorZ_ok(long o);
1525         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
1526         public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
1527         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
1528         public static native void CResult_DescriptionCreationErrorZ_free(long _res);
1529         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
1530         public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
1531         // struct LDKCResult_ExpiryTimeCreationErrorZ CResult_ExpiryTimeCreationErrorZ_ok(struct LDKExpiryTime o);
1532         public static native long CResult_ExpiryTimeCreationErrorZ_ok(long o);
1533         // struct LDKCResult_ExpiryTimeCreationErrorZ CResult_ExpiryTimeCreationErrorZ_err(enum LDKCreationError e);
1534         public static native long CResult_ExpiryTimeCreationErrorZ_err(CreationError e);
1535         // void CResult_ExpiryTimeCreationErrorZ_free(struct LDKCResult_ExpiryTimeCreationErrorZ _res);
1536         public static native void CResult_ExpiryTimeCreationErrorZ_free(long _res);
1537         // struct LDKCResult_ExpiryTimeCreationErrorZ CResult_ExpiryTimeCreationErrorZ_clone(const struct LDKCResult_ExpiryTimeCreationErrorZ *NONNULL_PTR orig);
1538         public static native long CResult_ExpiryTimeCreationErrorZ_clone(long orig);
1539         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
1540         public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
1541         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
1542         public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
1543         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
1544         public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
1545         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
1546         public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
1547         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
1548         public static native long CResult_StringErrorZ_ok(String o);
1549         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
1550         public static native long CResult_StringErrorZ_err(Secp256k1Error e);
1551         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
1552         public static native void CResult_StringErrorZ_free(long _res);
1553         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
1554         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
1555         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1556         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
1557         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
1558         public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
1559         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
1560         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
1561         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
1562         public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
1563         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1564         public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
1565         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
1566         public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
1567         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
1568         public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
1569         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_ok(void);
1570         public static native long CResult_NoneMonitorUpdateErrorZ_ok();
1571         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_err(struct LDKMonitorUpdateError e);
1572         public static native long CResult_NoneMonitorUpdateErrorZ_err(long e);
1573         // void CResult_NoneMonitorUpdateErrorZ_free(struct LDKCResult_NoneMonitorUpdateErrorZ _res);
1574         public static native void CResult_NoneMonitorUpdateErrorZ_free(long _res);
1575         // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_clone(const struct LDKCResult_NoneMonitorUpdateErrorZ *NONNULL_PTR orig);
1576         public static native long CResult_NoneMonitorUpdateErrorZ_clone(long orig);
1577         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
1578         public static native long C2Tuple_OutPointScriptZ_clone(long orig);
1579         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
1580         public static native long C2Tuple_OutPointScriptZ_new(long a, byte[] b);
1581         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
1582         public static native void C2Tuple_OutPointScriptZ_free(long _res);
1583         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
1584         public static native long C2Tuple_u32ScriptZ_clone(long orig);
1585         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
1586         public static native long C2Tuple_u32ScriptZ_new(int a, byte[] b);
1587         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
1588         public static native void C2Tuple_u32ScriptZ_free(long _res);
1589         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
1590         public static native void CVec_C2Tuple_u32ScriptZZ_free(long[] _res);
1591         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
1592         public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(long orig);
1593         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
1594         public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
1595         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
1596         public static native void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(long _res);
1597         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
1598         public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(long[] _res);
1599         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
1600         public static native void CVec_EventZ_free(long[] _res);
1601         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
1602         public static native void CVec_TransactionZ_free(byte[][] _res);
1603         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
1604         public static native long C2Tuple_u32TxOutZ_clone(long orig);
1605         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
1606         public static native long C2Tuple_u32TxOutZ_new(int a, long b);
1607         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
1608         public static native void C2Tuple_u32TxOutZ_free(long _res);
1609         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
1610         public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
1611         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
1612         public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
1613         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
1614         public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
1615         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
1616         public static native void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(long _res);
1617         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
1618         public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
1619         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
1620         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(long o);
1621         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
1622         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(long e);
1623         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
1624         public static native void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(long _res);
1625         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
1626         public static native long CResult_boolLightningErrorZ_ok(boolean o);
1627         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
1628         public static native long CResult_boolLightningErrorZ_err(long e);
1629         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
1630         public static native void CResult_boolLightningErrorZ_free(long _res);
1631         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
1632         public static native long CResult_boolLightningErrorZ_clone(long orig);
1633         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
1634         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
1635         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
1636         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
1637         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
1638         public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
1639         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
1640         public static native void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long[] _res);
1641         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
1642         public static native void CVec_NodeAnnouncementZ_free(long[] _res);
1643         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
1644         public static native long CResult_NoneLightningErrorZ_ok();
1645         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
1646         public static native long CResult_NoneLightningErrorZ_err(long e);
1647         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
1648         public static native void CResult_NoneLightningErrorZ_free(long _res);
1649         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
1650         public static native long CResult_NoneLightningErrorZ_clone(long orig);
1651         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
1652         public static native void CVec_PublicKeyZ_free(byte[][] _res);
1653         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
1654         public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
1655         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
1656         public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
1657         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
1658         public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
1659         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
1660         public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
1661         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
1662         public static native long CResult_NonePeerHandleErrorZ_ok();
1663         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
1664         public static native long CResult_NonePeerHandleErrorZ_err(long e);
1665         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
1666         public static native void CResult_NonePeerHandleErrorZ_free(long _res);
1667         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
1668         public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
1669         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
1670         public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
1671         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
1672         public static native long CResult_boolPeerHandleErrorZ_err(long e);
1673         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
1674         public static native void CResult_boolPeerHandleErrorZ_free(long _res);
1675         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
1676         public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
1677         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_ok(struct LDKDirectionalChannelInfo o);
1678         public static native long CResult_DirectionalChannelInfoDecodeErrorZ_ok(long o);
1679         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
1680         public static native long CResult_DirectionalChannelInfoDecodeErrorZ_err(long e);
1681         // void CResult_DirectionalChannelInfoDecodeErrorZ_free(struct LDKCResult_DirectionalChannelInfoDecodeErrorZ _res);
1682         public static native void CResult_DirectionalChannelInfoDecodeErrorZ_free(long _res);
1683         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_clone(const struct LDKCResult_DirectionalChannelInfoDecodeErrorZ *NONNULL_PTR orig);
1684         public static native long CResult_DirectionalChannelInfoDecodeErrorZ_clone(long orig);
1685         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
1686         public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
1687         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
1688         public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
1689         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
1690         public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
1691         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
1692         public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
1693         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
1694         public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
1695         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
1696         public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
1697         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
1698         public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
1699         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
1700         public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
1701         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
1702         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
1703         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
1704         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
1705         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
1706         public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
1707         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
1708         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
1709         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
1710         public static native void CVec_u64Z_free(long[] _res);
1711         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
1712         public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
1713         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
1714         public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
1715         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
1716         public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
1717         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
1718         public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
1719         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
1720         public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
1721         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
1722         public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
1723         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
1724         public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
1725         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_clone(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR orig);
1726         public static native long CResult_NetworkGraphDecodeErrorZ_clone(long orig);
1727         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_ok(struct LDKNetAddress o);
1728         public static native long CResult_NetAddressu8Z_ok(long o);
1729         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_err(uint8_t e);
1730         public static native long CResult_NetAddressu8Z_err(byte e);
1731         // void CResult_NetAddressu8Z_free(struct LDKCResult_NetAddressu8Z _res);
1732         public static native void CResult_NetAddressu8Z_free(long _res);
1733         // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_clone(const struct LDKCResult_NetAddressu8Z *NONNULL_PTR orig);
1734         public static native long CResult_NetAddressu8Z_clone(long orig);
1735         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(struct LDKCResult_NetAddressu8Z o);
1736         public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(long o);
1737         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_err(struct LDKDecodeError e);
1738         public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_err(long e);
1739         // void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ _res);
1740         public static native void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(long _res);
1741         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_clone(const struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ *NONNULL_PTR orig);
1742         public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_clone(long orig);
1743         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
1744         public static native long CResult_NetAddressDecodeErrorZ_ok(long o);
1745         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
1746         public static native long CResult_NetAddressDecodeErrorZ_err(long e);
1747         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
1748         public static native void CResult_NetAddressDecodeErrorZ_free(long _res);
1749         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
1750         public static native long CResult_NetAddressDecodeErrorZ_clone(long orig);
1751         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
1752         public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
1753         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
1754         public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
1755         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
1756         public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
1757         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
1758         public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
1759         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
1760         public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
1761         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
1762         public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
1763         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
1764         public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
1765         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
1766         public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
1767         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
1768         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
1769         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
1770         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
1771         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
1772         public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
1773         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
1774         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
1775         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
1776         public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
1777         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
1778         public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
1779         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
1780         public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
1781         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
1782         public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
1783         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
1784         public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
1785         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
1786         public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
1787         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
1788         public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
1789         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
1790         public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
1791         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
1792         public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
1793         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
1794         public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
1795         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
1796         public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
1797         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
1798         public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
1799         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
1800         public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
1801         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
1802         public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
1803         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
1804         public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
1805         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
1806         public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
1807         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
1808         public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
1809         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
1810         public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
1811         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
1812         public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
1813         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
1814         public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
1815         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_ok(struct LDKFundingLocked o);
1816         public static native long CResult_FundingLockedDecodeErrorZ_ok(long o);
1817         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_err(struct LDKDecodeError e);
1818         public static native long CResult_FundingLockedDecodeErrorZ_err(long e);
1819         // void CResult_FundingLockedDecodeErrorZ_free(struct LDKCResult_FundingLockedDecodeErrorZ _res);
1820         public static native void CResult_FundingLockedDecodeErrorZ_free(long _res);
1821         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_clone(const struct LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR orig);
1822         public static native long CResult_FundingLockedDecodeErrorZ_clone(long orig);
1823         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
1824         public static native long CResult_InitDecodeErrorZ_ok(long o);
1825         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
1826         public static native long CResult_InitDecodeErrorZ_err(long e);
1827         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
1828         public static native void CResult_InitDecodeErrorZ_free(long _res);
1829         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
1830         public static native long CResult_InitDecodeErrorZ_clone(long orig);
1831         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
1832         public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
1833         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
1834         public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
1835         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
1836         public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
1837         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
1838         public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
1839         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
1840         public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
1841         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
1842         public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
1843         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
1844         public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
1845         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
1846         public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
1847         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
1848         public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
1849         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
1850         public static native long CResult_ShutdownDecodeErrorZ_err(long e);
1851         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
1852         public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
1853         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
1854         public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
1855         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
1856         public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
1857         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1858         public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
1859         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
1860         public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
1861         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
1862         public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
1863         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
1864         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
1865         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1866         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
1867         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
1868         public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
1869         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
1870         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
1871         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
1872         public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
1873         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
1874         public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
1875         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
1876         public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
1877         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
1878         public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
1879         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
1880         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
1881         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1882         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
1883         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
1884         public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
1885         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
1886         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
1887         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
1888         public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
1889         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
1890         public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
1891         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
1892         public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
1893         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
1894         public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
1895         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
1896         public static native long CResult_PingDecodeErrorZ_ok(long o);
1897         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
1898         public static native long CResult_PingDecodeErrorZ_err(long e);
1899         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
1900         public static native void CResult_PingDecodeErrorZ_free(long _res);
1901         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
1902         public static native long CResult_PingDecodeErrorZ_clone(long orig);
1903         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
1904         public static native long CResult_PongDecodeErrorZ_ok(long o);
1905         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
1906         public static native long CResult_PongDecodeErrorZ_err(long e);
1907         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
1908         public static native void CResult_PongDecodeErrorZ_free(long _res);
1909         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
1910         public static native long CResult_PongDecodeErrorZ_clone(long orig);
1911         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
1912         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
1913         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1914         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
1915         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
1916         public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
1917         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1918         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
1919         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
1920         public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
1921         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1922         public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
1923         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
1924         public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
1925         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1926         public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
1927         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
1928         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
1929         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1930         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
1931         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
1932         public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
1933         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
1934         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
1935         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
1936         public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
1937         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
1938         public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
1939         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
1940         public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
1941         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
1942         public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
1943         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
1944         public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
1945         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
1946         public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
1947         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
1948         public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
1949         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
1950         public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
1951         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
1952         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
1953         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1954         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
1955         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
1956         public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
1957         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1958         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
1959         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
1960         public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
1961         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
1962         public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
1963         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
1964         public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
1965         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
1966         public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
1967         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
1968         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
1969         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
1970         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
1971         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
1972         public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
1973         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
1974         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
1975         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
1976         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
1977         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
1978         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
1979         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
1980         public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
1981         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
1982         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
1983         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
1984         public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
1985         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
1986         public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
1987         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
1988         public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
1989         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
1990         public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
1991         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
1992         public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
1993         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
1994         public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
1995         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
1996         public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
1997         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
1998         public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
1999         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
2000         public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
2001         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
2002         public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
2003         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
2004         public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
2005         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
2006         public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
2007         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
2008         public static native long CResult_InvoiceSignOrCreationErrorZ_ok(long o);
2009         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
2010         public static native long CResult_InvoiceSignOrCreationErrorZ_err(long e);
2011         // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
2012         public static native void CResult_InvoiceSignOrCreationErrorZ_free(long _res);
2013         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
2014         public static native long CResult_InvoiceSignOrCreationErrorZ_clone(long orig);
2015         // void Event_free(struct LDKEvent this_ptr);
2016         public static native void Event_free(long this_ptr);
2017         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
2018         public static native long Event_clone(long orig);
2019         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
2020         public static native byte[] Event_write(long obj);
2021         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
2022         public static native void MessageSendEvent_free(long this_ptr);
2023         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
2024         public static native long MessageSendEvent_clone(long orig);
2025         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
2026         public static native void MessageSendEventsProvider_free(long this_ptr);
2027         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
2028         public static native void EventsProvider_free(long this_ptr);
2029         // void EventHandler_free(struct LDKEventHandler this_ptr);
2030         public static native void EventHandler_free(long this_ptr);
2031         // void APIError_free(struct LDKAPIError this_ptr);
2032         public static native void APIError_free(long this_ptr);
2033         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
2034         public static native long APIError_clone(long orig);
2035         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, struct LDKSecretKey sk);
2036         public static native long sign(byte[] msg, byte[] sk);
2037         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
2038         public static native long recover_pk(byte[] msg, String sig);
2039         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
2040         public static native boolean verify(byte[] msg, String sig, byte[] pk);
2041         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
2042         public static native Level Level_clone(long orig);
2043         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
2044         public static native boolean Level_eq(long a, long b);
2045         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
2046         public static native long Level_hash(long o);
2047         // MUST_USE_RES enum LDKLevel Level_max(void);
2048         public static native Level Level_max();
2049         // void Logger_free(struct LDKLogger this_ptr);
2050         public static native void Logger_free(long this_ptr);
2051         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
2052         public static native void ChannelHandshakeConfig_free(long this_obj);
2053         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
2054         public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
2055         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
2056         public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
2057         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
2058         public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
2059         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
2060         public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
2061         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
2062         public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
2063         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
2064         public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
2065         // 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);
2066         public static native long ChannelHandshakeConfig_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg);
2067         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
2068         public static native long ChannelHandshakeConfig_clone(long orig);
2069         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
2070         public static native long ChannelHandshakeConfig_default();
2071         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
2072         public static native void ChannelHandshakeLimits_free(long this_obj);
2073         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2074         public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
2075         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
2076         public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
2077         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2078         public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
2079         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
2080         public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
2081         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2082         public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
2083         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
2084         public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
2085         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2086         public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
2087         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
2088         public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
2089         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2090         public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
2091         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
2092         public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
2093         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2094         public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
2095         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
2096         public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
2097         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2098         public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
2099         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
2100         public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
2101         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
2102         public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
2103         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
2104         public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
2105         // 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, uint32_t max_minimum_depth_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
2106         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, int max_minimum_depth_arg, boolean force_announced_channel_preference_arg, short their_to_self_delay_arg);
2107         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
2108         public static native long ChannelHandshakeLimits_clone(long orig);
2109         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
2110         public static native long ChannelHandshakeLimits_default();
2111         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
2112         public static native void ChannelConfig_free(long this_obj);
2113         // uint32_t ChannelConfig_get_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
2114         public static native int ChannelConfig_get_fee_proportional_millionths(long this_ptr);
2115         // void ChannelConfig_set_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
2116         public static native void ChannelConfig_set_fee_proportional_millionths(long this_ptr, int val);
2117         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
2118         public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
2119         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
2120         public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
2121         // bool ChannelConfig_get_announced_channel(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
2122         public static native boolean ChannelConfig_get_announced_channel(long this_ptr);
2123         // void ChannelConfig_set_announced_channel(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
2124         public static native void ChannelConfig_set_announced_channel(long this_ptr, boolean val);
2125         // bool ChannelConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
2126         public static native boolean ChannelConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
2127         // void ChannelConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
2128         public static native void ChannelConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
2129         // 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);
2130         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);
2131         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
2132         public static native long ChannelConfig_clone(long orig);
2133         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
2134         public static native long ChannelConfig_default();
2135         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
2136         public static native byte[] ChannelConfig_write(long obj);
2137         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
2138         public static native long ChannelConfig_read(byte[] ser);
2139         // void UserConfig_free(struct LDKUserConfig this_obj);
2140         public static native void UserConfig_free(long this_obj);
2141         // struct LDKChannelHandshakeConfig UserConfig_get_own_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
2142         public static native long UserConfig_get_own_channel_config(long this_ptr);
2143         // void UserConfig_set_own_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
2144         public static native void UserConfig_set_own_channel_config(long this_ptr, long val);
2145         // struct LDKChannelHandshakeLimits UserConfig_get_peer_channel_config_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
2146         public static native long UserConfig_get_peer_channel_config_limits(long this_ptr);
2147         // void UserConfig_set_peer_channel_config_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
2148         public static native void UserConfig_set_peer_channel_config_limits(long this_ptr, long val);
2149         // struct LDKChannelConfig UserConfig_get_channel_options(const struct LDKUserConfig *NONNULL_PTR this_ptr);
2150         public static native long UserConfig_get_channel_options(long this_ptr);
2151         // void UserConfig_set_channel_options(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
2152         public static native void UserConfig_set_channel_options(long this_ptr, long val);
2153         // 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);
2154         public static native long UserConfig_new(long own_channel_config_arg, long peer_channel_config_limits_arg, long channel_options_arg);
2155         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
2156         public static native long UserConfig_clone(long orig);
2157         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
2158         public static native long UserConfig_default();
2159         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
2160         public static native AccessError AccessError_clone(long orig);
2161         // void Access_free(struct LDKAccess this_ptr);
2162         public static native void Access_free(long this_ptr);
2163         // void Listen_free(struct LDKListen this_ptr);
2164         public static native void Listen_free(long this_ptr);
2165         // void Confirm_free(struct LDKConfirm this_ptr);
2166         public static native void Confirm_free(long this_ptr);
2167         // void Watch_free(struct LDKWatch this_ptr);
2168         public static native void Watch_free(long this_ptr);
2169         // void Filter_free(struct LDKFilter this_ptr);
2170         public static native void Filter_free(long this_ptr);
2171         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
2172         public static native void WatchedOutput_free(long this_obj);
2173         // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
2174         public static native byte[] WatchedOutput_get_block_hash(long this_ptr);
2175         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2176         public static native void WatchedOutput_set_block_hash(long this_ptr, byte[] val);
2177         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
2178         public static native long WatchedOutput_get_outpoint(long this_ptr);
2179         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
2180         public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
2181         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
2182         public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
2183         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
2184         public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
2185         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
2186         public static native long WatchedOutput_new(byte[] block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
2187         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
2188         public static native long WatchedOutput_clone(long orig);
2189         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
2190         public static native long WatchedOutput_hash(long o);
2191         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
2192         public static native void BroadcasterInterface_free(long this_ptr);
2193         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
2194         public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
2195         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
2196         public static native void FeeEstimator_free(long this_ptr);
2197         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
2198         public static native void ChainMonitor_free(long this_obj);
2199         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKFilter *chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
2200         public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
2201         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
2202         public static native long ChainMonitor_as_Listen(long this_arg);
2203         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
2204         public static native long ChainMonitor_as_Confirm(long this_arg);
2205         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
2206         public static native long ChainMonitor_as_Watch(long this_arg);
2207         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
2208         public static native long ChainMonitor_as_EventsProvider(long this_arg);
2209         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
2210         public static native void ChannelMonitorUpdate_free(long this_obj);
2211         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
2212         public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
2213         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
2214         public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
2215         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
2216         public static native long ChannelMonitorUpdate_clone(long orig);
2217         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
2218         public static native byte[] ChannelMonitorUpdate_write(long obj);
2219         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
2220         public static native long ChannelMonitorUpdate_read(byte[] ser);
2221         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
2222         public static native ChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(long orig);
2223         // void MonitorUpdateError_free(struct LDKMonitorUpdateError this_obj);
2224         public static native void MonitorUpdateError_free(long this_obj);
2225         // struct LDKMonitorUpdateError MonitorUpdateError_clone(const struct LDKMonitorUpdateError *NONNULL_PTR orig);
2226         public static native long MonitorUpdateError_clone(long orig);
2227         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
2228         public static native void MonitorEvent_free(long this_ptr);
2229         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
2230         public static native long MonitorEvent_clone(long orig);
2231         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
2232         public static native void HTLCUpdate_free(long this_obj);
2233         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
2234         public static native long HTLCUpdate_clone(long orig);
2235         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
2236         public static native byte[] HTLCUpdate_write(long obj);
2237         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
2238         public static native long HTLCUpdate_read(byte[] ser);
2239         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
2240         public static native void ChannelMonitor_free(long this_obj);
2241         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
2242         public static native long ChannelMonitor_clone(long orig);
2243         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
2244         public static native byte[] ChannelMonitor_write(long obj);
2245         // 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);
2246         public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
2247         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
2248         public static native long ChannelMonitor_get_latest_update_id(long this_arg);
2249         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
2250         public static native long ChannelMonitor_get_funding_txo(long this_arg);
2251         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
2252         public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
2253         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
2254         public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
2255         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
2256         public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
2257         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
2258         public static native long[] ChannelMonitor_get_and_clear_pending_events(long this_arg);
2259         // 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);
2260         public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
2261         // 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);
2262         public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
2263         // 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);
2264         public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
2265         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(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);
2266         public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
2267         // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
2268         public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
2269         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(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);
2270         public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
2271         // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
2272         public static native byte[][] ChannelMonitor_get_relevant_txids(long this_arg);
2273         // void Persist_free(struct LDKPersist this_ptr);
2274         public static native void Persist_free(long this_ptr);
2275         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
2276         public static native long C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser, long arg);
2277         // void OutPoint_free(struct LDKOutPoint this_obj);
2278         public static native void OutPoint_free(long this_obj);
2279         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
2280         public static native byte[] OutPoint_get_txid(long this_ptr);
2281         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2282         public static native void OutPoint_set_txid(long this_ptr, byte[] val);
2283         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
2284         public static native short OutPoint_get_index(long this_ptr);
2285         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
2286         public static native void OutPoint_set_index(long this_ptr, short val);
2287         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
2288         public static native long OutPoint_new(byte[] txid_arg, short index_arg);
2289         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
2290         public static native long OutPoint_clone(long orig);
2291         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
2292         public static native boolean OutPoint_eq(long a, long b);
2293         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
2294         public static native long OutPoint_hash(long o);
2295         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
2296         public static native byte[] OutPoint_to_channel_id(long this_arg);
2297         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
2298         public static native byte[] OutPoint_write(long obj);
2299         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
2300         public static native long OutPoint_read(byte[] ser);
2301         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
2302         public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
2303         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
2304         public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
2305         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
2306         public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
2307         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
2308         public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
2309         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2310         public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
2311         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
2312         public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
2313         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
2314         public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
2315         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
2316         public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
2317         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
2318         public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
2319         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2320         public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
2321         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
2322         public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
2323         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2324         public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
2325         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
2326         public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
2327         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
2328         public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
2329         // 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);
2330         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);
2331         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
2332         public static native long DelayedPaymentOutputDescriptor_clone(long orig);
2333         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
2334         public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
2335         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
2336         public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
2337         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
2338         public static native void StaticPaymentOutputDescriptor_free(long this_obj);
2339         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
2340         public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
2341         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
2342         public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
2343         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
2344         public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
2345         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
2346         public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
2347         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2348         public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
2349         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
2350         public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
2351         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
2352         public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
2353         // 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);
2354         public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
2355         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
2356         public static native long StaticPaymentOutputDescriptor_clone(long orig);
2357         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
2358         public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
2359         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
2360         public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
2361         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
2362         public static native void SpendableOutputDescriptor_free(long this_ptr);
2363         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
2364         public static native long SpendableOutputDescriptor_clone(long orig);
2365         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
2366         public static native byte[] SpendableOutputDescriptor_write(long obj);
2367         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
2368         public static native long SpendableOutputDescriptor_read(byte[] ser);
2369         // void BaseSign_free(struct LDKBaseSign this_ptr);
2370         public static native void BaseSign_free(long this_ptr);
2371         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
2372         public static native long Sign_clone(long orig);
2373         // void Sign_free(struct LDKSign this_ptr);
2374         public static native void Sign_free(long this_ptr);
2375         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
2376         public static native void KeysInterface_free(long this_ptr);
2377         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
2378         public static native void InMemorySigner_free(long this_obj);
2379         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
2380         public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
2381         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
2382         public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
2383         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
2384         public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
2385         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
2386         public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
2387         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
2388         public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
2389         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
2390         public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
2391         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
2392         public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
2393         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
2394         public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
2395         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
2396         public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
2397         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
2398         public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
2399         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
2400         public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
2401         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2402         public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
2403         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
2404         public static native long InMemorySigner_clone(long orig);
2405         // 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);
2406         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);
2407         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2408         public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
2409         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2410         public static native short InMemorySigner_counterparty_selected_contest_delay(long this_arg);
2411         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2412         public static native short InMemorySigner_holder_selected_contest_delay(long this_arg);
2413         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2414         public static native boolean InMemorySigner_is_outbound(long this_arg);
2415         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2416         public static native long InMemorySigner_funding_outpoint(long this_arg);
2417         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2418         public static native long InMemorySigner_get_channel_parameters(long this_arg);
2419         // 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);
2420         public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
2421         // 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);
2422         public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
2423         // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2424         public static native long InMemorySigner_as_BaseSign(long this_arg);
2425         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
2426         public static native long InMemorySigner_as_Sign(long this_arg);
2427         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
2428         public static native byte[] InMemorySigner_write(long obj);
2429         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser);
2430         public static native long InMemorySigner_read(byte[] ser);
2431         // void KeysManager_free(struct LDKKeysManager this_obj);
2432         public static native void KeysManager_free(long this_obj);
2433         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
2434         public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
2435         // 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]);
2436         public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
2437         // 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);
2438         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);
2439         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
2440         public static native long KeysManager_as_KeysInterface(long this_arg);
2441         // void ChannelManager_free(struct LDKChannelManager this_obj);
2442         public static native void ChannelManager_free(long this_obj);
2443         // void ChainParameters_free(struct LDKChainParameters this_obj);
2444         public static native void ChainParameters_free(long this_obj);
2445         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
2446         public static native Network ChainParameters_get_network(long this_ptr);
2447         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
2448         public static native void ChainParameters_set_network(long this_ptr, Network val);
2449         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
2450         public static native long ChainParameters_get_best_block(long this_ptr);
2451         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
2452         public static native void ChainParameters_set_best_block(long this_ptr, long val);
2453         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
2454         public static native long ChainParameters_new(Network network_arg, long best_block_arg);
2455         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
2456         public static native long ChainParameters_clone(long orig);
2457         // void BestBlock_free(struct LDKBestBlock this_obj);
2458         public static native void BestBlock_free(long this_obj);
2459         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
2460         public static native long BestBlock_clone(long orig);
2461         // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
2462         public static native long BestBlock_from_genesis(Network network);
2463         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
2464         public static native long BestBlock_new(byte[] block_hash, int height);
2465         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
2466         public static native byte[] BestBlock_block_hash(long this_arg);
2467         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
2468         public static native int BestBlock_height(long this_arg);
2469         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
2470         public static native void ChannelDetails_free(long this_obj);
2471         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
2472         public static native byte[] ChannelDetails_get_channel_id(long this_ptr);
2473         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2474         public static native void ChannelDetails_set_channel_id(long this_ptr, byte[] val);
2475         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2476         public static native long ChannelDetails_get_funding_txo(long this_ptr);
2477         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
2478         public static native void ChannelDetails_set_funding_txo(long this_ptr, long val);
2479         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2480         public static native long ChannelDetails_get_short_channel_id(long this_ptr);
2481         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
2482         public static native void ChannelDetails_set_short_channel_id(long this_ptr, long val);
2483         // struct LDKPublicKey ChannelDetails_get_remote_network_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2484         public static native byte[] ChannelDetails_get_remote_network_id(long this_ptr);
2485         // void ChannelDetails_set_remote_network_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2486         public static native void ChannelDetails_set_remote_network_id(long this_ptr, byte[] val);
2487         // struct LDKInitFeatures ChannelDetails_get_counterparty_features(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2488         public static native long ChannelDetails_get_counterparty_features(long this_ptr);
2489         // void ChannelDetails_set_counterparty_features(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
2490         public static native void ChannelDetails_set_counterparty_features(long this_ptr, long val);
2491         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2492         public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
2493         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2494         public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
2495         // uint64_t ChannelDetails_get_user_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2496         public static native long ChannelDetails_get_user_id(long this_ptr);
2497         // void ChannelDetails_set_user_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2498         public static native void ChannelDetails_set_user_id(long this_ptr, long val);
2499         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2500         public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
2501         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2502         public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
2503         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2504         public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
2505         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
2506         public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
2507         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2508         public static native boolean ChannelDetails_get_is_outbound(long this_ptr);
2509         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
2510         public static native void ChannelDetails_set_is_outbound(long this_ptr, boolean val);
2511         // bool ChannelDetails_get_is_funding_locked(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2512         public static native boolean ChannelDetails_get_is_funding_locked(long this_ptr);
2513         // void ChannelDetails_set_is_funding_locked(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
2514         public static native void ChannelDetails_set_is_funding_locked(long this_ptr, boolean val);
2515         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2516         public static native boolean ChannelDetails_get_is_usable(long this_ptr);
2517         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
2518         public static native void ChannelDetails_set_is_usable(long this_ptr, boolean val);
2519         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
2520         public static native boolean ChannelDetails_get_is_public(long this_ptr);
2521         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
2522         public static native void ChannelDetails_set_is_public(long this_ptr, boolean val);
2523         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
2524         public static native long ChannelDetails_clone(long orig);
2525         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
2526         public static native void PaymentSendFailure_free(long this_ptr);
2527         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
2528         public static native long PaymentSendFailure_clone(long orig);
2529         // 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);
2530         public static native long ChannelManager_new(long fee_est, long chain_monitor, long tx_broadcaster, long logger, long keys_manager, long config, long params);
2531         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
2532         public static native long ChannelManager_get_current_default_configuration(long this_arg);
2533         // 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);
2534         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);
2535         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
2536         public static native long[] ChannelManager_list_channels(long this_arg);
2537         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
2538         public static native long[] ChannelManager_list_usable_channels(long this_arg);
2539         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
2540         public static native long ChannelManager_close_channel(long this_arg, byte[] channel_id);
2541         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
2542         public static native long ChannelManager_force_close_channel(long this_arg, byte[] channel_id);
2543         // void ChannelManager_force_close_all_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
2544         public static native void ChannelManager_force_close_all_channels(long this_arg);
2545         // 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);
2546         public static native long ChannelManager_send_payment(long this_arg, long route, byte[] payment_hash, byte[] payment_secret);
2547         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKTransaction funding_transaction);
2548         public static native long ChannelManager_funding_transaction_generated(long this_arg, byte[] temporary_channel_id, byte[] funding_transaction);
2549         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
2550         public static native void ChannelManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
2551         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
2552         public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
2553         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
2554         public static native void ChannelManager_timer_tick_occurred(long this_arg);
2555         // MUST_USE_RES bool ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
2556         public static native boolean ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash);
2557         // MUST_USE_RES bool ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
2558         public static native boolean ChannelManager_claim_funds(long this_arg, byte[] payment_preimage);
2559         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
2560         public static native byte[] ChannelManager_get_our_node_id(long this_arg);
2561         // 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);
2562         public static native void ChannelManager_channel_monitor_updated(long this_arg, long funding_txo, long highest_applied_update_id);
2563         // MUST_USE_RES struct LDKC2Tuple_PaymentHashPaymentSecretZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, uint64_t user_payment_id);
2564         public static native long ChannelManager_create_inbound_payment(long this_arg, long min_value_msat, int invoice_expiry_delta_secs, long user_payment_id);
2565         // MUST_USE_RES struct LDKCResult_PaymentSecretAPIErrorZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, uint64_t user_payment_id);
2566         public static native long ChannelManager_create_inbound_payment_for_hash(long this_arg, byte[] payment_hash, long min_value_msat, int invoice_expiry_delta_secs, long user_payment_id);
2567         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
2568         public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
2569         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
2570         public static native long ChannelManager_as_EventsProvider(long this_arg);
2571         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
2572         public static native long ChannelManager_as_Listen(long this_arg);
2573         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
2574         public static native long ChannelManager_as_Confirm(long this_arg);
2575         // MUST_USE_RES bool ChannelManager_await_persistable_update_timeout(const struct LDKChannelManager *NONNULL_PTR this_arg, uint64_t max_wait);
2576         public static native boolean ChannelManager_await_persistable_update_timeout(long this_arg, long max_wait);
2577         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
2578         public static native void ChannelManager_await_persistable_update(long this_arg);
2579         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
2580         public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
2581         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
2582         public static native byte[] ChannelManager_write(long obj);
2583         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
2584         public static native void ChannelManagerReadArgs_free(long this_obj);
2585         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2586         public static native long ChannelManagerReadArgs_get_keys_manager(long this_ptr);
2587         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
2588         public static native void ChannelManagerReadArgs_set_keys_manager(long this_ptr, long val);
2589         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2590         public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
2591         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
2592         public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
2593         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2594         public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
2595         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
2596         public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
2597         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2598         public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
2599         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
2600         public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
2601         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2602         public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
2603         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
2604         public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
2605         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
2606         public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
2607         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
2608         public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
2609         // 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);
2610         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);
2611         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
2612         public static native long C2Tuple_BlockHashChannelManagerZ_read(byte[] ser, long arg);
2613         // void DecodeError_free(struct LDKDecodeError this_obj);
2614         public static native void DecodeError_free(long this_obj);
2615         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
2616         public static native long DecodeError_clone(long orig);
2617         // void Init_free(struct LDKInit this_obj);
2618         public static native void Init_free(long this_obj);
2619         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
2620         public static native long Init_get_features(long this_ptr);
2621         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
2622         public static native void Init_set_features(long this_ptr, long val);
2623         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg);
2624         public static native long Init_new(long features_arg);
2625         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
2626         public static native long Init_clone(long orig);
2627         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
2628         public static native void ErrorMessage_free(long this_obj);
2629         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
2630         public static native byte[] ErrorMessage_get_channel_id(long this_ptr);
2631         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2632         public static native void ErrorMessage_set_channel_id(long this_ptr, byte[] val);
2633         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
2634         public static native String ErrorMessage_get_data(long this_ptr);
2635         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
2636         public static native void ErrorMessage_set_data(long this_ptr, String val);
2637         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
2638         public static native long ErrorMessage_new(byte[] channel_id_arg, String data_arg);
2639         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
2640         public static native long ErrorMessage_clone(long orig);
2641         // void Ping_free(struct LDKPing this_obj);
2642         public static native void Ping_free(long this_obj);
2643         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
2644         public static native short Ping_get_ponglen(long this_ptr);
2645         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
2646         public static native void Ping_set_ponglen(long this_ptr, short val);
2647         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
2648         public static native short Ping_get_byteslen(long this_ptr);
2649         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
2650         public static native void Ping_set_byteslen(long this_ptr, short val);
2651         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
2652         public static native long Ping_new(short ponglen_arg, short byteslen_arg);
2653         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
2654         public static native long Ping_clone(long orig);
2655         // void Pong_free(struct LDKPong this_obj);
2656         public static native void Pong_free(long this_obj);
2657         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
2658         public static native short Pong_get_byteslen(long this_ptr);
2659         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
2660         public static native void Pong_set_byteslen(long this_ptr, short val);
2661         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
2662         public static native long Pong_new(short byteslen_arg);
2663         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
2664         public static native long Pong_clone(long orig);
2665         // void OpenChannel_free(struct LDKOpenChannel this_obj);
2666         public static native void OpenChannel_free(long this_obj);
2667         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
2668         public static native byte[] OpenChannel_get_chain_hash(long this_ptr);
2669         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2670         public static native void OpenChannel_set_chain_hash(long this_ptr, byte[] val);
2671         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
2672         public static native byte[] OpenChannel_get_temporary_channel_id(long this_ptr);
2673         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2674         public static native void OpenChannel_set_temporary_channel_id(long this_ptr, byte[] val);
2675         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2676         public static native long OpenChannel_get_funding_satoshis(long this_ptr);
2677         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2678         public static native void OpenChannel_set_funding_satoshis(long this_ptr, long val);
2679         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2680         public static native long OpenChannel_get_push_msat(long this_ptr);
2681         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2682         public static native void OpenChannel_set_push_msat(long this_ptr, long val);
2683         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2684         public static native long OpenChannel_get_dust_limit_satoshis(long this_ptr);
2685         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2686         public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);
2687         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2688         public static native long OpenChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
2689         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2690         public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
2691         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2692         public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
2693         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2694         public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
2695         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2696         public static native long OpenChannel_get_htlc_minimum_msat(long this_ptr);
2697         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
2698         public static native void OpenChannel_set_htlc_minimum_msat(long this_ptr, long val);
2699         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2700         public static native int OpenChannel_get_feerate_per_kw(long this_ptr);
2701         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
2702         public static native void OpenChannel_set_feerate_per_kw(long this_ptr, int val);
2703         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2704         public static native short OpenChannel_get_to_self_delay(long this_ptr);
2705         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
2706         public static native void OpenChannel_set_to_self_delay(long this_ptr, short val);
2707         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2708         public static native short OpenChannel_get_max_accepted_htlcs(long this_ptr);
2709         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
2710         public static native void OpenChannel_set_max_accepted_htlcs(long this_ptr, short val);
2711         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2712         public static native byte[] OpenChannel_get_funding_pubkey(long this_ptr);
2713         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2714         public static native void OpenChannel_set_funding_pubkey(long this_ptr, byte[] val);
2715         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2716         public static native byte[] OpenChannel_get_revocation_basepoint(long this_ptr);
2717         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2718         public static native void OpenChannel_set_revocation_basepoint(long this_ptr, byte[] val);
2719         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2720         public static native byte[] OpenChannel_get_payment_point(long this_ptr);
2721         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2722         public static native void OpenChannel_set_payment_point(long this_ptr, byte[] val);
2723         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2724         public static native byte[] OpenChannel_get_delayed_payment_basepoint(long this_ptr);
2725         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2726         public static native void OpenChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
2727         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2728         public static native byte[] OpenChannel_get_htlc_basepoint(long this_ptr);
2729         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2730         public static native void OpenChannel_set_htlc_basepoint(long this_ptr, byte[] val);
2731         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2732         public static native byte[] OpenChannel_get_first_per_commitment_point(long this_ptr);
2733         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2734         public static native void OpenChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
2735         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
2736         public static native byte OpenChannel_get_channel_flags(long this_ptr);
2737         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
2738         public static native void OpenChannel_set_channel_flags(long this_ptr, byte val);
2739         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
2740         public static native long OpenChannel_clone(long orig);
2741         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
2742         public static native void AcceptChannel_free(long this_obj);
2743         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
2744         public static native byte[] AcceptChannel_get_temporary_channel_id(long this_ptr);
2745         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2746         public static native void AcceptChannel_set_temporary_channel_id(long this_ptr, byte[] val);
2747         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2748         public static native long AcceptChannel_get_dust_limit_satoshis(long this_ptr);
2749         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2750         public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);
2751         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2752         public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
2753         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2754         public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
2755         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2756         public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
2757         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2758         public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
2759         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2760         public static native long AcceptChannel_get_htlc_minimum_msat(long this_ptr);
2761         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
2762         public static native void AcceptChannel_set_htlc_minimum_msat(long this_ptr, long val);
2763         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2764         public static native int AcceptChannel_get_minimum_depth(long this_ptr);
2765         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
2766         public static native void AcceptChannel_set_minimum_depth(long this_ptr, int val);
2767         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2768         public static native short AcceptChannel_get_to_self_delay(long this_ptr);
2769         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
2770         public static native void AcceptChannel_set_to_self_delay(long this_ptr, short val);
2771         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2772         public static native short AcceptChannel_get_max_accepted_htlcs(long this_ptr);
2773         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
2774         public static native void AcceptChannel_set_max_accepted_htlcs(long this_ptr, short val);
2775         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2776         public static native byte[] AcceptChannel_get_funding_pubkey(long this_ptr);
2777         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2778         public static native void AcceptChannel_set_funding_pubkey(long this_ptr, byte[] val);
2779         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2780         public static native byte[] AcceptChannel_get_revocation_basepoint(long this_ptr);
2781         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2782         public static native void AcceptChannel_set_revocation_basepoint(long this_ptr, byte[] val);
2783         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2784         public static native byte[] AcceptChannel_get_payment_point(long this_ptr);
2785         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2786         public static native void AcceptChannel_set_payment_point(long this_ptr, byte[] val);
2787         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2788         public static native byte[] AcceptChannel_get_delayed_payment_basepoint(long this_ptr);
2789         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2790         public static native void AcceptChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
2791         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2792         public static native byte[] AcceptChannel_get_htlc_basepoint(long this_ptr);
2793         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2794         public static native void AcceptChannel_set_htlc_basepoint(long this_ptr, byte[] val);
2795         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
2796         public static native byte[] AcceptChannel_get_first_per_commitment_point(long this_ptr);
2797         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2798         public static native void AcceptChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
2799         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
2800         public static native long AcceptChannel_clone(long orig);
2801         // void FundingCreated_free(struct LDKFundingCreated this_obj);
2802         public static native void FundingCreated_free(long this_obj);
2803         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
2804         public static native byte[] FundingCreated_get_temporary_channel_id(long this_ptr);
2805         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2806         public static native void FundingCreated_set_temporary_channel_id(long this_ptr, byte[] val);
2807         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
2808         public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
2809         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2810         public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
2811         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
2812         public static native short FundingCreated_get_funding_output_index(long this_ptr);
2813         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
2814         public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
2815         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
2816         public static native byte[] FundingCreated_get_signature(long this_ptr);
2817         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
2818         public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
2819         // 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);
2820         public static native long FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
2821         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
2822         public static native long FundingCreated_clone(long orig);
2823         // void FundingSigned_free(struct LDKFundingSigned this_obj);
2824         public static native void FundingSigned_free(long this_obj);
2825         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
2826         public static native byte[] FundingSigned_get_channel_id(long this_ptr);
2827         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2828         public static native void FundingSigned_set_channel_id(long this_ptr, byte[] val);
2829         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
2830         public static native byte[] FundingSigned_get_signature(long this_ptr);
2831         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
2832         public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
2833         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
2834         public static native long FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
2835         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
2836         public static native long FundingSigned_clone(long orig);
2837         // void FundingLocked_free(struct LDKFundingLocked this_obj);
2838         public static native void FundingLocked_free(long this_obj);
2839         // const uint8_t (*FundingLocked_get_channel_id(const struct LDKFundingLocked *NONNULL_PTR this_ptr))[32];
2840         public static native byte[] FundingLocked_get_channel_id(long this_ptr);
2841         // void FundingLocked_set_channel_id(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2842         public static native void FundingLocked_set_channel_id(long this_ptr, byte[] val);
2843         // struct LDKPublicKey FundingLocked_get_next_per_commitment_point(const struct LDKFundingLocked *NONNULL_PTR this_ptr);
2844         public static native byte[] FundingLocked_get_next_per_commitment_point(long this_ptr);
2845         // void FundingLocked_set_next_per_commitment_point(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2846         public static native void FundingLocked_set_next_per_commitment_point(long this_ptr, byte[] val);
2847         // MUST_USE_RES struct LDKFundingLocked FundingLocked_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg);
2848         public static native long FundingLocked_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg);
2849         // struct LDKFundingLocked FundingLocked_clone(const struct LDKFundingLocked *NONNULL_PTR orig);
2850         public static native long FundingLocked_clone(long orig);
2851         // void Shutdown_free(struct LDKShutdown this_obj);
2852         public static native void Shutdown_free(long this_obj);
2853         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
2854         public static native byte[] Shutdown_get_channel_id(long this_ptr);
2855         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2856         public static native void Shutdown_set_channel_id(long this_ptr, byte[] val);
2857         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
2858         public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
2859         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
2860         public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
2861         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
2862         public static native long Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
2863         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
2864         public static native long Shutdown_clone(long orig);
2865         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
2866         public static native void ClosingSigned_free(long this_obj);
2867         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
2868         public static native byte[] ClosingSigned_get_channel_id(long this_ptr);
2869         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2870         public static native void ClosingSigned_set_channel_id(long this_ptr, byte[] val);
2871         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
2872         public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
2873         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
2874         public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
2875         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
2876         public static native byte[] ClosingSigned_get_signature(long this_ptr);
2877         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
2878         public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
2879         // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg);
2880         public static native long ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg);
2881         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
2882         public static native long ClosingSigned_clone(long orig);
2883         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
2884         public static native void UpdateAddHTLC_free(long this_obj);
2885         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
2886         public static native byte[] UpdateAddHTLC_get_channel_id(long this_ptr);
2887         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2888         public static native void UpdateAddHTLC_set_channel_id(long this_ptr, byte[] val);
2889         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
2890         public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
2891         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
2892         public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
2893         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
2894         public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
2895         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
2896         public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
2897         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
2898         public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
2899         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2900         public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
2901         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
2902         public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
2903         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
2904         public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
2905         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
2906         public static native long UpdateAddHTLC_clone(long orig);
2907         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
2908         public static native void UpdateFulfillHTLC_free(long this_obj);
2909         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
2910         public static native byte[] UpdateFulfillHTLC_get_channel_id(long this_ptr);
2911         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2912         public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, byte[] val);
2913         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
2914         public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
2915         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
2916         public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
2917         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
2918         public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
2919         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2920         public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
2921         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
2922         public static native long UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
2923         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
2924         public static native long UpdateFulfillHTLC_clone(long orig);
2925         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
2926         public static native void UpdateFailHTLC_free(long this_obj);
2927         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
2928         public static native byte[] UpdateFailHTLC_get_channel_id(long this_ptr);
2929         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2930         public static native void UpdateFailHTLC_set_channel_id(long this_ptr, byte[] val);
2931         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
2932         public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
2933         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
2934         public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
2935         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
2936         public static native long UpdateFailHTLC_clone(long orig);
2937         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
2938         public static native void UpdateFailMalformedHTLC_free(long this_obj);
2939         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
2940         public static native byte[] UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
2941         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2942         public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, byte[] val);
2943         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
2944         public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
2945         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
2946         public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
2947         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
2948         public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
2949         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
2950         public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
2951         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
2952         public static native long UpdateFailMalformedHTLC_clone(long orig);
2953         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
2954         public static native void CommitmentSigned_free(long this_obj);
2955         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
2956         public static native byte[] CommitmentSigned_get_channel_id(long this_ptr);
2957         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2958         public static native void CommitmentSigned_set_channel_id(long this_ptr, byte[] val);
2959         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
2960         public static native byte[] CommitmentSigned_get_signature(long this_ptr);
2961         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
2962         public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
2963         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
2964         public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
2965         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
2966         public static native long CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
2967         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
2968         public static native long CommitmentSigned_clone(long orig);
2969         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
2970         public static native void RevokeAndACK_free(long this_obj);
2971         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
2972         public static native byte[] RevokeAndACK_get_channel_id(long this_ptr);
2973         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2974         public static native void RevokeAndACK_set_channel_id(long this_ptr, byte[] val);
2975         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
2976         public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
2977         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2978         public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
2979         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
2980         public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
2981         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
2982         public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
2983         // 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);
2984         public static native long RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
2985         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
2986         public static native long RevokeAndACK_clone(long orig);
2987         // void UpdateFee_free(struct LDKUpdateFee this_obj);
2988         public static native void UpdateFee_free(long this_obj);
2989         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
2990         public static native byte[] UpdateFee_get_channel_id(long this_ptr);
2991         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
2992         public static native void UpdateFee_set_channel_id(long this_ptr, byte[] val);
2993         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
2994         public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
2995         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
2996         public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
2997         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
2998         public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
2999         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
3000         public static native long UpdateFee_clone(long orig);
3001         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
3002         public static native void DataLossProtect_free(long this_obj);
3003         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
3004         public static native byte[] DataLossProtect_get_your_last_per_commitment_secret(long this_ptr);
3005         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3006         public static native void DataLossProtect_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
3007         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
3008         public static native byte[] DataLossProtect_get_my_current_per_commitment_point(long this_ptr);
3009         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3010         public static native void DataLossProtect_set_my_current_per_commitment_point(long this_ptr, byte[] val);
3011         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
3012         public static native long DataLossProtect_new(byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg);
3013         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
3014         public static native long DataLossProtect_clone(long orig);
3015         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
3016         public static native void ChannelReestablish_free(long this_obj);
3017         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
3018         public static native byte[] ChannelReestablish_get_channel_id(long this_ptr);
3019         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3020         public static native void ChannelReestablish_set_channel_id(long this_ptr, byte[] val);
3021         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
3022         public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
3023         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
3024         public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
3025         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
3026         public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
3027         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
3028         public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
3029         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
3030         public static native long ChannelReestablish_clone(long orig);
3031         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
3032         public static native void AnnouncementSignatures_free(long this_obj);
3033         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
3034         public static native byte[] AnnouncementSignatures_get_channel_id(long this_ptr);
3035         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3036         public static native void AnnouncementSignatures_set_channel_id(long this_ptr, byte[] val);
3037         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
3038         public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
3039         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
3040         public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
3041         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
3042         public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
3043         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
3044         public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
3045         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
3046         public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
3047         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
3048         public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
3049         // 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);
3050         public static native long AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
3051         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
3052         public static native long AnnouncementSignatures_clone(long orig);
3053         // void NetAddress_free(struct LDKNetAddress this_ptr);
3054         public static native void NetAddress_free(long this_ptr);
3055         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
3056         public static native long NetAddress_clone(long orig);
3057         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
3058         public static native byte[] NetAddress_write(long obj);
3059         // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ Result_read(struct LDKu8slice ser);
3060         public static native long Result_read(byte[] ser);
3061         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
3062         public static native long NetAddress_read(byte[] ser);
3063         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
3064         public static native void UnsignedNodeAnnouncement_free(long this_obj);
3065         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
3066         public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
3067         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
3068         public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
3069         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
3070         public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
3071         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
3072         public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
3073         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
3074         public static native byte[] UnsignedNodeAnnouncement_get_node_id(long this_ptr);
3075         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3076         public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, byte[] val);
3077         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
3078         public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
3079         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
3080         public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
3081         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
3082         public static native byte[] UnsignedNodeAnnouncement_get_alias(long this_ptr);
3083         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3084         public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, byte[] val);
3085         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
3086         public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
3087         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
3088         public static native long UnsignedNodeAnnouncement_clone(long orig);
3089         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
3090         public static native void NodeAnnouncement_free(long this_obj);
3091         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
3092         public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
3093         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
3094         public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
3095         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
3096         public static native long NodeAnnouncement_get_contents(long this_ptr);
3097         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
3098         public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
3099         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
3100         public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
3101         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
3102         public static native long NodeAnnouncement_clone(long orig);
3103         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
3104         public static native void UnsignedChannelAnnouncement_free(long this_obj);
3105         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
3106         public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
3107         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
3108         public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
3109         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
3110         public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
3111         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3112         public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
3113         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
3114         public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
3115         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
3116         public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
3117         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
3118         public static native byte[] UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
3119         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3120         public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, byte[] val);
3121         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
3122         public static native byte[] UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
3123         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3124         public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, byte[] val);
3125         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
3126         public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
3127         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3128         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, byte[] val);
3129         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
3130         public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
3131         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3132         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, byte[] val);
3133         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
3134         public static native long UnsignedChannelAnnouncement_clone(long orig);
3135         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
3136         public static native void ChannelAnnouncement_free(long this_obj);
3137         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
3138         public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
3139         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
3140         public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
3141         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
3142         public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
3143         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
3144         public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
3145         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
3146         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
3147         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
3148         public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
3149         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
3150         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
3151         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
3152         public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
3153         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
3154         public static native long ChannelAnnouncement_get_contents(long this_ptr);
3155         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
3156         public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
3157         // 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);
3158         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);
3159         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
3160         public static native long ChannelAnnouncement_clone(long orig);
3161         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
3162         public static native void UnsignedChannelUpdate_free(long this_obj);
3163         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
3164         public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
3165         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3166         public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
3167         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
3168         public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
3169         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
3170         public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
3171         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
3172         public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
3173         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
3174         public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
3175         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
3176         public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
3177         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
3178         public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
3179         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
3180         public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
3181         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
3182         public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
3183         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
3184         public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
3185         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
3186         public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
3187         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
3188         public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
3189         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
3190         public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
3191         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
3192         public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
3193         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
3194         public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
3195         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
3196         public static native long UnsignedChannelUpdate_clone(long orig);
3197         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
3198         public static native void ChannelUpdate_free(long this_obj);
3199         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
3200         public static native byte[] ChannelUpdate_get_signature(long this_ptr);
3201         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
3202         public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
3203         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
3204         public static native long ChannelUpdate_get_contents(long this_ptr);
3205         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
3206         public static native void ChannelUpdate_set_contents(long this_ptr, long val);
3207         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
3208         public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
3209         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
3210         public static native long ChannelUpdate_clone(long orig);
3211         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
3212         public static native void QueryChannelRange_free(long this_obj);
3213         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
3214         public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
3215         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3216         public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
3217         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
3218         public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
3219         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
3220         public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
3221         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
3222         public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
3223         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
3224         public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
3225         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
3226         public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
3227         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
3228         public static native long QueryChannelRange_clone(long orig);
3229         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
3230         public static native void ReplyChannelRange_free(long this_obj);
3231         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
3232         public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
3233         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3234         public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
3235         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
3236         public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
3237         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
3238         public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
3239         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
3240         public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
3241         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
3242         public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
3243         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
3244         public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
3245         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
3246         public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
3247         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
3248         public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
3249         // 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);
3250         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);
3251         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
3252         public static native long ReplyChannelRange_clone(long orig);
3253         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
3254         public static native void QueryShortChannelIds_free(long this_obj);
3255         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
3256         public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
3257         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3258         public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
3259         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
3260         public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
3261         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
3262         public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
3263         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
3264         public static native long QueryShortChannelIds_clone(long orig);
3265         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
3266         public static native void ReplyShortChannelIdsEnd_free(long this_obj);
3267         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
3268         public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
3269         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3270         public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
3271         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
3272         public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
3273         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
3274         public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
3275         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
3276         public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
3277         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
3278         public static native long ReplyShortChannelIdsEnd_clone(long orig);
3279         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
3280         public static native void GossipTimestampFilter_free(long this_obj);
3281         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
3282         public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
3283         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3284         public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
3285         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
3286         public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
3287         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
3288         public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
3289         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
3290         public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
3291         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
3292         public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
3293         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
3294         public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
3295         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
3296         public static native long GossipTimestampFilter_clone(long orig);
3297         // void ErrorAction_free(struct LDKErrorAction this_ptr);
3298         public static native void ErrorAction_free(long this_ptr);
3299         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
3300         public static native long ErrorAction_clone(long orig);
3301         // void LightningError_free(struct LDKLightningError this_obj);
3302         public static native void LightningError_free(long this_obj);
3303         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
3304         public static native String LightningError_get_err(long this_ptr);
3305         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
3306         public static native void LightningError_set_err(long this_ptr, String val);
3307         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
3308         public static native long LightningError_get_action(long this_ptr);
3309         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
3310         public static native void LightningError_set_action(long this_ptr, long val);
3311         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
3312         public static native long LightningError_new(String err_arg, long action_arg);
3313         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
3314         public static native long LightningError_clone(long orig);
3315         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
3316         public static native void CommitmentUpdate_free(long this_obj);
3317         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
3318         public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
3319         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
3320         public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
3321         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
3322         public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
3323         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
3324         public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
3325         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
3326         public static native long CommitmentUpdate_get_update_fee(long this_ptr);
3327         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
3328         public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
3329         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
3330         public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
3331         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
3332         public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
3333         // 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);
3334         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);
3335         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
3336         public static native long CommitmentUpdate_clone(long orig);
3337         // void HTLCFailChannelUpdate_free(struct LDKHTLCFailChannelUpdate this_ptr);
3338         public static native void HTLCFailChannelUpdate_free(long this_ptr);
3339         // struct LDKHTLCFailChannelUpdate HTLCFailChannelUpdate_clone(const struct LDKHTLCFailChannelUpdate *NONNULL_PTR orig);
3340         public static native long HTLCFailChannelUpdate_clone(long orig);
3341         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
3342         public static native void ChannelMessageHandler_free(long this_ptr);
3343         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
3344         public static native void RoutingMessageHandler_free(long this_ptr);
3345         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
3346         public static native byte[] AcceptChannel_write(long obj);
3347         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
3348         public static native long AcceptChannel_read(byte[] ser);
3349         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
3350         public static native byte[] AnnouncementSignatures_write(long obj);
3351         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
3352         public static native long AnnouncementSignatures_read(byte[] ser);
3353         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
3354         public static native byte[] ChannelReestablish_write(long obj);
3355         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
3356         public static native long ChannelReestablish_read(byte[] ser);
3357         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
3358         public static native byte[] ClosingSigned_write(long obj);
3359         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
3360         public static native long ClosingSigned_read(byte[] ser);
3361         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
3362         public static native byte[] CommitmentSigned_write(long obj);
3363         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
3364         public static native long CommitmentSigned_read(byte[] ser);
3365         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
3366         public static native byte[] FundingCreated_write(long obj);
3367         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
3368         public static native long FundingCreated_read(byte[] ser);
3369         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
3370         public static native byte[] FundingSigned_write(long obj);
3371         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
3372         public static native long FundingSigned_read(byte[] ser);
3373         // struct LDKCVec_u8Z FundingLocked_write(const struct LDKFundingLocked *NONNULL_PTR obj);
3374         public static native byte[] FundingLocked_write(long obj);
3375         // struct LDKCResult_FundingLockedDecodeErrorZ FundingLocked_read(struct LDKu8slice ser);
3376         public static native long FundingLocked_read(byte[] ser);
3377         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
3378         public static native byte[] Init_write(long obj);
3379         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
3380         public static native long Init_read(byte[] ser);
3381         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
3382         public static native byte[] OpenChannel_write(long obj);
3383         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
3384         public static native long OpenChannel_read(byte[] ser);
3385         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
3386         public static native byte[] RevokeAndACK_write(long obj);
3387         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
3388         public static native long RevokeAndACK_read(byte[] ser);
3389         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
3390         public static native byte[] Shutdown_write(long obj);
3391         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
3392         public static native long Shutdown_read(byte[] ser);
3393         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
3394         public static native byte[] UpdateFailHTLC_write(long obj);
3395         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
3396         public static native long UpdateFailHTLC_read(byte[] ser);
3397         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
3398         public static native byte[] UpdateFailMalformedHTLC_write(long obj);
3399         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
3400         public static native long UpdateFailMalformedHTLC_read(byte[] ser);
3401         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
3402         public static native byte[] UpdateFee_write(long obj);
3403         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
3404         public static native long UpdateFee_read(byte[] ser);
3405         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
3406         public static native byte[] UpdateFulfillHTLC_write(long obj);
3407         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
3408         public static native long UpdateFulfillHTLC_read(byte[] ser);
3409         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
3410         public static native byte[] UpdateAddHTLC_write(long obj);
3411         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
3412         public static native long UpdateAddHTLC_read(byte[] ser);
3413         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
3414         public static native byte[] Ping_write(long obj);
3415         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
3416         public static native long Ping_read(byte[] ser);
3417         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
3418         public static native byte[] Pong_write(long obj);
3419         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
3420         public static native long Pong_read(byte[] ser);
3421         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
3422         public static native byte[] UnsignedChannelAnnouncement_write(long obj);
3423         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
3424         public static native long UnsignedChannelAnnouncement_read(byte[] ser);
3425         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
3426         public static native byte[] ChannelAnnouncement_write(long obj);
3427         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
3428         public static native long ChannelAnnouncement_read(byte[] ser);
3429         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
3430         public static native byte[] UnsignedChannelUpdate_write(long obj);
3431         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
3432         public static native long UnsignedChannelUpdate_read(byte[] ser);
3433         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
3434         public static native byte[] ChannelUpdate_write(long obj);
3435         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
3436         public static native long ChannelUpdate_read(byte[] ser);
3437         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
3438         public static native byte[] ErrorMessage_write(long obj);
3439         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
3440         public static native long ErrorMessage_read(byte[] ser);
3441         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
3442         public static native byte[] UnsignedNodeAnnouncement_write(long obj);
3443         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
3444         public static native long UnsignedNodeAnnouncement_read(byte[] ser);
3445         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
3446         public static native byte[] NodeAnnouncement_write(long obj);
3447         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
3448         public static native long NodeAnnouncement_read(byte[] ser);
3449         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
3450         public static native long QueryShortChannelIds_read(byte[] ser);
3451         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
3452         public static native byte[] QueryShortChannelIds_write(long obj);
3453         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
3454         public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
3455         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
3456         public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
3457         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
3458         public static native int QueryChannelRange_end_blocknum(long this_arg);
3459         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
3460         public static native long QueryChannelRange_read(byte[] ser);
3461         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
3462         public static native byte[] QueryChannelRange_write(long obj);
3463         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
3464         public static native long ReplyChannelRange_read(byte[] ser);
3465         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
3466         public static native byte[] ReplyChannelRange_write(long obj);
3467         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
3468         public static native long GossipTimestampFilter_read(byte[] ser);
3469         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
3470         public static native byte[] GossipTimestampFilter_write(long obj);
3471         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
3472         public static native void IgnoringMessageHandler_free(long this_obj);
3473         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
3474         public static native long IgnoringMessageHandler_new();
3475         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
3476         public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
3477         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
3478         public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
3479         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
3480         public static native void ErroringMessageHandler_free(long this_obj);
3481         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
3482         public static native long ErroringMessageHandler_new();
3483         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
3484         public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
3485         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
3486         public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
3487         // void MessageHandler_free(struct LDKMessageHandler this_obj);
3488         public static native void MessageHandler_free(long this_obj);
3489         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
3490         public static native long MessageHandler_get_chan_handler(long this_ptr);
3491         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
3492         public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
3493         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
3494         public static native long MessageHandler_get_route_handler(long this_ptr);
3495         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
3496         public static native void MessageHandler_set_route_handler(long this_ptr, long val);
3497         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
3498         public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg);
3499         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
3500         public static native long SocketDescriptor_clone(long orig);
3501         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
3502         public static native void SocketDescriptor_free(long this_ptr);
3503         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
3504         public static native void PeerHandleError_free(long this_obj);
3505         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
3506         public static native boolean PeerHandleError_get_no_connection_possible(long this_ptr);
3507         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
3508         public static native void PeerHandleError_set_no_connection_possible(long this_ptr, boolean val);
3509         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
3510         public static native long PeerHandleError_new(boolean no_connection_possible_arg);
3511         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
3512         public static native long PeerHandleError_clone(long orig);
3513         // void PeerManager_free(struct LDKPeerManager this_obj);
3514         public static native void PeerManager_free(long this_obj);
3515         // 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);
3516         public static native long PeerManager_new(long message_handler, byte[] our_node_secret, byte[] ephemeral_random_data, long logger);
3517         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
3518         public static native byte[][] PeerManager_get_peer_node_ids(long this_arg);
3519         // 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);
3520         public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor);
3521         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor);
3522         public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor);
3523         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
3524         public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
3525         // 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);
3526         public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
3527         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
3528         public static native void PeerManager_process_events(long this_arg);
3529         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
3530         public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
3531         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
3532         public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id, boolean no_connection_possible);
3533         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
3534         public static native void PeerManager_timer_tick_occurred(long this_arg);
3535         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
3536         public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
3537         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
3538         public static native long derive_private_key(byte[] per_commitment_point, byte[] base_secret);
3539         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
3540         public static native long derive_public_key(byte[] per_commitment_point, byte[] base_point);
3541         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
3542         public static native long derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
3543         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
3544         public static native long derive_public_revocation_key(byte[] per_commitment_point, byte[] countersignatory_revocation_base_point);
3545         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
3546         public static native void TxCreationKeys_free(long this_obj);
3547         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3548         public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
3549         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3550         public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
3551         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3552         public static native byte[] TxCreationKeys_get_revocation_key(long this_ptr);
3553         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3554         public static native void TxCreationKeys_set_revocation_key(long this_ptr, byte[] val);
3555         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3556         public static native byte[] TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
3557         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3558         public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, byte[] val);
3559         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3560         public static native byte[] TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
3561         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3562         public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, byte[] val);
3563         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
3564         public static native byte[] TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
3565         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3566         public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, byte[] val);
3567         // 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);
3568         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);
3569         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
3570         public static native long TxCreationKeys_clone(long orig);
3571         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
3572         public static native byte[] TxCreationKeys_write(long obj);
3573         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
3574         public static native long TxCreationKeys_read(byte[] ser);
3575         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
3576         public static native void ChannelPublicKeys_free(long this_obj);
3577         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3578         public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
3579         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3580         public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
3581         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3582         public static native byte[] ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
3583         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3584         public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, byte[] val);
3585         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3586         public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
3587         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3588         public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
3589         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3590         public static native byte[] ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
3591         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3592         public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, byte[] val);
3593         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
3594         public static native byte[] ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
3595         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3596         public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, byte[] val);
3597         // 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);
3598         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);
3599         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
3600         public static native long ChannelPublicKeys_clone(long orig);
3601         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
3602         public static native byte[] ChannelPublicKeys_write(long obj);
3603         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
3604         public static native long ChannelPublicKeys_read(byte[] ser);
3605         // 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);
3606         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);
3607         // 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);
3608         public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
3609         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
3610         public static native byte[] get_revokeable_redeemscript(byte[] revocation_key, short contest_delay, byte[] broadcaster_delayed_payment_key);
3611         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
3612         public static native void HTLCOutputInCommitment_free(long this_obj);
3613         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
3614         public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
3615         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
3616         public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
3617         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
3618         public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
3619         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
3620         public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
3621         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
3622         public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
3623         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
3624         public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
3625         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
3626         public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
3627         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3628         public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
3629         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
3630         public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);
3631         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
3632         public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);
3633         // MUST_USE_RES struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_new(bool offered_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u32Z transaction_output_index_arg);
3634         public static native long HTLCOutputInCommitment_new(boolean offered_arg, long amount_msat_arg, int cltv_expiry_arg, byte[] payment_hash_arg, long transaction_output_index_arg);
3635         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
3636         public static native long HTLCOutputInCommitment_clone(long orig);
3637         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
3638         public static native byte[] HTLCOutputInCommitment_write(long obj);
3639         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
3640         public static native long HTLCOutputInCommitment_read(byte[] ser);
3641         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, const struct LDKTxCreationKeys *NONNULL_PTR keys);
3642         public static native byte[] get_htlc_redeemscript(long htlc, long keys);
3643         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
3644         public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
3645         // struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[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);
3646         public static native byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_per_kw, short contest_delay, long htlc, byte[] broadcaster_delayed_payment_key, byte[] revocation_key);
3647         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
3648         public static native void ChannelTransactionParameters_free(long this_obj);
3649         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3650         public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
3651         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
3652         public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
3653         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3654         public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
3655         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
3656         public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
3657         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3658         public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
3659         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
3660         public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
3661         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3662         public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
3663         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
3664         public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
3665         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
3666         public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
3667         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
3668         public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
3669         // 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);
3670         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);
3671         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
3672         public static native long ChannelTransactionParameters_clone(long orig);
3673         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
3674         public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
3675         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
3676         public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
3677         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
3678         public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
3679         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
3680         public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
3681         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
3682         public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
3683         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
3684         public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
3685         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
3686         public static native long CounterpartyChannelTransactionParameters_clone(long orig);
3687         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
3688         public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
3689         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
3690         public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
3691         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
3692         public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
3693         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
3694         public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
3695         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
3696         public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
3697         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
3698         public static native byte[] ChannelTransactionParameters_write(long obj);
3699         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
3700         public static native long ChannelTransactionParameters_read(byte[] ser);
3701         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
3702         public static native void DirectedChannelTransactionParameters_free(long this_obj);
3703         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3704         public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
3705         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3706         public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
3707         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3708         public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
3709         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3710         public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
3711         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
3712         public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
3713         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
3714         public static native void HolderCommitmentTransaction_free(long this_obj);
3715         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
3716         public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
3717         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
3718         public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
3719         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
3720         public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
3721         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
3722         public static native long HolderCommitmentTransaction_clone(long orig);
3723         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
3724         public static native byte[] HolderCommitmentTransaction_write(long obj);
3725         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
3726         public static native long HolderCommitmentTransaction_read(byte[] ser);
3727         // 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);
3728         public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
3729         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
3730         public static native void BuiltCommitmentTransaction_free(long this_obj);
3731         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
3732         public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
3733         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
3734         public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
3735         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
3736         public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
3737         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
3738         public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
3739         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
3740         public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
3741         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
3742         public static native long BuiltCommitmentTransaction_clone(long orig);
3743         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
3744         public static native byte[] BuiltCommitmentTransaction_write(long obj);
3745         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
3746         public static native long BuiltCommitmentTransaction_read(byte[] ser);
3747         // 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);
3748         public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
3749         // 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);
3750         public static native byte[] BuiltCommitmentTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
3751         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
3752         public static native void CommitmentTransaction_free(long this_obj);
3753         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
3754         public static native long CommitmentTransaction_clone(long orig);
3755         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
3756         public static native byte[] CommitmentTransaction_write(long obj);
3757         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
3758         public static native long CommitmentTransaction_read(byte[] ser);
3759         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3760         public static native long CommitmentTransaction_commitment_number(long this_arg);
3761         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3762         public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
3763         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3764         public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
3765         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3766         public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
3767         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
3768         public static native long CommitmentTransaction_trust(long this_arg);
3769         // 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);
3770         public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
3771         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
3772         public static native void TrustedCommitmentTransaction_free(long this_obj);
3773         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
3774         public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
3775         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
3776         public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
3777         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
3778         public static native long TrustedCommitmentTransaction_keys(long this_arg);
3779         // 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);
3780         public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters);
3781         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
3782         public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
3783         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
3784         public static native boolean InitFeatures_eq(long a, long b);
3785         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
3786         public static native boolean NodeFeatures_eq(long a, long b);
3787         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
3788         public static native boolean ChannelFeatures_eq(long a, long b);
3789         // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
3790         public static native boolean InvoiceFeatures_eq(long a, long b);
3791         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
3792         public static native long InitFeatures_clone(long orig);
3793         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
3794         public static native long NodeFeatures_clone(long orig);
3795         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
3796         public static native long ChannelFeatures_clone(long orig);
3797         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
3798         public static native long InvoiceFeatures_clone(long orig);
3799         // void InitFeatures_free(struct LDKInitFeatures this_obj);
3800         public static native void InitFeatures_free(long this_obj);
3801         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
3802         public static native void NodeFeatures_free(long this_obj);
3803         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
3804         public static native void ChannelFeatures_free(long this_obj);
3805         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
3806         public static native void InvoiceFeatures_free(long this_obj);
3807         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
3808         public static native long InitFeatures_empty();
3809         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
3810         public static native long InitFeatures_known();
3811         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
3812         public static native long NodeFeatures_empty();
3813         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
3814         public static native long NodeFeatures_known();
3815         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
3816         public static native long ChannelFeatures_empty();
3817         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
3818         public static native long ChannelFeatures_known();
3819         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
3820         public static native long InvoiceFeatures_empty();
3821         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
3822         public static native long InvoiceFeatures_known();
3823         // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
3824         public static native boolean InitFeatures_supports_payment_secret(long this_arg);
3825         // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
3826         public static native boolean NodeFeatures_supports_payment_secret(long this_arg);
3827         // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
3828         public static native boolean InvoiceFeatures_supports_payment_secret(long this_arg);
3829         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
3830         public static native byte[] InitFeatures_write(long obj);
3831         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
3832         public static native byte[] NodeFeatures_write(long obj);
3833         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
3834         public static native byte[] ChannelFeatures_write(long obj);
3835         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
3836         public static native byte[] InvoiceFeatures_write(long obj);
3837         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
3838         public static native long InitFeatures_read(byte[] ser);
3839         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
3840         public static native long NodeFeatures_read(byte[] ser);
3841         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
3842         public static native long ChannelFeatures_read(byte[] ser);
3843         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
3844         public static native long InvoiceFeatures_read(byte[] ser);
3845         // void RouteHop_free(struct LDKRouteHop this_obj);
3846         public static native void RouteHop_free(long this_obj);
3847         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3848         public static native byte[] RouteHop_get_pubkey(long this_ptr);
3849         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3850         public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
3851         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3852         public static native long RouteHop_get_node_features(long this_ptr);
3853         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
3854         public static native void RouteHop_set_node_features(long this_ptr, long val);
3855         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3856         public static native long RouteHop_get_short_channel_id(long this_ptr);
3857         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
3858         public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
3859         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3860         public static native long RouteHop_get_channel_features(long this_ptr);
3861         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
3862         public static native void RouteHop_set_channel_features(long this_ptr, long val);
3863         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3864         public static native long RouteHop_get_fee_msat(long this_ptr);
3865         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
3866         public static native void RouteHop_set_fee_msat(long this_ptr, long val);
3867         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
3868         public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
3869         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
3870         public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
3871         // 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);
3872         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);
3873         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
3874         public static native long RouteHop_clone(long orig);
3875         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
3876         public static native byte[] RouteHop_write(long obj);
3877         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
3878         public static native long RouteHop_read(byte[] ser);
3879         // void Route_free(struct LDKRoute this_obj);
3880         public static native void Route_free(long this_obj);
3881         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
3882         public static native void Route_set_paths(long this_ptr, long[][] val);
3883         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg);
3884         public static native long Route_new(long[][] paths_arg);
3885         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
3886         public static native long Route_clone(long orig);
3887         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
3888         public static native byte[] Route_write(long obj);
3889         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
3890         public static native long Route_read(byte[] ser);
3891         // void RouteHint_free(struct LDKRouteHint this_obj);
3892         public static native void RouteHint_free(long this_obj);
3893         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
3894         public static native boolean RouteHint_eq(long a, long b);
3895         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
3896         public static native long RouteHint_clone(long orig);
3897         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
3898         public static native void RouteHintHop_free(long this_obj);
3899         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
3900         public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
3901         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
3902         public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
3903         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
3904         public static native long RouteHintHop_get_short_channel_id(long this_ptr);
3905         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
3906         public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
3907         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
3908         public static native long RouteHintHop_get_fees(long this_ptr);
3909         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
3910         public static native void RouteHintHop_set_fees(long this_ptr, long val);
3911         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
3912         public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
3913         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
3914         public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
3915         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
3916         public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
3917         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
3918         public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
3919         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
3920         public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
3921         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
3922         public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
3923         // MUST_USE_RES struct LDKRouteHintHop RouteHintHop_new(struct LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, struct LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, struct LDKCOption_u64Z htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg);
3924         public static native long RouteHintHop_new(byte[] src_node_id_arg, long short_channel_id_arg, long fees_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg);
3925         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
3926         public static native boolean RouteHintHop_eq(long a, long b);
3927         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
3928         public static native long RouteHintHop_clone(long orig);
3929         // 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);
3930         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);
3931         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
3932         public static native void NetworkGraph_free(long this_obj);
3933         // struct LDKNetworkGraph NetworkGraph_clone(const struct LDKNetworkGraph *NONNULL_PTR orig);
3934         public static native long NetworkGraph_clone(long orig);
3935         // void LockedNetworkGraph_free(struct LDKLockedNetworkGraph this_obj);
3936         public static native void LockedNetworkGraph_free(long this_obj);
3937         // void NetGraphMsgHandler_free(struct LDKNetGraphMsgHandler this_obj);
3938         public static native void NetGraphMsgHandler_free(long this_obj);
3939         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKAccess *chain_access, struct LDKLogger logger);
3940         public static native long NetGraphMsgHandler_new(byte[] genesis_hash, long chain_access, long logger);
3941         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_from_net_graph(struct LDKAccess *chain_access, struct LDKLogger logger, struct LDKNetworkGraph network_graph);
3942         public static native long NetGraphMsgHandler_from_net_graph(long chain_access, long logger, long network_graph);
3943         // void NetGraphMsgHandler_add_chain_access(struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg, struct LDKAccess *chain_access);
3944         public static native void NetGraphMsgHandler_add_chain_access(long this_arg, long chain_access);
3945         // MUST_USE_RES struct LDKLockedNetworkGraph NetGraphMsgHandler_read_locked_graph(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
3946         public static native long NetGraphMsgHandler_read_locked_graph(long this_arg);
3947         // MUST_USE_RES struct LDKNetworkGraph LockedNetworkGraph_graph(const struct LDKLockedNetworkGraph *NONNULL_PTR this_arg);
3948         public static native long LockedNetworkGraph_graph(long this_arg);
3949         // struct LDKRoutingMessageHandler NetGraphMsgHandler_as_RoutingMessageHandler(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
3950         public static native long NetGraphMsgHandler_as_RoutingMessageHandler(long this_arg);
3951         // struct LDKMessageSendEventsProvider NetGraphMsgHandler_as_MessageSendEventsProvider(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
3952         public static native long NetGraphMsgHandler_as_MessageSendEventsProvider(long this_arg);
3953         // void DirectionalChannelInfo_free(struct LDKDirectionalChannelInfo this_obj);
3954         public static native void DirectionalChannelInfo_free(long this_obj);
3955         // uint32_t DirectionalChannelInfo_get_last_update(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3956         public static native int DirectionalChannelInfo_get_last_update(long this_ptr);
3957         // void DirectionalChannelInfo_set_last_update(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint32_t val);
3958         public static native void DirectionalChannelInfo_set_last_update(long this_ptr, int val);
3959         // bool DirectionalChannelInfo_get_enabled(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3960         public static native boolean DirectionalChannelInfo_get_enabled(long this_ptr);
3961         // void DirectionalChannelInfo_set_enabled(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, bool val);
3962         public static native void DirectionalChannelInfo_set_enabled(long this_ptr, boolean val);
3963         // uint16_t DirectionalChannelInfo_get_cltv_expiry_delta(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3964         public static native short DirectionalChannelInfo_get_cltv_expiry_delta(long this_ptr);
3965         // void DirectionalChannelInfo_set_cltv_expiry_delta(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint16_t val);
3966         public static native void DirectionalChannelInfo_set_cltv_expiry_delta(long this_ptr, short val);
3967         // uint64_t DirectionalChannelInfo_get_htlc_minimum_msat(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3968         public static native long DirectionalChannelInfo_get_htlc_minimum_msat(long this_ptr);
3969         // void DirectionalChannelInfo_set_htlc_minimum_msat(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, uint64_t val);
3970         public static native void DirectionalChannelInfo_set_htlc_minimum_msat(long this_ptr, long val);
3971         // struct LDKCOption_u64Z DirectionalChannelInfo_get_htlc_maximum_msat(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3972         public static native long DirectionalChannelInfo_get_htlc_maximum_msat(long this_ptr);
3973         // void DirectionalChannelInfo_set_htlc_maximum_msat(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
3974         public static native void DirectionalChannelInfo_set_htlc_maximum_msat(long this_ptr, long val);
3975         // struct LDKRoutingFees DirectionalChannelInfo_get_fees(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3976         public static native long DirectionalChannelInfo_get_fees(long this_ptr);
3977         // void DirectionalChannelInfo_set_fees(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
3978         public static native void DirectionalChannelInfo_set_fees(long this_ptr, long val);
3979         // struct LDKChannelUpdate DirectionalChannelInfo_get_last_update_message(const struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr);
3980         public static native long DirectionalChannelInfo_get_last_update_message(long this_ptr);
3981         // void DirectionalChannelInfo_set_last_update_message(struct LDKDirectionalChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
3982         public static native void DirectionalChannelInfo_set_last_update_message(long this_ptr, long val);
3983         // MUST_USE_RES struct LDKDirectionalChannelInfo DirectionalChannelInfo_new(uint32_t last_update_arg, bool enabled_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg);
3984         public static native long DirectionalChannelInfo_new(int last_update_arg, boolean enabled_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, long fees_arg, long last_update_message_arg);
3985         // struct LDKDirectionalChannelInfo DirectionalChannelInfo_clone(const struct LDKDirectionalChannelInfo *NONNULL_PTR orig);
3986         public static native long DirectionalChannelInfo_clone(long orig);
3987         // struct LDKCVec_u8Z DirectionalChannelInfo_write(const struct LDKDirectionalChannelInfo *NONNULL_PTR obj);
3988         public static native byte[] DirectionalChannelInfo_write(long obj);
3989         // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ DirectionalChannelInfo_read(struct LDKu8slice ser);
3990         public static native long DirectionalChannelInfo_read(byte[] ser);
3991         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
3992         public static native void ChannelInfo_free(long this_obj);
3993         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3994         public static native long ChannelInfo_get_features(long this_ptr);
3995         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
3996         public static native void ChannelInfo_set_features(long this_ptr, long val);
3997         // struct LDKPublicKey ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
3998         public static native byte[] ChannelInfo_get_node_one(long this_ptr);
3999         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKPublicKey val);
4000         public static native void ChannelInfo_set_node_one(long this_ptr, byte[] val);
4001         // struct LDKDirectionalChannelInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
4002         public static native long ChannelInfo_get_one_to_two(long this_ptr);
4003         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKDirectionalChannelInfo val);
4004         public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
4005         // struct LDKPublicKey ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
4006         public static native byte[] ChannelInfo_get_node_two(long this_ptr);
4007         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKPublicKey val);
4008         public static native void ChannelInfo_set_node_two(long this_ptr, byte[] val);
4009         // struct LDKDirectionalChannelInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
4010         public static native long ChannelInfo_get_two_to_one(long this_ptr);
4011         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKDirectionalChannelInfo val);
4012         public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
4013         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
4014         public static native long ChannelInfo_get_capacity_sats(long this_ptr);
4015         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4016         public static native void ChannelInfo_set_capacity_sats(long this_ptr, long val);
4017         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
4018         public static native long ChannelInfo_get_announcement_message(long this_ptr);
4019         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
4020         public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
4021         // MUST_USE_RES struct LDKChannelInfo ChannelInfo_new(struct LDKChannelFeatures features_arg, struct LDKPublicKey node_one_arg, struct LDKDirectionalChannelInfo one_to_two_arg, struct LDKPublicKey node_two_arg, struct LDKDirectionalChannelInfo two_to_one_arg, struct LDKCOption_u64Z capacity_sats_arg, struct LDKChannelAnnouncement announcement_message_arg);
4022         public static native long ChannelInfo_new(long features_arg, byte[] node_one_arg, long one_to_two_arg, byte[] node_two_arg, long two_to_one_arg, long capacity_sats_arg, long announcement_message_arg);
4023         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
4024         public static native long ChannelInfo_clone(long orig);
4025         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
4026         public static native byte[] ChannelInfo_write(long obj);
4027         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
4028         public static native long ChannelInfo_read(byte[] ser);
4029         // void RoutingFees_free(struct LDKRoutingFees this_obj);
4030         public static native void RoutingFees_free(long this_obj);
4031         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
4032         public static native int RoutingFees_get_base_msat(long this_ptr);
4033         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
4034         public static native void RoutingFees_set_base_msat(long this_ptr, int val);
4035         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
4036         public static native int RoutingFees_get_proportional_millionths(long this_ptr);
4037         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
4038         public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
4039         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
4040         public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
4041         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
4042         public static native boolean RoutingFees_eq(long a, long b);
4043         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
4044         public static native long RoutingFees_clone(long orig);
4045         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
4046         public static native byte[] RoutingFees_write(long obj);
4047         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
4048         public static native long RoutingFees_read(byte[] ser);
4049         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
4050         public static native void NodeAnnouncementInfo_free(long this_obj);
4051         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
4052         public static native long NodeAnnouncementInfo_get_features(long this_ptr);
4053         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
4054         public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
4055         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
4056         public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
4057         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
4058         public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
4059         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
4060         public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
4061         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
4062         public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
4063         // const uint8_t (*NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[32];
4064         public static native byte[] NodeAnnouncementInfo_get_alias(long this_ptr);
4065         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
4066         public static native void NodeAnnouncementInfo_set_alias(long this_ptr, byte[] val);
4067         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
4068         public static native void NodeAnnouncementInfo_set_addresses(long this_ptr, long[] val);
4069         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
4070         public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
4071         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
4072         public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
4073         // 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);
4074         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);
4075         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
4076         public static native long NodeAnnouncementInfo_clone(long orig);
4077         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
4078         public static native byte[] NodeAnnouncementInfo_write(long obj);
4079         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
4080         public static native long NodeAnnouncementInfo_read(byte[] ser);
4081         // void NodeInfo_free(struct LDKNodeInfo this_obj);
4082         public static native void NodeInfo_free(long this_obj);
4083         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
4084         public static native void NodeInfo_set_channels(long this_ptr, long[] val);
4085         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
4086         public static native long NodeInfo_get_lowest_inbound_channel_fees(long this_ptr);
4087         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
4088         public static native void NodeInfo_set_lowest_inbound_channel_fees(long this_ptr, long val);
4089         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
4090         public static native long NodeInfo_get_announcement_info(long this_ptr);
4091         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
4092         public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
4093         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
4094         public static native long NodeInfo_new(long[] channels_arg, long lowest_inbound_channel_fees_arg, long announcement_info_arg);
4095         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
4096         public static native long NodeInfo_clone(long orig);
4097         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
4098         public static native byte[] NodeInfo_write(long obj);
4099         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
4100         public static native long NodeInfo_read(byte[] ser);
4101         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
4102         public static native byte[] NetworkGraph_write(long obj);
4103         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser);
4104         public static native long NetworkGraph_read(byte[] ser);
4105         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash);
4106         public static native long NetworkGraph_new(byte[] genesis_hash);
4107         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
4108         public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
4109         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg);
4110         public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
4111         // 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);
4112         public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long chain_access);
4113         // 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);
4114         public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long chain_access);
4115         // void NetworkGraph_close_channel_from_update(struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
4116         public static native void NetworkGraph_close_channel_from_update(long this_arg, long short_channel_id, boolean is_permanent);
4117         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
4118         public static native long NetworkGraph_update_channel(long this_arg, long msg);
4119         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
4120         public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
4121         // void FilesystemPersister_free(struct LDKFilesystemPersister this_obj);
4122         public static native void FilesystemPersister_free(long this_obj);
4123         // MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data);
4124         public static native long FilesystemPersister_new(String path_to_channel_data);
4125         // MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
4126         public static native String FilesystemPersister_get_data_dir(long this_arg);
4127         // MUST_USE_RES struct LDKCResult_NoneErrorZ FilesystemPersister_persist_manager(struct LDKStr data_dir, const struct LDKChannelManager *NONNULL_PTR manager);
4128         public static native long FilesystemPersister_persist_manager(String data_dir, long manager);
4129         // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKKeysInterface keys_manager);
4130         public static native long FilesystemPersister_read_channelmonitors(long this_arg, long keys_manager);
4131         // struct LDKPersist FilesystemPersister_as_Persist(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
4132         public static native long FilesystemPersister_as_Persist(long this_arg);
4133         // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
4134         public static native void BackgroundProcessor_free(long this_obj);
4135         // void ChannelManagerPersister_free(struct LDKChannelManagerPersister this_ptr);
4136         public static native void ChannelManagerPersister_free(long this_ptr);
4137         // MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKChannelManagerPersister persister, struct LDKEventHandler event_handler, const struct LDKChainMonitor *NONNULL_PTR chain_monitor, const struct LDKChannelManager *NONNULL_PTR channel_manager, const struct LDKPeerManager *NONNULL_PTR peer_manager, struct LDKLogger logger);
4138         public static native long BackgroundProcessor_start(long persister, long event_handler, long chain_monitor, long channel_manager, long peer_manager, long logger);
4139         // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
4140         public static native long BackgroundProcessor_stop(long this_arg);
4141         // void check_platform(void);
4142         public static native void check_platform();
4143         // void Invoice_free(struct LDKInvoice this_obj);
4144         public static native void Invoice_free(long this_obj);
4145         // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
4146         public static native boolean Invoice_eq(long a, long b);
4147         // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
4148         public static native long Invoice_clone(long orig);
4149         // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
4150         public static native void SignedRawInvoice_free(long this_obj);
4151         // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
4152         public static native boolean SignedRawInvoice_eq(long a, long b);
4153         // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
4154         public static native long SignedRawInvoice_clone(long orig);
4155         // void RawInvoice_free(struct LDKRawInvoice this_obj);
4156         public static native void RawInvoice_free(long this_obj);
4157         // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
4158         public static native long RawInvoice_get_data(long this_ptr);
4159         // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
4160         public static native void RawInvoice_set_data(long this_ptr, long val);
4161         // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
4162         public static native boolean RawInvoice_eq(long a, long b);
4163         // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
4164         public static native long RawInvoice_clone(long orig);
4165         // void RawDataPart_free(struct LDKRawDataPart this_obj);
4166         public static native void RawDataPart_free(long this_obj);
4167         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
4168         public static native long RawDataPart_get_timestamp(long this_ptr);
4169         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
4170         public static native void RawDataPart_set_timestamp(long this_ptr, long val);
4171         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
4172         public static native boolean RawDataPart_eq(long a, long b);
4173         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
4174         public static native long RawDataPart_clone(long orig);
4175         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
4176         public static native void PositiveTimestamp_free(long this_obj);
4177         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
4178         public static native boolean PositiveTimestamp_eq(long a, long b);
4179         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
4180         public static native long PositiveTimestamp_clone(long orig);
4181         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
4182         public static native SiPrefix SiPrefix_clone(long orig);
4183         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
4184         public static native boolean SiPrefix_eq(long a, long b);
4185         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
4186         public static native long SiPrefix_multiplier(long this_arg);
4187         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
4188         public static native Currency Currency_clone(long orig);
4189         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
4190         public static native boolean Currency_eq(long a, long b);
4191         // void Sha256_free(struct LDKSha256 this_obj);
4192         public static native void Sha256_free(long this_obj);
4193         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
4194         public static native boolean Sha256_eq(long a, long b);
4195         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
4196         public static native long Sha256_clone(long orig);
4197         // void Description_free(struct LDKDescription this_obj);
4198         public static native void Description_free(long this_obj);
4199         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
4200         public static native boolean Description_eq(long a, long b);
4201         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
4202         public static native long Description_clone(long orig);
4203         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
4204         public static native void PayeePubKey_free(long this_obj);
4205         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
4206         public static native boolean PayeePubKey_eq(long a, long b);
4207         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
4208         public static native long PayeePubKey_clone(long orig);
4209         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
4210         public static native void ExpiryTime_free(long this_obj);
4211         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
4212         public static native boolean ExpiryTime_eq(long a, long b);
4213         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
4214         public static native long ExpiryTime_clone(long orig);
4215         // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
4216         public static native void MinFinalCltvExpiry_free(long this_obj);
4217         // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
4218         public static native boolean MinFinalCltvExpiry_eq(long a, long b);
4219         // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
4220         public static native long MinFinalCltvExpiry_clone(long orig);
4221         // void Fallback_free(struct LDKFallback this_ptr);
4222         public static native void Fallback_free(long this_ptr);
4223         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
4224         public static native long Fallback_clone(long orig);
4225         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
4226         public static native boolean Fallback_eq(long a, long b);
4227         // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
4228         public static native void InvoiceSignature_free(long this_obj);
4229         // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
4230         public static native boolean InvoiceSignature_eq(long a, long b);
4231         // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
4232         public static native long InvoiceSignature_clone(long orig);
4233         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
4234         public static native void PrivateRoute_free(long this_obj);
4235         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
4236         public static native boolean PrivateRoute_eq(long a, long b);
4237         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
4238         public static native long PrivateRoute_clone(long orig);
4239         // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
4240         public static native long SignedRawInvoice_into_parts(long this_arg);
4241         // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
4242         public static native long SignedRawInvoice_raw_invoice(long this_arg);
4243         // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
4244         public static native byte[] SignedRawInvoice_hash(long this_arg);
4245         // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
4246         public static native long SignedRawInvoice_signature(long this_arg);
4247         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
4248         public static native long SignedRawInvoice_recover_payee_pub_key(long this_arg);
4249         // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
4250         public static native boolean SignedRawInvoice_check_signature(long this_arg);
4251         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4252         public static native byte[] RawInvoice_hash(long this_arg);
4253         // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4254         public static native long RawInvoice_payment_hash(long this_arg);
4255         // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4256         public static native long RawInvoice_description(long this_arg);
4257         // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4258         public static native long RawInvoice_payee_pub_key(long this_arg);
4259         // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4260         public static native long RawInvoice_description_hash(long this_arg);
4261         // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4262         public static native long RawInvoice_expiry_time(long this_arg);
4263         // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4264         public static native long RawInvoice_min_final_cltv_expiry(long this_arg);
4265         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4266         public static native byte[] RawInvoice_payment_secret(long this_arg);
4267         // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4268         public static native long RawInvoice_features(long this_arg);
4269         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4270         public static native long[] RawInvoice_private_routes(long this_arg);
4271         // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4272         public static native long RawInvoice_amount_pico_btc(long this_arg);
4273         // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
4274         public static native Currency RawInvoice_currency(long this_arg);
4275         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
4276         public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
4277         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
4278         public static native long PositiveTimestamp_from_system_time(long time);
4279         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
4280         public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
4281         // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
4282         public static native long PositiveTimestamp_as_time(long this_arg);
4283         // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
4284         public static native long Invoice_into_signed_raw(long this_arg);
4285         // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
4286         public static native long Invoice_check_signature(long this_arg);
4287         // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
4288         public static native long Invoice_from_signed(long signed_invoice);
4289         // MUST_USE_RES uint64_t Invoice_timestamp(const struct LDKInvoice *NONNULL_PTR this_arg);
4290         public static native long Invoice_timestamp(long this_arg);
4291         // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
4292         public static native byte[] Invoice_payment_hash(long this_arg);
4293         // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
4294         public static native byte[] Invoice_payee_pub_key(long this_arg);
4295         // MUST_USE_RES struct LDKThirtyTwoBytes Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg);
4296         public static native byte[] Invoice_payment_secret(long this_arg);
4297         // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
4298         public static native long Invoice_features(long this_arg);
4299         // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
4300         public static native byte[] Invoice_recover_payee_pub_key(long this_arg);
4301         // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
4302         public static native long Invoice_expiry_time(long this_arg);
4303         // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
4304         public static native long Invoice_min_final_cltv_expiry(long this_arg);
4305         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
4306         public static native long[] Invoice_private_routes(long this_arg);
4307         // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
4308         public static native long[] Invoice_route_hints(long this_arg);
4309         // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
4310         public static native Currency Invoice_currency(long this_arg);
4311         // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_pico_btc(const struct LDKInvoice *NONNULL_PTR this_arg);
4312         public static native long Invoice_amount_pico_btc(long this_arg);
4313         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
4314         public static native long Description_new(String description);
4315         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
4316         public static native String Description_into_inner(long this_arg);
4317         // MUST_USE_RES struct LDKCResult_ExpiryTimeCreationErrorZ ExpiryTime_from_seconds(uint64_t seconds);
4318         public static native long ExpiryTime_from_seconds(long seconds);
4319         // MUST_USE_RES struct LDKCResult_ExpiryTimeCreationErrorZ ExpiryTime_from_duration(uint64_t duration);
4320         public static native long ExpiryTime_from_duration(long duration);
4321         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
4322         public static native long ExpiryTime_as_seconds(long this_arg);
4323         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
4324         public static native long ExpiryTime_as_duration(long this_arg);
4325         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
4326         public static native long PrivateRoute_new(long hops);
4327         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
4328         public static native long PrivateRoute_into_inner(long this_arg);
4329         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
4330         public static native CreationError CreationError_clone(long orig);
4331         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
4332         public static native boolean CreationError_eq(long a, long b);
4333         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
4334         public static native String CreationError_to_str(long o);
4335         // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
4336         public static native SemanticError SemanticError_clone(long orig);
4337         // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
4338         public static native boolean SemanticError_eq(long a, long b);
4339         // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
4340         public static native String SemanticError_to_str(long o);
4341         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
4342         public static native void SignOrCreationError_free(long this_ptr);
4343         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
4344         public static native long SignOrCreationError_clone(long orig);
4345         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
4346         public static native boolean SignOrCreationError_eq(long a, long b);
4347         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
4348         public static native String SignOrCreationError_to_str(long o);
4349         // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description);
4350         public static native long create_invoice_from_channelmanager(long channelmanager, long keys_manager, Currency network, long amt_msat, String description);
4351         // struct LDKCResult_SiPrefixNoneZ SiPrefix_from_str(struct LDKStr s);
4352         public static native long SiPrefix_from_str(String s);
4353         // struct LDKCResult_InvoiceNoneZ Invoice_from_str(struct LDKStr s);
4354         public static native long Invoice_from_str(String s);
4355         // struct LDKCResult_SignedRawInvoiceNoneZ SignedRawInvoice_from_str(struct LDKStr s);
4356         public static native long SignedRawInvoice_from_str(String s);
4357         // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
4358         public static native String Invoice_to_str(long o);
4359         // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
4360         public static native String SignedRawInvoice_to_str(long o);
4361         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
4362         public static native String Currency_to_str(long o);
4363         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
4364         public static native String SiPrefix_to_str(long o);
4365 }