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