2 import org.ldk.enums.*;
3 import org.ldk.impl.version;
5 import java.io.InputStream;
6 import java.io.IOException;
7 import java.nio.file.Files;
8 import java.nio.file.Path;
9 import java.nio.file.StandardCopyOption;
11 public class bindings {
12 public static class VecOrSliceDef {
16 public VecOrSliceDef(long dataptr, long datalen, long stride) {
17 this.dataptr = dataptr; this.datalen = datalen; this.stride = stride;
22 // Try to load natively first, this works on Android and in testing.
23 System.loadLibrary("lightningjni");
24 } catch (UnsatisfiedLinkError system_load_err) {
25 // Otherwise try to load from the library jar.
26 File tmpdir = new File(System.getProperty("java.io.tmpdir"), "ldk-java-nativelib");
27 tmpdir.mkdir(); // If it fails to create, assume it was there already
28 tmpdir.deleteOnExit();
29 String libname = "liblightningjni_" + System.getProperty("os.name").replaceAll(" ", "") +
30 "-" + System.getProperty("os.arch").replaceAll(" ", "") + ".nativelib";
31 try (InputStream is = bindings.class.getResourceAsStream("/" + libname)) {
32 Path libpath = new File(tmpdir.toPath().toString(), "liblightningjni.so").toPath();
33 Files.copy(is, libpath, StandardCopyOption.REPLACE_EXISTING);
34 Runtime.getRuntime().load(libpath.toString());
35 } catch (Exception e) {
36 System.err.println("Failed to load LDK native library.");
37 System.err.println("System LDK native library load failed with: " + system_load_err);
38 System.err.println("Resource-based LDK native library load failed with: " + e);
39 throw new IllegalArgumentException(e);
42 init(java.lang.Enum.class, VecOrSliceDef.class);
44 if (!get_lib_version_string().equals(version.get_ldk_java_bindings_version()))
45 throw new IllegalArgumentException("Compiled LDK library and LDK class failes do not match");
46 // Fetching the LDK versions from C also checks that the header and binaries match
47 get_ldk_c_bindings_version();
50 static native void init(java.lang.Class c, java.lang.Class slicedef);
51 static native void init_class_cache();
52 static native String get_lib_version_string();
54 public static native String get_ldk_c_bindings_version();
55 public static native String get_ldk_version();
57 public static native boolean deref_bool(long ptr);
58 public static native long deref_long(long ptr);
59 public static native void free_heap_ptr(long ptr);
60 public static native byte[] read_bytes(long ptr, long len);
61 public static native byte[] get_u8_slice_bytes(long slice_ptr);
62 public static native long bytes_to_u8_vec(byte[] bytes);
63 public static native long new_txpointer_copy_data(byte[] txdata);
64 public static native void txpointer_free(long ptr);
65 public static native byte[] txpointer_get_buffer(long ptr);
66 public static native long vec_slice_len(long vec);
67 public static native long new_empty_slice_vec();
69 static { AccessError.values(); /* Force enum statics to run */ }
70 static { COption_NoneZ.values(); /* Force enum statics to run */ }
71 static { ChannelMonitorUpdateErr.values(); /* Force enum statics to run */ }
72 static { ConfirmationTarget.values(); /* Force enum statics to run */ }
73 static { CreationError.values(); /* Force enum statics to run */ }
74 static { Currency.values(); /* Force enum statics to run */ }
75 static { IOError.values(); /* Force enum statics to run */ }
76 static { Level.values(); /* Force enum statics to run */ }
77 static { Network.values(); /* Force enum statics to run */ }
78 static { Recipient.values(); /* Force enum statics to run */ }
79 static { Secp256k1Error.values(); /* Force enum statics to run */ }
80 static { SemanticError.values(); /* Force enum statics to run */ }
81 static { SiPrefix.values(); /* Force enum statics to run */ }
82 public static class LDKBech32Error {
83 private LDKBech32Error() {}
84 public final static class MissingSeparator extends LDKBech32Error {
85 MissingSeparator() { }
87 public final static class InvalidChecksum extends LDKBech32Error {
90 public final static class InvalidLength extends LDKBech32Error {
93 public final static class InvalidChar extends LDKBech32Error {
94 public int invalid_char;
95 InvalidChar(int invalid_char) { this.invalid_char = invalid_char; }
97 public final static class InvalidData extends LDKBech32Error {
98 public byte invalid_data;
99 InvalidData(byte invalid_data) { this.invalid_data = invalid_data; }
101 public final static class InvalidPadding extends LDKBech32Error {
104 public final static class MixedCase extends LDKBech32Error {
107 static native void init();
109 static { LDKBech32Error.init(); }
110 public static native LDKBech32Error LDKBech32Error_ref_from_ptr(long ptr);
111 // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
112 public static native byte[] TxOut_get_script_pubkey(long thing);
113 // uint64_t TxOut_get_value (struct LDKTxOut* thing)
114 public static native long TxOut_get_value(long thing);
115 // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
116 public static native void CResult_NoneNoneZ_get_ok(long owner);
117 // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
118 public static native void CResult_NoneNoneZ_get_err(long owner);
119 // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
120 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(long owner);
121 // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
122 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(long owner);
123 // struct LDKSecretKey CResult_SecretKeyErrorZ_get_ok(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
124 public static native byte[] CResult_SecretKeyErrorZ_get_ok(long owner);
125 // enum LDKSecp256k1Error CResult_SecretKeyErrorZ_get_err(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
126 public static native Secp256k1Error CResult_SecretKeyErrorZ_get_err(long owner);
127 // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
128 public static native byte[] CResult_PublicKeyErrorZ_get_ok(long owner);
129 // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
130 public static native Secp256k1Error CResult_PublicKeyErrorZ_get_err(long owner);
131 // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
132 public static native long CResult_TxCreationKeysDecodeErrorZ_get_ok(long owner);
133 // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
134 public static native long CResult_TxCreationKeysDecodeErrorZ_get_err(long owner);
135 // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
136 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_ok(long owner);
137 // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
138 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_err(long owner);
139 // struct LDKTxCreationKeys CResult_TxCreationKeysErrorZ_get_ok(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
140 public static native long CResult_TxCreationKeysErrorZ_get_ok(long owner);
141 // enum LDKSecp256k1Error CResult_TxCreationKeysErrorZ_get_err(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
142 public static native Secp256k1Error CResult_TxCreationKeysErrorZ_get_err(long owner);
143 public static class LDKCOption_u32Z {
144 private LDKCOption_u32Z() {}
145 public final static class Some extends LDKCOption_u32Z {
147 Some(int some) { this.some = some; }
149 public final static class None extends LDKCOption_u32Z {
152 static native void init();
154 static { LDKCOption_u32Z.init(); }
155 public static native LDKCOption_u32Z LDKCOption_u32Z_ref_from_ptr(long ptr);
156 // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
157 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long owner);
158 // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
159 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long owner);
160 // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
161 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
162 // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
163 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long owner);
164 // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
165 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
166 // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
167 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_err(long owner);
168 // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
169 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long owner);
170 // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
171 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long owner);
172 // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
173 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long owner);
174 // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
175 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long owner);
176 // struct LDKTrustedClosingTransaction *CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
177 public static native long CResult_TrustedClosingTransactionNoneZ_get_ok(long owner);
178 // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
179 public static native void CResult_TrustedClosingTransactionNoneZ_get_err(long owner);
180 // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
181 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_ok(long owner);
182 // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
183 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_err(long owner);
184 // struct LDKTrustedCommitmentTransaction *CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
185 public static native long CResult_TrustedCommitmentTransactionNoneZ_get_ok(long owner);
186 // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
187 public static native void CResult_TrustedCommitmentTransactionNoneZ_get_err(long owner);
188 // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
189 public static native byte[][] CResult_CVec_SignatureZNoneZ_get_ok(long owner);
190 // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
191 public static native void CResult_CVec_SignatureZNoneZ_get_err(long owner);
192 // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
193 public static native long CResult_ShutdownScriptDecodeErrorZ_get_ok(long owner);
194 // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
195 public static native long CResult_ShutdownScriptDecodeErrorZ_get_err(long owner);
196 // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
197 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(long owner);
198 // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
199 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(long owner);
200 // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
201 public static native void CResult_NoneErrorZ_get_ok(long owner);
202 // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
203 public static native IOError CResult_NoneErrorZ_get_err(long owner);
204 // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
205 public static native long CResult_RouteHopDecodeErrorZ_get_ok(long owner);
206 // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
207 public static native long CResult_RouteHopDecodeErrorZ_get_err(long owner);
208 // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
209 public static native long CResult_RouteDecodeErrorZ_get_ok(long owner);
210 // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
211 public static native long CResult_RouteDecodeErrorZ_get_err(long owner);
212 // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
213 public static native long CResult_RouteParametersDecodeErrorZ_get_ok(long owner);
214 // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
215 public static native long CResult_RouteParametersDecodeErrorZ_get_err(long owner);
216 public static class LDKCOption_u64Z {
217 private LDKCOption_u64Z() {}
218 public final static class Some extends LDKCOption_u64Z {
220 Some(long some) { this.some = some; }
222 public final static class None extends LDKCOption_u64Z {
225 static native void init();
227 static { LDKCOption_u64Z.init(); }
228 public static native LDKCOption_u64Z LDKCOption_u64Z_ref_from_ptr(long ptr);
229 // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
230 public static native long CResult_PaymentParametersDecodeErrorZ_get_ok(long owner);
231 // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
232 public static native long CResult_PaymentParametersDecodeErrorZ_get_err(long owner);
233 // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
234 public static native long CResult_RouteHintDecodeErrorZ_get_ok(long owner);
235 // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
236 public static native long CResult_RouteHintDecodeErrorZ_get_err(long owner);
237 // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
238 public static native long CResult_RouteHintHopDecodeErrorZ_get_ok(long owner);
239 // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
240 public static native long CResult_RouteHintHopDecodeErrorZ_get_err(long owner);
241 // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
242 public static native long CResult_RouteLightningErrorZ_get_ok(long owner);
243 // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
244 public static native long CResult_RouteLightningErrorZ_get_err(long owner);
245 public static class LDKPaymentPurpose {
246 private LDKPaymentPurpose() {}
247 public final static class InvoicePayment extends LDKPaymentPurpose {
248 public byte[] payment_preimage;
249 public byte[] payment_secret;
250 InvoicePayment(byte[] payment_preimage, byte[] payment_secret) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; }
252 public final static class SpontaneousPayment extends LDKPaymentPurpose {
253 public byte[] spontaneous_payment;
254 SpontaneousPayment(byte[] spontaneous_payment) { this.spontaneous_payment = spontaneous_payment; }
256 static native void init();
258 static { LDKPaymentPurpose.init(); }
259 public static native LDKPaymentPurpose LDKPaymentPurpose_ref_from_ptr(long ptr);
260 // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
261 public static native long CResult_PaymentPurposeDecodeErrorZ_get_ok(long owner);
262 // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
263 public static native long CResult_PaymentPurposeDecodeErrorZ_get_err(long owner);
264 public static class LDKClosureReason {
265 private LDKClosureReason() {}
266 public final static class CounterpartyForceClosed extends LDKClosureReason {
267 public java.lang.String peer_msg;
268 CounterpartyForceClosed(java.lang.String peer_msg) { this.peer_msg = peer_msg; }
270 public final static class HolderForceClosed extends LDKClosureReason {
271 HolderForceClosed() { }
273 public final static class CooperativeClosure extends LDKClosureReason {
274 CooperativeClosure() { }
276 public final static class CommitmentTxConfirmed extends LDKClosureReason {
277 CommitmentTxConfirmed() { }
279 public final static class FundingTimedOut extends LDKClosureReason {
280 FundingTimedOut() { }
282 public final static class ProcessingError extends LDKClosureReason {
283 public java.lang.String err;
284 ProcessingError(java.lang.String err) { this.err = err; }
286 public final static class DisconnectedPeer extends LDKClosureReason {
287 DisconnectedPeer() { }
289 public final static class OutdatedChannelManager extends LDKClosureReason {
290 OutdatedChannelManager() { }
292 static native void init();
294 static { LDKClosureReason.init(); }
295 public static native LDKClosureReason LDKClosureReason_ref_from_ptr(long ptr);
296 public static class LDKCOption_ClosureReasonZ {
297 private LDKCOption_ClosureReasonZ() {}
298 public final static class Some extends LDKCOption_ClosureReasonZ {
300 Some(long some) { this.some = some; }
302 public final static class None extends LDKCOption_ClosureReasonZ {
305 static native void init();
307 static { LDKCOption_ClosureReasonZ.init(); }
308 public static native LDKCOption_ClosureReasonZ LDKCOption_ClosureReasonZ_ref_from_ptr(long ptr);
309 // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
310 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(long owner);
311 // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
312 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_err(long owner);
313 public static class LDKNetworkUpdate {
314 private LDKNetworkUpdate() {}
315 public final static class ChannelUpdateMessage extends LDKNetworkUpdate {
317 ChannelUpdateMessage(long msg) { this.msg = msg; }
319 public final static class ChannelFailure extends LDKNetworkUpdate {
320 public long short_channel_id;
321 public boolean is_permanent;
322 ChannelFailure(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
324 public final static class NodeFailure extends LDKNetworkUpdate {
325 public byte[] node_id;
326 public boolean is_permanent;
327 NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
329 static native void init();
331 static { LDKNetworkUpdate.init(); }
332 public static native LDKNetworkUpdate LDKNetworkUpdate_ref_from_ptr(long ptr);
333 public static class LDKCOption_NetworkUpdateZ {
334 private LDKCOption_NetworkUpdateZ() {}
335 public final static class Some extends LDKCOption_NetworkUpdateZ {
337 Some(long some) { this.some = some; }
339 public final static class None extends LDKCOption_NetworkUpdateZ {
342 static native void init();
344 static { LDKCOption_NetworkUpdateZ.init(); }
345 public static native LDKCOption_NetworkUpdateZ LDKCOption_NetworkUpdateZ_ref_from_ptr(long ptr);
346 public static class LDKSpendableOutputDescriptor {
347 private LDKSpendableOutputDescriptor() {}
348 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
349 public long outpoint;
351 StaticOutput(long outpoint, long output) { this.outpoint = outpoint; this.output = output; }
353 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
354 public long delayed_payment_output;
355 DelayedPaymentOutput(long delayed_payment_output) { this.delayed_payment_output = delayed_payment_output; }
357 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
358 public long static_payment_output;
359 StaticPaymentOutput(long static_payment_output) { this.static_payment_output = static_payment_output; }
361 static native void init();
363 static { LDKSpendableOutputDescriptor.init(); }
364 public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
365 public static class LDKEvent {
366 private LDKEvent() {}
367 public final static class FundingGenerationReady extends LDKEvent {
368 public byte[] temporary_channel_id;
369 public byte[] counterparty_node_id;
370 public long channel_value_satoshis;
371 public byte[] output_script;
372 public long user_channel_id;
373 FundingGenerationReady(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, long user_channel_id) { this.temporary_channel_id = temporary_channel_id; this.counterparty_node_id = counterparty_node_id; this.channel_value_satoshis = channel_value_satoshis; this.output_script = output_script; this.user_channel_id = user_channel_id; }
375 public final static class PaymentReceived extends LDKEvent {
376 public byte[] payment_hash;
377 public long amount_msat;
379 PaymentReceived(byte[] payment_hash, long amount_msat, long purpose) { this.payment_hash = payment_hash; this.amount_msat = amount_msat; this.purpose = purpose; }
381 public final static class PaymentClaimed extends LDKEvent {
382 public byte[] payment_hash;
383 public long amount_msat;
385 PaymentClaimed(byte[] payment_hash, long amount_msat, long purpose) { this.payment_hash = payment_hash; this.amount_msat = amount_msat; this.purpose = purpose; }
387 public final static class PaymentSent extends LDKEvent {
388 public byte[] payment_id;
389 public byte[] payment_preimage;
390 public byte[] payment_hash;
391 public long fee_paid_msat;
392 PaymentSent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat) { this.payment_id = payment_id; this.payment_preimage = payment_preimage; this.payment_hash = payment_hash; this.fee_paid_msat = fee_paid_msat; }
394 public final static class PaymentFailed extends LDKEvent {
395 public byte[] payment_id;
396 public byte[] payment_hash;
397 PaymentFailed(byte[] payment_id, byte[] payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
399 public final static class PaymentPathSuccessful extends LDKEvent {
400 public byte[] payment_id;
401 public byte[] payment_hash;
403 PaymentPathSuccessful(byte[] payment_id, byte[] payment_hash, long[] path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
405 public final static class PaymentPathFailed extends LDKEvent {
406 public byte[] payment_id;
407 public byte[] payment_hash;
408 public boolean rejected_by_dest;
409 public long network_update;
410 public boolean all_paths_failed;
412 public long short_channel_id;
414 PaymentPathFailed(byte[] payment_id, byte[] payment_hash, boolean rejected_by_dest, long network_update, boolean all_paths_failed, long[] path, long short_channel_id, long retry) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.rejected_by_dest = rejected_by_dest; this.network_update = network_update; this.all_paths_failed = all_paths_failed; this.path = path; this.short_channel_id = short_channel_id; this.retry = retry; }
416 public final static class PendingHTLCsForwardable extends LDKEvent {
417 public long time_forwardable;
418 PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
420 public final static class SpendableOutputs extends LDKEvent {
421 public long[] outputs;
422 SpendableOutputs(long[] outputs) { this.outputs = outputs; }
424 public final static class PaymentForwarded extends LDKEvent {
425 public byte[] prev_channel_id;
426 public byte[] next_channel_id;
427 public long fee_earned_msat;
428 public boolean claim_from_onchain_tx;
429 PaymentForwarded(byte[] prev_channel_id, byte[] next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx) { this.prev_channel_id = prev_channel_id; this.next_channel_id = next_channel_id; this.fee_earned_msat = fee_earned_msat; this.claim_from_onchain_tx = claim_from_onchain_tx; }
431 public final static class ChannelClosed extends LDKEvent {
432 public byte[] channel_id;
433 public long user_channel_id;
435 ChannelClosed(byte[] channel_id, long user_channel_id, long reason) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.reason = reason; }
437 public final static class DiscardFunding extends LDKEvent {
438 public byte[] channel_id;
439 public byte[] transaction;
440 DiscardFunding(byte[] channel_id, byte[] transaction) { this.channel_id = channel_id; this.transaction = transaction; }
442 public final static class OpenChannelRequest extends LDKEvent {
443 public byte[] temporary_channel_id;
444 public byte[] counterparty_node_id;
445 public long funding_satoshis;
446 public long push_msat;
447 public long channel_type;
448 OpenChannelRequest(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, long channel_type) { this.temporary_channel_id = temporary_channel_id; this.counterparty_node_id = counterparty_node_id; this.funding_satoshis = funding_satoshis; this.push_msat = push_msat; this.channel_type = channel_type; }
450 static native void init();
452 static { LDKEvent.init(); }
453 public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
454 public static class LDKCOption_EventZ {
455 private LDKCOption_EventZ() {}
456 public final static class Some extends LDKCOption_EventZ {
458 Some(long some) { this.some = some; }
460 public final static class None extends LDKCOption_EventZ {
463 static native void init();
465 static { LDKCOption_EventZ.init(); }
466 public static native LDKCOption_EventZ LDKCOption_EventZ_ref_from_ptr(long ptr);
467 // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
468 public static native long CResult_COption_EventZDecodeErrorZ_get_ok(long owner);
469 // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
470 public static native long CResult_COption_EventZDecodeErrorZ_get_err(long owner);
471 public static class LDKErrorAction {
472 private LDKErrorAction() {}
473 public final static class DisconnectPeer extends LDKErrorAction {
475 DisconnectPeer(long msg) { this.msg = msg; }
477 public final static class IgnoreError extends LDKErrorAction {
480 public final static class IgnoreAndLog extends LDKErrorAction {
481 public org.ldk.enums.Level ignore_and_log;
482 IgnoreAndLog(org.ldk.enums.Level ignore_and_log) { this.ignore_and_log = ignore_and_log; }
484 public final static class IgnoreDuplicateGossip extends LDKErrorAction {
485 IgnoreDuplicateGossip() { }
487 public final static class SendErrorMessage extends LDKErrorAction {
489 SendErrorMessage(long msg) { this.msg = msg; }
491 public final static class SendWarningMessage extends LDKErrorAction {
493 public org.ldk.enums.Level log_level;
494 SendWarningMessage(long msg, org.ldk.enums.Level log_level) { this.msg = msg; this.log_level = log_level; }
496 static native void init();
498 static { LDKErrorAction.init(); }
499 public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
500 public static class LDKMessageSendEvent {
501 private LDKMessageSendEvent() {}
502 public final static class SendAcceptChannel extends LDKMessageSendEvent {
503 public byte[] node_id;
505 SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
507 public final static class SendOpenChannel extends LDKMessageSendEvent {
508 public byte[] node_id;
510 SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
512 public final static class SendFundingCreated extends LDKMessageSendEvent {
513 public byte[] node_id;
515 SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
517 public final static class SendFundingSigned extends LDKMessageSendEvent {
518 public byte[] node_id;
520 SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
522 public final static class SendChannelReady extends LDKMessageSendEvent {
523 public byte[] node_id;
525 SendChannelReady(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
527 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
528 public byte[] node_id;
530 SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
532 public final static class UpdateHTLCs extends LDKMessageSendEvent {
533 public byte[] node_id;
535 UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
537 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
538 public byte[] node_id;
540 SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
542 public final static class SendClosingSigned extends LDKMessageSendEvent {
543 public byte[] node_id;
545 SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
547 public final static class SendShutdown extends LDKMessageSendEvent {
548 public byte[] node_id;
550 SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
552 public final static class SendChannelReestablish extends LDKMessageSendEvent {
553 public byte[] node_id;
555 SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
557 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
559 public long update_msg;
560 BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
562 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
564 BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
566 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
568 BroadcastChannelUpdate(long msg) { this.msg = msg; }
570 public final static class SendChannelUpdate extends LDKMessageSendEvent {
571 public byte[] node_id;
573 SendChannelUpdate(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
575 public final static class HandleError extends LDKMessageSendEvent {
576 public byte[] node_id;
578 HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
580 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
581 public byte[] node_id;
583 SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
585 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
586 public byte[] node_id;
588 SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
590 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
591 public byte[] node_id;
593 SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
595 public final static class SendGossipTimestampFilter extends LDKMessageSendEvent {
596 public byte[] node_id;
598 SendGossipTimestampFilter(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
600 static native void init();
602 static { LDKMessageSendEvent.init(); }
603 public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
604 // struct LDKTxOut CResult_TxOutAccessErrorZ_get_ok(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
605 public static native long CResult_TxOutAccessErrorZ_get_ok(long owner);
606 // enum LDKAccessError CResult_TxOutAccessErrorZ_get_err(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
607 public static native AccessError CResult_TxOutAccessErrorZ_get_err(long owner);
608 // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
609 public static native long C2Tuple_usizeTransactionZ_get_a(long owner);
610 // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
611 public static native byte[] C2Tuple_usizeTransactionZ_get_b(long owner);
612 // void CResult_NoneChannelMonitorUpdateErrZ_get_ok(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
613 public static native void CResult_NoneChannelMonitorUpdateErrZ_get_ok(long owner);
614 // enum LDKChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
615 public static native ChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(long owner);
616 public static class LDKMonitorEvent {
617 private LDKMonitorEvent() {}
618 public final static class HTLCEvent extends LDKMonitorEvent {
619 public long htlc_event;
620 HTLCEvent(long htlc_event) { this.htlc_event = htlc_event; }
622 public final static class CommitmentTxConfirmed extends LDKMonitorEvent {
623 public long commitment_tx_confirmed;
624 CommitmentTxConfirmed(long commitment_tx_confirmed) { this.commitment_tx_confirmed = commitment_tx_confirmed; }
626 public final static class UpdateCompleted extends LDKMonitorEvent {
627 public long funding_txo;
628 public long monitor_update_id;
629 UpdateCompleted(long funding_txo, long monitor_update_id) { this.funding_txo = funding_txo; this.monitor_update_id = monitor_update_id; }
631 public final static class UpdateFailed extends LDKMonitorEvent {
632 public long update_failed;
633 UpdateFailed(long update_failed) { this.update_failed = update_failed; }
635 static native void init();
637 static { LDKMonitorEvent.init(); }
638 public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
639 // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorEventZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
640 public static native long C2Tuple_OutPointCVec_MonitorEventZZ_get_a(long owner);
641 // struct LDKCVec_MonitorEventZ C2Tuple_OutPointCVec_MonitorEventZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
642 public static native long[] C2Tuple_OutPointCVec_MonitorEventZZ_get_b(long owner);
643 public static class LDKCOption_C2Tuple_usizeTransactionZZ {
644 private LDKCOption_C2Tuple_usizeTransactionZZ() {}
645 public final static class Some extends LDKCOption_C2Tuple_usizeTransactionZZ {
647 Some(long some) { this.some = some; }
649 public final static class None extends LDKCOption_C2Tuple_usizeTransactionZZ {
652 static native void init();
654 static { LDKCOption_C2Tuple_usizeTransactionZZ.init(); }
655 public static native LDKCOption_C2Tuple_usizeTransactionZZ LDKCOption_C2Tuple_usizeTransactionZZ_ref_from_ptr(long ptr);
656 // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
657 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(long owner);
658 // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
659 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_err(long owner);
660 // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
661 public static native long C2Tuple_u64u64Z_get_a(long owner);
662 // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
663 public static native long C2Tuple_u64u64Z_get_b(long owner);
664 public static class LDKCOption_C2Tuple_u64u64ZZ {
665 private LDKCOption_C2Tuple_u64u64ZZ() {}
666 public final static class Some extends LDKCOption_C2Tuple_u64u64ZZ {
668 Some(long some) { this.some = some; }
670 public final static class None extends LDKCOption_C2Tuple_u64u64ZZ {
673 static native void init();
675 static { LDKCOption_C2Tuple_u64u64ZZ.init(); }
676 public static native LDKCOption_C2Tuple_u64u64ZZ LDKCOption_C2Tuple_u64u64ZZ_ref_from_ptr(long ptr);
677 public interface LDKLogger {
678 void log(long record);
680 public static native long LDKLogger_new(LDKLogger impl);
681 // struct LDKProbabilisticScorer *CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
682 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_ok(long owner);
683 // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
684 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_err(long owner);
685 // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
686 public static native long CResult_InitFeaturesDecodeErrorZ_get_ok(long owner);
687 // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
688 public static native long CResult_InitFeaturesDecodeErrorZ_get_err(long owner);
689 // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
690 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_ok(long owner);
691 // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
692 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_err(long owner);
693 // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
694 public static native long CResult_NodeFeaturesDecodeErrorZ_get_ok(long owner);
695 // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
696 public static native long CResult_NodeFeaturesDecodeErrorZ_get_err(long owner);
697 // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
698 public static native long CResult_InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
699 // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
700 public static native long CResult_InvoiceFeaturesDecodeErrorZ_get_err(long owner);
701 // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
702 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(long owner);
703 // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
704 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(long owner);
705 // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
706 public static native long CResult_NodeIdDecodeErrorZ_get_ok(long owner);
707 // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
708 public static native long CResult_NodeIdDecodeErrorZ_get_err(long owner);
709 // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
710 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(long owner);
711 // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
712 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(long owner);
713 public interface LDKAccess {
714 long get_utxo(byte[] genesis_hash, long short_channel_id);
716 public static native long LDKAccess_new(LDKAccess impl);
717 // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
718 public static native long Access_get_utxo(long this_arg, byte[] genesis_hash, long short_channel_id);
719 public static class LDKCOption_AccessZ {
720 private LDKCOption_AccessZ() {}
721 public final static class Some extends LDKCOption_AccessZ {
723 Some(long some) { this.some = some; }
725 public final static class None extends LDKCOption_AccessZ {
728 static native void init();
730 static { LDKCOption_AccessZ.init(); }
731 public static native LDKCOption_AccessZ LDKCOption_AccessZ_ref_from_ptr(long ptr);
732 // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
733 public static native boolean CResult_boolLightningErrorZ_get_ok(long owner);
734 // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
735 public static native long CResult_boolLightningErrorZ_get_err(long owner);
736 // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
737 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long owner);
738 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
739 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long owner);
740 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
741 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long owner);
742 // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
743 public static native void CResult_NoneLightningErrorZ_get_ok(long owner);
744 // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
745 public static native long CResult_NoneLightningErrorZ_get_err(long owner);
746 // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
747 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(long owner);
748 // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
749 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_err(long owner);
750 // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
751 public static native long CResult_ChannelInfoDecodeErrorZ_get_ok(long owner);
752 // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
753 public static native long CResult_ChannelInfoDecodeErrorZ_get_err(long owner);
754 // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
755 public static native long CResult_RoutingFeesDecodeErrorZ_get_ok(long owner);
756 // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
757 public static native long CResult_RoutingFeesDecodeErrorZ_get_err(long owner);
758 public static class LDKNetAddress {
759 private LDKNetAddress() {}
760 public final static class IPv4 extends LDKNetAddress {
763 IPv4(byte[] addr, short port) { this.addr = addr; this.port = port; }
765 public final static class IPv6 extends LDKNetAddress {
768 IPv6(byte[] addr, short port) { this.addr = addr; this.port = port; }
770 public final static class OnionV2 extends LDKNetAddress {
771 public byte[] onion_v2;
772 OnionV2(byte[] onion_v2) { this.onion_v2 = onion_v2; }
774 public final static class OnionV3 extends LDKNetAddress {
775 public byte[] ed25519_pubkey;
776 public short checksum;
779 OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
781 static native void init();
783 static { LDKNetAddress.init(); }
784 public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
785 // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
786 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long owner);
787 // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
788 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long owner);
789 // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
790 public static native long CResult_NodeAliasDecodeErrorZ_get_ok(long owner);
791 // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
792 public static native long CResult_NodeAliasDecodeErrorZ_get_err(long owner);
793 // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
794 public static native long CResult_NodeInfoDecodeErrorZ_get_ok(long owner);
795 // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
796 public static native long CResult_NodeInfoDecodeErrorZ_get_err(long owner);
797 // struct LDKNetworkGraph *CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
798 public static native long CResult_NetworkGraphDecodeErrorZ_get_ok(long owner);
799 // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
800 public static native long CResult_NetworkGraphDecodeErrorZ_get_err(long owner);
801 public static class LDKCOption_CVec_NetAddressZZ {
802 private LDKCOption_CVec_NetAddressZZ() {}
803 public final static class Some extends LDKCOption_CVec_NetAddressZZ {
805 Some(long[] some) { this.some = some; }
807 public final static class None extends LDKCOption_CVec_NetAddressZZ {
810 static native void init();
812 static { LDKCOption_CVec_NetAddressZZ.init(); }
813 public static native LDKCOption_CVec_NetAddressZZ LDKCOption_CVec_NetAddressZZ_ref_from_ptr(long ptr);
814 // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
815 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
816 // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
817 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
818 // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
819 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
820 // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
821 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
822 // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
823 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long owner);
824 // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
825 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long owner);
826 // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
827 public static native byte[] C2Tuple_SignatureCVec_SignatureZZ_get_a(long owner);
828 // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
829 public static native byte[][] C2Tuple_SignatureCVec_SignatureZZ_get_b(long owner);
830 // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
831 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(long owner);
832 // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
833 public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(long owner);
834 // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
835 public static native byte[] CResult_SignatureNoneZ_get_ok(long owner);
836 // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
837 public static native void CResult_SignatureNoneZ_get_err(long owner);
838 // struct LDKSignature C2Tuple_SignatureSignatureZ_get_a(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
839 public static native byte[] C2Tuple_SignatureSignatureZ_get_a(long owner);
840 // struct LDKSignature C2Tuple_SignatureSignatureZ_get_b(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
841 public static native byte[] C2Tuple_SignatureSignatureZ_get_b(long owner);
842 // struct LDKC2Tuple_SignatureSignatureZ CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
843 public static native long CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(long owner);
844 // void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
845 public static native void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(long owner);
846 // struct LDKSecretKey CResult_SecretKeyNoneZ_get_ok(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
847 public static native byte[] CResult_SecretKeyNoneZ_get_ok(long owner);
848 // void CResult_SecretKeyNoneZ_get_err(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
849 public static native void CResult_SecretKeyNoneZ_get_err(long owner);
850 public interface LDKBaseSign {
851 byte[] get_per_commitment_point(long idx);
852 byte[] release_commitment_secret(long idx);
853 long validate_holder_commitment(long holder_tx, byte[][] preimages);
854 byte[] channel_keys_id();
855 long sign_counterparty_commitment(long commitment_tx, byte[][] preimages);
856 long validate_counterparty_revocation(long idx, byte[] secret);
857 long sign_holder_commitment_and_htlcs(long commitment_tx);
858 long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
859 long sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
860 long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
861 long sign_closing_transaction(long closing_tx);
862 long sign_channel_announcement(long msg);
863 void ready_channel(long channel_parameters);
865 public static native long LDKBaseSign_new(LDKBaseSign impl, long pubkeys);
866 // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
867 public static native byte[] BaseSign_get_per_commitment_point(long this_arg, long idx);
868 // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
869 public static native byte[] BaseSign_release_commitment_secret(long this_arg, long idx);
870 // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
871 public static native long BaseSign_validate_holder_commitment(long this_arg, long holder_tx, byte[][] preimages);
872 // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
873 public static native byte[] BaseSign_channel_keys_id(long this_arg);
874 // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
875 public static native long BaseSign_sign_counterparty_commitment(long this_arg, long commitment_tx, byte[][] preimages);
876 // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
877 public static native long BaseSign_validate_counterparty_revocation(long this_arg, long idx, byte[] secret);
878 // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
879 public static native long BaseSign_sign_holder_commitment_and_htlcs(long this_arg, long commitment_tx);
880 // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_output LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
881 public static native long BaseSign_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
882 // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_htlc LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
883 public static native long BaseSign_sign_justice_revoked_htlc(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
884 // LDKCResult_SignatureNoneZ BaseSign_sign_counterparty_htlc_transaction LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
885 public static native long BaseSign_sign_counterparty_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
886 // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
887 public static native long BaseSign_sign_closing_transaction(long this_arg, long closing_tx);
888 // LDKCResult_C2Tuple_SignatureSignatureZNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
889 public static native long BaseSign_sign_channel_announcement(long this_arg, long msg);
890 // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
891 public static native void BaseSign_ready_channel(long this_arg, long channel_parameters);
892 // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
893 public static native long BaseSign_get_pubkeys(long this_arg);
894 public interface LDKSign {
897 public static native long LDKSign_new(LDKSign impl, LDKBaseSign BaseSign, long pubkeys);
898 public static native long LDKSign_get_BaseSign(long arg);
899 // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
900 public static native byte[] Sign_write(long this_arg);
901 // struct LDKSign CResult_SignDecodeErrorZ_get_ok(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
902 public static native long CResult_SignDecodeErrorZ_get_ok(long owner);
903 // struct LDKDecodeError CResult_SignDecodeErrorZ_get_err(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
904 public static native long CResult_SignDecodeErrorZ_get_err(long owner);
905 // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
906 public static native byte[] CResult_RecoverableSignatureNoneZ_get_ok(long owner);
907 // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
908 public static native void CResult_RecoverableSignatureNoneZ_get_err(long owner);
909 // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
910 public static native byte[][] CResult_CVec_CVec_u8ZZNoneZ_get_ok(long owner);
911 // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
912 public static native void CResult_CVec_CVec_u8ZZNoneZ_get_err(long owner);
913 // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
914 public static native long CResult_InMemorySignerDecodeErrorZ_get_ok(long owner);
915 // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
916 public static native long CResult_InMemorySignerDecodeErrorZ_get_err(long owner);
917 // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
918 public static native byte[] CResult_TransactionNoneZ_get_ok(long owner);
919 // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
920 public static native void CResult_TransactionNoneZ_get_err(long owner);
921 // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
922 public static native byte[] C2Tuple_BlockHashChannelMonitorZ_get_a(long owner);
923 // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
924 public static native long C2Tuple_BlockHashChannelMonitorZ_get_b(long owner);
925 // struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR owner);
926 public static native long[] CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(long owner);
927 // enum LDKIOError CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR owner);
928 public static native IOError CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(long owner);
929 public static class LDKCOption_u16Z {
930 private LDKCOption_u16Z() {}
931 public final static class Some extends LDKCOption_u16Z {
933 Some(short some) { this.some = some; }
935 public final static class None extends LDKCOption_u16Z {
938 static native void init();
940 static { LDKCOption_u16Z.init(); }
941 public static native LDKCOption_u16Z LDKCOption_u16Z_ref_from_ptr(long ptr);
942 public static class LDKAPIError {
943 private LDKAPIError() {}
944 public final static class APIMisuseError extends LDKAPIError {
945 public java.lang.String err;
946 APIMisuseError(java.lang.String err) { this.err = err; }
948 public final static class FeeRateTooHigh extends LDKAPIError {
949 public java.lang.String err;
951 FeeRateTooHigh(java.lang.String err, int feerate) { this.err = err; this.feerate = feerate; }
953 public final static class RouteError extends LDKAPIError {
954 public java.lang.String err;
955 RouteError(java.lang.String err) { this.err = err; }
957 public final static class ChannelUnavailable extends LDKAPIError {
958 public java.lang.String err;
959 ChannelUnavailable(java.lang.String err) { this.err = err; }
961 public final static class MonitorUpdateFailed extends LDKAPIError {
962 MonitorUpdateFailed() { }
964 public final static class IncompatibleShutdownScript extends LDKAPIError {
966 IncompatibleShutdownScript(long script) { this.script = script; }
968 static native void init();
970 static { LDKAPIError.init(); }
971 public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
972 // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
973 public static native void CResult_NoneAPIErrorZ_get_ok(long owner);
974 // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
975 public static native long CResult_NoneAPIErrorZ_get_err(long owner);
976 // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
977 public static native byte[] CResult__u832APIErrorZ_get_ok(long owner);
978 // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
979 public static native long CResult__u832APIErrorZ_get_err(long owner);
980 public static class LDKPaymentSendFailure {
981 private LDKPaymentSendFailure() {}
982 public final static class ParameterError extends LDKPaymentSendFailure {
983 public long parameter_error;
984 ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
986 public final static class PathParameterError extends LDKPaymentSendFailure {
987 public long[] path_parameter_error;
988 PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
990 public final static class AllFailedRetrySafe extends LDKPaymentSendFailure {
991 public long[] all_failed_retry_safe;
992 AllFailedRetrySafe(long[] all_failed_retry_safe) { this.all_failed_retry_safe = all_failed_retry_safe; }
994 public final static class PartialFailure extends LDKPaymentSendFailure {
995 public long[] results;
996 public long failed_paths_retry;
997 public byte[] payment_id;
998 PartialFailure(long[] results, long failed_paths_retry, byte[] payment_id) { this.results = results; this.failed_paths_retry = failed_paths_retry; this.payment_id = payment_id; }
1000 static native void init();
1002 static { LDKPaymentSendFailure.init(); }
1003 public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
1004 // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentSendFailureZ_get_ok(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
1005 public static native byte[] CResult_PaymentIdPaymentSendFailureZ_get_ok(long owner);
1006 // struct LDKPaymentSendFailure CResult_PaymentIdPaymentSendFailureZ_get_err(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
1007 public static native long CResult_PaymentIdPaymentSendFailureZ_get_err(long owner);
1008 // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1009 public static native void CResult_NonePaymentSendFailureZ_get_ok(long owner);
1010 // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1011 public static native long CResult_NonePaymentSendFailureZ_get_err(long owner);
1012 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
1013 public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_a(long owner);
1014 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
1015 public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_b(long owner);
1016 // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
1017 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(long owner);
1018 // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
1019 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(long owner);
1020 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
1021 public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_a(long owner);
1022 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
1023 public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_b(long owner);
1024 // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
1025 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(long owner);
1026 // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
1027 public static native void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(long owner);
1028 // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
1029 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(long owner);
1030 // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
1031 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(long owner);
1032 // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
1033 public static native byte[] CResult_PaymentSecretNoneZ_get_ok(long owner);
1034 // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
1035 public static native void CResult_PaymentSecretNoneZ_get_err(long owner);
1036 // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
1037 public static native byte[] CResult_PaymentSecretAPIErrorZ_get_ok(long owner);
1038 // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
1039 public static native long CResult_PaymentSecretAPIErrorZ_get_err(long owner);
1040 // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
1041 public static native byte[] CResult_PaymentPreimageAPIErrorZ_get_ok(long owner);
1042 // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
1043 public static native long CResult_PaymentPreimageAPIErrorZ_get_err(long owner);
1044 // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1045 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(long owner);
1046 // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1047 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(long owner);
1048 // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1049 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_ok(long owner);
1050 // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1051 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_err(long owner);
1052 // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1053 public static native long CResult_ChannelDetailsDecodeErrorZ_get_ok(long owner);
1054 // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1055 public static native long CResult_ChannelDetailsDecodeErrorZ_get_err(long owner);
1056 // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1057 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_ok(long owner);
1058 // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1059 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_err(long owner);
1060 public interface LDKWatch {
1061 long watch_channel(long funding_txo, long monitor);
1062 long update_channel(long funding_txo, long update);
1063 long[] release_pending_monitor_events();
1065 public static native long LDKWatch_new(LDKWatch impl);
1066 // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
1067 public static native long Watch_watch_channel(long this_arg, long funding_txo, long monitor);
1068 // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
1069 public static native long Watch_update_channel(long this_arg, long funding_txo, long update);
1070 // LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
1071 public static native long[] Watch_release_pending_monitor_events(long this_arg);
1072 public interface LDKBroadcasterInterface {
1073 void broadcast_transaction(byte[] tx);
1075 public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
1076 // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
1077 public static native void BroadcasterInterface_broadcast_transaction(long this_arg, byte[] tx);
1078 public interface LDKKeysInterface {
1079 long get_node_secret(Recipient recipient);
1080 byte[] get_destination_script();
1081 long get_shutdown_scriptpubkey();
1082 long get_channel_signer(boolean inbound, long channel_value_satoshis);
1083 byte[] get_secure_random_bytes();
1084 long read_chan_signer(byte[] reader);
1085 long sign_invoice(byte[] hrp_bytes, byte[] invoice_data, Recipient receipient);
1086 byte[] get_inbound_payment_key_material();
1088 public static native long LDKKeysInterface_new(LDKKeysInterface impl);
1089 // LDKCResult_SecretKeyNoneZ KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient
1090 public static native long KeysInterface_get_node_secret(long this_arg, Recipient recipient);
1091 // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
1092 public static native byte[] KeysInterface_get_destination_script(long this_arg);
1093 // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
1094 public static native long KeysInterface_get_shutdown_scriptpubkey(long this_arg);
1095 // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
1096 public static native long KeysInterface_get_channel_signer(long this_arg, boolean inbound, long channel_value_satoshis);
1097 // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
1098 public static native byte[] KeysInterface_get_secure_random_bytes(long this_arg);
1099 // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
1100 public static native long KeysInterface_read_chan_signer(long this_arg, byte[] reader);
1101 // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z invoice_data, enum LDKRecipient receipient
1102 public static native long KeysInterface_sign_invoice(long this_arg, byte[] hrp_bytes, byte[] invoice_data, Recipient receipient);
1103 // LDKThirtyTwoBytes KeysInterface_get_inbound_payment_key_material LDKKeysInterface *NONNULL_PTR this_arg
1104 public static native byte[] KeysInterface_get_inbound_payment_key_material(long this_arg);
1105 public interface LDKFeeEstimator {
1106 int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target);
1108 public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
1109 // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
1110 public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, ConfirmationTarget confirmation_target);
1111 // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
1112 public static native byte[] C2Tuple_BlockHashChannelManagerZ_get_a(long owner);
1113 // struct LDKChannelManager *C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
1114 public static native long C2Tuple_BlockHashChannelManagerZ_get_b(long owner);
1115 // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1116 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(long owner);
1117 // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1118 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(long owner);
1119 // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1120 public static native long CResult_ChannelConfigDecodeErrorZ_get_ok(long owner);
1121 // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1122 public static native long CResult_ChannelConfigDecodeErrorZ_get_err(long owner);
1123 // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
1124 public static native long CResult_OutPointDecodeErrorZ_get_ok(long owner);
1125 // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
1126 public static native long CResult_OutPointDecodeErrorZ_get_err(long owner);
1127 public interface LDKType {
1132 public static native long LDKType_new(LDKType impl);
1133 // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
1134 public static native short Type_type_id(long this_arg);
1135 // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
1136 public static native String Type_debug_str(long this_arg);
1137 // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
1138 public static native byte[] Type_write(long this_arg);
1139 public static class LDKCOption_TypeZ {
1140 private LDKCOption_TypeZ() {}
1141 public final static class Some extends LDKCOption_TypeZ {
1143 Some(long some) { this.some = some; }
1145 public final static class None extends LDKCOption_TypeZ {
1148 static native void init();
1150 static { LDKCOption_TypeZ.init(); }
1151 public static native LDKCOption_TypeZ LDKCOption_TypeZ_ref_from_ptr(long ptr);
1152 // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1153 public static native long CResult_COption_TypeZDecodeErrorZ_get_ok(long owner);
1154 // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1155 public static native long CResult_COption_TypeZDecodeErrorZ_get_err(long owner);
1156 public static class LDKPaymentError {
1157 private LDKPaymentError() {}
1158 public final static class Invoice extends LDKPaymentError {
1159 public java.lang.String invoice;
1160 Invoice(java.lang.String invoice) { this.invoice = invoice; }
1162 public final static class Routing extends LDKPaymentError {
1163 public long routing;
1164 Routing(long routing) { this.routing = routing; }
1166 public final static class Sending extends LDKPaymentError {
1167 public long sending;
1168 Sending(long sending) { this.sending = sending; }
1170 static native void init();
1172 static { LDKPaymentError.init(); }
1173 public static native LDKPaymentError LDKPaymentError_ref_from_ptr(long ptr);
1174 // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
1175 public static native byte[] CResult_PaymentIdPaymentErrorZ_get_ok(long owner);
1176 // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
1177 public static native long CResult_PaymentIdPaymentErrorZ_get_err(long owner);
1178 public static class LDKParseError {
1179 private LDKParseError() {}
1180 public final static class Bech32Error extends LDKParseError {
1181 public long bech32_error;
1182 Bech32Error(long bech32_error) { this.bech32_error = bech32_error; }
1184 public final static class ParseAmountError extends LDKParseError {
1185 public int parse_amount_error;
1186 ParseAmountError(int parse_amount_error) { this.parse_amount_error = parse_amount_error; }
1188 public final static class MalformedSignature extends LDKParseError {
1189 public org.ldk.enums.Secp256k1Error malformed_signature;
1190 MalformedSignature(org.ldk.enums.Secp256k1Error malformed_signature) { this.malformed_signature = malformed_signature; }
1192 public final static class BadPrefix extends LDKParseError {
1195 public final static class UnknownCurrency extends LDKParseError {
1196 UnknownCurrency() { }
1198 public final static class UnknownSiPrefix extends LDKParseError {
1199 UnknownSiPrefix() { }
1201 public final static class MalformedHRP extends LDKParseError {
1204 public final static class TooShortDataPart extends LDKParseError {
1205 TooShortDataPart() { }
1207 public final static class UnexpectedEndOfTaggedFields extends LDKParseError {
1208 UnexpectedEndOfTaggedFields() { }
1210 public final static class DescriptionDecodeError extends LDKParseError {
1211 public int description_decode_error;
1212 DescriptionDecodeError(int description_decode_error) { this.description_decode_error = description_decode_error; }
1214 public final static class PaddingError extends LDKParseError {
1217 public final static class IntegerOverflowError extends LDKParseError {
1218 IntegerOverflowError() { }
1220 public final static class InvalidSegWitProgramLength extends LDKParseError {
1221 InvalidSegWitProgramLength() { }
1223 public final static class InvalidPubKeyHashLength extends LDKParseError {
1224 InvalidPubKeyHashLength() { }
1226 public final static class InvalidScriptHashLength extends LDKParseError {
1227 InvalidScriptHashLength() { }
1229 public final static class InvalidRecoveryId extends LDKParseError {
1230 InvalidRecoveryId() { }
1232 public final static class InvalidSliceLength extends LDKParseError {
1233 public java.lang.String invalid_slice_length;
1234 InvalidSliceLength(java.lang.String invalid_slice_length) { this.invalid_slice_length = invalid_slice_length; }
1236 public final static class Skip extends LDKParseError {
1239 static native void init();
1241 static { LDKParseError.init(); }
1242 public static native LDKParseError LDKParseError_ref_from_ptr(long ptr);
1243 // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
1244 public static native SiPrefix CResult_SiPrefixParseErrorZ_get_ok(long owner);
1245 // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
1246 public static native long CResult_SiPrefixParseErrorZ_get_err(long owner);
1247 public static class LDKParseOrSemanticError {
1248 private LDKParseOrSemanticError() {}
1249 public final static class ParseError extends LDKParseOrSemanticError {
1250 public long parse_error;
1251 ParseError(long parse_error) { this.parse_error = parse_error; }
1253 public final static class SemanticError extends LDKParseOrSemanticError {
1254 public org.ldk.enums.SemanticError semantic_error;
1255 SemanticError(org.ldk.enums.SemanticError semantic_error) { this.semantic_error = semantic_error; }
1257 static native void init();
1259 static { LDKParseOrSemanticError.init(); }
1260 public static native LDKParseOrSemanticError LDKParseOrSemanticError_ref_from_ptr(long ptr);
1261 // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
1262 public static native long CResult_InvoiceParseOrSemanticErrorZ_get_ok(long owner);
1263 // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
1264 public static native long CResult_InvoiceParseOrSemanticErrorZ_get_err(long owner);
1265 // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
1266 public static native long CResult_SignedRawInvoiceParseErrorZ_get_ok(long owner);
1267 // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
1268 public static native long CResult_SignedRawInvoiceParseErrorZ_get_err(long owner);
1269 // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
1270 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(long owner);
1271 // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
1272 public static native byte[] C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(long owner);
1273 // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
1274 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(long owner);
1275 // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
1276 public static native long CResult_PayeePubKeyErrorZ_get_ok(long owner);
1277 // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
1278 public static native Secp256k1Error CResult_PayeePubKeyErrorZ_get_err(long owner);
1279 // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
1280 public static native long CResult_PositiveTimestampCreationErrorZ_get_ok(long owner);
1281 // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
1282 public static native CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long owner);
1283 // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
1284 public static native void CResult_NoneSemanticErrorZ_get_ok(long owner);
1285 // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
1286 public static native SemanticError CResult_NoneSemanticErrorZ_get_err(long owner);
1287 // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
1288 public static native long CResult_InvoiceSemanticErrorZ_get_ok(long owner);
1289 // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
1290 public static native SemanticError CResult_InvoiceSemanticErrorZ_get_err(long owner);
1291 // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
1292 public static native long CResult_DescriptionCreationErrorZ_get_ok(long owner);
1293 // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
1294 public static native CreationError CResult_DescriptionCreationErrorZ_get_err(long owner);
1295 // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
1296 public static native long CResult_PrivateRouteCreationErrorZ_get_ok(long owner);
1297 // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
1298 public static native CreationError CResult_PrivateRouteCreationErrorZ_get_err(long owner);
1299 // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
1300 public static native String CResult_StringErrorZ_get_ok(long owner);
1301 // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
1302 public static native Secp256k1Error CResult_StringErrorZ_get_err(long owner);
1303 // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1304 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long owner);
1305 // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1306 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long owner);
1307 public static class LDKCOption_MonitorEventZ {
1308 private LDKCOption_MonitorEventZ() {}
1309 public final static class Some extends LDKCOption_MonitorEventZ {
1311 Some(long some) { this.some = some; }
1313 public final static class None extends LDKCOption_MonitorEventZ {
1316 static native void init();
1318 static { LDKCOption_MonitorEventZ.init(); }
1319 public static native LDKCOption_MonitorEventZ LDKCOption_MonitorEventZ_ref_from_ptr(long ptr);
1320 // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1321 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_ok(long owner);
1322 // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1323 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_err(long owner);
1324 // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1325 public static native long CResult_HTLCUpdateDecodeErrorZ_get_ok(long owner);
1326 // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1327 public static native long CResult_HTLCUpdateDecodeErrorZ_get_err(long owner);
1328 // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
1329 public static native long C2Tuple_OutPointScriptZ_get_a(long owner);
1330 // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
1331 public static native byte[] C2Tuple_OutPointScriptZ_get_b(long owner);
1332 // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
1333 public static native int C2Tuple_u32ScriptZ_get_a(long owner);
1334 // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
1335 public static native byte[] C2Tuple_u32ScriptZ_get_b(long owner);
1336 // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
1337 public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(long owner);
1338 // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
1339 public static native long[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(long owner);
1340 // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1341 public static native int C2Tuple_u32TxOutZ_get_a(long owner);
1342 // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1343 public static native long C2Tuple_u32TxOutZ_get_b(long owner);
1344 // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1345 public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long owner);
1346 // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1347 public static native long[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long owner);
1348 public static class LDKBalance {
1349 private LDKBalance() {}
1350 public final static class ClaimableOnChannelClose extends LDKBalance {
1351 public long claimable_amount_satoshis;
1352 ClaimableOnChannelClose(long claimable_amount_satoshis) { this.claimable_amount_satoshis = claimable_amount_satoshis; }
1354 public final static class ClaimableAwaitingConfirmations extends LDKBalance {
1355 public long claimable_amount_satoshis;
1356 public int confirmation_height;
1357 ClaimableAwaitingConfirmations(long claimable_amount_satoshis, int confirmation_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.confirmation_height = confirmation_height; }
1359 public final static class ContentiousClaimable extends LDKBalance {
1360 public long claimable_amount_satoshis;
1361 public int timeout_height;
1362 ContentiousClaimable(long claimable_amount_satoshis, int timeout_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.timeout_height = timeout_height; }
1364 public final static class MaybeClaimableHTLCAwaitingTimeout extends LDKBalance {
1365 public long claimable_amount_satoshis;
1366 public int claimable_height;
1367 MaybeClaimableHTLCAwaitingTimeout(long claimable_amount_satoshis, int claimable_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.claimable_height = claimable_height; }
1369 static native void init();
1371 static { LDKBalance.init(); }
1372 public static native LDKBalance LDKBalance_ref_from_ptr(long ptr);
1373 // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1374 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(long owner);
1375 // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1376 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(long owner);
1377 // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1378 public static native byte[] C2Tuple_PublicKeyTypeZ_get_a(long owner);
1379 // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1380 public static native long C2Tuple_PublicKeyTypeZ_get_b(long owner);
1381 public static class LDKCOption_NetAddressZ {
1382 private LDKCOption_NetAddressZ() {}
1383 public final static class Some extends LDKCOption_NetAddressZ {
1385 Some(long some) { this.some = some; }
1387 public final static class None extends LDKCOption_NetAddressZ {
1390 static native void init();
1392 static { LDKCOption_NetAddressZ.init(); }
1393 public static native LDKCOption_NetAddressZ LDKCOption_NetAddressZ_ref_from_ptr(long ptr);
1394 // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1395 public static native byte[] CResult_CVec_u8ZPeerHandleErrorZ_get_ok(long owner);
1396 // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1397 public static native long CResult_CVec_u8ZPeerHandleErrorZ_get_err(long owner);
1398 // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1399 public static native void CResult_NonePeerHandleErrorZ_get_ok(long owner);
1400 // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1401 public static native long CResult_NonePeerHandleErrorZ_get_err(long owner);
1402 // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1403 public static native boolean CResult_boolPeerHandleErrorZ_get_ok(long owner);
1404 // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1405 public static native long CResult_boolPeerHandleErrorZ_get_err(long owner);
1406 public static class LDKGraphSyncError {
1407 private LDKGraphSyncError() {}
1408 public final static class DecodeError extends LDKGraphSyncError {
1409 public long decode_error;
1410 DecodeError(long decode_error) { this.decode_error = decode_error; }
1412 public final static class LightningError extends LDKGraphSyncError {
1413 public long lightning_error;
1414 LightningError(long lightning_error) { this.lightning_error = lightning_error; }
1416 static native void init();
1418 static { LDKGraphSyncError.init(); }
1419 public static native LDKGraphSyncError LDKGraphSyncError_ref_from_ptr(long ptr);
1420 // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1421 public static native int CResult_u32GraphSyncErrorZ_get_ok(long owner);
1422 // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1423 public static native long CResult_u32GraphSyncErrorZ_get_err(long owner);
1424 // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
1425 public static native long CResult_NetAddressDecodeErrorZ_get_ok(long owner);
1426 // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
1427 public static native long CResult_NetAddressDecodeErrorZ_get_err(long owner);
1428 // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1429 public static native long CResult_AcceptChannelDecodeErrorZ_get_ok(long owner);
1430 // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1431 public static native long CResult_AcceptChannelDecodeErrorZ_get_err(long owner);
1432 // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1433 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long owner);
1434 // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1435 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_err(long owner);
1436 // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1437 public static native long CResult_ChannelReestablishDecodeErrorZ_get_ok(long owner);
1438 // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1439 public static native long CResult_ChannelReestablishDecodeErrorZ_get_err(long owner);
1440 // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1441 public static native long CResult_ClosingSignedDecodeErrorZ_get_ok(long owner);
1442 // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1443 public static native long CResult_ClosingSignedDecodeErrorZ_get_err(long owner);
1444 // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1445 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long owner);
1446 // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1447 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(long owner);
1448 // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1449 public static native long CResult_CommitmentSignedDecodeErrorZ_get_ok(long owner);
1450 // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1451 public static native long CResult_CommitmentSignedDecodeErrorZ_get_err(long owner);
1452 // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1453 public static native long CResult_FundingCreatedDecodeErrorZ_get_ok(long owner);
1454 // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1455 public static native long CResult_FundingCreatedDecodeErrorZ_get_err(long owner);
1456 // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1457 public static native long CResult_FundingSignedDecodeErrorZ_get_ok(long owner);
1458 // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1459 public static native long CResult_FundingSignedDecodeErrorZ_get_err(long owner);
1460 // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1461 public static native long CResult_ChannelReadyDecodeErrorZ_get_ok(long owner);
1462 // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1463 public static native long CResult_ChannelReadyDecodeErrorZ_get_err(long owner);
1464 // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1465 public static native long CResult_InitDecodeErrorZ_get_ok(long owner);
1466 // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1467 public static native long CResult_InitDecodeErrorZ_get_err(long owner);
1468 // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1469 public static native long CResult_OpenChannelDecodeErrorZ_get_ok(long owner);
1470 // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1471 public static native long CResult_OpenChannelDecodeErrorZ_get_err(long owner);
1472 // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1473 public static native long CResult_RevokeAndACKDecodeErrorZ_get_ok(long owner);
1474 // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1475 public static native long CResult_RevokeAndACKDecodeErrorZ_get_err(long owner);
1476 // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1477 public static native long CResult_ShutdownDecodeErrorZ_get_ok(long owner);
1478 // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1479 public static native long CResult_ShutdownDecodeErrorZ_get_err(long owner);
1480 // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1481 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_ok(long owner);
1482 // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1483 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_err(long owner);
1484 // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1485 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long owner);
1486 // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1487 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long owner);
1488 // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1489 public static native long CResult_UpdateFeeDecodeErrorZ_get_ok(long owner);
1490 // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1491 public static native long CResult_UpdateFeeDecodeErrorZ_get_err(long owner);
1492 // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1493 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long owner);
1494 // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1495 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long owner);
1496 // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1497 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_ok(long owner);
1498 // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1499 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_err(long owner);
1500 // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1501 public static native long CResult_PingDecodeErrorZ_get_ok(long owner);
1502 // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1503 public static native long CResult_PingDecodeErrorZ_get_err(long owner);
1504 // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1505 public static native long CResult_PongDecodeErrorZ_get_ok(long owner);
1506 // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1507 public static native long CResult_PongDecodeErrorZ_get_err(long owner);
1508 // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1509 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1510 // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1511 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long owner);
1512 // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1513 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1514 // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1515 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_err(long owner);
1516 // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1517 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long owner);
1518 // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1519 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long owner);
1520 // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1521 public static native long CResult_ChannelUpdateDecodeErrorZ_get_ok(long owner);
1522 // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1523 public static native long CResult_ChannelUpdateDecodeErrorZ_get_err(long owner);
1524 // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1525 public static native long CResult_ErrorMessageDecodeErrorZ_get_ok(long owner);
1526 // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1527 public static native long CResult_ErrorMessageDecodeErrorZ_get_err(long owner);
1528 // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1529 public static native long CResult_WarningMessageDecodeErrorZ_get_ok(long owner);
1530 // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1531 public static native long CResult_WarningMessageDecodeErrorZ_get_err(long owner);
1532 // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1533 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long owner);
1534 // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1535 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long owner);
1536 // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1537 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_ok(long owner);
1538 // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1539 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_err(long owner);
1540 // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1541 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long owner);
1542 // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1543 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_err(long owner);
1544 // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1545 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long owner);
1546 // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1547 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long owner);
1548 // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1549 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_ok(long owner);
1550 // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1551 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_err(long owner);
1552 // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1553 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_ok(long owner);
1554 // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1555 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_err(long owner);
1556 // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1557 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_ok(long owner);
1558 // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1559 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_err(long owner);
1560 public static class LDKSignOrCreationError {
1561 private LDKSignOrCreationError() {}
1562 public final static class SignError extends LDKSignOrCreationError {
1565 public final static class CreationError extends LDKSignOrCreationError {
1566 public org.ldk.enums.CreationError creation_error;
1567 CreationError(org.ldk.enums.CreationError creation_error) { this.creation_error = creation_error; }
1569 static native void init();
1571 static { LDKSignOrCreationError.init(); }
1572 public static native LDKSignOrCreationError LDKSignOrCreationError_ref_from_ptr(long ptr);
1573 // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
1574 public static native long CResult_InvoiceSignOrCreationErrorZ_get_ok(long owner);
1575 // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
1576 public static native long CResult_InvoiceSignOrCreationErrorZ_get_err(long owner);
1577 public interface LDKFilter {
1578 void register_tx(byte[] txid, byte[] script_pubkey);
1579 long register_output(long output);
1581 public static native long LDKFilter_new(LDKFilter impl);
1582 // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
1583 public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
1584 // LDKCOption_C2Tuple_usizeTransactionZZ Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
1585 public static native long Filter_register_output(long this_arg, long output);
1586 public static class LDKCOption_FilterZ {
1587 private LDKCOption_FilterZ() {}
1588 public final static class Some extends LDKCOption_FilterZ {
1590 Some(long some) { this.some = some; }
1592 public final static class None extends LDKCOption_FilterZ {
1595 static native void init();
1597 static { LDKCOption_FilterZ.init(); }
1598 public static native LDKCOption_FilterZ LDKCOption_FilterZ_ref_from_ptr(long ptr);
1599 // struct LDKLockedChannelMonitor *CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
1600 public static native long CResult_LockedChannelMonitorNoneZ_get_ok(long owner);
1601 // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
1602 public static native void CResult_LockedChannelMonitorNoneZ_get_err(long owner);
1603 public interface LDKMessageSendEventsProvider {
1604 long[] get_and_clear_pending_msg_events();
1606 public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
1607 // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
1608 public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
1609 public interface LDKEventHandler {
1610 void handle_event(long event);
1612 public static native long LDKEventHandler_new(LDKEventHandler impl);
1613 // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, const struct LDKEvent *NONNULL_PTR event
1614 public static native void EventHandler_handle_event(long this_arg, long event);
1615 public interface LDKEventsProvider {
1616 void process_pending_events(long handler);
1618 public static native long LDKEventsProvider_new(LDKEventsProvider impl);
1619 // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
1620 public static native void EventsProvider_process_pending_events(long this_arg, long handler);
1621 public interface LDKScore {
1622 long channel_penalty_msat(long short_channel_id, long source, long target, long usage);
1623 void payment_path_failed(long[] path, long short_channel_id);
1624 void payment_path_successful(long[] path);
1627 public static native long LDKScore_new(LDKScore impl);
1628 // uint64_t Score_channel_penalty_msat LDKScore *NONNULL_PTR this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage
1629 public static native long Score_channel_penalty_msat(long this_arg, long short_channel_id, long source, long target, long usage);
1630 // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
1631 public static native void Score_payment_path_failed(long this_arg, long[] path, long short_channel_id);
1632 // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
1633 public static native void Score_payment_path_successful(long this_arg, long[] path);
1634 // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
1635 public static native byte[] Score_write(long this_arg);
1636 public interface LDKPersister {
1637 long persist_manager(long channel_manager);
1638 long persist_graph(long network_graph);
1639 long persist_scorer(long scorer);
1641 public static native long LDKPersister_new(LDKPersister impl);
1642 // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
1643 public static native long Persister_persist_manager(long this_arg, long channel_manager);
1644 // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
1645 public static native long Persister_persist_graph(long this_arg, long network_graph);
1646 // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKMultiThreadedLockableScore *NONNULL_PTR scorer
1647 public static native long Persister_persist_scorer(long this_arg, long scorer);
1648 public interface LDKListen {
1649 void filtered_block_connected(byte[] header, long[] txdata, int height);
1650 void block_connected(byte[] block, int height);
1651 void block_disconnected(byte[] header, int height);
1653 public static native long LDKListen_new(LDKListen impl);
1654 // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
1655 public static native void Listen_filtered_block_connected(long this_arg, byte[] header, long[] txdata, int height);
1656 // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
1657 public static native void Listen_block_connected(long this_arg, byte[] block, int height);
1658 // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
1659 public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
1660 public interface LDKConfirm {
1661 void transactions_confirmed(byte[] header, long[] txdata, int height);
1662 void transaction_unconfirmed(byte[] txid);
1663 void best_block_updated(byte[] header, int height);
1664 byte[][] get_relevant_txids();
1666 public static native long LDKConfirm_new(LDKConfirm impl);
1667 // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
1668 public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
1669 // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
1670 public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
1671 // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
1672 public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
1673 // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
1674 public static native byte[][] Confirm_get_relevant_txids(long this_arg);
1675 public interface LDKPersist {
1676 long persist_new_channel(long channel_id, long data, long update_id);
1677 long update_persisted_channel(long channel_id, long update, long data, long update_id);
1679 public static native long LDKPersist_new(LDKPersist impl);
1680 // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
1681 public static native long Persist_persist_new_channel(long this_arg, long channel_id, long data, long update_id);
1682 // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitorUpdate *NONNULL_PTR update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
1683 public static native long Persist_update_persisted_channel(long this_arg, long channel_id, long update, long data, long update_id);
1684 public interface LDKChannelMessageHandler {
1685 void handle_open_channel(byte[] their_node_id, long their_features, long msg);
1686 void handle_accept_channel(byte[] their_node_id, long their_features, long msg);
1687 void handle_funding_created(byte[] their_node_id, long msg);
1688 void handle_funding_signed(byte[] their_node_id, long msg);
1689 void handle_channel_ready(byte[] their_node_id, long msg);
1690 void handle_shutdown(byte[] their_node_id, long their_features, long msg);
1691 void handle_closing_signed(byte[] their_node_id, long msg);
1692 void handle_update_add_htlc(byte[] their_node_id, long msg);
1693 void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
1694 void handle_update_fail_htlc(byte[] their_node_id, long msg);
1695 void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
1696 void handle_commitment_signed(byte[] their_node_id, long msg);
1697 void handle_revoke_and_ack(byte[] their_node_id, long msg);
1698 void handle_update_fee(byte[] their_node_id, long msg);
1699 void handle_announcement_signatures(byte[] their_node_id, long msg);
1700 void peer_disconnected(byte[] their_node_id, boolean no_connection_possible);
1701 void peer_connected(byte[] their_node_id, long msg);
1702 void handle_channel_reestablish(byte[] their_node_id, long msg);
1703 void handle_channel_update(byte[] their_node_id, long msg);
1704 void handle_error(byte[] their_node_id, long msg);
1706 public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
1707 public static native long LDKChannelMessageHandler_get_MessageSendEventsProvider(long arg);
1708 // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKOpenChannel *NONNULL_PTR msg
1709 public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long their_features, long msg);
1710 // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKAcceptChannel *NONNULL_PTR msg
1711 public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long their_features, long msg);
1712 // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
1713 public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
1714 // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
1715 public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
1716 // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
1717 public static native void ChannelMessageHandler_handle_channel_ready(long this_arg, byte[] their_node_id, long msg);
1718 // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInitFeatures *NONNULL_PTR their_features, const struct LDKShutdown *NONNULL_PTR msg
1719 public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long their_features, long msg);
1720 // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
1721 public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
1722 // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
1723 public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
1724 // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
1725 public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
1726 // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
1727 public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
1728 // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
1729 public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
1730 // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
1731 public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
1732 // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
1733 public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
1734 // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
1735 public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
1736 // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
1737 public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
1738 // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
1739 public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id, boolean no_connection_possible);
1740 // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
1741 public static native void ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg);
1742 // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
1743 public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
1744 // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
1745 public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
1746 // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
1747 public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
1748 public interface LDKRoutingMessageHandler {
1749 long handle_node_announcement(long msg);
1750 long handle_channel_announcement(long msg);
1751 long handle_channel_update(long msg);
1752 long[] get_next_channel_announcements(long starting_point, byte batch_amount);
1753 long[] get_next_node_announcements(byte[] starting_point, byte batch_amount);
1754 void peer_connected(byte[] their_node_id, long init);
1755 long handle_reply_channel_range(byte[] their_node_id, long msg);
1756 long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
1757 long handle_query_channel_range(byte[] their_node_id, long msg);
1758 long handle_query_short_channel_ids(byte[] their_node_id, long msg);
1760 public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
1761 public static native long LDKRoutingMessageHandler_get_MessageSendEventsProvider(long arg);
1762 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
1763 public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
1764 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
1765 public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
1766 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
1767 public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
1768 // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
1769 public static native long[] RoutingMessageHandler_get_next_channel_announcements(long this_arg, long starting_point, byte batch_amount);
1770 // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
1771 public static native long[] RoutingMessageHandler_get_next_node_announcements(long this_arg, byte[] starting_point, byte batch_amount);
1772 // void RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
1773 public static native void RoutingMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init);
1774 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
1775 public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
1776 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
1777 public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
1778 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
1779 public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
1780 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
1781 public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
1782 public interface LDKCustomMessageReader {
1783 long read(short message_type, byte[] buffer);
1785 public static native long LDKCustomMessageReader_new(LDKCustomMessageReader impl);
1786 // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
1787 public static native long CustomMessageReader_read(long this_arg, short message_type, byte[] buffer);
1788 public interface LDKCustomMessageHandler {
1789 long handle_custom_message(long msg, byte[] sender_node_id);
1790 long[] get_and_clear_pending_msg();
1792 public static native long LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, LDKCustomMessageReader CustomMessageReader);
1793 public static native long LDKCustomMessageHandler_get_CustomMessageReader(long arg);
1794 // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
1795 public static native long CustomMessageHandler_handle_custom_message(long this_arg, long msg, byte[] sender_node_id);
1796 // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
1797 public static native long[] CustomMessageHandler_get_and_clear_pending_msg(long this_arg);
1798 public interface LDKSocketDescriptor {
1799 long send_data(byte[] data, boolean resume_read);
1800 void disconnect_socket();
1801 boolean eq(long other_arg);
1804 public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
1805 // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
1806 public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
1807 // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
1808 public static native void SocketDescriptor_disconnect_socket(long this_arg);
1809 // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
1810 public static native long SocketDescriptor_hash(long this_arg);
1811 public static class LDKEffectiveCapacity {
1812 private LDKEffectiveCapacity() {}
1813 public final static class ExactLiquidity extends LDKEffectiveCapacity {
1814 public long liquidity_msat;
1815 ExactLiquidity(long liquidity_msat) { this.liquidity_msat = liquidity_msat; }
1817 public final static class MaximumHTLC extends LDKEffectiveCapacity {
1818 public long amount_msat;
1819 MaximumHTLC(long amount_msat) { this.amount_msat = amount_msat; }
1821 public final static class Total extends LDKEffectiveCapacity {
1822 public long capacity_msat;
1823 public long htlc_maximum_msat;
1824 Total(long capacity_msat, long htlc_maximum_msat) { this.capacity_msat = capacity_msat; this.htlc_maximum_msat = htlc_maximum_msat; }
1826 public final static class Infinite extends LDKEffectiveCapacity {
1829 public final static class Unknown extends LDKEffectiveCapacity {
1832 static native void init();
1834 static { LDKEffectiveCapacity.init(); }
1835 public static native LDKEffectiveCapacity LDKEffectiveCapacity_ref_from_ptr(long ptr);
1836 public interface LDKLockableScore {
1839 public static native long LDKLockableScore_new(LDKLockableScore impl);
1840 // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
1841 public static native long LockableScore_lock(long this_arg);
1842 public static class LDKGossipSync {
1843 private LDKGossipSync() {}
1844 public final static class P2P extends LDKGossipSync {
1846 P2P(long p2p) { this.p2p = p2p; }
1848 public final static class Rapid extends LDKGossipSync {
1850 Rapid(long rapid) { this.rapid = rapid; }
1852 public final static class None extends LDKGossipSync {
1855 static native void init();
1857 static { LDKGossipSync.init(); }
1858 public static native LDKGossipSync LDKGossipSync_ref_from_ptr(long ptr);
1859 public static class LDKFallback {
1860 private LDKFallback() {}
1861 public final static class SegWitProgram extends LDKFallback {
1862 public byte version;
1863 public byte[] program;
1864 SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
1866 public final static class PubKeyHash extends LDKFallback {
1867 public byte[] pub_key_hash;
1868 PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
1870 public final static class ScriptHash extends LDKFallback {
1871 public byte[] script_hash;
1872 ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
1874 static native void init();
1876 static { LDKFallback.init(); }
1877 public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
1878 public interface LDKPayer {
1880 long[] first_hops();
1881 long send_payment(long route, byte[] payment_hash, byte[] payment_secret);
1882 long send_spontaneous_payment(long route, byte[] payment_preimage);
1883 long retry_payment(long route, byte[] payment_id);
1884 void abandon_payment(byte[] payment_id);
1886 public static native long LDKPayer_new(LDKPayer impl);
1887 // LDKPublicKey Payer_node_id LDKPayer *NONNULL_PTR this_arg
1888 public static native byte[] Payer_node_id(long this_arg);
1889 // LDKCVec_ChannelDetailsZ Payer_first_hops LDKPayer *NONNULL_PTR this_arg
1890 public static native long[] Payer_first_hops(long this_arg);
1891 // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret
1892 public static native long Payer_send_payment(long this_arg, long route, byte[] payment_hash, byte[] payment_secret);
1893 // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_spontaneous_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage
1894 public static native long Payer_send_spontaneous_payment(long this_arg, long route, byte[] payment_preimage);
1895 // LDKCResult_NonePaymentSendFailureZ Payer_retry_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id
1896 public static native long Payer_retry_payment(long this_arg, long route, byte[] payment_id);
1897 // void Payer_abandon_payment LDKPayer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id
1898 public static native void Payer_abandon_payment(long this_arg, byte[] payment_id);
1899 public interface LDKRouter {
1900 long find_route(byte[] payer, long route_params, byte[] payment_hash, long[] first_hops, long scorer);
1902 public static native long LDKRouter_new(LDKRouter impl);
1903 // LDKCResult_RouteLightningErrorZ Router_find_route LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, const uint8_t (*payment_hash)[32], struct LDKCVec_ChannelDetailsZ *first_hops, const struct LDKScore *NONNULL_PTR scorer
1904 public static native long Router_find_route(long this_arg, byte[] payer, long route_params, byte[] payment_hash, long[] first_hops, long scorer);
1905 public static class LDKRetry {
1906 private LDKRetry() {}
1907 public final static class Attempts extends LDKRetry {
1908 public long attempts;
1909 Attempts(long attempts) { this.attempts = attempts; }
1911 public final static class Timeout extends LDKRetry {
1912 public long timeout;
1913 Timeout(long timeout) { this.timeout = timeout; }
1915 static native void init();
1917 static { LDKRetry.init(); }
1918 public static native LDKRetry LDKRetry_ref_from_ptr(long ptr);
1919 // struct LDKStr _ldk_get_compiled_version(void);
1920 public static native String _ldk_get_compiled_version();
1921 // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
1922 public static native String _ldk_c_bindings_get_compiled_version();
1923 // uintptr_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
1924 public static native long Bech32Error_clone_ptr(long arg);
1925 // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
1926 public static native long Bech32Error_clone(long orig);
1927 // void Bech32Error_free(struct LDKBech32Error o);
1928 public static native void Bech32Error_free(long o);
1929 // void Transaction_free(struct LDKTransaction _res);
1930 public static native void Transaction_free(byte[] _res);
1931 // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
1932 public static native long TxOut_new(byte[] script_pubkey, long value);
1933 // void TxOut_free(struct LDKTxOut _res);
1934 public static native void TxOut_free(long _res);
1935 // uintptr_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
1936 public static native long TxOut_clone_ptr(long arg);
1937 // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
1938 public static native long TxOut_clone(long orig);
1939 // void Str_free(struct LDKStr _res);
1940 public static native void Str_free(String _res);
1941 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
1942 public static native long CResult_NoneNoneZ_ok();
1943 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
1944 public static native long CResult_NoneNoneZ_err();
1945 // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
1946 public static native boolean CResult_NoneNoneZ_is_ok(long o);
1947 // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
1948 public static native void CResult_NoneNoneZ_free(long _res);
1949 // uintptr_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
1950 public static native long CResult_NoneNoneZ_clone_ptr(long arg);
1951 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
1952 public static native long CResult_NoneNoneZ_clone(long orig);
1953 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
1954 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
1955 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
1956 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
1957 // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
1958 public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
1959 // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
1960 public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
1961 // uintptr_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
1962 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
1963 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
1964 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
1965 // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
1966 public static native long CResult_SecretKeyErrorZ_ok(byte[] o);
1967 // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
1968 public static native long CResult_SecretKeyErrorZ_err(Secp256k1Error e);
1969 // bool CResult_SecretKeyErrorZ_is_ok(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR o);
1970 public static native boolean CResult_SecretKeyErrorZ_is_ok(long o);
1971 // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
1972 public static native void CResult_SecretKeyErrorZ_free(long _res);
1973 // uintptr_t CResult_SecretKeyErrorZ_clone_ptr(LDKCResult_SecretKeyErrorZ *NONNULL_PTR arg);
1974 public static native long CResult_SecretKeyErrorZ_clone_ptr(long arg);
1975 // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_clone(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR orig);
1976 public static native long CResult_SecretKeyErrorZ_clone(long orig);
1977 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
1978 public static native long CResult_PublicKeyErrorZ_ok(byte[] o);
1979 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
1980 public static native long CResult_PublicKeyErrorZ_err(Secp256k1Error e);
1981 // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
1982 public static native boolean CResult_PublicKeyErrorZ_is_ok(long o);
1983 // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
1984 public static native void CResult_PublicKeyErrorZ_free(long _res);
1985 // uintptr_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
1986 public static native long CResult_PublicKeyErrorZ_clone_ptr(long arg);
1987 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
1988 public static native long CResult_PublicKeyErrorZ_clone(long orig);
1989 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
1990 public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
1991 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
1992 public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
1993 // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
1994 public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
1995 // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
1996 public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
1997 // uintptr_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
1998 public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
1999 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
2000 public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
2001 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
2002 public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
2003 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
2004 public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
2005 // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
2006 public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
2007 // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
2008 public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
2009 // uintptr_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
2010 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
2011 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
2012 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
2013 // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
2014 public static native long CResult_TxCreationKeysErrorZ_ok(long o);
2015 // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
2016 public static native long CResult_TxCreationKeysErrorZ_err(Secp256k1Error e);
2017 // bool CResult_TxCreationKeysErrorZ_is_ok(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR o);
2018 public static native boolean CResult_TxCreationKeysErrorZ_is_ok(long o);
2019 // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
2020 public static native void CResult_TxCreationKeysErrorZ_free(long _res);
2021 // uintptr_t CResult_TxCreationKeysErrorZ_clone_ptr(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR arg);
2022 public static native long CResult_TxCreationKeysErrorZ_clone_ptr(long arg);
2023 // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
2024 public static native long CResult_TxCreationKeysErrorZ_clone(long orig);
2025 // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
2026 public static native long COption_u32Z_some(int o);
2027 // struct LDKCOption_u32Z COption_u32Z_none(void);
2028 public static native long COption_u32Z_none();
2029 // void COption_u32Z_free(struct LDKCOption_u32Z _res);
2030 public static native void COption_u32Z_free(long _res);
2031 // uintptr_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
2032 public static native long COption_u32Z_clone_ptr(long arg);
2033 // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
2034 public static native long COption_u32Z_clone(long orig);
2035 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
2036 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
2037 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
2038 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
2039 // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
2040 public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
2041 // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
2042 public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
2043 // uintptr_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
2044 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
2045 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
2046 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
2047 // enum LDKCOption_NoneZ COption_NoneZ_some(void);
2048 public static native COption_NoneZ COption_NoneZ_some();
2049 // enum LDKCOption_NoneZ COption_NoneZ_none(void);
2050 public static native COption_NoneZ COption_NoneZ_none();
2051 // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
2052 public static native void COption_NoneZ_free(COption_NoneZ _res);
2053 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
2054 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
2055 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
2056 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
2057 // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
2058 public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
2059 // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
2060 public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
2061 // uintptr_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
2062 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
2063 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
2064 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
2065 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
2066 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
2067 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
2068 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
2069 // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
2070 public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
2071 // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
2072 public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
2073 // uintptr_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
2074 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
2075 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
2076 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
2077 // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
2078 public static native void CVec_SignatureZ_free(byte[][] _res);
2079 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
2080 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
2081 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
2082 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
2083 // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
2084 public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
2085 // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
2086 public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
2087 // uintptr_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
2088 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
2089 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
2090 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
2091 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
2092 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
2093 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
2094 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
2095 // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
2096 public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
2097 // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
2098 public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
2099 // uintptr_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
2100 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
2101 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
2102 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
2103 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
2104 public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
2105 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
2106 public static native long CResult_TrustedClosingTransactionNoneZ_err();
2107 // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
2108 public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
2109 // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
2110 public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
2111 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
2112 public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
2113 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
2114 public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
2115 // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
2116 public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
2117 // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
2118 public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
2119 // uintptr_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
2120 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
2121 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
2122 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
2123 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
2124 public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
2125 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
2126 public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
2127 // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
2128 public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
2129 // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
2130 public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
2131 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
2132 public static native long CResult_CVec_SignatureZNoneZ_ok(byte[][] o);
2133 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
2134 public static native long CResult_CVec_SignatureZNoneZ_err();
2135 // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
2136 public static native boolean CResult_CVec_SignatureZNoneZ_is_ok(long o);
2137 // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
2138 public static native void CResult_CVec_SignatureZNoneZ_free(long _res);
2139 // uintptr_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
2140 public static native long CResult_CVec_SignatureZNoneZ_clone_ptr(long arg);
2141 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
2142 public static native long CResult_CVec_SignatureZNoneZ_clone(long orig);
2143 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
2144 public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
2145 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
2146 public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
2147 // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
2148 public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
2149 // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
2150 public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
2151 // uintptr_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
2152 public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
2153 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
2154 public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
2155 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
2156 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
2157 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
2158 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
2159 // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
2160 public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
2161 // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
2162 public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
2163 // uintptr_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
2164 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
2165 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
2166 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
2167 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
2168 public static native long CResult_NoneErrorZ_ok();
2169 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
2170 public static native long CResult_NoneErrorZ_err(IOError e);
2171 // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
2172 public static native boolean CResult_NoneErrorZ_is_ok(long o);
2173 // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
2174 public static native void CResult_NoneErrorZ_free(long _res);
2175 // uintptr_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
2176 public static native long CResult_NoneErrorZ_clone_ptr(long arg);
2177 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
2178 public static native long CResult_NoneErrorZ_clone(long orig);
2179 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
2180 public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
2181 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
2182 public static native long CResult_RouteHopDecodeErrorZ_err(long e);
2183 // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
2184 public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
2185 // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
2186 public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
2187 // uintptr_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
2188 public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
2189 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
2190 public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
2191 // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
2192 public static native void CVec_RouteHopZ_free(long[] _res);
2193 // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
2194 public static native void CVec_CVec_RouteHopZZ_free(long[][] _res);
2195 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
2196 public static native long CResult_RouteDecodeErrorZ_ok(long o);
2197 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
2198 public static native long CResult_RouteDecodeErrorZ_err(long e);
2199 // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
2200 public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
2201 // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
2202 public static native void CResult_RouteDecodeErrorZ_free(long _res);
2203 // uintptr_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
2204 public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
2205 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
2206 public static native long CResult_RouteDecodeErrorZ_clone(long orig);
2207 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
2208 public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
2209 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
2210 public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
2211 // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
2212 public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
2213 // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
2214 public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
2215 // uintptr_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
2216 public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
2217 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
2218 public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
2219 // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
2220 public static native void CVec_RouteHintZ_free(long[] _res);
2221 // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
2222 public static native long COption_u64Z_some(long o);
2223 // struct LDKCOption_u64Z COption_u64Z_none(void);
2224 public static native long COption_u64Z_none();
2225 // void COption_u64Z_free(struct LDKCOption_u64Z _res);
2226 public static native void COption_u64Z_free(long _res);
2227 // uintptr_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
2228 public static native long COption_u64Z_clone_ptr(long arg);
2229 // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
2230 public static native long COption_u64Z_clone(long orig);
2231 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
2232 public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
2233 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
2234 public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
2235 // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
2236 public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
2237 // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
2238 public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
2239 // uintptr_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
2240 public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
2241 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
2242 public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
2243 // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
2244 public static native void CVec_RouteHintHopZ_free(long[] _res);
2245 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
2246 public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
2247 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
2248 public static native long CResult_RouteHintDecodeErrorZ_err(long e);
2249 // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
2250 public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
2251 // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
2252 public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
2253 // uintptr_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
2254 public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
2255 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
2256 public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
2257 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
2258 public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
2259 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
2260 public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
2261 // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
2262 public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
2263 // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
2264 public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
2265 // uintptr_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
2266 public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
2267 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
2268 public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
2269 // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
2270 public static native void CVec_ChannelDetailsZ_free(long[] _res);
2271 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
2272 public static native long CResult_RouteLightningErrorZ_ok(long o);
2273 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
2274 public static native long CResult_RouteLightningErrorZ_err(long e);
2275 // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
2276 public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
2277 // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
2278 public static native void CResult_RouteLightningErrorZ_free(long _res);
2279 // uintptr_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
2280 public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
2281 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
2282 public static native long CResult_RouteLightningErrorZ_clone(long orig);
2283 // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
2284 public static native void CVec_PublicKeyZ_free(byte[][] _res);
2285 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
2286 public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
2287 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
2288 public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
2289 // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
2290 public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
2291 // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
2292 public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
2293 // uintptr_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
2294 public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
2295 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
2296 public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
2297 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
2298 public static native long COption_ClosureReasonZ_some(long o);
2299 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
2300 public static native long COption_ClosureReasonZ_none();
2301 // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
2302 public static native void COption_ClosureReasonZ_free(long _res);
2303 // uintptr_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
2304 public static native long COption_ClosureReasonZ_clone_ptr(long arg);
2305 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
2306 public static native long COption_ClosureReasonZ_clone(long orig);
2307 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
2308 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
2309 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
2310 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
2311 // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
2312 public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
2313 // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
2314 public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
2315 // uintptr_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
2316 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
2317 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
2318 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
2319 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
2320 public static native long COption_NetworkUpdateZ_some(long o);
2321 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
2322 public static native long COption_NetworkUpdateZ_none();
2323 // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
2324 public static native void COption_NetworkUpdateZ_free(long _res);
2325 // uintptr_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
2326 public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
2327 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
2328 public static native long COption_NetworkUpdateZ_clone(long orig);
2329 // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
2330 public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
2331 // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
2332 public static native long COption_EventZ_some(long o);
2333 // struct LDKCOption_EventZ COption_EventZ_none(void);
2334 public static native long COption_EventZ_none();
2335 // void COption_EventZ_free(struct LDKCOption_EventZ _res);
2336 public static native void COption_EventZ_free(long _res);
2337 // uintptr_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
2338 public static native long COption_EventZ_clone_ptr(long arg);
2339 // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
2340 public static native long COption_EventZ_clone(long orig);
2341 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
2342 public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
2343 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
2344 public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
2345 // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
2346 public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
2347 // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
2348 public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
2349 // uintptr_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
2350 public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
2351 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
2352 public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
2353 // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
2354 public static native void CVec_MessageSendEventZ_free(long[] _res);
2355 // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
2356 public static native long CResult_TxOutAccessErrorZ_ok(long o);
2357 // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
2358 public static native long CResult_TxOutAccessErrorZ_err(AccessError e);
2359 // bool CResult_TxOutAccessErrorZ_is_ok(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR o);
2360 public static native boolean CResult_TxOutAccessErrorZ_is_ok(long o);
2361 // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
2362 public static native void CResult_TxOutAccessErrorZ_free(long _res);
2363 // uintptr_t CResult_TxOutAccessErrorZ_clone_ptr(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR arg);
2364 public static native long CResult_TxOutAccessErrorZ_clone_ptr(long arg);
2365 // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
2366 public static native long CResult_TxOutAccessErrorZ_clone(long orig);
2367 // uintptr_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
2368 public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
2369 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
2370 public static native long C2Tuple_usizeTransactionZ_clone(long orig);
2371 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
2372 public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
2373 // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
2374 public static native void C2Tuple_usizeTransactionZ_free(long _res);
2375 // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
2376 public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
2377 // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
2378 public static native void CVec_TxidZ_free(byte[][] _res);
2379 // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
2380 public static native long CResult_NoneChannelMonitorUpdateErrZ_ok();
2381 // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
2382 public static native long CResult_NoneChannelMonitorUpdateErrZ_err(ChannelMonitorUpdateErr e);
2383 // bool CResult_NoneChannelMonitorUpdateErrZ_is_ok(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR o);
2384 public static native boolean CResult_NoneChannelMonitorUpdateErrZ_is_ok(long o);
2385 // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
2386 public static native void CResult_NoneChannelMonitorUpdateErrZ_free(long _res);
2387 // uintptr_t CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR arg);
2388 public static native long CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(long arg);
2389 // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
2390 public static native long CResult_NoneChannelMonitorUpdateErrZ_clone(long orig);
2391 // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
2392 public static native void CVec_MonitorEventZ_free(long[] _res);
2393 // uintptr_t C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR arg);
2394 public static native long C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(long arg);
2395 // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR orig);
2396 public static native long C2Tuple_OutPointCVec_MonitorEventZZ_clone(long orig);
2397 // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b);
2398 public static native long C2Tuple_OutPointCVec_MonitorEventZZ_new(long a, long[] b);
2399 // void C2Tuple_OutPointCVec_MonitorEventZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorEventZZ _res);
2400 public static native void C2Tuple_OutPointCVec_MonitorEventZZ_free(long _res);
2401 // void CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ _res);
2402 public static native void CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(long[] _res);
2403 // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_some(struct LDKC2Tuple_usizeTransactionZ o);
2404 public static native long COption_C2Tuple_usizeTransactionZZ_some(long o);
2405 // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_none(void);
2406 public static native long COption_C2Tuple_usizeTransactionZZ_none();
2407 // void COption_C2Tuple_usizeTransactionZZ_free(struct LDKCOption_C2Tuple_usizeTransactionZZ _res);
2408 public static native void COption_C2Tuple_usizeTransactionZZ_free(long _res);
2409 // uintptr_t COption_C2Tuple_usizeTransactionZZ_clone_ptr(LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR arg);
2410 public static native long COption_C2Tuple_usizeTransactionZZ_clone_ptr(long arg);
2411 // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_clone(const struct LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR orig);
2412 public static native long COption_C2Tuple_usizeTransactionZZ_clone(long orig);
2413 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
2414 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
2415 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
2416 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
2417 // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
2418 public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
2419 // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
2420 public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
2421 // uintptr_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
2422 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
2423 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
2424 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
2425 // uintptr_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
2426 public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
2427 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
2428 public static native long C2Tuple_u64u64Z_clone(long orig);
2429 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
2430 public static native long C2Tuple_u64u64Z_new(long a, long b);
2431 // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
2432 public static native void C2Tuple_u64u64Z_free(long _res);
2433 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
2434 public static native long COption_C2Tuple_u64u64ZZ_some(long o);
2435 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
2436 public static native long COption_C2Tuple_u64u64ZZ_none();
2437 // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
2438 public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
2439 // uintptr_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
2440 public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
2441 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
2442 public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
2443 // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
2444 public static native void CVec_NodeIdZ_free(long[] _res);
2445 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
2446 public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
2447 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
2448 public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
2449 // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
2450 public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
2451 // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
2452 public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
2453 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
2454 public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
2455 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
2456 public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
2457 // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
2458 public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
2459 // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
2460 public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
2461 // uintptr_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
2462 public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
2463 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
2464 public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
2465 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
2466 public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
2467 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
2468 public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
2469 // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
2470 public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
2471 // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
2472 public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
2473 // uintptr_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
2474 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
2475 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
2476 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
2477 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
2478 public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
2479 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
2480 public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
2481 // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
2482 public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
2483 // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
2484 public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
2485 // uintptr_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
2486 public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
2487 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
2488 public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
2489 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
2490 public static native long CResult_InvoiceFeaturesDecodeErrorZ_ok(long o);
2491 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
2492 public static native long CResult_InvoiceFeaturesDecodeErrorZ_err(long e);
2493 // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
2494 public static native boolean CResult_InvoiceFeaturesDecodeErrorZ_is_ok(long o);
2495 // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
2496 public static native void CResult_InvoiceFeaturesDecodeErrorZ_free(long _res);
2497 // uintptr_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
2498 public static native long CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
2499 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
2500 public static native long CResult_InvoiceFeaturesDecodeErrorZ_clone(long orig);
2501 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
2502 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
2503 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
2504 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
2505 // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
2506 public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
2507 // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
2508 public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
2509 // uintptr_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
2510 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
2511 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
2512 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
2513 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
2514 public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
2515 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
2516 public static native long CResult_NodeIdDecodeErrorZ_err(long e);
2517 // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
2518 public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
2519 // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
2520 public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
2521 // uintptr_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
2522 public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
2523 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
2524 public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
2525 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
2526 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
2527 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
2528 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
2529 // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
2530 public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
2531 // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
2532 public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
2533 // uintptr_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
2534 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
2535 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
2536 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
2537 // struct LDKCOption_AccessZ COption_AccessZ_some(struct LDKAccess o);
2538 public static native long COption_AccessZ_some(long o);
2539 // struct LDKCOption_AccessZ COption_AccessZ_none(void);
2540 public static native long COption_AccessZ_none();
2541 // void COption_AccessZ_free(struct LDKCOption_AccessZ _res);
2542 public static native void COption_AccessZ_free(long _res);
2543 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
2544 public static native long CResult_boolLightningErrorZ_ok(boolean o);
2545 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
2546 public static native long CResult_boolLightningErrorZ_err(long e);
2547 // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
2548 public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
2549 // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
2550 public static native void CResult_boolLightningErrorZ_free(long _res);
2551 // uintptr_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
2552 public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
2553 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
2554 public static native long CResult_boolLightningErrorZ_clone(long orig);
2555 // uintptr_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
2556 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
2557 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
2558 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
2559 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
2560 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
2561 // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
2562 public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
2563 // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
2564 public static native void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long[] _res);
2565 // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
2566 public static native void CVec_NodeAnnouncementZ_free(long[] _res);
2567 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
2568 public static native long CResult_NoneLightningErrorZ_ok();
2569 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
2570 public static native long CResult_NoneLightningErrorZ_err(long e);
2571 // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
2572 public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
2573 // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
2574 public static native void CResult_NoneLightningErrorZ_free(long _res);
2575 // uintptr_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
2576 public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
2577 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
2578 public static native long CResult_NoneLightningErrorZ_clone(long orig);
2579 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
2580 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
2581 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
2582 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
2583 // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
2584 public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
2585 // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
2586 public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
2587 // uintptr_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
2588 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
2589 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
2590 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
2591 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
2592 public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
2593 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
2594 public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
2595 // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
2596 public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
2597 // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
2598 public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
2599 // uintptr_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
2600 public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
2601 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
2602 public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
2603 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
2604 public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
2605 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
2606 public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
2607 // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
2608 public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
2609 // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
2610 public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
2611 // uintptr_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
2612 public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
2613 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
2614 public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
2615 // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
2616 public static native void CVec_NetAddressZ_free(long[] _res);
2617 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
2618 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
2619 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
2620 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
2621 // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
2622 public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
2623 // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
2624 public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
2625 // uintptr_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
2626 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
2627 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
2628 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
2629 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
2630 public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
2631 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
2632 public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
2633 // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
2634 public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
2635 // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
2636 public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
2637 // uintptr_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
2638 public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
2639 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
2640 public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
2641 // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
2642 public static native void CVec_u64Z_free(long[] _res);
2643 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
2644 public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
2645 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
2646 public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
2647 // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
2648 public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
2649 // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
2650 public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
2651 // uintptr_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
2652 public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
2653 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
2654 public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
2655 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
2656 public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
2657 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
2658 public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
2659 // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
2660 public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
2661 // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
2662 public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
2663 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
2664 public static native long COption_CVec_NetAddressZZ_some(long[] o);
2665 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
2666 public static native long COption_CVec_NetAddressZZ_none();
2667 // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
2668 public static native void COption_CVec_NetAddressZZ_free(long _res);
2669 // uintptr_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
2670 public static native long COption_CVec_NetAddressZZ_clone_ptr(long arg);
2671 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
2672 public static native long COption_CVec_NetAddressZZ_clone(long orig);
2673 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
2674 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
2675 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
2676 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
2677 // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
2678 public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
2679 // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
2680 public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
2681 // uintptr_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
2682 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
2683 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
2684 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
2685 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
2686 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
2687 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
2688 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
2689 // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
2690 public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
2691 // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
2692 public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
2693 // uintptr_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
2694 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
2695 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
2696 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
2697 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
2698 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
2699 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
2700 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
2701 // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
2702 public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
2703 // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
2704 public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
2705 // uintptr_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
2706 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
2707 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
2708 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
2709 // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
2710 public static native void CVec_PaymentPreimageZ_free(byte[][] _res);
2711 // uintptr_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
2712 public static native long C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(long arg);
2713 // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
2714 public static native long C2Tuple_SignatureCVec_SignatureZZ_clone(long orig);
2715 // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
2716 public static native long C2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
2717 // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
2718 public static native void C2Tuple_SignatureCVec_SignatureZZ_free(long _res);
2719 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
2720 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(long o);
2721 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
2722 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
2723 // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
2724 public static native boolean CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(long o);
2725 // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
2726 public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(long _res);
2727 // uintptr_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
2728 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(long arg);
2729 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
2730 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(long orig);
2731 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
2732 public static native long CResult_SignatureNoneZ_ok(byte[] o);
2733 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
2734 public static native long CResult_SignatureNoneZ_err();
2735 // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
2736 public static native boolean CResult_SignatureNoneZ_is_ok(long o);
2737 // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
2738 public static native void CResult_SignatureNoneZ_free(long _res);
2739 // uintptr_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
2740 public static native long CResult_SignatureNoneZ_clone_ptr(long arg);
2741 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
2742 public static native long CResult_SignatureNoneZ_clone(long orig);
2743 // uintptr_t C2Tuple_SignatureSignatureZ_clone_ptr(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR arg);
2744 public static native long C2Tuple_SignatureSignatureZ_clone_ptr(long arg);
2745 // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_clone(const struct LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR orig);
2746 public static native long C2Tuple_SignatureSignatureZ_clone(long orig);
2747 // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_new(struct LDKSignature a, struct LDKSignature b);
2748 public static native long C2Tuple_SignatureSignatureZ_new(byte[] a, byte[] b);
2749 // void C2Tuple_SignatureSignatureZ_free(struct LDKC2Tuple_SignatureSignatureZ _res);
2750 public static native void C2Tuple_SignatureSignatureZ_free(long _res);
2751 // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_ok(struct LDKC2Tuple_SignatureSignatureZ o);
2752 public static native long CResult_C2Tuple_SignatureSignatureZNoneZ_ok(long o);
2753 // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_err(void);
2754 public static native long CResult_C2Tuple_SignatureSignatureZNoneZ_err();
2755 // bool CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR o);
2756 public static native boolean CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(long o);
2757 // void CResult_C2Tuple_SignatureSignatureZNoneZ_free(struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ _res);
2758 public static native void CResult_C2Tuple_SignatureSignatureZNoneZ_free(long _res);
2759 // uintptr_t CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR arg);
2760 public static native long CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(long arg);
2761 // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR orig);
2762 public static native long CResult_C2Tuple_SignatureSignatureZNoneZ_clone(long orig);
2763 // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_ok(struct LDKSecretKey o);
2764 public static native long CResult_SecretKeyNoneZ_ok(byte[] o);
2765 // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_err(void);
2766 public static native long CResult_SecretKeyNoneZ_err();
2767 // bool CResult_SecretKeyNoneZ_is_ok(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR o);
2768 public static native boolean CResult_SecretKeyNoneZ_is_ok(long o);
2769 // void CResult_SecretKeyNoneZ_free(struct LDKCResult_SecretKeyNoneZ _res);
2770 public static native void CResult_SecretKeyNoneZ_free(long _res);
2771 // uintptr_t CResult_SecretKeyNoneZ_clone_ptr(LDKCResult_SecretKeyNoneZ *NONNULL_PTR arg);
2772 public static native long CResult_SecretKeyNoneZ_clone_ptr(long arg);
2773 // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_clone(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR orig);
2774 public static native long CResult_SecretKeyNoneZ_clone(long orig);
2775 // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
2776 public static native long CResult_SignDecodeErrorZ_ok(long o);
2777 // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
2778 public static native long CResult_SignDecodeErrorZ_err(long e);
2779 // bool CResult_SignDecodeErrorZ_is_ok(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR o);
2780 public static native boolean CResult_SignDecodeErrorZ_is_ok(long o);
2781 // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
2782 public static native void CResult_SignDecodeErrorZ_free(long _res);
2783 // uintptr_t CResult_SignDecodeErrorZ_clone_ptr(LDKCResult_SignDecodeErrorZ *NONNULL_PTR arg);
2784 public static native long CResult_SignDecodeErrorZ_clone_ptr(long arg);
2785 // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
2786 public static native long CResult_SignDecodeErrorZ_clone(long orig);
2787 // void CVec_u5Z_free(struct LDKCVec_u5Z _res);
2788 public static native void CVec_u5Z_free(byte[] _res);
2789 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
2790 public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
2791 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
2792 public static native long CResult_RecoverableSignatureNoneZ_err();
2793 // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
2794 public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
2795 // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
2796 public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
2797 // uintptr_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
2798 public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
2799 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
2800 public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
2801 // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
2802 public static native void CVec_u8Z_free(byte[] _res);
2803 // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
2804 public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
2805 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
2806 public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
2807 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
2808 public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
2809 // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
2810 public static native boolean CResult_CVec_CVec_u8ZZNoneZ_is_ok(long o);
2811 // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
2812 public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
2813 // uintptr_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
2814 public static native long CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(long arg);
2815 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
2816 public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
2817 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
2818 public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
2819 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
2820 public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
2821 // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
2822 public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
2823 // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
2824 public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
2825 // uintptr_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
2826 public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
2827 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
2828 public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
2829 // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
2830 public static native void CVec_TxOutZ_free(long[] _res);
2831 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
2832 public static native long CResult_TransactionNoneZ_ok(byte[] o);
2833 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
2834 public static native long CResult_TransactionNoneZ_err();
2835 // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
2836 public static native boolean CResult_TransactionNoneZ_is_ok(long o);
2837 // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
2838 public static native void CResult_TransactionNoneZ_free(long _res);
2839 // uintptr_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
2840 public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
2841 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
2842 public static native long CResult_TransactionNoneZ_clone(long orig);
2843 // uintptr_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
2844 public static native long C2Tuple_BlockHashChannelMonitorZ_clone_ptr(long arg);
2845 // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
2846 public static native long C2Tuple_BlockHashChannelMonitorZ_clone(long orig);
2847 // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
2848 public static native long C2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
2849 // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
2850 public static native void C2Tuple_BlockHashChannelMonitorZ_free(long _res);
2851 // void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ _res);
2852 public static native void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(long[] _res);
2853 // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ o);
2854 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(long[] o);
2855 // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(enum LDKIOError e);
2856 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(IOError e);
2857 // bool CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR o);
2858 public static native boolean CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(long o);
2859 // void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ _res);
2860 public static native void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(long _res);
2861 // uintptr_t CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR arg);
2862 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(long arg);
2863 // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR orig);
2864 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(long orig);
2865 // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
2866 public static native long COption_u16Z_some(short o);
2867 // struct LDKCOption_u16Z COption_u16Z_none(void);
2868 public static native long COption_u16Z_none();
2869 // void COption_u16Z_free(struct LDKCOption_u16Z _res);
2870 public static native void COption_u16Z_free(long _res);
2871 // uintptr_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
2872 public static native long COption_u16Z_clone_ptr(long arg);
2873 // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
2874 public static native long COption_u16Z_clone(long orig);
2875 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
2876 public static native long CResult_NoneAPIErrorZ_ok();
2877 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
2878 public static native long CResult_NoneAPIErrorZ_err(long e);
2879 // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
2880 public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
2881 // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
2882 public static native void CResult_NoneAPIErrorZ_free(long _res);
2883 // uintptr_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
2884 public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
2885 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
2886 public static native long CResult_NoneAPIErrorZ_clone(long orig);
2887 // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
2888 public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
2889 // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
2890 public static native void CVec_APIErrorZ_free(long[] _res);
2891 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
2892 public static native long CResult__u832APIErrorZ_ok(byte[] o);
2893 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
2894 public static native long CResult__u832APIErrorZ_err(long e);
2895 // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
2896 public static native boolean CResult__u832APIErrorZ_is_ok(long o);
2897 // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
2898 public static native void CResult__u832APIErrorZ_free(long _res);
2899 // uintptr_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
2900 public static native long CResult__u832APIErrorZ_clone_ptr(long arg);
2901 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
2902 public static native long CResult__u832APIErrorZ_clone(long orig);
2903 // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
2904 public static native long CResult_PaymentIdPaymentSendFailureZ_ok(byte[] o);
2905 // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
2906 public static native long CResult_PaymentIdPaymentSendFailureZ_err(long e);
2907 // bool CResult_PaymentIdPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR o);
2908 public static native boolean CResult_PaymentIdPaymentSendFailureZ_is_ok(long o);
2909 // void CResult_PaymentIdPaymentSendFailureZ_free(struct LDKCResult_PaymentIdPaymentSendFailureZ _res);
2910 public static native void CResult_PaymentIdPaymentSendFailureZ_free(long _res);
2911 // uintptr_t CResult_PaymentIdPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR arg);
2912 public static native long CResult_PaymentIdPaymentSendFailureZ_clone_ptr(long arg);
2913 // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_clone(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR orig);
2914 public static native long CResult_PaymentIdPaymentSendFailureZ_clone(long orig);
2915 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
2916 public static native long CResult_NonePaymentSendFailureZ_ok();
2917 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
2918 public static native long CResult_NonePaymentSendFailureZ_err(long e);
2919 // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
2920 public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
2921 // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
2922 public static native void CResult_NonePaymentSendFailureZ_free(long _res);
2923 // uintptr_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
2924 public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
2925 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
2926 public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
2927 // uintptr_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
2928 public static native long C2Tuple_PaymentHashPaymentIdZ_clone_ptr(long arg);
2929 // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
2930 public static native long C2Tuple_PaymentHashPaymentIdZ_clone(long orig);
2931 // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
2932 public static native long C2Tuple_PaymentHashPaymentIdZ_new(byte[] a, byte[] b);
2933 // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
2934 public static native void C2Tuple_PaymentHashPaymentIdZ_free(long _res);
2935 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
2936 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(long o);
2937 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
2938 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(long e);
2939 // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
2940 public static native boolean CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(long o);
2941 // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
2942 public static native void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(long _res);
2943 // uintptr_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
2944 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(long arg);
2945 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
2946 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(long orig);
2947 // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
2948 public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
2949 // uintptr_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
2950 public static native long C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(long arg);
2951 // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
2952 public static native long C2Tuple_PaymentHashPaymentSecretZ_clone(long orig);
2953 // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
2954 public static native long C2Tuple_PaymentHashPaymentSecretZ_new(byte[] a, byte[] b);
2955 // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
2956 public static native void C2Tuple_PaymentHashPaymentSecretZ_free(long _res);
2957 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
2958 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(long o);
2959 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
2960 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
2961 // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
2962 public static native boolean CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(long o);
2963 // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
2964 public static native void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(long _res);
2965 // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
2966 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(long arg);
2967 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
2968 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(long orig);
2969 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
2970 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(long o);
2971 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
2972 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(long e);
2973 // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
2974 public static native boolean CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(long o);
2975 // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
2976 public static native void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(long _res);
2977 // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
2978 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(long arg);
2979 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
2980 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(long orig);
2981 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
2982 public static native long CResult_PaymentSecretNoneZ_ok(byte[] o);
2983 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
2984 public static native long CResult_PaymentSecretNoneZ_err();
2985 // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
2986 public static native boolean CResult_PaymentSecretNoneZ_is_ok(long o);
2987 // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
2988 public static native void CResult_PaymentSecretNoneZ_free(long _res);
2989 // uintptr_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
2990 public static native long CResult_PaymentSecretNoneZ_clone_ptr(long arg);
2991 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
2992 public static native long CResult_PaymentSecretNoneZ_clone(long orig);
2993 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
2994 public static native long CResult_PaymentSecretAPIErrorZ_ok(byte[] o);
2995 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
2996 public static native long CResult_PaymentSecretAPIErrorZ_err(long e);
2997 // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
2998 public static native boolean CResult_PaymentSecretAPIErrorZ_is_ok(long o);
2999 // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
3000 public static native void CResult_PaymentSecretAPIErrorZ_free(long _res);
3001 // uintptr_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
3002 public static native long CResult_PaymentSecretAPIErrorZ_clone_ptr(long arg);
3003 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
3004 public static native long CResult_PaymentSecretAPIErrorZ_clone(long orig);
3005 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
3006 public static native long CResult_PaymentPreimageAPIErrorZ_ok(byte[] o);
3007 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
3008 public static native long CResult_PaymentPreimageAPIErrorZ_err(long e);
3009 // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
3010 public static native boolean CResult_PaymentPreimageAPIErrorZ_is_ok(long o);
3011 // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
3012 public static native void CResult_PaymentPreimageAPIErrorZ_free(long _res);
3013 // uintptr_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
3014 public static native long CResult_PaymentPreimageAPIErrorZ_clone_ptr(long arg);
3015 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
3016 public static native long CResult_PaymentPreimageAPIErrorZ_clone(long orig);
3017 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
3018 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
3019 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
3020 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
3021 // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
3022 public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
3023 // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
3024 public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
3025 // uintptr_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
3026 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
3027 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
3028 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
3029 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
3030 public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
3031 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
3032 public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
3033 // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
3034 public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
3035 // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
3036 public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
3037 // uintptr_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
3038 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
3039 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
3040 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
3041 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
3042 public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
3043 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
3044 public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
3045 // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
3046 public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
3047 // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
3048 public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
3049 // uintptr_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
3050 public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
3051 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
3052 public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
3053 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
3054 public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
3055 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
3056 public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
3057 // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
3058 public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
3059 // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
3060 public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
3061 // uintptr_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
3062 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
3063 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
3064 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
3065 // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
3066 public static native void CVec_ChannelMonitorZ_free(long[] _res);
3067 // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
3068 public static native long C2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
3069 // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
3070 public static native void C2Tuple_BlockHashChannelManagerZ_free(long _res);
3071 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
3072 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(long o);
3073 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
3074 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(long e);
3075 // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
3076 public static native boolean CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(long o);
3077 // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
3078 public static native void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(long _res);
3079 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
3080 public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
3081 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
3082 public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
3083 // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
3084 public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
3085 // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
3086 public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
3087 // uintptr_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
3088 public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
3089 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
3090 public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
3091 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
3092 public static native long CResult_OutPointDecodeErrorZ_ok(long o);
3093 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
3094 public static native long CResult_OutPointDecodeErrorZ_err(long e);
3095 // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
3096 public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
3097 // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
3098 public static native void CResult_OutPointDecodeErrorZ_free(long _res);
3099 // uintptr_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
3100 public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
3101 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
3102 public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
3103 // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
3104 public static native long COption_TypeZ_some(long o);
3105 // struct LDKCOption_TypeZ COption_TypeZ_none(void);
3106 public static native long COption_TypeZ_none();
3107 // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
3108 public static native void COption_TypeZ_free(long _res);
3109 // uintptr_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
3110 public static native long COption_TypeZ_clone_ptr(long arg);
3111 // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
3112 public static native long COption_TypeZ_clone(long orig);
3113 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
3114 public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
3115 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
3116 public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
3117 // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
3118 public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
3119 // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
3120 public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
3121 // uintptr_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
3122 public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
3123 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
3124 public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
3125 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
3126 public static native long CResult_PaymentIdPaymentErrorZ_ok(byte[] o);
3127 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
3128 public static native long CResult_PaymentIdPaymentErrorZ_err(long e);
3129 // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
3130 public static native boolean CResult_PaymentIdPaymentErrorZ_is_ok(long o);
3131 // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
3132 public static native void CResult_PaymentIdPaymentErrorZ_free(long _res);
3133 // uintptr_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
3134 public static native long CResult_PaymentIdPaymentErrorZ_clone_ptr(long arg);
3135 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
3136 public static native long CResult_PaymentIdPaymentErrorZ_clone(long orig);
3137 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
3138 public static native long CResult_SiPrefixParseErrorZ_ok(SiPrefix o);
3139 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
3140 public static native long CResult_SiPrefixParseErrorZ_err(long e);
3141 // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
3142 public static native boolean CResult_SiPrefixParseErrorZ_is_ok(long o);
3143 // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
3144 public static native void CResult_SiPrefixParseErrorZ_free(long _res);
3145 // uintptr_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
3146 public static native long CResult_SiPrefixParseErrorZ_clone_ptr(long arg);
3147 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
3148 public static native long CResult_SiPrefixParseErrorZ_clone(long orig);
3149 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
3150 public static native long CResult_InvoiceParseOrSemanticErrorZ_ok(long o);
3151 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
3152 public static native long CResult_InvoiceParseOrSemanticErrorZ_err(long e);
3153 // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
3154 public static native boolean CResult_InvoiceParseOrSemanticErrorZ_is_ok(long o);
3155 // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
3156 public static native void CResult_InvoiceParseOrSemanticErrorZ_free(long _res);
3157 // uintptr_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
3158 public static native long CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
3159 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
3160 public static native long CResult_InvoiceParseOrSemanticErrorZ_clone(long orig);
3161 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
3162 public static native long CResult_SignedRawInvoiceParseErrorZ_ok(long o);
3163 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
3164 public static native long CResult_SignedRawInvoiceParseErrorZ_err(long e);
3165 // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
3166 public static native boolean CResult_SignedRawInvoiceParseErrorZ_is_ok(long o);
3167 // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
3168 public static native void CResult_SignedRawInvoiceParseErrorZ_free(long _res);
3169 // uintptr_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
3170 public static native long CResult_SignedRawInvoiceParseErrorZ_clone_ptr(long arg);
3171 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
3172 public static native long CResult_SignedRawInvoiceParseErrorZ_clone(long orig);
3173 // uintptr_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
3174 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(long arg);
3175 // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
3176 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(long orig);
3177 // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
3178 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(long a, byte[] b, long c);
3179 // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
3180 public static native void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(long _res);
3181 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
3182 public static native long CResult_PayeePubKeyErrorZ_ok(long o);
3183 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
3184 public static native long CResult_PayeePubKeyErrorZ_err(Secp256k1Error e);
3185 // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
3186 public static native boolean CResult_PayeePubKeyErrorZ_is_ok(long o);
3187 // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
3188 public static native void CResult_PayeePubKeyErrorZ_free(long _res);
3189 // uintptr_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
3190 public static native long CResult_PayeePubKeyErrorZ_clone_ptr(long arg);
3191 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
3192 public static native long CResult_PayeePubKeyErrorZ_clone(long orig);
3193 // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
3194 public static native void CVec_PrivateRouteZ_free(long[] _res);
3195 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
3196 public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
3197 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
3198 public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
3199 // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
3200 public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
3201 // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
3202 public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
3203 // uintptr_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
3204 public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
3205 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
3206 public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
3207 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
3208 public static native long CResult_NoneSemanticErrorZ_ok();
3209 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
3210 public static native long CResult_NoneSemanticErrorZ_err(SemanticError e);
3211 // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
3212 public static native boolean CResult_NoneSemanticErrorZ_is_ok(long o);
3213 // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
3214 public static native void CResult_NoneSemanticErrorZ_free(long _res);
3215 // uintptr_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
3216 public static native long CResult_NoneSemanticErrorZ_clone_ptr(long arg);
3217 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
3218 public static native long CResult_NoneSemanticErrorZ_clone(long orig);
3219 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
3220 public static native long CResult_InvoiceSemanticErrorZ_ok(long o);
3221 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
3222 public static native long CResult_InvoiceSemanticErrorZ_err(SemanticError e);
3223 // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
3224 public static native boolean CResult_InvoiceSemanticErrorZ_is_ok(long o);
3225 // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
3226 public static native void CResult_InvoiceSemanticErrorZ_free(long _res);
3227 // uintptr_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
3228 public static native long CResult_InvoiceSemanticErrorZ_clone_ptr(long arg);
3229 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
3230 public static native long CResult_InvoiceSemanticErrorZ_clone(long orig);
3231 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
3232 public static native long CResult_DescriptionCreationErrorZ_ok(long o);
3233 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
3234 public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
3235 // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
3236 public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
3237 // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
3238 public static native void CResult_DescriptionCreationErrorZ_free(long _res);
3239 // uintptr_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
3240 public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
3241 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
3242 public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
3243 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
3244 public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
3245 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
3246 public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
3247 // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
3248 public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
3249 // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
3250 public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
3251 // uintptr_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
3252 public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
3253 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
3254 public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
3255 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
3256 public static native long CResult_StringErrorZ_ok(String o);
3257 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
3258 public static native long CResult_StringErrorZ_err(Secp256k1Error e);
3259 // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
3260 public static native boolean CResult_StringErrorZ_is_ok(long o);
3261 // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
3262 public static native void CResult_StringErrorZ_free(long _res);
3263 // uintptr_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
3264 public static native long CResult_StringErrorZ_clone_ptr(long arg);
3265 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
3266 public static native long CResult_StringErrorZ_clone(long orig);
3267 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
3268 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
3269 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
3270 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
3271 // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
3272 public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
3273 // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
3274 public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
3275 // uintptr_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
3276 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
3277 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
3278 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
3279 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
3280 public static native long COption_MonitorEventZ_some(long o);
3281 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
3282 public static native long COption_MonitorEventZ_none();
3283 // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
3284 public static native void COption_MonitorEventZ_free(long _res);
3285 // uintptr_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
3286 public static native long COption_MonitorEventZ_clone_ptr(long arg);
3287 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
3288 public static native long COption_MonitorEventZ_clone(long orig);
3289 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
3290 public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
3291 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
3292 public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
3293 // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
3294 public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
3295 // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
3296 public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
3297 // uintptr_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
3298 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
3299 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
3300 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
3301 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
3302 public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
3303 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
3304 public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
3305 // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
3306 public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
3307 // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
3308 public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
3309 // uintptr_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
3310 public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
3311 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
3312 public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
3313 // uintptr_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
3314 public static native long C2Tuple_OutPointScriptZ_clone_ptr(long arg);
3315 // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
3316 public static native long C2Tuple_OutPointScriptZ_clone(long orig);
3317 // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
3318 public static native long C2Tuple_OutPointScriptZ_new(long a, byte[] b);
3319 // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
3320 public static native void C2Tuple_OutPointScriptZ_free(long _res);
3321 // uintptr_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
3322 public static native long C2Tuple_u32ScriptZ_clone_ptr(long arg);
3323 // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
3324 public static native long C2Tuple_u32ScriptZ_clone(long orig);
3325 // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
3326 public static native long C2Tuple_u32ScriptZ_new(int a, byte[] b);
3327 // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
3328 public static native void C2Tuple_u32ScriptZ_free(long _res);
3329 // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
3330 public static native void CVec_C2Tuple_u32ScriptZZ_free(long[] _res);
3331 // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
3332 public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(long arg);
3333 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
3334 public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(long orig);
3335 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
3336 public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
3337 // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
3338 public static native void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(long _res);
3339 // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
3340 public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(long[] _res);
3341 // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
3342 public static native void CVec_EventZ_free(long[] _res);
3343 // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
3344 public static native void CVec_TransactionZ_free(byte[][] _res);
3345 // uintptr_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
3346 public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
3347 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
3348 public static native long C2Tuple_u32TxOutZ_clone(long orig);
3349 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
3350 public static native long C2Tuple_u32TxOutZ_new(int a, long b);
3351 // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
3352 public static native void C2Tuple_u32TxOutZ_free(long _res);
3353 // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
3354 public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
3355 // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
3356 public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
3357 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
3358 public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
3359 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
3360 public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
3361 // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
3362 public static native void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(long _res);
3363 // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
3364 public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
3365 // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
3366 public static native void CVec_BalanceZ_free(long[] _res);
3367 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
3368 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(long o);
3369 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
3370 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(long e);
3371 // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
3372 public static native boolean CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(long o);
3373 // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
3374 public static native void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(long _res);
3375 // uintptr_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
3376 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
3377 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
3378 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(long orig);
3379 // uintptr_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
3380 public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
3381 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
3382 public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
3383 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
3384 public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
3385 // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
3386 public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
3387 // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
3388 public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
3389 // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
3390 public static native long COption_NetAddressZ_some(long o);
3391 // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
3392 public static native long COption_NetAddressZ_none();
3393 // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
3394 public static native void COption_NetAddressZ_free(long _res);
3395 // uintptr_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
3396 public static native long COption_NetAddressZ_clone_ptr(long arg);
3397 // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
3398 public static native long COption_NetAddressZ_clone(long orig);
3399 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
3400 public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
3401 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
3402 public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
3403 // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
3404 public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
3405 // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
3406 public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
3407 // uintptr_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
3408 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
3409 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
3410 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
3411 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
3412 public static native long CResult_NonePeerHandleErrorZ_ok();
3413 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
3414 public static native long CResult_NonePeerHandleErrorZ_err(long e);
3415 // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
3416 public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
3417 // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
3418 public static native void CResult_NonePeerHandleErrorZ_free(long _res);
3419 // uintptr_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
3420 public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
3421 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
3422 public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
3423 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
3424 public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
3425 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
3426 public static native long CResult_boolPeerHandleErrorZ_err(long e);
3427 // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
3428 public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
3429 // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
3430 public static native void CResult_boolPeerHandleErrorZ_free(long _res);
3431 // uintptr_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
3432 public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
3433 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
3434 public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
3435 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
3436 public static native long CResult_u32GraphSyncErrorZ_ok(int o);
3437 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
3438 public static native long CResult_u32GraphSyncErrorZ_err(long e);
3439 // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
3440 public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
3441 // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
3442 public static native void CResult_u32GraphSyncErrorZ_free(long _res);
3443 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
3444 public static native long CResult_NetAddressDecodeErrorZ_ok(long o);
3445 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
3446 public static native long CResult_NetAddressDecodeErrorZ_err(long e);
3447 // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
3448 public static native boolean CResult_NetAddressDecodeErrorZ_is_ok(long o);
3449 // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
3450 public static native void CResult_NetAddressDecodeErrorZ_free(long _res);
3451 // uintptr_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
3452 public static native long CResult_NetAddressDecodeErrorZ_clone_ptr(long arg);
3453 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
3454 public static native long CResult_NetAddressDecodeErrorZ_clone(long orig);
3455 // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
3456 public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
3457 // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
3458 public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
3459 // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
3460 public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
3461 // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
3462 public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
3463 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
3464 public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
3465 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
3466 public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
3467 // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
3468 public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
3469 // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
3470 public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
3471 // uintptr_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
3472 public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
3473 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
3474 public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
3475 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
3476 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
3477 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
3478 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
3479 // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
3480 public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
3481 // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
3482 public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
3483 // uintptr_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
3484 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
3485 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
3486 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
3487 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
3488 public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
3489 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
3490 public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
3491 // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
3492 public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
3493 // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
3494 public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
3495 // uintptr_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
3496 public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
3497 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
3498 public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
3499 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
3500 public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
3501 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
3502 public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
3503 // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
3504 public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
3505 // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
3506 public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
3507 // uintptr_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
3508 public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
3509 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
3510 public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
3511 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
3512 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
3513 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
3514 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
3515 // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
3516 public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
3517 // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
3518 public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
3519 // uintptr_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
3520 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
3521 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
3522 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
3523 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
3524 public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
3525 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
3526 public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
3527 // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
3528 public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
3529 // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
3530 public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
3531 // uintptr_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
3532 public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
3533 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
3534 public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
3535 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
3536 public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
3537 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
3538 public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
3539 // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
3540 public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
3541 // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
3542 public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
3543 // uintptr_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
3544 public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
3545 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
3546 public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
3547 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
3548 public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
3549 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
3550 public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
3551 // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
3552 public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
3553 // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
3554 public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
3555 // uintptr_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
3556 public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
3557 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
3558 public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
3559 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
3560 public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
3561 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
3562 public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
3563 // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
3564 public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
3565 // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
3566 public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
3567 // uintptr_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
3568 public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
3569 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
3570 public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
3571 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
3572 public static native long CResult_InitDecodeErrorZ_ok(long o);
3573 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
3574 public static native long CResult_InitDecodeErrorZ_err(long e);
3575 // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
3576 public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
3577 // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
3578 public static native void CResult_InitDecodeErrorZ_free(long _res);
3579 // uintptr_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
3580 public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
3581 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
3582 public static native long CResult_InitDecodeErrorZ_clone(long orig);
3583 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
3584 public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
3585 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
3586 public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
3587 // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
3588 public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
3589 // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
3590 public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
3591 // uintptr_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
3592 public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
3593 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
3594 public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
3595 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
3596 public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
3597 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
3598 public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
3599 // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
3600 public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
3601 // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
3602 public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
3603 // uintptr_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
3604 public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
3605 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
3606 public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
3607 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
3608 public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
3609 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
3610 public static native long CResult_ShutdownDecodeErrorZ_err(long e);
3611 // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
3612 public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
3613 // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
3614 public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
3615 // uintptr_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
3616 public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
3617 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
3618 public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
3619 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
3620 public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
3621 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
3622 public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
3623 // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
3624 public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
3625 // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
3626 public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
3627 // uintptr_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
3628 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
3629 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
3630 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
3631 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
3632 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
3633 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
3634 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
3635 // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
3636 public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
3637 // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
3638 public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
3639 // uintptr_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
3640 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
3641 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
3642 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
3643 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
3644 public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
3645 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
3646 public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
3647 // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
3648 public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
3649 // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
3650 public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
3651 // uintptr_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
3652 public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
3653 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
3654 public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
3655 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
3656 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
3657 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
3658 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
3659 // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
3660 public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
3661 // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
3662 public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
3663 // uintptr_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
3664 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
3665 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
3666 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
3667 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
3668 public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
3669 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
3670 public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
3671 // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
3672 public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
3673 // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
3674 public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
3675 // uintptr_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
3676 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
3677 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
3678 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
3679 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
3680 public static native long CResult_PingDecodeErrorZ_ok(long o);
3681 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
3682 public static native long CResult_PingDecodeErrorZ_err(long e);
3683 // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
3684 public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
3685 // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
3686 public static native void CResult_PingDecodeErrorZ_free(long _res);
3687 // uintptr_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
3688 public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
3689 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
3690 public static native long CResult_PingDecodeErrorZ_clone(long orig);
3691 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
3692 public static native long CResult_PongDecodeErrorZ_ok(long o);
3693 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
3694 public static native long CResult_PongDecodeErrorZ_err(long e);
3695 // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
3696 public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
3697 // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
3698 public static native void CResult_PongDecodeErrorZ_free(long _res);
3699 // uintptr_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
3700 public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
3701 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
3702 public static native long CResult_PongDecodeErrorZ_clone(long orig);
3703 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
3704 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
3705 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
3706 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
3707 // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
3708 public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
3709 // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
3710 public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
3711 // uintptr_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
3712 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
3713 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
3714 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
3715 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
3716 public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
3717 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
3718 public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
3719 // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
3720 public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
3721 // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
3722 public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
3723 // uintptr_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
3724 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
3725 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
3726 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
3727 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
3728 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
3729 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
3730 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
3731 // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
3732 public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
3733 // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
3734 public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
3735 // uintptr_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
3736 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
3737 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
3738 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
3739 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
3740 public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
3741 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
3742 public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
3743 // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
3744 public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
3745 // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
3746 public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
3747 // uintptr_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
3748 public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
3749 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
3750 public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
3751 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
3752 public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
3753 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
3754 public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
3755 // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
3756 public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
3757 // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
3758 public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
3759 // uintptr_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
3760 public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
3761 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
3762 public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
3763 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
3764 public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
3765 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
3766 public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
3767 // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
3768 public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
3769 // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
3770 public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
3771 // uintptr_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
3772 public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
3773 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
3774 public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
3775 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
3776 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
3777 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
3778 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
3779 // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
3780 public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
3781 // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
3782 public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
3783 // uintptr_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
3784 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
3785 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
3786 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
3787 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
3788 public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
3789 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
3790 public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
3791 // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
3792 public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
3793 // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
3794 public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
3795 // uintptr_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
3796 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
3797 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
3798 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
3799 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
3800 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
3801 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
3802 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
3803 // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
3804 public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
3805 // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
3806 public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
3807 // uintptr_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
3808 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
3809 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
3810 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
3811 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
3812 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
3813 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
3814 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
3815 // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
3816 public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
3817 // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
3818 public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
3819 // uintptr_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
3820 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
3821 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
3822 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
3823 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
3824 public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
3825 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
3826 public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
3827 // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
3828 public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
3829 // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
3830 public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
3831 // uintptr_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
3832 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
3833 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
3834 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
3835 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
3836 public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
3837 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
3838 public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
3839 // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
3840 public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
3841 // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
3842 public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
3843 // uintptr_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
3844 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
3845 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
3846 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
3847 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
3848 public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
3849 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
3850 public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
3851 // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
3852 public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
3853 // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
3854 public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
3855 // uintptr_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
3856 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
3857 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
3858 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
3859 // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
3860 public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
3861 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
3862 public static native long CResult_InvoiceSignOrCreationErrorZ_ok(long o);
3863 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
3864 public static native long CResult_InvoiceSignOrCreationErrorZ_err(long e);
3865 // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
3866 public static native boolean CResult_InvoiceSignOrCreationErrorZ_is_ok(long o);
3867 // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
3868 public static native void CResult_InvoiceSignOrCreationErrorZ_free(long _res);
3869 // uintptr_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
3870 public static native long CResult_InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
3871 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
3872 public static native long CResult_InvoiceSignOrCreationErrorZ_clone(long orig);
3873 // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
3874 public static native long COption_FilterZ_some(long o);
3875 // struct LDKCOption_FilterZ COption_FilterZ_none(void);
3876 public static native long COption_FilterZ_none();
3877 // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
3878 public static native void COption_FilterZ_free(long _res);
3879 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
3880 public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
3881 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
3882 public static native long CResult_LockedChannelMonitorNoneZ_err();
3883 // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
3884 public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
3885 // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
3886 public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
3887 // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
3888 public static native void CVec_OutPointZ_free(long[] _res);
3889 // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
3890 public static native void PaymentPurpose_free(long this_ptr);
3891 // uintptr_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
3892 public static native long PaymentPurpose_clone_ptr(long arg);
3893 // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
3894 public static native long PaymentPurpose_clone(long orig);
3895 // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
3896 public static native long PaymentPurpose_invoice_payment(byte[] payment_preimage, byte[] payment_secret);
3897 // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
3898 public static native long PaymentPurpose_spontaneous_payment(byte[] a);
3899 // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
3900 public static native byte[] PaymentPurpose_write(long obj);
3901 // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
3902 public static native long PaymentPurpose_read(byte[] ser);
3903 // void ClosureReason_free(struct LDKClosureReason this_ptr);
3904 public static native void ClosureReason_free(long this_ptr);
3905 // uintptr_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
3906 public static native long ClosureReason_clone_ptr(long arg);
3907 // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
3908 public static native long ClosureReason_clone(long orig);
3909 // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
3910 public static native long ClosureReason_counterparty_force_closed(String peer_msg);
3911 // struct LDKClosureReason ClosureReason_holder_force_closed(void);
3912 public static native long ClosureReason_holder_force_closed();
3913 // struct LDKClosureReason ClosureReason_cooperative_closure(void);
3914 public static native long ClosureReason_cooperative_closure();
3915 // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
3916 public static native long ClosureReason_commitment_tx_confirmed();
3917 // struct LDKClosureReason ClosureReason_funding_timed_out(void);
3918 public static native long ClosureReason_funding_timed_out();
3919 // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
3920 public static native long ClosureReason_processing_error(String err);
3921 // struct LDKClosureReason ClosureReason_disconnected_peer(void);
3922 public static native long ClosureReason_disconnected_peer();
3923 // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
3924 public static native long ClosureReason_outdated_channel_manager();
3925 // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
3926 public static native byte[] ClosureReason_write(long obj);
3927 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
3928 public static native long ClosureReason_read(byte[] ser);
3929 // void Event_free(struct LDKEvent this_ptr);
3930 public static native void Event_free(long this_ptr);
3931 // uintptr_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
3932 public static native long Event_clone_ptr(long arg);
3933 // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
3934 public static native long Event_clone(long orig);
3935 // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, uint64_t user_channel_id);
3936 public static native long Event_funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, long user_channel_id);
3937 // struct LDKEvent Event_payment_received(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
3938 public static native long Event_payment_received(byte[] payment_hash, long amount_msat, long purpose);
3939 // struct LDKEvent Event_payment_claimed(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
3940 public static native long Event_payment_claimed(byte[] payment_hash, long amount_msat, long purpose);
3941 // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
3942 public static native long Event_payment_sent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
3943 // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
3944 public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash);
3945 // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
3946 public static native long Event_payment_path_successful(byte[] payment_id, byte[] payment_hash, long[] path);
3947 // struct LDKEvent Event_payment_path_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, bool rejected_by_dest, struct LDKCOption_NetworkUpdateZ network_update, bool all_paths_failed, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id, struct LDKRouteParameters retry);
3948 public static native long Event_payment_path_failed(byte[] payment_id, byte[] payment_hash, boolean rejected_by_dest, long network_update, boolean all_paths_failed, long[] path, long short_channel_id, long retry);
3949 // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
3950 public static native long Event_pending_htlcs_forwardable(long time_forwardable);
3951 // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
3952 public static native long Event_spendable_outputs(long[] outputs);
3953 // struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx);
3954 public static native long Event_payment_forwarded(byte[] prev_channel_id, byte[] next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx);
3955 // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, uint64_t user_channel_id, struct LDKClosureReason reason);
3956 public static native long Event_channel_closed(byte[] channel_id, long user_channel_id, long reason);
3957 // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
3958 public static native long Event_discard_funding(byte[] channel_id, byte[] transaction);
3959 // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type);
3960 public static native long Event_open_channel_request(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, long channel_type);
3961 // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
3962 public static native byte[] Event_write(long obj);
3963 // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
3964 public static native long Event_read(byte[] ser);
3965 // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
3966 public static native void MessageSendEvent_free(long this_ptr);
3967 // uintptr_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
3968 public static native long MessageSendEvent_clone_ptr(long arg);
3969 // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
3970 public static native long MessageSendEvent_clone(long orig);
3971 // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
3972 public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
3973 // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
3974 public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
3975 // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
3976 public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
3977 // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
3978 public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
3979 // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
3980 public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
3981 // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
3982 public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
3983 // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
3984 public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
3985 // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
3986 public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
3987 // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
3988 public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
3989 // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
3990 public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
3991 // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
3992 public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
3993 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
3994 public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
3995 // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
3996 public static native long MessageSendEvent_broadcast_node_announcement(long msg);
3997 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
3998 public static native long MessageSendEvent_broadcast_channel_update(long msg);
3999 // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
4000 public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
4001 // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
4002 public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
4003 // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
4004 public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
4005 // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
4006 public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
4007 // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
4008 public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
4009 // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
4010 public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
4011 // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
4012 public static native void MessageSendEventsProvider_free(long this_ptr);
4013 // void EventsProvider_free(struct LDKEventsProvider this_ptr);
4014 public static native void EventsProvider_free(long this_ptr);
4015 // void EventHandler_free(struct LDKEventHandler this_ptr);
4016 public static native void EventHandler_free(long this_ptr);
4017 // void APIError_free(struct LDKAPIError this_ptr);
4018 public static native void APIError_free(long this_ptr);
4019 // uintptr_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
4020 public static native long APIError_clone_ptr(long arg);
4021 // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
4022 public static native long APIError_clone(long orig);
4023 // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
4024 public static native long APIError_apimisuse_error(String err);
4025 // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
4026 public static native long APIError_fee_rate_too_high(String err, int feerate);
4027 // struct LDKAPIError APIError_route_error(struct LDKStr err);
4028 public static native long APIError_route_error(String err);
4029 // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
4030 public static native long APIError_channel_unavailable(String err);
4031 // struct LDKAPIError APIError_monitor_update_failed(void);
4032 public static native long APIError_monitor_update_failed();
4033 // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
4034 public static native long APIError_incompatible_shutdown_script(long script);
4035 // void BigSize_free(struct LDKBigSize this_obj);
4036 public static native void BigSize_free(long this_obj);
4037 // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
4038 public static native long BigSize_get_a(long this_ptr);
4039 // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
4040 public static native void BigSize_set_a(long this_ptr, long val);
4041 // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
4042 public static native long BigSize_new(long a_arg);
4043 // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
4044 public static native long sign(byte[] msg, byte[] sk);
4045 // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
4046 public static native long recover_pk(byte[] msg, String sig);
4047 // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
4048 public static native boolean verify(byte[] msg, String sig, byte[] pk);
4049 // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z data_without_signature);
4050 public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
4051 // void Persister_free(struct LDKPersister this_ptr);
4052 public static native void Persister_free(long this_ptr);
4053 // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
4054 public static native Level Level_clone(long orig);
4055 // enum LDKLevel Level_gossip(void);
4056 public static native Level Level_gossip();
4057 // enum LDKLevel Level_trace(void);
4058 public static native Level Level_trace();
4059 // enum LDKLevel Level_debug(void);
4060 public static native Level Level_debug();
4061 // enum LDKLevel Level_info(void);
4062 public static native Level Level_info();
4063 // enum LDKLevel Level_warn(void);
4064 public static native Level Level_warn();
4065 // enum LDKLevel Level_error(void);
4066 public static native Level Level_error();
4067 // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
4068 public static native boolean Level_eq(long a, long b);
4069 // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
4070 public static native long Level_hash(long o);
4071 // MUST_USE_RES enum LDKLevel Level_max(void);
4072 public static native Level Level_max();
4073 // void Record_free(struct LDKRecord this_obj);
4074 public static native void Record_free(long this_obj);
4075 // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
4076 public static native Level Record_get_level(long this_ptr);
4077 // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
4078 public static native void Record_set_level(long this_ptr, Level val);
4079 // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
4080 public static native String Record_get_args(long this_ptr);
4081 // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
4082 public static native void Record_set_args(long this_ptr, String val);
4083 // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
4084 public static native String Record_get_module_path(long this_ptr);
4085 // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
4086 public static native void Record_set_module_path(long this_ptr, String val);
4087 // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
4088 public static native String Record_get_file(long this_ptr);
4089 // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
4090 public static native void Record_set_file(long this_ptr, String val);
4091 // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
4092 public static native int Record_get_line(long this_ptr);
4093 // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
4094 public static native void Record_set_line(long this_ptr, int val);
4095 // uintptr_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
4096 public static native long Record_clone_ptr(long arg);
4097 // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
4098 public static native long Record_clone(long orig);
4099 // void Logger_free(struct LDKLogger this_ptr);
4100 public static native void Logger_free(long this_ptr);
4101 // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
4102 public static native void ChannelHandshakeConfig_free(long this_obj);
4103 // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4104 public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
4105 // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
4106 public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
4107 // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4108 public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
4109 // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
4110 public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
4111 // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4112 public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
4113 // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
4114 public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
4115 // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4116 public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
4117 // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
4118 public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
4119 // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4120 public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
4121 // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
4122 public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
4123 // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4124 public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
4125 // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
4126 public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
4127 // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4128 public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
4129 // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
4130 public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
4131 // 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, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg);
4132 public static native long ChannelHandshakeConfig_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg, byte max_inbound_htlc_value_in_flight_percent_of_channel_arg, boolean negotiate_scid_privacy_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg);
4133 // uintptr_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
4134 public static native long ChannelHandshakeConfig_clone_ptr(long arg);
4135 // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
4136 public static native long ChannelHandshakeConfig_clone(long orig);
4137 // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
4138 public static native long ChannelHandshakeConfig_default();
4139 // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
4140 public static native void ChannelHandshakeLimits_free(long this_obj);
4141 // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4142 public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
4143 // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4144 public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
4145 // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4146 public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
4147 // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4148 public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
4149 // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4150 public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
4151 // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4152 public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
4153 // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4154 public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
4155 // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4156 public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
4157 // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4158 public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
4159 // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4160 public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
4161 // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4162 public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
4163 // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
4164 public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
4165 // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4166 public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
4167 // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
4168 public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
4169 // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4170 public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
4171 // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
4172 public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
4173 // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4174 public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
4175 // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
4176 public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
4177 // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4178 public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
4179 // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
4180 public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
4181 // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
4182 public static native long ChannelHandshakeLimits_new(long min_funding_satoshis_arg, long max_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, short min_max_accepted_htlcs_arg, int max_minimum_depth_arg, boolean trust_own_funding_0conf_arg, boolean force_announced_channel_preference_arg, short their_to_self_delay_arg);
4183 // uintptr_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
4184 public static native long ChannelHandshakeLimits_clone_ptr(long arg);
4185 // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
4186 public static native long ChannelHandshakeLimits_clone(long orig);
4187 // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
4188 public static native long ChannelHandshakeLimits_default();
4189 // void ChannelConfig_free(struct LDKChannelConfig this_obj);
4190 public static native void ChannelConfig_free(long this_obj);
4191 // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
4192 public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
4193 // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
4194 public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
4195 // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
4196 public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
4197 // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
4198 public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
4199 // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
4200 public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
4201 // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
4202 public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
4203 // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
4204 public static native long ChannelConfig_get_max_dust_htlc_exposure_msat(long this_ptr);
4205 // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
4206 public static native void ChannelConfig_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
4207 // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
4208 public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
4209 // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
4210 public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
4211 // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
4212 public static native long ChannelConfig_new(int forwarding_fee_proportional_millionths_arg, int forwarding_fee_base_msat_arg, short cltv_expiry_delta_arg, long max_dust_htlc_exposure_msat_arg, long force_close_avoidance_max_fee_satoshis_arg);
4213 // uintptr_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
4214 public static native long ChannelConfig_clone_ptr(long arg);
4215 // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
4216 public static native long ChannelConfig_clone(long orig);
4217 // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
4218 public static native long ChannelConfig_default();
4219 // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
4220 public static native byte[] ChannelConfig_write(long obj);
4221 // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
4222 public static native long ChannelConfig_read(byte[] ser);
4223 // void UserConfig_free(struct LDKUserConfig this_obj);
4224 public static native void UserConfig_free(long this_obj);
4225 // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
4226 public static native long UserConfig_get_channel_handshake_config(long this_ptr);
4227 // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
4228 public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
4229 // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
4230 public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
4231 // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
4232 public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
4233 // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
4234 public static native long UserConfig_get_channel_config(long this_ptr);
4235 // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
4236 public static native void UserConfig_set_channel_config(long this_ptr, long val);
4237 // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
4238 public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
4239 // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
4240 public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
4241 // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
4242 public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
4243 // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
4244 public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
4245 // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
4246 public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
4247 // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
4248 public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
4249 // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg);
4250 public static native long UserConfig_new(long channel_handshake_config_arg, long channel_handshake_limits_arg, long channel_config_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg, boolean manually_accept_inbound_channels_arg);
4251 // uintptr_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
4252 public static native long UserConfig_clone_ptr(long arg);
4253 // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
4254 public static native long UserConfig_clone(long orig);
4255 // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
4256 public static native long UserConfig_default();
4257 // void BestBlock_free(struct LDKBestBlock this_obj);
4258 public static native void BestBlock_free(long this_obj);
4259 // uintptr_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
4260 public static native long BestBlock_clone_ptr(long arg);
4261 // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
4262 public static native long BestBlock_clone(long orig);
4263 // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
4264 public static native long BestBlock_from_genesis(Network network);
4265 // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
4266 public static native long BestBlock_new(byte[] block_hash, int height);
4267 // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
4268 public static native byte[] BestBlock_block_hash(long this_arg);
4269 // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
4270 public static native int BestBlock_height(long this_arg);
4271 // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
4272 public static native AccessError AccessError_clone(long orig);
4273 // enum LDKAccessError AccessError_unknown_chain(void);
4274 public static native AccessError AccessError_unknown_chain();
4275 // enum LDKAccessError AccessError_unknown_tx(void);
4276 public static native AccessError AccessError_unknown_tx();
4277 // void Access_free(struct LDKAccess this_ptr);
4278 public static native void Access_free(long this_ptr);
4279 // void Listen_free(struct LDKListen this_ptr);
4280 public static native void Listen_free(long this_ptr);
4281 // void Confirm_free(struct LDKConfirm this_ptr);
4282 public static native void Confirm_free(long this_ptr);
4283 // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
4284 public static native ChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(long orig);
4285 // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure(void);
4286 public static native ChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure();
4287 // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure(void);
4288 public static native ChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure();
4289 // void Watch_free(struct LDKWatch this_ptr);
4290 public static native void Watch_free(long this_ptr);
4291 // void Filter_free(struct LDKFilter this_ptr);
4292 public static native void Filter_free(long this_ptr);
4293 // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
4294 public static native void WatchedOutput_free(long this_obj);
4295 // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
4296 public static native byte[] WatchedOutput_get_block_hash(long this_ptr);
4297 // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
4298 public static native void WatchedOutput_set_block_hash(long this_ptr, byte[] val);
4299 // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
4300 public static native long WatchedOutput_get_outpoint(long this_ptr);
4301 // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
4302 public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
4303 // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
4304 public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
4305 // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
4306 public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
4307 // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
4308 public static native long WatchedOutput_new(byte[] block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
4309 // uintptr_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
4310 public static native long WatchedOutput_clone_ptr(long arg);
4311 // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
4312 public static native long WatchedOutput_clone(long orig);
4313 // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
4314 public static native long WatchedOutput_hash(long o);
4315 // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
4316 public static native void BroadcasterInterface_free(long this_ptr);
4317 // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
4318 public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
4319 // enum LDKConfirmationTarget ConfirmationTarget_background(void);
4320 public static native ConfirmationTarget ConfirmationTarget_background();
4321 // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
4322 public static native ConfirmationTarget ConfirmationTarget_normal();
4323 // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
4324 public static native ConfirmationTarget ConfirmationTarget_high_priority();
4325 // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
4326 public static native boolean ConfirmationTarget_eq(long a, long b);
4327 // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
4328 public static native void FeeEstimator_free(long this_ptr);
4329 // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
4330 public static native void MonitorUpdateId_free(long this_obj);
4331 // uintptr_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
4332 public static native long MonitorUpdateId_clone_ptr(long arg);
4333 // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
4334 public static native long MonitorUpdateId_clone(long orig);
4335 // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
4336 public static native long MonitorUpdateId_hash(long o);
4337 // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
4338 public static native boolean MonitorUpdateId_eq(long a, long b);
4339 // void Persist_free(struct LDKPersist this_ptr);
4340 public static native void Persist_free(long this_ptr);
4341 // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
4342 public static native void LockedChannelMonitor_free(long this_obj);
4343 // void ChainMonitor_free(struct LDKChainMonitor this_obj);
4344 public static native void ChainMonitor_free(long this_obj);
4345 // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
4346 public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
4347 // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
4348 public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
4349 // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
4350 public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
4351 // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
4352 public static native long[] ChainMonitor_list_monitors(long this_arg);
4353 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChainMonitor_channel_monitor_updated(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKMonitorUpdateId completed_update_id);
4354 public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
4355 // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
4356 public static native long ChainMonitor_as_Listen(long this_arg);
4357 // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
4358 public static native long ChainMonitor_as_Confirm(long this_arg);
4359 // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
4360 public static native long ChainMonitor_as_Watch(long this_arg);
4361 // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
4362 public static native long ChainMonitor_as_EventsProvider(long this_arg);
4363 // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
4364 public static native void ChannelMonitorUpdate_free(long this_obj);
4365 // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
4366 public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
4367 // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
4368 public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
4369 // uintptr_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
4370 public static native long ChannelMonitorUpdate_clone_ptr(long arg);
4371 // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
4372 public static native long ChannelMonitorUpdate_clone(long orig);
4373 // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
4374 public static native byte[] ChannelMonitorUpdate_write(long obj);
4375 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
4376 public static native long ChannelMonitorUpdate_read(byte[] ser);
4377 // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
4378 public static native void MonitorEvent_free(long this_ptr);
4379 // uintptr_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
4380 public static native long MonitorEvent_clone_ptr(long arg);
4381 // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
4382 public static native long MonitorEvent_clone(long orig);
4383 // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
4384 public static native long MonitorEvent_htlcevent(long a);
4385 // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
4386 public static native long MonitorEvent_commitment_tx_confirmed(long a);
4387 // struct LDKMonitorEvent MonitorEvent_update_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
4388 public static native long MonitorEvent_update_completed(long funding_txo, long monitor_update_id);
4389 // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
4390 public static native long MonitorEvent_update_failed(long a);
4391 // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
4392 public static native byte[] MonitorEvent_write(long obj);
4393 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
4394 public static native long MonitorEvent_read(byte[] ser);
4395 // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
4396 public static native void HTLCUpdate_free(long this_obj);
4397 // uintptr_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
4398 public static native long HTLCUpdate_clone_ptr(long arg);
4399 // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
4400 public static native long HTLCUpdate_clone(long orig);
4401 // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
4402 public static native byte[] HTLCUpdate_write(long obj);
4403 // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
4404 public static native long HTLCUpdate_read(byte[] ser);
4405 // void Balance_free(struct LDKBalance this_ptr);
4406 public static native void Balance_free(long this_ptr);
4407 // uintptr_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
4408 public static native long Balance_clone_ptr(long arg);
4409 // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
4410 public static native long Balance_clone(long orig);
4411 // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
4412 public static native long Balance_claimable_on_channel_close(long claimable_amount_satoshis);
4413 // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
4414 public static native long Balance_claimable_awaiting_confirmations(long claimable_amount_satoshis, int confirmation_height);
4415 // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
4416 public static native long Balance_contentious_claimable(long claimable_amount_satoshis, int timeout_height);
4417 // struct LDKBalance Balance_maybe_claimable_htlcawaiting_timeout(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
4418 public static native long Balance_maybe_claimable_htlcawaiting_timeout(long claimable_amount_satoshis, int claimable_height);
4419 // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
4420 public static native boolean Balance_eq(long a, long b);
4421 // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
4422 public static native void ChannelMonitor_free(long this_obj);
4423 // uintptr_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
4424 public static native long ChannelMonitor_clone_ptr(long arg);
4425 // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
4426 public static native long ChannelMonitor_clone(long orig);
4427 // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
4428 public static native byte[] ChannelMonitor_write(long obj);
4429 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
4430 public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
4431 // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4432 public static native long ChannelMonitor_get_latest_update_id(long this_arg);
4433 // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4434 public static native long ChannelMonitor_get_funding_txo(long this_arg);
4435 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4436 public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
4437 // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
4438 public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
4439 // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4440 public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
4441 // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4442 public static native long[] ChannelMonitor_get_and_clear_pending_events(long this_arg);
4443 // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
4444 public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
4445 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
4446 public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
4447 // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
4448 public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
4449 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
4450 public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
4451 // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
4452 public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
4453 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
4454 public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
4455 // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4456 public static native byte[][] ChannelMonitor_get_relevant_txids(long this_arg);
4457 // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4458 public static native long ChannelMonitor_current_best_block(long this_arg);
4459 // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
4460 public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
4461 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
4462 public static native long C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser, long arg);
4463 // void OutPoint_free(struct LDKOutPoint this_obj);
4464 public static native void OutPoint_free(long this_obj);
4465 // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
4466 public static native byte[] OutPoint_get_txid(long this_ptr);
4467 // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
4468 public static native void OutPoint_set_txid(long this_ptr, byte[] val);
4469 // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
4470 public static native short OutPoint_get_index(long this_ptr);
4471 // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
4472 public static native void OutPoint_set_index(long this_ptr, short val);
4473 // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
4474 public static native long OutPoint_new(byte[] txid_arg, short index_arg);
4475 // uintptr_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
4476 public static native long OutPoint_clone_ptr(long arg);
4477 // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
4478 public static native long OutPoint_clone(long orig);
4479 // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
4480 public static native boolean OutPoint_eq(long a, long b);
4481 // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
4482 public static native long OutPoint_hash(long o);
4483 // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
4484 public static native byte[] OutPoint_to_channel_id(long this_arg);
4485 // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
4486 public static native byte[] OutPoint_write(long obj);
4487 // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
4488 public static native long OutPoint_read(byte[] ser);
4489 // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
4490 public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
4491 // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
4492 public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
4493 // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
4494 public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
4495 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
4496 public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
4497 // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
4498 public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
4499 // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
4500 public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
4501 // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
4502 public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
4503 // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
4504 public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
4505 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
4506 public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
4507 // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
4508 public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
4509 // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
4510 public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
4511 // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
4512 public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
4513 // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
4514 public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
4515 // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
4516 public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
4517 // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKPublicKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
4518 public static native long DelayedPaymentOutputDescriptor_new(long outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, long output_arg, byte[] revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
4519 // uintptr_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
4520 public static native long DelayedPaymentOutputDescriptor_clone_ptr(long arg);
4521 // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
4522 public static native long DelayedPaymentOutputDescriptor_clone(long orig);
4523 // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
4524 public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
4525 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
4526 public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
4527 // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
4528 public static native void StaticPaymentOutputDescriptor_free(long this_obj);
4529 // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
4530 public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
4531 // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
4532 public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
4533 // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
4534 public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
4535 // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
4536 public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
4537 // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
4538 public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
4539 // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
4540 public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
4541 // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
4542 public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
4543 // MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
4544 public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
4545 // uintptr_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
4546 public static native long StaticPaymentOutputDescriptor_clone_ptr(long arg);
4547 // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
4548 public static native long StaticPaymentOutputDescriptor_clone(long orig);
4549 // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
4550 public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
4551 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
4552 public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
4553 // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
4554 public static native void SpendableOutputDescriptor_free(long this_ptr);
4555 // uintptr_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
4556 public static native long SpendableOutputDescriptor_clone_ptr(long arg);
4557 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
4558 public static native long SpendableOutputDescriptor_clone(long orig);
4559 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
4560 public static native long SpendableOutputDescriptor_static_output(long outpoint, long output);
4561 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
4562 public static native long SpendableOutputDescriptor_delayed_payment_output(long a);
4563 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
4564 public static native long SpendableOutputDescriptor_static_payment_output(long a);
4565 // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
4566 public static native byte[] SpendableOutputDescriptor_write(long obj);
4567 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
4568 public static native long SpendableOutputDescriptor_read(byte[] ser);
4569 // void BaseSign_free(struct LDKBaseSign this_ptr);
4570 public static native void BaseSign_free(long this_ptr);
4571 // uintptr_t Sign_clone_ptr(LDKSign *NONNULL_PTR arg);
4572 public static native long Sign_clone_ptr(long arg);
4573 // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
4574 public static native long Sign_clone(long orig);
4575 // void Sign_free(struct LDKSign this_ptr);
4576 public static native void Sign_free(long this_ptr);
4577 // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
4578 public static native Recipient Recipient_clone(long orig);
4579 // enum LDKRecipient Recipient_node(void);
4580 public static native Recipient Recipient_node();
4581 // enum LDKRecipient Recipient_phantom_node(void);
4582 public static native Recipient Recipient_phantom_node();
4583 // void KeysInterface_free(struct LDKKeysInterface this_ptr);
4584 public static native void KeysInterface_free(long this_ptr);
4585 // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
4586 public static native void InMemorySigner_free(long this_obj);
4587 // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
4588 public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
4589 // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
4590 public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
4591 // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
4592 public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
4593 // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
4594 public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
4595 // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
4596 public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
4597 // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
4598 public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
4599 // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
4600 public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
4601 // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
4602 public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
4603 // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
4604 public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
4605 // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
4606 public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
4607 // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
4608 public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
4609 // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
4610 public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
4611 // uintptr_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
4612 public static native long InMemorySigner_clone_ptr(long arg);
4613 // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
4614 public static native long InMemorySigner_clone(long orig);
4615 // MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey node_secret, struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id);
4616 public static native long InMemorySigner_new(byte[] node_secret, byte[] funding_key, byte[] revocation_base_key, byte[] payment_key, byte[] delayed_payment_base_key, byte[] htlc_base_key, byte[] commitment_seed, long channel_value_satoshis, byte[] channel_keys_id);
4617 // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4618 public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
4619 // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4620 public static native short InMemorySigner_counterparty_selected_contest_delay(long this_arg);
4621 // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4622 public static native short InMemorySigner_holder_selected_contest_delay(long this_arg);
4623 // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4624 public static native boolean InMemorySigner_is_outbound(long this_arg);
4625 // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4626 public static native long InMemorySigner_funding_outpoint(long this_arg);
4627 // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4628 public static native long InMemorySigner_get_channel_parameters(long this_arg);
4629 // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4630 public static native boolean InMemorySigner_opt_anchors(long this_arg);
4631 // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_counterparty_payment_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR descriptor);
4632 public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
4633 // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_dynamic_p2wsh_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR descriptor);
4634 public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
4635 // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4636 public static native long InMemorySigner_as_BaseSign(long this_arg);
4637 // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
4638 public static native long InMemorySigner_as_Sign(long this_arg);
4639 // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
4640 public static native byte[] InMemorySigner_write(long obj);
4641 // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKSecretKey arg);
4642 public static native long InMemorySigner_read(byte[] ser, byte[] arg);
4643 // void KeysManager_free(struct LDKKeysManager this_obj);
4644 public static native void KeysManager_free(long this_obj);
4645 // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
4646 public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
4647 // MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const struct LDKKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
4648 public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
4649 // MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight);
4650 public static native long KeysManager_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight);
4651 // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
4652 public static native long KeysManager_as_KeysInterface(long this_arg);
4653 // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
4654 public static native void PhantomKeysManager_free(long this_obj);
4655 // struct LDKKeysInterface PhantomKeysManager_as_KeysInterface(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
4656 public static native long PhantomKeysManager_as_KeysInterface(long this_arg);
4657 // MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos, const uint8_t (*cross_node_seed)[32]);
4658 public static native long PhantomKeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed);
4659 // MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight);
4660 public static native long PhantomKeysManager_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight);
4661 // MUST_USE_RES struct LDKInMemorySigner PhantomKeysManager_derive_channel_keys(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
4662 public static native long PhantomKeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
4663 // void ChannelManager_free(struct LDKChannelManager this_obj);
4664 public static native void ChannelManager_free(long this_obj);
4665 // void ChainParameters_free(struct LDKChainParameters this_obj);
4666 public static native void ChainParameters_free(long this_obj);
4667 // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
4668 public static native Network ChainParameters_get_network(long this_ptr);
4669 // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
4670 public static native void ChainParameters_set_network(long this_ptr, Network val);
4671 // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
4672 public static native long ChainParameters_get_best_block(long this_ptr);
4673 // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
4674 public static native void ChainParameters_set_best_block(long this_ptr, long val);
4675 // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
4676 public static native long ChainParameters_new(Network network_arg, long best_block_arg);
4677 // uintptr_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
4678 public static native long ChainParameters_clone_ptr(long arg);
4679 // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
4680 public static native long ChainParameters_clone(long orig);
4681 // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
4682 public static native void CounterpartyForwardingInfo_free(long this_obj);
4683 // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
4684 public static native int CounterpartyForwardingInfo_get_fee_base_msat(long this_ptr);
4685 // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
4686 public static native void CounterpartyForwardingInfo_set_fee_base_msat(long this_ptr, int val);
4687 // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
4688 public static native int CounterpartyForwardingInfo_get_fee_proportional_millionths(long this_ptr);
4689 // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
4690 public static native void CounterpartyForwardingInfo_set_fee_proportional_millionths(long this_ptr, int val);
4691 // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
4692 public static native short CounterpartyForwardingInfo_get_cltv_expiry_delta(long this_ptr);
4693 // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
4694 public static native void CounterpartyForwardingInfo_set_cltv_expiry_delta(long this_ptr, short val);
4695 // MUST_USE_RES struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg);
4696 public static native long CounterpartyForwardingInfo_new(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg);
4697 // uintptr_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
4698 public static native long CounterpartyForwardingInfo_clone_ptr(long arg);
4699 // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
4700 public static native long CounterpartyForwardingInfo_clone(long orig);
4701 // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
4702 public static native void ChannelCounterparty_free(long this_obj);
4703 // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
4704 public static native byte[] ChannelCounterparty_get_node_id(long this_ptr);
4705 // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
4706 public static native void ChannelCounterparty_set_node_id(long this_ptr, byte[] val);
4707 // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
4708 public static native long ChannelCounterparty_get_features(long this_ptr);
4709 // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
4710 public static native void ChannelCounterparty_set_features(long this_ptr, long val);
4711 // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
4712 public static native long ChannelCounterparty_get_unspendable_punishment_reserve(long this_ptr);
4713 // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
4714 public static native void ChannelCounterparty_set_unspendable_punishment_reserve(long this_ptr, long val);
4715 // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
4716 public static native long ChannelCounterparty_get_forwarding_info(long this_ptr);
4717 // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
4718 public static native void ChannelCounterparty_set_forwarding_info(long this_ptr, long val);
4719 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
4720 public static native long ChannelCounterparty_get_outbound_htlc_minimum_msat(long this_ptr);
4721 // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4722 public static native void ChannelCounterparty_set_outbound_htlc_minimum_msat(long this_ptr, long val);
4723 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
4724 public static native long ChannelCounterparty_get_outbound_htlc_maximum_msat(long this_ptr);
4725 // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4726 public static native void ChannelCounterparty_set_outbound_htlc_maximum_msat(long this_ptr, long val);
4727 // MUST_USE_RES struct LDKChannelCounterparty ChannelCounterparty_new(struct LDKPublicKey node_id_arg, struct LDKInitFeatures features_arg, uint64_t unspendable_punishment_reserve_arg, struct LDKCounterpartyForwardingInfo forwarding_info_arg, struct LDKCOption_u64Z outbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z outbound_htlc_maximum_msat_arg);
4728 public static native long ChannelCounterparty_new(byte[] node_id_arg, long features_arg, long unspendable_punishment_reserve_arg, long forwarding_info_arg, long outbound_htlc_minimum_msat_arg, long outbound_htlc_maximum_msat_arg);
4729 // uintptr_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
4730 public static native long ChannelCounterparty_clone_ptr(long arg);
4731 // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
4732 public static native long ChannelCounterparty_clone(long orig);
4733 // void ChannelDetails_free(struct LDKChannelDetails this_obj);
4734 public static native void ChannelDetails_free(long this_obj);
4735 // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
4736 public static native byte[] ChannelDetails_get_channel_id(long this_ptr);
4737 // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
4738 public static native void ChannelDetails_set_channel_id(long this_ptr, byte[] val);
4739 // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4740 public static native long ChannelDetails_get_counterparty(long this_ptr);
4741 // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
4742 public static native void ChannelDetails_set_counterparty(long this_ptr, long val);
4743 // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4744 public static native long ChannelDetails_get_funding_txo(long this_ptr);
4745 // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
4746 public static native void ChannelDetails_set_funding_txo(long this_ptr, long val);
4747 // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4748 public static native long ChannelDetails_get_channel_type(long this_ptr);
4749 // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
4750 public static native void ChannelDetails_set_channel_type(long this_ptr, long val);
4751 // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4752 public static native long ChannelDetails_get_short_channel_id(long this_ptr);
4753 // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4754 public static native void ChannelDetails_set_short_channel_id(long this_ptr, long val);
4755 // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4756 public static native long ChannelDetails_get_outbound_scid_alias(long this_ptr);
4757 // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4758 public static native void ChannelDetails_set_outbound_scid_alias(long this_ptr, long val);
4759 // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4760 public static native long ChannelDetails_get_inbound_scid_alias(long this_ptr);
4761 // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4762 public static native void ChannelDetails_set_inbound_scid_alias(long this_ptr, long val);
4763 // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4764 public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
4765 // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
4766 public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
4767 // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4768 public static native long ChannelDetails_get_unspendable_punishment_reserve(long this_ptr);
4769 // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4770 public static native void ChannelDetails_set_unspendable_punishment_reserve(long this_ptr, long val);
4771 // uint64_t ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4772 public static native long ChannelDetails_get_user_channel_id(long this_ptr);
4773 // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
4774 public static native void ChannelDetails_set_user_channel_id(long this_ptr, long val);
4775 // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4776 public static native long ChannelDetails_get_balance_msat(long this_ptr);
4777 // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
4778 public static native void ChannelDetails_set_balance_msat(long this_ptr, long val);
4779 // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4780 public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
4781 // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
4782 public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
4783 // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4784 public static native long ChannelDetails_get_next_outbound_htlc_limit_msat(long this_ptr);
4785 // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
4786 public static native void ChannelDetails_set_next_outbound_htlc_limit_msat(long this_ptr, long val);
4787 // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4788 public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
4789 // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
4790 public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
4791 // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4792 public static native long ChannelDetails_get_confirmations_required(long this_ptr);
4793 // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
4794 public static native void ChannelDetails_set_confirmations_required(long this_ptr, long val);
4795 // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4796 public static native long ChannelDetails_get_force_close_spend_delay(long this_ptr);
4797 // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
4798 public static native void ChannelDetails_set_force_close_spend_delay(long this_ptr, long val);
4799 // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4800 public static native boolean ChannelDetails_get_is_outbound(long this_ptr);
4801 // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
4802 public static native void ChannelDetails_set_is_outbound(long this_ptr, boolean val);
4803 // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4804 public static native boolean ChannelDetails_get_is_channel_ready(long this_ptr);
4805 // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
4806 public static native void ChannelDetails_set_is_channel_ready(long this_ptr, boolean val);
4807 // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4808 public static native boolean ChannelDetails_get_is_usable(long this_ptr);
4809 // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
4810 public static native void ChannelDetails_set_is_usable(long this_ptr, boolean val);
4811 // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4812 public static native boolean ChannelDetails_get_is_public(long this_ptr);
4813 // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
4814 public static native void ChannelDetails_set_is_public(long this_ptr, boolean val);
4815 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4816 public static native long ChannelDetails_get_inbound_htlc_minimum_msat(long this_ptr);
4817 // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4818 public static native void ChannelDetails_set_inbound_htlc_minimum_msat(long this_ptr, long val);
4819 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4820 public static native long ChannelDetails_get_inbound_htlc_maximum_msat(long this_ptr);
4821 // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
4822 public static native void ChannelDetails_set_inbound_htlc_maximum_msat(long this_ptr, long val);
4823 // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
4824 public static native long ChannelDetails_get_config(long this_ptr);
4825 // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
4826 public static native void ChannelDetails_set_config(long this_ptr, long val);
4827 // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, uint64_t user_channel_id_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg);
4828 public static native long ChannelDetails_new(byte[] channel_id_arg, long counterparty_arg, long funding_txo_arg, long channel_type_arg, long short_channel_id_arg, long outbound_scid_alias_arg, long inbound_scid_alias_arg, long channel_value_satoshis_arg, long unspendable_punishment_reserve_arg, long user_channel_id_arg, long balance_msat_arg, long outbound_capacity_msat_arg, long next_outbound_htlc_limit_msat_arg, long inbound_capacity_msat_arg, long confirmations_required_arg, long force_close_spend_delay_arg, boolean is_outbound_arg, boolean is_channel_ready_arg, boolean is_usable_arg, boolean is_public_arg, long inbound_htlc_minimum_msat_arg, long inbound_htlc_maximum_msat_arg, long config_arg);
4829 // uintptr_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
4830 public static native long ChannelDetails_clone_ptr(long arg);
4831 // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
4832 public static native long ChannelDetails_clone(long orig);
4833 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
4834 public static native long ChannelDetails_get_inbound_payment_scid(long this_arg);
4835 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
4836 public static native long ChannelDetails_get_outbound_payment_scid(long this_arg);
4837 // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
4838 public static native void PaymentSendFailure_free(long this_ptr);
4839 // uintptr_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
4840 public static native long PaymentSendFailure_clone_ptr(long arg);
4841 // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
4842 public static native long PaymentSendFailure_clone(long orig);
4843 // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
4844 public static native long PaymentSendFailure_parameter_error(long a);
4845 // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
4846 public static native long PaymentSendFailure_path_parameter_error(long[] a);
4847 // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_retry_safe(struct LDKCVec_APIErrorZ a);
4848 public static native long PaymentSendFailure_all_failed_retry_safe(long[] a);
4849 // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
4850 public static native long PaymentSendFailure_partial_failure(long[] results, long failed_paths_retry, byte[] payment_id);
4851 // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
4852 public static native void PhantomRouteHints_free(long this_obj);
4853 // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
4854 public static native long[] PhantomRouteHints_get_channels(long this_ptr);
4855 // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
4856 public static native void PhantomRouteHints_set_channels(long this_ptr, long[] val);
4857 // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
4858 public static native long PhantomRouteHints_get_phantom_scid(long this_ptr);
4859 // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
4860 public static native void PhantomRouteHints_set_phantom_scid(long this_ptr, long val);
4861 // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
4862 public static native byte[] PhantomRouteHints_get_real_node_pubkey(long this_ptr);
4863 // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
4864 public static native void PhantomRouteHints_set_real_node_pubkey(long this_ptr, byte[] val);
4865 // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
4866 public static native long PhantomRouteHints_new(long[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg);
4867 // uintptr_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
4868 public static native long PhantomRouteHints_clone_ptr(long arg);
4869 // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
4870 public static native long PhantomRouteHints_clone(long orig);
4871 // MUST_USE_RES struct LDKChannelManager ChannelManager_new(struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKLogger logger, struct LDKKeysInterface keys_manager, struct LDKUserConfig config, struct LDKChainParameters params);
4872 public static native long ChannelManager_new(long fee_est, long chain_monitor, long tx_broadcaster, long logger, long keys_manager, long config, long params);
4873 // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
4874 public static native long ChannelManager_get_current_default_configuration(long this_arg);
4875 // MUST_USE_RES struct LDKCResult__u832APIErrorZ 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_channel_id, struct LDKUserConfig override_config);
4876 public static native long ChannelManager_create_channel(long this_arg, byte[] their_network_key, long channel_value_satoshis, long push_msat, long user_channel_id, long override_config);
4877 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
4878 public static native long[] ChannelManager_list_channels(long this_arg);
4879 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
4880 public static native long[] ChannelManager_list_usable_channels(long this_arg);
4881 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
4882 public static native long ChannelManager_close_channel(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
4883 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_target_feerate(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id, uint32_t target_feerate_sats_per_1000_weight);
4884 public static native long ChannelManager_close_channel_with_target_feerate(long this_arg, byte[] channel_id, byte[] counterparty_node_id, int target_feerate_sats_per_1000_weight);
4885 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
4886 public static native long ChannelManager_force_close_broadcasting_latest_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
4887 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
4888 public static native long ChannelManager_force_close_without_broadcasting_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
4889 // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
4890 public static native void ChannelManager_force_close_all_channels_broadcasting_latest_txn(long this_arg);
4891 // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
4892 public static native void ChannelManager_force_close_all_channels_without_broadcasting_txn(long this_arg);
4893 // MUST_USE_RES struct LDKCResult_PaymentIdPaymentSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
4894 public static native long ChannelManager_send_payment(long this_arg, long route, byte[] payment_hash, byte[] payment_secret);
4895 // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_retry_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id);
4896 public static native long ChannelManager_retry_payment(long this_arg, long route, byte[] payment_id);
4897 // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
4898 public static native void ChannelManager_abandon_payment(long this_arg, byte[] payment_id);
4899 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage);
4900 public static native long ChannelManager_send_spontaneous_payment(long this_arg, long route, byte[] payment_preimage);
4901 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction);
4902 public static native long ChannelManager_funding_transaction_generated(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] funding_transaction);
4903 // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
4904 public static native void ChannelManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
4905 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config);
4906 public static native long ChannelManager_update_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config);
4907 // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
4908 public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
4909 // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
4910 public static native void ChannelManager_timer_tick_occurred(long this_arg);
4911 // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
4912 public static native void ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash);
4913 // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
4914 public static native void ChannelManager_claim_funds(long this_arg, byte[] payment_preimage);
4915 // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
4916 public static native byte[] ChannelManager_get_our_node_id(long this_arg);
4917 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, uint64_t user_channel_id);
4918 public static native long ChannelManager_accept_inbound_channel(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, long user_channel_id);
4919 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, uint64_t user_channel_id);
4920 public static native long ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, long user_channel_id);
4921 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
4922 public static native long ChannelManager_create_inbound_payment(long this_arg, long min_value_msat, int invoice_expiry_delta_secs);
4923 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ ChannelManager_create_inbound_payment_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
4924 public static native long ChannelManager_create_inbound_payment_legacy(long this_arg, long min_value_msat, int invoice_expiry_delta_secs);
4925 // MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
4926 public static native long ChannelManager_create_inbound_payment_for_hash(long this_arg, byte[] payment_hash, long min_value_msat, int invoice_expiry_delta_secs);
4927 // MUST_USE_RES struct LDKCResult_PaymentSecretAPIErrorZ ChannelManager_create_inbound_payment_for_hash_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
4928 public static native long ChannelManager_create_inbound_payment_for_hash_legacy(long this_arg, byte[] payment_hash, long min_value_msat, int invoice_expiry_delta_secs);
4929 // MUST_USE_RES struct LDKCResult_PaymentPreimageAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
4930 public static native long ChannelManager_get_payment_preimage(long this_arg, byte[] payment_hash, byte[] payment_secret);
4931 // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
4932 public static native long ChannelManager_get_phantom_scid(long this_arg);
4933 // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
4934 public static native long ChannelManager_get_phantom_route_hints(long this_arg);
4935 // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
4936 public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
4937 // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
4938 public static native long ChannelManager_as_EventsProvider(long this_arg);
4939 // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
4940 public static native long ChannelManager_as_Listen(long this_arg);
4941 // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
4942 public static native long ChannelManager_as_Confirm(long this_arg);
4943 // MUST_USE_RES bool ChannelManager_await_persistable_update_timeout(const struct LDKChannelManager *NONNULL_PTR this_arg, uint64_t max_wait);
4944 public static native boolean ChannelManager_await_persistable_update_timeout(long this_arg, long max_wait);
4945 // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
4946 public static native void ChannelManager_await_persistable_update(long this_arg);
4947 // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
4948 public static native long ChannelManager_current_best_block(long this_arg);
4949 // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
4950 public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
4951 // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
4952 public static native byte[] CounterpartyForwardingInfo_write(long obj);
4953 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
4954 public static native long CounterpartyForwardingInfo_read(byte[] ser);
4955 // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
4956 public static native byte[] ChannelCounterparty_write(long obj);
4957 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
4958 public static native long ChannelCounterparty_read(byte[] ser);
4959 // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
4960 public static native byte[] ChannelDetails_write(long obj);
4961 // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
4962 public static native long ChannelDetails_read(byte[] ser);
4963 // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
4964 public static native byte[] PhantomRouteHints_write(long obj);
4965 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
4966 public static native long PhantomRouteHints_read(byte[] ser);
4967 // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
4968 public static native byte[] ChannelManager_write(long obj);
4969 // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
4970 public static native void ChannelManagerReadArgs_free(long this_obj);
4971 // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
4972 public static native long ChannelManagerReadArgs_get_keys_manager(long this_ptr);
4973 // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
4974 public static native void ChannelManagerReadArgs_set_keys_manager(long this_ptr, long val);
4975 // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
4976 public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
4977 // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
4978 public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
4979 // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
4980 public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
4981 // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
4982 public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
4983 // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
4984 public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
4985 // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
4986 public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
4987 // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
4988 public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
4989 // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
4990 public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
4991 // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
4992 public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
4993 // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
4994 public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
4995 // 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);
4996 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);
4997 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
4998 public static native long C2Tuple_BlockHashChannelManagerZ_read(byte[] ser, long arg);
4999 // void ExpandedKey_free(struct LDKExpandedKey this_obj);
5000 public static native void ExpandedKey_free(long this_obj);
5001 // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
5002 public static native long ExpandedKey_new(byte[] key_material);
5003 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKKeysInterface *NONNULL_PTR keys_manager, uint64_t current_time);
5004 public static native long create(long keys, long min_value_msat, int invoice_expiry_delta_secs, long keys_manager, long current_time);
5005 // struct LDKCResult_PaymentSecretNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time);
5006 public static native long create_from_hash(long keys, long min_value_msat, byte[] payment_hash, int invoice_expiry_delta_secs, long current_time);
5007 // void DecodeError_free(struct LDKDecodeError this_obj);
5008 public static native void DecodeError_free(long this_obj);
5009 // uintptr_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
5010 public static native long DecodeError_clone_ptr(long arg);
5011 // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
5012 public static native long DecodeError_clone(long orig);
5013 // void Init_free(struct LDKInit this_obj);
5014 public static native void Init_free(long this_obj);
5015 // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
5016 public static native long Init_get_features(long this_ptr);
5017 // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
5018 public static native void Init_set_features(long this_ptr, long val);
5019 // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
5020 public static native long Init_get_remote_network_address(long this_ptr);
5021 // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
5022 public static native void Init_set_remote_network_address(long this_ptr, long val);
5023 // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
5024 public static native long Init_new(long features_arg, long remote_network_address_arg);
5025 // uintptr_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
5026 public static native long Init_clone_ptr(long arg);
5027 // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
5028 public static native long Init_clone(long orig);
5029 // void ErrorMessage_free(struct LDKErrorMessage this_obj);
5030 public static native void ErrorMessage_free(long this_obj);
5031 // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
5032 public static native byte[] ErrorMessage_get_channel_id(long this_ptr);
5033 // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5034 public static native void ErrorMessage_set_channel_id(long this_ptr, byte[] val);
5035 // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
5036 public static native String ErrorMessage_get_data(long this_ptr);
5037 // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
5038 public static native void ErrorMessage_set_data(long this_ptr, String val);
5039 // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
5040 public static native long ErrorMessage_new(byte[] channel_id_arg, String data_arg);
5041 // uintptr_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
5042 public static native long ErrorMessage_clone_ptr(long arg);
5043 // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
5044 public static native long ErrorMessage_clone(long orig);
5045 // void WarningMessage_free(struct LDKWarningMessage this_obj);
5046 public static native void WarningMessage_free(long this_obj);
5047 // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
5048 public static native byte[] WarningMessage_get_channel_id(long this_ptr);
5049 // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5050 public static native void WarningMessage_set_channel_id(long this_ptr, byte[] val);
5051 // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
5052 public static native String WarningMessage_get_data(long this_ptr);
5053 // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
5054 public static native void WarningMessage_set_data(long this_ptr, String val);
5055 // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
5056 public static native long WarningMessage_new(byte[] channel_id_arg, String data_arg);
5057 // uintptr_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
5058 public static native long WarningMessage_clone_ptr(long arg);
5059 // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
5060 public static native long WarningMessage_clone(long orig);
5061 // void Ping_free(struct LDKPing this_obj);
5062 public static native void Ping_free(long this_obj);
5063 // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
5064 public static native short Ping_get_ponglen(long this_ptr);
5065 // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
5066 public static native void Ping_set_ponglen(long this_ptr, short val);
5067 // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
5068 public static native short Ping_get_byteslen(long this_ptr);
5069 // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
5070 public static native void Ping_set_byteslen(long this_ptr, short val);
5071 // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
5072 public static native long Ping_new(short ponglen_arg, short byteslen_arg);
5073 // uintptr_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
5074 public static native long Ping_clone_ptr(long arg);
5075 // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
5076 public static native long Ping_clone(long orig);
5077 // void Pong_free(struct LDKPong this_obj);
5078 public static native void Pong_free(long this_obj);
5079 // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
5080 public static native short Pong_get_byteslen(long this_ptr);
5081 // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
5082 public static native void Pong_set_byteslen(long this_ptr, short val);
5083 // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
5084 public static native long Pong_new(short byteslen_arg);
5085 // uintptr_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
5086 public static native long Pong_clone_ptr(long arg);
5087 // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
5088 public static native long Pong_clone(long orig);
5089 // void OpenChannel_free(struct LDKOpenChannel this_obj);
5090 public static native void OpenChannel_free(long this_obj);
5091 // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
5092 public static native byte[] OpenChannel_get_chain_hash(long this_ptr);
5093 // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5094 public static native void OpenChannel_set_chain_hash(long this_ptr, byte[] val);
5095 // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
5096 public static native byte[] OpenChannel_get_temporary_channel_id(long this_ptr);
5097 // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5098 public static native void OpenChannel_set_temporary_channel_id(long this_ptr, byte[] val);
5099 // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5100 public static native long OpenChannel_get_funding_satoshis(long this_ptr);
5101 // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
5102 public static native void OpenChannel_set_funding_satoshis(long this_ptr, long val);
5103 // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5104 public static native long OpenChannel_get_push_msat(long this_ptr);
5105 // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
5106 public static native void OpenChannel_set_push_msat(long this_ptr, long val);
5107 // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5108 public static native long OpenChannel_get_dust_limit_satoshis(long this_ptr);
5109 // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
5110 public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);
5111 // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5112 public static native long OpenChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
5113 // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
5114 public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
5115 // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5116 public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
5117 // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
5118 public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
5119 // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5120 public static native long OpenChannel_get_htlc_minimum_msat(long this_ptr);
5121 // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
5122 public static native void OpenChannel_set_htlc_minimum_msat(long this_ptr, long val);
5123 // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5124 public static native int OpenChannel_get_feerate_per_kw(long this_ptr);
5125 // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
5126 public static native void OpenChannel_set_feerate_per_kw(long this_ptr, int val);
5127 // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5128 public static native short OpenChannel_get_to_self_delay(long this_ptr);
5129 // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
5130 public static native void OpenChannel_set_to_self_delay(long this_ptr, short val);
5131 // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5132 public static native short OpenChannel_get_max_accepted_htlcs(long this_ptr);
5133 // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
5134 public static native void OpenChannel_set_max_accepted_htlcs(long this_ptr, short val);
5135 // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5136 public static native byte[] OpenChannel_get_funding_pubkey(long this_ptr);
5137 // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5138 public static native void OpenChannel_set_funding_pubkey(long this_ptr, byte[] val);
5139 // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5140 public static native byte[] OpenChannel_get_revocation_basepoint(long this_ptr);
5141 // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5142 public static native void OpenChannel_set_revocation_basepoint(long this_ptr, byte[] val);
5143 // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5144 public static native byte[] OpenChannel_get_payment_point(long this_ptr);
5145 // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5146 public static native void OpenChannel_set_payment_point(long this_ptr, byte[] val);
5147 // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5148 public static native byte[] OpenChannel_get_delayed_payment_basepoint(long this_ptr);
5149 // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5150 public static native void OpenChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
5151 // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5152 public static native byte[] OpenChannel_get_htlc_basepoint(long this_ptr);
5153 // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5154 public static native void OpenChannel_set_htlc_basepoint(long this_ptr, byte[] val);
5155 // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5156 public static native byte[] OpenChannel_get_first_per_commitment_point(long this_ptr);
5157 // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5158 public static native void OpenChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
5159 // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5160 public static native byte OpenChannel_get_channel_flags(long this_ptr);
5161 // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
5162 public static native void OpenChannel_set_channel_flags(long this_ptr, byte val);
5163 // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
5164 public static native long OpenChannel_get_channel_type(long this_ptr);
5165 // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
5166 public static native void OpenChannel_set_channel_type(long this_ptr, long val);
5167 // uintptr_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
5168 public static native long OpenChannel_clone_ptr(long arg);
5169 // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
5170 public static native long OpenChannel_clone(long orig);
5171 // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
5172 public static native void AcceptChannel_free(long this_obj);
5173 // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
5174 public static native byte[] AcceptChannel_get_temporary_channel_id(long this_ptr);
5175 // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5176 public static native void AcceptChannel_set_temporary_channel_id(long this_ptr, byte[] val);
5177 // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5178 public static native long AcceptChannel_get_dust_limit_satoshis(long this_ptr);
5179 // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
5180 public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);
5181 // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5182 public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
5183 // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
5184 public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
5185 // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5186 public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
5187 // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
5188 public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
5189 // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5190 public static native long AcceptChannel_get_htlc_minimum_msat(long this_ptr);
5191 // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
5192 public static native void AcceptChannel_set_htlc_minimum_msat(long this_ptr, long val);
5193 // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5194 public static native int AcceptChannel_get_minimum_depth(long this_ptr);
5195 // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
5196 public static native void AcceptChannel_set_minimum_depth(long this_ptr, int val);
5197 // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5198 public static native short AcceptChannel_get_to_self_delay(long this_ptr);
5199 // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
5200 public static native void AcceptChannel_set_to_self_delay(long this_ptr, short val);
5201 // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5202 public static native short AcceptChannel_get_max_accepted_htlcs(long this_ptr);
5203 // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
5204 public static native void AcceptChannel_set_max_accepted_htlcs(long this_ptr, short val);
5205 // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5206 public static native byte[] AcceptChannel_get_funding_pubkey(long this_ptr);
5207 // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5208 public static native void AcceptChannel_set_funding_pubkey(long this_ptr, byte[] val);
5209 // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5210 public static native byte[] AcceptChannel_get_revocation_basepoint(long this_ptr);
5211 // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5212 public static native void AcceptChannel_set_revocation_basepoint(long this_ptr, byte[] val);
5213 // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5214 public static native byte[] AcceptChannel_get_payment_point(long this_ptr);
5215 // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5216 public static native void AcceptChannel_set_payment_point(long this_ptr, byte[] val);
5217 // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5218 public static native byte[] AcceptChannel_get_delayed_payment_basepoint(long this_ptr);
5219 // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5220 public static native void AcceptChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
5221 // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5222 public static native byte[] AcceptChannel_get_htlc_basepoint(long this_ptr);
5223 // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5224 public static native void AcceptChannel_set_htlc_basepoint(long this_ptr, byte[] val);
5225 // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5226 public static native byte[] AcceptChannel_get_first_per_commitment_point(long this_ptr);
5227 // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5228 public static native void AcceptChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
5229 // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
5230 public static native long AcceptChannel_get_channel_type(long this_ptr);
5231 // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
5232 public static native void AcceptChannel_set_channel_type(long this_ptr, long val);
5233 // uintptr_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
5234 public static native long AcceptChannel_clone_ptr(long arg);
5235 // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
5236 public static native long AcceptChannel_clone(long orig);
5237 // void FundingCreated_free(struct LDKFundingCreated this_obj);
5238 public static native void FundingCreated_free(long this_obj);
5239 // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
5240 public static native byte[] FundingCreated_get_temporary_channel_id(long this_ptr);
5241 // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5242 public static native void FundingCreated_set_temporary_channel_id(long this_ptr, byte[] val);
5243 // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
5244 public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
5245 // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5246 public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
5247 // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
5248 public static native short FundingCreated_get_funding_output_index(long this_ptr);
5249 // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
5250 public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
5251 // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
5252 public static native byte[] FundingCreated_get_signature(long this_ptr);
5253 // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
5254 public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
5255 // 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);
5256 public static native long FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
5257 // uintptr_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
5258 public static native long FundingCreated_clone_ptr(long arg);
5259 // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
5260 public static native long FundingCreated_clone(long orig);
5261 // void FundingSigned_free(struct LDKFundingSigned this_obj);
5262 public static native void FundingSigned_free(long this_obj);
5263 // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
5264 public static native byte[] FundingSigned_get_channel_id(long this_ptr);
5265 // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5266 public static native void FundingSigned_set_channel_id(long this_ptr, byte[] val);
5267 // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
5268 public static native byte[] FundingSigned_get_signature(long this_ptr);
5269 // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
5270 public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
5271 // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
5272 public static native long FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
5273 // uintptr_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
5274 public static native long FundingSigned_clone_ptr(long arg);
5275 // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
5276 public static native long FundingSigned_clone(long orig);
5277 // void ChannelReady_free(struct LDKChannelReady this_obj);
5278 public static native void ChannelReady_free(long this_obj);
5279 // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
5280 public static native byte[] ChannelReady_get_channel_id(long this_ptr);
5281 // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5282 public static native void ChannelReady_set_channel_id(long this_ptr, byte[] val);
5283 // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
5284 public static native byte[] ChannelReady_get_next_per_commitment_point(long this_ptr);
5285 // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5286 public static native void ChannelReady_set_next_per_commitment_point(long this_ptr, byte[] val);
5287 // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
5288 public static native long ChannelReady_get_short_channel_id_alias(long this_ptr);
5289 // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5290 public static native void ChannelReady_set_short_channel_id_alias(long this_ptr, long val);
5291 // MUST_USE_RES struct LDKChannelReady ChannelReady_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg);
5292 public static native long ChannelReady_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, long short_channel_id_alias_arg);
5293 // uintptr_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
5294 public static native long ChannelReady_clone_ptr(long arg);
5295 // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
5296 public static native long ChannelReady_clone(long orig);
5297 // void Shutdown_free(struct LDKShutdown this_obj);
5298 public static native void Shutdown_free(long this_obj);
5299 // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
5300 public static native byte[] Shutdown_get_channel_id(long this_ptr);
5301 // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5302 public static native void Shutdown_set_channel_id(long this_ptr, byte[] val);
5303 // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
5304 public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
5305 // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
5306 public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
5307 // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
5308 public static native long Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
5309 // uintptr_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
5310 public static native long Shutdown_clone_ptr(long arg);
5311 // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
5312 public static native long Shutdown_clone(long orig);
5313 // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
5314 public static native void ClosingSignedFeeRange_free(long this_obj);
5315 // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
5316 public static native long ClosingSignedFeeRange_get_min_fee_satoshis(long this_ptr);
5317 // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
5318 public static native void ClosingSignedFeeRange_set_min_fee_satoshis(long this_ptr, long val);
5319 // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
5320 public static native long ClosingSignedFeeRange_get_max_fee_satoshis(long this_ptr);
5321 // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
5322 public static native void ClosingSignedFeeRange_set_max_fee_satoshis(long this_ptr, long val);
5323 // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
5324 public static native long ClosingSignedFeeRange_new(long min_fee_satoshis_arg, long max_fee_satoshis_arg);
5325 // uintptr_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
5326 public static native long ClosingSignedFeeRange_clone_ptr(long arg);
5327 // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
5328 public static native long ClosingSignedFeeRange_clone(long orig);
5329 // void ClosingSigned_free(struct LDKClosingSigned this_obj);
5330 public static native void ClosingSigned_free(long this_obj);
5331 // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
5332 public static native byte[] ClosingSigned_get_channel_id(long this_ptr);
5333 // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5334 public static native void ClosingSigned_set_channel_id(long this_ptr, byte[] val);
5335 // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
5336 public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
5337 // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
5338 public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
5339 // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
5340 public static native byte[] ClosingSigned_get_signature(long this_ptr);
5341 // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
5342 public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
5343 // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
5344 public static native long ClosingSigned_get_fee_range(long this_ptr);
5345 // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
5346 public static native void ClosingSigned_set_fee_range(long this_ptr, long val);
5347 // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
5348 public static native long ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, long fee_range_arg);
5349 // uintptr_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
5350 public static native long ClosingSigned_clone_ptr(long arg);
5351 // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
5352 public static native long ClosingSigned_clone(long orig);
5353 // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
5354 public static native void UpdateAddHTLC_free(long this_obj);
5355 // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
5356 public static native byte[] UpdateAddHTLC_get_channel_id(long this_ptr);
5357 // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5358 public static native void UpdateAddHTLC_set_channel_id(long this_ptr, byte[] val);
5359 // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
5360 public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
5361 // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
5362 public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
5363 // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
5364 public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
5365 // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
5366 public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
5367 // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
5368 public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
5369 // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5370 public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
5371 // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
5372 public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
5373 // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
5374 public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
5375 // uintptr_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
5376 public static native long UpdateAddHTLC_clone_ptr(long arg);
5377 // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
5378 public static native long UpdateAddHTLC_clone(long orig);
5379 // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
5380 public static native void UpdateFulfillHTLC_free(long this_obj);
5381 // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
5382 public static native byte[] UpdateFulfillHTLC_get_channel_id(long this_ptr);
5383 // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5384 public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, byte[] val);
5385 // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
5386 public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
5387 // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
5388 public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
5389 // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
5390 public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
5391 // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5392 public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
5393 // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
5394 public static native long UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
5395 // uintptr_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
5396 public static native long UpdateFulfillHTLC_clone_ptr(long arg);
5397 // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
5398 public static native long UpdateFulfillHTLC_clone(long orig);
5399 // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
5400 public static native void UpdateFailHTLC_free(long this_obj);
5401 // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
5402 public static native byte[] UpdateFailHTLC_get_channel_id(long this_ptr);
5403 // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5404 public static native void UpdateFailHTLC_set_channel_id(long this_ptr, byte[] val);
5405 // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
5406 public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
5407 // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
5408 public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
5409 // uintptr_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
5410 public static native long UpdateFailHTLC_clone_ptr(long arg);
5411 // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
5412 public static native long UpdateFailHTLC_clone(long orig);
5413 // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
5414 public static native void UpdateFailMalformedHTLC_free(long this_obj);
5415 // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
5416 public static native byte[] UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
5417 // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5418 public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, byte[] val);
5419 // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
5420 public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
5421 // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
5422 public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
5423 // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
5424 public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
5425 // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
5426 public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
5427 // uintptr_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
5428 public static native long UpdateFailMalformedHTLC_clone_ptr(long arg);
5429 // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
5430 public static native long UpdateFailMalformedHTLC_clone(long orig);
5431 // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
5432 public static native void CommitmentSigned_free(long this_obj);
5433 // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
5434 public static native byte[] CommitmentSigned_get_channel_id(long this_ptr);
5435 // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5436 public static native void CommitmentSigned_set_channel_id(long this_ptr, byte[] val);
5437 // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
5438 public static native byte[] CommitmentSigned_get_signature(long this_ptr);
5439 // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
5440 public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
5441 // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
5442 public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
5443 // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
5444 public static native long CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
5445 // uintptr_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
5446 public static native long CommitmentSigned_clone_ptr(long arg);
5447 // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
5448 public static native long CommitmentSigned_clone(long orig);
5449 // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
5450 public static native void RevokeAndACK_free(long this_obj);
5451 // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
5452 public static native byte[] RevokeAndACK_get_channel_id(long this_ptr);
5453 // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5454 public static native void RevokeAndACK_set_channel_id(long this_ptr, byte[] val);
5455 // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
5456 public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
5457 // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5458 public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
5459 // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
5460 public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
5461 // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5462 public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
5463 // 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);
5464 public static native long RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
5465 // uintptr_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
5466 public static native long RevokeAndACK_clone_ptr(long arg);
5467 // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
5468 public static native long RevokeAndACK_clone(long orig);
5469 // void UpdateFee_free(struct LDKUpdateFee this_obj);
5470 public static native void UpdateFee_free(long this_obj);
5471 // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
5472 public static native byte[] UpdateFee_get_channel_id(long this_ptr);
5473 // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5474 public static native void UpdateFee_set_channel_id(long this_ptr, byte[] val);
5475 // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
5476 public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
5477 // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
5478 public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
5479 // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
5480 public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
5481 // uintptr_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
5482 public static native long UpdateFee_clone_ptr(long arg);
5483 // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
5484 public static native long UpdateFee_clone(long orig);
5485 // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
5486 public static native void DataLossProtect_free(long this_obj);
5487 // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
5488 public static native byte[] DataLossProtect_get_your_last_per_commitment_secret(long this_ptr);
5489 // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5490 public static native void DataLossProtect_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
5491 // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
5492 public static native byte[] DataLossProtect_get_my_current_per_commitment_point(long this_ptr);
5493 // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5494 public static native void DataLossProtect_set_my_current_per_commitment_point(long this_ptr, byte[] val);
5495 // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
5496 public static native long DataLossProtect_new(byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg);
5497 // uintptr_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
5498 public static native long DataLossProtect_clone_ptr(long arg);
5499 // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
5500 public static native long DataLossProtect_clone(long orig);
5501 // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
5502 public static native void ChannelReestablish_free(long this_obj);
5503 // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
5504 public static native byte[] ChannelReestablish_get_channel_id(long this_ptr);
5505 // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5506 public static native void ChannelReestablish_set_channel_id(long this_ptr, byte[] val);
5507 // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
5508 public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
5509 // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
5510 public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
5511 // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
5512 public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
5513 // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
5514 public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
5515 // uintptr_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
5516 public static native long ChannelReestablish_clone_ptr(long arg);
5517 // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
5518 public static native long ChannelReestablish_clone(long orig);
5519 // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
5520 public static native void AnnouncementSignatures_free(long this_obj);
5521 // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
5522 public static native byte[] AnnouncementSignatures_get_channel_id(long this_ptr);
5523 // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5524 public static native void AnnouncementSignatures_set_channel_id(long this_ptr, byte[] val);
5525 // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
5526 public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
5527 // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
5528 public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
5529 // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
5530 public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
5531 // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
5532 public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
5533 // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
5534 public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
5535 // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
5536 public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
5537 // 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);
5538 public static native long AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
5539 // uintptr_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
5540 public static native long AnnouncementSignatures_clone_ptr(long arg);
5541 // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
5542 public static native long AnnouncementSignatures_clone(long orig);
5543 // void NetAddress_free(struct LDKNetAddress this_ptr);
5544 public static native void NetAddress_free(long this_ptr);
5545 // uintptr_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
5546 public static native long NetAddress_clone_ptr(long arg);
5547 // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
5548 public static native long NetAddress_clone(long orig);
5549 // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
5550 public static native long NetAddress_ipv4(byte[] addr, short port);
5551 // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
5552 public static native long NetAddress_ipv6(byte[] addr, short port);
5553 // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
5554 public static native long NetAddress_onion_v2(byte[] a);
5555 // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
5556 public static native long NetAddress_onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port);
5557 // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
5558 public static native byte[] NetAddress_write(long obj);
5559 // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
5560 public static native long NetAddress_read(byte[] ser);
5561 // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
5562 public static native void UnsignedNodeAnnouncement_free(long this_obj);
5563 // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
5564 public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
5565 // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
5566 public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
5567 // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
5568 public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
5569 // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
5570 public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
5571 // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
5572 public static native byte[] UnsignedNodeAnnouncement_get_node_id(long this_ptr);
5573 // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5574 public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, byte[] val);
5575 // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
5576 public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
5577 // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
5578 public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
5579 // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
5580 public static native byte[] UnsignedNodeAnnouncement_get_alias(long this_ptr);
5581 // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5582 public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, byte[] val);
5583 // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
5584 public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
5585 // uintptr_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
5586 public static native long UnsignedNodeAnnouncement_clone_ptr(long arg);
5587 // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
5588 public static native long UnsignedNodeAnnouncement_clone(long orig);
5589 // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
5590 public static native void NodeAnnouncement_free(long this_obj);
5591 // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
5592 public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
5593 // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
5594 public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
5595 // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
5596 public static native long NodeAnnouncement_get_contents(long this_ptr);
5597 // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
5598 public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
5599 // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
5600 public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
5601 // uintptr_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
5602 public static native long NodeAnnouncement_clone_ptr(long arg);
5603 // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
5604 public static native long NodeAnnouncement_clone(long orig);
5605 // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
5606 public static native void UnsignedChannelAnnouncement_free(long this_obj);
5607 // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
5608 public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
5609 // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
5610 public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
5611 // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
5612 public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
5613 // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5614 public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
5615 // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
5616 public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
5617 // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
5618 public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
5619 // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
5620 public static native byte[] UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
5621 // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5622 public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, byte[] val);
5623 // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
5624 public static native byte[] UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
5625 // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5626 public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, byte[] val);
5627 // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
5628 public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
5629 // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5630 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, byte[] val);
5631 // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
5632 public static native byte[] UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
5633 // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5634 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, byte[] val);
5635 // uintptr_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
5636 public static native long UnsignedChannelAnnouncement_clone_ptr(long arg);
5637 // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
5638 public static native long UnsignedChannelAnnouncement_clone(long orig);
5639 // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
5640 public static native void ChannelAnnouncement_free(long this_obj);
5641 // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
5642 public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
5643 // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
5644 public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
5645 // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
5646 public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
5647 // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
5648 public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
5649 // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
5650 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
5651 // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
5652 public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
5653 // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
5654 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
5655 // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
5656 public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
5657 // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
5658 public static native long ChannelAnnouncement_get_contents(long this_ptr);
5659 // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
5660 public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
5661 // 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);
5662 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);
5663 // uintptr_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
5664 public static native long ChannelAnnouncement_clone_ptr(long arg);
5665 // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
5666 public static native long ChannelAnnouncement_clone(long orig);
5667 // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
5668 public static native void UnsignedChannelUpdate_free(long this_obj);
5669 // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
5670 public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
5671 // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5672 public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
5673 // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
5674 public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
5675 // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
5676 public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
5677 // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
5678 public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
5679 // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
5680 public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
5681 // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
5682 public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
5683 // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
5684 public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
5685 // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
5686 public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
5687 // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
5688 public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
5689 // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
5690 public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
5691 // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
5692 public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
5693 // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
5694 public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
5695 // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
5696 public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
5697 // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
5698 public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
5699 // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
5700 public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
5701 // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
5702 public static native void UnsignedChannelUpdate_set_excess_data(long this_ptr, byte[] val);
5703 // uintptr_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
5704 public static native long UnsignedChannelUpdate_clone_ptr(long arg);
5705 // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
5706 public static native long UnsignedChannelUpdate_clone(long orig);
5707 // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
5708 public static native void ChannelUpdate_free(long this_obj);
5709 // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
5710 public static native byte[] ChannelUpdate_get_signature(long this_ptr);
5711 // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
5712 public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
5713 // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
5714 public static native long ChannelUpdate_get_contents(long this_ptr);
5715 // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
5716 public static native void ChannelUpdate_set_contents(long this_ptr, long val);
5717 // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
5718 public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
5719 // uintptr_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
5720 public static native long ChannelUpdate_clone_ptr(long arg);
5721 // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
5722 public static native long ChannelUpdate_clone(long orig);
5723 // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
5724 public static native void QueryChannelRange_free(long this_obj);
5725 // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
5726 public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
5727 // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5728 public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
5729 // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
5730 public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
5731 // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
5732 public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
5733 // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
5734 public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
5735 // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
5736 public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
5737 // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
5738 public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
5739 // uintptr_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
5740 public static native long QueryChannelRange_clone_ptr(long arg);
5741 // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
5742 public static native long QueryChannelRange_clone(long orig);
5743 // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
5744 public static native void ReplyChannelRange_free(long this_obj);
5745 // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
5746 public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
5747 // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5748 public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
5749 // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
5750 public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
5751 // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
5752 public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
5753 // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
5754 public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
5755 // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
5756 public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
5757 // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
5758 public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
5759 // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
5760 public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
5761 // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
5762 public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
5763 // 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);
5764 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);
5765 // uintptr_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
5766 public static native long ReplyChannelRange_clone_ptr(long arg);
5767 // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
5768 public static native long ReplyChannelRange_clone(long orig);
5769 // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
5770 public static native void QueryShortChannelIds_free(long this_obj);
5771 // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
5772 public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
5773 // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5774 public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
5775 // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
5776 public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
5777 // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
5778 public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
5779 // uintptr_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
5780 public static native long QueryShortChannelIds_clone_ptr(long arg);
5781 // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
5782 public static native long QueryShortChannelIds_clone(long orig);
5783 // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
5784 public static native void ReplyShortChannelIdsEnd_free(long this_obj);
5785 // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
5786 public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
5787 // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5788 public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
5789 // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
5790 public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
5791 // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
5792 public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
5793 // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
5794 public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
5795 // uintptr_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
5796 public static native long ReplyShortChannelIdsEnd_clone_ptr(long arg);
5797 // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
5798 public static native long ReplyShortChannelIdsEnd_clone(long orig);
5799 // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
5800 public static native void GossipTimestampFilter_free(long this_obj);
5801 // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
5802 public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
5803 // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5804 public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
5805 // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
5806 public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
5807 // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
5808 public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
5809 // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
5810 public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
5811 // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
5812 public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
5813 // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
5814 public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
5815 // uintptr_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
5816 public static native long GossipTimestampFilter_clone_ptr(long arg);
5817 // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
5818 public static native long GossipTimestampFilter_clone(long orig);
5819 // void ErrorAction_free(struct LDKErrorAction this_ptr);
5820 public static native void ErrorAction_free(long this_ptr);
5821 // uintptr_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
5822 public static native long ErrorAction_clone_ptr(long arg);
5823 // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
5824 public static native long ErrorAction_clone(long orig);
5825 // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
5826 public static native long ErrorAction_disconnect_peer(long msg);
5827 // struct LDKErrorAction ErrorAction_ignore_error(void);
5828 public static native long ErrorAction_ignore_error();
5829 // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
5830 public static native long ErrorAction_ignore_and_log(Level a);
5831 // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
5832 public static native long ErrorAction_ignore_duplicate_gossip();
5833 // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
5834 public static native long ErrorAction_send_error_message(long msg);
5835 // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
5836 public static native long ErrorAction_send_warning_message(long msg, Level log_level);
5837 // void LightningError_free(struct LDKLightningError this_obj);
5838 public static native void LightningError_free(long this_obj);
5839 // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
5840 public static native String LightningError_get_err(long this_ptr);
5841 // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
5842 public static native void LightningError_set_err(long this_ptr, String val);
5843 // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
5844 public static native long LightningError_get_action(long this_ptr);
5845 // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
5846 public static native void LightningError_set_action(long this_ptr, long val);
5847 // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
5848 public static native long LightningError_new(String err_arg, long action_arg);
5849 // uintptr_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
5850 public static native long LightningError_clone_ptr(long arg);
5851 // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
5852 public static native long LightningError_clone(long orig);
5853 // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
5854 public static native void CommitmentUpdate_free(long this_obj);
5855 // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
5856 public static native long[] CommitmentUpdate_get_update_add_htlcs(long this_ptr);
5857 // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
5858 public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
5859 // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
5860 public static native long[] CommitmentUpdate_get_update_fulfill_htlcs(long this_ptr);
5861 // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
5862 public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
5863 // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
5864 public static native long[] CommitmentUpdate_get_update_fail_htlcs(long this_ptr);
5865 // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
5866 public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
5867 // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
5868 public static native long[] CommitmentUpdate_get_update_fail_malformed_htlcs(long this_ptr);
5869 // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
5870 public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
5871 // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
5872 public static native long CommitmentUpdate_get_update_fee(long this_ptr);
5873 // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
5874 public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
5875 // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
5876 public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
5877 // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
5878 public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
5879 // 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);
5880 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);
5881 // uintptr_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
5882 public static native long CommitmentUpdate_clone_ptr(long arg);
5883 // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
5884 public static native long CommitmentUpdate_clone(long orig);
5885 // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
5886 public static native void ChannelMessageHandler_free(long this_ptr);
5887 // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
5888 public static native void RoutingMessageHandler_free(long this_ptr);
5889 // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
5890 public static native byte[] AcceptChannel_write(long obj);
5891 // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
5892 public static native long AcceptChannel_read(byte[] ser);
5893 // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
5894 public static native byte[] AnnouncementSignatures_write(long obj);
5895 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
5896 public static native long AnnouncementSignatures_read(byte[] ser);
5897 // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
5898 public static native byte[] ChannelReestablish_write(long obj);
5899 // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
5900 public static native long ChannelReestablish_read(byte[] ser);
5901 // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
5902 public static native byte[] ClosingSigned_write(long obj);
5903 // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
5904 public static native long ClosingSigned_read(byte[] ser);
5905 // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
5906 public static native byte[] ClosingSignedFeeRange_write(long obj);
5907 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
5908 public static native long ClosingSignedFeeRange_read(byte[] ser);
5909 // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
5910 public static native byte[] CommitmentSigned_write(long obj);
5911 // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
5912 public static native long CommitmentSigned_read(byte[] ser);
5913 // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
5914 public static native byte[] FundingCreated_write(long obj);
5915 // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
5916 public static native long FundingCreated_read(byte[] ser);
5917 // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
5918 public static native byte[] FundingSigned_write(long obj);
5919 // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
5920 public static native long FundingSigned_read(byte[] ser);
5921 // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
5922 public static native byte[] ChannelReady_write(long obj);
5923 // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
5924 public static native long ChannelReady_read(byte[] ser);
5925 // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
5926 public static native byte[] Init_write(long obj);
5927 // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
5928 public static native long Init_read(byte[] ser);
5929 // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
5930 public static native byte[] OpenChannel_write(long obj);
5931 // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
5932 public static native long OpenChannel_read(byte[] ser);
5933 // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
5934 public static native byte[] RevokeAndACK_write(long obj);
5935 // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
5936 public static native long RevokeAndACK_read(byte[] ser);
5937 // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
5938 public static native byte[] Shutdown_write(long obj);
5939 // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
5940 public static native long Shutdown_read(byte[] ser);
5941 // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
5942 public static native byte[] UpdateFailHTLC_write(long obj);
5943 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
5944 public static native long UpdateFailHTLC_read(byte[] ser);
5945 // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
5946 public static native byte[] UpdateFailMalformedHTLC_write(long obj);
5947 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
5948 public static native long UpdateFailMalformedHTLC_read(byte[] ser);
5949 // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
5950 public static native byte[] UpdateFee_write(long obj);
5951 // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
5952 public static native long UpdateFee_read(byte[] ser);
5953 // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
5954 public static native byte[] UpdateFulfillHTLC_write(long obj);
5955 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
5956 public static native long UpdateFulfillHTLC_read(byte[] ser);
5957 // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
5958 public static native byte[] UpdateAddHTLC_write(long obj);
5959 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
5960 public static native long UpdateAddHTLC_read(byte[] ser);
5961 // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
5962 public static native byte[] Ping_write(long obj);
5963 // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
5964 public static native long Ping_read(byte[] ser);
5965 // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
5966 public static native byte[] Pong_write(long obj);
5967 // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
5968 public static native long Pong_read(byte[] ser);
5969 // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
5970 public static native byte[] UnsignedChannelAnnouncement_write(long obj);
5971 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
5972 public static native long UnsignedChannelAnnouncement_read(byte[] ser);
5973 // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
5974 public static native byte[] ChannelAnnouncement_write(long obj);
5975 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
5976 public static native long ChannelAnnouncement_read(byte[] ser);
5977 // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
5978 public static native byte[] UnsignedChannelUpdate_write(long obj);
5979 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
5980 public static native long UnsignedChannelUpdate_read(byte[] ser);
5981 // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
5982 public static native byte[] ChannelUpdate_write(long obj);
5983 // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
5984 public static native long ChannelUpdate_read(byte[] ser);
5985 // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
5986 public static native byte[] ErrorMessage_write(long obj);
5987 // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
5988 public static native long ErrorMessage_read(byte[] ser);
5989 // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
5990 public static native byte[] WarningMessage_write(long obj);
5991 // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
5992 public static native long WarningMessage_read(byte[] ser);
5993 // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
5994 public static native byte[] UnsignedNodeAnnouncement_write(long obj);
5995 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
5996 public static native long UnsignedNodeAnnouncement_read(byte[] ser);
5997 // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
5998 public static native byte[] NodeAnnouncement_write(long obj);
5999 // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
6000 public static native long NodeAnnouncement_read(byte[] ser);
6001 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
6002 public static native long QueryShortChannelIds_read(byte[] ser);
6003 // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
6004 public static native byte[] QueryShortChannelIds_write(long obj);
6005 // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
6006 public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
6007 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
6008 public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
6009 // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
6010 public static native int QueryChannelRange_end_blocknum(long this_arg);
6011 // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
6012 public static native byte[] QueryChannelRange_write(long obj);
6013 // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
6014 public static native long QueryChannelRange_read(byte[] ser);
6015 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
6016 public static native long ReplyChannelRange_read(byte[] ser);
6017 // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
6018 public static native byte[] ReplyChannelRange_write(long obj);
6019 // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
6020 public static native byte[] GossipTimestampFilter_write(long obj);
6021 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
6022 public static native long GossipTimestampFilter_read(byte[] ser);
6023 // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
6024 public static native void CustomMessageHandler_free(long this_ptr);
6025 // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
6026 public static native void IgnoringMessageHandler_free(long this_obj);
6027 // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
6028 public static native long IgnoringMessageHandler_new();
6029 // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
6030 public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
6031 // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
6032 public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
6033 // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
6034 public static native long IgnoringMessageHandler_as_CustomMessageReader(long this_arg);
6035 // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
6036 public static native long IgnoringMessageHandler_as_CustomMessageHandler(long this_arg);
6037 // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
6038 public static native void ErroringMessageHandler_free(long this_obj);
6039 // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
6040 public static native long ErroringMessageHandler_new();
6041 // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
6042 public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
6043 // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
6044 public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
6045 // void MessageHandler_free(struct LDKMessageHandler this_obj);
6046 public static native void MessageHandler_free(long this_obj);
6047 // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
6048 public static native long MessageHandler_get_chan_handler(long this_ptr);
6049 // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
6050 public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
6051 // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
6052 public static native long MessageHandler_get_route_handler(long this_ptr);
6053 // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
6054 public static native void MessageHandler_set_route_handler(long this_ptr, long val);
6055 // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
6056 public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg);
6057 // uintptr_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
6058 public static native long SocketDescriptor_clone_ptr(long arg);
6059 // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
6060 public static native long SocketDescriptor_clone(long orig);
6061 // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
6062 public static native void SocketDescriptor_free(long this_ptr);
6063 // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
6064 public static native void PeerHandleError_free(long this_obj);
6065 // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
6066 public static native boolean PeerHandleError_get_no_connection_possible(long this_ptr);
6067 // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
6068 public static native void PeerHandleError_set_no_connection_possible(long this_ptr, boolean val);
6069 // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
6070 public static native long PeerHandleError_new(boolean no_connection_possible_arg);
6071 // uintptr_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
6072 public static native long PeerHandleError_clone_ptr(long arg);
6073 // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
6074 public static native long PeerHandleError_clone(long orig);
6075 // void PeerManager_free(struct LDKPeerManager this_obj);
6076 public static native void PeerManager_free(long this_obj);
6077 // 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, struct LDKCustomMessageHandler custom_message_handler);
6078 public static native long PeerManager_new(long message_handler, byte[] our_node_secret, byte[] ephemeral_random_data, long logger, long custom_message_handler);
6079 // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
6080 public static native byte[][] PeerManager_get_peer_node_ids(long this_arg);
6081 // 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, struct LDKCOption_NetAddressZ remote_network_address);
6082 public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor, long remote_network_address);
6083 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address);
6084 public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor, long remote_network_address);
6085 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
6086 public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
6087 // 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);
6088 public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
6089 // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
6090 public static native void PeerManager_process_events(long this_arg);
6091 // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
6092 public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
6093 // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
6094 public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id, boolean no_connection_possible);
6095 // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
6096 public static native void PeerManager_disconnect_all_peers(long this_arg);
6097 // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
6098 public static native void PeerManager_timer_tick_occurred(long this_arg);
6099 // uint64_t htlc_success_tx_weight(bool opt_anchors);
6100 public static native long htlc_success_tx_weight(boolean opt_anchors);
6101 // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
6102 public static native long htlc_timeout_tx_weight(boolean opt_anchors);
6103 // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
6104 public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
6105 // struct LDKTransaction build_closing_transaction(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint);
6106 public static native byte[] build_closing_transaction(long to_holder_value_sat, long to_counterparty_value_sat, byte[] to_holder_script, byte[] to_counterparty_script, long funding_outpoint);
6107 // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
6108 public static native void CounterpartyCommitmentSecrets_free(long this_obj);
6109 // uintptr_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
6110 public static native long CounterpartyCommitmentSecrets_clone_ptr(long arg);
6111 // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
6112 public static native long CounterpartyCommitmentSecrets_clone(long orig);
6113 // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
6114 public static native long CounterpartyCommitmentSecrets_new();
6115 // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
6116 public static native long CounterpartyCommitmentSecrets_get_min_seen_secret(long this_arg);
6117 // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
6118 public static native long CounterpartyCommitmentSecrets_provide_secret(long this_arg, long idx, byte[] secret);
6119 // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
6120 public static native byte[] CounterpartyCommitmentSecrets_get_secret(long this_arg, long idx);
6121 // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
6122 public static native byte[] CounterpartyCommitmentSecrets_write(long obj);
6123 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
6124 public static native long CounterpartyCommitmentSecrets_read(byte[] ser);
6125 // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
6126 public static native long derive_private_key(byte[] per_commitment_point, byte[] base_secret);
6127 // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
6128 public static native long derive_public_key(byte[] per_commitment_point, byte[] base_point);
6129 // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
6130 public static native long derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
6131 // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
6132 public static native long derive_public_revocation_key(byte[] per_commitment_point, byte[] countersignatory_revocation_base_point);
6133 // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
6134 public static native void TxCreationKeys_free(long this_obj);
6135 // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
6136 public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
6137 // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6138 public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
6139 // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
6140 public static native byte[] TxCreationKeys_get_revocation_key(long this_ptr);
6141 // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6142 public static native void TxCreationKeys_set_revocation_key(long this_ptr, byte[] val);
6143 // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
6144 public static native byte[] TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
6145 // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6146 public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, byte[] val);
6147 // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
6148 public static native byte[] TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
6149 // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6150 public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, byte[] val);
6151 // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
6152 public static native byte[] TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
6153 // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6154 public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, byte[] val);
6155 // 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);
6156 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);
6157 // uintptr_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
6158 public static native long TxCreationKeys_clone_ptr(long arg);
6159 // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
6160 public static native long TxCreationKeys_clone(long orig);
6161 // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
6162 public static native byte[] TxCreationKeys_write(long obj);
6163 // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
6164 public static native long TxCreationKeys_read(byte[] ser);
6165 // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
6166 public static native void ChannelPublicKeys_free(long this_obj);
6167 // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
6168 public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
6169 // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6170 public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
6171 // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
6172 public static native byte[] ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
6173 // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6174 public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, byte[] val);
6175 // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
6176 public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
6177 // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6178 public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
6179 // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
6180 public static native byte[] ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
6181 // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6182 public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, byte[] val);
6183 // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
6184 public static native byte[] ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
6185 // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6186 public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, byte[] val);
6187 // 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);
6188 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);
6189 // uintptr_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
6190 public static native long ChannelPublicKeys_clone_ptr(long arg);
6191 // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
6192 public static native long ChannelPublicKeys_clone(long orig);
6193 // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
6194 public static native byte[] ChannelPublicKeys_write(long obj);
6195 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
6196 public static native long ChannelPublicKeys_read(byte[] ser);
6197 // 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);
6198 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);
6199 // 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);
6200 public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
6201 // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
6202 public static native byte[] get_revokeable_redeemscript(byte[] revocation_key, short contest_delay, byte[] broadcaster_delayed_payment_key);
6203 // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
6204 public static native void HTLCOutputInCommitment_free(long this_obj);
6205 // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
6206 public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
6207 // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
6208 public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
6209 // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
6210 public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
6211 // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
6212 public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
6213 // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
6214 public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
6215 // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
6216 public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
6217 // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
6218 public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
6219 // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6220 public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
6221 // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
6222 public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);
6223 // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6224 public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);
6225 // MUST_USE_RES struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_new(bool offered_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u32Z transaction_output_index_arg);
6226 public static native long HTLCOutputInCommitment_new(boolean offered_arg, long amount_msat_arg, int cltv_expiry_arg, byte[] payment_hash_arg, long transaction_output_index_arg);
6227 // uintptr_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
6228 public static native long HTLCOutputInCommitment_clone_ptr(long arg);
6229 // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
6230 public static native long HTLCOutputInCommitment_clone(long orig);
6231 // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
6232 public static native byte[] HTLCOutputInCommitment_write(long obj);
6233 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
6234 public static native long HTLCOutputInCommitment_read(byte[] ser);
6235 // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
6236 public static native byte[] get_htlc_redeemscript(long htlc, boolean opt_anchors, long keys);
6237 // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
6238 public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
6239 // struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[32], uint32_t feerate_per_kw, uint16_t contest_delay, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, struct LDKPublicKey broadcaster_delayed_payment_key, struct LDKPublicKey revocation_key);
6240 public static native byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_per_kw, short contest_delay, long htlc, boolean opt_anchors, byte[] broadcaster_delayed_payment_key, byte[] revocation_key);
6241 // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
6242 public static native byte[] get_anchor_redeemscript(byte[] funding_pubkey);
6243 // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
6244 public static native void ChannelTransactionParameters_free(long this_obj);
6245 // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
6246 public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
6247 // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
6248 public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
6249 // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
6250 public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
6251 // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
6252 public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
6253 // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
6254 public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
6255 // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
6256 public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
6257 // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
6258 public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
6259 // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
6260 public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
6261 // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
6262 public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
6263 // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
6264 public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
6265 // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
6266 public static native COption_NoneZ ChannelTransactionParameters_get_opt_anchors(long this_ptr);
6267 // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
6268 public static native void ChannelTransactionParameters_set_opt_anchors(long this_ptr, COption_NoneZ val);
6269 // 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, enum LDKCOption_NoneZ opt_anchors_arg);
6270 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, COption_NoneZ opt_anchors_arg);
6271 // uintptr_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
6272 public static native long ChannelTransactionParameters_clone_ptr(long arg);
6273 // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
6274 public static native long ChannelTransactionParameters_clone(long orig);
6275 // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
6276 public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
6277 // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
6278 public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
6279 // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
6280 public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
6281 // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
6282 public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
6283 // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
6284 public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
6285 // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
6286 public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
6287 // uintptr_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
6288 public static native long CounterpartyChannelTransactionParameters_clone_ptr(long arg);
6289 // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
6290 public static native long CounterpartyChannelTransactionParameters_clone(long orig);
6291 // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
6292 public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
6293 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
6294 public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
6295 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
6296 public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
6297 // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
6298 public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
6299 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
6300 public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
6301 // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
6302 public static native byte[] ChannelTransactionParameters_write(long obj);
6303 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
6304 public static native long ChannelTransactionParameters_read(byte[] ser);
6305 // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
6306 public static native void DirectedChannelTransactionParameters_free(long this_obj);
6307 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
6308 public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
6309 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
6310 public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
6311 // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
6312 public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
6313 // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
6314 public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
6315 // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
6316 public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
6317 // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
6318 public static native boolean DirectedChannelTransactionParameters_opt_anchors(long this_arg);
6319 // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
6320 public static native void HolderCommitmentTransaction_free(long this_obj);
6321 // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
6322 public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
6323 // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
6324 public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
6325 // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
6326 public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
6327 // uintptr_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
6328 public static native long HolderCommitmentTransaction_clone_ptr(long arg);
6329 // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
6330 public static native long HolderCommitmentTransaction_clone(long orig);
6331 // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
6332 public static native byte[] HolderCommitmentTransaction_write(long obj);
6333 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
6334 public static native long HolderCommitmentTransaction_read(byte[] ser);
6335 // 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);
6336 public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
6337 // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
6338 public static native void BuiltCommitmentTransaction_free(long this_obj);
6339 // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
6340 public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
6341 // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
6342 public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
6343 // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
6344 public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
6345 // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6346 public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
6347 // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
6348 public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
6349 // uintptr_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
6350 public static native long BuiltCommitmentTransaction_clone_ptr(long arg);
6351 // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
6352 public static native long BuiltCommitmentTransaction_clone(long orig);
6353 // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
6354 public static native byte[] BuiltCommitmentTransaction_write(long obj);
6355 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
6356 public static native long BuiltCommitmentTransaction_read(byte[] ser);
6357 // 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);
6358 public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
6359 // 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);
6360 public static native byte[] BuiltCommitmentTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
6361 // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
6362 public static native void ClosingTransaction_free(long this_obj);
6363 // uintptr_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
6364 public static native long ClosingTransaction_clone_ptr(long arg);
6365 // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
6366 public static native long ClosingTransaction_clone(long orig);
6367 // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
6368 public static native long ClosingTransaction_hash(long o);
6369 // MUST_USE_RES struct LDKClosingTransaction ClosingTransaction_new(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint);
6370 public static native long ClosingTransaction_new(long to_holder_value_sat, long to_counterparty_value_sat, byte[] to_holder_script, byte[] to_counterparty_script, long funding_outpoint);
6371 // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
6372 public static native long ClosingTransaction_trust(long this_arg);
6373 // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
6374 public static native long ClosingTransaction_verify(long this_arg, long funding_outpoint);
6375 // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
6376 public static native long ClosingTransaction_to_holder_value_sat(long this_arg);
6377 // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
6378 public static native long ClosingTransaction_to_counterparty_value_sat(long this_arg);
6379 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
6380 public static native byte[] ClosingTransaction_to_holder_script(long this_arg);
6381 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
6382 public static native byte[] ClosingTransaction_to_counterparty_script(long this_arg);
6383 // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
6384 public static native void TrustedClosingTransaction_free(long this_obj);
6385 // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
6386 public static native byte[] TrustedClosingTransaction_built_transaction(long this_arg);
6387 // MUST_USE_RES struct LDKThirtyTwoBytes TrustedClosingTransaction_get_sighash_all(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
6388 public static native byte[] TrustedClosingTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
6389 // MUST_USE_RES struct LDKSignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
6390 public static native byte[] TrustedClosingTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
6391 // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
6392 public static native void CommitmentTransaction_free(long this_obj);
6393 // uintptr_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
6394 public static native long CommitmentTransaction_clone_ptr(long arg);
6395 // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
6396 public static native long CommitmentTransaction_clone(long orig);
6397 // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
6398 public static native byte[] CommitmentTransaction_write(long obj);
6399 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
6400 public static native long CommitmentTransaction_read(byte[] ser);
6401 // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
6402 public static native long CommitmentTransaction_commitment_number(long this_arg);
6403 // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
6404 public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
6405 // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
6406 public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
6407 // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
6408 public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
6409 // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
6410 public static native long CommitmentTransaction_trust(long this_arg);
6411 // 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);
6412 public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
6413 // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
6414 public static native void TrustedCommitmentTransaction_free(long this_obj);
6415 // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
6416 public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
6417 // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
6418 public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
6419 // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
6420 public static native long TrustedCommitmentTransaction_keys(long this_arg);
6421 // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
6422 public static native boolean TrustedCommitmentTransaction_opt_anchors(long this_arg);
6423 // 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);
6424 public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters);
6425 // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
6426 public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
6427 // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
6428 public static native boolean InitFeatures_eq(long a, long b);
6429 // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
6430 public static native boolean NodeFeatures_eq(long a, long b);
6431 // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
6432 public static native boolean ChannelFeatures_eq(long a, long b);
6433 // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
6434 public static native boolean InvoiceFeatures_eq(long a, long b);
6435 // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
6436 public static native boolean ChannelTypeFeatures_eq(long a, long b);
6437 // uintptr_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
6438 public static native long InitFeatures_clone_ptr(long arg);
6439 // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
6440 public static native long InitFeatures_clone(long orig);
6441 // uintptr_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
6442 public static native long NodeFeatures_clone_ptr(long arg);
6443 // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
6444 public static native long NodeFeatures_clone(long orig);
6445 // uintptr_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
6446 public static native long ChannelFeatures_clone_ptr(long arg);
6447 // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
6448 public static native long ChannelFeatures_clone(long orig);
6449 // uintptr_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
6450 public static native long InvoiceFeatures_clone_ptr(long arg);
6451 // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
6452 public static native long InvoiceFeatures_clone(long orig);
6453 // uintptr_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
6454 public static native long ChannelTypeFeatures_clone_ptr(long arg);
6455 // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
6456 public static native long ChannelTypeFeatures_clone(long orig);
6457 // void InitFeatures_free(struct LDKInitFeatures this_obj);
6458 public static native void InitFeatures_free(long this_obj);
6459 // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
6460 public static native void NodeFeatures_free(long this_obj);
6461 // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
6462 public static native void ChannelFeatures_free(long this_obj);
6463 // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
6464 public static native void InvoiceFeatures_free(long this_obj);
6465 // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
6466 public static native void ChannelTypeFeatures_free(long this_obj);
6467 // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
6468 public static native long InitFeatures_empty();
6469 // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
6470 public static native long InitFeatures_known();
6471 // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6472 public static native boolean InitFeatures_requires_unknown_bits(long this_arg);
6473 // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
6474 public static native long NodeFeatures_empty();
6475 // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
6476 public static native long NodeFeatures_known();
6477 // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6478 public static native boolean NodeFeatures_requires_unknown_bits(long this_arg);
6479 // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
6480 public static native long ChannelFeatures_empty();
6481 // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
6482 public static native long ChannelFeatures_known();
6483 // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
6484 public static native boolean ChannelFeatures_requires_unknown_bits(long this_arg);
6485 // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
6486 public static native long InvoiceFeatures_empty();
6487 // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
6488 public static native long InvoiceFeatures_known();
6489 // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6490 public static native boolean InvoiceFeatures_requires_unknown_bits(long this_arg);
6491 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
6492 public static native long ChannelTypeFeatures_empty();
6493 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_known(void);
6494 public static native long ChannelTypeFeatures_known();
6495 // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6496 public static native boolean ChannelTypeFeatures_requires_unknown_bits(long this_arg);
6497 // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
6498 public static native byte[] InitFeatures_write(long obj);
6499 // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
6500 public static native long InitFeatures_read(byte[] ser);
6501 // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
6502 public static native byte[] ChannelFeatures_write(long obj);
6503 // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
6504 public static native long ChannelFeatures_read(byte[] ser);
6505 // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
6506 public static native byte[] NodeFeatures_write(long obj);
6507 // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
6508 public static native long NodeFeatures_read(byte[] ser);
6509 // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
6510 public static native byte[] InvoiceFeatures_write(long obj);
6511 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
6512 public static native long InvoiceFeatures_read(byte[] ser);
6513 // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
6514 public static native byte[] ChannelTypeFeatures_write(long obj);
6515 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
6516 public static native long ChannelTypeFeatures_read(byte[] ser);
6517 // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6518 public static native void InitFeatures_set_data_loss_protect_optional(long this_arg);
6519 // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6520 public static native void InitFeatures_set_data_loss_protect_required(long this_arg);
6521 // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6522 public static native boolean InitFeatures_supports_data_loss_protect(long this_arg);
6523 // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6524 public static native void NodeFeatures_set_data_loss_protect_optional(long this_arg);
6525 // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6526 public static native void NodeFeatures_set_data_loss_protect_required(long this_arg);
6527 // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6528 public static native boolean NodeFeatures_supports_data_loss_protect(long this_arg);
6529 // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6530 public static native boolean InitFeatures_requires_data_loss_protect(long this_arg);
6531 // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6532 public static native boolean NodeFeatures_requires_data_loss_protect(long this_arg);
6533 // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6534 public static native void InitFeatures_set_initial_routing_sync_optional(long this_arg);
6535 // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6536 public static native void InitFeatures_set_initial_routing_sync_required(long this_arg);
6537 // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6538 public static native boolean InitFeatures_initial_routing_sync(long this_arg);
6539 // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6540 public static native void InitFeatures_set_upfront_shutdown_script_optional(long this_arg);
6541 // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6542 public static native void InitFeatures_set_upfront_shutdown_script_required(long this_arg);
6543 // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6544 public static native boolean InitFeatures_supports_upfront_shutdown_script(long this_arg);
6545 // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6546 public static native void NodeFeatures_set_upfront_shutdown_script_optional(long this_arg);
6547 // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6548 public static native void NodeFeatures_set_upfront_shutdown_script_required(long this_arg);
6549 // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6550 public static native boolean NodeFeatures_supports_upfront_shutdown_script(long this_arg);
6551 // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6552 public static native boolean InitFeatures_requires_upfront_shutdown_script(long this_arg);
6553 // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6554 public static native boolean NodeFeatures_requires_upfront_shutdown_script(long this_arg);
6555 // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6556 public static native void InitFeatures_set_gossip_queries_optional(long this_arg);
6557 // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6558 public static native void InitFeatures_set_gossip_queries_required(long this_arg);
6559 // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6560 public static native boolean InitFeatures_supports_gossip_queries(long this_arg);
6561 // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6562 public static native void NodeFeatures_set_gossip_queries_optional(long this_arg);
6563 // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6564 public static native void NodeFeatures_set_gossip_queries_required(long this_arg);
6565 // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6566 public static native boolean NodeFeatures_supports_gossip_queries(long this_arg);
6567 // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6568 public static native boolean InitFeatures_requires_gossip_queries(long this_arg);
6569 // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6570 public static native boolean NodeFeatures_requires_gossip_queries(long this_arg);
6571 // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6572 public static native void InitFeatures_set_variable_length_onion_optional(long this_arg);
6573 // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6574 public static native void InitFeatures_set_variable_length_onion_required(long this_arg);
6575 // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6576 public static native boolean InitFeatures_supports_variable_length_onion(long this_arg);
6577 // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6578 public static native void NodeFeatures_set_variable_length_onion_optional(long this_arg);
6579 // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6580 public static native void NodeFeatures_set_variable_length_onion_required(long this_arg);
6581 // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6582 public static native boolean NodeFeatures_supports_variable_length_onion(long this_arg);
6583 // void InvoiceFeatures_set_variable_length_onion_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6584 public static native void InvoiceFeatures_set_variable_length_onion_optional(long this_arg);
6585 // void InvoiceFeatures_set_variable_length_onion_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6586 public static native void InvoiceFeatures_set_variable_length_onion_required(long this_arg);
6587 // MUST_USE_RES bool InvoiceFeatures_supports_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6588 public static native boolean InvoiceFeatures_supports_variable_length_onion(long this_arg);
6589 // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6590 public static native boolean InitFeatures_requires_variable_length_onion(long this_arg);
6591 // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6592 public static native boolean NodeFeatures_requires_variable_length_onion(long this_arg);
6593 // MUST_USE_RES bool InvoiceFeatures_requires_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6594 public static native boolean InvoiceFeatures_requires_variable_length_onion(long this_arg);
6595 // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6596 public static native void InitFeatures_set_static_remote_key_optional(long this_arg);
6597 // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6598 public static native void InitFeatures_set_static_remote_key_required(long this_arg);
6599 // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6600 public static native boolean InitFeatures_supports_static_remote_key(long this_arg);
6601 // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6602 public static native void NodeFeatures_set_static_remote_key_optional(long this_arg);
6603 // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6604 public static native void NodeFeatures_set_static_remote_key_required(long this_arg);
6605 // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6606 public static native boolean NodeFeatures_supports_static_remote_key(long this_arg);
6607 // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6608 public static native void ChannelTypeFeatures_set_static_remote_key_optional(long this_arg);
6609 // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6610 public static native void ChannelTypeFeatures_set_static_remote_key_required(long this_arg);
6611 // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6612 public static native boolean ChannelTypeFeatures_supports_static_remote_key(long this_arg);
6613 // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6614 public static native boolean InitFeatures_requires_static_remote_key(long this_arg);
6615 // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6616 public static native boolean NodeFeatures_requires_static_remote_key(long this_arg);
6617 // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6618 public static native boolean ChannelTypeFeatures_requires_static_remote_key(long this_arg);
6619 // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6620 public static native void InitFeatures_set_payment_secret_optional(long this_arg);
6621 // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6622 public static native void InitFeatures_set_payment_secret_required(long this_arg);
6623 // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6624 public static native boolean InitFeatures_supports_payment_secret(long this_arg);
6625 // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6626 public static native void NodeFeatures_set_payment_secret_optional(long this_arg);
6627 // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6628 public static native void NodeFeatures_set_payment_secret_required(long this_arg);
6629 // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6630 public static native boolean NodeFeatures_supports_payment_secret(long this_arg);
6631 // void InvoiceFeatures_set_payment_secret_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6632 public static native void InvoiceFeatures_set_payment_secret_optional(long this_arg);
6633 // void InvoiceFeatures_set_payment_secret_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6634 public static native void InvoiceFeatures_set_payment_secret_required(long this_arg);
6635 // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6636 public static native boolean InvoiceFeatures_supports_payment_secret(long this_arg);
6637 // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6638 public static native boolean InitFeatures_requires_payment_secret(long this_arg);
6639 // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6640 public static native boolean NodeFeatures_requires_payment_secret(long this_arg);
6641 // MUST_USE_RES bool InvoiceFeatures_requires_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6642 public static native boolean InvoiceFeatures_requires_payment_secret(long this_arg);
6643 // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6644 public static native void InitFeatures_set_basic_mpp_optional(long this_arg);
6645 // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6646 public static native void InitFeatures_set_basic_mpp_required(long this_arg);
6647 // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6648 public static native boolean InitFeatures_supports_basic_mpp(long this_arg);
6649 // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6650 public static native void NodeFeatures_set_basic_mpp_optional(long this_arg);
6651 // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6652 public static native void NodeFeatures_set_basic_mpp_required(long this_arg);
6653 // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6654 public static native boolean NodeFeatures_supports_basic_mpp(long this_arg);
6655 // void InvoiceFeatures_set_basic_mpp_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6656 public static native void InvoiceFeatures_set_basic_mpp_optional(long this_arg);
6657 // void InvoiceFeatures_set_basic_mpp_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6658 public static native void InvoiceFeatures_set_basic_mpp_required(long this_arg);
6659 // MUST_USE_RES bool InvoiceFeatures_supports_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6660 public static native boolean InvoiceFeatures_supports_basic_mpp(long this_arg);
6661 // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6662 public static native boolean InitFeatures_requires_basic_mpp(long this_arg);
6663 // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6664 public static native boolean NodeFeatures_requires_basic_mpp(long this_arg);
6665 // MUST_USE_RES bool InvoiceFeatures_requires_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
6666 public static native boolean InvoiceFeatures_requires_basic_mpp(long this_arg);
6667 // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6668 public static native void InitFeatures_set_wumbo_optional(long this_arg);
6669 // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6670 public static native void InitFeatures_set_wumbo_required(long this_arg);
6671 // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6672 public static native boolean InitFeatures_supports_wumbo(long this_arg);
6673 // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6674 public static native void NodeFeatures_set_wumbo_optional(long this_arg);
6675 // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6676 public static native void NodeFeatures_set_wumbo_required(long this_arg);
6677 // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6678 public static native boolean NodeFeatures_supports_wumbo(long this_arg);
6679 // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6680 public static native boolean InitFeatures_requires_wumbo(long this_arg);
6681 // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6682 public static native boolean NodeFeatures_requires_wumbo(long this_arg);
6683 // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6684 public static native void InitFeatures_set_shutdown_any_segwit_optional(long this_arg);
6685 // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6686 public static native void InitFeatures_set_shutdown_any_segwit_required(long this_arg);
6687 // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6688 public static native boolean InitFeatures_supports_shutdown_anysegwit(long this_arg);
6689 // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6690 public static native void NodeFeatures_set_shutdown_any_segwit_optional(long this_arg);
6691 // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6692 public static native void NodeFeatures_set_shutdown_any_segwit_required(long this_arg);
6693 // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6694 public static native boolean NodeFeatures_supports_shutdown_anysegwit(long this_arg);
6695 // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6696 public static native boolean InitFeatures_requires_shutdown_anysegwit(long this_arg);
6697 // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6698 public static native boolean NodeFeatures_requires_shutdown_anysegwit(long this_arg);
6699 // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6700 public static native void InitFeatures_set_channel_type_optional(long this_arg);
6701 // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6702 public static native void InitFeatures_set_channel_type_required(long this_arg);
6703 // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6704 public static native boolean InitFeatures_supports_channel_type(long this_arg);
6705 // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6706 public static native void NodeFeatures_set_channel_type_optional(long this_arg);
6707 // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6708 public static native void NodeFeatures_set_channel_type_required(long this_arg);
6709 // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6710 public static native boolean NodeFeatures_supports_channel_type(long this_arg);
6711 // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6712 public static native boolean InitFeatures_requires_channel_type(long this_arg);
6713 // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6714 public static native boolean NodeFeatures_requires_channel_type(long this_arg);
6715 // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6716 public static native void InitFeatures_set_scid_privacy_optional(long this_arg);
6717 // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6718 public static native void InitFeatures_set_scid_privacy_required(long this_arg);
6719 // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6720 public static native boolean InitFeatures_supports_scid_privacy(long this_arg);
6721 // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6722 public static native void NodeFeatures_set_scid_privacy_optional(long this_arg);
6723 // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6724 public static native void NodeFeatures_set_scid_privacy_required(long this_arg);
6725 // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6726 public static native boolean NodeFeatures_supports_scid_privacy(long this_arg);
6727 // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6728 public static native void ChannelTypeFeatures_set_scid_privacy_optional(long this_arg);
6729 // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6730 public static native void ChannelTypeFeatures_set_scid_privacy_required(long this_arg);
6731 // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6732 public static native boolean ChannelTypeFeatures_supports_scid_privacy(long this_arg);
6733 // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6734 public static native boolean InitFeatures_requires_scid_privacy(long this_arg);
6735 // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6736 public static native boolean NodeFeatures_requires_scid_privacy(long this_arg);
6737 // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6738 public static native boolean ChannelTypeFeatures_requires_scid_privacy(long this_arg);
6739 // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
6740 public static native void InitFeatures_set_zero_conf_optional(long this_arg);
6741 // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
6742 public static native void InitFeatures_set_zero_conf_required(long this_arg);
6743 // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6744 public static native boolean InitFeatures_supports_zero_conf(long this_arg);
6745 // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6746 public static native void NodeFeatures_set_zero_conf_optional(long this_arg);
6747 // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6748 public static native void NodeFeatures_set_zero_conf_required(long this_arg);
6749 // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6750 public static native boolean NodeFeatures_supports_zero_conf(long this_arg);
6751 // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6752 public static native void ChannelTypeFeatures_set_zero_conf_optional(long this_arg);
6753 // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6754 public static native void ChannelTypeFeatures_set_zero_conf_required(long this_arg);
6755 // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6756 public static native boolean ChannelTypeFeatures_supports_zero_conf(long this_arg);
6757 // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
6758 public static native boolean InitFeatures_requires_zero_conf(long this_arg);
6759 // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6760 public static native boolean NodeFeatures_requires_zero_conf(long this_arg);
6761 // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
6762 public static native boolean ChannelTypeFeatures_requires_zero_conf(long this_arg);
6763 // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6764 public static native void NodeFeatures_set_keysend_optional(long this_arg);
6765 // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
6766 public static native void NodeFeatures_set_keysend_required(long this_arg);
6767 // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6768 public static native boolean NodeFeatures_supports_keysend(long this_arg);
6769 // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
6770 public static native boolean NodeFeatures_requires_keysend(long this_arg);
6771 // void ShutdownScript_free(struct LDKShutdownScript this_obj);
6772 public static native void ShutdownScript_free(long this_obj);
6773 // uintptr_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
6774 public static native long ShutdownScript_clone_ptr(long arg);
6775 // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
6776 public static native long ShutdownScript_clone(long orig);
6777 // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
6778 public static native void InvalidShutdownScript_free(long this_obj);
6779 // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
6780 public static native byte[] InvalidShutdownScript_get_script(long this_ptr);
6781 // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
6782 public static native void InvalidShutdownScript_set_script(long this_ptr, byte[] val);
6783 // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
6784 public static native long InvalidShutdownScript_new(byte[] script_arg);
6785 // uintptr_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
6786 public static native long InvalidShutdownScript_clone_ptr(long arg);
6787 // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
6788 public static native long InvalidShutdownScript_clone(long orig);
6789 // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
6790 public static native byte[] ShutdownScript_write(long obj);
6791 // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
6792 public static native long ShutdownScript_read(byte[] ser);
6793 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
6794 public static native long ShutdownScript_new_p2wpkh(byte[] pubkey_hash);
6795 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
6796 public static native long ShutdownScript_new_p2wsh(byte[] script_hash);
6797 // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
6798 public static native long ShutdownScript_new_witness_program(byte version, byte[] program);
6799 // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
6800 public static native byte[] ShutdownScript_into_inner(long this_arg);
6801 // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
6802 public static native byte[] ShutdownScript_as_legacy_pubkey(long this_arg);
6803 // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
6804 public static native boolean ShutdownScript_is_compatible(long this_arg, long features);
6805 // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
6806 public static native void CustomMessageReader_free(long this_ptr);
6807 // uintptr_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
6808 public static native long Type_clone_ptr(long arg);
6809 // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
6810 public static native long Type_clone(long orig);
6811 // void Type_free(struct LDKType this_ptr);
6812 public static native void Type_free(long this_ptr);
6813 // void NodeId_free(struct LDKNodeId this_obj);
6814 public static native void NodeId_free(long this_obj);
6815 // uintptr_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
6816 public static native long NodeId_clone_ptr(long arg);
6817 // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
6818 public static native long NodeId_clone(long orig);
6819 // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
6820 public static native long NodeId_from_pubkey(byte[] pubkey);
6821 // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
6822 public static native byte[] NodeId_as_slice(long this_arg);
6823 // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
6824 public static native long NodeId_hash(long o);
6825 // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
6826 public static native byte[] NodeId_write(long obj);
6827 // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
6828 public static native long NodeId_read(byte[] ser);
6829 // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
6830 public static native void NetworkGraph_free(long this_obj);
6831 // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
6832 public static native void ReadOnlyNetworkGraph_free(long this_obj);
6833 // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
6834 public static native void NetworkUpdate_free(long this_ptr);
6835 // uintptr_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
6836 public static native long NetworkUpdate_clone_ptr(long arg);
6837 // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
6838 public static native long NetworkUpdate_clone(long orig);
6839 // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
6840 public static native long NetworkUpdate_channel_update_message(long msg);
6841 // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
6842 public static native long NetworkUpdate_channel_failure(long short_channel_id, boolean is_permanent);
6843 // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
6844 public static native long NetworkUpdate_node_failure(byte[] node_id, boolean is_permanent);
6845 // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
6846 public static native byte[] NetworkUpdate_write(long obj);
6847 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
6848 public static native long NetworkUpdate_read(byte[] ser);
6849 // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
6850 public static native void P2PGossipSync_free(long this_obj);
6851 // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_AccessZ chain_access, struct LDKLogger logger);
6852 public static native long P2PGossipSync_new(long network_graph, long chain_access, long logger);
6853 // void P2PGossipSync_add_chain_access(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_AccessZ chain_access);
6854 public static native void P2PGossipSync_add_chain_access(long this_arg, long chain_access);
6855 // struct LDKEventHandler NetworkGraph_as_EventHandler(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
6856 public static native long NetworkGraph_as_EventHandler(long this_arg);
6857 // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
6858 public static native long P2PGossipSync_as_RoutingMessageHandler(long this_arg);
6859 // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
6860 public static native long P2PGossipSync_as_MessageSendEventsProvider(long this_arg);
6861 // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
6862 public static native void ChannelUpdateInfo_free(long this_obj);
6863 // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
6864 public static native int ChannelUpdateInfo_get_last_update(long this_ptr);
6865 // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
6866 public static native void ChannelUpdateInfo_set_last_update(long this_ptr, int val);
6867 // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
6868 public static native boolean ChannelUpdateInfo_get_enabled(long this_ptr);
6869 // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
6870 public static native void ChannelUpdateInfo_set_enabled(long this_ptr, boolean val);
6871 // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
6872 public static native short ChannelUpdateInfo_get_cltv_expiry_delta(long this_ptr);
6873 // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
6874 public static native void ChannelUpdateInfo_set_cltv_expiry_delta(long this_ptr, short val);
6875 // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
6876 public static native long ChannelUpdateInfo_get_htlc_minimum_msat(long this_ptr);
6877 // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
6878 public static native void ChannelUpdateInfo_set_htlc_minimum_msat(long this_ptr, long val);
6879 // struct LDKCOption_u64Z ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
6880 public static native long ChannelUpdateInfo_get_htlc_maximum_msat(long this_ptr);
6881 // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6882 public static native void ChannelUpdateInfo_set_htlc_maximum_msat(long this_ptr, long val);
6883 // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
6884 public static native long ChannelUpdateInfo_get_fees(long this_ptr);
6885 // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
6886 public static native void ChannelUpdateInfo_set_fees(long this_ptr, long val);
6887 // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
6888 public static native long ChannelUpdateInfo_get_last_update_message(long this_ptr);
6889 // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
6890 public static native void ChannelUpdateInfo_set_last_update_message(long this_ptr, long val);
6891 // MUST_USE_RES struct LDKChannelUpdateInfo ChannelUpdateInfo_new(uint32_t last_update_arg, bool enabled_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg);
6892 public static native long ChannelUpdateInfo_new(int last_update_arg, boolean enabled_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, long fees_arg, long last_update_message_arg);
6893 // uintptr_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
6894 public static native long ChannelUpdateInfo_clone_ptr(long arg);
6895 // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
6896 public static native long ChannelUpdateInfo_clone(long orig);
6897 // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
6898 public static native byte[] ChannelUpdateInfo_write(long obj);
6899 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
6900 public static native long ChannelUpdateInfo_read(byte[] ser);
6901 // void ChannelInfo_free(struct LDKChannelInfo this_obj);
6902 public static native void ChannelInfo_free(long this_obj);
6903 // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
6904 public static native long ChannelInfo_get_features(long this_ptr);
6905 // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
6906 public static native void ChannelInfo_set_features(long this_ptr, long val);
6907 // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
6908 public static native long ChannelInfo_get_node_one(long this_ptr);
6909 // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
6910 public static native void ChannelInfo_set_node_one(long this_ptr, long val);
6911 // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
6912 public static native long ChannelInfo_get_one_to_two(long this_ptr);
6913 // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
6914 public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
6915 // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
6916 public static native long ChannelInfo_get_node_two(long this_ptr);
6917 // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
6918 public static native void ChannelInfo_set_node_two(long this_ptr, long val);
6919 // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
6920 public static native long ChannelInfo_get_two_to_one(long this_ptr);
6921 // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
6922 public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
6923 // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
6924 public static native long ChannelInfo_get_capacity_sats(long this_ptr);
6925 // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6926 public static native void ChannelInfo_set_capacity_sats(long this_ptr, long val);
6927 // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
6928 public static native long ChannelInfo_get_announcement_message(long this_ptr);
6929 // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
6930 public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
6931 // uintptr_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
6932 public static native long ChannelInfo_clone_ptr(long arg);
6933 // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
6934 public static native long ChannelInfo_clone(long orig);
6935 // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
6936 public static native long ChannelInfo_get_directional_info(long this_arg, byte channel_flags);
6937 // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
6938 public static native byte[] ChannelInfo_write(long obj);
6939 // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
6940 public static native long ChannelInfo_read(byte[] ser);
6941 // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
6942 public static native void DirectedChannelInfo_free(long this_obj);
6943 // uintptr_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
6944 public static native long DirectedChannelInfo_clone_ptr(long arg);
6945 // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
6946 public static native long DirectedChannelInfo_clone(long orig);
6947 // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
6948 public static native long DirectedChannelInfo_channel(long this_arg);
6949 // MUST_USE_RES struct LDKChannelUpdateInfo DirectedChannelInfo_direction(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
6950 public static native long DirectedChannelInfo_direction(long this_arg);
6951 // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
6952 public static native long DirectedChannelInfo_htlc_maximum_msat(long this_arg);
6953 // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
6954 public static native long DirectedChannelInfo_effective_capacity(long this_arg);
6955 // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
6956 public static native void EffectiveCapacity_free(long this_ptr);
6957 // uintptr_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
6958 public static native long EffectiveCapacity_clone_ptr(long arg);
6959 // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
6960 public static native long EffectiveCapacity_clone(long orig);
6961 // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
6962 public static native long EffectiveCapacity_exact_liquidity(long liquidity_msat);
6963 // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
6964 public static native long EffectiveCapacity_maximum_htlc(long amount_msat);
6965 // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, struct LDKCOption_u64Z htlc_maximum_msat);
6966 public static native long EffectiveCapacity_total(long capacity_msat, long htlc_maximum_msat);
6967 // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
6968 public static native long EffectiveCapacity_infinite();
6969 // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
6970 public static native long EffectiveCapacity_unknown();
6971 // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
6972 public static native long EffectiveCapacity_as_msat(long this_arg);
6973 // void RoutingFees_free(struct LDKRoutingFees this_obj);
6974 public static native void RoutingFees_free(long this_obj);
6975 // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
6976 public static native int RoutingFees_get_base_msat(long this_ptr);
6977 // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
6978 public static native void RoutingFees_set_base_msat(long this_ptr, int val);
6979 // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
6980 public static native int RoutingFees_get_proportional_millionths(long this_ptr);
6981 // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
6982 public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
6983 // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
6984 public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
6985 // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
6986 public static native boolean RoutingFees_eq(long a, long b);
6987 // uintptr_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
6988 public static native long RoutingFees_clone_ptr(long arg);
6989 // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
6990 public static native long RoutingFees_clone(long orig);
6991 // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
6992 public static native long RoutingFees_hash(long o);
6993 // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
6994 public static native byte[] RoutingFees_write(long obj);
6995 // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
6996 public static native long RoutingFees_read(byte[] ser);
6997 // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
6998 public static native void NodeAnnouncementInfo_free(long this_obj);
6999 // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
7000 public static native long NodeAnnouncementInfo_get_features(long this_ptr);
7001 // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
7002 public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
7003 // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
7004 public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
7005 // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
7006 public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
7007 // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
7008 public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
7009 // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
7010 public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
7011 // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
7012 public static native long NodeAnnouncementInfo_get_alias(long this_ptr);
7013 // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
7014 public static native void NodeAnnouncementInfo_set_alias(long this_ptr, long val);
7015 // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
7016 public static native void NodeAnnouncementInfo_set_addresses(long this_ptr, long[] val);
7017 // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
7018 public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
7019 // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
7020 public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
7021 // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKCVec_NetAddressZ addresses_arg, struct LDKNodeAnnouncement announcement_message_arg);
7022 public static native long NodeAnnouncementInfo_new(long features_arg, int last_update_arg, byte[] rgb_arg, long alias_arg, long[] addresses_arg, long announcement_message_arg);
7023 // uintptr_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
7024 public static native long NodeAnnouncementInfo_clone_ptr(long arg);
7025 // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
7026 public static native long NodeAnnouncementInfo_clone(long orig);
7027 // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
7028 public static native byte[] NodeAnnouncementInfo_write(long obj);
7029 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
7030 public static native long NodeAnnouncementInfo_read(byte[] ser);
7031 // void NodeAlias_free(struct LDKNodeAlias this_obj);
7032 public static native void NodeAlias_free(long this_obj);
7033 // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
7034 public static native byte[] NodeAlias_get_a(long this_ptr);
7035 // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7036 public static native void NodeAlias_set_a(long this_ptr, byte[] val);
7037 // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
7038 public static native long NodeAlias_new(byte[] a_arg);
7039 // uintptr_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
7040 public static native long NodeAlias_clone_ptr(long arg);
7041 // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
7042 public static native long NodeAlias_clone(long orig);
7043 // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
7044 public static native byte[] NodeAlias_write(long obj);
7045 // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
7046 public static native long NodeAlias_read(byte[] ser);
7047 // void NodeInfo_free(struct LDKNodeInfo this_obj);
7048 public static native void NodeInfo_free(long this_obj);
7049 // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
7050 public static native void NodeInfo_set_channels(long this_ptr, long[] val);
7051 // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
7052 public static native long NodeInfo_get_lowest_inbound_channel_fees(long this_ptr);
7053 // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
7054 public static native void NodeInfo_set_lowest_inbound_channel_fees(long this_ptr, long val);
7055 // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
7056 public static native long NodeInfo_get_announcement_info(long this_ptr);
7057 // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
7058 public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
7059 // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
7060 public static native long NodeInfo_new(long[] channels_arg, long lowest_inbound_channel_fees_arg, long announcement_info_arg);
7061 // uintptr_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
7062 public static native long NodeInfo_clone_ptr(long arg);
7063 // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
7064 public static native long NodeInfo_clone(long orig);
7065 // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
7066 public static native byte[] NodeInfo_write(long obj);
7067 // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
7068 public static native long NodeInfo_read(byte[] ser);
7069 // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
7070 public static native byte[] NetworkGraph_write(long obj);
7071 // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
7072 public static native long NetworkGraph_read(byte[] ser, long arg);
7073 // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKLogger logger);
7074 public static native long NetworkGraph_new(byte[] genesis_hash, long logger);
7075 // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
7076 public static native long NetworkGraph_read_only(long this_arg);
7077 // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
7078 public static native long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long this_arg);
7079 // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
7080 public static native void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long this_arg, int last_rapid_gossip_sync_timestamp);
7081 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
7082 public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
7083 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg);
7084 public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
7085 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_AccessZ chain_access);
7086 public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long chain_access);
7087 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_AccessZ chain_access);
7088 public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long chain_access);
7089 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_add_channel_from_partial_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, uint64_t timestamp, struct LDKChannelFeatures features, struct LDKPublicKey node_id_1, struct LDKPublicKey node_id_2);
7090 public static native long NetworkGraph_add_channel_from_partial_announcement(long this_arg, long short_channel_id, long timestamp, long features, byte[] node_id_1, byte[] node_id_2);
7091 // void NetworkGraph_channel_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
7092 public static native void NetworkGraph_channel_failed(long this_arg, long short_channel_id, boolean is_permanent);
7093 // void NetworkGraph_node_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
7094 public static native void NetworkGraph_node_failed(long this_arg, byte[] _node_id, boolean is_permanent);
7095 // void NetworkGraph_remove_stale_channels(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
7096 public static native void NetworkGraph_remove_stale_channels(long this_arg);
7097 // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
7098 public static native void NetworkGraph_remove_stale_channels_with_time(long this_arg, long current_time_unix);
7099 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
7100 public static native long NetworkGraph_update_channel(long this_arg, long msg);
7101 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
7102 public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
7103 // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
7104 public static native long ReadOnlyNetworkGraph_get_addresses(long this_arg, byte[] pubkey);
7105 // void RouteHop_free(struct LDKRouteHop this_obj);
7106 public static native void RouteHop_free(long this_obj);
7107 // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
7108 public static native byte[] RouteHop_get_pubkey(long this_ptr);
7109 // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7110 public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
7111 // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
7112 public static native long RouteHop_get_node_features(long this_ptr);
7113 // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
7114 public static native void RouteHop_set_node_features(long this_ptr, long val);
7115 // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
7116 public static native long RouteHop_get_short_channel_id(long this_ptr);
7117 // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
7118 public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
7119 // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
7120 public static native long RouteHop_get_channel_features(long this_ptr);
7121 // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
7122 public static native void RouteHop_set_channel_features(long this_ptr, long val);
7123 // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
7124 public static native long RouteHop_get_fee_msat(long this_ptr);
7125 // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
7126 public static native void RouteHop_set_fee_msat(long this_ptr, long val);
7127 // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
7128 public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
7129 // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
7130 public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
7131 // 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);
7132 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);
7133 // uintptr_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
7134 public static native long RouteHop_clone_ptr(long arg);
7135 // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
7136 public static native long RouteHop_clone(long orig);
7137 // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
7138 public static native long RouteHop_hash(long o);
7139 // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
7140 public static native boolean RouteHop_eq(long a, long b);
7141 // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
7142 public static native byte[] RouteHop_write(long obj);
7143 // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
7144 public static native long RouteHop_read(byte[] ser);
7145 // void Route_free(struct LDKRoute this_obj);
7146 public static native void Route_free(long this_obj);
7147 // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
7148 public static native long[][] Route_get_paths(long this_ptr);
7149 // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
7150 public static native void Route_set_paths(long this_ptr, long[][] val);
7151 // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
7152 public static native long Route_get_payment_params(long this_ptr);
7153 // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
7154 public static native void Route_set_payment_params(long this_ptr, long val);
7155 // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
7156 public static native long Route_new(long[][] paths_arg, long payment_params_arg);
7157 // uintptr_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
7158 public static native long Route_clone_ptr(long arg);
7159 // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
7160 public static native long Route_clone(long orig);
7161 // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
7162 public static native long Route_hash(long o);
7163 // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
7164 public static native boolean Route_eq(long a, long b);
7165 // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
7166 public static native long Route_get_total_fees(long this_arg);
7167 // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
7168 public static native long Route_get_total_amount(long this_arg);
7169 // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
7170 public static native byte[] Route_write(long obj);
7171 // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
7172 public static native long Route_read(byte[] ser);
7173 // void RouteParameters_free(struct LDKRouteParameters this_obj);
7174 public static native void RouteParameters_free(long this_obj);
7175 // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
7176 public static native long RouteParameters_get_payment_params(long this_ptr);
7177 // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
7178 public static native void RouteParameters_set_payment_params(long this_ptr, long val);
7179 // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
7180 public static native long RouteParameters_get_final_value_msat(long this_ptr);
7181 // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
7182 public static native void RouteParameters_set_final_value_msat(long this_ptr, long val);
7183 // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
7184 public static native int RouteParameters_get_final_cltv_expiry_delta(long this_ptr);
7185 // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
7186 public static native void RouteParameters_set_final_cltv_expiry_delta(long this_ptr, int val);
7187 // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, uint32_t final_cltv_expiry_delta_arg);
7188 public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg, int final_cltv_expiry_delta_arg);
7189 // uintptr_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
7190 public static native long RouteParameters_clone_ptr(long arg);
7191 // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
7192 public static native long RouteParameters_clone(long orig);
7193 // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
7194 public static native byte[] RouteParameters_write(long obj);
7195 // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
7196 public static native long RouteParameters_read(byte[] ser);
7197 // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
7198 public static native void PaymentParameters_free(long this_obj);
7199 // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
7200 public static native byte[] PaymentParameters_get_payee_pubkey(long this_ptr);
7201 // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7202 public static native void PaymentParameters_set_payee_pubkey(long this_ptr, byte[] val);
7203 // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
7204 public static native long PaymentParameters_get_features(long this_ptr);
7205 // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
7206 public static native void PaymentParameters_set_features(long this_ptr, long val);
7207 // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
7208 public static native long[] PaymentParameters_get_route_hints(long this_ptr);
7209 // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
7210 public static native void PaymentParameters_set_route_hints(long this_ptr, long[] val);
7211 // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
7212 public static native long PaymentParameters_get_expiry_time(long this_ptr);
7213 // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7214 public static native void PaymentParameters_set_expiry_time(long this_ptr, long val);
7215 // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
7216 public static native int PaymentParameters_get_max_total_cltv_expiry_delta(long this_ptr);
7217 // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
7218 public static native void PaymentParameters_set_max_total_cltv_expiry_delta(long this_ptr, int val);
7219 // uint8_t PaymentParameters_get_max_mpp_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
7220 public static native byte PaymentParameters_get_max_mpp_path_count(long this_ptr);
7221 // void PaymentParameters_set_max_mpp_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
7222 public static native void PaymentParameters_set_max_mpp_path_count(long this_ptr, byte val);
7223 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPublicKey payee_pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKCVec_RouteHintZ route_hints_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg, uint8_t max_mpp_path_count_arg);
7224 public static native long PaymentParameters_new(byte[] payee_pubkey_arg, long features_arg, long[] route_hints_arg, long expiry_time_arg, int max_total_cltv_expiry_delta_arg, byte max_mpp_path_count_arg);
7225 // uintptr_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
7226 public static native long PaymentParameters_clone_ptr(long arg);
7227 // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
7228 public static native long PaymentParameters_clone(long orig);
7229 // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
7230 public static native long PaymentParameters_hash(long o);
7231 // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
7232 public static native boolean PaymentParameters_eq(long a, long b);
7233 // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
7234 public static native byte[] PaymentParameters_write(long obj);
7235 // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser);
7236 public static native long PaymentParameters_read(byte[] ser);
7237 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
7238 public static native long PaymentParameters_from_node_id(byte[] payee_pubkey);
7239 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
7240 public static native long PaymentParameters_for_keysend(byte[] payee_pubkey);
7241 // void RouteHint_free(struct LDKRouteHint this_obj);
7242 public static native void RouteHint_free(long this_obj);
7243 // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
7244 public static native long[] RouteHint_get_a(long this_ptr);
7245 // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
7246 public static native void RouteHint_set_a(long this_ptr, long[] val);
7247 // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
7248 public static native long RouteHint_new(long[] a_arg);
7249 // uintptr_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
7250 public static native long RouteHint_clone_ptr(long arg);
7251 // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
7252 public static native long RouteHint_clone(long orig);
7253 // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
7254 public static native long RouteHint_hash(long o);
7255 // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
7256 public static native boolean RouteHint_eq(long a, long b);
7257 // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
7258 public static native byte[] RouteHint_write(long obj);
7259 // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
7260 public static native long RouteHint_read(byte[] ser);
7261 // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
7262 public static native void RouteHintHop_free(long this_obj);
7263 // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
7264 public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
7265 // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7266 public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
7267 // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
7268 public static native long RouteHintHop_get_short_channel_id(long this_ptr);
7269 // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
7270 public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
7271 // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
7272 public static native long RouteHintHop_get_fees(long this_ptr);
7273 // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
7274 public static native void RouteHintHop_set_fees(long this_ptr, long val);
7275 // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
7276 public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
7277 // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
7278 public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
7279 // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
7280 public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
7281 // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7282 public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
7283 // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
7284 public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
7285 // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7286 public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
7287 // MUST_USE_RES struct LDKRouteHintHop RouteHintHop_new(struct LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, struct LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, struct LDKCOption_u64Z htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg);
7288 public static native long RouteHintHop_new(byte[] src_node_id_arg, long short_channel_id_arg, long fees_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg);
7289 // uintptr_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
7290 public static native long RouteHintHop_clone_ptr(long arg);
7291 // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
7292 public static native long RouteHintHop_clone(long orig);
7293 // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
7294 public static native long RouteHintHop_hash(long o);
7295 // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
7296 public static native boolean RouteHintHop_eq(long a, long b);
7297 // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
7298 public static native byte[] RouteHintHop_write(long obj);
7299 // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
7300 public static native long RouteHintHop_read(byte[] ser);
7301 // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const uint8_t (*random_seed_bytes)[32]);
7302 public static native long find_route(byte[] our_node_pubkey, long route_params, long network_graph, long[] first_hops, long logger, long scorer, byte[] random_seed_bytes);
7303 // struct LDKCResult_RouteLightningErrorZ build_route_from_hops(struct LDKPublicKey our_node_pubkey, struct LDKCVec_PublicKeyZ hops, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, const uint8_t (*random_seed_bytes)[32]);
7304 public static native long build_route_from_hops(byte[] our_node_pubkey, byte[][] hops, long route_params, long network_graph, long logger, byte[] random_seed_bytes);
7305 // void Score_free(struct LDKScore this_ptr);
7306 public static native void Score_free(long this_ptr);
7307 // void LockableScore_free(struct LDKLockableScore this_ptr);
7308 public static native void LockableScore_free(long this_ptr);
7309 // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
7310 public static native void MultiThreadedLockableScore_free(long this_obj);
7311 // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
7312 public static native byte[] MultiThreadedLockableScore_write(long obj);
7313 // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
7314 public static native long MultiThreadedLockableScore_new(long score);
7315 // void ChannelUsage_free(struct LDKChannelUsage this_obj);
7316 public static native void ChannelUsage_free(long this_obj);
7317 // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
7318 public static native long ChannelUsage_get_amount_msat(long this_ptr);
7319 // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
7320 public static native void ChannelUsage_set_amount_msat(long this_ptr, long val);
7321 // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
7322 public static native long ChannelUsage_get_inflight_htlc_msat(long this_ptr);
7323 // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
7324 public static native void ChannelUsage_set_inflight_htlc_msat(long this_ptr, long val);
7325 // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
7326 public static native long ChannelUsage_get_effective_capacity(long this_ptr);
7327 // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
7328 public static native void ChannelUsage_set_effective_capacity(long this_ptr, long val);
7329 // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
7330 public static native long ChannelUsage_new(long amount_msat_arg, long inflight_htlc_msat_arg, long effective_capacity_arg);
7331 // uintptr_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
7332 public static native long ChannelUsage_clone_ptr(long arg);
7333 // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
7334 public static native long ChannelUsage_clone(long orig);
7335 // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
7336 public static native void FixedPenaltyScorer_free(long this_obj);
7337 // uintptr_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
7338 public static native long FixedPenaltyScorer_clone_ptr(long arg);
7339 // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
7340 public static native long FixedPenaltyScorer_clone(long orig);
7341 // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
7342 public static native long FixedPenaltyScorer_with_penalty(long penalty_msat);
7343 // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
7344 public static native long FixedPenaltyScorer_as_Score(long this_arg);
7345 // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
7346 public static native byte[] FixedPenaltyScorer_write(long obj);
7347 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
7348 public static native long FixedPenaltyScorer_read(byte[] ser, long arg);
7349 // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
7350 public static native void ProbabilisticScorer_free(long this_obj);
7351 // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
7352 public static native void ProbabilisticScoringParameters_free(long this_obj);
7353 // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
7354 public static native long ProbabilisticScoringParameters_get_base_penalty_msat(long this_ptr);
7355 // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
7356 public static native void ProbabilisticScoringParameters_set_base_penalty_msat(long this_ptr, long val);
7357 // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
7358 public static native long ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(long this_ptr);
7359 // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
7360 public static native void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(long this_ptr, long val);
7361 // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
7362 public static native long ProbabilisticScoringParameters_get_liquidity_offset_half_life(long this_ptr);
7363 // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
7364 public static native void ProbabilisticScoringParameters_set_liquidity_offset_half_life(long this_ptr, long val);
7365 // uint64_t ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
7366 public static native long ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(long this_ptr);
7367 // void ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
7368 public static native void ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(long this_ptr, long val);
7369 // uint64_t ProbabilisticScoringParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
7370 public static native long ProbabilisticScoringParameters_get_anti_probing_penalty_msat(long this_ptr);
7371 // void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
7372 public static native void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(long this_ptr, long val);
7373 // uintptr_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
7374 public static native long ProbabilisticScoringParameters_clone_ptr(long arg);
7375 // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
7376 public static native long ProbabilisticScoringParameters_clone(long orig);
7377 // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
7378 public static native long ProbabilisticScorer_new(long params, long network_graph, long logger);
7379 // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
7380 public static native void ProbabilisticScorer_debug_log_liquidity_stats(long this_arg);
7381 // MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_channel_liquidity_range(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
7382 public static native long ProbabilisticScorer_estimated_channel_liquidity_range(long this_arg, long scid, long target);
7383 // void ProbabilisticScorer_add_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
7384 public static native void ProbabilisticScorer_add_banned(long this_arg, long node_id);
7385 // void ProbabilisticScorer_remove_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
7386 public static native void ProbabilisticScorer_remove_banned(long this_arg, long node_id);
7387 // void ProbabilisticScorer_clear_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
7388 public static native void ProbabilisticScorer_clear_banned(long this_arg);
7389 // void ProbabilisticScoringParameters_add_banned_from_list(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
7390 public static native void ProbabilisticScoringParameters_add_banned_from_list(long this_arg, long[] node_ids);
7391 // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
7392 public static native long ProbabilisticScoringParameters_default();
7393 // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
7394 public static native long ProbabilisticScorer_as_Score(long this_arg);
7395 // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
7396 public static native byte[] ProbabilisticScorer_write(long obj);
7397 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
7398 public static native long ProbabilisticScorer_read(byte[] ser, long arg_a, long arg_b, long arg_c);
7399 // void FilesystemPersister_free(struct LDKFilesystemPersister this_obj);
7400 public static native void FilesystemPersister_free(long this_obj);
7401 // MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data);
7402 public static native long FilesystemPersister_new(String path_to_channel_data);
7403 // MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
7404 public static native String FilesystemPersister_get_data_dir(long this_arg);
7405 // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKKeysInterface keys_manager);
7406 public static native long FilesystemPersister_read_channelmonitors(long this_arg, long keys_manager);
7407 // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
7408 public static native void BackgroundProcessor_free(long this_obj);
7409 // void GossipSync_free(struct LDKGossipSync this_ptr);
7410 public static native void GossipSync_free(long this_ptr);
7411 // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
7412 public static native long GossipSync_p2_p(long a);
7413 // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
7414 public static native long GossipSync_rapid(long a);
7415 // struct LDKGossipSync GossipSync_none(void);
7416 public static native long GossipSync_none();
7417 // MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKPersister persister, struct LDKEventHandler event_handler, const struct LDKChainMonitor *NONNULL_PTR chain_monitor, const struct LDKChannelManager *NONNULL_PTR channel_manager, struct LDKGossipSync gossip_sync, const struct LDKPeerManager *NONNULL_PTR peer_manager, struct LDKLogger logger, struct LDKMultiThreadedLockableScore scorer);
7418 public static native long BackgroundProcessor_start(long persister, long event_handler, long chain_monitor, long channel_manager, long gossip_sync, long peer_manager, long logger, long scorer);
7419 // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
7420 public static native long BackgroundProcessor_join(long this_arg);
7421 // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
7422 public static native long BackgroundProcessor_stop(long this_arg);
7423 // void ParseError_free(struct LDKParseError this_ptr);
7424 public static native void ParseError_free(long this_ptr);
7425 // uintptr_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
7426 public static native long ParseError_clone_ptr(long arg);
7427 // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
7428 public static native long ParseError_clone(long orig);
7429 // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
7430 public static native long ParseError_bech32_error(long a);
7431 // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
7432 public static native long ParseError_parse_amount_error(int a);
7433 // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
7434 public static native long ParseError_malformed_signature(Secp256k1Error a);
7435 // struct LDKParseError ParseError_bad_prefix(void);
7436 public static native long ParseError_bad_prefix();
7437 // struct LDKParseError ParseError_unknown_currency(void);
7438 public static native long ParseError_unknown_currency();
7439 // struct LDKParseError ParseError_unknown_si_prefix(void);
7440 public static native long ParseError_unknown_si_prefix();
7441 // struct LDKParseError ParseError_malformed_hrp(void);
7442 public static native long ParseError_malformed_hrp();
7443 // struct LDKParseError ParseError_too_short_data_part(void);
7444 public static native long ParseError_too_short_data_part();
7445 // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
7446 public static native long ParseError_unexpected_end_of_tagged_fields();
7447 // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
7448 public static native long ParseError_description_decode_error(int a);
7449 // struct LDKParseError ParseError_padding_error(void);
7450 public static native long ParseError_padding_error();
7451 // struct LDKParseError ParseError_integer_overflow_error(void);
7452 public static native long ParseError_integer_overflow_error();
7453 // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
7454 public static native long ParseError_invalid_seg_wit_program_length();
7455 // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
7456 public static native long ParseError_invalid_pub_key_hash_length();
7457 // struct LDKParseError ParseError_invalid_script_hash_length(void);
7458 public static native long ParseError_invalid_script_hash_length();
7459 // struct LDKParseError ParseError_invalid_recovery_id(void);
7460 public static native long ParseError_invalid_recovery_id();
7461 // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
7462 public static native long ParseError_invalid_slice_length(String a);
7463 // struct LDKParseError ParseError_skip(void);
7464 public static native long ParseError_skip();
7465 // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
7466 public static native void ParseOrSemanticError_free(long this_ptr);
7467 // uintptr_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
7468 public static native long ParseOrSemanticError_clone_ptr(long arg);
7469 // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
7470 public static native long ParseOrSemanticError_clone(long orig);
7471 // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
7472 public static native long ParseOrSemanticError_parse_error(long a);
7473 // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
7474 public static native long ParseOrSemanticError_semantic_error(SemanticError a);
7475 // void Invoice_free(struct LDKInvoice this_obj);
7476 public static native void Invoice_free(long this_obj);
7477 // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
7478 public static native boolean Invoice_eq(long a, long b);
7479 // uintptr_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
7480 public static native long Invoice_clone_ptr(long arg);
7481 // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
7482 public static native long Invoice_clone(long orig);
7483 // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
7484 public static native void SignedRawInvoice_free(long this_obj);
7485 // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
7486 public static native boolean SignedRawInvoice_eq(long a, long b);
7487 // uintptr_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
7488 public static native long SignedRawInvoice_clone_ptr(long arg);
7489 // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
7490 public static native long SignedRawInvoice_clone(long orig);
7491 // void RawInvoice_free(struct LDKRawInvoice this_obj);
7492 public static native void RawInvoice_free(long this_obj);
7493 // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
7494 public static native long RawInvoice_get_data(long this_ptr);
7495 // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
7496 public static native void RawInvoice_set_data(long this_ptr, long val);
7497 // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
7498 public static native boolean RawInvoice_eq(long a, long b);
7499 // uintptr_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
7500 public static native long RawInvoice_clone_ptr(long arg);
7501 // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
7502 public static native long RawInvoice_clone(long orig);
7503 // void RawDataPart_free(struct LDKRawDataPart this_obj);
7504 public static native void RawDataPart_free(long this_obj);
7505 // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
7506 public static native long RawDataPart_get_timestamp(long this_ptr);
7507 // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
7508 public static native void RawDataPart_set_timestamp(long this_ptr, long val);
7509 // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
7510 public static native boolean RawDataPart_eq(long a, long b);
7511 // uintptr_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
7512 public static native long RawDataPart_clone_ptr(long arg);
7513 // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
7514 public static native long RawDataPart_clone(long orig);
7515 // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
7516 public static native void PositiveTimestamp_free(long this_obj);
7517 // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
7518 public static native boolean PositiveTimestamp_eq(long a, long b);
7519 // uintptr_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
7520 public static native long PositiveTimestamp_clone_ptr(long arg);
7521 // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
7522 public static native long PositiveTimestamp_clone(long orig);
7523 // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
7524 public static native SiPrefix SiPrefix_clone(long orig);
7525 // enum LDKSiPrefix SiPrefix_milli(void);
7526 public static native SiPrefix SiPrefix_milli();
7527 // enum LDKSiPrefix SiPrefix_micro(void);
7528 public static native SiPrefix SiPrefix_micro();
7529 // enum LDKSiPrefix SiPrefix_nano(void);
7530 public static native SiPrefix SiPrefix_nano();
7531 // enum LDKSiPrefix SiPrefix_pico(void);
7532 public static native SiPrefix SiPrefix_pico();
7533 // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
7534 public static native boolean SiPrefix_eq(long a, long b);
7535 // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
7536 public static native long SiPrefix_multiplier(long this_arg);
7537 // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
7538 public static native Currency Currency_clone(long orig);
7539 // enum LDKCurrency Currency_bitcoin(void);
7540 public static native Currency Currency_bitcoin();
7541 // enum LDKCurrency Currency_bitcoin_testnet(void);
7542 public static native Currency Currency_bitcoin_testnet();
7543 // enum LDKCurrency Currency_regtest(void);
7544 public static native Currency Currency_regtest();
7545 // enum LDKCurrency Currency_simnet(void);
7546 public static native Currency Currency_simnet();
7547 // enum LDKCurrency Currency_signet(void);
7548 public static native Currency Currency_signet();
7549 // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
7550 public static native long Currency_hash(long o);
7551 // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
7552 public static native boolean Currency_eq(long a, long b);
7553 // void Sha256_free(struct LDKSha256 this_obj);
7554 public static native void Sha256_free(long this_obj);
7555 // uintptr_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
7556 public static native long Sha256_clone_ptr(long arg);
7557 // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
7558 public static native long Sha256_clone(long orig);
7559 // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
7560 public static native long Sha256_hash(long o);
7561 // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
7562 public static native boolean Sha256_eq(long a, long b);
7563 // void Description_free(struct LDKDescription this_obj);
7564 public static native void Description_free(long this_obj);
7565 // uintptr_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
7566 public static native long Description_clone_ptr(long arg);
7567 // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
7568 public static native long Description_clone(long orig);
7569 // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
7570 public static native long Description_hash(long o);
7571 // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
7572 public static native boolean Description_eq(long a, long b);
7573 // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
7574 public static native void PayeePubKey_free(long this_obj);
7575 // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
7576 public static native byte[] PayeePubKey_get_a(long this_ptr);
7577 // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7578 public static native void PayeePubKey_set_a(long this_ptr, byte[] val);
7579 // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
7580 public static native long PayeePubKey_new(byte[] a_arg);
7581 // uintptr_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
7582 public static native long PayeePubKey_clone_ptr(long arg);
7583 // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
7584 public static native long PayeePubKey_clone(long orig);
7585 // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
7586 public static native long PayeePubKey_hash(long o);
7587 // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
7588 public static native boolean PayeePubKey_eq(long a, long b);
7589 // void ExpiryTime_free(struct LDKExpiryTime this_obj);
7590 public static native void ExpiryTime_free(long this_obj);
7591 // uintptr_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
7592 public static native long ExpiryTime_clone_ptr(long arg);
7593 // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
7594 public static native long ExpiryTime_clone(long orig);
7595 // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
7596 public static native long ExpiryTime_hash(long o);
7597 // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
7598 public static native boolean ExpiryTime_eq(long a, long b);
7599 // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
7600 public static native void MinFinalCltvExpiry_free(long this_obj);
7601 // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
7602 public static native long MinFinalCltvExpiry_get_a(long this_ptr);
7603 // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
7604 public static native void MinFinalCltvExpiry_set_a(long this_ptr, long val);
7605 // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
7606 public static native long MinFinalCltvExpiry_new(long a_arg);
7607 // uintptr_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
7608 public static native long MinFinalCltvExpiry_clone_ptr(long arg);
7609 // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
7610 public static native long MinFinalCltvExpiry_clone(long orig);
7611 // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
7612 public static native long MinFinalCltvExpiry_hash(long o);
7613 // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
7614 public static native boolean MinFinalCltvExpiry_eq(long a, long b);
7615 // void Fallback_free(struct LDKFallback this_ptr);
7616 public static native void Fallback_free(long this_ptr);
7617 // uintptr_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
7618 public static native long Fallback_clone_ptr(long arg);
7619 // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
7620 public static native long Fallback_clone(long orig);
7621 // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
7622 public static native long Fallback_seg_wit_program(byte version, byte[] program);
7623 // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
7624 public static native long Fallback_pub_key_hash(byte[] a);
7625 // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
7626 public static native long Fallback_script_hash(byte[] a);
7627 // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
7628 public static native long Fallback_hash(long o);
7629 // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
7630 public static native boolean Fallback_eq(long a, long b);
7631 // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
7632 public static native void InvoiceSignature_free(long this_obj);
7633 // uintptr_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
7634 public static native long InvoiceSignature_clone_ptr(long arg);
7635 // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
7636 public static native long InvoiceSignature_clone(long orig);
7637 // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
7638 public static native boolean InvoiceSignature_eq(long a, long b);
7639 // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
7640 public static native void PrivateRoute_free(long this_obj);
7641 // uintptr_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
7642 public static native long PrivateRoute_clone_ptr(long arg);
7643 // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
7644 public static native long PrivateRoute_clone(long orig);
7645 // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
7646 public static native long PrivateRoute_hash(long o);
7647 // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
7648 public static native boolean PrivateRoute_eq(long a, long b);
7649 // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
7650 public static native long SignedRawInvoice_into_parts(long this_arg);
7651 // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
7652 public static native long SignedRawInvoice_raw_invoice(long this_arg);
7653 // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
7654 public static native byte[] SignedRawInvoice_hash(long this_arg);
7655 // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
7656 public static native long SignedRawInvoice_signature(long this_arg);
7657 // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
7658 public static native long SignedRawInvoice_recover_payee_pub_key(long this_arg);
7659 // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
7660 public static native boolean SignedRawInvoice_check_signature(long this_arg);
7661 // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7662 public static native byte[] RawInvoice_hash(long this_arg);
7663 // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7664 public static native long RawInvoice_payment_hash(long this_arg);
7665 // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7666 public static native long RawInvoice_description(long this_arg);
7667 // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7668 public static native long RawInvoice_payee_pub_key(long this_arg);
7669 // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7670 public static native long RawInvoice_description_hash(long this_arg);
7671 // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7672 public static native long RawInvoice_expiry_time(long this_arg);
7673 // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7674 public static native long RawInvoice_min_final_cltv_expiry(long this_arg);
7675 // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7676 public static native byte[] RawInvoice_payment_secret(long this_arg);
7677 // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7678 public static native long RawInvoice_features(long this_arg);
7679 // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7680 public static native long[] RawInvoice_private_routes(long this_arg);
7681 // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7682 public static native long RawInvoice_amount_pico_btc(long this_arg);
7683 // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
7684 public static native Currency RawInvoice_currency(long this_arg);
7685 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
7686 public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
7687 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
7688 public static native long PositiveTimestamp_from_system_time(long time);
7689 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
7690 public static native long PositiveTimestamp_from_duration_since_epoch(long duration);
7691 // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
7692 public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
7693 // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
7694 public static native long PositiveTimestamp_as_duration_since_epoch(long this_arg);
7695 // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
7696 public static native long PositiveTimestamp_as_time(long this_arg);
7697 // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
7698 public static native long Invoice_into_signed_raw(long this_arg);
7699 // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
7700 public static native long Invoice_check_signature(long this_arg);
7701 // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
7702 public static native long Invoice_from_signed(long signed_invoice);
7703 // MUST_USE_RES uint64_t Invoice_timestamp(const struct LDKInvoice *NONNULL_PTR this_arg);
7704 public static native long Invoice_timestamp(long this_arg);
7705 // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
7706 public static native long Invoice_duration_since_epoch(long this_arg);
7707 // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
7708 public static native byte[] Invoice_payment_hash(long this_arg);
7709 // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
7710 public static native byte[] Invoice_payee_pub_key(long this_arg);
7711 // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
7712 public static native byte[] Invoice_payment_secret(long this_arg);
7713 // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
7714 public static native long Invoice_features(long this_arg);
7715 // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
7716 public static native byte[] Invoice_recover_payee_pub_key(long this_arg);
7717 // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
7718 public static native long Invoice_expiry_time(long this_arg);
7719 // MUST_USE_RES bool Invoice_is_expired(const struct LDKInvoice *NONNULL_PTR this_arg);
7720 public static native boolean Invoice_is_expired(long this_arg);
7721 // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
7722 public static native boolean Invoice_would_expire(long this_arg, long at_time);
7723 // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
7724 public static native long Invoice_min_final_cltv_expiry(long this_arg);
7725 // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
7726 public static native long[] Invoice_private_routes(long this_arg);
7727 // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
7728 public static native long[] Invoice_route_hints(long this_arg);
7729 // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
7730 public static native Currency Invoice_currency(long this_arg);
7731 // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
7732 public static native long Invoice_amount_milli_satoshis(long this_arg);
7733 // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
7734 public static native long Description_new(String description);
7735 // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
7736 public static native String Description_into_inner(long this_arg);
7737 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
7738 public static native long ExpiryTime_from_seconds(long seconds);
7739 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
7740 public static native long ExpiryTime_from_duration(long duration);
7741 // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
7742 public static native long ExpiryTime_as_seconds(long this_arg);
7743 // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
7744 public static native long ExpiryTime_as_duration(long this_arg);
7745 // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
7746 public static native long PrivateRoute_new(long hops);
7747 // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
7748 public static native long PrivateRoute_into_inner(long this_arg);
7749 // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
7750 public static native CreationError CreationError_clone(long orig);
7751 // enum LDKCreationError CreationError_description_too_long(void);
7752 public static native CreationError CreationError_description_too_long();
7753 // enum LDKCreationError CreationError_route_too_long(void);
7754 public static native CreationError CreationError_route_too_long();
7755 // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
7756 public static native CreationError CreationError_timestamp_out_of_bounds();
7757 // enum LDKCreationError CreationError_invalid_amount(void);
7758 public static native CreationError CreationError_invalid_amount();
7759 // enum LDKCreationError CreationError_missing_route_hints(void);
7760 public static native CreationError CreationError_missing_route_hints();
7761 // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
7762 public static native boolean CreationError_eq(long a, long b);
7763 // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
7764 public static native String CreationError_to_str(long o);
7765 // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
7766 public static native SemanticError SemanticError_clone(long orig);
7767 // enum LDKSemanticError SemanticError_no_payment_hash(void);
7768 public static native SemanticError SemanticError_no_payment_hash();
7769 // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
7770 public static native SemanticError SemanticError_multiple_payment_hashes();
7771 // enum LDKSemanticError SemanticError_no_description(void);
7772 public static native SemanticError SemanticError_no_description();
7773 // enum LDKSemanticError SemanticError_multiple_descriptions(void);
7774 public static native SemanticError SemanticError_multiple_descriptions();
7775 // enum LDKSemanticError SemanticError_no_payment_secret(void);
7776 public static native SemanticError SemanticError_no_payment_secret();
7777 // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
7778 public static native SemanticError SemanticError_multiple_payment_secrets();
7779 // enum LDKSemanticError SemanticError_invalid_features(void);
7780 public static native SemanticError SemanticError_invalid_features();
7781 // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
7782 public static native SemanticError SemanticError_invalid_recovery_id();
7783 // enum LDKSemanticError SemanticError_invalid_signature(void);
7784 public static native SemanticError SemanticError_invalid_signature();
7785 // enum LDKSemanticError SemanticError_imprecise_amount(void);
7786 public static native SemanticError SemanticError_imprecise_amount();
7787 // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
7788 public static native boolean SemanticError_eq(long a, long b);
7789 // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
7790 public static native String SemanticError_to_str(long o);
7791 // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
7792 public static native void SignOrCreationError_free(long this_ptr);
7793 // uintptr_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
7794 public static native long SignOrCreationError_clone_ptr(long arg);
7795 // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
7796 public static native long SignOrCreationError_clone(long orig);
7797 // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
7798 public static native long SignOrCreationError_sign_error();
7799 // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
7800 public static native long SignOrCreationError_creation_error(CreationError a);
7801 // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
7802 public static native boolean SignOrCreationError_eq(long a, long b);
7803 // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
7804 public static native String SignOrCreationError_to_str(long o);
7805 // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
7806 public static native void InvoicePayer_free(long this_obj);
7807 // void Payer_free(struct LDKPayer this_ptr);
7808 public static native void Payer_free(long this_ptr);
7809 // void Router_free(struct LDKRouter this_ptr);
7810 public static native void Router_free(long this_ptr);
7811 // void Retry_free(struct LDKRetry this_ptr);
7812 public static native void Retry_free(long this_ptr);
7813 // uintptr_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
7814 public static native long Retry_clone_ptr(long arg);
7815 // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
7816 public static native long Retry_clone(long orig);
7817 // struct LDKRetry Retry_attempts(uintptr_t a);
7818 public static native long Retry_attempts(long a);
7819 // struct LDKRetry Retry_timeout(uint64_t a);
7820 public static native long Retry_timeout(long a);
7821 // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
7822 public static native boolean Retry_eq(long a, long b);
7823 // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
7824 public static native long Retry_hash(long o);
7825 // void PaymentError_free(struct LDKPaymentError this_ptr);
7826 public static native void PaymentError_free(long this_ptr);
7827 // uintptr_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
7828 public static native long PaymentError_clone_ptr(long arg);
7829 // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
7830 public static native long PaymentError_clone(long orig);
7831 // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
7832 public static native long PaymentError_invoice(String a);
7833 // struct LDKPaymentError PaymentError_routing(struct LDKLightningError a);
7834 public static native long PaymentError_routing(long a);
7835 // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
7836 public static native long PaymentError_sending(long a);
7837 // MUST_USE_RES struct LDKInvoicePayer InvoicePayer_new(struct LDKPayer payer, struct LDKRouter router, const struct LDKMultiThreadedLockableScore *NONNULL_PTR scorer, struct LDKLogger logger, struct LDKEventHandler event_handler, struct LDKRetry retry);
7838 public static native long InvoicePayer_new(long payer, long router, long scorer, long logger, long event_handler, long retry);
7839 // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
7840 public static native long InvoicePayer_pay_invoice(long this_arg, long invoice);
7841 // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_zero_value_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats);
7842 public static native long InvoicePayer_pay_zero_value_invoice(long this_arg, long invoice, long amount_msats);
7843 // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_pubkey(const struct LDKInvoicePayer *NONNULL_PTR this_arg, struct LDKPublicKey pubkey, struct LDKThirtyTwoBytes payment_preimage, uint64_t amount_msats, uint32_t final_cltv_expiry_delta);
7844 public static native long InvoicePayer_pay_pubkey(long this_arg, byte[] pubkey, byte[] payment_preimage, long amount_msats, int final_cltv_expiry_delta);
7845 // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
7846 public static native void InvoicePayer_remove_cached_payment(long this_arg, byte[] payment_hash);
7847 // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
7848 public static native long InvoicePayer_as_EventHandler(long this_arg);
7849 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKKeysInterface keys_manager, enum LDKCurrency network);
7850 public static native long create_phantom_invoice(long amt_msat, byte[] payment_hash, String description, int invoice_expiry_delta_secs, long[] phantom_route_hints, long keys_manager, Currency network);
7851 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKKeysInterface keys_manager, enum LDKCurrency network);
7852 public static native long create_phantom_invoice_with_description_hash(long amt_msat, byte[] payment_hash, int invoice_expiry_delta_secs, long description_hash, long[] phantom_route_hints, long keys_manager, Currency network);
7853 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint32_t invoice_expiry_delta_secs);
7854 public static native long create_invoice_from_channelmanager(long channelmanager, long keys_manager, Currency network, long amt_msat, String description, int invoice_expiry_delta_secs);
7855 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint32_t invoice_expiry_delta_secs);
7856 public static native long create_invoice_from_channelmanager_with_description_hash(long channelmanager, long keys_manager, Currency network, long amt_msat, long description_hash, int invoice_expiry_delta_secs);
7857 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs);
7858 public static native long create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(long channelmanager, long keys_manager, Currency network, long amt_msat, long description_hash, long duration_since_epoch, int invoice_expiry_delta_secs);
7859 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs);
7860 public static native long create_invoice_from_channelmanager_and_duration_since_epoch(long channelmanager, long keys_manager, Currency network, long amt_msat, String description, long duration_since_epoch, int invoice_expiry_delta_secs);
7861 // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
7862 public static native void DefaultRouter_free(long this_obj);
7863 // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes);
7864 public static native long DefaultRouter_new(long network_graph, long logger, byte[] random_seed_bytes);
7865 // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
7866 public static native long DefaultRouter_as_Router(long this_arg);
7867 // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
7868 public static native long ChannelManager_as_Payer(long this_arg);
7869 // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
7870 public static native long SiPrefix_from_str(String s);
7871 // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
7872 public static native long Invoice_from_str(String s);
7873 // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
7874 public static native long SignedRawInvoice_from_str(String s);
7875 // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
7876 public static native String ParseError_to_str(long o);
7877 // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
7878 public static native String ParseOrSemanticError_to_str(long o);
7879 // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
7880 public static native String Invoice_to_str(long o);
7881 // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
7882 public static native String SignedRawInvoice_to_str(long o);
7883 // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
7884 public static native String Currency_to_str(long o);
7885 // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
7886 public static native String SiPrefix_to_str(long o);
7887 // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
7888 public static native void RapidGossipSync_free(long this_obj);
7889 // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph);
7890 public static native long RapidGossipSync_new(long network_graph);
7891 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_sync_network_graph_with_file_path(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKStr sync_path);
7892 public static native long RapidGossipSync_sync_network_graph_with_file_path(long this_arg, String sync_path);
7893 // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
7894 public static native boolean RapidGossipSync_is_initial_sync_complete(long this_arg);
7895 // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
7896 public static native void GraphSyncError_free(long this_ptr);
7897 // uintptr_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
7898 public static native long GraphSyncError_clone_ptr(long arg);
7899 // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
7900 public static native long GraphSyncError_clone(long orig);
7901 // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
7902 public static native long GraphSyncError_decode_error(long a);
7903 // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
7904 public static native long GraphSyncError_lightning_error(long a);
7905 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
7906 public static native long RapidGossipSync_update_network_graph(long this_arg, byte[] update_data);