[Java] Update auto-generated bindings to LDK 0.0.118
[ldk-java] / src / main / java / org / ldk / impl / bindings.java
1 package org.ldk.impl;
2 import org.ldk.enums.*;
3 import org.ldk.impl.version;
4 import java.io.File;
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;
10
11 public class bindings {
12         static {
13                 try {
14                         // Try to load natively first, this works on Android and in testing.
15                         System.loadLibrary("lightningjni");
16                 } catch (UnsatisfiedLinkError system_load_err) {
17                         // Otherwise try to load from the library jar.
18                         File tmpdir = new File(System.getProperty("java.io.tmpdir"), "ldk-java-nativelib");
19                         tmpdir.mkdir(); // If it fails to create, assume it was there already
20                         tmpdir.deleteOnExit();
21                         String libname = "liblightningjni_" + System.getProperty("os.name").replaceAll(" ", "") +
22                                 "-" + System.getProperty("os.arch").replaceAll(" ", "") + ".nativelib";
23                         try (InputStream is = bindings.class.getResourceAsStream("/" + libname)) {
24                                 Path libpath = new File(tmpdir.toPath().toString(), "liblightningjni.so").toPath();
25                                 Files.copy(is, libpath, StandardCopyOption.REPLACE_EXISTING);
26                                 Runtime.getRuntime().load(libpath.toString());
27                         } catch (Exception e) {
28                                 System.err.println("Failed to load LDK native library.");
29                                 System.err.println("System LDK native library load failed with: " + system_load_err);
30                                 System.err.println("Resource-based LDK native library load failed with: " + e);
31                                 throw new IllegalArgumentException(e);
32                         }
33                 }
34                 init(java.lang.Enum.class);
35                 init_class_cache();
36                 if (!get_lib_version_string().equals(version.get_ldk_java_bindings_version()))
37                         throw new IllegalArgumentException("Compiled LDK library and LDK class failes do not match");
38                 // Fetching the LDK versions from C also checks that the header and binaries match
39                 System.err.println("Loaded LDK-Java Bindings " + version.get_ldk_java_bindings_version() + " with LDK " + get_ldk_version() + " and LDK-C-Bindings " + get_ldk_c_bindings_version());
40         }
41         static native void init(java.lang.Class c);
42         static native void init_class_cache();
43         static native String get_lib_version_string();
44
45         public static native String get_ldk_c_bindings_version();
46         public static native String get_ldk_version();
47
48         static { Bolt11SemanticError.values(); /* Force enum statics to run */ }
49         static { Bolt12SemanticError.values(); /* Force enum statics to run */ }
50         static { COption_NoneZ.values(); /* Force enum statics to run */ }
51         static { ChannelMonitorUpdateStatus.values(); /* Force enum statics to run */ }
52         static { ChannelShutdownState.values(); /* Force enum statics to run */ }
53         static { ConfirmationTarget.values(); /* Force enum statics to run */ }
54         static { CreationError.values(); /* Force enum statics to run */ }
55         static { Currency.values(); /* Force enum statics to run */ }
56         static { HTLCClaim.values(); /* Force enum statics to run */ }
57         static { IOError.values(); /* Force enum statics to run */ }
58         static { Level.values(); /* Force enum statics to run */ }
59         static { Network.values(); /* Force enum statics to run */ }
60         static { PaymentFailureReason.values(); /* Force enum statics to run */ }
61         static { Recipient.values(); /* Force enum statics to run */ }
62         static { RetryableSendFailure.values(); /* Force enum statics to run */ }
63         static { Secp256k1Error.values(); /* Force enum statics to run */ }
64         static { SiPrefix.values(); /* Force enum statics to run */ }
65         static { SocketAddressParseError.values(); /* Force enum statics to run */ }
66         static { UtxoLookupError.values(); /* Force enum statics to run */ }
67         // struct LDKThirtyTwoBytes BigEndianScalar_get_bytes (struct LDKBigEndianScalar* thing)
68         public static native byte[] BigEndianScalar_get_bytes(long thing);
69         // static void BigEndianScalar_free (struct LDKBigEndianScalar thing)
70         public static native void BigEndianScalar_free(long thing);
71         public static class LDKBech32Error {
72                 private LDKBech32Error() {}
73                 public final static class MissingSeparator extends LDKBech32Error {
74                         MissingSeparator() { }
75                 }
76                 public final static class InvalidChecksum extends LDKBech32Error {
77                         InvalidChecksum() { }
78                 }
79                 public final static class InvalidLength extends LDKBech32Error {
80                         InvalidLength() { }
81                 }
82                 public final static class InvalidChar extends LDKBech32Error {
83                         public int invalid_char;
84                         InvalidChar(int invalid_char) { this.invalid_char = invalid_char; }
85                 }
86                 public final static class InvalidData extends LDKBech32Error {
87                         public byte invalid_data;
88                         InvalidData(byte invalid_data) { this.invalid_data = invalid_data; }
89                 }
90                 public final static class InvalidPadding extends LDKBech32Error {
91                         InvalidPadding() { }
92                 }
93                 public final static class MixedCase extends LDKBech32Error {
94                         MixedCase() { }
95                 }
96                 static native void init();
97         }
98         static { LDKBech32Error.init(); }
99         public static native LDKBech32Error LDKBech32Error_ref_from_ptr(long ptr);
100         // struct LDKWitness TxIn_get_witness (struct LDKTxIn* thing)
101         public static native byte[] TxIn_get_witness(long thing);
102         // struct LDKCVec_u8Z TxIn_get_script_sig (struct LDKTxIn* thing)
103         public static native byte[] TxIn_get_script_sig(long thing);
104         // LDKThirtyTwoBytes TxIn_get_previous_txid (struct LDKTxIn* thing)
105         public static native byte[] TxIn_get_previous_txid(long thing);
106         // uint32_t TxIn_get_previous_vout (struct LDKTxIn* thing)
107         public static native int TxIn_get_previous_vout(long thing);
108         // uint32_t TxIn_get_sequence (struct LDKTxIn* thing)
109         public static native int TxIn_get_sequence(long thing);
110         // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
111         public static native byte[] TxOut_get_script_pubkey(long thing);
112         // uint64_t TxOut_get_value (struct LDKTxOut* thing)
113         public static native long TxOut_get_value(long thing);
114         public static class LDKCOption_u64Z {
115                 private LDKCOption_u64Z() {}
116                 public final static class Some extends LDKCOption_u64Z {
117                         public long some;
118                         Some(long some) { this.some = some; }
119                 }
120                 public final static class None extends LDKCOption_u64Z {
121                         None() { }
122                 }
123                 static native void init();
124         }
125         static { LDKCOption_u64Z.init(); }
126         public static native LDKCOption_u64Z LDKCOption_u64Z_ref_from_ptr(long ptr);
127         // struct LDKRefund CResult_RefundBolt12ParseErrorZ_get_ok(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
128         public static native long CResult_RefundBolt12ParseErrorZ_get_ok(long owner);
129         // struct LDKBolt12ParseError CResult_RefundBolt12ParseErrorZ_get_err(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
130         public static native long CResult_RefundBolt12ParseErrorZ_get_err(long owner);
131         public static class LDKRetry {
132                 private LDKRetry() {}
133                 public final static class Attempts extends LDKRetry {
134                         public int attempts;
135                         Attempts(int attempts) { this.attempts = attempts; }
136                 }
137                 public final static class Timeout extends LDKRetry {
138                         public long timeout;
139                         Timeout(long timeout) { this.timeout = timeout; }
140                 }
141                 static native void init();
142         }
143         static { LDKRetry.init(); }
144         public static native LDKRetry LDKRetry_ref_from_ptr(long ptr);
145         public static class LDKDecodeError {
146                 private LDKDecodeError() {}
147                 public final static class UnknownVersion extends LDKDecodeError {
148                         UnknownVersion() { }
149                 }
150                 public final static class UnknownRequiredFeature extends LDKDecodeError {
151                         UnknownRequiredFeature() { }
152                 }
153                 public final static class InvalidValue extends LDKDecodeError {
154                         InvalidValue() { }
155                 }
156                 public final static class ShortRead extends LDKDecodeError {
157                         ShortRead() { }
158                 }
159                 public final static class BadLengthDescriptor extends LDKDecodeError {
160                         BadLengthDescriptor() { }
161                 }
162                 public final static class Io extends LDKDecodeError {
163                         public org.ldk.enums.IOError io;
164                         Io(org.ldk.enums.IOError io) { this.io = io; }
165                 }
166                 public final static class UnsupportedCompression extends LDKDecodeError {
167                         UnsupportedCompression() { }
168                 }
169                 static native void init();
170         }
171         static { LDKDecodeError.init(); }
172         public static native LDKDecodeError LDKDecodeError_ref_from_ptr(long ptr);
173         // struct LDKRetry CResult_RetryDecodeErrorZ_get_ok(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner);
174         public static native long CResult_RetryDecodeErrorZ_get_ok(long owner);
175         // struct LDKDecodeError CResult_RetryDecodeErrorZ_get_err(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner);
176         public static native long CResult_RetryDecodeErrorZ_get_err(long owner);
177         public static class LDKAPIError {
178                 private LDKAPIError() {}
179                 public final static class APIMisuseError extends LDKAPIError {
180                         public java.lang.String err;
181                         APIMisuseError(java.lang.String err) { this.err = err; }
182                 }
183                 public final static class FeeRateTooHigh extends LDKAPIError {
184                         public java.lang.String err;
185                         public int feerate;
186                         FeeRateTooHigh(java.lang.String err, int feerate) { this.err = err; this.feerate = feerate; }
187                 }
188                 public final static class InvalidRoute extends LDKAPIError {
189                         public java.lang.String err;
190                         InvalidRoute(java.lang.String err) { this.err = err; }
191                 }
192                 public final static class ChannelUnavailable extends LDKAPIError {
193                         public java.lang.String err;
194                         ChannelUnavailable(java.lang.String err) { this.err = err; }
195                 }
196                 public final static class MonitorUpdateInProgress extends LDKAPIError {
197                         MonitorUpdateInProgress() { }
198                 }
199                 public final static class IncompatibleShutdownScript extends LDKAPIError {
200                         public long script;
201                         IncompatibleShutdownScript(long script) { this.script = script; }
202                 }
203                 static native void init();
204         }
205         static { LDKAPIError.init(); }
206         public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
207         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
208         public static native void CResult_NoneAPIErrorZ_get_ok(long owner);
209         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
210         public static native long CResult_NoneAPIErrorZ_get_err(long owner);
211         public static class LDKCOption_ThirtyTwoBytesZ {
212                 private LDKCOption_ThirtyTwoBytesZ() {}
213                 public final static class Some extends LDKCOption_ThirtyTwoBytesZ {
214                         public byte[] some;
215                         Some(byte[] some) { this.some = some; }
216                 }
217                 public final static class None extends LDKCOption_ThirtyTwoBytesZ {
218                         None() { }
219                 }
220                 static native void init();
221         }
222         static { LDKCOption_ThirtyTwoBytesZ.init(); }
223         public static native LDKCOption_ThirtyTwoBytesZ LDKCOption_ThirtyTwoBytesZ_ref_from_ptr(long ptr);
224         public static class LDKCOption_CVec_u8ZZ {
225                 private LDKCOption_CVec_u8ZZ() {}
226                 public final static class Some extends LDKCOption_CVec_u8ZZ {
227                         public byte[] some;
228                         Some(byte[] some) { this.some = some; }
229                 }
230                 public final static class None extends LDKCOption_CVec_u8ZZ {
231                         None() { }
232                 }
233                 static native void init();
234         }
235         static { LDKCOption_CVec_u8ZZ.init(); }
236         public static native LDKCOption_CVec_u8ZZ LDKCOption_CVec_u8ZZ_ref_from_ptr(long ptr);
237         // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
238         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(long owner);
239         // struct LDKDecodeError CResult_RecipientOnionFieldsDecodeErrorZ_get_err(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
240         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_err(long owner);
241         // uint64_t C2Tuple_u64CVec_u8ZZ_get_a(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner);
242         public static native long C2Tuple_u64CVec_u8ZZ_get_a(long owner);
243         // struct LDKCVec_u8Z C2Tuple_u64CVec_u8ZZ_get_b(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner);
244         public static native byte[] C2Tuple_u64CVec_u8ZZ_get_b(long owner);
245         // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsNoneZ_get_ok(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner);
246         public static native long CResult_RecipientOnionFieldsNoneZ_get_ok(long owner);
247         // void CResult_RecipientOnionFieldsNoneZ_get_err(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner);
248         public static native void CResult_RecipientOnionFieldsNoneZ_get_err(long owner);
249         public static class LDKCOption_CVec_ThirtyTwoBytesZZ {
250                 private LDKCOption_CVec_ThirtyTwoBytesZZ() {}
251                 public final static class Some extends LDKCOption_CVec_ThirtyTwoBytesZZ {
252                         public byte[][] some;
253                         Some(byte[][] some) { this.some = some; }
254                 }
255                 public final static class None extends LDKCOption_CVec_ThirtyTwoBytesZZ {
256                         None() { }
257                 }
258                 static native void init();
259         }
260         static { LDKCOption_CVec_ThirtyTwoBytesZZ.init(); }
261         public static native LDKCOption_CVec_ThirtyTwoBytesZZ LDKCOption_CVec_ThirtyTwoBytesZZ_ref_from_ptr(long ptr);
262         // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesNoneZ_get_ok(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner);
263         public static native byte[] CResult_ThirtyTwoBytesNoneZ_get_ok(long owner);
264         // void CResult_ThirtyTwoBytesNoneZ_get_err(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner);
265         public static native void CResult_ThirtyTwoBytesNoneZ_get_err(long owner);
266         // struct LDKBlindedPayInfo CResult_BlindedPayInfoDecodeErrorZ_get_ok(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
267         public static native long CResult_BlindedPayInfoDecodeErrorZ_get_ok(long owner);
268         // struct LDKDecodeError CResult_BlindedPayInfoDecodeErrorZ_get_err(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
269         public static native long CResult_BlindedPayInfoDecodeErrorZ_get_err(long owner);
270         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
271         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
272         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
273         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
274         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
275         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
276         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
277         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
278         public static class LDKSpendableOutputDescriptor {
279                 private LDKSpendableOutputDescriptor() {}
280                 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
281                         public long outpoint;
282                         public long output;
283                         StaticOutput(long outpoint, long output) { this.outpoint = outpoint; this.output = output; }
284                 }
285                 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
286                         public long delayed_payment_output;
287                         DelayedPaymentOutput(long delayed_payment_output) { this.delayed_payment_output = delayed_payment_output; }
288                 }
289                 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
290                         public long static_payment_output;
291                         StaticPaymentOutput(long static_payment_output) { this.static_payment_output = static_payment_output; }
292                 }
293                 static native void init();
294         }
295         static { LDKSpendableOutputDescriptor.init(); }
296         public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
297         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
298         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long owner);
299         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
300         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long owner);
301         public static class LDKCOption_u32Z {
302                 private LDKCOption_u32Z() {}
303                 public final static class Some extends LDKCOption_u32Z {
304                         public int some;
305                         Some(int some) { this.some = some; }
306                 }
307                 public final static class None extends LDKCOption_u32Z {
308                         None() { }
309                 }
310                 static native void init();
311         }
312         static { LDKCOption_u32Z.init(); }
313         public static native LDKCOption_u32Z LDKCOption_u32Z_ref_from_ptr(long ptr);
314         // struct LDKCVec_u8Z C2Tuple_CVec_u8ZusizeZ_get_a(LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR owner);
315         public static native byte[] C2Tuple_CVec_u8ZusizeZ_get_a(long owner);
316         // uintptr_t C2Tuple_CVec_u8ZusizeZ_get_b(LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR owner);
317         public static native long C2Tuple_CVec_u8ZusizeZ_get_b(long owner);
318         // struct LDKC2Tuple_CVec_u8ZusizeZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_get_ok(LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR owner);
319         public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_get_ok(long owner);
320         // void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_get_err(LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR owner);
321         public static native void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_get_err(long owner);
322         // struct LDKChannelDerivationParameters CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner);
323         public static native long CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(long owner);
324         // struct LDKDecodeError CResult_ChannelDerivationParametersDecodeErrorZ_get_err(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner);
325         public static native long CResult_ChannelDerivationParametersDecodeErrorZ_get_err(long owner);
326         // struct LDKHTLCDescriptor CResult_HTLCDescriptorDecodeErrorZ_get_ok(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner);
327         public static native long CResult_HTLCDescriptorDecodeErrorZ_get_ok(long owner);
328         // struct LDKDecodeError CResult_HTLCDescriptorDecodeErrorZ_get_err(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner);
329         public static native long CResult_HTLCDescriptorDecodeErrorZ_get_err(long owner);
330         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
331         public static native void CResult_NoneNoneZ_get_ok(long owner);
332         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
333         public static native void CResult_NoneNoneZ_get_err(long owner);
334         // struct LDKECDSASignature C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner);
335         public static native byte[] C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(long owner);
336         // struct LDKCVec_ECDSASignatureZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner);
337         public static native byte[][] C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(long owner);
338         // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner);
339         public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(long owner);
340         // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner);
341         public static native void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(long owner);
342         // struct LDKECDSASignature CResult_ECDSASignatureNoneZ_get_ok(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner);
343         public static native byte[] CResult_ECDSASignatureNoneZ_get_ok(long owner);
344         // void CResult_ECDSASignatureNoneZ_get_err(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner);
345         public static native void CResult_ECDSASignatureNoneZ_get_err(long owner);
346         // struct LDKPublicKey CResult_PublicKeyNoneZ_get_ok(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
347         public static native byte[] CResult_PublicKeyNoneZ_get_ok(long owner);
348         // void CResult_PublicKeyNoneZ_get_err(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
349         public static native void CResult_PublicKeyNoneZ_get_err(long owner);
350         public static class LDKCOption_BigEndianScalarZ {
351                 private LDKCOption_BigEndianScalarZ() {}
352                 public final static class Some extends LDKCOption_BigEndianScalarZ {
353                         public long some;
354                         Some(long some) { this.some = some; }
355                 }
356                 public final static class None extends LDKCOption_BigEndianScalarZ {
357                         None() { }
358                 }
359                 static native void init();
360         }
361         static { LDKCOption_BigEndianScalarZ.init(); }
362         public static native LDKCOption_BigEndianScalarZ LDKCOption_BigEndianScalarZ_ref_from_ptr(long ptr);
363         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
364         public static native byte[] CResult_RecoverableSignatureNoneZ_get_ok(long owner);
365         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
366         public static native void CResult_RecoverableSignatureNoneZ_get_err(long owner);
367         // struct LDKSchnorrSignature CResult_SchnorrSignatureNoneZ_get_ok(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner);
368         public static native byte[] CResult_SchnorrSignatureNoneZ_get_ok(long owner);
369         // void CResult_SchnorrSignatureNoneZ_get_err(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner);
370         public static native void CResult_SchnorrSignatureNoneZ_get_err(long owner);
371         public interface LDKChannelSigner {
372                  byte[] get_per_commitment_point(long idx);
373                  byte[] release_commitment_secret(long idx);
374                  long validate_holder_commitment(long holder_tx, byte[][] preimages);
375                  byte[] channel_keys_id();
376                  void provide_channel_parameters(long channel_parameters);
377         }
378         public static native long LDKChannelSigner_new(LDKChannelSigner impl, long pubkeys);
379         // LDKPublicKey ChannelSigner_get_per_commitment_point LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
380         public static native byte[] ChannelSigner_get_per_commitment_point(long this_arg, long idx);
381         // LDKThirtyTwoBytes ChannelSigner_release_commitment_secret LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
382         public static native byte[] ChannelSigner_release_commitment_secret(long this_arg, long idx);
383         // LDKCResult_NoneNoneZ ChannelSigner_validate_holder_commitment LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_ThirtyTwoBytesZ preimages
384         public static native long ChannelSigner_validate_holder_commitment(long this_arg, long holder_tx, byte[][] preimages);
385         // LDKThirtyTwoBytes ChannelSigner_channel_keys_id LDKChannelSigner *NONNULL_PTR this_arg
386         public static native byte[] ChannelSigner_channel_keys_id(long this_arg);
387         // void ChannelSigner_provide_channel_parameters LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
388         public static native void ChannelSigner_provide_channel_parameters(long this_arg, long channel_parameters);
389         // LDKChannelPublicKeys ChannelSigner_get_pubkeys LDKChannelSigner *NONNULL_PTR this_arg
390         public static native long ChannelSigner_get_pubkeys(long this_arg);
391         public interface LDKEcdsaChannelSigner {
392                  long sign_counterparty_commitment(long commitment_tx, byte[][] preimages);
393                  long validate_counterparty_revocation(long idx, byte[] secret);
394                  long sign_holder_commitment(long commitment_tx);
395                  long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
396                  long sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
397                  long sign_holder_htlc_transaction(byte[] htlc_tx, long input, long htlc_descriptor);
398                  long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
399                  long sign_closing_transaction(long closing_tx);
400                  long sign_holder_anchor_input(byte[] anchor_tx, long input);
401                  long sign_channel_announcement_with_funding_key(long msg);
402         }
403         public static native long LDKEcdsaChannelSigner_new(LDKEcdsaChannelSigner impl, LDKChannelSigner ChannelSigner, long pubkeys);
404         public static native long LDKEcdsaChannelSigner_get_ChannelSigner(long arg);
405         // LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ EcdsaChannelSigner_sign_counterparty_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_ThirtyTwoBytesZ preimages
406         public static native long EcdsaChannelSigner_sign_counterparty_commitment(long this_arg, long commitment_tx, byte[][] preimages);
407         // LDKCResult_NoneNoneZ EcdsaChannelSigner_validate_counterparty_revocation LDKEcdsaChannelSigner *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
408         public static native long EcdsaChannelSigner_validate_counterparty_revocation(long this_arg, long idx, byte[] secret);
409         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
410         public static native long EcdsaChannelSigner_sign_holder_commitment(long this_arg, long commitment_tx);
411         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_output LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
412         public static native long EcdsaChannelSigner_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
413         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_htlc LDKEcdsaChannelSigner *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
414         public static native long EcdsaChannelSigner_sign_justice_revoked_htlc(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
415         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor
416         public static native long EcdsaChannelSigner_sign_holder_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long htlc_descriptor);
417         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_counterparty_htlc_transaction LDKEcdsaChannelSigner *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
418         public static native long EcdsaChannelSigner_sign_counterparty_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
419         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_closing_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
420         public static native long EcdsaChannelSigner_sign_closing_transaction(long this_arg, long closing_tx);
421         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_anchor_input LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction anchor_tx, uintptr_t input
422         public static native long EcdsaChannelSigner_sign_holder_anchor_input(long this_arg, byte[] anchor_tx, long input);
423         // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_channel_announcement_with_funding_key LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
424         public static native long EcdsaChannelSigner_sign_channel_announcement_with_funding_key(long this_arg, long msg);
425         public interface LDKWriteableEcdsaChannelSigner {
426                  byte[] write();
427         }
428         public static native long LDKWriteableEcdsaChannelSigner_new(LDKWriteableEcdsaChannelSigner impl, LDKEcdsaChannelSigner EcdsaChannelSigner, LDKChannelSigner ChannelSigner, long pubkeys);
429         public static native long LDKWriteableEcdsaChannelSigner_get_EcdsaChannelSigner(long arg);
430         public static native long LDKWriteableEcdsaChannelSigner_get_ChannelSigner(long arg);
431         // LDKCVec_u8Z WriteableEcdsaChannelSigner_write LDKWriteableEcdsaChannelSigner *NONNULL_PTR this_arg
432         public static native byte[] WriteableEcdsaChannelSigner_write(long this_arg);
433         // struct LDKWriteableEcdsaChannelSigner CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
434         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(long owner);
435         // struct LDKDecodeError CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
436         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(long owner);
437         // struct LDKCVec_u8Z CResult_CVec_u8ZNoneZ_get_ok(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner);
438         public static native byte[] CResult_CVec_u8ZNoneZ_get_ok(long owner);
439         // void CResult_CVec_u8ZNoneZ_get_err(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner);
440         public static native void CResult_CVec_u8ZNoneZ_get_err(long owner);
441         // struct LDKShutdownScript CResult_ShutdownScriptNoneZ_get_ok(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
442         public static native long CResult_ShutdownScriptNoneZ_get_ok(long owner);
443         // void CResult_ShutdownScriptNoneZ_get_err(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
444         public static native void CResult_ShutdownScriptNoneZ_get_err(long owner);
445         public static class LDKCOption_u16Z {
446                 private LDKCOption_u16Z() {}
447                 public final static class Some extends LDKCOption_u16Z {
448                         public short some;
449                         Some(short some) { this.some = some; }
450                 }
451                 public final static class None extends LDKCOption_u16Z {
452                         None() { }
453                 }
454                 static native void init();
455         }
456         static { LDKCOption_u16Z.init(); }
457         public static native LDKCOption_u16Z LDKCOption_u16Z_ref_from_ptr(long ptr);
458         public static class LDKCOption_boolZ {
459                 private LDKCOption_boolZ() {}
460                 public final static class Some extends LDKCOption_boolZ {
461                         public boolean some;
462                         Some(boolean some) { this.some = some; }
463                 }
464                 public final static class None extends LDKCOption_boolZ {
465                         None() { }
466                 }
467                 static native void init();
468         }
469         static { LDKCOption_boolZ.init(); }
470         public static native LDKCOption_boolZ LDKCOption_boolZ_ref_from_ptr(long ptr);
471         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
472         public static native byte[][] CResult_CVec_CVec_u8ZZNoneZ_get_ok(long owner);
473         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
474         public static native void CResult_CVec_CVec_u8ZZNoneZ_get_err(long owner);
475         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
476         public static native long CResult_InMemorySignerDecodeErrorZ_get_ok(long owner);
477         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
478         public static native long CResult_InMemorySignerDecodeErrorZ_get_err(long owner);
479         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
480         public static native byte[] CResult_TransactionNoneZ_get_ok(long owner);
481         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
482         public static native void CResult_TransactionNoneZ_get_err(long owner);
483         public interface LDKScoreLookUp {
484                  long channel_penalty_msat(long short_channel_id, long source, long target, long usage, long score_params);
485         }
486         public static native long LDKScoreLookUp_new(LDKScoreLookUp impl);
487         // uint64_t ScoreLookUp_channel_penalty_msat LDKScoreLookUp *NONNULL_PTR this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params
488         public static native long ScoreLookUp_channel_penalty_msat(long this_arg, long short_channel_id, long source, long target, long usage, long score_params);
489         public interface LDKScoreUpdate {
490                  void payment_path_failed(long path, long short_channel_id);
491                  void payment_path_successful(long path);
492                  void probe_failed(long path, long short_channel_id);
493                  void probe_successful(long path);
494         }
495         public static native long LDKScoreUpdate_new(LDKScoreUpdate impl);
496         // void ScoreUpdate_payment_path_failed LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id
497         public static native void ScoreUpdate_payment_path_failed(long this_arg, long path, long short_channel_id);
498         // void ScoreUpdate_payment_path_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path
499         public static native void ScoreUpdate_payment_path_successful(long this_arg, long path);
500         // void ScoreUpdate_probe_failed LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id
501         public static native void ScoreUpdate_probe_failed(long this_arg, long path, long short_channel_id);
502         // void ScoreUpdate_probe_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path
503         public static native void ScoreUpdate_probe_successful(long this_arg, long path);
504         public interface LDKLockableScore {
505                  long read_lock();
506                  long write_lock();
507         }
508         public static native long LDKLockableScore_new(LDKLockableScore impl);
509         // LDKScoreLookUp LockableScore_read_lock LDKLockableScore *NONNULL_PTR this_arg
510         public static native long LockableScore_read_lock(long this_arg);
511         // LDKScoreUpdate LockableScore_write_lock LDKLockableScore *NONNULL_PTR this_arg
512         public static native long LockableScore_write_lock(long this_arg);
513         public interface LDKWriteableScore {
514                  byte[] write();
515         }
516         public static native long LDKWriteableScore_new(LDKWriteableScore impl, LDKLockableScore LockableScore);
517         public static native long LDKWriteableScore_get_LockableScore(long arg);
518         // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg
519         public static native byte[] WriteableScore_write(long this_arg);
520         public static class LDKCOption_WriteableScoreZ {
521                 private LDKCOption_WriteableScoreZ() {}
522                 public final static class Some extends LDKCOption_WriteableScoreZ {
523                         public long some;
524                         Some(long some) { this.some = some; }
525                 }
526                 public final static class None extends LDKCOption_WriteableScoreZ {
527                         None() { }
528                 }
529                 static native void init();
530         }
531         static { LDKCOption_WriteableScoreZ.init(); }
532         public static native LDKCOption_WriteableScoreZ LDKCOption_WriteableScoreZ_ref_from_ptr(long ptr);
533         // void CResult_NoneIOErrorZ_get_ok(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner);
534         public static native void CResult_NoneIOErrorZ_get_ok(long owner);
535         // enum LDKIOError CResult_NoneIOErrorZ_get_err(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner);
536         public static native IOError CResult_NoneIOErrorZ_get_err(long owner);
537         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
538         public static native long CResult_RouteLightningErrorZ_get_ok(long owner);
539         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
540         public static native long CResult_RouteLightningErrorZ_get_err(long owner);
541         // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
542         public static native long CResult_InFlightHtlcsDecodeErrorZ_get_ok(long owner);
543         // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
544         public static native long CResult_InFlightHtlcsDecodeErrorZ_get_err(long owner);
545         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
546         public static native long CResult_RouteHopDecodeErrorZ_get_ok(long owner);
547         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
548         public static native long CResult_RouteHopDecodeErrorZ_get_err(long owner);
549         // struct LDKBlindedTail CResult_BlindedTailDecodeErrorZ_get_ok(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
550         public static native long CResult_BlindedTailDecodeErrorZ_get_ok(long owner);
551         // struct LDKDecodeError CResult_BlindedTailDecodeErrorZ_get_err(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
552         public static native long CResult_BlindedTailDecodeErrorZ_get_err(long owner);
553         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
554         public static native long CResult_RouteDecodeErrorZ_get_ok(long owner);
555         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
556         public static native long CResult_RouteDecodeErrorZ_get_err(long owner);
557         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
558         public static native long CResult_RouteParametersDecodeErrorZ_get_ok(long owner);
559         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
560         public static native long CResult_RouteParametersDecodeErrorZ_get_err(long owner);
561         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
562         public static native long CResult_PaymentParametersDecodeErrorZ_get_ok(long owner);
563         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
564         public static native long CResult_PaymentParametersDecodeErrorZ_get_err(long owner);
565         // struct LDKBlindedPayInfo C2Tuple_BlindedPayInfoBlindedPathZ_get_a(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
566         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_a(long owner);
567         // struct LDKBlindedPath C2Tuple_BlindedPayInfoBlindedPathZ_get_b(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
568         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_b(long owner);
569         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
570         public static native long CResult_RouteHintDecodeErrorZ_get_ok(long owner);
571         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
572         public static native long CResult_RouteHintDecodeErrorZ_get_err(long owner);
573         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
574         public static native long CResult_RouteHintHopDecodeErrorZ_get_ok(long owner);
575         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
576         public static native long CResult_RouteHintHopDecodeErrorZ_get_err(long owner);
577         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
578         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(long owner);
579         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
580         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_err(long owner);
581         // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
582         public static native long C2Tuple_u64u64Z_get_a(long owner);
583         // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
584         public static native long C2Tuple_u64u64Z_get_b(long owner);
585         public static class LDKCOption_C2Tuple_u64u64ZZ {
586                 private LDKCOption_C2Tuple_u64u64ZZ() {}
587                 public final static class Some extends LDKCOption_C2Tuple_u64u64ZZ {
588                         public long some;
589                         Some(long some) { this.some = some; }
590                 }
591                 public final static class None extends LDKCOption_C2Tuple_u64u64ZZ {
592                         None() { }
593                 }
594                 static native void init();
595         }
596         static { LDKCOption_C2Tuple_u64u64ZZ.init(); }
597         public static native LDKCOption_C2Tuple_u64u64ZZ LDKCOption_C2Tuple_u64u64ZZ_ref_from_ptr(long ptr);
598         // struct LDKThirtyTwoU16s C2Tuple_Z_get_a(LDKC2Tuple_Z *NONNULL_PTR owner);
599         public static native short[] C2Tuple_Z_get_a(long owner);
600         // struct LDKThirtyTwoU16s C2Tuple_Z_get_b(LDKC2Tuple_Z *NONNULL_PTR owner);
601         public static native short[] C2Tuple_Z_get_b(long owner);
602         // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_a(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner);
603         public static native short[] C2Tuple__u1632_u1632Z_get_a(long owner);
604         // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_b(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner);
605         public static native short[] C2Tuple__u1632_u1632Z_get_b(long owner);
606         public static class LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
607                 private LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ() {}
608                 public final static class Some extends LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
609                         public long some;
610                         Some(long some) { this.some = some; }
611                 }
612                 public final static class None extends LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
613                         None() { }
614                 }
615                 static native void init();
616         }
617         static { LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.init(); }
618         public static native LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_ref_from_ptr(long ptr);
619         public static class LDKCOption_f64Z {
620                 private LDKCOption_f64Z() {}
621                 public final static class Some extends LDKCOption_f64Z {
622                         public double some;
623                         Some(double some) { this.some = some; }
624                 }
625                 public final static class None extends LDKCOption_f64Z {
626                         None() { }
627                 }
628                 static native void init();
629         }
630         static { LDKCOption_f64Z.init(); }
631         public static native LDKCOption_f64Z LDKCOption_f64Z_ref_from_ptr(long ptr);
632         public interface LDKLogger {
633                  void log(long record);
634         }
635         public static native long LDKLogger_new(LDKLogger impl);
636         // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
637         public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_ok(long owner);
638         // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
639         public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_err(long owner);
640         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
641         public static native long C2Tuple_usizeTransactionZ_get_a(long owner);
642         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
643         public static native byte[] C2Tuple_usizeTransactionZ_get_b(long owner);
644         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
645         public static native byte[] C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_get_a(long owner);
646         // struct LDKCOption_ThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
647         public static native long C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_get_b(long owner);
648         // enum LDKChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner);
649         public static native ChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(long owner);
650         // void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner);
651         public static native void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(long owner);
652         public static class LDKMonitorEvent {
653                 private LDKMonitorEvent() {}
654                 public final static class HTLCEvent extends LDKMonitorEvent {
655                         public long htlc_event;
656                         HTLCEvent(long htlc_event) { this.htlc_event = htlc_event; }
657                 }
658                 public final static class HolderForceClosed extends LDKMonitorEvent {
659                         public long holder_force_closed;
660                         HolderForceClosed(long holder_force_closed) { this.holder_force_closed = holder_force_closed; }
661                 }
662                 public final static class Completed extends LDKMonitorEvent {
663                         public long funding_txo;
664                         public long monitor_update_id;
665                         Completed(long funding_txo, long monitor_update_id) { this.funding_txo = funding_txo; this.monitor_update_id = monitor_update_id; }
666                 }
667                 static native void init();
668         }
669         static { LDKMonitorEvent.init(); }
670         public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
671         // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
672         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(long owner);
673         // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
674         public static native long[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(long owner);
675         // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
676         public static native byte[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(long owner);
677         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
678         public static native long CResult_InitFeaturesDecodeErrorZ_get_ok(long owner);
679         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
680         public static native long CResult_InitFeaturesDecodeErrorZ_get_err(long owner);
681         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
682         public static native long CResult_ChannelFeaturesDecodeErrorZ_get_ok(long owner);
683         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
684         public static native long CResult_ChannelFeaturesDecodeErrorZ_get_err(long owner);
685         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
686         public static native long CResult_NodeFeaturesDecodeErrorZ_get_ok(long owner);
687         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
688         public static native long CResult_NodeFeaturesDecodeErrorZ_get_err(long owner);
689         // struct LDKBolt11InvoiceFeatures CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
690         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
691         // struct LDKDecodeError CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
692         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(long owner);
693         // struct LDKBolt12InvoiceFeatures CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
694         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
695         // struct LDKDecodeError CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
696         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(long owner);
697         // struct LDKBlindedHopFeatures CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
698         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(long owner);
699         // struct LDKDecodeError CResult_BlindedHopFeaturesDecodeErrorZ_get_err(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
700         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_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 LDKOffer CResult_OfferBolt12ParseErrorZ_get_ok(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
706         public static native long CResult_OfferBolt12ParseErrorZ_get_ok(long owner);
707         // struct LDKBolt12ParseError CResult_OfferBolt12ParseErrorZ_get_err(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
708         public static native long CResult_OfferBolt12ParseErrorZ_get_err(long owner);
709         // struct LDKPublicKey CResult_PublicKeySecp256k1ErrorZ_get_ok(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner);
710         public static native byte[] CResult_PublicKeySecp256k1ErrorZ_get_ok(long owner);
711         // enum LDKSecp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner);
712         public static native Secp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(long owner);
713         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
714         public static native long CResult_NodeIdDecodeErrorZ_get_ok(long owner);
715         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
716         public static native long CResult_NodeIdDecodeErrorZ_get_err(long owner);
717         public static class LDKNetworkUpdate {
718                 private LDKNetworkUpdate() {}
719                 public final static class ChannelUpdateMessage extends LDKNetworkUpdate {
720                         public long msg;
721                         ChannelUpdateMessage(long msg) { this.msg = msg; }
722                 }
723                 public final static class ChannelFailure extends LDKNetworkUpdate {
724                         public long short_channel_id;
725                         public boolean is_permanent;
726                         ChannelFailure(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
727                 }
728                 public final static class NodeFailure extends LDKNetworkUpdate {
729                         public byte[] node_id;
730                         public boolean is_permanent;
731                         NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
732                 }
733                 static native void init();
734         }
735         static { LDKNetworkUpdate.init(); }
736         public static native LDKNetworkUpdate LDKNetworkUpdate_ref_from_ptr(long ptr);
737         public static class LDKCOption_NetworkUpdateZ {
738                 private LDKCOption_NetworkUpdateZ() {}
739                 public final static class Some extends LDKCOption_NetworkUpdateZ {
740                         public long some;
741                         Some(long some) { this.some = some; }
742                 }
743                 public final static class None extends LDKCOption_NetworkUpdateZ {
744                         None() { }
745                 }
746                 static native void init();
747         }
748         static { LDKCOption_NetworkUpdateZ.init(); }
749         public static native LDKCOption_NetworkUpdateZ LDKCOption_NetworkUpdateZ_ref_from_ptr(long ptr);
750         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
751         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(long owner);
752         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
753         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(long owner);
754         // struct LDKTxOut CResult_TxOutUtxoLookupErrorZ_get_ok(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
755         public static native long CResult_TxOutUtxoLookupErrorZ_get_ok(long owner);
756         // enum LDKUtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
757         public static native UtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(long owner);
758         public static class LDKUtxoResult {
759                 private LDKUtxoResult() {}
760                 public final static class Sync extends LDKUtxoResult {
761                         public long sync;
762                         Sync(long sync) { this.sync = sync; }
763                 }
764                 public final static class Async extends LDKUtxoResult {
765                         public long async;
766                         Async(long async) { this.async = async; }
767                 }
768                 static native void init();
769         }
770         static { LDKUtxoResult.init(); }
771         public static native LDKUtxoResult LDKUtxoResult_ref_from_ptr(long ptr);
772         public interface LDKUtxoLookup {
773                  long get_utxo(byte[] chain_hash, long short_channel_id);
774         }
775         public static native long LDKUtxoLookup_new(LDKUtxoLookup impl);
776         // LDKUtxoResult UtxoLookup_get_utxo LDKUtxoLookup *NONNULL_PTR this_arg, const uint8_t (*chain_hash)[32], uint64_t short_channel_id
777         public static native long UtxoLookup_get_utxo(long this_arg, byte[] chain_hash, long short_channel_id);
778         public static class LDKCOption_UtxoLookupZ {
779                 private LDKCOption_UtxoLookupZ() {}
780                 public final static class Some extends LDKCOption_UtxoLookupZ {
781                         public long some;
782                         Some(long some) { this.some = some; }
783                 }
784                 public final static class None extends LDKCOption_UtxoLookupZ {
785                         None() { }
786                 }
787                 static native void init();
788         }
789         static { LDKCOption_UtxoLookupZ.init(); }
790         public static native LDKCOption_UtxoLookupZ LDKCOption_UtxoLookupZ_ref_from_ptr(long ptr);
791         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
792         public static native void CResult_NoneLightningErrorZ_get_ok(long owner);
793         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
794         public static native long CResult_NoneLightningErrorZ_get_err(long owner);
795         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
796         public static native boolean CResult_boolLightningErrorZ_get_ok(long owner);
797         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
798         public static native long CResult_boolLightningErrorZ_get_err(long owner);
799         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
800         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long owner);
801         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
802         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long owner);
803         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
804         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long owner);
805         public static class LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
806                 private LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ() {}
807                 public final static class Some extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
808                         public long some;
809                         Some(long some) { this.some = some; }
810                 }
811                 public final static class None extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
812                         None() { }
813                 }
814                 static native void init();
815         }
816         static { LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.init(); }
817         public static native LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ref_from_ptr(long ptr);
818         public static class LDKErrorAction {
819                 private LDKErrorAction() {}
820                 public final static class DisconnectPeer extends LDKErrorAction {
821                         public long msg;
822                         DisconnectPeer(long msg) { this.msg = msg; }
823                 }
824                 public final static class DisconnectPeerWithWarning extends LDKErrorAction {
825                         public long msg;
826                         DisconnectPeerWithWarning(long msg) { this.msg = msg; }
827                 }
828                 public final static class IgnoreError extends LDKErrorAction {
829                         IgnoreError() { }
830                 }
831                 public final static class IgnoreAndLog extends LDKErrorAction {
832                         public org.ldk.enums.Level ignore_and_log;
833                         IgnoreAndLog(org.ldk.enums.Level ignore_and_log) { this.ignore_and_log = ignore_and_log; }
834                 }
835                 public final static class IgnoreDuplicateGossip extends LDKErrorAction {
836                         IgnoreDuplicateGossip() { }
837                 }
838                 public final static class SendErrorMessage extends LDKErrorAction {
839                         public long msg;
840                         SendErrorMessage(long msg) { this.msg = msg; }
841                 }
842                 public final static class SendWarningMessage extends LDKErrorAction {
843                         public long msg;
844                         public org.ldk.enums.Level log_level;
845                         SendWarningMessage(long msg, org.ldk.enums.Level log_level) { this.msg = msg; this.log_level = log_level; }
846                 }
847                 static native void init();
848         }
849         static { LDKErrorAction.init(); }
850         public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
851         public static class LDKMessageSendEvent {
852                 private LDKMessageSendEvent() {}
853                 public final static class SendAcceptChannel extends LDKMessageSendEvent {
854                         public byte[] node_id;
855                         public long msg;
856                         SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
857                 }
858                 public final static class SendAcceptChannelV2 extends LDKMessageSendEvent {
859                         public byte[] node_id;
860                         public long msg;
861                         SendAcceptChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
862                 }
863                 public final static class SendOpenChannel extends LDKMessageSendEvent {
864                         public byte[] node_id;
865                         public long msg;
866                         SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
867                 }
868                 public final static class SendOpenChannelV2 extends LDKMessageSendEvent {
869                         public byte[] node_id;
870                         public long msg;
871                         SendOpenChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
872                 }
873                 public final static class SendFundingCreated extends LDKMessageSendEvent {
874                         public byte[] node_id;
875                         public long msg;
876                         SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
877                 }
878                 public final static class SendFundingSigned extends LDKMessageSendEvent {
879                         public byte[] node_id;
880                         public long msg;
881                         SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
882                 }
883                 public final static class SendTxAddInput extends LDKMessageSendEvent {
884                         public byte[] node_id;
885                         public long msg;
886                         SendTxAddInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
887                 }
888                 public final static class SendTxAddOutput extends LDKMessageSendEvent {
889                         public byte[] node_id;
890                         public long msg;
891                         SendTxAddOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
892                 }
893                 public final static class SendTxRemoveInput extends LDKMessageSendEvent {
894                         public byte[] node_id;
895                         public long msg;
896                         SendTxRemoveInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
897                 }
898                 public final static class SendTxRemoveOutput extends LDKMessageSendEvent {
899                         public byte[] node_id;
900                         public long msg;
901                         SendTxRemoveOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
902                 }
903                 public final static class SendTxComplete extends LDKMessageSendEvent {
904                         public byte[] node_id;
905                         public long msg;
906                         SendTxComplete(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
907                 }
908                 public final static class SendTxSignatures extends LDKMessageSendEvent {
909                         public byte[] node_id;
910                         public long msg;
911                         SendTxSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
912                 }
913                 public final static class SendTxInitRbf extends LDKMessageSendEvent {
914                         public byte[] node_id;
915                         public long msg;
916                         SendTxInitRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
917                 }
918                 public final static class SendTxAckRbf extends LDKMessageSendEvent {
919                         public byte[] node_id;
920                         public long msg;
921                         SendTxAckRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
922                 }
923                 public final static class SendTxAbort extends LDKMessageSendEvent {
924                         public byte[] node_id;
925                         public long msg;
926                         SendTxAbort(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
927                 }
928                 public final static class SendChannelReady extends LDKMessageSendEvent {
929                         public byte[] node_id;
930                         public long msg;
931                         SendChannelReady(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
932                 }
933                 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
934                         public byte[] node_id;
935                         public long msg;
936                         SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
937                 }
938                 public final static class UpdateHTLCs extends LDKMessageSendEvent {
939                         public byte[] node_id;
940                         public long updates;
941                         UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
942                 }
943                 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
944                         public byte[] node_id;
945                         public long msg;
946                         SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
947                 }
948                 public final static class SendClosingSigned extends LDKMessageSendEvent {
949                         public byte[] node_id;
950                         public long msg;
951                         SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
952                 }
953                 public final static class SendShutdown extends LDKMessageSendEvent {
954                         public byte[] node_id;
955                         public long msg;
956                         SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
957                 }
958                 public final static class SendChannelReestablish extends LDKMessageSendEvent {
959                         public byte[] node_id;
960                         public long msg;
961                         SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
962                 }
963                 public final static class SendChannelAnnouncement extends LDKMessageSendEvent {
964                         public byte[] node_id;
965                         public long msg;
966                         public long update_msg;
967                         SendChannelAnnouncement(byte[] node_id, long msg, long update_msg) { this.node_id = node_id; this.msg = msg; this.update_msg = update_msg; }
968                 }
969                 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
970                         public long msg;
971                         public long update_msg;
972                         BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
973                 }
974                 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
975                         public long msg;
976                         BroadcastChannelUpdate(long msg) { this.msg = msg; }
977                 }
978                 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
979                         public long msg;
980                         BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
981                 }
982                 public final static class SendChannelUpdate extends LDKMessageSendEvent {
983                         public byte[] node_id;
984                         public long msg;
985                         SendChannelUpdate(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
986                 }
987                 public final static class HandleError extends LDKMessageSendEvent {
988                         public byte[] node_id;
989                         public long action;
990                         HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
991                 }
992                 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
993                         public byte[] node_id;
994                         public long msg;
995                         SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
996                 }
997                 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
998                         public byte[] node_id;
999                         public long msg;
1000                         SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1001                 }
1002                 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
1003                         public byte[] node_id;
1004                         public long msg;
1005                         SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1006                 }
1007                 public final static class SendGossipTimestampFilter extends LDKMessageSendEvent {
1008                         public byte[] node_id;
1009                         public long msg;
1010                         SendGossipTimestampFilter(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1011                 }
1012                 static native void init();
1013         }
1014         static { LDKMessageSendEvent.init(); }
1015         public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
1016         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1017         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(long owner);
1018         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1019         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_err(long owner);
1020         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1021         public static native long CResult_ChannelInfoDecodeErrorZ_get_ok(long owner);
1022         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1023         public static native long CResult_ChannelInfoDecodeErrorZ_get_err(long owner);
1024         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1025         public static native long CResult_RoutingFeesDecodeErrorZ_get_ok(long owner);
1026         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1027         public static native long CResult_RoutingFeesDecodeErrorZ_get_err(long owner);
1028         public static class LDKSocketAddress {
1029                 private LDKSocketAddress() {}
1030                 public final static class TcpIpV4 extends LDKSocketAddress {
1031                         public byte[] addr;
1032                         public short port;
1033                         TcpIpV4(byte[] addr, short port) { this.addr = addr; this.port = port; }
1034                 }
1035                 public final static class TcpIpV6 extends LDKSocketAddress {
1036                         public byte[] addr;
1037                         public short port;
1038                         TcpIpV6(byte[] addr, short port) { this.addr = addr; this.port = port; }
1039                 }
1040                 public final static class OnionV2 extends LDKSocketAddress {
1041                         public byte[] onion_v2;
1042                         OnionV2(byte[] onion_v2) { this.onion_v2 = onion_v2; }
1043                 }
1044                 public final static class OnionV3 extends LDKSocketAddress {
1045                         public byte[] ed25519_pubkey;
1046                         public short checksum;
1047                         public byte version;
1048                         public short port;
1049                         OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
1050                 }
1051                 public final static class Hostname extends LDKSocketAddress {
1052                         public long hostname;
1053                         public short port;
1054                         Hostname(long hostname, short port) { this.hostname = hostname; this.port = port; }
1055                 }
1056                 static native void init();
1057         }
1058         static { LDKSocketAddress.init(); }
1059         public static native LDKSocketAddress LDKSocketAddress_ref_from_ptr(long ptr);
1060         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1061         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long owner);
1062         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1063         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long owner);
1064         // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1065         public static native long CResult_NodeAliasDecodeErrorZ_get_ok(long owner);
1066         // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1067         public static native long CResult_NodeAliasDecodeErrorZ_get_err(long owner);
1068         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1069         public static native long CResult_NodeInfoDecodeErrorZ_get_ok(long owner);
1070         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1071         public static native long CResult_NodeInfoDecodeErrorZ_get_err(long owner);
1072         // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1073         public static native long CResult_NetworkGraphDecodeErrorZ_get_ok(long owner);
1074         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1075         public static native long CResult_NetworkGraphDecodeErrorZ_get_err(long owner);
1076         public static class LDKCOption_CVec_SocketAddressZZ {
1077                 private LDKCOption_CVec_SocketAddressZZ() {}
1078                 public final static class Some extends LDKCOption_CVec_SocketAddressZZ {
1079                         public long[] some;
1080                         Some(long[] some) { this.some = some; }
1081                 }
1082                 public final static class None extends LDKCOption_CVec_SocketAddressZZ {
1083                         None() { }
1084                 }
1085                 static native void init();
1086         }
1087         static { LDKCOption_CVec_SocketAddressZZ.init(); }
1088         public static native LDKCOption_CVec_SocketAddressZZ LDKCOption_CVec_SocketAddressZZ_ref_from_ptr(long ptr);
1089         public static class LDKCOption_TxOutZ {
1090                 private LDKCOption_TxOutZ() {}
1091                 public final static class Some extends LDKCOption_TxOutZ {
1092                         public long some;
1093                         Some(long some) { this.some = some; }
1094                 }
1095                 public final static class None extends LDKCOption_TxOutZ {
1096                         None() { }
1097                 }
1098                 static native void init();
1099         }
1100         static { LDKCOption_TxOutZ.init(); }
1101         public static native LDKCOption_TxOutZ LDKCOption_TxOutZ_ref_from_ptr(long ptr);
1102         // struct LDKCoinSelection CResult_CoinSelectionNoneZ_get_ok(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1103         public static native long CResult_CoinSelectionNoneZ_get_ok(long owner);
1104         // void CResult_CoinSelectionNoneZ_get_err(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1105         public static native void CResult_CoinSelectionNoneZ_get_err(long owner);
1106         // struct LDKCVec_UtxoZ CResult_CVec_UtxoZNoneZ_get_ok(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1107         public static native long[] CResult_CVec_UtxoZNoneZ_get_ok(long owner);
1108         // void CResult_CVec_UtxoZNoneZ_get_err(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1109         public static native void CResult_CVec_UtxoZNoneZ_get_err(long owner);
1110         // uint64_t C2Tuple_u64u16Z_get_a(LDKC2Tuple_u64u16Z *NONNULL_PTR owner);
1111         public static native long C2Tuple_u64u16Z_get_a(long owner);
1112         // uint16_t C2Tuple_u64u16Z_get_b(LDKC2Tuple_u64u16Z *NONNULL_PTR owner);
1113         public static native short C2Tuple_u64u16Z_get_b(long owner);
1114         public static class LDKCOption_C2Tuple_u64u16ZZ {
1115                 private LDKCOption_C2Tuple_u64u16ZZ() {}
1116                 public final static class Some extends LDKCOption_C2Tuple_u64u16ZZ {
1117                         public long some;
1118                         Some(long some) { this.some = some; }
1119                 }
1120                 public final static class None extends LDKCOption_C2Tuple_u64u16ZZ {
1121                         None() { }
1122                 }
1123                 static native void init();
1124         }
1125         static { LDKCOption_C2Tuple_u64u16ZZ.init(); }
1126         public static native LDKCOption_C2Tuple_u64u16ZZ LDKCOption_C2Tuple_u64u16ZZ_ref_from_ptr(long ptr);
1127         public static class LDKCOption_ChannelShutdownStateZ {
1128                 private LDKCOption_ChannelShutdownStateZ() {}
1129                 public final static class Some extends LDKCOption_ChannelShutdownStateZ {
1130                         public org.ldk.enums.ChannelShutdownState some;
1131                         Some(org.ldk.enums.ChannelShutdownState some) { this.some = some; }
1132                 }
1133                 public final static class None extends LDKCOption_ChannelShutdownStateZ {
1134                         None() { }
1135                 }
1136                 static native void init();
1137         }
1138         static { LDKCOption_ChannelShutdownStateZ.init(); }
1139         public static native LDKCOption_ChannelShutdownStateZ LDKCOption_ChannelShutdownStateZ_ref_from_ptr(long ptr);
1140         // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesAPIErrorZ_get_ok(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner);
1141         public static native byte[] CResult_ThirtyTwoBytesAPIErrorZ_get_ok(long owner);
1142         // struct LDKAPIError CResult_ThirtyTwoBytesAPIErrorZ_get_err(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner);
1143         public static native long CResult_ThirtyTwoBytesAPIErrorZ_get_err(long owner);
1144         public static class LDKRecentPaymentDetails {
1145                 private LDKRecentPaymentDetails() {}
1146                 public final static class AwaitingInvoice extends LDKRecentPaymentDetails {
1147                         public byte[] payment_id;
1148                         AwaitingInvoice(byte[] payment_id) { this.payment_id = payment_id; }
1149                 }
1150                 public final static class Pending extends LDKRecentPaymentDetails {
1151                         public byte[] payment_id;
1152                         public byte[] payment_hash;
1153                         public long total_msat;
1154                         Pending(byte[] payment_id, byte[] payment_hash, long total_msat) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.total_msat = total_msat; }
1155                 }
1156                 public final static class Fulfilled extends LDKRecentPaymentDetails {
1157                         public byte[] payment_id;
1158                         public long payment_hash;
1159                         Fulfilled(byte[] payment_id, long payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
1160                 }
1161                 public final static class Abandoned extends LDKRecentPaymentDetails {
1162                         public byte[] payment_id;
1163                         public byte[] payment_hash;
1164                         Abandoned(byte[] payment_id, byte[] payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
1165                 }
1166                 static native void init();
1167         }
1168         static { LDKRecentPaymentDetails.init(); }
1169         public static native LDKRecentPaymentDetails LDKRecentPaymentDetails_ref_from_ptr(long ptr);
1170         public static class LDKPaymentSendFailure {
1171                 private LDKPaymentSendFailure() {}
1172                 public final static class ParameterError extends LDKPaymentSendFailure {
1173                         public long parameter_error;
1174                         ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
1175                 }
1176                 public final static class PathParameterError extends LDKPaymentSendFailure {
1177                         public long[] path_parameter_error;
1178                         PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
1179                 }
1180                 public final static class AllFailedResendSafe extends LDKPaymentSendFailure {
1181                         public long[] all_failed_resend_safe;
1182                         AllFailedResendSafe(long[] all_failed_resend_safe) { this.all_failed_resend_safe = all_failed_resend_safe; }
1183                 }
1184                 public final static class DuplicatePayment extends LDKPaymentSendFailure {
1185                         DuplicatePayment() { }
1186                 }
1187                 public final static class PartialFailure extends LDKPaymentSendFailure {
1188                         public long[] results;
1189                         public long failed_paths_retry;
1190                         public byte[] payment_id;
1191                         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; }
1192                 }
1193                 static native void init();
1194         }
1195         static { LDKPaymentSendFailure.init(); }
1196         public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
1197         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1198         public static native void CResult_NonePaymentSendFailureZ_get_ok(long owner);
1199         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1200         public static native long CResult_NonePaymentSendFailureZ_get_err(long owner);
1201         // void CResult_NoneRetryableSendFailureZ_get_ok(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1202         public static native void CResult_NoneRetryableSendFailureZ_get_ok(long owner);
1203         // enum LDKRetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1204         public static native RetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(long owner);
1205         // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner);
1206         public static native byte[] CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(long owner);
1207         // struct LDKPaymentSendFailure CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner);
1208         public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(long owner);
1209         // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner);
1210         public static native byte[] CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(long owner);
1211         // enum LDKRetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner);
1212         public static native RetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(long owner);
1213         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner);
1214         public static native byte[] C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(long owner);
1215         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner);
1216         public static native byte[] C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(long owner);
1217         // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner);
1218         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(long owner);
1219         // struct LDKPaymentSendFailure CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner);
1220         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(long owner);
1221         public static class LDKProbeSendFailure {
1222                 private LDKProbeSendFailure() {}
1223                 public final static class RouteNotFound extends LDKProbeSendFailure {
1224                         RouteNotFound() { }
1225                 }
1226                 public final static class SendingFailed extends LDKProbeSendFailure {
1227                         public long sending_failed;
1228                         SendingFailed(long sending_failed) { this.sending_failed = sending_failed; }
1229                 }
1230                 static native void init();
1231         }
1232         static { LDKProbeSendFailure.init(); }
1233         public static native LDKProbeSendFailure LDKProbeSendFailure_ref_from_ptr(long ptr);
1234         // struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner);
1235         public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(long owner);
1236         // struct LDKProbeSendFailure CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner);
1237         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(long owner);
1238         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner);
1239         public static native byte[] C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(long owner);
1240         // struct LDKPublicKey C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner);
1241         public static native byte[] C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(long owner);
1242         public static class LDKCOption_StrZ {
1243                 private LDKCOption_StrZ() {}
1244                 public final static class Some extends LDKCOption_StrZ {
1245                         public java.lang.String some;
1246                         Some(java.lang.String some) { this.some = some; }
1247                 }
1248                 public final static class None extends LDKCOption_StrZ {
1249                         None() { }
1250                 }
1251                 static native void init();
1252         }
1253         static { LDKCOption_StrZ.init(); }
1254         public static native LDKCOption_StrZ LDKCOption_StrZ_ref_from_ptr(long ptr);
1255         // void CResult_NoneBolt12SemanticErrorZ_get_ok(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner);
1256         public static native void CResult_NoneBolt12SemanticErrorZ_get_ok(long owner);
1257         // enum LDKBolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner);
1258         public static native Bolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(long owner);
1259         // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner);
1260         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(long owner);
1261         // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner);
1262         public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(long owner);
1263         public static class LDKOffersMessage {
1264                 private LDKOffersMessage() {}
1265                 public final static class InvoiceRequest extends LDKOffersMessage {
1266                         public long invoice_request;
1267                         InvoiceRequest(long invoice_request) { this.invoice_request = invoice_request; }
1268                 }
1269                 public final static class Invoice extends LDKOffersMessage {
1270                         public long invoice;
1271                         Invoice(long invoice) { this.invoice = invoice; }
1272                 }
1273                 public final static class InvoiceError extends LDKOffersMessage {
1274                         public long invoice_error;
1275                         InvoiceError(long invoice_error) { this.invoice_error = invoice_error; }
1276                 }
1277                 static native void init();
1278         }
1279         static { LDKOffersMessage.init(); }
1280         public static native LDKOffersMessage LDKOffersMessage_ref_from_ptr(long ptr);
1281         public static class LDKCOption_OffersMessageZ {
1282                 private LDKCOption_OffersMessageZ() {}
1283                 public final static class Some extends LDKCOption_OffersMessageZ {
1284                         public long some;
1285                         Some(long some) { this.some = some; }
1286                 }
1287                 public final static class None extends LDKCOption_OffersMessageZ {
1288                         None() { }
1289                 }
1290                 static native void init();
1291         }
1292         static { LDKCOption_OffersMessageZ.init(); }
1293         public static native LDKCOption_OffersMessageZ LDKCOption_OffersMessageZ_ref_from_ptr(long ptr);
1294         public static class LDKDestination {
1295                 private LDKDestination() {}
1296                 public final static class Node extends LDKDestination {
1297                         public byte[] node;
1298                         Node(byte[] node) { this.node = node; }
1299                 }
1300                 public final static class BlindedPath extends LDKDestination {
1301                         public long blinded_path;
1302                         BlindedPath(long blinded_path) { this.blinded_path = blinded_path; }
1303                 }
1304                 static native void init();
1305         }
1306         static { LDKDestination.init(); }
1307         public static native LDKDestination LDKDestination_ref_from_ptr(long ptr);
1308         // struct LDKOffersMessage C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1309         public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(long owner);
1310         // struct LDKDestination C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1311         public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(long owner);
1312         // struct LDKBlindedPath C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1313         public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(long owner);
1314         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1315         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(long owner);
1316         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1317         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(long owner);
1318         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1319         public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_ok(long owner);
1320         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1321         public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_err(long owner);
1322         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1323         public static native long CResult_ChannelDetailsDecodeErrorZ_get_ok(long owner);
1324         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1325         public static native long CResult_ChannelDetailsDecodeErrorZ_get_err(long owner);
1326         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1327         public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_ok(long owner);
1328         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1329         public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_err(long owner);
1330         // enum LDKChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
1331         public static native ChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(long owner);
1332         // struct LDKDecodeError CResult_ChannelShutdownStateDecodeErrorZ_get_err(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
1333         public static native long CResult_ChannelShutdownStateDecodeErrorZ_get_err(long owner);
1334         public interface LDKWatch {
1335                  long watch_channel(long funding_txo, long monitor);
1336                  ChannelMonitorUpdateStatus update_channel(long funding_txo, long update);
1337                  long[] release_pending_monitor_events();
1338         }
1339         public static native long LDKWatch_new(LDKWatch impl);
1340         // LDKCResult_ChannelMonitorUpdateStatusNoneZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
1341         public static native long Watch_watch_channel(long this_arg, long funding_txo, long monitor);
1342         // LDKChannelMonitorUpdateStatus Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update
1343         public static native ChannelMonitorUpdateStatus Watch_update_channel(long this_arg, long funding_txo, long update);
1344         // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
1345         public static native long[] Watch_release_pending_monitor_events(long this_arg);
1346         public interface LDKBroadcasterInterface {
1347                  void broadcast_transactions(byte[][] txs);
1348         }
1349         public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
1350         // void BroadcasterInterface_broadcast_transactions LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKCVec_TransactionZ txs
1351         public static native void BroadcasterInterface_broadcast_transactions(long this_arg, byte[][] txs);
1352         public interface LDKEntropySource {
1353                  byte[] get_secure_random_bytes();
1354         }
1355         public static native long LDKEntropySource_new(LDKEntropySource impl);
1356         // LDKThirtyTwoBytes EntropySource_get_secure_random_bytes LDKEntropySource *NONNULL_PTR this_arg
1357         public static native byte[] EntropySource_get_secure_random_bytes(long this_arg);
1358         public static class LDKUnsignedGossipMessage {
1359                 private LDKUnsignedGossipMessage() {}
1360                 public final static class ChannelAnnouncement extends LDKUnsignedGossipMessage {
1361                         public long channel_announcement;
1362                         ChannelAnnouncement(long channel_announcement) { this.channel_announcement = channel_announcement; }
1363                 }
1364                 public final static class ChannelUpdate extends LDKUnsignedGossipMessage {
1365                         public long channel_update;
1366                         ChannelUpdate(long channel_update) { this.channel_update = channel_update; }
1367                 }
1368                 public final static class NodeAnnouncement extends LDKUnsignedGossipMessage {
1369                         public long node_announcement;
1370                         NodeAnnouncement(long node_announcement) { this.node_announcement = node_announcement; }
1371                 }
1372                 static native void init();
1373         }
1374         static { LDKUnsignedGossipMessage.init(); }
1375         public static native LDKUnsignedGossipMessage LDKUnsignedGossipMessage_ref_from_ptr(long ptr);
1376         public interface LDKNodeSigner {
1377                  byte[] get_inbound_payment_key_material();
1378                  long get_node_id(Recipient recipient);
1379                  long ecdh(Recipient recipient, byte[] other_key, long tweak);
1380                  long sign_invoice(byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1381                  long sign_bolt12_invoice_request(long invoice_request);
1382                  long sign_bolt12_invoice(long invoice);
1383                  long sign_gossip_message(long msg);
1384         }
1385         public static native long LDKNodeSigner_new(LDKNodeSigner impl);
1386         // LDKThirtyTwoBytes NodeSigner_get_inbound_payment_key_material LDKNodeSigner *NONNULL_PTR this_arg
1387         public static native byte[] NodeSigner_get_inbound_payment_key_material(long this_arg);
1388         // LDKCResult_PublicKeyNoneZ NodeSigner_get_node_id LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient
1389         public static native long NodeSigner_get_node_id(long this_arg, Recipient recipient);
1390         // LDKCResult_ThirtyTwoBytesNoneZ NodeSigner_ecdh LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_BigEndianScalarZ tweak
1391         public static native long NodeSigner_ecdh(long this_arg, Recipient recipient, byte[] other_key, long tweak);
1392         // LDKCResult_RecoverableSignatureNoneZ NodeSigner_sign_invoice LDKNodeSigner *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient
1393         public static native long NodeSigner_sign_invoice(long this_arg, byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1394         // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice_request LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR invoice_request
1395         public static native long NodeSigner_sign_bolt12_invoice_request(long this_arg, long invoice_request);
1396         // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR invoice
1397         public static native long NodeSigner_sign_bolt12_invoice(long this_arg, long invoice);
1398         // LDKCResult_ECDSASignatureNoneZ NodeSigner_sign_gossip_message LDKNodeSigner *NONNULL_PTR this_arg, struct LDKUnsignedGossipMessage msg
1399         public static native long NodeSigner_sign_gossip_message(long this_arg, long msg);
1400         public interface LDKSignerProvider {
1401                  byte[] generate_channel_keys_id(boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1402                  long derive_channel_signer(long channel_value_satoshis, byte[] channel_keys_id);
1403                  long read_chan_signer(byte[] reader);
1404                  long get_destination_script();
1405                  long get_shutdown_scriptpubkey();
1406         }
1407         public static native long LDKSignerProvider_new(LDKSignerProvider impl);
1408         // LDKThirtyTwoBytes SignerProvider_generate_channel_keys_id LDKSignerProvider *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis, struct LDKU128 user_channel_id
1409         public static native byte[] SignerProvider_generate_channel_keys_id(long this_arg, boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1410         // LDKWriteableEcdsaChannelSigner SignerProvider_derive_channel_signer LDKSignerProvider *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id
1411         public static native long SignerProvider_derive_channel_signer(long this_arg, long channel_value_satoshis, byte[] channel_keys_id);
1412         // LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ SignerProvider_read_chan_signer LDKSignerProvider *NONNULL_PTR this_arg, struct LDKu8slice reader
1413         public static native long SignerProvider_read_chan_signer(long this_arg, byte[] reader);
1414         // LDKCResult_CVec_u8ZNoneZ SignerProvider_get_destination_script LDKSignerProvider *NONNULL_PTR this_arg
1415         public static native long SignerProvider_get_destination_script(long this_arg);
1416         // LDKCResult_ShutdownScriptNoneZ SignerProvider_get_shutdown_scriptpubkey LDKSignerProvider *NONNULL_PTR this_arg
1417         public static native long SignerProvider_get_shutdown_scriptpubkey(long this_arg);
1418         public interface LDKFeeEstimator {
1419                  int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target);
1420         }
1421         public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
1422         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
1423         public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, ConfirmationTarget confirmation_target);
1424         public interface LDKRouter {
1425                  long find_route(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1426                  long find_route_with_id(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs, byte[] _payment_hash, byte[] _payment_id);
1427         }
1428         public static native long LDKRouter_new(LDKRouter impl);
1429         // LDKCResult_RouteLightningErrorZ Router_find_route LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKInFlightHtlcs inflight_htlcs
1430         public static native long Router_find_route(long this_arg, byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1431         // LDKCResult_RouteLightningErrorZ Router_find_route_with_id LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKInFlightHtlcs inflight_htlcs, struct LDKThirtyTwoBytes _payment_hash, struct LDKThirtyTwoBytes _payment_id
1432         public static native long Router_find_route_with_id(long this_arg, byte[] payer, long route_params, long[] first_hops, long inflight_htlcs, byte[] _payment_hash, byte[] _payment_id);
1433         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner);
1434         public static native byte[] C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(long owner);
1435         // struct LDKChannelManager C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner);
1436         public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(long owner);
1437         // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1438         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(long owner);
1439         // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1440         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(long owner);
1441         public static class LDKMaxDustHTLCExposure {
1442                 private LDKMaxDustHTLCExposure() {}
1443                 public final static class FixedLimitMsat extends LDKMaxDustHTLCExposure {
1444                         public long fixed_limit_msat;
1445                         FixedLimitMsat(long fixed_limit_msat) { this.fixed_limit_msat = fixed_limit_msat; }
1446                 }
1447                 public final static class FeeRateMultiplier extends LDKMaxDustHTLCExposure {
1448                         public long fee_rate_multiplier;
1449                         FeeRateMultiplier(long fee_rate_multiplier) { this.fee_rate_multiplier = fee_rate_multiplier; }
1450                 }
1451                 static native void init();
1452         }
1453         static { LDKMaxDustHTLCExposure.init(); }
1454         public static native LDKMaxDustHTLCExposure LDKMaxDustHTLCExposure_ref_from_ptr(long ptr);
1455         // struct LDKMaxDustHTLCExposure CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1456         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(long owner);
1457         // struct LDKDecodeError CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1458         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(long owner);
1459         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1460         public static native long CResult_ChannelConfigDecodeErrorZ_get_ok(long owner);
1461         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1462         public static native long CResult_ChannelConfigDecodeErrorZ_get_err(long owner);
1463         public static class LDKCOption_MaxDustHTLCExposureZ {
1464                 private LDKCOption_MaxDustHTLCExposureZ() {}
1465                 public final static class Some extends LDKCOption_MaxDustHTLCExposureZ {
1466                         public long some;
1467                         Some(long some) { this.some = some; }
1468                 }
1469                 public final static class None extends LDKCOption_MaxDustHTLCExposureZ {
1470                         None() { }
1471                 }
1472                 static native void init();
1473         }
1474         static { LDKCOption_MaxDustHTLCExposureZ.init(); }
1475         public static native LDKCOption_MaxDustHTLCExposureZ LDKCOption_MaxDustHTLCExposureZ_ref_from_ptr(long ptr);
1476         public static class LDKCOption_APIErrorZ {
1477                 private LDKCOption_APIErrorZ() {}
1478                 public final static class Some extends LDKCOption_APIErrorZ {
1479                         public long some;
1480                         Some(long some) { this.some = some; }
1481                 }
1482                 public final static class None extends LDKCOption_APIErrorZ {
1483                         None() { }
1484                 }
1485                 static native void init();
1486         }
1487         static { LDKCOption_APIErrorZ.init(); }
1488         public static native LDKCOption_APIErrorZ LDKCOption_APIErrorZ_ref_from_ptr(long ptr);
1489         // struct LDKCOption_APIErrorZ CResult_COption_APIErrorZDecodeErrorZ_get_ok(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1490         public static native long CResult_COption_APIErrorZDecodeErrorZ_get_ok(long owner);
1491         // struct LDKDecodeError CResult_COption_APIErrorZDecodeErrorZ_get_err(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1492         public static native long CResult_COption_APIErrorZDecodeErrorZ_get_err(long owner);
1493         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1494         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long owner);
1495         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1496         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long owner);
1497         public static class LDKCOption_MonitorEventZ {
1498                 private LDKCOption_MonitorEventZ() {}
1499                 public final static class Some extends LDKCOption_MonitorEventZ {
1500                         public long some;
1501                         Some(long some) { this.some = some; }
1502                 }
1503                 public final static class None extends LDKCOption_MonitorEventZ {
1504                         None() { }
1505                 }
1506                 static native void init();
1507         }
1508         static { LDKCOption_MonitorEventZ.init(); }
1509         public static native LDKCOption_MonitorEventZ LDKCOption_MonitorEventZ_ref_from_ptr(long ptr);
1510         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1511         public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_ok(long owner);
1512         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1513         public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_err(long owner);
1514         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1515         public static native long CResult_HTLCUpdateDecodeErrorZ_get_ok(long owner);
1516         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1517         public static native long CResult_HTLCUpdateDecodeErrorZ_get_err(long owner);
1518         // struct LDKOutPoint C2Tuple_OutPointCVec_u8ZZ_get_a(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner);
1519         public static native long C2Tuple_OutPointCVec_u8ZZ_get_a(long owner);
1520         // struct LDKCVec_u8Z C2Tuple_OutPointCVec_u8ZZ_get_b(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner);
1521         public static native byte[] C2Tuple_OutPointCVec_u8ZZ_get_b(long owner);
1522         // uint32_t C2Tuple_u32CVec_u8ZZ_get_a(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner);
1523         public static native int C2Tuple_u32CVec_u8ZZ_get_a(long owner);
1524         // struct LDKCVec_u8Z C2Tuple_u32CVec_u8ZZ_get_b(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner);
1525         public static native byte[] C2Tuple_u32CVec_u8ZZ_get_b(long owner);
1526         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner);
1527         public static native byte[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(long owner);
1528         // struct LDKCVec_C2Tuple_u32CVec_u8ZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner);
1529         public static native long[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(long owner);
1530         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1531         public static native int C2Tuple_u32TxOutZ_get_a(long owner);
1532         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1533         public static native long C2Tuple_u32TxOutZ_get_b(long owner);
1534         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1535         public static native byte[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(long owner);
1536         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1537         public static native long[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(long owner);
1538         public static class LDKBalance {
1539                 private LDKBalance() {}
1540                 public final static class ClaimableOnChannelClose extends LDKBalance {
1541                         public long amount_satoshis;
1542                         ClaimableOnChannelClose(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1543                 }
1544                 public final static class ClaimableAwaitingConfirmations extends LDKBalance {
1545                         public long amount_satoshis;
1546                         public int confirmation_height;
1547                         ClaimableAwaitingConfirmations(long amount_satoshis, int confirmation_height) { this.amount_satoshis = amount_satoshis; this.confirmation_height = confirmation_height; }
1548                 }
1549                 public final static class ContentiousClaimable extends LDKBalance {
1550                         public long amount_satoshis;
1551                         public int timeout_height;
1552                         public byte[] payment_hash;
1553                         public byte[] payment_preimage;
1554                         ContentiousClaimable(long amount_satoshis, int timeout_height, byte[] payment_hash, byte[] payment_preimage) { this.amount_satoshis = amount_satoshis; this.timeout_height = timeout_height; this.payment_hash = payment_hash; this.payment_preimage = payment_preimage; }
1555                 }
1556                 public final static class MaybeTimeoutClaimableHTLC extends LDKBalance {
1557                         public long amount_satoshis;
1558                         public int claimable_height;
1559                         public byte[] payment_hash;
1560                         MaybeTimeoutClaimableHTLC(long amount_satoshis, int claimable_height, byte[] payment_hash) { this.amount_satoshis = amount_satoshis; this.claimable_height = claimable_height; this.payment_hash = payment_hash; }
1561                 }
1562                 public final static class MaybePreimageClaimableHTLC extends LDKBalance {
1563                         public long amount_satoshis;
1564                         public int expiry_height;
1565                         public byte[] payment_hash;
1566                         MaybePreimageClaimableHTLC(long amount_satoshis, int expiry_height, byte[] payment_hash) { this.amount_satoshis = amount_satoshis; this.expiry_height = expiry_height; this.payment_hash = payment_hash; }
1567                 }
1568                 public final static class CounterpartyRevokedOutputClaimable extends LDKBalance {
1569                         public long amount_satoshis;
1570                         CounterpartyRevokedOutputClaimable(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1571                 }
1572                 static native void init();
1573         }
1574         static { LDKBalance.init(); }
1575         public static native LDKBalance LDKBalance_ref_from_ptr(long ptr);
1576         // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner);
1577         public static native byte[] C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(long owner);
1578         // struct LDKChannelMonitor C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner);
1579         public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(long owner);
1580         // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1581         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(long owner);
1582         // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1583         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(long owner);
1584         public interface LDKType {
1585                  short type_id();
1586                  String debug_str();
1587                  byte[] write();
1588         }
1589         public static native long LDKType_new(LDKType impl);
1590         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
1591         public static native short Type_type_id(long this_arg);
1592         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
1593         public static native String Type_debug_str(long this_arg);
1594         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
1595         public static native byte[] Type_write(long this_arg);
1596         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1597         public static native byte[] C2Tuple_PublicKeyTypeZ_get_a(long owner);
1598         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1599         public static native long C2Tuple_PublicKeyTypeZ_get_b(long owner);
1600         public interface LDKOnionMessageContents {
1601                  long tlv_type();
1602                  byte[] write();
1603         }
1604         public static native long LDKOnionMessageContents_new(LDKOnionMessageContents impl);
1605         // uint64_t OnionMessageContents_tlv_type LDKOnionMessageContents *NONNULL_PTR this_arg
1606         public static native long OnionMessageContents_tlv_type(long this_arg);
1607         // LDKCVec_u8Z OnionMessageContents_write LDKOnionMessageContents *NONNULL_PTR this_arg
1608         public static native byte[] OnionMessageContents_write(long this_arg);
1609         public static class LDKCOption_OnionMessageContentsZ {
1610                 private LDKCOption_OnionMessageContentsZ() {}
1611                 public final static class Some extends LDKCOption_OnionMessageContentsZ {
1612                         public long some;
1613                         Some(long some) { this.some = some; }
1614                 }
1615                 public final static class None extends LDKCOption_OnionMessageContentsZ {
1616                         None() { }
1617                 }
1618                 static native void init();
1619         }
1620         static { LDKCOption_OnionMessageContentsZ.init(); }
1621         public static native LDKCOption_OnionMessageContentsZ LDKCOption_OnionMessageContentsZ_ref_from_ptr(long ptr);
1622         // struct LDKCOption_OnionMessageContentsZ CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1623         public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(long owner);
1624         // struct LDKDecodeError CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1625         public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(long owner);
1626         // struct LDKOnionMessageContents C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1627         public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(long owner);
1628         // struct LDKDestination C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1629         public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(long owner);
1630         // struct LDKBlindedPath C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1631         public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(long owner);
1632         public static class LDKCOption_TypeZ {
1633                 private LDKCOption_TypeZ() {}
1634                 public final static class Some extends LDKCOption_TypeZ {
1635                         public long some;
1636                         Some(long some) { this.some = some; }
1637                 }
1638                 public final static class None extends LDKCOption_TypeZ {
1639                         None() { }
1640                 }
1641                 static native void init();
1642         }
1643         static { LDKCOption_TypeZ.init(); }
1644         public static native LDKCOption_TypeZ LDKCOption_TypeZ_ref_from_ptr(long ptr);
1645         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1646         public static native long CResult_COption_TypeZDecodeErrorZ_get_ok(long owner);
1647         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1648         public static native long CResult_COption_TypeZDecodeErrorZ_get_err(long owner);
1649         public static class LDKCOption_SocketAddressZ {
1650                 private LDKCOption_SocketAddressZ() {}
1651                 public final static class Some extends LDKCOption_SocketAddressZ {
1652                         public long some;
1653                         Some(long some) { this.some = some; }
1654                 }
1655                 public final static class None extends LDKCOption_SocketAddressZ {
1656                         None() { }
1657                 }
1658                 static native void init();
1659         }
1660         static { LDKCOption_SocketAddressZ.init(); }
1661         public static native LDKCOption_SocketAddressZ LDKCOption_SocketAddressZ_ref_from_ptr(long ptr);
1662         // struct LDKPublicKey C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner);
1663         public static native byte[] C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(long owner);
1664         // struct LDKCOption_SocketAddressZ C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner);
1665         public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(long owner);
1666         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1667         public static native byte[] CResult_CVec_u8ZPeerHandleErrorZ_get_ok(long owner);
1668         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1669         public static native long CResult_CVec_u8ZPeerHandleErrorZ_get_err(long owner);
1670         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1671         public static native void CResult_NonePeerHandleErrorZ_get_ok(long owner);
1672         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1673         public static native long CResult_NonePeerHandleErrorZ_get_err(long owner);
1674         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1675         public static native boolean CResult_boolPeerHandleErrorZ_get_ok(long owner);
1676         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1677         public static native long CResult_boolPeerHandleErrorZ_get_err(long owner);
1678         public static class LDKGraphSyncError {
1679                 private LDKGraphSyncError() {}
1680                 public final static class DecodeError extends LDKGraphSyncError {
1681                         public long decode_error;
1682                         DecodeError(long decode_error) { this.decode_error = decode_error; }
1683                 }
1684                 public final static class LightningError extends LDKGraphSyncError {
1685                         public long lightning_error;
1686                         LightningError(long lightning_error) { this.lightning_error = lightning_error; }
1687                 }
1688                 static native void init();
1689         }
1690         static { LDKGraphSyncError.init(); }
1691         public static native LDKGraphSyncError LDKGraphSyncError_ref_from_ptr(long ptr);
1692         // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1693         public static native int CResult_u32GraphSyncErrorZ_get_ok(long owner);
1694         // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1695         public static native long CResult_u32GraphSyncErrorZ_get_err(long owner);
1696         // struct LDKCVec_u8Z CResult_CVec_u8ZIOErrorZ_get_ok(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner);
1697         public static native byte[] CResult_CVec_u8ZIOErrorZ_get_ok(long owner);
1698         // enum LDKIOError CResult_CVec_u8ZIOErrorZ_get_err(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner);
1699         public static native IOError CResult_CVec_u8ZIOErrorZ_get_err(long owner);
1700         // struct LDKCVec_StrZ CResult_CVec_StrZIOErrorZ_get_ok(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner);
1701         public static native String[] CResult_CVec_StrZIOErrorZ_get_ok(long owner);
1702         // enum LDKIOError CResult_CVec_StrZIOErrorZ_get_err(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner);
1703         public static native IOError CResult_CVec_StrZIOErrorZ_get_err(long owner);
1704         // struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner);
1705         public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(long owner);
1706         // enum LDKIOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner);
1707         public static native IOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(long owner);
1708         // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner);
1709         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(long owner);
1710         // enum LDKIOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner);
1711         public static native IOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(long owner);
1712         public static class LDKCOption_SecretKeyZ {
1713                 private LDKCOption_SecretKeyZ() {}
1714                 public final static class Some extends LDKCOption_SecretKeyZ {
1715                         public byte[] some;
1716                         Some(byte[] some) { this.some = some; }
1717                 }
1718                 public final static class None extends LDKCOption_SecretKeyZ {
1719                         None() { }
1720                 }
1721                 static native void init();
1722         }
1723         static { LDKCOption_SecretKeyZ.init(); }
1724         public static native LDKCOption_SecretKeyZ LDKCOption_SecretKeyZ_ref_from_ptr(long ptr);
1725         // struct LDKVerifiedInvoiceRequest CResult_VerifiedInvoiceRequestNoneZ_get_ok(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner);
1726         public static native long CResult_VerifiedInvoiceRequestNoneZ_get_ok(long owner);
1727         // void CResult_VerifiedInvoiceRequestNoneZ_get_err(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner);
1728         public static native void CResult_VerifiedInvoiceRequestNoneZ_get_err(long owner);
1729         public static class LDKCOption_i64Z {
1730                 private LDKCOption_i64Z() {}
1731                 public final static class Some extends LDKCOption_i64Z {
1732                         public long some;
1733                         Some(long some) { this.some = some; }
1734                 }
1735                 public final static class None extends LDKCOption_i64Z {
1736                         None() { }
1737                 }
1738                 static native void init();
1739         }
1740         static { LDKCOption_i64Z.init(); }
1741         public static native LDKCOption_i64Z LDKCOption_i64Z_ref_from_ptr(long ptr);
1742         // struct LDKSocketAddress CResult_SocketAddressDecodeErrorZ_get_ok(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner);
1743         public static native long CResult_SocketAddressDecodeErrorZ_get_ok(long owner);
1744         // struct LDKDecodeError CResult_SocketAddressDecodeErrorZ_get_err(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner);
1745         public static native long CResult_SocketAddressDecodeErrorZ_get_err(long owner);
1746         // struct LDKSocketAddress CResult_SocketAddressSocketAddressParseErrorZ_get_ok(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner);
1747         public static native long CResult_SocketAddressSocketAddressParseErrorZ_get_ok(long owner);
1748         // enum LDKSocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner);
1749         public static native SocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(long owner);
1750         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1751         public static native long CResult_AcceptChannelDecodeErrorZ_get_ok(long owner);
1752         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1753         public static native long CResult_AcceptChannelDecodeErrorZ_get_err(long owner);
1754         // struct LDKAcceptChannelV2 CResult_AcceptChannelV2DecodeErrorZ_get_ok(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
1755         public static native long CResult_AcceptChannelV2DecodeErrorZ_get_ok(long owner);
1756         // struct LDKDecodeError CResult_AcceptChannelV2DecodeErrorZ_get_err(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
1757         public static native long CResult_AcceptChannelV2DecodeErrorZ_get_err(long owner);
1758         // struct LDKTxAddInput CResult_TxAddInputDecodeErrorZ_get_ok(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
1759         public static native long CResult_TxAddInputDecodeErrorZ_get_ok(long owner);
1760         // struct LDKDecodeError CResult_TxAddInputDecodeErrorZ_get_err(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
1761         public static native long CResult_TxAddInputDecodeErrorZ_get_err(long owner);
1762         // struct LDKTxAddOutput CResult_TxAddOutputDecodeErrorZ_get_ok(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
1763         public static native long CResult_TxAddOutputDecodeErrorZ_get_ok(long owner);
1764         // struct LDKDecodeError CResult_TxAddOutputDecodeErrorZ_get_err(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
1765         public static native long CResult_TxAddOutputDecodeErrorZ_get_err(long owner);
1766         // struct LDKTxRemoveInput CResult_TxRemoveInputDecodeErrorZ_get_ok(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
1767         public static native long CResult_TxRemoveInputDecodeErrorZ_get_ok(long owner);
1768         // struct LDKDecodeError CResult_TxRemoveInputDecodeErrorZ_get_err(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
1769         public static native long CResult_TxRemoveInputDecodeErrorZ_get_err(long owner);
1770         // struct LDKTxRemoveOutput CResult_TxRemoveOutputDecodeErrorZ_get_ok(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
1771         public static native long CResult_TxRemoveOutputDecodeErrorZ_get_ok(long owner);
1772         // struct LDKDecodeError CResult_TxRemoveOutputDecodeErrorZ_get_err(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
1773         public static native long CResult_TxRemoveOutputDecodeErrorZ_get_err(long owner);
1774         // struct LDKTxComplete CResult_TxCompleteDecodeErrorZ_get_ok(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
1775         public static native long CResult_TxCompleteDecodeErrorZ_get_ok(long owner);
1776         // struct LDKDecodeError CResult_TxCompleteDecodeErrorZ_get_err(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
1777         public static native long CResult_TxCompleteDecodeErrorZ_get_err(long owner);
1778         // struct LDKTxSignatures CResult_TxSignaturesDecodeErrorZ_get_ok(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
1779         public static native long CResult_TxSignaturesDecodeErrorZ_get_ok(long owner);
1780         // struct LDKDecodeError CResult_TxSignaturesDecodeErrorZ_get_err(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
1781         public static native long CResult_TxSignaturesDecodeErrorZ_get_err(long owner);
1782         // struct LDKTxInitRbf CResult_TxInitRbfDecodeErrorZ_get_ok(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
1783         public static native long CResult_TxInitRbfDecodeErrorZ_get_ok(long owner);
1784         // struct LDKDecodeError CResult_TxInitRbfDecodeErrorZ_get_err(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
1785         public static native long CResult_TxInitRbfDecodeErrorZ_get_err(long owner);
1786         // struct LDKTxAckRbf CResult_TxAckRbfDecodeErrorZ_get_ok(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
1787         public static native long CResult_TxAckRbfDecodeErrorZ_get_ok(long owner);
1788         // struct LDKDecodeError CResult_TxAckRbfDecodeErrorZ_get_err(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
1789         public static native long CResult_TxAckRbfDecodeErrorZ_get_err(long owner);
1790         // struct LDKTxAbort CResult_TxAbortDecodeErrorZ_get_ok(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
1791         public static native long CResult_TxAbortDecodeErrorZ_get_ok(long owner);
1792         // struct LDKDecodeError CResult_TxAbortDecodeErrorZ_get_err(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
1793         public static native long CResult_TxAbortDecodeErrorZ_get_err(long owner);
1794         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1795         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long owner);
1796         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1797         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_err(long owner);
1798         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1799         public static native long CResult_ChannelReestablishDecodeErrorZ_get_ok(long owner);
1800         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1801         public static native long CResult_ChannelReestablishDecodeErrorZ_get_err(long owner);
1802         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1803         public static native long CResult_ClosingSignedDecodeErrorZ_get_ok(long owner);
1804         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1805         public static native long CResult_ClosingSignedDecodeErrorZ_get_err(long owner);
1806         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1807         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long owner);
1808         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1809         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(long owner);
1810         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1811         public static native long CResult_CommitmentSignedDecodeErrorZ_get_ok(long owner);
1812         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1813         public static native long CResult_CommitmentSignedDecodeErrorZ_get_err(long owner);
1814         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1815         public static native long CResult_FundingCreatedDecodeErrorZ_get_ok(long owner);
1816         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1817         public static native long CResult_FundingCreatedDecodeErrorZ_get_err(long owner);
1818         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1819         public static native long CResult_FundingSignedDecodeErrorZ_get_ok(long owner);
1820         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1821         public static native long CResult_FundingSignedDecodeErrorZ_get_err(long owner);
1822         // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1823         public static native long CResult_ChannelReadyDecodeErrorZ_get_ok(long owner);
1824         // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1825         public static native long CResult_ChannelReadyDecodeErrorZ_get_err(long owner);
1826         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1827         public static native long CResult_InitDecodeErrorZ_get_ok(long owner);
1828         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1829         public static native long CResult_InitDecodeErrorZ_get_err(long owner);
1830         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1831         public static native long CResult_OpenChannelDecodeErrorZ_get_ok(long owner);
1832         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1833         public static native long CResult_OpenChannelDecodeErrorZ_get_err(long owner);
1834         // struct LDKOpenChannelV2 CResult_OpenChannelV2DecodeErrorZ_get_ok(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
1835         public static native long CResult_OpenChannelV2DecodeErrorZ_get_ok(long owner);
1836         // struct LDKDecodeError CResult_OpenChannelV2DecodeErrorZ_get_err(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
1837         public static native long CResult_OpenChannelV2DecodeErrorZ_get_err(long owner);
1838         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1839         public static native long CResult_RevokeAndACKDecodeErrorZ_get_ok(long owner);
1840         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1841         public static native long CResult_RevokeAndACKDecodeErrorZ_get_err(long owner);
1842         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1843         public static native long CResult_ShutdownDecodeErrorZ_get_ok(long owner);
1844         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1845         public static native long CResult_ShutdownDecodeErrorZ_get_err(long owner);
1846         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1847         public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_ok(long owner);
1848         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1849         public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_err(long owner);
1850         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1851         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long owner);
1852         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1853         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long owner);
1854         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1855         public static native long CResult_UpdateFeeDecodeErrorZ_get_ok(long owner);
1856         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1857         public static native long CResult_UpdateFeeDecodeErrorZ_get_err(long owner);
1858         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1859         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long owner);
1860         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1861         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long owner);
1862         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1863         public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_ok(long owner);
1864         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1865         public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_err(long owner);
1866         // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
1867         public static native long CResult_OnionMessageDecodeErrorZ_get_ok(long owner);
1868         // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
1869         public static native long CResult_OnionMessageDecodeErrorZ_get_err(long owner);
1870         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1871         public static native long CResult_PingDecodeErrorZ_get_ok(long owner);
1872         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1873         public static native long CResult_PingDecodeErrorZ_get_err(long owner);
1874         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1875         public static native long CResult_PongDecodeErrorZ_get_ok(long owner);
1876         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1877         public static native long CResult_PongDecodeErrorZ_get_err(long owner);
1878         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1879         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1880         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1881         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long owner);
1882         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1883         public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1884         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1885         public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_err(long owner);
1886         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1887         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long owner);
1888         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1889         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long owner);
1890         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1891         public static native long CResult_ChannelUpdateDecodeErrorZ_get_ok(long owner);
1892         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1893         public static native long CResult_ChannelUpdateDecodeErrorZ_get_err(long owner);
1894         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1895         public static native long CResult_ErrorMessageDecodeErrorZ_get_ok(long owner);
1896         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1897         public static native long CResult_ErrorMessageDecodeErrorZ_get_err(long owner);
1898         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1899         public static native long CResult_WarningMessageDecodeErrorZ_get_ok(long owner);
1900         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1901         public static native long CResult_WarningMessageDecodeErrorZ_get_err(long owner);
1902         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1903         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long owner);
1904         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1905         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long owner);
1906         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1907         public static native long CResult_NodeAnnouncementDecodeErrorZ_get_ok(long owner);
1908         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1909         public static native long CResult_NodeAnnouncementDecodeErrorZ_get_err(long owner);
1910         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1911         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long owner);
1912         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1913         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_err(long owner);
1914         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1915         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long owner);
1916         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1917         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long owner);
1918         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1919         public static native long CResult_QueryChannelRangeDecodeErrorZ_get_ok(long owner);
1920         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1921         public static native long CResult_QueryChannelRangeDecodeErrorZ_get_err(long owner);
1922         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1923         public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_ok(long owner);
1924         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1925         public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_err(long owner);
1926         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1927         public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_ok(long owner);
1928         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1929         public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_err(long owner);
1930         public static class LDKSignOrCreationError {
1931                 private LDKSignOrCreationError() {}
1932                 public final static class SignError extends LDKSignOrCreationError {
1933                         SignError() { }
1934                 }
1935                 public final static class CreationError extends LDKSignOrCreationError {
1936                         public org.ldk.enums.CreationError creation_error;
1937                         CreationError(org.ldk.enums.CreationError creation_error) { this.creation_error = creation_error; }
1938                 }
1939                 static native void init();
1940         }
1941         static { LDKSignOrCreationError.init(); }
1942         public static native LDKSignOrCreationError LDKSignOrCreationError_ref_from_ptr(long ptr);
1943         // struct LDKBolt11Invoice CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
1944         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(long owner);
1945         // struct LDKSignOrCreationError CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
1946         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(long owner);
1947         // struct LDKOffersMessage CResult_OffersMessageDecodeErrorZ_get_ok(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
1948         public static native long CResult_OffersMessageDecodeErrorZ_get_ok(long owner);
1949         // struct LDKDecodeError CResult_OffersMessageDecodeErrorZ_get_err(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
1950         public static native long CResult_OffersMessageDecodeErrorZ_get_err(long owner);
1951         public static class LDKCOption_HTLCClaimZ {
1952                 private LDKCOption_HTLCClaimZ() {}
1953                 public final static class Some extends LDKCOption_HTLCClaimZ {
1954                         public org.ldk.enums.HTLCClaim some;
1955                         Some(org.ldk.enums.HTLCClaim some) { this.some = some; }
1956                 }
1957                 public final static class None extends LDKCOption_HTLCClaimZ {
1958                         None() { }
1959                 }
1960                 static native void init();
1961         }
1962         static { LDKCOption_HTLCClaimZ.init(); }
1963         public static native LDKCOption_HTLCClaimZ LDKCOption_HTLCClaimZ_ref_from_ptr(long ptr);
1964         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
1965         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(long owner);
1966         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
1967         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(long owner);
1968         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
1969         public static native long CResult_TxCreationKeysDecodeErrorZ_get_ok(long owner);
1970         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
1971         public static native long CResult_TxCreationKeysDecodeErrorZ_get_err(long owner);
1972         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
1973         public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_ok(long owner);
1974         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
1975         public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_err(long owner);
1976         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
1977         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long owner);
1978         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
1979         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long owner);
1980         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1981         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
1982         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1983         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long owner);
1984         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1985         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
1986         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1987         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_err(long owner);
1988         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1989         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long owner);
1990         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1991         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long owner);
1992         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1993         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long owner);
1994         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1995         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long owner);
1996         // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1997         public static native long CResult_TrustedClosingTransactionNoneZ_get_ok(long owner);
1998         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1999         public static native void CResult_TrustedClosingTransactionNoneZ_get_err(long owner);
2000         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2001         public static native long CResult_CommitmentTransactionDecodeErrorZ_get_ok(long owner);
2002         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2003         public static native long CResult_CommitmentTransactionDecodeErrorZ_get_err(long owner);
2004         // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
2005         public static native long CResult_TrustedCommitmentTransactionNoneZ_get_ok(long owner);
2006         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
2007         public static native void CResult_TrustedCommitmentTransactionNoneZ_get_err(long owner);
2008         // struct LDKCVec_ECDSASignatureZ CResult_CVec_ECDSASignatureZNoneZ_get_ok(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner);
2009         public static native byte[][] CResult_CVec_ECDSASignatureZNoneZ_get_ok(long owner);
2010         // void CResult_CVec_ECDSASignatureZNoneZ_get_err(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner);
2011         public static native void CResult_CVec_ECDSASignatureZNoneZ_get_err(long owner);
2012         public static class LDKCOption_usizeZ {
2013                 private LDKCOption_usizeZ() {}
2014                 public final static class Some extends LDKCOption_usizeZ {
2015                         public long some;
2016                         Some(long some) { this.some = some; }
2017                 }
2018                 public final static class None extends LDKCOption_usizeZ {
2019                         None() { }
2020                 }
2021                 static native void init();
2022         }
2023         static { LDKCOption_usizeZ.init(); }
2024         public static native LDKCOption_usizeZ LDKCOption_usizeZ_ref_from_ptr(long ptr);
2025         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
2026         public static native long CResult_ShutdownScriptDecodeErrorZ_get_ok(long owner);
2027         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
2028         public static native long CResult_ShutdownScriptDecodeErrorZ_get_err(long owner);
2029         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
2030         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(long owner);
2031         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
2032         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(long owner);
2033         public static class LDKPaymentPurpose {
2034                 private LDKPaymentPurpose() {}
2035                 public final static class InvoicePayment extends LDKPaymentPurpose {
2036                         public long payment_preimage;
2037                         public byte[] payment_secret;
2038                         InvoicePayment(long payment_preimage, byte[] payment_secret) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; }
2039                 }
2040                 public final static class SpontaneousPayment extends LDKPaymentPurpose {
2041                         public byte[] spontaneous_payment;
2042                         SpontaneousPayment(byte[] spontaneous_payment) { this.spontaneous_payment = spontaneous_payment; }
2043                 }
2044                 static native void init();
2045         }
2046         static { LDKPaymentPurpose.init(); }
2047         public static native LDKPaymentPurpose LDKPaymentPurpose_ref_from_ptr(long ptr);
2048         // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2049         public static native long CResult_PaymentPurposeDecodeErrorZ_get_ok(long owner);
2050         // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2051         public static native long CResult_PaymentPurposeDecodeErrorZ_get_err(long owner);
2052         // struct LDKClaimedHTLC CResult_ClaimedHTLCDecodeErrorZ_get_ok(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner);
2053         public static native long CResult_ClaimedHTLCDecodeErrorZ_get_ok(long owner);
2054         // struct LDKDecodeError CResult_ClaimedHTLCDecodeErrorZ_get_err(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner);
2055         public static native long CResult_ClaimedHTLCDecodeErrorZ_get_err(long owner);
2056         public static class LDKPathFailure {
2057                 private LDKPathFailure() {}
2058                 public final static class InitialSend extends LDKPathFailure {
2059                         public long err;
2060                         InitialSend(long err) { this.err = err; }
2061                 }
2062                 public final static class OnPath extends LDKPathFailure {
2063                         public long network_update;
2064                         OnPath(long network_update) { this.network_update = network_update; }
2065                 }
2066                 static native void init();
2067         }
2068         static { LDKPathFailure.init(); }
2069         public static native LDKPathFailure LDKPathFailure_ref_from_ptr(long ptr);
2070         public static class LDKCOption_PathFailureZ {
2071                 private LDKCOption_PathFailureZ() {}
2072                 public final static class Some extends LDKCOption_PathFailureZ {
2073                         public long some;
2074                         Some(long some) { this.some = some; }
2075                 }
2076                 public final static class None extends LDKCOption_PathFailureZ {
2077                         None() { }
2078                 }
2079                 static native void init();
2080         }
2081         static { LDKCOption_PathFailureZ.init(); }
2082         public static native LDKCOption_PathFailureZ LDKCOption_PathFailureZ_ref_from_ptr(long ptr);
2083         // struct LDKCOption_PathFailureZ CResult_COption_PathFailureZDecodeErrorZ_get_ok(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2084         public static native long CResult_COption_PathFailureZDecodeErrorZ_get_ok(long owner);
2085         // struct LDKDecodeError CResult_COption_PathFailureZDecodeErrorZ_get_err(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2086         public static native long CResult_COption_PathFailureZDecodeErrorZ_get_err(long owner);
2087         public static class LDKClosureReason {
2088                 private LDKClosureReason() {}
2089                 public final static class CounterpartyForceClosed extends LDKClosureReason {
2090                         public long peer_msg;
2091                         CounterpartyForceClosed(long peer_msg) { this.peer_msg = peer_msg; }
2092                 }
2093                 public final static class HolderForceClosed extends LDKClosureReason {
2094                         HolderForceClosed() { }
2095                 }
2096                 public final static class CooperativeClosure extends LDKClosureReason {
2097                         CooperativeClosure() { }
2098                 }
2099                 public final static class CommitmentTxConfirmed extends LDKClosureReason {
2100                         CommitmentTxConfirmed() { }
2101                 }
2102                 public final static class FundingTimedOut extends LDKClosureReason {
2103                         FundingTimedOut() { }
2104                 }
2105                 public final static class ProcessingError extends LDKClosureReason {
2106                         public java.lang.String err;
2107                         ProcessingError(java.lang.String err) { this.err = err; }
2108                 }
2109                 public final static class DisconnectedPeer extends LDKClosureReason {
2110                         DisconnectedPeer() { }
2111                 }
2112                 public final static class OutdatedChannelManager extends LDKClosureReason {
2113                         OutdatedChannelManager() { }
2114                 }
2115                 public final static class CounterpartyCoopClosedUnfundedChannel extends LDKClosureReason {
2116                         CounterpartyCoopClosedUnfundedChannel() { }
2117                 }
2118                 public final static class FundingBatchClosure extends LDKClosureReason {
2119                         FundingBatchClosure() { }
2120                 }
2121                 static native void init();
2122         }
2123         static { LDKClosureReason.init(); }
2124         public static native LDKClosureReason LDKClosureReason_ref_from_ptr(long ptr);
2125         public static class LDKCOption_ClosureReasonZ {
2126                 private LDKCOption_ClosureReasonZ() {}
2127                 public final static class Some extends LDKCOption_ClosureReasonZ {
2128                         public long some;
2129                         Some(long some) { this.some = some; }
2130                 }
2131                 public final static class None extends LDKCOption_ClosureReasonZ {
2132                         None() { }
2133                 }
2134                 static native void init();
2135         }
2136         static { LDKCOption_ClosureReasonZ.init(); }
2137         public static native LDKCOption_ClosureReasonZ LDKCOption_ClosureReasonZ_ref_from_ptr(long ptr);
2138         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2139         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(long owner);
2140         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2141         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_err(long owner);
2142         public static class LDKHTLCDestination {
2143                 private LDKHTLCDestination() {}
2144                 public final static class NextHopChannel extends LDKHTLCDestination {
2145                         public byte[] node_id;
2146                         public byte[] channel_id;
2147                         NextHopChannel(byte[] node_id, byte[] channel_id) { this.node_id = node_id; this.channel_id = channel_id; }
2148                 }
2149                 public final static class UnknownNextHop extends LDKHTLCDestination {
2150                         public long requested_forward_scid;
2151                         UnknownNextHop(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2152                 }
2153                 public final static class InvalidForward extends LDKHTLCDestination {
2154                         public long requested_forward_scid;
2155                         InvalidForward(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2156                 }
2157                 public final static class FailedPayment extends LDKHTLCDestination {
2158                         public byte[] payment_hash;
2159                         FailedPayment(byte[] payment_hash) { this.payment_hash = payment_hash; }
2160                 }
2161                 static native void init();
2162         }
2163         static { LDKHTLCDestination.init(); }
2164         public static native LDKHTLCDestination LDKHTLCDestination_ref_from_ptr(long ptr);
2165         public static class LDKCOption_HTLCDestinationZ {
2166                 private LDKCOption_HTLCDestinationZ() {}
2167                 public final static class Some extends LDKCOption_HTLCDestinationZ {
2168                         public long some;
2169                         Some(long some) { this.some = some; }
2170                 }
2171                 public final static class None extends LDKCOption_HTLCDestinationZ {
2172                         None() { }
2173                 }
2174                 static native void init();
2175         }
2176         static { LDKCOption_HTLCDestinationZ.init(); }
2177         public static native LDKCOption_HTLCDestinationZ LDKCOption_HTLCDestinationZ_ref_from_ptr(long ptr);
2178         // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2179         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(long owner);
2180         // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2181         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(long owner);
2182         // enum LDKPaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2183         public static native PaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(long owner);
2184         // struct LDKDecodeError CResult_PaymentFailureReasonDecodeErrorZ_get_err(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2185         public static native long CResult_PaymentFailureReasonDecodeErrorZ_get_err(long owner);
2186         public static class LDKCOption_U128Z {
2187                 private LDKCOption_U128Z() {}
2188                 public final static class Some extends LDKCOption_U128Z {
2189                         public byte[] some;
2190                         Some(byte[] some) { this.some = some; }
2191                 }
2192                 public final static class None extends LDKCOption_U128Z {
2193                         None() { }
2194                 }
2195                 static native void init();
2196         }
2197         static { LDKCOption_U128Z.init(); }
2198         public static native LDKCOption_U128Z LDKCOption_U128Z_ref_from_ptr(long ptr);
2199         public static class LDKCOption_PaymentFailureReasonZ {
2200                 private LDKCOption_PaymentFailureReasonZ() {}
2201                 public final static class Some extends LDKCOption_PaymentFailureReasonZ {
2202                         public org.ldk.enums.PaymentFailureReason some;
2203                         Some(org.ldk.enums.PaymentFailureReason some) { this.some = some; }
2204                 }
2205                 public final static class None extends LDKCOption_PaymentFailureReasonZ {
2206                         None() { }
2207                 }
2208                 static native void init();
2209         }
2210         static { LDKCOption_PaymentFailureReasonZ.init(); }
2211         public static native LDKCOption_PaymentFailureReasonZ LDKCOption_PaymentFailureReasonZ_ref_from_ptr(long ptr);
2212         public static class LDKBumpTransactionEvent {
2213                 private LDKBumpTransactionEvent() {}
2214                 public final static class ChannelClose extends LDKBumpTransactionEvent {
2215                         public byte[] claim_id;
2216                         public int package_target_feerate_sat_per_1000_weight;
2217                         public byte[] commitment_tx;
2218                         public long commitment_tx_fee_satoshis;
2219                         public long anchor_descriptor;
2220                         public long[] pending_htlcs;
2221                         ChannelClose(byte[] claim_id, int package_target_feerate_sat_per_1000_weight, byte[] commitment_tx, long commitment_tx_fee_satoshis, long anchor_descriptor, long[] pending_htlcs) { this.claim_id = claim_id; this.package_target_feerate_sat_per_1000_weight = package_target_feerate_sat_per_1000_weight; this.commitment_tx = commitment_tx; this.commitment_tx_fee_satoshis = commitment_tx_fee_satoshis; this.anchor_descriptor = anchor_descriptor; this.pending_htlcs = pending_htlcs; }
2222                 }
2223                 public final static class HTLCResolution extends LDKBumpTransactionEvent {
2224                         public byte[] claim_id;
2225                         public int target_feerate_sat_per_1000_weight;
2226                         public long[] htlc_descriptors;
2227                         public int tx_lock_time;
2228                         HTLCResolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, long[] htlc_descriptors, int tx_lock_time) { this.claim_id = claim_id; this.target_feerate_sat_per_1000_weight = target_feerate_sat_per_1000_weight; this.htlc_descriptors = htlc_descriptors; this.tx_lock_time = tx_lock_time; }
2229                 }
2230                 static native void init();
2231         }
2232         static { LDKBumpTransactionEvent.init(); }
2233         public static native LDKBumpTransactionEvent LDKBumpTransactionEvent_ref_from_ptr(long ptr);
2234         public static class LDKEvent {
2235                 private LDKEvent() {}
2236                 public final static class FundingGenerationReady extends LDKEvent {
2237                         public byte[] temporary_channel_id;
2238                         public byte[] counterparty_node_id;
2239                         public long channel_value_satoshis;
2240                         public byte[] output_script;
2241                         public byte[] user_channel_id;
2242                         FundingGenerationReady(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, byte[] 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; }
2243                 }
2244                 public final static class PaymentClaimable extends LDKEvent {
2245                         public byte[] receiver_node_id;
2246                         public byte[] payment_hash;
2247                         public long onion_fields;
2248                         public long amount_msat;
2249                         public long counterparty_skimmed_fee_msat;
2250                         public long purpose;
2251                         public long via_channel_id;
2252                         public long via_user_channel_id;
2253                         public long claim_deadline;
2254                         PaymentClaimable(byte[] receiver_node_id, byte[] payment_hash, long onion_fields, long amount_msat, long counterparty_skimmed_fee_msat, long purpose, long via_channel_id, long via_user_channel_id, long claim_deadline) { this.receiver_node_id = receiver_node_id; this.payment_hash = payment_hash; this.onion_fields = onion_fields; this.amount_msat = amount_msat; this.counterparty_skimmed_fee_msat = counterparty_skimmed_fee_msat; this.purpose = purpose; this.via_channel_id = via_channel_id; this.via_user_channel_id = via_user_channel_id; this.claim_deadline = claim_deadline; }
2255                 }
2256                 public final static class PaymentClaimed extends LDKEvent {
2257                         public byte[] receiver_node_id;
2258                         public byte[] payment_hash;
2259                         public long amount_msat;
2260                         public long purpose;
2261                         public long[] htlcs;
2262                         public long sender_intended_total_msat;
2263                         PaymentClaimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose, long[] htlcs, long sender_intended_total_msat) { this.receiver_node_id = receiver_node_id; this.payment_hash = payment_hash; this.amount_msat = amount_msat; this.purpose = purpose; this.htlcs = htlcs; this.sender_intended_total_msat = sender_intended_total_msat; }
2264                 }
2265                 public final static class InvoiceRequestFailed extends LDKEvent {
2266                         public byte[] payment_id;
2267                         InvoiceRequestFailed(byte[] payment_id) { this.payment_id = payment_id; }
2268                 }
2269                 public final static class PaymentSent extends LDKEvent {
2270                         public long payment_id;
2271                         public byte[] payment_preimage;
2272                         public byte[] payment_hash;
2273                         public long fee_paid_msat;
2274                         PaymentSent(long 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; }
2275                 }
2276                 public final static class PaymentFailed extends LDKEvent {
2277                         public byte[] payment_id;
2278                         public byte[] payment_hash;
2279                         public long reason;
2280                         PaymentFailed(byte[] payment_id, byte[] payment_hash, long reason) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.reason = reason; }
2281                 }
2282                 public final static class PaymentPathSuccessful extends LDKEvent {
2283                         public byte[] payment_id;
2284                         public long payment_hash;
2285                         public long path;
2286                         PaymentPathSuccessful(byte[] payment_id, long payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2287                 }
2288                 public final static class PaymentPathFailed extends LDKEvent {
2289                         public long payment_id;
2290                         public byte[] payment_hash;
2291                         public boolean payment_failed_permanently;
2292                         public long failure;
2293                         public long path;
2294                         public long short_channel_id;
2295                         PaymentPathFailed(long payment_id, byte[] payment_hash, boolean payment_failed_permanently, long failure, long path, long short_channel_id) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.payment_failed_permanently = payment_failed_permanently; this.failure = failure; this.path = path; this.short_channel_id = short_channel_id; }
2296                 }
2297                 public final static class ProbeSuccessful extends LDKEvent {
2298                         public byte[] payment_id;
2299                         public byte[] payment_hash;
2300                         public long path;
2301                         ProbeSuccessful(byte[] payment_id, byte[] payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2302                 }
2303                 public final static class ProbeFailed extends LDKEvent {
2304                         public byte[] payment_id;
2305                         public byte[] payment_hash;
2306                         public long path;
2307                         public long short_channel_id;
2308                         ProbeFailed(byte[] payment_id, byte[] payment_hash, long path, long short_channel_id) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; this.short_channel_id = short_channel_id; }
2309                 }
2310                 public final static class PendingHTLCsForwardable extends LDKEvent {
2311                         public long time_forwardable;
2312                         PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
2313                 }
2314                 public final static class HTLCIntercepted extends LDKEvent {
2315                         public byte[] intercept_id;
2316                         public long requested_next_hop_scid;
2317                         public byte[] payment_hash;
2318                         public long inbound_amount_msat;
2319                         public long expected_outbound_amount_msat;
2320                         HTLCIntercepted(byte[] intercept_id, long requested_next_hop_scid, byte[] payment_hash, long inbound_amount_msat, long expected_outbound_amount_msat) { this.intercept_id = intercept_id; this.requested_next_hop_scid = requested_next_hop_scid; this.payment_hash = payment_hash; this.inbound_amount_msat = inbound_amount_msat; this.expected_outbound_amount_msat = expected_outbound_amount_msat; }
2321                 }
2322                 public final static class SpendableOutputs extends LDKEvent {
2323                         public long[] outputs;
2324                         public long channel_id;
2325                         SpendableOutputs(long[] outputs, long channel_id) { this.outputs = outputs; this.channel_id = channel_id; }
2326                 }
2327                 public final static class PaymentForwarded extends LDKEvent {
2328                         public long prev_channel_id;
2329                         public long next_channel_id;
2330                         public long fee_earned_msat;
2331                         public boolean claim_from_onchain_tx;
2332                         public long outbound_amount_forwarded_msat;
2333                         PaymentForwarded(long prev_channel_id, long next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx, long outbound_amount_forwarded_msat) { 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; this.outbound_amount_forwarded_msat = outbound_amount_forwarded_msat; }
2334                 }
2335                 public final static class ChannelPending extends LDKEvent {
2336                         public byte[] channel_id;
2337                         public byte[] user_channel_id;
2338                         public long former_temporary_channel_id;
2339                         public byte[] counterparty_node_id;
2340                         public long funding_txo;
2341                         ChannelPending(byte[] channel_id, byte[] user_channel_id, long former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.former_temporary_channel_id = former_temporary_channel_id; this.counterparty_node_id = counterparty_node_id; this.funding_txo = funding_txo; }
2342                 }
2343                 public final static class ChannelReady extends LDKEvent {
2344                         public byte[] channel_id;
2345                         public byte[] user_channel_id;
2346                         public byte[] counterparty_node_id;
2347                         public long channel_type;
2348                         ChannelReady(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.counterparty_node_id = counterparty_node_id; this.channel_type = channel_type; }
2349                 }
2350                 public final static class ChannelClosed extends LDKEvent {
2351                         public byte[] channel_id;
2352                         public byte[] user_channel_id;
2353                         public long reason;
2354                         public byte[] counterparty_node_id;
2355                         public long channel_capacity_sats;
2356                         ChannelClosed(byte[] channel_id, byte[] user_channel_id, long reason, byte[] counterparty_node_id, long channel_capacity_sats) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.reason = reason; this.counterparty_node_id = counterparty_node_id; this.channel_capacity_sats = channel_capacity_sats; }
2357                 }
2358                 public final static class DiscardFunding extends LDKEvent {
2359                         public byte[] channel_id;
2360                         public byte[] transaction;
2361                         DiscardFunding(byte[] channel_id, byte[] transaction) { this.channel_id = channel_id; this.transaction = transaction; }
2362                 }
2363                 public final static class OpenChannelRequest extends LDKEvent {
2364                         public byte[] temporary_channel_id;
2365                         public byte[] counterparty_node_id;
2366                         public long funding_satoshis;
2367                         public long push_msat;
2368                         public long channel_type;
2369                         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; }
2370                 }
2371                 public final static class HTLCHandlingFailed extends LDKEvent {
2372                         public byte[] prev_channel_id;
2373                         public long failed_next_destination;
2374                         HTLCHandlingFailed(byte[] prev_channel_id, long failed_next_destination) { this.prev_channel_id = prev_channel_id; this.failed_next_destination = failed_next_destination; }
2375                 }
2376                 public final static class BumpTransaction extends LDKEvent {
2377                         public long bump_transaction;
2378                         BumpTransaction(long bump_transaction) { this.bump_transaction = bump_transaction; }
2379                 }
2380                 static native void init();
2381         }
2382         static { LDKEvent.init(); }
2383         public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
2384         public static class LDKCOption_EventZ {
2385                 private LDKCOption_EventZ() {}
2386                 public final static class Some extends LDKCOption_EventZ {
2387                         public long some;
2388                         Some(long some) { this.some = some; }
2389                 }
2390                 public final static class None extends LDKCOption_EventZ {
2391                         None() { }
2392                 }
2393                 static native void init();
2394         }
2395         static { LDKCOption_EventZ.init(); }
2396         public static native LDKCOption_EventZ LDKCOption_EventZ_ref_from_ptr(long ptr);
2397         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2398         public static native long CResult_COption_EventZDecodeErrorZ_get_ok(long owner);
2399         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2400         public static native long CResult_COption_EventZDecodeErrorZ_get_err(long owner);
2401         public static class LDKBolt11ParseError {
2402                 private LDKBolt11ParseError() {}
2403                 public final static class Bech32Error extends LDKBolt11ParseError {
2404                         public long bech32_error;
2405                         Bech32Error(long bech32_error) { this.bech32_error = bech32_error; }
2406                 }
2407                 public final static class ParseAmountError extends LDKBolt11ParseError {
2408                         public int parse_amount_error;
2409                         ParseAmountError(int parse_amount_error) { this.parse_amount_error = parse_amount_error; }
2410                 }
2411                 public final static class MalformedSignature extends LDKBolt11ParseError {
2412                         public org.ldk.enums.Secp256k1Error malformed_signature;
2413                         MalformedSignature(org.ldk.enums.Secp256k1Error malformed_signature) { this.malformed_signature = malformed_signature; }
2414                 }
2415                 public final static class BadPrefix extends LDKBolt11ParseError {
2416                         BadPrefix() { }
2417                 }
2418                 public final static class UnknownCurrency extends LDKBolt11ParseError {
2419                         UnknownCurrency() { }
2420                 }
2421                 public final static class UnknownSiPrefix extends LDKBolt11ParseError {
2422                         UnknownSiPrefix() { }
2423                 }
2424                 public final static class MalformedHRP extends LDKBolt11ParseError {
2425                         MalformedHRP() { }
2426                 }
2427                 public final static class TooShortDataPart extends LDKBolt11ParseError {
2428                         TooShortDataPart() { }
2429                 }
2430                 public final static class UnexpectedEndOfTaggedFields extends LDKBolt11ParseError {
2431                         UnexpectedEndOfTaggedFields() { }
2432                 }
2433                 public final static class DescriptionDecodeError extends LDKBolt11ParseError {
2434                         public int description_decode_error;
2435                         DescriptionDecodeError(int description_decode_error) { this.description_decode_error = description_decode_error; }
2436                 }
2437                 public final static class PaddingError extends LDKBolt11ParseError {
2438                         PaddingError() { }
2439                 }
2440                 public final static class IntegerOverflowError extends LDKBolt11ParseError {
2441                         IntegerOverflowError() { }
2442                 }
2443                 public final static class InvalidSegWitProgramLength extends LDKBolt11ParseError {
2444                         InvalidSegWitProgramLength() { }
2445                 }
2446                 public final static class InvalidPubKeyHashLength extends LDKBolt11ParseError {
2447                         InvalidPubKeyHashLength() { }
2448                 }
2449                 public final static class InvalidScriptHashLength extends LDKBolt11ParseError {
2450                         InvalidScriptHashLength() { }
2451                 }
2452                 public final static class InvalidRecoveryId extends LDKBolt11ParseError {
2453                         InvalidRecoveryId() { }
2454                 }
2455                 public final static class InvalidSliceLength extends LDKBolt11ParseError {
2456                         public java.lang.String invalid_slice_length;
2457                         InvalidSliceLength(java.lang.String invalid_slice_length) { this.invalid_slice_length = invalid_slice_length; }
2458                 }
2459                 public final static class Skip extends LDKBolt11ParseError {
2460                         Skip() { }
2461                 }
2462                 static native void init();
2463         }
2464         static { LDKBolt11ParseError.init(); }
2465         public static native LDKBolt11ParseError LDKBolt11ParseError_ref_from_ptr(long ptr);
2466         // enum LDKSiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2467         public static native SiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(long owner);
2468         // struct LDKBolt11ParseError CResult_SiPrefixBolt11ParseErrorZ_get_err(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2469         public static native long CResult_SiPrefixBolt11ParseErrorZ_get_err(long owner);
2470         public static class LDKParseOrSemanticError {
2471                 private LDKParseOrSemanticError() {}
2472                 public final static class ParseError extends LDKParseOrSemanticError {
2473                         public long parse_error;
2474                         ParseError(long parse_error) { this.parse_error = parse_error; }
2475                 }
2476                 public final static class SemanticError extends LDKParseOrSemanticError {
2477                         public org.ldk.enums.Bolt11SemanticError semantic_error;
2478                         SemanticError(org.ldk.enums.Bolt11SemanticError semantic_error) { this.semantic_error = semantic_error; }
2479                 }
2480                 static native void init();
2481         }
2482         static { LDKParseOrSemanticError.init(); }
2483         public static native LDKParseOrSemanticError LDKParseOrSemanticError_ref_from_ptr(long ptr);
2484         // struct LDKBolt11Invoice CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2485         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(long owner);
2486         // struct LDKParseOrSemanticError CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2487         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(long owner);
2488         // struct LDKSignedRawBolt11Invoice CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2489         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(long owner);
2490         // struct LDKBolt11ParseError CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2491         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(long owner);
2492         // struct LDKRawBolt11Invoice C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2493         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(long owner);
2494         // struct LDKThirtyTwoBytes C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2495         public static native byte[] C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(long owner);
2496         // struct LDKBolt11InvoiceSignature C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2497         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(long owner);
2498         // struct LDKPayeePubKey CResult_PayeePubKeySecp256k1ErrorZ_get_ok(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
2499         public static native long CResult_PayeePubKeySecp256k1ErrorZ_get_ok(long owner);
2500         // enum LDKSecp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
2501         public static native Secp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(long owner);
2502         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2503         public static native long CResult_PositiveTimestampCreationErrorZ_get_ok(long owner);
2504         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2505         public static native CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long owner);
2506         // void CResult_NoneBolt11SemanticErrorZ_get_ok(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2507         public static native void CResult_NoneBolt11SemanticErrorZ_get_ok(long owner);
2508         // enum LDKBolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2509         public static native Bolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(long owner);
2510         // struct LDKBolt11Invoice CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2511         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(long owner);
2512         // enum LDKBolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2513         public static native Bolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(long owner);
2514         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2515         public static native long CResult_DescriptionCreationErrorZ_get_ok(long owner);
2516         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2517         public static native CreationError CResult_DescriptionCreationErrorZ_get_err(long owner);
2518         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2519         public static native long CResult_PrivateRouteCreationErrorZ_get_ok(long owner);
2520         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2521         public static native CreationError CResult_PrivateRouteCreationErrorZ_get_err(long owner);
2522         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2523         public static native long CResult_OutPointDecodeErrorZ_get_ok(long owner);
2524         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2525         public static native long CResult_OutPointDecodeErrorZ_get_err(long owner);
2526         // struct LDKBigSize CResult_BigSizeDecodeErrorZ_get_ok(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2527         public static native long CResult_BigSizeDecodeErrorZ_get_ok(long owner);
2528         // struct LDKDecodeError CResult_BigSizeDecodeErrorZ_get_err(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2529         public static native long CResult_BigSizeDecodeErrorZ_get_err(long owner);
2530         // struct LDKHostname CResult_HostnameDecodeErrorZ_get_ok(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2531         public static native long CResult_HostnameDecodeErrorZ_get_ok(long owner);
2532         // struct LDKDecodeError CResult_HostnameDecodeErrorZ_get_err(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2533         public static native long CResult_HostnameDecodeErrorZ_get_err(long owner);
2534         // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedNoneZ_get_ok(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2535         public static native long CResult_TransactionU16LenLimitedNoneZ_get_ok(long owner);
2536         // void CResult_TransactionU16LenLimitedNoneZ_get_err(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2537         public static native void CResult_TransactionU16LenLimitedNoneZ_get_err(long owner);
2538         // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2539         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(long owner);
2540         // struct LDKDecodeError CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2541         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(long owner);
2542         // struct LDKUntrustedString CResult_UntrustedStringDecodeErrorZ_get_ok(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2543         public static native long CResult_UntrustedStringDecodeErrorZ_get_ok(long owner);
2544         // struct LDKDecodeError CResult_UntrustedStringDecodeErrorZ_get_err(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2545         public static native long CResult_UntrustedStringDecodeErrorZ_get_err(long owner);
2546         // struct LDKReceiveTlvs CResult_ReceiveTlvsDecodeErrorZ_get_ok(LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR owner);
2547         public static native long CResult_ReceiveTlvsDecodeErrorZ_get_ok(long owner);
2548         // struct LDKDecodeError CResult_ReceiveTlvsDecodeErrorZ_get_err(LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR owner);
2549         public static native long CResult_ReceiveTlvsDecodeErrorZ_get_err(long owner);
2550         // struct LDKPaymentRelay CResult_PaymentRelayDecodeErrorZ_get_ok(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
2551         public static native long CResult_PaymentRelayDecodeErrorZ_get_ok(long owner);
2552         // struct LDKDecodeError CResult_PaymentRelayDecodeErrorZ_get_err(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
2553         public static native long CResult_PaymentRelayDecodeErrorZ_get_err(long owner);
2554         // struct LDKPaymentConstraints CResult_PaymentConstraintsDecodeErrorZ_get_ok(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
2555         public static native long CResult_PaymentConstraintsDecodeErrorZ_get_ok(long owner);
2556         // struct LDKDecodeError CResult_PaymentConstraintsDecodeErrorZ_get_err(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
2557         public static native long CResult_PaymentConstraintsDecodeErrorZ_get_err(long owner);
2558         public static class LDKPaymentError {
2559                 private LDKPaymentError() {}
2560                 public final static class Invoice extends LDKPaymentError {
2561                         public java.lang.String invoice;
2562                         Invoice(java.lang.String invoice) { this.invoice = invoice; }
2563                 }
2564                 public final static class Sending extends LDKPaymentError {
2565                         public org.ldk.enums.RetryableSendFailure sending;
2566                         Sending(org.ldk.enums.RetryableSendFailure sending) { this.sending = sending; }
2567                 }
2568                 static native void init();
2569         }
2570         static { LDKPaymentError.init(); }
2571         public static native LDKPaymentError LDKPaymentError_ref_from_ptr(long ptr);
2572         // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesPaymentErrorZ_get_ok(LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR owner);
2573         public static native byte[] CResult_ThirtyTwoBytesPaymentErrorZ_get_ok(long owner);
2574         // struct LDKPaymentError CResult_ThirtyTwoBytesPaymentErrorZ_get_err(LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR owner);
2575         public static native long CResult_ThirtyTwoBytesPaymentErrorZ_get_err(long owner);
2576         // void CResult_NonePaymentErrorZ_get_ok(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
2577         public static native void CResult_NonePaymentErrorZ_get_ok(long owner);
2578         // struct LDKPaymentError CResult_NonePaymentErrorZ_get_err(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
2579         public static native long CResult_NonePaymentErrorZ_get_err(long owner);
2580         public static class LDKProbingError {
2581                 private LDKProbingError() {}
2582                 public final static class Invoice extends LDKProbingError {
2583                         public java.lang.String invoice;
2584                         Invoice(java.lang.String invoice) { this.invoice = invoice; }
2585                 }
2586                 public final static class Sending extends LDKProbingError {
2587                         public long sending;
2588                         Sending(long sending) { this.sending = sending; }
2589                 }
2590                 static native void init();
2591         }
2592         static { LDKProbingError.init(); }
2593         public static native LDKProbingError LDKProbingError_ref_from_ptr(long ptr);
2594         // struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR owner);
2595         public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_ok(long owner);
2596         // struct LDKProbingError CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR owner);
2597         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_err(long owner);
2598         // struct LDKStr CResult_StrSecp256k1ErrorZ_get_ok(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
2599         public static native String CResult_StrSecp256k1ErrorZ_get_ok(long owner);
2600         // enum LDKSecp256k1Error CResult_StrSecp256k1ErrorZ_get_err(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
2601         public static native Secp256k1Error CResult_StrSecp256k1ErrorZ_get_err(long owner);
2602         // struct LDKOnionMessagePath CResult_OnionMessagePathNoneZ_get_ok(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
2603         public static native long CResult_OnionMessagePathNoneZ_get_ok(long owner);
2604         // void CResult_OnionMessagePathNoneZ_get_err(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
2605         public static native void CResult_OnionMessagePathNoneZ_get_err(long owner);
2606         // struct LDKPublicKey C2Tuple_PublicKeyOnionMessageZ_get_a(LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR owner);
2607         public static native byte[] C2Tuple_PublicKeyOnionMessageZ_get_a(long owner);
2608         // struct LDKOnionMessage C2Tuple_PublicKeyOnionMessageZ_get_b(LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR owner);
2609         public static native long C2Tuple_PublicKeyOnionMessageZ_get_b(long owner);
2610         public static class LDKSendError {
2611                 private LDKSendError() {}
2612                 public final static class Secp256k1 extends LDKSendError {
2613                         public org.ldk.enums.Secp256k1Error secp256k1;
2614                         Secp256k1(org.ldk.enums.Secp256k1Error secp256k1) { this.secp256k1 = secp256k1; }
2615                 }
2616                 public final static class TooBigPacket extends LDKSendError {
2617                         TooBigPacket() { }
2618                 }
2619                 public final static class TooFewBlindedHops extends LDKSendError {
2620                         TooFewBlindedHops() { }
2621                 }
2622                 public final static class InvalidFirstHop extends LDKSendError {
2623                         InvalidFirstHop() { }
2624                 }
2625                 public final static class InvalidMessage extends LDKSendError {
2626                         InvalidMessage() { }
2627                 }
2628                 public final static class BufferFull extends LDKSendError {
2629                         BufferFull() { }
2630                 }
2631                 public final static class GetNodeIdFailed extends LDKSendError {
2632                         GetNodeIdFailed() { }
2633                 }
2634                 public final static class BlindedPathAdvanceFailed extends LDKSendError {
2635                         BlindedPathAdvanceFailed() { }
2636                 }
2637                 static native void init();
2638         }
2639         static { LDKSendError.init(); }
2640         public static native LDKSendError LDKSendError_ref_from_ptr(long ptr);
2641         // struct LDKC2Tuple_PublicKeyOnionMessageZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_ok(LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR owner);
2642         public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_ok(long owner);
2643         // struct LDKSendError CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_err(LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR owner);
2644         public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_err(long owner);
2645         public static class LDKParsedOnionMessageContents {
2646                 private LDKParsedOnionMessageContents() {}
2647                 public final static class Offers extends LDKParsedOnionMessageContents {
2648                         public long offers;
2649                         Offers(long offers) { this.offers = offers; }
2650                 }
2651                 public final static class Custom extends LDKParsedOnionMessageContents {
2652                         public long custom;
2653                         Custom(long custom) { this.custom = custom; }
2654                 }
2655                 static native void init();
2656         }
2657         static { LDKParsedOnionMessageContents.init(); }
2658         public static native LDKParsedOnionMessageContents LDKParsedOnionMessageContents_ref_from_ptr(long ptr);
2659         public static class LDKPeeledOnion {
2660                 private LDKPeeledOnion() {}
2661                 public final static class Forward extends LDKPeeledOnion {
2662                         public byte[] _0;
2663                         public long _1;
2664                         Forward(byte[] _0, long _1) { this._0 = _0; this._1 = _1; }
2665                 }
2666                 public final static class Receive extends LDKPeeledOnion {
2667                         public long _0;
2668                         public byte[] _1;
2669                         public long _2;
2670                         Receive(long _0, byte[] _1, long _2) { this._0 = _0; this._1 = _1; this._2 = _2; }
2671                 }
2672                 static native void init();
2673         }
2674         static { LDKPeeledOnion.init(); }
2675         public static native LDKPeeledOnion LDKPeeledOnion_ref_from_ptr(long ptr);
2676         // struct LDKPeeledOnion CResult_PeeledOnionNoneZ_get_ok(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
2677         public static native long CResult_PeeledOnionNoneZ_get_ok(long owner);
2678         // void CResult_PeeledOnionNoneZ_get_err(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
2679         public static native void CResult_PeeledOnionNoneZ_get_err(long owner);
2680         // void CResult_NoneSendErrorZ_get_ok(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
2681         public static native void CResult_NoneSendErrorZ_get_ok(long owner);
2682         // struct LDKSendError CResult_NoneSendErrorZ_get_err(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
2683         public static native long CResult_NoneSendErrorZ_get_err(long owner);
2684         // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
2685         public static native long CResult_BlindedPathNoneZ_get_ok(long owner);
2686         // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
2687         public static native void CResult_BlindedPathNoneZ_get_err(long owner);
2688         // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
2689         public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(long owner);
2690         // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
2691         public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(long owner);
2692         // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
2693         public static native long CResult_BlindedPathDecodeErrorZ_get_ok(long owner);
2694         // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
2695         public static native long CResult_BlindedPathDecodeErrorZ_get_err(long owner);
2696         // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
2697         public static native long CResult_BlindedHopDecodeErrorZ_get_ok(long owner);
2698         // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
2699         public static native long CResult_BlindedHopDecodeErrorZ_get_err(long owner);
2700         // struct LDKInvoiceError CResult_InvoiceErrorDecodeErrorZ_get_ok(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
2701         public static native long CResult_InvoiceErrorDecodeErrorZ_get_ok(long owner);
2702         // struct LDKDecodeError CResult_InvoiceErrorDecodeErrorZ_get_err(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
2703         public static native long CResult_InvoiceErrorDecodeErrorZ_get_err(long owner);
2704         public interface LDKFilter {
2705                  void register_tx(byte[] txid, byte[] script_pubkey);
2706                  void register_output(long output);
2707         }
2708         public static native long LDKFilter_new(LDKFilter impl);
2709         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
2710         public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
2711         // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
2712         public static native void Filter_register_output(long this_arg, long output);
2713         public static class LDKCOption_FilterZ {
2714                 private LDKCOption_FilterZ() {}
2715                 public final static class Some extends LDKCOption_FilterZ {
2716                         public long some;
2717                         Some(long some) { this.some = some; }
2718                 }
2719                 public final static class None extends LDKCOption_FilterZ {
2720                         None() { }
2721                 }
2722                 static native void init();
2723         }
2724         static { LDKCOption_FilterZ.init(); }
2725         public static native LDKCOption_FilterZ LDKCOption_FilterZ_ref_from_ptr(long ptr);
2726         // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2727         public static native long CResult_LockedChannelMonitorNoneZ_get_ok(long owner);
2728         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2729         public static native void CResult_LockedChannelMonitorNoneZ_get_err(long owner);
2730         // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2731         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(long owner);
2732         // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2733         public static native long[] C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(long owner);
2734         public interface LDKKVStore {
2735                  long read(String primary_namespace, String secondary_namespace, String key);
2736                  long write(String primary_namespace, String secondary_namespace, String key, byte[] buf);
2737                  long remove(String primary_namespace, String secondary_namespace, String key, boolean lazy);
2738                  long list(String primary_namespace, String secondary_namespace);
2739         }
2740         public static native long LDKKVStore_new(LDKKVStore impl);
2741         // LDKCResult_CVec_u8ZIOErrorZ KVStore_read LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key
2742         public static native long KVStore_read(long this_arg, String primary_namespace, String secondary_namespace, String key);
2743         // LDKCResult_NoneIOErrorZ KVStore_write LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, struct LDKu8slice buf
2744         public static native long KVStore_write(long this_arg, String primary_namespace, String secondary_namespace, String key, byte[] buf);
2745         // LDKCResult_NoneIOErrorZ KVStore_remove LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, bool lazy
2746         public static native long KVStore_remove(long this_arg, String primary_namespace, String secondary_namespace, String key, boolean lazy);
2747         // LDKCResult_CVec_StrZIOErrorZ KVStore_list LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace
2748         public static native long KVStore_list(long this_arg, String primary_namespace, String secondary_namespace);
2749         public interface LDKPersister {
2750                  long persist_manager(long channel_manager);
2751                  long persist_graph(long network_graph);
2752                  long persist_scorer(long scorer);
2753         }
2754         public static native long LDKPersister_new(LDKPersister impl);
2755         // LDKCResult_NoneIOErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
2756         public static native long Persister_persist_manager(long this_arg, long channel_manager);
2757         // LDKCResult_NoneIOErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
2758         public static native long Persister_persist_graph(long this_arg, long network_graph);
2759         // LDKCResult_NoneIOErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
2760         public static native long Persister_persist_scorer(long this_arg, long scorer);
2761         public interface LDKPersist {
2762                  ChannelMonitorUpdateStatus persist_new_channel(long channel_id, long data, long update_id);
2763                  ChannelMonitorUpdateStatus update_persisted_channel(long channel_id, long update, long data, long update_id);
2764         }
2765         public static native long LDKPersist_new(LDKPersist impl);
2766         // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
2767         public static native ChannelMonitorUpdateStatus Persist_persist_new_channel(long this_arg, long channel_id, long data, long update_id);
2768         // LDKChannelMonitorUpdateStatus Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
2769         public static native ChannelMonitorUpdateStatus Persist_update_persisted_channel(long this_arg, long channel_id, long update, long data, long update_id);
2770         public interface LDKFutureCallback {
2771                  void call();
2772         }
2773         public static native long LDKFutureCallback_new(LDKFutureCallback impl);
2774         // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
2775         public static native void FutureCallback_call(long this_arg);
2776         public interface LDKListen {
2777                  void filtered_block_connected(byte[] header, long[] txdata, int height);
2778                  void block_connected(byte[] block, int height);
2779                  void block_disconnected(byte[] header, int height);
2780         }
2781         public static native long LDKListen_new(LDKListen impl);
2782         // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2783         public static native void Listen_filtered_block_connected(long this_arg, byte[] header, long[] txdata, int height);
2784         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
2785         public static native void Listen_block_connected(long this_arg, byte[] block, int height);
2786         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2787         public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
2788         public interface LDKConfirm {
2789                  void transactions_confirmed(byte[] header, long[] txdata, int height);
2790                  void transaction_unconfirmed(byte[] txid);
2791                  void best_block_updated(byte[] header, int height);
2792                  long[] get_relevant_txids();
2793         }
2794         public static native long LDKConfirm_new(LDKConfirm impl);
2795         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2796         public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
2797         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
2798         public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
2799         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2800         public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
2801         // LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
2802         public static native long[] Confirm_get_relevant_txids(long this_arg);
2803         public interface LDKEventHandler {
2804                  void handle_event(long event);
2805         }
2806         public static native long LDKEventHandler_new(LDKEventHandler impl);
2807         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
2808         public static native void EventHandler_handle_event(long this_arg, long event);
2809         public interface LDKEventsProvider {
2810                  void process_pending_events(long handler);
2811         }
2812         public static native long LDKEventsProvider_new(LDKEventsProvider impl);
2813         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
2814         public static native void EventsProvider_process_pending_events(long this_arg, long handler);
2815         public static class LDKFailureCode {
2816                 private LDKFailureCode() {}
2817                 public final static class TemporaryNodeFailure extends LDKFailureCode {
2818                         TemporaryNodeFailure() { }
2819                 }
2820                 public final static class RequiredNodeFeatureMissing extends LDKFailureCode {
2821                         RequiredNodeFeatureMissing() { }
2822                 }
2823                 public final static class IncorrectOrUnknownPaymentDetails extends LDKFailureCode {
2824                         IncorrectOrUnknownPaymentDetails() { }
2825                 }
2826                 public final static class InvalidOnionPayload extends LDKFailureCode {
2827                         public long invalid_onion_payload;
2828                         InvalidOnionPayload(long invalid_onion_payload) { this.invalid_onion_payload = invalid_onion_payload; }
2829                 }
2830                 static native void init();
2831         }
2832         static { LDKFailureCode.init(); }
2833         public static native LDKFailureCode LDKFailureCode_ref_from_ptr(long ptr);
2834         public interface LDKMessageSendEventsProvider {
2835                  long[] get_and_clear_pending_msg_events();
2836         }
2837         public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
2838         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
2839         public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
2840         public interface LDKChannelMessageHandler {
2841                  void handle_open_channel(byte[] their_node_id, long msg);
2842                  void handle_open_channel_v2(byte[] their_node_id, long msg);
2843                  void handle_accept_channel(byte[] their_node_id, long msg);
2844                  void handle_accept_channel_v2(byte[] their_node_id, long msg);
2845                  void handle_funding_created(byte[] their_node_id, long msg);
2846                  void handle_funding_signed(byte[] their_node_id, long msg);
2847                  void handle_channel_ready(byte[] their_node_id, long msg);
2848                  void handle_shutdown(byte[] their_node_id, long msg);
2849                  void handle_closing_signed(byte[] their_node_id, long msg);
2850                  void handle_tx_add_input(byte[] their_node_id, long msg);
2851                  void handle_tx_add_output(byte[] their_node_id, long msg);
2852                  void handle_tx_remove_input(byte[] their_node_id, long msg);
2853                  void handle_tx_remove_output(byte[] their_node_id, long msg);
2854                  void handle_tx_complete(byte[] their_node_id, long msg);
2855                  void handle_tx_signatures(byte[] their_node_id, long msg);
2856                  void handle_tx_init_rbf(byte[] their_node_id, long msg);
2857                  void handle_tx_ack_rbf(byte[] their_node_id, long msg);
2858                  void handle_tx_abort(byte[] their_node_id, long msg);
2859                  void handle_update_add_htlc(byte[] their_node_id, long msg);
2860                  void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
2861                  void handle_update_fail_htlc(byte[] their_node_id, long msg);
2862                  void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
2863                  void handle_commitment_signed(byte[] their_node_id, long msg);
2864                  void handle_revoke_and_ack(byte[] their_node_id, long msg);
2865                  void handle_update_fee(byte[] their_node_id, long msg);
2866                  void handle_announcement_signatures(byte[] their_node_id, long msg);
2867                  void peer_disconnected(byte[] their_node_id);
2868                  long peer_connected(byte[] their_node_id, long msg, boolean inbound);
2869                  void handle_channel_reestablish(byte[] their_node_id, long msg);
2870                  void handle_channel_update(byte[] their_node_id, long msg);
2871                  void handle_error(byte[] their_node_id, long msg);
2872                  long provided_node_features();
2873                  long provided_init_features(byte[] their_node_id);
2874                  long get_chain_hashes();
2875         }
2876         public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
2877         public static native long LDKChannelMessageHandler_get_MessageSendEventsProvider(long arg);
2878         // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg
2879         public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long msg);
2880         // void ChannelMessageHandler_handle_open_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannelV2 *NONNULL_PTR msg
2881         public static native void ChannelMessageHandler_handle_open_channel_v2(long this_arg, byte[] their_node_id, long msg);
2882         // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg
2883         public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long msg);
2884         // void ChannelMessageHandler_handle_accept_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannelV2 *NONNULL_PTR msg
2885         public static native void ChannelMessageHandler_handle_accept_channel_v2(long this_arg, byte[] their_node_id, long msg);
2886         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
2887         public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
2888         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
2889         public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
2890         // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
2891         public static native void ChannelMessageHandler_handle_channel_ready(long this_arg, byte[] their_node_id, long msg);
2892         // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
2893         public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long msg);
2894         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
2895         public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
2896         // void ChannelMessageHandler_handle_tx_add_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddInput *NONNULL_PTR msg
2897         public static native void ChannelMessageHandler_handle_tx_add_input(long this_arg, byte[] their_node_id, long msg);
2898         // void ChannelMessageHandler_handle_tx_add_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddOutput *NONNULL_PTR msg
2899         public static native void ChannelMessageHandler_handle_tx_add_output(long this_arg, byte[] their_node_id, long msg);
2900         // void ChannelMessageHandler_handle_tx_remove_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveInput *NONNULL_PTR msg
2901         public static native void ChannelMessageHandler_handle_tx_remove_input(long this_arg, byte[] their_node_id, long msg);
2902         // void ChannelMessageHandler_handle_tx_remove_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveOutput *NONNULL_PTR msg
2903         public static native void ChannelMessageHandler_handle_tx_remove_output(long this_arg, byte[] their_node_id, long msg);
2904         // void ChannelMessageHandler_handle_tx_complete LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxComplete *NONNULL_PTR msg
2905         public static native void ChannelMessageHandler_handle_tx_complete(long this_arg, byte[] their_node_id, long msg);
2906         // void ChannelMessageHandler_handle_tx_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxSignatures *NONNULL_PTR msg
2907         public static native void ChannelMessageHandler_handle_tx_signatures(long this_arg, byte[] their_node_id, long msg);
2908         // void ChannelMessageHandler_handle_tx_init_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxInitRbf *NONNULL_PTR msg
2909         public static native void ChannelMessageHandler_handle_tx_init_rbf(long this_arg, byte[] their_node_id, long msg);
2910         // void ChannelMessageHandler_handle_tx_ack_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAckRbf *NONNULL_PTR msg
2911         public static native void ChannelMessageHandler_handle_tx_ack_rbf(long this_arg, byte[] their_node_id, long msg);
2912         // void ChannelMessageHandler_handle_tx_abort LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAbort *NONNULL_PTR msg
2913         public static native void ChannelMessageHandler_handle_tx_abort(long this_arg, byte[] their_node_id, long msg);
2914         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
2915         public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
2916         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
2917         public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
2918         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
2919         public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
2920         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
2921         public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
2922         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
2923         public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
2924         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
2925         public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
2926         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
2927         public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
2928         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
2929         public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
2930         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2931         public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
2932         // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound
2933         public static native long ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg, boolean inbound);
2934         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
2935         public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
2936         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
2937         public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
2938         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
2939         public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
2940         // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
2941         public static native long ChannelMessageHandler_provided_node_features(long this_arg);
2942         // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2943         public static native long ChannelMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2944         // LDKCOption_CVec_ThirtyTwoBytesZZ ChannelMessageHandler_get_chain_hashes LDKChannelMessageHandler *NONNULL_PTR this_arg
2945         public static native long ChannelMessageHandler_get_chain_hashes(long this_arg);
2946         public interface LDKOffersMessageHandler {
2947                  long handle_message(long message);
2948                  long[] release_pending_messages();
2949         }
2950         public static native long LDKOffersMessageHandler_new(LDKOffersMessageHandler impl);
2951         // LDKCOption_OffersMessageZ OffersMessageHandler_handle_message LDKOffersMessageHandler *NONNULL_PTR this_arg, struct LDKOffersMessage message
2952         public static native long OffersMessageHandler_handle_message(long this_arg, long message);
2953         // LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ OffersMessageHandler_release_pending_messages LDKOffersMessageHandler *NONNULL_PTR this_arg
2954         public static native long[] OffersMessageHandler_release_pending_messages(long this_arg);
2955         public interface LDKRoutingMessageHandler {
2956                  long handle_node_announcement(long msg);
2957                  long handle_channel_announcement(long msg);
2958                  long handle_channel_update(long msg);
2959                  long get_next_channel_announcement(long starting_point);
2960                  long get_next_node_announcement(long starting_point);
2961                  long peer_connected(byte[] their_node_id, long init, boolean inbound);
2962                  long handle_reply_channel_range(byte[] their_node_id, long msg);
2963                  long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
2964                  long handle_query_channel_range(byte[] their_node_id, long msg);
2965                  long handle_query_short_channel_ids(byte[] their_node_id, long msg);
2966                  boolean processing_queue_high();
2967                  long provided_node_features();
2968                  long provided_init_features(byte[] their_node_id);
2969         }
2970         public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
2971         public static native long LDKRoutingMessageHandler_get_MessageSendEventsProvider(long arg);
2972         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
2973         public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
2974         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
2975         public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
2976         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
2977         public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
2978         // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
2979         public static native long RoutingMessageHandler_get_next_channel_announcement(long this_arg, long starting_point);
2980         // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point
2981         public static native long RoutingMessageHandler_get_next_node_announcement(long this_arg, long starting_point);
2982         // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
2983         public static native long RoutingMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
2984         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
2985         public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
2986         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
2987         public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
2988         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
2989         public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
2990         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
2991         public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
2992         // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg
2993         public static native boolean RoutingMessageHandler_processing_queue_high(long this_arg);
2994         // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
2995         public static native long RoutingMessageHandler_provided_node_features(long this_arg);
2996         // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2997         public static native long RoutingMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2998         public interface LDKOnionMessageHandler {
2999                  void handle_onion_message(byte[] peer_node_id, long msg);
3000                  long next_onion_message_for_peer(byte[] peer_node_id);
3001                  long peer_connected(byte[] their_node_id, long init, boolean inbound);
3002                  void peer_disconnected(byte[] their_node_id);
3003                  long provided_node_features();
3004                  long provided_init_features(byte[] their_node_id);
3005         }
3006         public static native long LDKOnionMessageHandler_new(LDKOnionMessageHandler impl);
3007         // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
3008         public static native void OnionMessageHandler_handle_onion_message(long this_arg, byte[] peer_node_id, long msg);
3009         // LDKOnionMessage OnionMessageHandler_next_onion_message_for_peer LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
3010         public static native long OnionMessageHandler_next_onion_message_for_peer(long this_arg, byte[] peer_node_id);
3011         // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
3012         public static native long OnionMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
3013         // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3014         public static native void OnionMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
3015         // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
3016         public static native long OnionMessageHandler_provided_node_features(long this_arg);
3017         // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3018         public static native long OnionMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3019         public interface LDKCustomMessageReader {
3020                  long read(short message_type, byte[] buffer);
3021         }
3022         public static native long LDKCustomMessageReader_new(LDKCustomMessageReader impl);
3023         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
3024         public static native long CustomMessageReader_read(long this_arg, short message_type, byte[] buffer);
3025         public interface LDKCustomMessageHandler {
3026                  long handle_custom_message(long msg, byte[] sender_node_id);
3027                  long[] get_and_clear_pending_msg();
3028                  long provided_node_features();
3029                  long provided_init_features(byte[] their_node_id);
3030         }
3031         public static native long LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, LDKCustomMessageReader CustomMessageReader);
3032         public static native long LDKCustomMessageHandler_get_CustomMessageReader(long arg);
3033         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
3034         public static native long CustomMessageHandler_handle_custom_message(long this_arg, long msg, byte[] sender_node_id);
3035         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
3036         public static native long[] CustomMessageHandler_get_and_clear_pending_msg(long this_arg);
3037         // LDKNodeFeatures CustomMessageHandler_provided_node_features LDKCustomMessageHandler *NONNULL_PTR this_arg
3038         public static native long CustomMessageHandler_provided_node_features(long this_arg);
3039         // LDKInitFeatures CustomMessageHandler_provided_init_features LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3040         public static native long CustomMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3041         public interface LDKCustomOnionMessageHandler {
3042                  long handle_custom_message(long msg);
3043                  long read_custom_message(long message_type, byte[] buffer);
3044                  long[] release_pending_custom_messages();
3045         }
3046         public static native long LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandler impl);
3047         // LDKCOption_OnionMessageContentsZ CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKOnionMessageContents msg
3048         public static native long CustomOnionMessageHandler_handle_custom_message(long this_arg, long msg);
3049         // LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer
3050         public static native long CustomOnionMessageHandler_read_custom_message(long this_arg, long message_type, byte[] buffer);
3051         // LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ CustomOnionMessageHandler_release_pending_custom_messages LDKCustomOnionMessageHandler *NONNULL_PTR this_arg
3052         public static native long[] CustomOnionMessageHandler_release_pending_custom_messages(long this_arg);
3053         public interface LDKSocketDescriptor {
3054                  long send_data(byte[] data, boolean resume_read);
3055                  void disconnect_socket();
3056                  boolean eq(long other_arg);
3057                  long hash();
3058         }
3059         public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
3060         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
3061         public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
3062         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
3063         public static native void SocketDescriptor_disconnect_socket(long this_arg);
3064         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
3065         public static native long SocketDescriptor_hash(long this_arg);
3066         public static class LDKEffectiveCapacity {
3067                 private LDKEffectiveCapacity() {}
3068                 public final static class ExactLiquidity extends LDKEffectiveCapacity {
3069                         public long liquidity_msat;
3070                         ExactLiquidity(long liquidity_msat) { this.liquidity_msat = liquidity_msat; }
3071                 }
3072                 public final static class AdvertisedMaxHTLC extends LDKEffectiveCapacity {
3073                         public long amount_msat;
3074                         AdvertisedMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
3075                 }
3076                 public final static class Total extends LDKEffectiveCapacity {
3077                         public long capacity_msat;
3078                         public long htlc_maximum_msat;
3079                         Total(long capacity_msat, long htlc_maximum_msat) { this.capacity_msat = capacity_msat; this.htlc_maximum_msat = htlc_maximum_msat; }
3080                 }
3081                 public final static class Infinite extends LDKEffectiveCapacity {
3082                         Infinite() { }
3083                 }
3084                 public final static class HintMaxHTLC extends LDKEffectiveCapacity {
3085                         public long amount_msat;
3086                         HintMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
3087                 }
3088                 public final static class Unknown extends LDKEffectiveCapacity {
3089                         Unknown() { }
3090                 }
3091                 static native void init();
3092         }
3093         static { LDKEffectiveCapacity.init(); }
3094         public static native LDKEffectiveCapacity LDKEffectiveCapacity_ref_from_ptr(long ptr);
3095         public static class LDKPayee {
3096                 private LDKPayee() {}
3097                 public final static class Blinded extends LDKPayee {
3098                         public long[] route_hints;
3099                         public long features;
3100                         Blinded(long[] route_hints, long features) { this.route_hints = route_hints; this.features = features; }
3101                 }
3102                 public final static class Clear extends LDKPayee {
3103                         public byte[] node_id;
3104                         public long[] route_hints;
3105                         public long features;
3106                         public int final_cltv_expiry_delta;
3107                         Clear(byte[] node_id, long[] route_hints, long features, int final_cltv_expiry_delta) { this.node_id = node_id; this.route_hints = route_hints; this.features = features; this.final_cltv_expiry_delta = final_cltv_expiry_delta; }
3108                 }
3109                 static native void init();
3110         }
3111         static { LDKPayee.init(); }
3112         public static native LDKPayee LDKPayee_ref_from_ptr(long ptr);
3113         public interface LDKScore {
3114                  byte[] write();
3115         }
3116         public static native long LDKScore_new(LDKScore impl, LDKScoreLookUp ScoreLookUp, LDKScoreUpdate ScoreUpdate);
3117         public static native long LDKScore_get_ScoreLookUp(long arg);
3118         public static native long LDKScore_get_ScoreUpdate(long arg);
3119         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
3120         public static native byte[] Score_write(long this_arg);
3121         public interface LDKMessageRouter {
3122                  long find_path(byte[] sender, byte[][] peers, long destination);
3123         }
3124         public static native long LDKMessageRouter_new(LDKMessageRouter impl);
3125         // LDKCResult_OnionMessagePathNoneZ MessageRouter_find_path LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey sender, struct LDKCVec_PublicKeyZ peers, struct LDKDestination destination
3126         public static native long MessageRouter_find_path(long this_arg, byte[] sender, byte[][] peers, long destination);
3127         public interface LDKCoinSelectionSource {
3128                  long select_confirmed_utxos(byte[] claim_id, long[] must_spend, long[] must_pay_to, int target_feerate_sat_per_1000_weight);
3129                  long sign_tx(byte[] tx);
3130         }
3131         public static native long LDKCoinSelectionSource_new(LDKCoinSelectionSource impl);
3132         // LDKCResult_CoinSelectionNoneZ CoinSelectionSource_select_confirmed_utxos LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes claim_id, struct LDKCVec_InputZ must_spend, struct LDKCVec_TxOutZ must_pay_to, uint32_t target_feerate_sat_per_1000_weight
3133         public static native long CoinSelectionSource_select_confirmed_utxos(long this_arg, byte[] claim_id, long[] must_spend, long[] must_pay_to, int target_feerate_sat_per_1000_weight);
3134         // LDKCResult_TransactionNoneZ CoinSelectionSource_sign_tx LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKTransaction tx
3135         public static native long CoinSelectionSource_sign_tx(long this_arg, byte[] tx);
3136         public interface LDKWalletSource {
3137                  long list_confirmed_utxos();
3138                  long get_change_script();
3139                  long sign_tx(byte[] tx);
3140         }
3141         public static native long LDKWalletSource_new(LDKWalletSource impl);
3142         // LDKCResult_CVec_UtxoZNoneZ WalletSource_list_confirmed_utxos LDKWalletSource *NONNULL_PTR this_arg
3143         public static native long WalletSource_list_confirmed_utxos(long this_arg);
3144         // LDKCResult_CVec_u8ZNoneZ WalletSource_get_change_script LDKWalletSource *NONNULL_PTR this_arg
3145         public static native long WalletSource_get_change_script(long this_arg);
3146         // LDKCResult_TransactionNoneZ WalletSource_sign_tx LDKWalletSource *NONNULL_PTR this_arg, struct LDKTransaction tx
3147         public static native long WalletSource_sign_tx(long this_arg, byte[] tx);
3148         public static class LDKGossipSync {
3149                 private LDKGossipSync() {}
3150                 public final static class P2P extends LDKGossipSync {
3151                         public long p2p;
3152                         P2P(long p2p) { this.p2p = p2p; }
3153                 }
3154                 public final static class Rapid extends LDKGossipSync {
3155                         public long rapid;
3156                         Rapid(long rapid) { this.rapid = rapid; }
3157                 }
3158                 public final static class None extends LDKGossipSync {
3159                         None() { }
3160                 }
3161                 static native void init();
3162         }
3163         static { LDKGossipSync.init(); }
3164         public static native LDKGossipSync LDKGossipSync_ref_from_ptr(long ptr);
3165         public static class LDKFallback {
3166                 private LDKFallback() {}
3167                 public final static class SegWitProgram extends LDKFallback {
3168                         public byte version;
3169                         public byte[] program;
3170                         SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
3171                 }
3172                 public final static class PubKeyHash extends LDKFallback {
3173                         public byte[] pub_key_hash;
3174                         PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
3175                 }
3176                 public final static class ScriptHash extends LDKFallback {
3177                         public byte[] script_hash;
3178                         ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
3179                 }
3180                 static native void init();
3181         }
3182         static { LDKFallback.init(); }
3183         public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
3184         // struct LDKStr _ldk_get_compiled_version(void);
3185         public static native String _ldk_get_compiled_version();
3186         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
3187         public static native String _ldk_c_bindings_get_compiled_version();
3188         // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
3189         public static native byte[] U128_le_bytes(byte[] val);
3190         // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
3191         public static native byte[] U128_new(byte[] le_bytes);
3192         // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
3193         public static native long BigEndianScalar_new(byte[] big_endian_bytes);
3194         // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
3195         public static native long Bech32Error_clone_ptr(long arg);
3196         // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
3197         public static native long Bech32Error_clone(long orig);
3198         // void Bech32Error_free(struct LDKBech32Error o);
3199         public static native void Bech32Error_free(long o);
3200         // void Transaction_free(struct LDKTransaction _res);
3201         public static native void Transaction_free(byte[] _res);
3202         // void Witness_free(struct LDKWitness _res);
3203         public static native void Witness_free(byte[] _res);
3204         // void TxIn_free(struct LDKTxIn _res);
3205         public static native void TxIn_free(long _res);
3206         // struct LDKTxIn TxIn_new(struct LDKWitness witness, struct LDKCVec_u8Z script_sig, uint32_t sequence, struct LDKThirtyTwoBytes previous_txid, uint32_t previous_vout);
3207         public static native long TxIn_new(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout);
3208         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
3209         public static native long TxOut_new(byte[] script_pubkey, long value);
3210         // void TxOut_free(struct LDKTxOut _res);
3211         public static native void TxOut_free(long _res);
3212         // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
3213         public static native long TxOut_clone_ptr(long arg);
3214         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
3215         public static native long TxOut_clone(long orig);
3216         // void Str_free(struct LDKStr _res);
3217         public static native void Str_free(String _res);
3218         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
3219         public static native long COption_u64Z_some(long o);
3220         // struct LDKCOption_u64Z COption_u64Z_none(void);
3221         public static native long COption_u64Z_none();
3222         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
3223         public static native void COption_u64Z_free(long _res);
3224         // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
3225         public static native long COption_u64Z_clone_ptr(long arg);
3226         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
3227         public static native long COption_u64Z_clone(long orig);
3228         // void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res);
3229         public static native void CVec_BlindedPathZ_free(long[] _res);
3230         // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o);
3231         public static native long CResult_RefundBolt12ParseErrorZ_ok(long o);
3232         // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
3233         public static native long CResult_RefundBolt12ParseErrorZ_err(long e);
3234         // bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o);
3235         public static native boolean CResult_RefundBolt12ParseErrorZ_is_ok(long o);
3236         // void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res);
3237         public static native void CResult_RefundBolt12ParseErrorZ_free(long _res);
3238         // uint64_t CResult_RefundBolt12ParseErrorZ_clone_ptr(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR arg);
3239         public static native long CResult_RefundBolt12ParseErrorZ_clone_ptr(long arg);
3240         // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig);
3241         public static native long CResult_RefundBolt12ParseErrorZ_clone(long orig);
3242         // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_ok(struct LDKRetry o);
3243         public static native long CResult_RetryDecodeErrorZ_ok(long o);
3244         // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_err(struct LDKDecodeError e);
3245         public static native long CResult_RetryDecodeErrorZ_err(long e);
3246         // bool CResult_RetryDecodeErrorZ_is_ok(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR o);
3247         public static native boolean CResult_RetryDecodeErrorZ_is_ok(long o);
3248         // void CResult_RetryDecodeErrorZ_free(struct LDKCResult_RetryDecodeErrorZ _res);
3249         public static native void CResult_RetryDecodeErrorZ_free(long _res);
3250         // uint64_t CResult_RetryDecodeErrorZ_clone_ptr(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR arg);
3251         public static native long CResult_RetryDecodeErrorZ_clone_ptr(long arg);
3252         // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_clone(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR orig);
3253         public static native long CResult_RetryDecodeErrorZ_clone(long orig);
3254         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
3255         public static native long CResult_NoneAPIErrorZ_ok();
3256         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
3257         public static native long CResult_NoneAPIErrorZ_err(long e);
3258         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
3259         public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
3260         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
3261         public static native void CResult_NoneAPIErrorZ_free(long _res);
3262         // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
3263         public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
3264         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
3265         public static native long CResult_NoneAPIErrorZ_clone(long orig);
3266         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
3267         public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
3268         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
3269         public static native void CVec_APIErrorZ_free(long[] _res);
3270         // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_some(struct LDKThirtyTwoBytes o);
3271         public static native long COption_ThirtyTwoBytesZ_some(byte[] o);
3272         // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_none(void);
3273         public static native long COption_ThirtyTwoBytesZ_none();
3274         // void COption_ThirtyTwoBytesZ_free(struct LDKCOption_ThirtyTwoBytesZ _res);
3275         public static native void COption_ThirtyTwoBytesZ_free(long _res);
3276         // uint64_t COption_ThirtyTwoBytesZ_clone_ptr(LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR arg);
3277         public static native long COption_ThirtyTwoBytesZ_clone_ptr(long arg);
3278         // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_clone(const struct LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR orig);
3279         public static native long COption_ThirtyTwoBytesZ_clone(long orig);
3280         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
3281         public static native void CVec_u8Z_free(byte[] _res);
3282         // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o);
3283         public static native long COption_CVec_u8ZZ_some(byte[] o);
3284         // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_none(void);
3285         public static native long COption_CVec_u8ZZ_none();
3286         // void COption_CVec_u8ZZ_free(struct LDKCOption_CVec_u8ZZ _res);
3287         public static native void COption_CVec_u8ZZ_free(long _res);
3288         // uint64_t COption_CVec_u8ZZ_clone_ptr(LDKCOption_CVec_u8ZZ *NONNULL_PTR arg);
3289         public static native long COption_CVec_u8ZZ_clone_ptr(long arg);
3290         // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_clone(const struct LDKCOption_CVec_u8ZZ *NONNULL_PTR orig);
3291         public static native long COption_CVec_u8ZZ_clone(long orig);
3292         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_ok(struct LDKRecipientOnionFields o);
3293         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_ok(long o);
3294         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_err(struct LDKDecodeError e);
3295         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_err(long e);
3296         // bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR o);
3297         public static native boolean CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(long o);
3298         // void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOnionFieldsDecodeErrorZ _res);
3299         public static native void CResult_RecipientOnionFieldsDecodeErrorZ_free(long _res);
3300         // uint64_t CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR arg);
3301         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(long arg);
3302         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig);
3303         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone(long orig);
3304         // uint64_t C2Tuple_u64CVec_u8ZZ_clone_ptr(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR arg);
3305         public static native long C2Tuple_u64CVec_u8ZZ_clone_ptr(long arg);
3306         // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_clone(const struct LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR orig);
3307         public static native long C2Tuple_u64CVec_u8ZZ_clone(long orig);
3308         // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_new(uint64_t a, struct LDKCVec_u8Z b);
3309         public static native long C2Tuple_u64CVec_u8ZZ_new(long a, byte[] b);
3310         // void C2Tuple_u64CVec_u8ZZ_free(struct LDKC2Tuple_u64CVec_u8ZZ _res);
3311         public static native void C2Tuple_u64CVec_u8ZZ_free(long _res);
3312         // void CVec_C2Tuple_u64CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u64CVec_u8ZZZ _res);
3313         public static native void CVec_C2Tuple_u64CVec_u8ZZZ_free(long[] _res);
3314         // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_ok(struct LDKRecipientOnionFields o);
3315         public static native long CResult_RecipientOnionFieldsNoneZ_ok(long o);
3316         // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_err(void);
3317         public static native long CResult_RecipientOnionFieldsNoneZ_err();
3318         // bool CResult_RecipientOnionFieldsNoneZ_is_ok(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR o);
3319         public static native boolean CResult_RecipientOnionFieldsNoneZ_is_ok(long o);
3320         // void CResult_RecipientOnionFieldsNoneZ_free(struct LDKCResult_RecipientOnionFieldsNoneZ _res);
3321         public static native void CResult_RecipientOnionFieldsNoneZ_free(long _res);
3322         // uint64_t CResult_RecipientOnionFieldsNoneZ_clone_ptr(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR arg);
3323         public static native long CResult_RecipientOnionFieldsNoneZ_clone_ptr(long arg);
3324         // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_clone(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR orig);
3325         public static native long CResult_RecipientOnionFieldsNoneZ_clone(long orig);
3326         // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
3327         public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
3328         // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_some(struct LDKCVec_ThirtyTwoBytesZ o);
3329         public static native long COption_CVec_ThirtyTwoBytesZZ_some(byte[][] o);
3330         // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_none(void);
3331         public static native long COption_CVec_ThirtyTwoBytesZZ_none();
3332         // void COption_CVec_ThirtyTwoBytesZZ_free(struct LDKCOption_CVec_ThirtyTwoBytesZZ _res);
3333         public static native void COption_CVec_ThirtyTwoBytesZZ_free(long _res);
3334         // uint64_t COption_CVec_ThirtyTwoBytesZZ_clone_ptr(LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR arg);
3335         public static native long COption_CVec_ThirtyTwoBytesZZ_clone_ptr(long arg);
3336         // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_clone(const struct LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR orig);
3337         public static native long COption_CVec_ThirtyTwoBytesZZ_clone(long orig);
3338         // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o);
3339         public static native long CResult_ThirtyTwoBytesNoneZ_ok(byte[] o);
3340         // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_err(void);
3341         public static native long CResult_ThirtyTwoBytesNoneZ_err();
3342         // bool CResult_ThirtyTwoBytesNoneZ_is_ok(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR o);
3343         public static native boolean CResult_ThirtyTwoBytesNoneZ_is_ok(long o);
3344         // void CResult_ThirtyTwoBytesNoneZ_free(struct LDKCResult_ThirtyTwoBytesNoneZ _res);
3345         public static native void CResult_ThirtyTwoBytesNoneZ_free(long _res);
3346         // uint64_t CResult_ThirtyTwoBytesNoneZ_clone_ptr(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR arg);
3347         public static native long CResult_ThirtyTwoBytesNoneZ_clone_ptr(long arg);
3348         // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_clone(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR orig);
3349         public static native long CResult_ThirtyTwoBytesNoneZ_clone(long orig);
3350         // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_ok(struct LDKBlindedPayInfo o);
3351         public static native long CResult_BlindedPayInfoDecodeErrorZ_ok(long o);
3352         // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_err(struct LDKDecodeError e);
3353         public static native long CResult_BlindedPayInfoDecodeErrorZ_err(long e);
3354         // bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR o);
3355         public static native boolean CResult_BlindedPayInfoDecodeErrorZ_is_ok(long o);
3356         // void CResult_BlindedPayInfoDecodeErrorZ_free(struct LDKCResult_BlindedPayInfoDecodeErrorZ _res);
3357         public static native void CResult_BlindedPayInfoDecodeErrorZ_free(long _res);
3358         // uint64_t CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR arg);
3359         public static native long CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(long arg);
3360         // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_clone(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR orig);
3361         public static native long CResult_BlindedPayInfoDecodeErrorZ_clone(long orig);
3362         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
3363         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3364         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3365         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
3366         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3367         public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3368         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
3369         public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3370         // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3371         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3372         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3373         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3374         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
3375         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3376         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3377         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
3378         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3379         public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3380         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
3381         public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3382         // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3383         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3384         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3385         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3386         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
3387         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
3388         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3389         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
3390         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3391         public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
3392         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
3393         public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
3394         // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3395         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3396         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3397         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
3398         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
3399         public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
3400         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
3401         public static native void CVec_TxOutZ_free(long[] _res);
3402         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
3403         public static native long COption_u32Z_some(int o);
3404         // struct LDKCOption_u32Z COption_u32Z_none(void);
3405         public static native long COption_u32Z_none();
3406         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
3407         public static native void COption_u32Z_free(long _res);
3408         // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
3409         public static native long COption_u32Z_clone_ptr(long arg);
3410         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
3411         public static native long COption_u32Z_clone(long orig);
3412         // uint64_t C2Tuple_CVec_u8ZusizeZ_clone_ptr(LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR arg);
3413         public static native long C2Tuple_CVec_u8ZusizeZ_clone_ptr(long arg);
3414         // struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_clone(const struct LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR orig);
3415         public static native long C2Tuple_CVec_u8ZusizeZ_clone(long orig);
3416         // struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_new(struct LDKCVec_u8Z a, uintptr_t b);
3417         public static native long C2Tuple_CVec_u8ZusizeZ_new(byte[] a, long b);
3418         // void C2Tuple_CVec_u8ZusizeZ_free(struct LDKC2Tuple_CVec_u8ZusizeZ _res);
3419         public static native void C2Tuple_CVec_u8ZusizeZ_free(long _res);
3420         // struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_ok(struct LDKC2Tuple_CVec_u8ZusizeZ o);
3421         public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_ok(long o);
3422         // struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_err(void);
3423         public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_err();
3424         // bool CResult_C2Tuple_CVec_u8ZusizeZNoneZ_is_ok(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR o);
3425         public static native boolean CResult_C2Tuple_CVec_u8ZusizeZNoneZ_is_ok(long o);
3426         // void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_free(struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ _res);
3427         public static native void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_free(long _res);
3428         // uint64_t CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone_ptr(LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR arg);
3429         public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone_ptr(long arg);
3430         // struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR orig);
3431         public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone(long orig);
3432         // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_ok(struct LDKChannelDerivationParameters o);
3433         public static native long CResult_ChannelDerivationParametersDecodeErrorZ_ok(long o);
3434         // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_err(struct LDKDecodeError e);
3435         public static native long CResult_ChannelDerivationParametersDecodeErrorZ_err(long e);
3436         // bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR o);
3437         public static native boolean CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(long o);
3438         // void CResult_ChannelDerivationParametersDecodeErrorZ_free(struct LDKCResult_ChannelDerivationParametersDecodeErrorZ _res);
3439         public static native void CResult_ChannelDerivationParametersDecodeErrorZ_free(long _res);
3440         // uint64_t CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR arg);
3441         public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(long arg);
3442         // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR orig);
3443         public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone(long orig);
3444         // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_ok(struct LDKHTLCDescriptor o);
3445         public static native long CResult_HTLCDescriptorDecodeErrorZ_ok(long o);
3446         // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3447         public static native long CResult_HTLCDescriptorDecodeErrorZ_err(long e);
3448         // bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR o);
3449         public static native boolean CResult_HTLCDescriptorDecodeErrorZ_is_ok(long o);
3450         // void CResult_HTLCDescriptorDecodeErrorZ_free(struct LDKCResult_HTLCDescriptorDecodeErrorZ _res);
3451         public static native void CResult_HTLCDescriptorDecodeErrorZ_free(long _res);
3452         // uint64_t CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR arg);
3453         public static native long CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(long arg);
3454         // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_clone(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR orig);
3455         public static native long CResult_HTLCDescriptorDecodeErrorZ_clone(long orig);
3456         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
3457         public static native long CResult_NoneNoneZ_ok();
3458         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
3459         public static native long CResult_NoneNoneZ_err();
3460         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
3461         public static native boolean CResult_NoneNoneZ_is_ok(long o);
3462         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
3463         public static native void CResult_NoneNoneZ_free(long _res);
3464         // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
3465         public static native long CResult_NoneNoneZ_clone_ptr(long arg);
3466         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
3467         public static native long CResult_NoneNoneZ_clone(long orig);
3468         // void CVec_ECDSASignatureZ_free(struct LDKCVec_ECDSASignatureZ _res);
3469         public static native void CVec_ECDSASignatureZ_free(byte[][] _res);
3470         // uint64_t C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR arg);
3471         public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(long arg);
3472         // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(const struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR orig);
3473         public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(long orig);
3474         // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(struct LDKECDSASignature a, struct LDKCVec_ECDSASignatureZ b);
3475         public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(byte[] a, byte[][] b);
3476         // void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ _res);
3477         public static native void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(long _res);
3478         // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ o);
3479         public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(long o);
3480         // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(void);
3481         public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err();
3482         // bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR o);
3483         public static native boolean CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(long o);
3484         // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ _res);
3485         public static native void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(long _res);
3486         // uint64_t CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR arg);
3487         public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(long arg);
3488         // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR orig);
3489         public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(long orig);
3490         // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o);
3491         public static native long CResult_ECDSASignatureNoneZ_ok(byte[] o);
3492         // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void);
3493         public static native long CResult_ECDSASignatureNoneZ_err();
3494         // bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o);
3495         public static native boolean CResult_ECDSASignatureNoneZ_is_ok(long o);
3496         // void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res);
3497         public static native void CResult_ECDSASignatureNoneZ_free(long _res);
3498         // uint64_t CResult_ECDSASignatureNoneZ_clone_ptr(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR arg);
3499         public static native long CResult_ECDSASignatureNoneZ_clone_ptr(long arg);
3500         // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig);
3501         public static native long CResult_ECDSASignatureNoneZ_clone(long orig);
3502         // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
3503         public static native long CResult_PublicKeyNoneZ_ok(byte[] o);
3504         // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
3505         public static native long CResult_PublicKeyNoneZ_err();
3506         // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
3507         public static native boolean CResult_PublicKeyNoneZ_is_ok(long o);
3508         // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
3509         public static native void CResult_PublicKeyNoneZ_free(long _res);
3510         // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
3511         public static native long CResult_PublicKeyNoneZ_clone_ptr(long arg);
3512         // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
3513         public static native long CResult_PublicKeyNoneZ_clone(long orig);
3514         // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_some(struct LDKBigEndianScalar o);
3515         public static native long COption_BigEndianScalarZ_some(long o);
3516         // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_none(void);
3517         public static native long COption_BigEndianScalarZ_none();
3518         // void COption_BigEndianScalarZ_free(struct LDKCOption_BigEndianScalarZ _res);
3519         public static native void COption_BigEndianScalarZ_free(long _res);
3520         // uint64_t COption_BigEndianScalarZ_clone_ptr(LDKCOption_BigEndianScalarZ *NONNULL_PTR arg);
3521         public static native long COption_BigEndianScalarZ_clone_ptr(long arg);
3522         // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_clone(const struct LDKCOption_BigEndianScalarZ *NONNULL_PTR orig);
3523         public static native long COption_BigEndianScalarZ_clone(long orig);
3524         // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
3525         public static native void CVec_U5Z_free(byte[] _res);
3526         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
3527         public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
3528         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
3529         public static native long CResult_RecoverableSignatureNoneZ_err();
3530         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
3531         public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
3532         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
3533         public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
3534         // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
3535         public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
3536         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
3537         public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
3538         // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o);
3539         public static native long CResult_SchnorrSignatureNoneZ_ok(byte[] o);
3540         // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void);
3541         public static native long CResult_SchnorrSignatureNoneZ_err();
3542         // bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o);
3543         public static native boolean CResult_SchnorrSignatureNoneZ_is_ok(long o);
3544         // void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res);
3545         public static native void CResult_SchnorrSignatureNoneZ_free(long _res);
3546         // uint64_t CResult_SchnorrSignatureNoneZ_clone_ptr(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR arg);
3547         public static native long CResult_SchnorrSignatureNoneZ_clone_ptr(long arg);
3548         // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig);
3549         public static native long CResult_SchnorrSignatureNoneZ_clone(long orig);
3550         // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
3551         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long o);
3552         // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
3553         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long e);
3554         // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
3555         public static native boolean CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long o);
3556         // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
3557         public static native void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long _res);
3558         // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
3559         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long arg);
3560         // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
3561         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long orig);
3562         // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_ok(struct LDKCVec_u8Z o);
3563         public static native long CResult_CVec_u8ZNoneZ_ok(byte[] o);
3564         // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_err(void);
3565         public static native long CResult_CVec_u8ZNoneZ_err();
3566         // bool CResult_CVec_u8ZNoneZ_is_ok(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR o);
3567         public static native boolean CResult_CVec_u8ZNoneZ_is_ok(long o);
3568         // void CResult_CVec_u8ZNoneZ_free(struct LDKCResult_CVec_u8ZNoneZ _res);
3569         public static native void CResult_CVec_u8ZNoneZ_free(long _res);
3570         // uint64_t CResult_CVec_u8ZNoneZ_clone_ptr(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR arg);
3571         public static native long CResult_CVec_u8ZNoneZ_clone_ptr(long arg);
3572         // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_clone(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR orig);
3573         public static native long CResult_CVec_u8ZNoneZ_clone(long orig);
3574         // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_ok(struct LDKShutdownScript o);
3575         public static native long CResult_ShutdownScriptNoneZ_ok(long o);
3576         // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_err(void);
3577         public static native long CResult_ShutdownScriptNoneZ_err();
3578         // bool CResult_ShutdownScriptNoneZ_is_ok(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR o);
3579         public static native boolean CResult_ShutdownScriptNoneZ_is_ok(long o);
3580         // void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res);
3581         public static native void CResult_ShutdownScriptNoneZ_free(long _res);
3582         // uint64_t CResult_ShutdownScriptNoneZ_clone_ptr(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR arg);
3583         public static native long CResult_ShutdownScriptNoneZ_clone_ptr(long arg);
3584         // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig);
3585         public static native long CResult_ShutdownScriptNoneZ_clone(long orig);
3586         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
3587         public static native long COption_u16Z_some(short o);
3588         // struct LDKCOption_u16Z COption_u16Z_none(void);
3589         public static native long COption_u16Z_none();
3590         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
3591         public static native void COption_u16Z_free(long _res);
3592         // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
3593         public static native long COption_u16Z_clone_ptr(long arg);
3594         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
3595         public static native long COption_u16Z_clone(long orig);
3596         // struct LDKCOption_boolZ COption_boolZ_some(bool o);
3597         public static native long COption_boolZ_some(boolean o);
3598         // struct LDKCOption_boolZ COption_boolZ_none(void);
3599         public static native long COption_boolZ_none();
3600         // void COption_boolZ_free(struct LDKCOption_boolZ _res);
3601         public static native void COption_boolZ_free(long _res);
3602         // uint64_t COption_boolZ_clone_ptr(LDKCOption_boolZ *NONNULL_PTR arg);
3603         public static native long COption_boolZ_clone_ptr(long arg);
3604         // struct LDKCOption_boolZ COption_boolZ_clone(const struct LDKCOption_boolZ *NONNULL_PTR orig);
3605         public static native long COption_boolZ_clone(long orig);
3606         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
3607         public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
3608         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
3609         public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
3610         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
3611         public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
3612         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
3613         public static native boolean CResult_CVec_CVec_u8ZZNoneZ_is_ok(long o);
3614         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
3615         public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
3616         // uint64_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
3617         public static native long CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(long arg);
3618         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
3619         public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
3620         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
3621         public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
3622         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
3623         public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
3624         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
3625         public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
3626         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
3627         public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
3628         // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
3629         public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
3630         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
3631         public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
3632         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
3633         public static native long CResult_TransactionNoneZ_ok(byte[] o);
3634         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
3635         public static native long CResult_TransactionNoneZ_err();
3636         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
3637         public static native boolean CResult_TransactionNoneZ_is_ok(long o);
3638         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
3639         public static native void CResult_TransactionNoneZ_free(long _res);
3640         // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
3641         public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
3642         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
3643         public static native long CResult_TransactionNoneZ_clone(long orig);
3644         // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o);
3645         public static native long COption_WriteableScoreZ_some(long o);
3646         // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void);
3647         public static native long COption_WriteableScoreZ_none();
3648         // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res);
3649         public static native void COption_WriteableScoreZ_free(long _res);
3650         // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_ok(void);
3651         public static native long CResult_NoneIOErrorZ_ok();
3652         // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_err(enum LDKIOError e);
3653         public static native long CResult_NoneIOErrorZ_err(IOError e);
3654         // bool CResult_NoneIOErrorZ_is_ok(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR o);
3655         public static native boolean CResult_NoneIOErrorZ_is_ok(long o);
3656         // void CResult_NoneIOErrorZ_free(struct LDKCResult_NoneIOErrorZ _res);
3657         public static native void CResult_NoneIOErrorZ_free(long _res);
3658         // uint64_t CResult_NoneIOErrorZ_clone_ptr(LDKCResult_NoneIOErrorZ *NONNULL_PTR arg);
3659         public static native long CResult_NoneIOErrorZ_clone_ptr(long arg);
3660         // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_clone(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR orig);
3661         public static native long CResult_NoneIOErrorZ_clone(long orig);
3662         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
3663         public static native void CVec_ChannelDetailsZ_free(long[] _res);
3664         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
3665         public static native long CResult_RouteLightningErrorZ_ok(long o);
3666         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
3667         public static native long CResult_RouteLightningErrorZ_err(long e);
3668         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
3669         public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
3670         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
3671         public static native void CResult_RouteLightningErrorZ_free(long _res);
3672         // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
3673         public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
3674         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
3675         public static native long CResult_RouteLightningErrorZ_clone(long orig);
3676         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
3677         public static native long CResult_InFlightHtlcsDecodeErrorZ_ok(long o);
3678         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
3679         public static native long CResult_InFlightHtlcsDecodeErrorZ_err(long e);
3680         // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
3681         public static native boolean CResult_InFlightHtlcsDecodeErrorZ_is_ok(long o);
3682         // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
3683         public static native void CResult_InFlightHtlcsDecodeErrorZ_free(long _res);
3684         // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
3685         public static native long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long arg);
3686         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
3687         public static native long CResult_InFlightHtlcsDecodeErrorZ_clone(long orig);
3688         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
3689         public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
3690         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
3691         public static native long CResult_RouteHopDecodeErrorZ_err(long e);
3692         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
3693         public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
3694         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
3695         public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
3696         // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
3697         public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
3698         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
3699         public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
3700         // void CVec_BlindedHopZ_free(struct LDKCVec_BlindedHopZ _res);
3701         public static native void CVec_BlindedHopZ_free(long[] _res);
3702         // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_ok(struct LDKBlindedTail o);
3703         public static native long CResult_BlindedTailDecodeErrorZ_ok(long o);
3704         // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_err(struct LDKDecodeError e);
3705         public static native long CResult_BlindedTailDecodeErrorZ_err(long e);
3706         // bool CResult_BlindedTailDecodeErrorZ_is_ok(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR o);
3707         public static native boolean CResult_BlindedTailDecodeErrorZ_is_ok(long o);
3708         // void CResult_BlindedTailDecodeErrorZ_free(struct LDKCResult_BlindedTailDecodeErrorZ _res);
3709         public static native void CResult_BlindedTailDecodeErrorZ_free(long _res);
3710         // uint64_t CResult_BlindedTailDecodeErrorZ_clone_ptr(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR arg);
3711         public static native long CResult_BlindedTailDecodeErrorZ_clone_ptr(long arg);
3712         // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR orig);
3713         public static native long CResult_BlindedTailDecodeErrorZ_clone(long orig);
3714         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
3715         public static native void CVec_RouteHopZ_free(long[] _res);
3716         // void CVec_PathZ_free(struct LDKCVec_PathZ _res);
3717         public static native void CVec_PathZ_free(long[] _res);
3718         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
3719         public static native long CResult_RouteDecodeErrorZ_ok(long o);
3720         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
3721         public static native long CResult_RouteDecodeErrorZ_err(long e);
3722         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
3723         public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
3724         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
3725         public static native void CResult_RouteDecodeErrorZ_free(long _res);
3726         // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
3727         public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
3728         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
3729         public static native long CResult_RouteDecodeErrorZ_clone(long orig);
3730         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
3731         public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
3732         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
3733         public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
3734         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
3735         public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
3736         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
3737         public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
3738         // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
3739         public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
3740         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
3741         public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
3742         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
3743         public static native void CVec_u64Z_free(long[] _res);
3744         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
3745         public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
3746         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
3747         public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
3748         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
3749         public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
3750         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
3751         public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
3752         // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
3753         public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
3754         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
3755         public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
3756         // uint64_t C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR arg);
3757         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(long arg);
3758         // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_clone(const struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR orig);
3759         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone(long orig);
3760         // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_new(struct LDKBlindedPayInfo a, struct LDKBlindedPath b);
3761         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_new(long a, long b);
3762         // void C2Tuple_BlindedPayInfoBlindedPathZ_free(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ _res);
3763         public static native void C2Tuple_BlindedPayInfoBlindedPathZ_free(long _res);
3764         // void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ _res);
3765         public static native void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(long[] _res);
3766         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
3767         public static native void CVec_RouteHintZ_free(long[] _res);
3768         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
3769         public static native void CVec_RouteHintHopZ_free(long[] _res);
3770         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
3771         public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
3772         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
3773         public static native long CResult_RouteHintDecodeErrorZ_err(long e);
3774         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
3775         public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
3776         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
3777         public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
3778         // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
3779         public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
3780         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
3781         public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
3782         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
3783         public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
3784         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
3785         public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
3786         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
3787         public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
3788         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
3789         public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
3790         // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
3791         public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
3792         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
3793         public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
3794         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
3795         public static native void CVec_PublicKeyZ_free(byte[][] _res);
3796         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
3797         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
3798         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
3799         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
3800         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
3801         public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
3802         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
3803         public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
3804         // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
3805         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
3806         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
3807         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
3808         // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
3809         public static native void CVec_NodeIdZ_free(long[] _res);
3810         // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
3811         public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
3812         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
3813         public static native long C2Tuple_u64u64Z_clone(long orig);
3814         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
3815         public static native long C2Tuple_u64u64Z_new(long a, long b);
3816         // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
3817         public static native void C2Tuple_u64u64Z_free(long _res);
3818         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
3819         public static native long COption_C2Tuple_u64u64ZZ_some(long o);
3820         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
3821         public static native long COption_C2Tuple_u64u64ZZ_none();
3822         // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
3823         public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
3824         // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
3825         public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
3826         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
3827         public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
3828         // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
3829         public static native long C2Tuple_Z_new(short[] a, short[] b);
3830         // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
3831         public static native void C2Tuple_Z_free(long _res);
3832         // struct LDKC2Tuple__u1632_u1632Z C2Tuple__u1632_u1632Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
3833         public static native long C2Tuple__u1632_u1632Z_new(short[] a, short[] b);
3834         // void C2Tuple__u1632_u1632Z_free(struct LDKC2Tuple__u1632_u1632Z _res);
3835         public static native void C2Tuple__u1632_u1632Z_free(long _res);
3836         // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(struct LDKC2Tuple__u1632_u1632Z o);
3837         public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(long o);
3838         // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(void);
3839         public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none();
3840         // void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ _res);
3841         public static native void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(long _res);
3842         // struct LDKCOption_f64Z COption_f64Z_some(double o);
3843         public static native long COption_f64Z_some(double o);
3844         // struct LDKCOption_f64Z COption_f64Z_none(void);
3845         public static native long COption_f64Z_none();
3846         // void COption_f64Z_free(struct LDKCOption_f64Z _res);
3847         public static native void COption_f64Z_free(long _res);
3848         // uint64_t COption_f64Z_clone_ptr(LDKCOption_f64Z *NONNULL_PTR arg);
3849         public static native long COption_f64Z_clone_ptr(long arg);
3850         // struct LDKCOption_f64Z COption_f64Z_clone(const struct LDKCOption_f64Z *NONNULL_PTR orig);
3851         public static native long COption_f64Z_clone(long orig);
3852         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
3853         public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
3854         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
3855         public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
3856         // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
3857         public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
3858         // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
3859         public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
3860         // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
3861         public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
3862         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
3863         public static native long C2Tuple_usizeTransactionZ_clone(long orig);
3864         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
3865         public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
3866         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
3867         public static native void C2Tuple_usizeTransactionZ_free(long _res);
3868         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
3869         public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
3870         // uint64_t C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR arg);
3871         public static native long C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone_ptr(long arg);
3872         // struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR orig);
3873         public static native long C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone(long orig);
3874         // struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_new(struct LDKThirtyTwoBytes a, struct LDKCOption_ThirtyTwoBytesZ b);
3875         public static native long C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_new(byte[] a, long b);
3876         // void C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ _res);
3877         public static native void C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_free(long _res);
3878         // void CVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ _res);
3879         public static native void CVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ_free(long[] _res);
3880         // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_ok(enum LDKChannelMonitorUpdateStatus o);
3881         public static native long CResult_ChannelMonitorUpdateStatusNoneZ_ok(ChannelMonitorUpdateStatus o);
3882         // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_err(void);
3883         public static native long CResult_ChannelMonitorUpdateStatusNoneZ_err();
3884         // bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR o);
3885         public static native boolean CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(long o);
3886         // void CResult_ChannelMonitorUpdateStatusNoneZ_free(struct LDKCResult_ChannelMonitorUpdateStatusNoneZ _res);
3887         public static native void CResult_ChannelMonitorUpdateStatusNoneZ_free(long _res);
3888         // uint64_t CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR arg);
3889         public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(long arg);
3890         // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_clone(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR orig);
3891         public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone(long orig);
3892         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
3893         public static native void CVec_MonitorEventZ_free(long[] _res);
3894         // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
3895         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(long arg);
3896         // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
3897         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(long orig);
3898         // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
3899         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(long a, long[] b, byte[] c);
3900         // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
3901         public static native void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(long _res);
3902         // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
3903         public static native void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(long[] _res);
3904         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
3905         public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
3906         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3907         public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
3908         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
3909         public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
3910         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
3911         public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
3912         // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
3913         public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
3914         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
3915         public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
3916         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
3917         public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
3918         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3919         public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
3920         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
3921         public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
3922         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
3923         public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
3924         // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
3925         public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
3926         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
3927         public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
3928         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
3929         public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
3930         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3931         public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
3932         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
3933         public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
3934         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
3935         public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
3936         // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
3937         public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
3938         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
3939         public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
3940         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt11InvoiceFeatures o);
3941         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(long o);
3942         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3943         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(long e);
3944         // bool CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
3945         public static native boolean CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(long o);
3946         // void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ _res);
3947         public static native void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(long _res);
3948         // uint64_t CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
3949         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
3950         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
3951         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(long orig);
3952         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt12InvoiceFeatures o);
3953         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(long o);
3954         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3955         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(long e);
3956         // bool CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
3957         public static native boolean CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(long o);
3958         // void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ _res);
3959         public static native void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(long _res);
3960         // uint64_t CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
3961         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
3962         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
3963         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(long orig);
3964         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
3965         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long o);
3966         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3967         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_err(long e);
3968         // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
3969         public static native boolean CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long o);
3970         // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
3971         public static native void CResult_BlindedHopFeaturesDecodeErrorZ_free(long _res);
3972         // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
3973         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long arg);
3974         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
3975         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long orig);
3976         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
3977         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
3978         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3979         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
3980         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
3981         public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
3982         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
3983         public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
3984         // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
3985         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
3986         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
3987         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
3988         // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_ok(struct LDKOffer o);
3989         public static native long CResult_OfferBolt12ParseErrorZ_ok(long o);
3990         // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
3991         public static native long CResult_OfferBolt12ParseErrorZ_err(long e);
3992         // bool CResult_OfferBolt12ParseErrorZ_is_ok(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR o);
3993         public static native boolean CResult_OfferBolt12ParseErrorZ_is_ok(long o);
3994         // void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseErrorZ _res);
3995         public static native void CResult_OfferBolt12ParseErrorZ_free(long _res);
3996         // uint64_t CResult_OfferBolt12ParseErrorZ_clone_ptr(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR arg);
3997         public static native long CResult_OfferBolt12ParseErrorZ_clone_ptr(long arg);
3998         // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig);
3999         public static native long CResult_OfferBolt12ParseErrorZ_clone(long orig);
4000         // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o);
4001         public static native long CResult_PublicKeySecp256k1ErrorZ_ok(byte[] o);
4002         // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
4003         public static native long CResult_PublicKeySecp256k1ErrorZ_err(Secp256k1Error e);
4004         // bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o);
4005         public static native boolean CResult_PublicKeySecp256k1ErrorZ_is_ok(long o);
4006         // void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res);
4007         public static native void CResult_PublicKeySecp256k1ErrorZ_free(long _res);
4008         // uint64_t CResult_PublicKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR arg);
4009         public static native long CResult_PublicKeySecp256k1ErrorZ_clone_ptr(long arg);
4010         // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig);
4011         public static native long CResult_PublicKeySecp256k1ErrorZ_clone(long orig);
4012         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
4013         public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
4014         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
4015         public static native long CResult_NodeIdDecodeErrorZ_err(long e);
4016         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
4017         public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
4018         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
4019         public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
4020         // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
4021         public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
4022         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
4023         public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
4024         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
4025         public static native long COption_NetworkUpdateZ_some(long o);
4026         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
4027         public static native long COption_NetworkUpdateZ_none();
4028         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
4029         public static native void COption_NetworkUpdateZ_free(long _res);
4030         // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
4031         public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
4032         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
4033         public static native long COption_NetworkUpdateZ_clone(long orig);
4034         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
4035         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
4036         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
4037         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
4038         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
4039         public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
4040         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
4041         public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
4042         // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
4043         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
4044         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
4045         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
4046         // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
4047         public static native long COption_UtxoLookupZ_some(long o);
4048         // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
4049         public static native long COption_UtxoLookupZ_none();
4050         // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
4051         public static native void COption_UtxoLookupZ_free(long _res);
4052         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
4053         public static native long CResult_NoneLightningErrorZ_ok();
4054         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
4055         public static native long CResult_NoneLightningErrorZ_err(long e);
4056         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
4057         public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
4058         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
4059         public static native void CResult_NoneLightningErrorZ_free(long _res);
4060         // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
4061         public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
4062         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
4063         public static native long CResult_NoneLightningErrorZ_clone(long orig);
4064         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
4065         public static native long CResult_boolLightningErrorZ_ok(boolean o);
4066         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
4067         public static native long CResult_boolLightningErrorZ_err(long e);
4068         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
4069         public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
4070         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
4071         public static native void CResult_boolLightningErrorZ_free(long _res);
4072         // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
4073         public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
4074         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
4075         public static native long CResult_boolLightningErrorZ_clone(long orig);
4076         // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
4077         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
4078         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
4079         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
4080         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
4081         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
4082         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
4083         public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
4084         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
4085         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long o);
4086         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
4087         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
4088         // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
4089         public static native void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long _res);
4090         // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
4091         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long arg);
4092         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
4093         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long orig);
4094         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
4095         public static native void CVec_MessageSendEventZ_free(long[] _res);
4096         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
4097         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
4098         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
4099         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
4100         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
4101         public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
4102         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
4103         public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
4104         // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
4105         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
4106         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
4107         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
4108         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
4109         public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
4110         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
4111         public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
4112         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
4113         public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
4114         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
4115         public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
4116         // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
4117         public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
4118         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
4119         public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
4120         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
4121         public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
4122         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
4123         public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
4124         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
4125         public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
4126         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
4127         public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
4128         // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
4129         public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
4130         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
4131         public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
4132         // void CVec_SocketAddressZ_free(struct LDKCVec_SocketAddressZ _res);
4133         public static native void CVec_SocketAddressZ_free(long[] _res);
4134         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
4135         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
4136         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
4137         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
4138         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
4139         public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
4140         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
4141         public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
4142         // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
4143         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
4144         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
4145         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
4146         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
4147         public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
4148         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
4149         public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
4150         // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
4151         public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
4152         // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
4153         public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
4154         // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
4155         public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
4156         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
4157         public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
4158         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
4159         public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
4160         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
4161         public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
4162         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
4163         public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
4164         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
4165         public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
4166         // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
4167         public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
4168         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
4169         public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
4170         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
4171         public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
4172         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
4173         public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
4174         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
4175         public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
4176         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
4177         public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
4178         // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_some(struct LDKCVec_SocketAddressZ o);
4179         public static native long COption_CVec_SocketAddressZZ_some(long[] o);
4180         // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_none(void);
4181         public static native long COption_CVec_SocketAddressZZ_none();
4182         // void COption_CVec_SocketAddressZZ_free(struct LDKCOption_CVec_SocketAddressZZ _res);
4183         public static native void COption_CVec_SocketAddressZZ_free(long _res);
4184         // uint64_t COption_CVec_SocketAddressZZ_clone_ptr(LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR arg);
4185         public static native long COption_CVec_SocketAddressZZ_clone_ptr(long arg);
4186         // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_clone(const struct LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR orig);
4187         public static native long COption_CVec_SocketAddressZZ_clone(long orig);
4188         // void CVec_HTLCOutputInCommitmentZ_free(struct LDKCVec_HTLCOutputInCommitmentZ _res);
4189         public static native void CVec_HTLCOutputInCommitmentZ_free(long[] _res);
4190         // void CVec_HTLCDescriptorZ_free(struct LDKCVec_HTLCDescriptorZ _res);
4191         public static native void CVec_HTLCDescriptorZ_free(long[] _res);
4192         // void CVec_UtxoZ_free(struct LDKCVec_UtxoZ _res);
4193         public static native void CVec_UtxoZ_free(long[] _res);
4194         // struct LDKCOption_TxOutZ COption_TxOutZ_some(struct LDKTxOut o);
4195         public static native long COption_TxOutZ_some(long o);
4196         // struct LDKCOption_TxOutZ COption_TxOutZ_none(void);
4197         public static native long COption_TxOutZ_none();
4198         // void COption_TxOutZ_free(struct LDKCOption_TxOutZ _res);
4199         public static native void COption_TxOutZ_free(long _res);
4200         // uint64_t COption_TxOutZ_clone_ptr(LDKCOption_TxOutZ *NONNULL_PTR arg);
4201         public static native long COption_TxOutZ_clone_ptr(long arg);
4202         // struct LDKCOption_TxOutZ COption_TxOutZ_clone(const struct LDKCOption_TxOutZ *NONNULL_PTR orig);
4203         public static native long COption_TxOutZ_clone(long orig);
4204         // void CVec_InputZ_free(struct LDKCVec_InputZ _res);
4205         public static native void CVec_InputZ_free(long[] _res);
4206         // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_ok(struct LDKCoinSelection o);
4207         public static native long CResult_CoinSelectionNoneZ_ok(long o);
4208         // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_err(void);
4209         public static native long CResult_CoinSelectionNoneZ_err();
4210         // bool CResult_CoinSelectionNoneZ_is_ok(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR o);
4211         public static native boolean CResult_CoinSelectionNoneZ_is_ok(long o);
4212         // void CResult_CoinSelectionNoneZ_free(struct LDKCResult_CoinSelectionNoneZ _res);
4213         public static native void CResult_CoinSelectionNoneZ_free(long _res);
4214         // uint64_t CResult_CoinSelectionNoneZ_clone_ptr(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR arg);
4215         public static native long CResult_CoinSelectionNoneZ_clone_ptr(long arg);
4216         // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_clone(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR orig);
4217         public static native long CResult_CoinSelectionNoneZ_clone(long orig);
4218         // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_ok(struct LDKCVec_UtxoZ o);
4219         public static native long CResult_CVec_UtxoZNoneZ_ok(long[] o);
4220         // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_err(void);
4221         public static native long CResult_CVec_UtxoZNoneZ_err();
4222         // bool CResult_CVec_UtxoZNoneZ_is_ok(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR o);
4223         public static native boolean CResult_CVec_UtxoZNoneZ_is_ok(long o);
4224         // void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res);
4225         public static native void CResult_CVec_UtxoZNoneZ_free(long _res);
4226         // uint64_t CResult_CVec_UtxoZNoneZ_clone_ptr(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR arg);
4227         public static native long CResult_CVec_UtxoZNoneZ_clone_ptr(long arg);
4228         // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig);
4229         public static native long CResult_CVec_UtxoZNoneZ_clone(long orig);
4230         // uint64_t C2Tuple_u64u16Z_clone_ptr(LDKC2Tuple_u64u16Z *NONNULL_PTR arg);
4231         public static native long C2Tuple_u64u16Z_clone_ptr(long arg);
4232         // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_clone(const struct LDKC2Tuple_u64u16Z *NONNULL_PTR orig);
4233         public static native long C2Tuple_u64u16Z_clone(long orig);
4234         // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_new(uint64_t a, uint16_t b);
4235         public static native long C2Tuple_u64u16Z_new(long a, short b);
4236         // void C2Tuple_u64u16Z_free(struct LDKC2Tuple_u64u16Z _res);
4237         public static native void C2Tuple_u64u16Z_free(long _res);
4238         // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_some(struct LDKC2Tuple_u64u16Z o);
4239         public static native long COption_C2Tuple_u64u16ZZ_some(long o);
4240         // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_none(void);
4241         public static native long COption_C2Tuple_u64u16ZZ_none();
4242         // void COption_C2Tuple_u64u16ZZ_free(struct LDKCOption_C2Tuple_u64u16ZZ _res);
4243         public static native void COption_C2Tuple_u64u16ZZ_free(long _res);
4244         // uint64_t COption_C2Tuple_u64u16ZZ_clone_ptr(LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR arg);
4245         public static native long COption_C2Tuple_u64u16ZZ_clone_ptr(long arg);
4246         // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_clone(const struct LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR orig);
4247         public static native long COption_C2Tuple_u64u16ZZ_clone(long orig);
4248         // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o);
4249         public static native long COption_ChannelShutdownStateZ_some(ChannelShutdownState o);
4250         // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void);
4251         public static native long COption_ChannelShutdownStateZ_none();
4252         // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res);
4253         public static native void COption_ChannelShutdownStateZ_free(long _res);
4254         // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg);
4255         public static native long COption_ChannelShutdownStateZ_clone_ptr(long arg);
4256         // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig);
4257         public static native long COption_ChannelShutdownStateZ_clone(long orig);
4258         // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
4259         public static native long CResult_ThirtyTwoBytesAPIErrorZ_ok(byte[] o);
4260         // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e);
4261         public static native long CResult_ThirtyTwoBytesAPIErrorZ_err(long e);
4262         // bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o);
4263         public static native boolean CResult_ThirtyTwoBytesAPIErrorZ_is_ok(long o);
4264         // void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res);
4265         public static native void CResult_ThirtyTwoBytesAPIErrorZ_free(long _res);
4266         // uint64_t CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR arg);
4267         public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(long arg);
4268         // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig);
4269         public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone(long orig);
4270         // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
4271         public static native void CVec_RecentPaymentDetailsZ_free(long[] _res);
4272         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
4273         public static native long CResult_NonePaymentSendFailureZ_ok();
4274         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4275         public static native long CResult_NonePaymentSendFailureZ_err(long e);
4276         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
4277         public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
4278         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
4279         public static native void CResult_NonePaymentSendFailureZ_free(long _res);
4280         // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
4281         public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
4282         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
4283         public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
4284         // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
4285         public static native long CResult_NoneRetryableSendFailureZ_ok();
4286         // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
4287         public static native long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure e);
4288         // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
4289         public static native boolean CResult_NoneRetryableSendFailureZ_is_ok(long o);
4290         // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
4291         public static native void CResult_NoneRetryableSendFailureZ_free(long _res);
4292         // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
4293         public static native long CResult_NoneRetryableSendFailureZ_clone_ptr(long arg);
4294         // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
4295         public static native long CResult_NoneRetryableSendFailureZ_clone(long orig);
4296         // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
4297         public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(byte[] o);
4298         // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4299         public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_err(long e);
4300         // bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR o);
4301         public static native boolean CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(long o);
4302         // void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ _res);
4303         public static native void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(long _res);
4304         // uint64_t CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR arg);
4305         public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(long arg);
4306         // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR orig);
4307         public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(long orig);
4308         // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
4309         public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(byte[] o);
4310         // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
4311         public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_err(RetryableSendFailure e);
4312         // bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR o);
4313         public static native boolean CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(long o);
4314         // void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ _res);
4315         public static native void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(long _res);
4316         // uint64_t CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR arg);
4317         public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(long arg);
4318         // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR orig);
4319         public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(long orig);
4320         // uint64_t C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR arg);
4321         public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(long arg);
4322         // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR orig);
4323         public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(long orig);
4324         // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
4325         public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(byte[] a, byte[] b);
4326         // void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ _res);
4327         public static native void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(long _res);
4328         // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
4329         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(long o);
4330         // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4331         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(long e);
4332         // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR o);
4333         public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(long o);
4334         // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ _res);
4335         public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(long _res);
4336         // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR arg);
4337         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(long arg);
4338         // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR orig);
4339         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(long orig);
4340         // void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ _res);
4341         public static native void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(long[] _res);
4342         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o);
4343         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(long[] o);
4344         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(struct LDKProbeSendFailure e);
4345         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(long e);
4346         // bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR o);
4347         public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(long o);
4348         // void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ _res);
4349         public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(long _res);
4350         // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR arg);
4351         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(long arg);
4352         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR orig);
4353         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(long orig);
4354         // uint64_t C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR arg);
4355         public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(long arg);
4356         // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR orig);
4357         public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(long orig);
4358         // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_new(struct LDKThirtyTwoBytes a, struct LDKPublicKey b);
4359         public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_new(byte[] a, byte[] b);
4360         // void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ _res);
4361         public static native void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(long _res);
4362         // void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ _res);
4363         public static native void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(long[] _res);
4364         // struct LDKCOption_StrZ COption_StrZ_some(struct LDKStr o);
4365         public static native long COption_StrZ_some(String o);
4366         // struct LDKCOption_StrZ COption_StrZ_none(void);
4367         public static native long COption_StrZ_none();
4368         // void COption_StrZ_free(struct LDKCOption_StrZ _res);
4369         public static native void COption_StrZ_free(long _res);
4370         // uint64_t COption_StrZ_clone_ptr(LDKCOption_StrZ *NONNULL_PTR arg);
4371         public static native long COption_StrZ_clone_ptr(long arg);
4372         // struct LDKCOption_StrZ COption_StrZ_clone(const struct LDKCOption_StrZ *NONNULL_PTR orig);
4373         public static native long COption_StrZ_clone(long orig);
4374         // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_ok(void);
4375         public static native long CResult_NoneBolt12SemanticErrorZ_ok();
4376         // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
4377         public static native long CResult_NoneBolt12SemanticErrorZ_err(Bolt12SemanticError e);
4378         // bool CResult_NoneBolt12SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR o);
4379         public static native boolean CResult_NoneBolt12SemanticErrorZ_is_ok(long o);
4380         // void CResult_NoneBolt12SemanticErrorZ_free(struct LDKCResult_NoneBolt12SemanticErrorZ _res);
4381         public static native void CResult_NoneBolt12SemanticErrorZ_free(long _res);
4382         // uint64_t CResult_NoneBolt12SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR arg);
4383         public static native long CResult_NoneBolt12SemanticErrorZ_clone_ptr(long arg);
4384         // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_clone(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR orig);
4385         public static native long CResult_NoneBolt12SemanticErrorZ_clone(long orig);
4386         // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
4387         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(long o);
4388         // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(void);
4389         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err();
4390         // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR o);
4391         public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(long o);
4392         // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ _res);
4393         public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(long _res);
4394         // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR arg);
4395         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(long arg);
4396         // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR orig);
4397         public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(long orig);
4398         // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o);
4399         public static native long COption_OffersMessageZ_some(long o);
4400         // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void);
4401         public static native long COption_OffersMessageZ_none();
4402         // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res);
4403         public static native void COption_OffersMessageZ_free(long _res);
4404         // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg);
4405         public static native long COption_OffersMessageZ_clone_ptr(long arg);
4406         // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig);
4407         public static native long COption_OffersMessageZ_clone(long orig);
4408         // uint64_t C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR arg);
4409         public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(long arg);
4410         // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR orig);
4411         public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone(long orig);
4412         // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_new(struct LDKOffersMessage a, struct LDKDestination b, struct LDKBlindedPath c);
4413         public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_new(long a, long b, long c);
4414         // void C3Tuple_OffersMessageDestinationBlindedPathZ_free(struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ _res);
4415         public static native void C3Tuple_OffersMessageDestinationBlindedPathZ_free(long _res);
4416         // void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ _res);
4417         public static native void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(long[] _res);
4418         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
4419         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
4420         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
4421         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
4422         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
4423         public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
4424         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
4425         public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
4426         // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
4427         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
4428         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
4429         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
4430         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
4431         public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
4432         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
4433         public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
4434         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
4435         public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
4436         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
4437         public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
4438         // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
4439         public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
4440         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
4441         public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
4442         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
4443         public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
4444         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
4445         public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
4446         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
4447         public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
4448         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
4449         public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
4450         // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
4451         public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
4452         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
4453         public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
4454         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
4455         public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
4456         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
4457         public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
4458         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
4459         public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
4460         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
4461         public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
4462         // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
4463         public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
4464         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
4465         public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
4466         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o);
4467         public static native long CResult_ChannelShutdownStateDecodeErrorZ_ok(ChannelShutdownState o);
4468         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e);
4469         public static native long CResult_ChannelShutdownStateDecodeErrorZ_err(long e);
4470         // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o);
4471         public static native boolean CResult_ChannelShutdownStateDecodeErrorZ_is_ok(long o);
4472         // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res);
4473         public static native void CResult_ChannelShutdownStateDecodeErrorZ_free(long _res);
4474         // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg);
4475         public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(long arg);
4476         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig);
4477         public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone(long orig);
4478         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
4479         public static native void CVec_ChannelMonitorZ_free(long[] _res);
4480         // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ C2Tuple_ThirtyTwoBytesChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
4481         public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_new(byte[] a, long b);
4482         // void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ _res);
4483         public static native void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(long _res);
4484         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ o);
4485         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(long o);
4486         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
4487         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(long e);
4488         // bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR o);
4489         public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(long o);
4490         // void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ _res);
4491         public static native void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(long _res);
4492         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_ok(struct LDKMaxDustHTLCExposure o);
4493         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_ok(long o);
4494         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_err(struct LDKDecodeError e);
4495         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_err(long e);
4496         // bool CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR o);
4497         public static native boolean CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(long o);
4498         // void CResult_MaxDustHTLCExposureDecodeErrorZ_free(struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ _res);
4499         public static native void CResult_MaxDustHTLCExposureDecodeErrorZ_free(long _res);
4500         // uint64_t CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR arg);
4501         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(long arg);
4502         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_clone(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR orig);
4503         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone(long orig);
4504         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
4505         public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
4506         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
4507         public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
4508         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
4509         public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
4510         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
4511         public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
4512         // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
4513         public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
4514         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
4515         public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
4516         // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_some(struct LDKMaxDustHTLCExposure o);
4517         public static native long COption_MaxDustHTLCExposureZ_some(long o);
4518         // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_none(void);
4519         public static native long COption_MaxDustHTLCExposureZ_none();
4520         // void COption_MaxDustHTLCExposureZ_free(struct LDKCOption_MaxDustHTLCExposureZ _res);
4521         public static native void COption_MaxDustHTLCExposureZ_free(long _res);
4522         // uint64_t COption_MaxDustHTLCExposureZ_clone_ptr(LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR arg);
4523         public static native long COption_MaxDustHTLCExposureZ_clone_ptr(long arg);
4524         // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_clone(const struct LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR orig);
4525         public static native long COption_MaxDustHTLCExposureZ_clone(long orig);
4526         // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
4527         public static native long COption_APIErrorZ_some(long o);
4528         // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
4529         public static native long COption_APIErrorZ_none();
4530         // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
4531         public static native void COption_APIErrorZ_free(long _res);
4532         // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
4533         public static native long COption_APIErrorZ_clone_ptr(long arg);
4534         // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
4535         public static native long COption_APIErrorZ_clone(long orig);
4536         // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
4537         public static native long CResult_COption_APIErrorZDecodeErrorZ_ok(long o);
4538         // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
4539         public static native long CResult_COption_APIErrorZDecodeErrorZ_err(long e);
4540         // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
4541         public static native boolean CResult_COption_APIErrorZDecodeErrorZ_is_ok(long o);
4542         // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
4543         public static native void CResult_COption_APIErrorZDecodeErrorZ_free(long _res);
4544         // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
4545         public static native long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long arg);
4546         // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
4547         public static native long CResult_COption_APIErrorZDecodeErrorZ_clone(long orig);
4548         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
4549         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
4550         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4551         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
4552         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
4553         public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
4554         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
4555         public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
4556         // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
4557         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
4558         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
4559         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
4560         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
4561         public static native long COption_MonitorEventZ_some(long o);
4562         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
4563         public static native long COption_MonitorEventZ_none();
4564         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
4565         public static native void COption_MonitorEventZ_free(long _res);
4566         // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
4567         public static native long COption_MonitorEventZ_clone_ptr(long arg);
4568         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
4569         public static native long COption_MonitorEventZ_clone(long orig);
4570         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
4571         public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
4572         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
4573         public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
4574         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
4575         public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
4576         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
4577         public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
4578         // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
4579         public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
4580         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
4581         public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
4582         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
4583         public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
4584         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4585         public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
4586         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
4587         public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
4588         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
4589         public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
4590         // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
4591         public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
4592         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
4593         public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
4594         // uint64_t C2Tuple_OutPointCVec_u8ZZ_clone_ptr(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR arg);
4595         public static native long C2Tuple_OutPointCVec_u8ZZ_clone_ptr(long arg);
4596         // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_clone(const struct LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR orig);
4597         public static native long C2Tuple_OutPointCVec_u8ZZ_clone(long orig);
4598         // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
4599         public static native long C2Tuple_OutPointCVec_u8ZZ_new(long a, byte[] b);
4600         // void C2Tuple_OutPointCVec_u8ZZ_free(struct LDKC2Tuple_OutPointCVec_u8ZZ _res);
4601         public static native void C2Tuple_OutPointCVec_u8ZZ_free(long _res);
4602         // uint64_t C2Tuple_u32CVec_u8ZZ_clone_ptr(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR arg);
4603         public static native long C2Tuple_u32CVec_u8ZZ_clone_ptr(long arg);
4604         // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_clone(const struct LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR orig);
4605         public static native long C2Tuple_u32CVec_u8ZZ_clone(long orig);
4606         // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_new(uint32_t a, struct LDKCVec_u8Z b);
4607         public static native long C2Tuple_u32CVec_u8ZZ_new(int a, byte[] b);
4608         // void C2Tuple_u32CVec_u8ZZ_free(struct LDKC2Tuple_u32CVec_u8ZZ _res);
4609         public static native void C2Tuple_u32CVec_u8ZZ_free(long _res);
4610         // void CVec_C2Tuple_u32CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u32CVec_u8ZZZ _res);
4611         public static native void CVec_C2Tuple_u32CVec_u8ZZZ_free(long[] _res);
4612         // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR arg);
4613         public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(long arg);
4614         // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR orig);
4615         public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(long orig);
4616         // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b);
4617         public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(byte[] a, long[] b);
4618         // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ _res);
4619         public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(long _res);
4620         // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ _res);
4621         public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(long[] _res);
4622         // void CVec_CommitmentTransactionZ_free(struct LDKCVec_CommitmentTransactionZ _res);
4623         public static native void CVec_CommitmentTransactionZ_free(long[] _res);
4624         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
4625         public static native void CVec_TransactionZ_free(byte[][] _res);
4626         // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
4627         public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
4628         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
4629         public static native long C2Tuple_u32TxOutZ_clone(long orig);
4630         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
4631         public static native long C2Tuple_u32TxOutZ_new(int a, long b);
4632         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
4633         public static native void C2Tuple_u32TxOutZ_free(long _res);
4634         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
4635         public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
4636         // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
4637         public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
4638         // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
4639         public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
4640         // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
4641         public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
4642         // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ _res);
4643         public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(long _res);
4644         // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ _res);
4645         public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
4646         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
4647         public static native void CVec_BalanceZ_free(long[] _res);
4648         // uint64_t C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR arg);
4649         public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(long arg);
4650         // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR orig);
4651         public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(long orig);
4652         // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
4653         public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(byte[] a, long b);
4654         // void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ _res);
4655         public static native void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(long _res);
4656         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
4657         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(long o);
4658         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
4659         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(long e);
4660         // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
4661         public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(long o);
4662         // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ _res);
4663         public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(long _res);
4664         // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
4665         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
4666         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
4667         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(long orig);
4668         // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
4669         public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
4670         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
4671         public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
4672         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
4673         public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
4674         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
4675         public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
4676         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
4677         public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
4678         // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_some(struct LDKOnionMessageContents o);
4679         public static native long COption_OnionMessageContentsZ_some(long o);
4680         // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_none(void);
4681         public static native long COption_OnionMessageContentsZ_none();
4682         // void COption_OnionMessageContentsZ_free(struct LDKCOption_OnionMessageContentsZ _res);
4683         public static native void COption_OnionMessageContentsZ_free(long _res);
4684         // uint64_t COption_OnionMessageContentsZ_clone_ptr(LDKCOption_OnionMessageContentsZ *NONNULL_PTR arg);
4685         public static native long COption_OnionMessageContentsZ_clone_ptr(long arg);
4686         // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_clone(const struct LDKCOption_OnionMessageContentsZ *NONNULL_PTR orig);
4687         public static native long COption_OnionMessageContentsZ_clone(long orig);
4688         // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_OnionMessageContentsZ o);
4689         public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(long o);
4690         // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
4691         public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_err(long e);
4692         // bool CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
4693         public static native boolean CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(long o);
4694         // void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ _res);
4695         public static native void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(long _res);
4696         // uint64_t CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
4697         public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(long arg);
4698         // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
4699         public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(long orig);
4700         // uint64_t C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR arg);
4701         public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(long arg);
4702         // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR orig);
4703         public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(long orig);
4704         // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(struct LDKOnionMessageContents a, struct LDKDestination b, struct LDKBlindedPath c);
4705         public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(long a, long b, long c);
4706         // void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ _res);
4707         public static native void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(long _res);
4708         // void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ _res);
4709         public static native void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(long[] _res);
4710         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
4711         public static native long COption_TypeZ_some(long o);
4712         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
4713         public static native long COption_TypeZ_none();
4714         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
4715         public static native void COption_TypeZ_free(long _res);
4716         // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
4717         public static native long COption_TypeZ_clone_ptr(long arg);
4718         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
4719         public static native long COption_TypeZ_clone(long orig);
4720         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
4721         public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
4722         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
4723         public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
4724         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
4725         public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
4726         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
4727         public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
4728         // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
4729         public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
4730         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
4731         public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
4732         // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_some(struct LDKSocketAddress o);
4733         public static native long COption_SocketAddressZ_some(long o);
4734         // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_none(void);
4735         public static native long COption_SocketAddressZ_none();
4736         // void COption_SocketAddressZ_free(struct LDKCOption_SocketAddressZ _res);
4737         public static native void COption_SocketAddressZ_free(long _res);
4738         // uint64_t COption_SocketAddressZ_clone_ptr(LDKCOption_SocketAddressZ *NONNULL_PTR arg);
4739         public static native long COption_SocketAddressZ_clone_ptr(long arg);
4740         // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_clone(const struct LDKCOption_SocketAddressZ *NONNULL_PTR orig);
4741         public static native long COption_SocketAddressZ_clone(long orig);
4742         // uint64_t C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR arg);
4743         public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(long arg);
4744         // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR orig);
4745         public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(long orig);
4746         // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_SocketAddressZ b);
4747         public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_new(byte[] a, long b);
4748         // void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ _res);
4749         public static native void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(long _res);
4750         // void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ _res);
4751         public static native void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(long[] _res);
4752         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
4753         public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
4754         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
4755         public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
4756         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
4757         public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
4758         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
4759         public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
4760         // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
4761         public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
4762         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
4763         public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
4764         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
4765         public static native long CResult_NonePeerHandleErrorZ_ok();
4766         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
4767         public static native long CResult_NonePeerHandleErrorZ_err(long e);
4768         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
4769         public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
4770         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
4771         public static native void CResult_NonePeerHandleErrorZ_free(long _res);
4772         // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
4773         public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
4774         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
4775         public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
4776         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
4777         public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
4778         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
4779         public static native long CResult_boolPeerHandleErrorZ_err(long e);
4780         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
4781         public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
4782         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
4783         public static native void CResult_boolPeerHandleErrorZ_free(long _res);
4784         // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
4785         public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
4786         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
4787         public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
4788         // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
4789         public static native long CResult_u32GraphSyncErrorZ_ok(int o);
4790         // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
4791         public static native long CResult_u32GraphSyncErrorZ_err(long e);
4792         // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
4793         public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
4794         // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
4795         public static native void CResult_u32GraphSyncErrorZ_free(long _res);
4796         // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_ok(struct LDKCVec_u8Z o);
4797         public static native long CResult_CVec_u8ZIOErrorZ_ok(byte[] o);
4798         // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_err(enum LDKIOError e);
4799         public static native long CResult_CVec_u8ZIOErrorZ_err(IOError e);
4800         // bool CResult_CVec_u8ZIOErrorZ_is_ok(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR o);
4801         public static native boolean CResult_CVec_u8ZIOErrorZ_is_ok(long o);
4802         // void CResult_CVec_u8ZIOErrorZ_free(struct LDKCResult_CVec_u8ZIOErrorZ _res);
4803         public static native void CResult_CVec_u8ZIOErrorZ_free(long _res);
4804         // uint64_t CResult_CVec_u8ZIOErrorZ_clone_ptr(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR arg);
4805         public static native long CResult_CVec_u8ZIOErrorZ_clone_ptr(long arg);
4806         // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_clone(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR orig);
4807         public static native long CResult_CVec_u8ZIOErrorZ_clone(long orig);
4808         // void CVec_StrZ_free(struct LDKCVec_StrZ _res);
4809         public static native void CVec_StrZ_free(String[] _res);
4810         // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_ok(struct LDKCVec_StrZ o);
4811         public static native long CResult_CVec_StrZIOErrorZ_ok(String[] o);
4812         // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_err(enum LDKIOError e);
4813         public static native long CResult_CVec_StrZIOErrorZ_err(IOError e);
4814         // bool CResult_CVec_StrZIOErrorZ_is_ok(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR o);
4815         public static native boolean CResult_CVec_StrZIOErrorZ_is_ok(long o);
4816         // void CResult_CVec_StrZIOErrorZ_free(struct LDKCResult_CVec_StrZIOErrorZ _res);
4817         public static native void CResult_CVec_StrZIOErrorZ_free(long _res);
4818         // uint64_t CResult_CVec_StrZIOErrorZ_clone_ptr(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR arg);
4819         public static native long CResult_CVec_StrZIOErrorZ_clone_ptr(long arg);
4820         // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_clone(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR orig);
4821         public static native long CResult_CVec_StrZIOErrorZ_clone(long orig);
4822         // void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ _res);
4823         public static native void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(long[] _res);
4824         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ o);
4825         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(long[] o);
4826         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(enum LDKIOError e);
4827         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(IOError e);
4828         // bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR o);
4829         public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(long o);
4830         // void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ _res);
4831         public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(long _res);
4832         // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR arg);
4833         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(long arg);
4834         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR orig);
4835         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(long orig);
4836         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
4837         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(long o);
4838         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(enum LDKIOError e);
4839         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(IOError e);
4840         // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR o);
4841         public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(long o);
4842         // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ _res);
4843         public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(long _res);
4844         // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR arg);
4845         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(long arg);
4846         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR orig);
4847         public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(long orig);
4848         // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o);
4849         public static native long COption_SecretKeyZ_some(byte[] o);
4850         // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_none(void);
4851         public static native long COption_SecretKeyZ_none();
4852         // void COption_SecretKeyZ_free(struct LDKCOption_SecretKeyZ _res);
4853         public static native void COption_SecretKeyZ_free(long _res);
4854         // uint64_t COption_SecretKeyZ_clone_ptr(LDKCOption_SecretKeyZ *NONNULL_PTR arg);
4855         public static native long COption_SecretKeyZ_clone_ptr(long arg);
4856         // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_clone(const struct LDKCOption_SecretKeyZ *NONNULL_PTR orig);
4857         public static native long COption_SecretKeyZ_clone(long orig);
4858         // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o);
4859         public static native long CResult_VerifiedInvoiceRequestNoneZ_ok(long o);
4860         // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_err(void);
4861         public static native long CResult_VerifiedInvoiceRequestNoneZ_err();
4862         // bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR o);
4863         public static native boolean CResult_VerifiedInvoiceRequestNoneZ_is_ok(long o);
4864         // void CResult_VerifiedInvoiceRequestNoneZ_free(struct LDKCResult_VerifiedInvoiceRequestNoneZ _res);
4865         public static native void CResult_VerifiedInvoiceRequestNoneZ_free(long _res);
4866         // uint64_t CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR arg);
4867         public static native long CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(long arg);
4868         // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_clone(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR orig);
4869         public static native long CResult_VerifiedInvoiceRequestNoneZ_clone(long orig);
4870         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
4871         public static native COption_NoneZ COption_NoneZ_some();
4872         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
4873         public static native COption_NoneZ COption_NoneZ_none();
4874         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
4875         public static native void COption_NoneZ_free(COption_NoneZ _res);
4876         // void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res);
4877         public static native void CVec_WitnessZ_free(byte[][] _res);
4878         // struct LDKCOption_i64Z COption_i64Z_some(int64_t o);
4879         public static native long COption_i64Z_some(long o);
4880         // struct LDKCOption_i64Z COption_i64Z_none(void);
4881         public static native long COption_i64Z_none();
4882         // void COption_i64Z_free(struct LDKCOption_i64Z _res);
4883         public static native void COption_i64Z_free(long _res);
4884         // uint64_t COption_i64Z_clone_ptr(LDKCOption_i64Z *NONNULL_PTR arg);
4885         public static native long COption_i64Z_clone_ptr(long arg);
4886         // struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig);
4887         public static native long COption_i64Z_clone(long orig);
4888         // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_ok(struct LDKSocketAddress o);
4889         public static native long CResult_SocketAddressDecodeErrorZ_ok(long o);
4890         // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_err(struct LDKDecodeError e);
4891         public static native long CResult_SocketAddressDecodeErrorZ_err(long e);
4892         // bool CResult_SocketAddressDecodeErrorZ_is_ok(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR o);
4893         public static native boolean CResult_SocketAddressDecodeErrorZ_is_ok(long o);
4894         // void CResult_SocketAddressDecodeErrorZ_free(struct LDKCResult_SocketAddressDecodeErrorZ _res);
4895         public static native void CResult_SocketAddressDecodeErrorZ_free(long _res);
4896         // uint64_t CResult_SocketAddressDecodeErrorZ_clone_ptr(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR arg);
4897         public static native long CResult_SocketAddressDecodeErrorZ_clone_ptr(long arg);
4898         // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_clone(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR orig);
4899         public static native long CResult_SocketAddressDecodeErrorZ_clone(long orig);
4900         // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_ok(struct LDKSocketAddress o);
4901         public static native long CResult_SocketAddressSocketAddressParseErrorZ_ok(long o);
4902         // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_err(enum LDKSocketAddressParseError e);
4903         public static native long CResult_SocketAddressSocketAddressParseErrorZ_err(SocketAddressParseError e);
4904         // bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR o);
4905         public static native boolean CResult_SocketAddressSocketAddressParseErrorZ_is_ok(long o);
4906         // void CResult_SocketAddressSocketAddressParseErrorZ_free(struct LDKCResult_SocketAddressSocketAddressParseErrorZ _res);
4907         public static native void CResult_SocketAddressSocketAddressParseErrorZ_free(long _res);
4908         // uint64_t CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR arg);
4909         public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(long arg);
4910         // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_clone(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR orig);
4911         public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone(long orig);
4912         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
4913         public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
4914         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
4915         public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
4916         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
4917         public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
4918         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
4919         public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
4920         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
4921         public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
4922         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
4923         public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
4924         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
4925         public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
4926         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
4927         public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
4928         // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
4929         public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
4930         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
4931         public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
4932         // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_ok(struct LDKAcceptChannelV2 o);
4933         public static native long CResult_AcceptChannelV2DecodeErrorZ_ok(long o);
4934         // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
4935         public static native long CResult_AcceptChannelV2DecodeErrorZ_err(long e);
4936         // bool CResult_AcceptChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR o);
4937         public static native boolean CResult_AcceptChannelV2DecodeErrorZ_is_ok(long o);
4938         // void CResult_AcceptChannelV2DecodeErrorZ_free(struct LDKCResult_AcceptChannelV2DecodeErrorZ _res);
4939         public static native void CResult_AcceptChannelV2DecodeErrorZ_free(long _res);
4940         // uint64_t CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR arg);
4941         public static native long CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(long arg);
4942         // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_clone(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR orig);
4943         public static native long CResult_AcceptChannelV2DecodeErrorZ_clone(long orig);
4944         // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_ok(struct LDKTxAddInput o);
4945         public static native long CResult_TxAddInputDecodeErrorZ_ok(long o);
4946         // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_err(struct LDKDecodeError e);
4947         public static native long CResult_TxAddInputDecodeErrorZ_err(long e);
4948         // bool CResult_TxAddInputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR o);
4949         public static native boolean CResult_TxAddInputDecodeErrorZ_is_ok(long o);
4950         // void CResult_TxAddInputDecodeErrorZ_free(struct LDKCResult_TxAddInputDecodeErrorZ _res);
4951         public static native void CResult_TxAddInputDecodeErrorZ_free(long _res);
4952         // uint64_t CResult_TxAddInputDecodeErrorZ_clone_ptr(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR arg);
4953         public static native long CResult_TxAddInputDecodeErrorZ_clone_ptr(long arg);
4954         // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_clone(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR orig);
4955         public static native long CResult_TxAddInputDecodeErrorZ_clone(long orig);
4956         // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_ok(struct LDKTxAddOutput o);
4957         public static native long CResult_TxAddOutputDecodeErrorZ_ok(long o);
4958         // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_err(struct LDKDecodeError e);
4959         public static native long CResult_TxAddOutputDecodeErrorZ_err(long e);
4960         // bool CResult_TxAddOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR o);
4961         public static native boolean CResult_TxAddOutputDecodeErrorZ_is_ok(long o);
4962         // void CResult_TxAddOutputDecodeErrorZ_free(struct LDKCResult_TxAddOutputDecodeErrorZ _res);
4963         public static native void CResult_TxAddOutputDecodeErrorZ_free(long _res);
4964         // uint64_t CResult_TxAddOutputDecodeErrorZ_clone_ptr(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR arg);
4965         public static native long CResult_TxAddOutputDecodeErrorZ_clone_ptr(long arg);
4966         // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_clone(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR orig);
4967         public static native long CResult_TxAddOutputDecodeErrorZ_clone(long orig);
4968         // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_ok(struct LDKTxRemoveInput o);
4969         public static native long CResult_TxRemoveInputDecodeErrorZ_ok(long o);
4970         // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_err(struct LDKDecodeError e);
4971         public static native long CResult_TxRemoveInputDecodeErrorZ_err(long e);
4972         // bool CResult_TxRemoveInputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR o);
4973         public static native boolean CResult_TxRemoveInputDecodeErrorZ_is_ok(long o);
4974         // void CResult_TxRemoveInputDecodeErrorZ_free(struct LDKCResult_TxRemoveInputDecodeErrorZ _res);
4975         public static native void CResult_TxRemoveInputDecodeErrorZ_free(long _res);
4976         // uint64_t CResult_TxRemoveInputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR arg);
4977         public static native long CResult_TxRemoveInputDecodeErrorZ_clone_ptr(long arg);
4978         // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR orig);
4979         public static native long CResult_TxRemoveInputDecodeErrorZ_clone(long orig);
4980         // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_ok(struct LDKTxRemoveOutput o);
4981         public static native long CResult_TxRemoveOutputDecodeErrorZ_ok(long o);
4982         // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_err(struct LDKDecodeError e);
4983         public static native long CResult_TxRemoveOutputDecodeErrorZ_err(long e);
4984         // bool CResult_TxRemoveOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR o);
4985         public static native boolean CResult_TxRemoveOutputDecodeErrorZ_is_ok(long o);
4986         // void CResult_TxRemoveOutputDecodeErrorZ_free(struct LDKCResult_TxRemoveOutputDecodeErrorZ _res);
4987         public static native void CResult_TxRemoveOutputDecodeErrorZ_free(long _res);
4988         // uint64_t CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR arg);
4989         public static native long CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(long arg);
4990         // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR orig);
4991         public static native long CResult_TxRemoveOutputDecodeErrorZ_clone(long orig);
4992         // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_ok(struct LDKTxComplete o);
4993         public static native long CResult_TxCompleteDecodeErrorZ_ok(long o);
4994         // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_err(struct LDKDecodeError e);
4995         public static native long CResult_TxCompleteDecodeErrorZ_err(long e);
4996         // bool CResult_TxCompleteDecodeErrorZ_is_ok(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR o);
4997         public static native boolean CResult_TxCompleteDecodeErrorZ_is_ok(long o);
4998         // void CResult_TxCompleteDecodeErrorZ_free(struct LDKCResult_TxCompleteDecodeErrorZ _res);
4999         public static native void CResult_TxCompleteDecodeErrorZ_free(long _res);
5000         // uint64_t CResult_TxCompleteDecodeErrorZ_clone_ptr(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR arg);
5001         public static native long CResult_TxCompleteDecodeErrorZ_clone_ptr(long arg);
5002         // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_clone(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR orig);
5003         public static native long CResult_TxCompleteDecodeErrorZ_clone(long orig);
5004         // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_ok(struct LDKTxSignatures o);
5005         public static native long CResult_TxSignaturesDecodeErrorZ_ok(long o);
5006         // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
5007         public static native long CResult_TxSignaturesDecodeErrorZ_err(long e);
5008         // bool CResult_TxSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR o);
5009         public static native boolean CResult_TxSignaturesDecodeErrorZ_is_ok(long o);
5010         // void CResult_TxSignaturesDecodeErrorZ_free(struct LDKCResult_TxSignaturesDecodeErrorZ _res);
5011         public static native void CResult_TxSignaturesDecodeErrorZ_free(long _res);
5012         // uint64_t CResult_TxSignaturesDecodeErrorZ_clone_ptr(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR arg);
5013         public static native long CResult_TxSignaturesDecodeErrorZ_clone_ptr(long arg);
5014         // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_clone(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR orig);
5015         public static native long CResult_TxSignaturesDecodeErrorZ_clone(long orig);
5016         // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_ok(struct LDKTxInitRbf o);
5017         public static native long CResult_TxInitRbfDecodeErrorZ_ok(long o);
5018         // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_err(struct LDKDecodeError e);
5019         public static native long CResult_TxInitRbfDecodeErrorZ_err(long e);
5020         // bool CResult_TxInitRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR o);
5021         public static native boolean CResult_TxInitRbfDecodeErrorZ_is_ok(long o);
5022         // void CResult_TxInitRbfDecodeErrorZ_free(struct LDKCResult_TxInitRbfDecodeErrorZ _res);
5023         public static native void CResult_TxInitRbfDecodeErrorZ_free(long _res);
5024         // uint64_t CResult_TxInitRbfDecodeErrorZ_clone_ptr(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR arg);
5025         public static native long CResult_TxInitRbfDecodeErrorZ_clone_ptr(long arg);
5026         // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_clone(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR orig);
5027         public static native long CResult_TxInitRbfDecodeErrorZ_clone(long orig);
5028         // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_ok(struct LDKTxAckRbf o);
5029         public static native long CResult_TxAckRbfDecodeErrorZ_ok(long o);
5030         // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_err(struct LDKDecodeError e);
5031         public static native long CResult_TxAckRbfDecodeErrorZ_err(long e);
5032         // bool CResult_TxAckRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR o);
5033         public static native boolean CResult_TxAckRbfDecodeErrorZ_is_ok(long o);
5034         // void CResult_TxAckRbfDecodeErrorZ_free(struct LDKCResult_TxAckRbfDecodeErrorZ _res);
5035         public static native void CResult_TxAckRbfDecodeErrorZ_free(long _res);
5036         // uint64_t CResult_TxAckRbfDecodeErrorZ_clone_ptr(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR arg);
5037         public static native long CResult_TxAckRbfDecodeErrorZ_clone_ptr(long arg);
5038         // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_clone(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR orig);
5039         public static native long CResult_TxAckRbfDecodeErrorZ_clone(long orig);
5040         // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_ok(struct LDKTxAbort o);
5041         public static native long CResult_TxAbortDecodeErrorZ_ok(long o);
5042         // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_err(struct LDKDecodeError e);
5043         public static native long CResult_TxAbortDecodeErrorZ_err(long e);
5044         // bool CResult_TxAbortDecodeErrorZ_is_ok(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR o);
5045         public static native boolean CResult_TxAbortDecodeErrorZ_is_ok(long o);
5046         // void CResult_TxAbortDecodeErrorZ_free(struct LDKCResult_TxAbortDecodeErrorZ _res);
5047         public static native void CResult_TxAbortDecodeErrorZ_free(long _res);
5048         // uint64_t CResult_TxAbortDecodeErrorZ_clone_ptr(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR arg);
5049         public static native long CResult_TxAbortDecodeErrorZ_clone_ptr(long arg);
5050         // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_clone(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR orig);
5051         public static native long CResult_TxAbortDecodeErrorZ_clone(long orig);
5052         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
5053         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
5054         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
5055         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
5056         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
5057         public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
5058         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
5059         public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
5060         // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
5061         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
5062         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
5063         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
5064         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
5065         public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
5066         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
5067         public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
5068         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
5069         public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
5070         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
5071         public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
5072         // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
5073         public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
5074         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
5075         public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
5076         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
5077         public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
5078         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
5079         public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
5080         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
5081         public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
5082         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
5083         public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
5084         // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
5085         public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
5086         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
5087         public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
5088         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
5089         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
5090         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
5091         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
5092         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
5093         public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
5094         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
5095         public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
5096         // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
5097         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
5098         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
5099         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
5100         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
5101         public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
5102         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
5103         public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
5104         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
5105         public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
5106         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
5107         public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
5108         // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
5109         public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
5110         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
5111         public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
5112         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
5113         public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
5114         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
5115         public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
5116         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
5117         public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
5118         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
5119         public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
5120         // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
5121         public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
5122         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
5123         public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
5124         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
5125         public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
5126         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
5127         public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
5128         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
5129         public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
5130         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
5131         public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
5132         // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
5133         public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
5134         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
5135         public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
5136         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
5137         public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
5138         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
5139         public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
5140         // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
5141         public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
5142         // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
5143         public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
5144         // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
5145         public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
5146         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
5147         public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
5148         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
5149         public static native long CResult_InitDecodeErrorZ_ok(long o);
5150         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
5151         public static native long CResult_InitDecodeErrorZ_err(long e);
5152         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
5153         public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
5154         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
5155         public static native void CResult_InitDecodeErrorZ_free(long _res);
5156         // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
5157         public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
5158         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
5159         public static native long CResult_InitDecodeErrorZ_clone(long orig);
5160         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
5161         public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
5162         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
5163         public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
5164         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
5165         public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
5166         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
5167         public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
5168         // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
5169         public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
5170         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
5171         public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
5172         // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_ok(struct LDKOpenChannelV2 o);
5173         public static native long CResult_OpenChannelV2DecodeErrorZ_ok(long o);
5174         // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
5175         public static native long CResult_OpenChannelV2DecodeErrorZ_err(long e);
5176         // bool CResult_OpenChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR o);
5177         public static native boolean CResult_OpenChannelV2DecodeErrorZ_is_ok(long o);
5178         // void CResult_OpenChannelV2DecodeErrorZ_free(struct LDKCResult_OpenChannelV2DecodeErrorZ _res);
5179         public static native void CResult_OpenChannelV2DecodeErrorZ_free(long _res);
5180         // uint64_t CResult_OpenChannelV2DecodeErrorZ_clone_ptr(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR arg);
5181         public static native long CResult_OpenChannelV2DecodeErrorZ_clone_ptr(long arg);
5182         // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_clone(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR orig);
5183         public static native long CResult_OpenChannelV2DecodeErrorZ_clone(long orig);
5184         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
5185         public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
5186         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
5187         public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
5188         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
5189         public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
5190         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
5191         public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
5192         // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
5193         public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
5194         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
5195         public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
5196         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
5197         public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
5198         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
5199         public static native long CResult_ShutdownDecodeErrorZ_err(long e);
5200         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
5201         public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
5202         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
5203         public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
5204         // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
5205         public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
5206         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
5207         public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
5208         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
5209         public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
5210         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5211         public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
5212         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
5213         public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
5214         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
5215         public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
5216         // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
5217         public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
5218         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
5219         public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
5220         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
5221         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
5222         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5223         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
5224         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
5225         public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
5226         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
5227         public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
5228         // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
5229         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
5230         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
5231         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
5232         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
5233         public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
5234         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
5235         public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
5236         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
5237         public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
5238         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
5239         public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
5240         // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
5241         public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
5242         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
5243         public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
5244         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
5245         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
5246         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5247         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
5248         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
5249         public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
5250         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
5251         public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
5252         // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
5253         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
5254         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
5255         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
5256         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
5257         public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
5258         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5259         public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
5260         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
5261         public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
5262         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
5263         public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
5264         // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
5265         public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
5266         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
5267         public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
5268         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
5269         public static native long CResult_OnionMessageDecodeErrorZ_ok(long o);
5270         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
5271         public static native long CResult_OnionMessageDecodeErrorZ_err(long e);
5272         // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
5273         public static native boolean CResult_OnionMessageDecodeErrorZ_is_ok(long o);
5274         // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
5275         public static native void CResult_OnionMessageDecodeErrorZ_free(long _res);
5276         // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
5277         public static native long CResult_OnionMessageDecodeErrorZ_clone_ptr(long arg);
5278         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
5279         public static native long CResult_OnionMessageDecodeErrorZ_clone(long orig);
5280         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
5281         public static native long CResult_PingDecodeErrorZ_ok(long o);
5282         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
5283         public static native long CResult_PingDecodeErrorZ_err(long e);
5284         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
5285         public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
5286         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
5287         public static native void CResult_PingDecodeErrorZ_free(long _res);
5288         // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
5289         public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
5290         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
5291         public static native long CResult_PingDecodeErrorZ_clone(long orig);
5292         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
5293         public static native long CResult_PongDecodeErrorZ_ok(long o);
5294         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
5295         public static native long CResult_PongDecodeErrorZ_err(long e);
5296         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
5297         public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
5298         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
5299         public static native void CResult_PongDecodeErrorZ_free(long _res);
5300         // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
5301         public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
5302         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
5303         public static native long CResult_PongDecodeErrorZ_clone(long orig);
5304         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
5305         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
5306         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5307         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
5308         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
5309         public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
5310         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
5311         public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
5312         // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5313         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
5314         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5315         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
5316         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
5317         public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
5318         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5319         public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
5320         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
5321         public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
5322         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
5323         public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
5324         // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5325         public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
5326         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5327         public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
5328         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
5329         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
5330         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5331         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
5332         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
5333         public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
5334         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
5335         public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
5336         // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
5337         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
5338         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
5339         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
5340         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
5341         public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
5342         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5343         public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
5344         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
5345         public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
5346         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
5347         public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
5348         // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
5349         public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
5350         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
5351         public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
5352         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
5353         public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
5354         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
5355         public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
5356         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
5357         public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
5358         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
5359         public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
5360         // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
5361         public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
5362         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
5363         public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
5364         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
5365         public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
5366         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
5367         public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
5368         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
5369         public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
5370         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
5371         public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
5372         // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
5373         public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
5374         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
5375         public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
5376         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
5377         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
5378         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5379         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
5380         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
5381         public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
5382         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
5383         public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
5384         // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5385         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
5386         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5387         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
5388         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
5389         public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
5390         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5391         public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
5392         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
5393         public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
5394         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
5395         public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
5396         // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5397         public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
5398         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5399         public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
5400         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
5401         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
5402         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
5403         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
5404         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
5405         public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
5406         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
5407         public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
5408         // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
5409         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
5410         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
5411         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
5412         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
5413         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
5414         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
5415         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
5416         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
5417         public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
5418         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
5419         public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
5420         // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
5421         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
5422         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
5423         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
5424         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
5425         public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
5426         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
5427         public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
5428         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
5429         public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
5430         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
5431         public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
5432         // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
5433         public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
5434         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
5435         public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
5436         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
5437         public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
5438         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
5439         public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
5440         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
5441         public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
5442         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
5443         public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
5444         // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
5445         public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
5446         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
5447         public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
5448         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
5449         public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
5450         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
5451         public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
5452         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
5453         public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
5454         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
5455         public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
5456         // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
5457         public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
5458         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
5459         public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
5460         // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
5461         public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
5462         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(struct LDKBolt11Invoice o);
5463         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(long o);
5464         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
5465         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_err(long e);
5466         // bool CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
5467         public static native boolean CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(long o);
5468         // void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ _res);
5469         public static native void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(long _res);
5470         // uint64_t CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
5471         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
5472         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
5473         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(long orig);
5474         // void CVec_FutureZ_free(struct LDKCVec_FutureZ _res);
5475         public static native void CVec_FutureZ_free(long[] _res);
5476         // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o);
5477         public static native long CResult_OffersMessageDecodeErrorZ_ok(long o);
5478         // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e);
5479         public static native long CResult_OffersMessageDecodeErrorZ_err(long e);
5480         // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o);
5481         public static native boolean CResult_OffersMessageDecodeErrorZ_is_ok(long o);
5482         // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res);
5483         public static native void CResult_OffersMessageDecodeErrorZ_free(long _res);
5484         // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg);
5485         public static native long CResult_OffersMessageDecodeErrorZ_clone_ptr(long arg);
5486         // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig);
5487         public static native long CResult_OffersMessageDecodeErrorZ_clone(long orig);
5488         // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
5489         public static native long COption_HTLCClaimZ_some(HTLCClaim o);
5490         // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
5491         public static native long COption_HTLCClaimZ_none();
5492         // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
5493         public static native void COption_HTLCClaimZ_free(long _res);
5494         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
5495         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
5496         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
5497         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
5498         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
5499         public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
5500         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
5501         public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
5502         // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
5503         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
5504         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
5505         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
5506         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
5507         public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
5508         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
5509         public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
5510         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
5511         public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
5512         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
5513         public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
5514         // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
5515         public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
5516         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
5517         public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
5518         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
5519         public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
5520         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
5521         public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
5522         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
5523         public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
5524         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
5525         public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
5526         // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
5527         public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
5528         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
5529         public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
5530         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
5531         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
5532         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
5533         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
5534         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
5535         public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
5536         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
5537         public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
5538         // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
5539         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
5540         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
5541         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
5542         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
5543         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
5544         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
5545         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
5546         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
5547         public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
5548         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
5549         public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
5550         // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
5551         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
5552         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
5553         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
5554         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
5555         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
5556         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
5557         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
5558         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
5559         public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
5560         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
5561         public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
5562         // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
5563         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
5564         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
5565         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
5566         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
5567         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
5568         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5569         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
5570         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5571         public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
5572         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
5573         public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
5574         // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5575         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5576         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5577         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
5578         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
5579         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
5580         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5581         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
5582         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5583         public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
5584         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
5585         public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
5586         // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5587         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5588         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5589         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
5590         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
5591         public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
5592         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
5593         public static native long CResult_TrustedClosingTransactionNoneZ_err();
5594         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
5595         public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
5596         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
5597         public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
5598         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
5599         public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
5600         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5601         public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
5602         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5603         public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
5604         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
5605         public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
5606         // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5607         public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5608         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5609         public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
5610         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
5611         public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
5612         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
5613         public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
5614         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
5615         public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
5616         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
5617         public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
5618         // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o);
5619         public static native long CResult_CVec_ECDSASignatureZNoneZ_ok(byte[][] o);
5620         // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void);
5621         public static native long CResult_CVec_ECDSASignatureZNoneZ_err();
5622         // bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o);
5623         public static native boolean CResult_CVec_ECDSASignatureZNoneZ_is_ok(long o);
5624         // void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res);
5625         public static native void CResult_CVec_ECDSASignatureZNoneZ_free(long _res);
5626         // uint64_t CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR arg);
5627         public static native long CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(long arg);
5628         // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig);
5629         public static native long CResult_CVec_ECDSASignatureZNoneZ_clone(long orig);
5630         // struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o);
5631         public static native long COption_usizeZ_some(long o);
5632         // struct LDKCOption_usizeZ COption_usizeZ_none(void);
5633         public static native long COption_usizeZ_none();
5634         // void COption_usizeZ_free(struct LDKCOption_usizeZ _res);
5635         public static native void COption_usizeZ_free(long _res);
5636         // uint64_t COption_usizeZ_clone_ptr(LDKCOption_usizeZ *NONNULL_PTR arg);
5637         public static native long COption_usizeZ_clone_ptr(long arg);
5638         // struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig);
5639         public static native long COption_usizeZ_clone(long orig);
5640         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
5641         public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
5642         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
5643         public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
5644         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
5645         public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
5646         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
5647         public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
5648         // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
5649         public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
5650         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
5651         public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
5652         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
5653         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
5654         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
5655         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
5656         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
5657         public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
5658         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
5659         public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
5660         // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
5661         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
5662         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
5663         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
5664         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
5665         public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
5666         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
5667         public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
5668         // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
5669         public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
5670         // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
5671         public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
5672         // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
5673         public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
5674         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
5675         public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
5676         // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o);
5677         public static native long CResult_ClaimedHTLCDecodeErrorZ_ok(long o);
5678         // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5679         public static native long CResult_ClaimedHTLCDecodeErrorZ_err(long e);
5680         // bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o);
5681         public static native boolean CResult_ClaimedHTLCDecodeErrorZ_is_ok(long o);
5682         // void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res);
5683         public static native void CResult_ClaimedHTLCDecodeErrorZ_free(long _res);
5684         // uint64_t CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR arg);
5685         public static native long CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(long arg);
5686         // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig);
5687         public static native long CResult_ClaimedHTLCDecodeErrorZ_clone(long orig);
5688         // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
5689         public static native long COption_PathFailureZ_some(long o);
5690         // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
5691         public static native long COption_PathFailureZ_none();
5692         // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
5693         public static native void COption_PathFailureZ_free(long _res);
5694         // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
5695         public static native long COption_PathFailureZ_clone_ptr(long arg);
5696         // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
5697         public static native long COption_PathFailureZ_clone(long orig);
5698         // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
5699         public static native long CResult_COption_PathFailureZDecodeErrorZ_ok(long o);
5700         // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
5701         public static native long CResult_COption_PathFailureZDecodeErrorZ_err(long e);
5702         // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
5703         public static native boolean CResult_COption_PathFailureZDecodeErrorZ_is_ok(long o);
5704         // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
5705         public static native void CResult_COption_PathFailureZDecodeErrorZ_free(long _res);
5706         // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
5707         public static native long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long arg);
5708         // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
5709         public static native long CResult_COption_PathFailureZDecodeErrorZ_clone(long orig);
5710         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
5711         public static native long COption_ClosureReasonZ_some(long o);
5712         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
5713         public static native long COption_ClosureReasonZ_none();
5714         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
5715         public static native void COption_ClosureReasonZ_free(long _res);
5716         // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
5717         public static native long COption_ClosureReasonZ_clone_ptr(long arg);
5718         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
5719         public static native long COption_ClosureReasonZ_clone(long orig);
5720         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
5721         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
5722         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
5723         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
5724         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
5725         public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
5726         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
5727         public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
5728         // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
5729         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
5730         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
5731         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
5732         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
5733         public static native long COption_HTLCDestinationZ_some(long o);
5734         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
5735         public static native long COption_HTLCDestinationZ_none();
5736         // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
5737         public static native void COption_HTLCDestinationZ_free(long _res);
5738         // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
5739         public static native long COption_HTLCDestinationZ_clone_ptr(long arg);
5740         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
5741         public static native long COption_HTLCDestinationZ_clone(long orig);
5742         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
5743         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long o);
5744         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
5745         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long e);
5746         // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
5747         public static native boolean CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long o);
5748         // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
5749         public static native void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long _res);
5750         // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
5751         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long arg);
5752         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
5753         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long orig);
5754         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o);
5755         public static native long CResult_PaymentFailureReasonDecodeErrorZ_ok(PaymentFailureReason o);
5756         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e);
5757         public static native long CResult_PaymentFailureReasonDecodeErrorZ_err(long e);
5758         // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o);
5759         public static native boolean CResult_PaymentFailureReasonDecodeErrorZ_is_ok(long o);
5760         // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res);
5761         public static native void CResult_PaymentFailureReasonDecodeErrorZ_free(long _res);
5762         // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg);
5763         public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(long arg);
5764         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig);
5765         public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone(long orig);
5766         // struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o);
5767         public static native long COption_U128Z_some(byte[] o);
5768         // struct LDKCOption_U128Z COption_U128Z_none(void);
5769         public static native long COption_U128Z_none();
5770         // void COption_U128Z_free(struct LDKCOption_U128Z _res);
5771         public static native void COption_U128Z_free(long _res);
5772         // uint64_t COption_U128Z_clone_ptr(LDKCOption_U128Z *NONNULL_PTR arg);
5773         public static native long COption_U128Z_clone_ptr(long arg);
5774         // struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig);
5775         public static native long COption_U128Z_clone(long orig);
5776         // void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res);
5777         public static native void CVec_ClaimedHTLCZ_free(long[] _res);
5778         // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o);
5779         public static native long COption_PaymentFailureReasonZ_some(PaymentFailureReason o);
5780         // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void);
5781         public static native long COption_PaymentFailureReasonZ_none();
5782         // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res);
5783         public static native void COption_PaymentFailureReasonZ_free(long _res);
5784         // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg);
5785         public static native long COption_PaymentFailureReasonZ_clone_ptr(long arg);
5786         // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig);
5787         public static native long COption_PaymentFailureReasonZ_clone(long orig);
5788         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
5789         public static native long COption_EventZ_some(long o);
5790         // struct LDKCOption_EventZ COption_EventZ_none(void);
5791         public static native long COption_EventZ_none();
5792         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
5793         public static native void COption_EventZ_free(long _res);
5794         // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
5795         public static native long COption_EventZ_clone_ptr(long arg);
5796         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
5797         public static native long COption_EventZ_clone(long orig);
5798         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
5799         public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
5800         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
5801         public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
5802         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
5803         public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
5804         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
5805         public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
5806         // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
5807         public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
5808         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
5809         public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
5810         // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o);
5811         public static native long CResult_SiPrefixBolt11ParseErrorZ_ok(SiPrefix o);
5812         // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
5813         public static native long CResult_SiPrefixBolt11ParseErrorZ_err(long e);
5814         // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o);
5815         public static native boolean CResult_SiPrefixBolt11ParseErrorZ_is_ok(long o);
5816         // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res);
5817         public static native void CResult_SiPrefixBolt11ParseErrorZ_free(long _res);
5818         // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg);
5819         public static native long CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(long arg);
5820         // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig);
5821         public static native long CResult_SiPrefixBolt11ParseErrorZ_clone(long orig);
5822         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o);
5823         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(long o);
5824         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
5825         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(long e);
5826         // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
5827         public static native boolean CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(long o);
5828         // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res);
5829         public static native void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(long _res);
5830         // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
5831         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
5832         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
5833         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(long orig);
5834         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o);
5835         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(long o);
5836         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
5837         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(long e);
5838         // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o);
5839         public static native boolean CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(long o);
5840         // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res);
5841         public static native void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(long _res);
5842         // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg);
5843         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(long arg);
5844         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig);
5845         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(long orig);
5846         // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg);
5847         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(long arg);
5848         // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig);
5849         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(long orig);
5850         // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c);
5851         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(long a, byte[] b, long c);
5852         // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res);
5853         public static native void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(long _res);
5854         // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o);
5855         public static native long CResult_PayeePubKeySecp256k1ErrorZ_ok(long o);
5856         // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
5857         public static native long CResult_PayeePubKeySecp256k1ErrorZ_err(Secp256k1Error e);
5858         // bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o);
5859         public static native boolean CResult_PayeePubKeySecp256k1ErrorZ_is_ok(long o);
5860         // void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res);
5861         public static native void CResult_PayeePubKeySecp256k1ErrorZ_free(long _res);
5862         // uint64_t CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR arg);
5863         public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(long arg);
5864         // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig);
5865         public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone(long orig);
5866         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
5867         public static native void CVec_PrivateRouteZ_free(long[] _res);
5868         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
5869         public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
5870         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
5871         public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
5872         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
5873         public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
5874         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
5875         public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
5876         // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
5877         public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
5878         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
5879         public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
5880         // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void);
5881         public static native long CResult_NoneBolt11SemanticErrorZ_ok();
5882         // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
5883         public static native long CResult_NoneBolt11SemanticErrorZ_err(Bolt11SemanticError e);
5884         // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o);
5885         public static native boolean CResult_NoneBolt11SemanticErrorZ_is_ok(long o);
5886         // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res);
5887         public static native void CResult_NoneBolt11SemanticErrorZ_free(long _res);
5888         // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg);
5889         public static native long CResult_NoneBolt11SemanticErrorZ_clone_ptr(long arg);
5890         // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig);
5891         public static native long CResult_NoneBolt11SemanticErrorZ_clone(long orig);
5892         // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o);
5893         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(long o);
5894         // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
5895         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(Bolt11SemanticError e);
5896         // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o);
5897         public static native boolean CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(long o);
5898         // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res);
5899         public static native void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(long _res);
5900         // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg);
5901         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(long arg);
5902         // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig);
5903         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(long orig);
5904         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
5905         public static native long CResult_DescriptionCreationErrorZ_ok(long o);
5906         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
5907         public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
5908         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
5909         public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
5910         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
5911         public static native void CResult_DescriptionCreationErrorZ_free(long _res);
5912         // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
5913         public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
5914         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
5915         public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
5916         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
5917         public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
5918         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
5919         public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
5920         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
5921         public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
5922         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
5923         public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
5924         // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
5925         public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
5926         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
5927         public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
5928         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
5929         public static native long CResult_OutPointDecodeErrorZ_ok(long o);
5930         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
5931         public static native long CResult_OutPointDecodeErrorZ_err(long e);
5932         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
5933         public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
5934         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
5935         public static native void CResult_OutPointDecodeErrorZ_free(long _res);
5936         // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
5937         public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
5938         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
5939         public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
5940         // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o);
5941         public static native long CResult_BigSizeDecodeErrorZ_ok(long o);
5942         // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e);
5943         public static native long CResult_BigSizeDecodeErrorZ_err(long e);
5944         // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o);
5945         public static native boolean CResult_BigSizeDecodeErrorZ_is_ok(long o);
5946         // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res);
5947         public static native void CResult_BigSizeDecodeErrorZ_free(long _res);
5948         // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg);
5949         public static native long CResult_BigSizeDecodeErrorZ_clone_ptr(long arg);
5950         // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig);
5951         public static native long CResult_BigSizeDecodeErrorZ_clone(long orig);
5952         // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o);
5953         public static native long CResult_HostnameDecodeErrorZ_ok(long o);
5954         // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e);
5955         public static native long CResult_HostnameDecodeErrorZ_err(long e);
5956         // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o);
5957         public static native boolean CResult_HostnameDecodeErrorZ_is_ok(long o);
5958         // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res);
5959         public static native void CResult_HostnameDecodeErrorZ_free(long _res);
5960         // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg);
5961         public static native long CResult_HostnameDecodeErrorZ_clone_ptr(long arg);
5962         // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig);
5963         public static native long CResult_HostnameDecodeErrorZ_clone(long orig);
5964         // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o);
5965         public static native long CResult_TransactionU16LenLimitedNoneZ_ok(long o);
5966         // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void);
5967         public static native long CResult_TransactionU16LenLimitedNoneZ_err();
5968         // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o);
5969         public static native boolean CResult_TransactionU16LenLimitedNoneZ_is_ok(long o);
5970         // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res);
5971         public static native void CResult_TransactionU16LenLimitedNoneZ_free(long _res);
5972         // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg);
5973         public static native long CResult_TransactionU16LenLimitedNoneZ_clone_ptr(long arg);
5974         // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig);
5975         public static native long CResult_TransactionU16LenLimitedNoneZ_clone(long orig);
5976         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o);
5977         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_ok(long o);
5978         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e);
5979         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_err(long e);
5980         // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o);
5981         public static native boolean CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(long o);
5982         // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res);
5983         public static native void CResult_TransactionU16LenLimitedDecodeErrorZ_free(long _res);
5984         // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg);
5985         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(long arg);
5986         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig);
5987         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone(long orig);
5988         // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o);
5989         public static native long CResult_UntrustedStringDecodeErrorZ_ok(long o);
5990         // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e);
5991         public static native long CResult_UntrustedStringDecodeErrorZ_err(long e);
5992         // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o);
5993         public static native boolean CResult_UntrustedStringDecodeErrorZ_is_ok(long o);
5994         // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res);
5995         public static native void CResult_UntrustedStringDecodeErrorZ_free(long _res);
5996         // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg);
5997         public static native long CResult_UntrustedStringDecodeErrorZ_clone_ptr(long arg);
5998         // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig);
5999         public static native long CResult_UntrustedStringDecodeErrorZ_clone(long orig);
6000         // struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_ok(struct LDKReceiveTlvs o);
6001         public static native long CResult_ReceiveTlvsDecodeErrorZ_ok(long o);
6002         // struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_err(struct LDKDecodeError e);
6003         public static native long CResult_ReceiveTlvsDecodeErrorZ_err(long e);
6004         // bool CResult_ReceiveTlvsDecodeErrorZ_is_ok(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR o);
6005         public static native boolean CResult_ReceiveTlvsDecodeErrorZ_is_ok(long o);
6006         // void CResult_ReceiveTlvsDecodeErrorZ_free(struct LDKCResult_ReceiveTlvsDecodeErrorZ _res);
6007         public static native void CResult_ReceiveTlvsDecodeErrorZ_free(long _res);
6008         // uint64_t CResult_ReceiveTlvsDecodeErrorZ_clone_ptr(LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR arg);
6009         public static native long CResult_ReceiveTlvsDecodeErrorZ_clone_ptr(long arg);
6010         // struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_clone(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR orig);
6011         public static native long CResult_ReceiveTlvsDecodeErrorZ_clone(long orig);
6012         // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o);
6013         public static native long CResult_PaymentRelayDecodeErrorZ_ok(long o);
6014         // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e);
6015         public static native long CResult_PaymentRelayDecodeErrorZ_err(long e);
6016         // bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o);
6017         public static native boolean CResult_PaymentRelayDecodeErrorZ_is_ok(long o);
6018         // void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res);
6019         public static native void CResult_PaymentRelayDecodeErrorZ_free(long _res);
6020         // uint64_t CResult_PaymentRelayDecodeErrorZ_clone_ptr(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR arg);
6021         public static native long CResult_PaymentRelayDecodeErrorZ_clone_ptr(long arg);
6022         // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig);
6023         public static native long CResult_PaymentRelayDecodeErrorZ_clone(long orig);
6024         // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o);
6025         public static native long CResult_PaymentConstraintsDecodeErrorZ_ok(long o);
6026         // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e);
6027         public static native long CResult_PaymentConstraintsDecodeErrorZ_err(long e);
6028         // bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o);
6029         public static native boolean CResult_PaymentConstraintsDecodeErrorZ_is_ok(long o);
6030         // void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res);
6031         public static native void CResult_PaymentConstraintsDecodeErrorZ_free(long _res);
6032         // uint64_t CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR arg);
6033         public static native long CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(long arg);
6034         // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig);
6035         public static native long CResult_PaymentConstraintsDecodeErrorZ_clone(long orig);
6036         // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
6037         public static native long CResult_ThirtyTwoBytesPaymentErrorZ_ok(byte[] o);
6038         // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_err(struct LDKPaymentError e);
6039         public static native long CResult_ThirtyTwoBytesPaymentErrorZ_err(long e);
6040         // bool CResult_ThirtyTwoBytesPaymentErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR o);
6041         public static native boolean CResult_ThirtyTwoBytesPaymentErrorZ_is_ok(long o);
6042         // void CResult_ThirtyTwoBytesPaymentErrorZ_free(struct LDKCResult_ThirtyTwoBytesPaymentErrorZ _res);
6043         public static native void CResult_ThirtyTwoBytesPaymentErrorZ_free(long _res);
6044         // uint64_t CResult_ThirtyTwoBytesPaymentErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR arg);
6045         public static native long CResult_ThirtyTwoBytesPaymentErrorZ_clone_ptr(long arg);
6046         // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR orig);
6047         public static native long CResult_ThirtyTwoBytesPaymentErrorZ_clone(long orig);
6048         // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_ok(void);
6049         public static native long CResult_NonePaymentErrorZ_ok();
6050         // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_err(struct LDKPaymentError e);
6051         public static native long CResult_NonePaymentErrorZ_err(long e);
6052         // bool CResult_NonePaymentErrorZ_is_ok(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR o);
6053         public static native boolean CResult_NonePaymentErrorZ_is_ok(long o);
6054         // void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res);
6055         public static native void CResult_NonePaymentErrorZ_free(long _res);
6056         // uint64_t CResult_NonePaymentErrorZ_clone_ptr(LDKCResult_NonePaymentErrorZ *NONNULL_PTR arg);
6057         public static native long CResult_NonePaymentErrorZ_clone_ptr(long arg);
6058         // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig);
6059         public static native long CResult_NonePaymentErrorZ_clone(long orig);
6060         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o);
6061         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_ok(long[] o);
6062         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_err(struct LDKProbingError e);
6063         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_err(long e);
6064         // bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR o);
6065         public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_is_ok(long o);
6066         // void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ _res);
6067         public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_free(long _res);
6068         // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR arg);
6069         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone_ptr(long arg);
6070         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR orig);
6071         public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone(long orig);
6072         // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o);
6073         public static native long CResult_StrSecp256k1ErrorZ_ok(String o);
6074         // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
6075         public static native long CResult_StrSecp256k1ErrorZ_err(Secp256k1Error e);
6076         // bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o);
6077         public static native boolean CResult_StrSecp256k1ErrorZ_is_ok(long o);
6078         // void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res);
6079         public static native void CResult_StrSecp256k1ErrorZ_free(long _res);
6080         // uint64_t CResult_StrSecp256k1ErrorZ_clone_ptr(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR arg);
6081         public static native long CResult_StrSecp256k1ErrorZ_clone_ptr(long arg);
6082         // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig);
6083         public static native long CResult_StrSecp256k1ErrorZ_clone(long orig);
6084         // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
6085         public static native long CResult_TxOutUtxoLookupErrorZ_ok(long o);
6086         // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
6087         public static native long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError e);
6088         // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
6089         public static native boolean CResult_TxOutUtxoLookupErrorZ_is_ok(long o);
6090         // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
6091         public static native void CResult_TxOutUtxoLookupErrorZ_free(long _res);
6092         // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
6093         public static native long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long arg);
6094         // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
6095         public static native long CResult_TxOutUtxoLookupErrorZ_clone(long orig);
6096         // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_ok(struct LDKOnionMessagePath o);
6097         public static native long CResult_OnionMessagePathNoneZ_ok(long o);
6098         // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_err(void);
6099         public static native long CResult_OnionMessagePathNoneZ_err();
6100         // bool CResult_OnionMessagePathNoneZ_is_ok(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR o);
6101         public static native boolean CResult_OnionMessagePathNoneZ_is_ok(long o);
6102         // void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ _res);
6103         public static native void CResult_OnionMessagePathNoneZ_free(long _res);
6104         // uint64_t CResult_OnionMessagePathNoneZ_clone_ptr(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR arg);
6105         public static native long CResult_OnionMessagePathNoneZ_clone_ptr(long arg);
6106         // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig);
6107         public static native long CResult_OnionMessagePathNoneZ_clone(long orig);
6108         // uint64_t C2Tuple_PublicKeyOnionMessageZ_clone_ptr(LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR arg);
6109         public static native long C2Tuple_PublicKeyOnionMessageZ_clone_ptr(long arg);
6110         // struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_clone(const struct LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR orig);
6111         public static native long C2Tuple_PublicKeyOnionMessageZ_clone(long orig);
6112         // struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_new(struct LDKPublicKey a, struct LDKOnionMessage b);
6113         public static native long C2Tuple_PublicKeyOnionMessageZ_new(byte[] a, long b);
6114         // void C2Tuple_PublicKeyOnionMessageZ_free(struct LDKC2Tuple_PublicKeyOnionMessageZ _res);
6115         public static native void C2Tuple_PublicKeyOnionMessageZ_free(long _res);
6116         // struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_ok(struct LDKC2Tuple_PublicKeyOnionMessageZ o);
6117         public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_ok(long o);
6118         // struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_err(struct LDKSendError e);
6119         public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_err(long e);
6120         // bool CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_is_ok(const struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR o);
6121         public static native boolean CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_is_ok(long o);
6122         // void CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_free(struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ _res);
6123         public static native void CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_free(long _res);
6124         // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_ok(struct LDKPeeledOnion o);
6125         public static native long CResult_PeeledOnionNoneZ_ok(long o);
6126         // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_err(void);
6127         public static native long CResult_PeeledOnionNoneZ_err();
6128         // bool CResult_PeeledOnionNoneZ_is_ok(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR o);
6129         public static native boolean CResult_PeeledOnionNoneZ_is_ok(long o);
6130         // void CResult_PeeledOnionNoneZ_free(struct LDKCResult_PeeledOnionNoneZ _res);
6131         public static native void CResult_PeeledOnionNoneZ_free(long _res);
6132         // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_ok(void);
6133         public static native long CResult_NoneSendErrorZ_ok();
6134         // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_err(struct LDKSendError e);
6135         public static native long CResult_NoneSendErrorZ_err(long e);
6136         // bool CResult_NoneSendErrorZ_is_ok(const struct LDKCResult_NoneSendErrorZ *NONNULL_PTR o);
6137         public static native boolean CResult_NoneSendErrorZ_is_ok(long o);
6138         // void CResult_NoneSendErrorZ_free(struct LDKCResult_NoneSendErrorZ _res);
6139         public static native void CResult_NoneSendErrorZ_free(long _res);
6140         // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
6141         public static native long CResult_BlindedPathNoneZ_ok(long o);
6142         // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
6143         public static native long CResult_BlindedPathNoneZ_err();
6144         // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
6145         public static native boolean CResult_BlindedPathNoneZ_is_ok(long o);
6146         // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
6147         public static native void CResult_BlindedPathNoneZ_free(long _res);
6148         // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
6149         public static native long CResult_BlindedPathNoneZ_clone_ptr(long arg);
6150         // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
6151         public static native long CResult_BlindedPathNoneZ_clone(long orig);
6152         // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o);
6153         public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(long o);
6154         // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void);
6155         public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err();
6156         // bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o);
6157         public static native boolean CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(long o);
6158         // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res);
6159         public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(long _res);
6160         // uint64_t CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR arg);
6161         public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(long arg);
6162         // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig);
6163         public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(long orig);
6164         // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
6165         public static native long CResult_BlindedPathDecodeErrorZ_ok(long o);
6166         // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
6167         public static native long CResult_BlindedPathDecodeErrorZ_err(long e);
6168         // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
6169         public static native boolean CResult_BlindedPathDecodeErrorZ_is_ok(long o);
6170         // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
6171         public static native void CResult_BlindedPathDecodeErrorZ_free(long _res);
6172         // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
6173         public static native long CResult_BlindedPathDecodeErrorZ_clone_ptr(long arg);
6174         // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
6175         public static native long CResult_BlindedPathDecodeErrorZ_clone(long orig);
6176         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
6177         public static native long CResult_BlindedHopDecodeErrorZ_ok(long o);
6178         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
6179         public static native long CResult_BlindedHopDecodeErrorZ_err(long e);
6180         // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
6181         public static native boolean CResult_BlindedHopDecodeErrorZ_is_ok(long o);
6182         // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
6183         public static native void CResult_BlindedHopDecodeErrorZ_free(long _res);
6184         // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
6185         public static native long CResult_BlindedHopDecodeErrorZ_clone_ptr(long arg);
6186         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
6187         public static native long CResult_BlindedHopDecodeErrorZ_clone(long orig);
6188         // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o);
6189         public static native long CResult_InvoiceErrorDecodeErrorZ_ok(long o);
6190         // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e);
6191         public static native long CResult_InvoiceErrorDecodeErrorZ_err(long e);
6192         // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o);
6193         public static native boolean CResult_InvoiceErrorDecodeErrorZ_is_ok(long o);
6194         // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res);
6195         public static native void CResult_InvoiceErrorDecodeErrorZ_free(long _res);
6196         // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg);
6197         public static native long CResult_InvoiceErrorDecodeErrorZ_clone_ptr(long arg);
6198         // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig);
6199         public static native long CResult_InvoiceErrorDecodeErrorZ_clone(long orig);
6200         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
6201         public static native long COption_FilterZ_some(long o);
6202         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
6203         public static native long COption_FilterZ_none();
6204         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
6205         public static native void COption_FilterZ_free(long _res);
6206         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
6207         public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
6208         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
6209         public static native long CResult_LockedChannelMonitorNoneZ_err();
6210         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
6211         public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
6212         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
6213         public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
6214         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
6215         public static native void CVec_OutPointZ_free(long[] _res);
6216         // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
6217         public static native void CVec_MonitorUpdateIdZ_free(long[] _res);
6218         // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
6219         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long arg);
6220         // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
6221         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long orig);
6222         // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
6223         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long a, long[] b);
6224         // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
6225         public static native void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long _res);
6226         // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
6227         public static native void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long[] _res);
6228         // void APIError_free(struct LDKAPIError this_ptr);
6229         public static native void APIError_free(long this_ptr);
6230         // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
6231         public static native long APIError_clone_ptr(long arg);
6232         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
6233         public static native long APIError_clone(long orig);
6234         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
6235         public static native long APIError_apimisuse_error(String err);
6236         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
6237         public static native long APIError_fee_rate_too_high(String err, int feerate);
6238         // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
6239         public static native long APIError_invalid_route(String err);
6240         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
6241         public static native long APIError_channel_unavailable(String err);
6242         // struct LDKAPIError APIError_monitor_update_in_progress(void);
6243         public static native long APIError_monitor_update_in_progress();
6244         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
6245         public static native long APIError_incompatible_shutdown_script(long script);
6246         // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
6247         public static native boolean APIError_eq(long a, long b);
6248         // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
6249         public static native byte[] APIError_write(long obj);
6250         // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
6251         public static native long APIError_read(byte[] ser);
6252         // void BigSize_free(struct LDKBigSize this_obj);
6253         public static native void BigSize_free(long this_obj);
6254         // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
6255         public static native long BigSize_get_a(long this_ptr);
6256         // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
6257         public static native void BigSize_set_a(long this_ptr, long val);
6258         // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
6259         public static native long BigSize_new(long a_arg);
6260         // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg);
6261         public static native long BigSize_clone_ptr(long arg);
6262         // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig);
6263         public static native long BigSize_clone(long orig);
6264         // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o);
6265         public static native long BigSize_hash(long o);
6266         // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b);
6267         public static native boolean BigSize_eq(long a, long b);
6268         // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj);
6269         public static native byte[] BigSize_write(long obj);
6270         // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser);
6271         public static native long BigSize_read(byte[] ser);
6272         // void Hostname_free(struct LDKHostname this_obj);
6273         public static native void Hostname_free(long this_obj);
6274         // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
6275         public static native long Hostname_clone_ptr(long arg);
6276         // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
6277         public static native long Hostname_clone(long orig);
6278         // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
6279         public static native boolean Hostname_eq(long a, long b);
6280         // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
6281         public static native byte Hostname_len(long this_arg);
6282         // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj);
6283         public static native byte[] Hostname_write(long obj);
6284         // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser);
6285         public static native long Hostname_read(byte[] ser);
6286         // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj);
6287         public static native void TransactionU16LenLimited_free(long this_obj);
6288         // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg);
6289         public static native long TransactionU16LenLimited_clone_ptr(long arg);
6290         // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig);
6291         public static native long TransactionU16LenLimited_clone(long orig);
6292         // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b);
6293         public static native boolean TransactionU16LenLimited_eq(long a, long b);
6294         // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction);
6295         public static native long TransactionU16LenLimited_new(byte[] transaction);
6296         // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg);
6297         public static native byte[] TransactionU16LenLimited_into_transaction(long this_arg);
6298         // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj);
6299         public static native byte[] TransactionU16LenLimited_write(long obj);
6300         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser);
6301         public static native long TransactionU16LenLimited_read(byte[] ser);
6302         // struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
6303         public static native long sign(byte[] msg, byte[] sk);
6304         // struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
6305         public static native long recover_pk(byte[] msg, String sig);
6306         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
6307         public static native boolean verify(byte[] msg, String sig, byte[] pk);
6308         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
6309         public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
6310         // void KVStore_free(struct LDKKVStore this_ptr);
6311         public static native void KVStore_free(long this_ptr);
6312         // void Persister_free(struct LDKPersister this_ptr);
6313         public static native void Persister_free(long this_ptr);
6314         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider);
6315         public static native long read_channel_monitors(long kv_store, long entropy_source, long signer_provider);
6316         // void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj);
6317         public static native void MonitorUpdatingPersister_free(long this_obj);
6318         // MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider);
6319         public static native long MonitorUpdatingPersister_new(long kv_store, long logger, long maximum_pending_updates, long entropy_source, long signer_provider);
6320         // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator);
6321         public static native long MonitorUpdatingPersister_read_all_channel_monitors_with_updates(long this_arg, long broadcaster, long fee_estimator);
6322         // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key);
6323         public static native long MonitorUpdatingPersister_read_channel_monitor_with_updates(long this_arg, long broadcaster, long fee_estimator, String monitor_key);
6324         // MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy);
6325         public static native long MonitorUpdatingPersister_cleanup_stale_updates(long this_arg, boolean lazy);
6326         // struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg);
6327         public static native long MonitorUpdatingPersister_as_Persist(long this_arg);
6328         // void UntrustedString_free(struct LDKUntrustedString this_obj);
6329         public static native void UntrustedString_free(long this_obj);
6330         // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr);
6331         public static native String UntrustedString_get_a(long this_ptr);
6332         // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val);
6333         public static native void UntrustedString_set_a(long this_ptr, String val);
6334         // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg);
6335         public static native long UntrustedString_new(String a_arg);
6336         // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg);
6337         public static native long UntrustedString_clone_ptr(long arg);
6338         // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig);
6339         public static native long UntrustedString_clone(long orig);
6340         // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b);
6341         public static native boolean UntrustedString_eq(long a, long b);
6342         // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj);
6343         public static native byte[] UntrustedString_write(long obj);
6344         // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser);
6345         public static native long UntrustedString_read(byte[] ser);
6346         // void PrintableString_free(struct LDKPrintableString this_obj);
6347         public static native void PrintableString_free(long this_obj);
6348         // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
6349         public static native String PrintableString_get_a(long this_ptr);
6350         // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
6351         public static native void PrintableString_set_a(long this_ptr, String val);
6352         // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
6353         public static native long PrintableString_new(String a_arg);
6354         // void FutureCallback_free(struct LDKFutureCallback this_ptr);
6355         public static native void FutureCallback_free(long this_ptr);
6356         // void Future_free(struct LDKFuture this_obj);
6357         public static native void Future_free(long this_obj);
6358         // uint64_t Future_clone_ptr(LDKFuture *NONNULL_PTR arg);
6359         public static native long Future_clone_ptr(long arg);
6360         // struct LDKFuture Future_clone(const struct LDKFuture *NONNULL_PTR orig);
6361         public static native long Future_clone(long orig);
6362         // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
6363         public static native void Future_register_callback_fn(long this_arg, long callback);
6364         // void Future_wait(struct LDKFuture this_arg);
6365         public static native void Future_wait(long this_arg);
6366         // MUST_USE_RES bool Future_wait_timeout(struct LDKFuture this_arg, uint64_t max_wait);
6367         public static native boolean Future_wait_timeout(long this_arg, long max_wait);
6368         // void Sleeper_free(struct LDKSleeper this_obj);
6369         public static native void Sleeper_free(long this_obj);
6370         // MUST_USE_RES struct LDKSleeper Sleeper_from_single_future(struct LDKFuture future);
6371         public static native long Sleeper_from_single_future(long future);
6372         // MUST_USE_RES struct LDKSleeper Sleeper_from_two_futures(struct LDKFuture fut_a, struct LDKFuture fut_b);
6373         public static native long Sleeper_from_two_futures(long fut_a, long fut_b);
6374         // MUST_USE_RES struct LDKSleeper Sleeper_new(struct LDKCVec_FutureZ futures);
6375         public static native long Sleeper_new(long[] futures);
6376         // void Sleeper_wait(const struct LDKSleeper *NONNULL_PTR this_arg);
6377         public static native void Sleeper_wait(long this_arg);
6378         // MUST_USE_RES bool Sleeper_wait_timeout(const struct LDKSleeper *NONNULL_PTR this_arg, uint64_t max_wait);
6379         public static native boolean Sleeper_wait_timeout(long this_arg, long max_wait);
6380         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
6381         public static native Level Level_clone(long orig);
6382         // enum LDKLevel Level_gossip(void);
6383         public static native Level Level_gossip();
6384         // enum LDKLevel Level_trace(void);
6385         public static native Level Level_trace();
6386         // enum LDKLevel Level_debug(void);
6387         public static native Level Level_debug();
6388         // enum LDKLevel Level_info(void);
6389         public static native Level Level_info();
6390         // enum LDKLevel Level_warn(void);
6391         public static native Level Level_warn();
6392         // enum LDKLevel Level_error(void);
6393         public static native Level Level_error();
6394         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
6395         public static native boolean Level_eq(long a, long b);
6396         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
6397         public static native long Level_hash(long o);
6398         // MUST_USE_RES enum LDKLevel Level_max(void);
6399         public static native Level Level_max();
6400         // void Record_free(struct LDKRecord this_obj);
6401         public static native void Record_free(long this_obj);
6402         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
6403         public static native Level Record_get_level(long this_ptr);
6404         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
6405         public static native void Record_set_level(long this_ptr, Level val);
6406         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
6407         public static native String Record_get_args(long this_ptr);
6408         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6409         public static native void Record_set_args(long this_ptr, String val);
6410         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
6411         public static native String Record_get_module_path(long this_ptr);
6412         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6413         public static native void Record_set_module_path(long this_ptr, String val);
6414         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
6415         public static native String Record_get_file(long this_ptr);
6416         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6417         public static native void Record_set_file(long this_ptr, String val);
6418         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
6419         public static native int Record_get_line(long this_ptr);
6420         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
6421         public static native void Record_set_line(long this_ptr, int val);
6422         // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
6423         public static native long Record_clone_ptr(long arg);
6424         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
6425         public static native long Record_clone(long orig);
6426         // void Logger_free(struct LDKLogger this_ptr);
6427         public static native void Logger_free(long this_ptr);
6428         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
6429         public static native void ChannelHandshakeConfig_free(long this_obj);
6430         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6431         public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
6432         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
6433         public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
6434         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6435         public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
6436         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
6437         public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
6438         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6439         public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
6440         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
6441         public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
6442         // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6443         public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
6444         // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
6445         public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
6446         // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6447         public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
6448         // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6449         public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
6450         // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6451         public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
6452         // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6453         public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
6454         // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6455         public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
6456         // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6457         public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
6458         // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6459         public static native int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long this_ptr);
6460         // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
6461         public static native void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long this_ptr, int val);
6462         // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6463         public static native boolean ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(long this_ptr);
6464         // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6465         public static native void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(long this_ptr, boolean val);
6466         // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6467         public static native short ChannelHandshakeConfig_get_our_max_accepted_htlcs(long this_ptr);
6468         // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
6469         public static native void ChannelHandshakeConfig_set_our_max_accepted_htlcs(long this_ptr, short val);
6470         // 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, uint32_t their_channel_reserve_proportional_millionths_arg, bool negotiate_anchors_zero_fee_htlc_tx_arg, uint16_t our_max_accepted_htlcs_arg);
6471         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, int their_channel_reserve_proportional_millionths_arg, boolean negotiate_anchors_zero_fee_htlc_tx_arg, short our_max_accepted_htlcs_arg);
6472         // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
6473         public static native long ChannelHandshakeConfig_clone_ptr(long arg);
6474         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
6475         public static native long ChannelHandshakeConfig_clone(long orig);
6476         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
6477         public static native long ChannelHandshakeConfig_default();
6478         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
6479         public static native void ChannelHandshakeLimits_free(long this_obj);
6480         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6481         public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
6482         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6483         public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
6484         // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6485         public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
6486         // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6487         public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
6488         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6489         public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
6490         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6491         public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
6492         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6493         public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
6494         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6495         public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
6496         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6497         public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
6498         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6499         public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
6500         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6501         public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
6502         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
6503         public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
6504         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6505         public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
6506         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
6507         public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
6508         // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6509         public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
6510         // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
6511         public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
6512         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6513         public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
6514         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
6515         public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
6516         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6517         public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
6518         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
6519         public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
6520         // 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);
6521         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);
6522         // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
6523         public static native long ChannelHandshakeLimits_clone_ptr(long arg);
6524         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
6525         public static native long ChannelHandshakeLimits_clone(long orig);
6526         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
6527         public static native long ChannelHandshakeLimits_default();
6528         // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr);
6529         public static native void MaxDustHTLCExposure_free(long this_ptr);
6530         // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg);
6531         public static native long MaxDustHTLCExposure_clone_ptr(long arg);
6532         // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig);
6533         public static native long MaxDustHTLCExposure_clone(long orig);
6534         // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a);
6535         public static native long MaxDustHTLCExposure_fixed_limit_msat(long a);
6536         // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a);
6537         public static native long MaxDustHTLCExposure_fee_rate_multiplier(long a);
6538         // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b);
6539         public static native boolean MaxDustHTLCExposure_eq(long a, long b);
6540         // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj);
6541         public static native byte[] MaxDustHTLCExposure_write(long obj);
6542         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser);
6543         public static native long MaxDustHTLCExposure_read(byte[] ser);
6544         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
6545         public static native void ChannelConfig_free(long this_obj);
6546         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6547         public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
6548         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
6549         public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
6550         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6551         public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
6552         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
6553         public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
6554         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6555         public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
6556         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
6557         public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
6558         // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6559         public static native long ChannelConfig_get_max_dust_htlc_exposure(long this_ptr);
6560         // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val);
6561         public static native void ChannelConfig_set_max_dust_htlc_exposure(long this_ptr, long val);
6562         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6563         public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
6564         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
6565         public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
6566         // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6567         public static native boolean ChannelConfig_get_accept_underpaying_htlcs(long this_ptr);
6568         // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
6569         public static native void ChannelConfig_set_accept_underpaying_htlcs(long this_ptr, boolean val);
6570         // 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, struct LDKMaxDustHTLCExposure max_dust_htlc_exposure_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg, bool accept_underpaying_htlcs_arg);
6571         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_arg, long force_close_avoidance_max_fee_satoshis_arg, boolean accept_underpaying_htlcs_arg);
6572         // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
6573         public static native long ChannelConfig_clone_ptr(long arg);
6574         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
6575         public static native long ChannelConfig_clone(long orig);
6576         // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
6577         public static native boolean ChannelConfig_eq(long a, long b);
6578         // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update);
6579         public static native void ChannelConfig_apply(long this_arg, long update);
6580         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
6581         public static native long ChannelConfig_default();
6582         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
6583         public static native byte[] ChannelConfig_write(long obj);
6584         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
6585         public static native long ChannelConfig_read(byte[] ser);
6586         // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj);
6587         public static native void ChannelConfigUpdate_free(long this_obj);
6588         // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6589         public static native long ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(long this_ptr);
6590         // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6591         public static native void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(long this_ptr, long val);
6592         // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6593         public static native long ChannelConfigUpdate_get_forwarding_fee_base_msat(long this_ptr);
6594         // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6595         public static native void ChannelConfigUpdate_set_forwarding_fee_base_msat(long this_ptr, long val);
6596         // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6597         public static native long ChannelConfigUpdate_get_cltv_expiry_delta(long this_ptr);
6598         // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
6599         public static native void ChannelConfigUpdate_set_cltv_expiry_delta(long this_ptr, long val);
6600         // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6601         public static native long ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(long this_ptr);
6602         // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val);
6603         public static native void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
6604         // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6605         public static native long ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
6606         // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6607         public static native void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
6608         // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_new(struct LDKCOption_u32Z forwarding_fee_proportional_millionths_arg, struct LDKCOption_u32Z forwarding_fee_base_msat_arg, struct LDKCOption_u16Z cltv_expiry_delta_arg, struct LDKCOption_MaxDustHTLCExposureZ max_dust_htlc_exposure_msat_arg, struct LDKCOption_u64Z force_close_avoidance_max_fee_satoshis_arg);
6609         public static native long ChannelConfigUpdate_new(long forwarding_fee_proportional_millionths_arg, long forwarding_fee_base_msat_arg, long cltv_expiry_delta_arg, long max_dust_htlc_exposure_msat_arg, long force_close_avoidance_max_fee_satoshis_arg);
6610         // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void);
6611         public static native long ChannelConfigUpdate_default();
6612         // void UserConfig_free(struct LDKUserConfig this_obj);
6613         public static native void UserConfig_free(long this_obj);
6614         // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6615         public static native long UserConfig_get_channel_handshake_config(long this_ptr);
6616         // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
6617         public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
6618         // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6619         public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
6620         // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
6621         public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
6622         // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6623         public static native long UserConfig_get_channel_config(long this_ptr);
6624         // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
6625         public static native void UserConfig_set_channel_config(long this_ptr, long val);
6626         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6627         public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
6628         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6629         public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
6630         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6631         public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
6632         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6633         public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
6634         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6635         public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
6636         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6637         public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
6638         // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6639         public static native boolean UserConfig_get_accept_intercept_htlcs(long this_ptr);
6640         // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6641         public static native void UserConfig_set_accept_intercept_htlcs(long this_ptr, boolean val);
6642         // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6643         public static native boolean UserConfig_get_accept_mpp_keysend(long this_ptr);
6644         // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6645         public static native void UserConfig_set_accept_mpp_keysend(long this_ptr, boolean val);
6646         // 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, bool accept_intercept_htlcs_arg, bool accept_mpp_keysend_arg);
6647         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, boolean accept_intercept_htlcs_arg, boolean accept_mpp_keysend_arg);
6648         // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
6649         public static native long UserConfig_clone_ptr(long arg);
6650         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
6651         public static native long UserConfig_clone(long orig);
6652         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
6653         public static native long UserConfig_default();
6654         // void BestBlock_free(struct LDKBestBlock this_obj);
6655         public static native void BestBlock_free(long this_obj);
6656         // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
6657         public static native long BestBlock_clone_ptr(long arg);
6658         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
6659         public static native long BestBlock_clone(long orig);
6660         // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
6661         public static native boolean BestBlock_eq(long a, long b);
6662         // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
6663         public static native long BestBlock_from_network(Network network);
6664         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
6665         public static native long BestBlock_new(byte[] block_hash, int height);
6666         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
6667         public static native byte[] BestBlock_block_hash(long this_arg);
6668         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
6669         public static native int BestBlock_height(long this_arg);
6670         // void Listen_free(struct LDKListen this_ptr);
6671         public static native void Listen_free(long this_ptr);
6672         // void Confirm_free(struct LDKConfirm this_ptr);
6673         public static native void Confirm_free(long this_ptr);
6674         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
6675         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long orig);
6676         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
6677         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed();
6678         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
6679         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress();
6680         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void);
6681         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error();
6682         // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
6683         public static native boolean ChannelMonitorUpdateStatus_eq(long a, long b);
6684         // void Watch_free(struct LDKWatch this_ptr);
6685         public static native void Watch_free(long this_ptr);
6686         // void Filter_free(struct LDKFilter this_ptr);
6687         public static native void Filter_free(long this_ptr);
6688         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
6689         public static native void WatchedOutput_free(long this_obj);
6690         // struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
6691         public static native long WatchedOutput_get_block_hash(long this_ptr);
6692         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
6693         public static native void WatchedOutput_set_block_hash(long this_ptr, long val);
6694         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
6695         public static native long WatchedOutput_get_outpoint(long this_ptr);
6696         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
6697         public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
6698         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
6699         public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
6700         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
6701         public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
6702         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
6703         public static native long WatchedOutput_new(long block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
6704         // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
6705         public static native long WatchedOutput_clone_ptr(long arg);
6706         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
6707         public static native long WatchedOutput_clone(long orig);
6708         // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
6709         public static native boolean WatchedOutput_eq(long a, long b);
6710         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
6711         public static native long WatchedOutput_hash(long o);
6712         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
6713         public static native void BroadcasterInterface_free(long this_ptr);
6714         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
6715         public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
6716         // enum LDKConfirmationTarget ConfirmationTarget_on_chain_sweep(void);
6717         public static native ConfirmationTarget ConfirmationTarget_on_chain_sweep();
6718         // enum LDKConfirmationTarget ConfirmationTarget_max_allowed_non_anchor_channel_remote_fee(void);
6719         public static native ConfirmationTarget ConfirmationTarget_max_allowed_non_anchor_channel_remote_fee();
6720         // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(void);
6721         public static native ConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee();
6722         // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(void);
6723         public static native ConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee();
6724         // enum LDKConfirmationTarget ConfirmationTarget_anchor_channel_fee(void);
6725         public static native ConfirmationTarget ConfirmationTarget_anchor_channel_fee();
6726         // enum LDKConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(void);
6727         public static native ConfirmationTarget ConfirmationTarget_non_anchor_channel_fee();
6728         // enum LDKConfirmationTarget ConfirmationTarget_channel_close_minimum(void);
6729         public static native ConfirmationTarget ConfirmationTarget_channel_close_minimum();
6730         // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
6731         public static native long ConfirmationTarget_hash(long o);
6732         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
6733         public static native boolean ConfirmationTarget_eq(long a, long b);
6734         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
6735         public static native void FeeEstimator_free(long this_ptr);
6736         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
6737         public static native void MonitorUpdateId_free(long this_obj);
6738         // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
6739         public static native long MonitorUpdateId_clone_ptr(long arg);
6740         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
6741         public static native long MonitorUpdateId_clone(long orig);
6742         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
6743         public static native long MonitorUpdateId_hash(long o);
6744         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
6745         public static native boolean MonitorUpdateId_eq(long a, long b);
6746         // void Persist_free(struct LDKPersist this_ptr);
6747         public static native void Persist_free(long this_ptr);
6748         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
6749         public static native void LockedChannelMonitor_free(long this_obj);
6750         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
6751         public static native void ChainMonitor_free(long this_obj);
6752         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
6753         public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
6754         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
6755         public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
6756         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
6757         public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
6758         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6759         public static native long[] ChainMonitor_list_monitors(long this_arg);
6760         // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6761         public static native long[] ChainMonitor_list_pending_monitor_updates(long this_arg);
6762         // 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);
6763         public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
6764         // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6765         public static native long ChainMonitor_get_update_future(long this_arg);
6766         // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6767         public static native void ChainMonitor_rebroadcast_pending_claims(long this_arg);
6768         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6769         public static native long ChainMonitor_as_Listen(long this_arg);
6770         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6771         public static native long ChainMonitor_as_Confirm(long this_arg);
6772         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6773         public static native long ChainMonitor_as_Watch(long this_arg);
6774         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6775         public static native long ChainMonitor_as_EventsProvider(long this_arg);
6776         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
6777         public static native void ChannelMonitorUpdate_free(long this_obj);
6778         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
6779         public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
6780         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
6781         public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
6782         // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
6783         public static native long ChannelMonitorUpdate_clone_ptr(long arg);
6784         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
6785         public static native long ChannelMonitorUpdate_clone(long orig);
6786         // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b);
6787         public static native boolean ChannelMonitorUpdate_eq(long a, long b);
6788         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
6789         public static native byte[] ChannelMonitorUpdate_write(long obj);
6790         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
6791         public static native long ChannelMonitorUpdate_read(byte[] ser);
6792         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
6793         public static native void MonitorEvent_free(long this_ptr);
6794         // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
6795         public static native long MonitorEvent_clone_ptr(long arg);
6796         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
6797         public static native long MonitorEvent_clone(long orig);
6798         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
6799         public static native long MonitorEvent_htlcevent(long a);
6800         // struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a);
6801         public static native long MonitorEvent_holder_force_closed(long a);
6802         // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
6803         public static native long MonitorEvent_completed(long funding_txo, long monitor_update_id);
6804         // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
6805         public static native boolean MonitorEvent_eq(long a, long b);
6806         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
6807         public static native byte[] MonitorEvent_write(long obj);
6808         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
6809         public static native long MonitorEvent_read(byte[] ser);
6810         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
6811         public static native void HTLCUpdate_free(long this_obj);
6812         // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
6813         public static native long HTLCUpdate_clone_ptr(long arg);
6814         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
6815         public static native long HTLCUpdate_clone(long orig);
6816         // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
6817         public static native boolean HTLCUpdate_eq(long a, long b);
6818         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
6819         public static native byte[] HTLCUpdate_write(long obj);
6820         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
6821         public static native long HTLCUpdate_read(byte[] ser);
6822         // void Balance_free(struct LDKBalance this_ptr);
6823         public static native void Balance_free(long this_ptr);
6824         // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
6825         public static native long Balance_clone_ptr(long arg);
6826         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
6827         public static native long Balance_clone(long orig);
6828         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis);
6829         public static native long Balance_claimable_on_channel_close(long amount_satoshis);
6830         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height);
6831         public static native long Balance_claimable_awaiting_confirmations(long amount_satoshis, int confirmation_height);
6832         // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage);
6833         public static native long Balance_contentious_claimable(long amount_satoshis, int timeout_height, byte[] payment_hash, byte[] payment_preimage);
6834         // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash);
6835         public static native long Balance_maybe_timeout_claimable_htlc(long amount_satoshis, int claimable_height, byte[] payment_hash);
6836         // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash);
6837         public static native long Balance_maybe_preimage_claimable_htlc(long amount_satoshis, int expiry_height, byte[] payment_hash);
6838         // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis);
6839         public static native long Balance_counterparty_revoked_output_claimable(long amount_satoshis);
6840         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
6841         public static native boolean Balance_eq(long a, long b);
6842         // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg);
6843         public static native long Balance_claimable_amount_satoshis(long this_arg);
6844         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
6845         public static native void ChannelMonitor_free(long this_obj);
6846         // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
6847         public static native long ChannelMonitor_clone_ptr(long arg);
6848         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
6849         public static native long ChannelMonitor_clone(long orig);
6850         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
6851         public static native byte[] ChannelMonitor_write(long obj);
6852         // 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);
6853         public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
6854         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6855         public static native long ChannelMonitor_get_latest_update_id(long this_arg);
6856         // MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6857         public static native long ChannelMonitor_get_funding_txo(long this_arg);
6858         // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6859         public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
6860         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
6861         public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
6862         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6863         public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
6864         // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler);
6865         public static native void ChannelMonitor_process_pending_events(long this_arg, long handler);
6866         // MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6867         public static native long ChannelMonitor_initial_counterparty_commitment_tx(long this_arg);
6868         // MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update);
6869         public static native long[] ChannelMonitor_counterparty_commitment_txs_from_update(long this_arg, long update);
6870         // MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number);
6871         public static native long ChannelMonitor_sign_to_local_justice_tx(long this_arg, byte[] justice_tx, long input_idx, long value, long commitment_number);
6872         // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6873         public static native byte[] ChannelMonitor_get_counterparty_node_id(long this_arg);
6874         // 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);
6875         public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
6876         // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_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);
6877         public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
6878         // 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);
6879         public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
6880         // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_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);
6881         public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
6882         // 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);
6883         public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
6884         // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_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);
6885         public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
6886         // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6887         public static native long[] ChannelMonitor_get_relevant_txids(long this_arg);
6888         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6889         public static native long ChannelMonitor_current_best_block(long this_arg);
6890         // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
6891         public static native void ChannelMonitor_rebroadcast_pending_claims(long this_arg, long broadcaster, long fee_estimator, long logger);
6892         // MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height);
6893         public static native long[] ChannelMonitor_get_spendable_outputs(long this_arg, byte[] tx, int confirmation_height);
6894         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6895         public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
6896         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
6897         public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(byte[] ser, long arg_a, long arg_b);
6898         // void OutPoint_free(struct LDKOutPoint this_obj);
6899         public static native void OutPoint_free(long this_obj);
6900         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
6901         public static native byte[] OutPoint_get_txid(long this_ptr);
6902         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6903         public static native void OutPoint_set_txid(long this_ptr, byte[] val);
6904         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
6905         public static native short OutPoint_get_index(long this_ptr);
6906         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
6907         public static native void OutPoint_set_index(long this_ptr, short val);
6908         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
6909         public static native long OutPoint_new(byte[] txid_arg, short index_arg);
6910         // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
6911         public static native long OutPoint_clone_ptr(long arg);
6912         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
6913         public static native long OutPoint_clone(long orig);
6914         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
6915         public static native boolean OutPoint_eq(long a, long b);
6916         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
6917         public static native long OutPoint_hash(long o);
6918         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
6919         public static native byte[] OutPoint_to_channel_id(long this_arg);
6920         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
6921         public static native byte[] OutPoint_write(long obj);
6922         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
6923         public static native long OutPoint_read(byte[] ser);
6924         // void FailureCode_free(struct LDKFailureCode this_ptr);
6925         public static native void FailureCode_free(long this_ptr);
6926         // uint64_t FailureCode_clone_ptr(LDKFailureCode *NONNULL_PTR arg);
6927         public static native long FailureCode_clone_ptr(long arg);
6928         // struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig);
6929         public static native long FailureCode_clone(long orig);
6930         // struct LDKFailureCode FailureCode_temporary_node_failure(void);
6931         public static native long FailureCode_temporary_node_failure();
6932         // struct LDKFailureCode FailureCode_required_node_feature_missing(void);
6933         public static native long FailureCode_required_node_feature_missing();
6934         // struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
6935         public static native long FailureCode_incorrect_or_unknown_payment_details();
6936         // struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a);
6937         public static native long FailureCode_invalid_onion_payload(long a);
6938         // void ChannelManager_free(struct LDKChannelManager this_obj);
6939         public static native void ChannelManager_free(long this_obj);
6940         // void ChainParameters_free(struct LDKChainParameters this_obj);
6941         public static native void ChainParameters_free(long this_obj);
6942         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
6943         public static native Network ChainParameters_get_network(long this_ptr);
6944         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
6945         public static native void ChainParameters_set_network(long this_ptr, Network val);
6946         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
6947         public static native long ChainParameters_get_best_block(long this_ptr);
6948         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
6949         public static native void ChainParameters_set_best_block(long this_ptr, long val);
6950         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
6951         public static native long ChainParameters_new(Network network_arg, long best_block_arg);
6952         // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
6953         public static native long ChainParameters_clone_ptr(long arg);
6954         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
6955         public static native long ChainParameters_clone(long orig);
6956         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
6957         public static native void CounterpartyForwardingInfo_free(long this_obj);
6958         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
6959         public static native int CounterpartyForwardingInfo_get_fee_base_msat(long this_ptr);
6960         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
6961         public static native void CounterpartyForwardingInfo_set_fee_base_msat(long this_ptr, int val);
6962         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
6963         public static native int CounterpartyForwardingInfo_get_fee_proportional_millionths(long this_ptr);
6964         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
6965         public static native void CounterpartyForwardingInfo_set_fee_proportional_millionths(long this_ptr, int val);
6966         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
6967         public static native short CounterpartyForwardingInfo_get_cltv_expiry_delta(long this_ptr);
6968         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
6969         public static native void CounterpartyForwardingInfo_set_cltv_expiry_delta(long this_ptr, short val);
6970         // 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);
6971         public static native long CounterpartyForwardingInfo_new(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg);
6972         // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
6973         public static native long CounterpartyForwardingInfo_clone_ptr(long arg);
6974         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
6975         public static native long CounterpartyForwardingInfo_clone(long orig);
6976         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
6977         public static native void ChannelCounterparty_free(long this_obj);
6978         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6979         public static native byte[] ChannelCounterparty_get_node_id(long this_ptr);
6980         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6981         public static native void ChannelCounterparty_set_node_id(long this_ptr, byte[] val);
6982         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6983         public static native long ChannelCounterparty_get_features(long this_ptr);
6984         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
6985         public static native void ChannelCounterparty_set_features(long this_ptr, long val);
6986         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6987         public static native long ChannelCounterparty_get_unspendable_punishment_reserve(long this_ptr);
6988         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
6989         public static native void ChannelCounterparty_set_unspendable_punishment_reserve(long this_ptr, long val);
6990         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6991         public static native long ChannelCounterparty_get_forwarding_info(long this_ptr);
6992         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
6993         public static native void ChannelCounterparty_set_forwarding_info(long this_ptr, long val);
6994         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6995         public static native long ChannelCounterparty_get_outbound_htlc_minimum_msat(long this_ptr);
6996         // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6997         public static native void ChannelCounterparty_set_outbound_htlc_minimum_msat(long this_ptr, long val);
6998         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6999         public static native long ChannelCounterparty_get_outbound_htlc_maximum_msat(long this_ptr);
7000         // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7001         public static native void ChannelCounterparty_set_outbound_htlc_maximum_msat(long this_ptr, long val);
7002         // 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);
7003         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);
7004         // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
7005         public static native long ChannelCounterparty_clone_ptr(long arg);
7006         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
7007         public static native long ChannelCounterparty_clone(long orig);
7008         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
7009         public static native void ChannelDetails_free(long this_obj);
7010         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
7011         public static native byte[] ChannelDetails_get_channel_id(long this_ptr);
7012         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7013         public static native void ChannelDetails_set_channel_id(long this_ptr, byte[] val);
7014         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7015         public static native long ChannelDetails_get_counterparty(long this_ptr);
7016         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
7017         public static native void ChannelDetails_set_counterparty(long this_ptr, long val);
7018         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7019         public static native long ChannelDetails_get_funding_txo(long this_ptr);
7020         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
7021         public static native void ChannelDetails_set_funding_txo(long this_ptr, long val);
7022         // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7023         public static native long ChannelDetails_get_channel_type(long this_ptr);
7024         // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7025         public static native void ChannelDetails_set_channel_type(long this_ptr, long val);
7026         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7027         public static native long ChannelDetails_get_short_channel_id(long this_ptr);
7028         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7029         public static native void ChannelDetails_set_short_channel_id(long this_ptr, long val);
7030         // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7031         public static native long ChannelDetails_get_outbound_scid_alias(long this_ptr);
7032         // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7033         public static native void ChannelDetails_set_outbound_scid_alias(long this_ptr, long val);
7034         // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7035         public static native long ChannelDetails_get_inbound_scid_alias(long this_ptr);
7036         // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7037         public static native void ChannelDetails_set_inbound_scid_alias(long this_ptr, long val);
7038         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7039         public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
7040         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7041         public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
7042         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7043         public static native long ChannelDetails_get_unspendable_punishment_reserve(long this_ptr);
7044         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7045         public static native void ChannelDetails_set_unspendable_punishment_reserve(long this_ptr, long val);
7046         // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7047         public static native byte[] ChannelDetails_get_user_channel_id(long this_ptr);
7048         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val);
7049         public static native void ChannelDetails_set_user_channel_id(long this_ptr, byte[] val);
7050         // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7051         public static native long ChannelDetails_get_feerate_sat_per_1000_weight(long this_ptr);
7052         // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7053         public static native void ChannelDetails_set_feerate_sat_per_1000_weight(long this_ptr, long val);
7054         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7055         public static native long ChannelDetails_get_balance_msat(long this_ptr);
7056         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7057         public static native void ChannelDetails_set_balance_msat(long this_ptr, long val);
7058         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7059         public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
7060         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7061         public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
7062         // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7063         public static native long ChannelDetails_get_next_outbound_htlc_limit_msat(long this_ptr);
7064         // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7065         public static native void ChannelDetails_set_next_outbound_htlc_limit_msat(long this_ptr, long val);
7066         // uint64_t ChannelDetails_get_next_outbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7067         public static native long ChannelDetails_get_next_outbound_htlc_minimum_msat(long this_ptr);
7068         // void ChannelDetails_set_next_outbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7069         public static native void ChannelDetails_set_next_outbound_htlc_minimum_msat(long this_ptr, long val);
7070         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7071         public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
7072         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7073         public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
7074         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7075         public static native long ChannelDetails_get_confirmations_required(long this_ptr);
7076         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7077         public static native void ChannelDetails_set_confirmations_required(long this_ptr, long val);
7078         // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7079         public static native long ChannelDetails_get_confirmations(long this_ptr);
7080         // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7081         public static native void ChannelDetails_set_confirmations(long this_ptr, long val);
7082         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7083         public static native long ChannelDetails_get_force_close_spend_delay(long this_ptr);
7084         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
7085         public static native void ChannelDetails_set_force_close_spend_delay(long this_ptr, long val);
7086         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7087         public static native boolean ChannelDetails_get_is_outbound(long this_ptr);
7088         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7089         public static native void ChannelDetails_set_is_outbound(long this_ptr, boolean val);
7090         // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7091         public static native boolean ChannelDetails_get_is_channel_ready(long this_ptr);
7092         // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7093         public static native void ChannelDetails_set_is_channel_ready(long this_ptr, boolean val);
7094         // struct LDKCOption_ChannelShutdownStateZ ChannelDetails_get_channel_shutdown_state(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7095         public static native long ChannelDetails_get_channel_shutdown_state(long this_ptr);
7096         // void ChannelDetails_set_channel_shutdown_state(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_ChannelShutdownStateZ val);
7097         public static native void ChannelDetails_set_channel_shutdown_state(long this_ptr, long val);
7098         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7099         public static native boolean ChannelDetails_get_is_usable(long this_ptr);
7100         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7101         public static native void ChannelDetails_set_is_usable(long this_ptr, boolean val);
7102         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7103         public static native boolean ChannelDetails_get_is_public(long this_ptr);
7104         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7105         public static native void ChannelDetails_set_is_public(long this_ptr, boolean val);
7106         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7107         public static native long ChannelDetails_get_inbound_htlc_minimum_msat(long this_ptr);
7108         // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7109         public static native void ChannelDetails_set_inbound_htlc_minimum_msat(long this_ptr, long val);
7110         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7111         public static native long ChannelDetails_get_inbound_htlc_maximum_msat(long this_ptr);
7112         // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7113         public static native void ChannelDetails_set_inbound_htlc_maximum_msat(long this_ptr, long val);
7114         // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7115         public static native long ChannelDetails_get_config(long this_ptr);
7116         // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
7117         public static native void ChannelDetails_set_config(long this_ptr, long val);
7118         // 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, struct LDKU128 user_channel_id_arg, struct LDKCOption_u32Z feerate_sat_per_1000_weight_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t next_outbound_htlc_minimum_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, struct LDKCOption_ChannelShutdownStateZ channel_shutdown_state_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);
7119         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, byte[] user_channel_id_arg, long feerate_sat_per_1000_weight_arg, long balance_msat_arg, long outbound_capacity_msat_arg, long next_outbound_htlc_limit_msat_arg, long next_outbound_htlc_minimum_msat_arg, long inbound_capacity_msat_arg, long confirmations_required_arg, long confirmations_arg, long force_close_spend_delay_arg, boolean is_outbound_arg, boolean is_channel_ready_arg, long channel_shutdown_state_arg, boolean is_usable_arg, boolean is_public_arg, long inbound_htlc_minimum_msat_arg, long inbound_htlc_maximum_msat_arg, long config_arg);
7120         // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
7121         public static native long ChannelDetails_clone_ptr(long arg);
7122         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
7123         public static native long ChannelDetails_clone(long orig);
7124         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
7125         public static native long ChannelDetails_get_inbound_payment_scid(long this_arg);
7126         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
7127         public static native long ChannelDetails_get_outbound_payment_scid(long this_arg);
7128         // enum LDKChannelShutdownState ChannelShutdownState_clone(const enum LDKChannelShutdownState *NONNULL_PTR orig);
7129         public static native ChannelShutdownState ChannelShutdownState_clone(long orig);
7130         // enum LDKChannelShutdownState ChannelShutdownState_not_shutting_down(void);
7131         public static native ChannelShutdownState ChannelShutdownState_not_shutting_down();
7132         // enum LDKChannelShutdownState ChannelShutdownState_shutdown_initiated(void);
7133         public static native ChannelShutdownState ChannelShutdownState_shutdown_initiated();
7134         // enum LDKChannelShutdownState ChannelShutdownState_resolving_htlcs(void);
7135         public static native ChannelShutdownState ChannelShutdownState_resolving_htlcs();
7136         // enum LDKChannelShutdownState ChannelShutdownState_negotiating_closing_fee(void);
7137         public static native ChannelShutdownState ChannelShutdownState_negotiating_closing_fee();
7138         // enum LDKChannelShutdownState ChannelShutdownState_shutdown_complete(void);
7139         public static native ChannelShutdownState ChannelShutdownState_shutdown_complete();
7140         // bool ChannelShutdownState_eq(const enum LDKChannelShutdownState *NONNULL_PTR a, const enum LDKChannelShutdownState *NONNULL_PTR b);
7141         public static native boolean ChannelShutdownState_eq(long a, long b);
7142         // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr);
7143         public static native void RecentPaymentDetails_free(long this_ptr);
7144         // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg);
7145         public static native long RecentPaymentDetails_clone_ptr(long arg);
7146         // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig);
7147         public static native long RecentPaymentDetails_clone(long orig);
7148         // struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id);
7149         public static native long RecentPaymentDetails_awaiting_invoice(byte[] payment_id);
7150         // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat);
7151         public static native long RecentPaymentDetails_pending(byte[] payment_id, byte[] payment_hash, long total_msat);
7152         // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash);
7153         public static native long RecentPaymentDetails_fulfilled(byte[] payment_id, long payment_hash);
7154         // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
7155         public static native long RecentPaymentDetails_abandoned(byte[] payment_id, byte[] payment_hash);
7156         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
7157         public static native void PhantomRouteHints_free(long this_obj);
7158         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
7159         public static native long[] PhantomRouteHints_get_channels(long this_ptr);
7160         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
7161         public static native void PhantomRouteHints_set_channels(long this_ptr, long[] val);
7162         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
7163         public static native long PhantomRouteHints_get_phantom_scid(long this_ptr);
7164         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
7165         public static native void PhantomRouteHints_set_phantom_scid(long this_ptr, long val);
7166         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
7167         public static native byte[] PhantomRouteHints_get_real_node_pubkey(long this_ptr);
7168         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7169         public static native void PhantomRouteHints_set_real_node_pubkey(long this_ptr, byte[] val);
7170         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
7171         public static native long PhantomRouteHints_new(long[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg);
7172         // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
7173         public static native long PhantomRouteHints_clone_ptr(long arg);
7174         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
7175         public static native long PhantomRouteHints_clone(long orig);
7176         // MUST_USE_RES struct LDKChannelManager ChannelManager_new(struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKUserConfig config, struct LDKChainParameters params, uint32_t current_timestamp);
7177         public static native long ChannelManager_new(long fee_est, long chain_monitor, long tx_broadcaster, long router, long logger, long entropy_source, long node_signer, long signer_provider, long config, long params, int current_timestamp);
7178         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
7179         public static native long ChannelManager_get_current_default_configuration(long this_arg);
7180         // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKUserConfig override_config);
7181         public static native long ChannelManager_create_channel(long this_arg, byte[] their_network_key, long channel_value_satoshis, long push_msat, byte[] user_channel_id, long override_config);
7182         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
7183         public static native long[] ChannelManager_list_channels(long this_arg);
7184         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
7185         public static native long[] ChannelManager_list_usable_channels(long this_arg);
7186         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id);
7187         public static native long[] ChannelManager_list_channels_with_counterparty(long this_arg, byte[] counterparty_node_id);
7188         // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg);
7189         public static native long[] ChannelManager_list_recent_payments(long this_arg);
7190         // 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);
7191         public static native long ChannelManager_close_channel(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
7192         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_feerate_and_script(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKCOption_u32Z target_feerate_sats_per_1000_weight, struct LDKShutdownScript shutdown_script);
7193         public static native long ChannelManager_close_channel_with_feerate_and_script(long this_arg, byte[] channel_id, byte[] counterparty_node_id, long target_feerate_sats_per_1000_weight, long shutdown_script);
7194         // 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);
7195         public static native long ChannelManager_force_close_broadcasting_latest_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
7196         // 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);
7197         public static native long ChannelManager_force_close_without_broadcasting_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
7198         // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
7199         public static native void ChannelManager_force_close_all_channels_broadcasting_latest_txn(long this_arg);
7200         // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
7201         public static native void ChannelManager_force_close_all_channels_without_broadcasting_txn(long this_arg);
7202         // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payment_with_route(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id);
7203         public static native long ChannelManager_send_payment_with_route(long this_arg, long route, byte[] payment_hash, long recipient_onion, byte[] payment_id);
7204         // MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy);
7205         public static native long ChannelManager_send_payment(long this_arg, byte[] payment_hash, long recipient_onion, byte[] payment_id, long route_params, long retry_strategy);
7206         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
7207         public static native void ChannelManager_abandon_payment(long this_arg, byte[] payment_id);
7208         // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id);
7209         public static native long ChannelManager_send_spontaneous_payment(long this_arg, long route, long payment_preimage, long recipient_onion, byte[] payment_id);
7210         // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy);
7211         public static native long ChannelManager_send_spontaneous_payment_with_retry(long this_arg, long payment_preimage, long recipient_onion, byte[] payment_id, long route_params, long retry_strategy);
7212         // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path);
7213         public static native long ChannelManager_send_probe(long this_arg, long path);
7214         // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_spontaneous_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, uint64_t amount_msat, uint32_t final_cltv_expiry_delta, struct LDKCOption_u64Z liquidity_limit_multiplier);
7215         public static native long ChannelManager_send_spontaneous_preflight_probes(long this_arg, byte[] node_id, long amount_msat, int final_cltv_expiry_delta, long liquidity_limit_multiplier);
7216         // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKRouteParameters route_params, struct LDKCOption_u64Z liquidity_limit_multiplier);
7217         public static native long ChannelManager_send_preflight_probes(long this_arg, long route_params, long liquidity_limit_multiplier);
7218         // 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);
7219         public static native long ChannelManager_funding_transaction_generated(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] funding_transaction);
7220         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction);
7221         public static native long ChannelManager_batch_funding_transaction_generated(long this_arg, long[] temporary_channels, byte[] funding_transaction);
7222         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_partial_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfigUpdate *NONNULL_PTR config_update);
7223         public static native long ChannelManager_update_partial_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config_update);
7224         // 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);
7225         public static native long ChannelManager_update_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config);
7226         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_forward_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id, const uint8_t (*next_hop_channel_id)[32], struct LDKPublicKey next_node_id, uint64_t amt_to_forward_msat);
7227         public static native long ChannelManager_forward_intercepted_htlc(long this_arg, byte[] intercept_id, byte[] next_hop_channel_id, byte[] next_node_id, long amt_to_forward_msat);
7228         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id);
7229         public static native long ChannelManager_fail_intercepted_htlc(long this_arg, byte[] intercept_id);
7230         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
7231         public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
7232         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
7233         public static native void ChannelManager_timer_tick_occurred(long this_arg);
7234         // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
7235         public static native void ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash);
7236         // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code);
7237         public static native void ChannelManager_fail_htlc_backwards_with_reason(long this_arg, byte[] payment_hash, long failure_code);
7238         // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
7239         public static native void ChannelManager_claim_funds(long this_arg, byte[] payment_preimage);
7240         // void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
7241         public static native void ChannelManager_claim_funds_with_known_custom_tlvs(long this_arg, byte[] payment_preimage);
7242         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
7243         public static native byte[] ChannelManager_get_our_node_id(long this_arg);
7244         // 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, struct LDKU128 user_channel_id);
7245         public static native long ChannelManager_accept_inbound_channel(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
7246         // 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, struct LDKU128 user_channel_id);
7247         public static native long ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
7248         // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_pay_for_offer(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKOffer *NONNULL_PTR offer, struct LDKCOption_u64Z quantity, struct LDKCOption_u64Z amount_msats, struct LDKCOption_StrZ payer_note, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, struct LDKCOption_u64Z max_total_routing_fee_msat);
7249         public static native long ChannelManager_pay_for_offer(long this_arg, long offer, long quantity, long amount_msats, long payer_note, byte[] payment_id, long retry_strategy, long max_total_routing_fee_msat);
7250         // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_request_refund_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRefund *NONNULL_PTR refund);
7251         public static native long ChannelManager_request_refund_payment(long this_arg, long refund);
7252         // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
7253         public static native long ChannelManager_create_inbound_payment(long this_arg, long min_value_msat, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
7254         // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ 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, struct LDKCOption_u16Z min_final_cltv_expiry);
7255         public static native long ChannelManager_create_inbound_payment_for_hash(long this_arg, byte[] payment_hash, long min_value_msat, int invoice_expiry_delta_secs, long min_final_cltv_expiry);
7256         // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
7257         public static native long ChannelManager_get_payment_preimage(long this_arg, byte[] payment_hash, byte[] payment_secret);
7258         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
7259         public static native long ChannelManager_get_phantom_scid(long this_arg);
7260         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
7261         public static native long ChannelManager_get_phantom_route_hints(long this_arg);
7262         // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
7263         public static native long ChannelManager_get_intercept_scid(long this_arg);
7264         // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg);
7265         public static native long ChannelManager_compute_inflight_htlcs(long this_arg);
7266         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
7267         public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
7268         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
7269         public static native long ChannelManager_as_EventsProvider(long this_arg);
7270         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
7271         public static native long ChannelManager_as_Listen(long this_arg);
7272         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
7273         public static native long ChannelManager_as_Confirm(long this_arg);
7274         // MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg);
7275         public static native long ChannelManager_get_event_or_persistence_needed_future(long this_arg);
7276         // MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg);
7277         public static native boolean ChannelManager_get_and_clear_needs_persistence(long this_arg);
7278         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
7279         public static native long ChannelManager_current_best_block(long this_arg);
7280         // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7281         public static native long ChannelManager_node_features(long this_arg);
7282         // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7283         public static native long ChannelManager_channel_features(long this_arg);
7284         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7285         public static native long ChannelManager_channel_type_features(long this_arg);
7286         // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7287         public static native long ChannelManager_init_features(long this_arg);
7288         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
7289         public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
7290         // struct LDKOffersMessageHandler ChannelManager_as_OffersMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
7291         public static native long ChannelManager_as_OffersMessageHandler(long this_arg);
7292         // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR config);
7293         public static native long provided_init_features(long config);
7294         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
7295         public static native byte[] CounterpartyForwardingInfo_write(long obj);
7296         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
7297         public static native long CounterpartyForwardingInfo_read(byte[] ser);
7298         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
7299         public static native byte[] ChannelCounterparty_write(long obj);
7300         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
7301         public static native long ChannelCounterparty_read(byte[] ser);
7302         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
7303         public static native byte[] ChannelDetails_write(long obj);
7304         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
7305         public static native long ChannelDetails_read(byte[] ser);
7306         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
7307         public static native byte[] PhantomRouteHints_write(long obj);
7308         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
7309         public static native long PhantomRouteHints_read(byte[] ser);
7310         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
7311         public static native byte[] ChannelManager_write(long obj);
7312         // struct LDKCVec_u8Z ChannelShutdownState_write(const enum LDKChannelShutdownState *NONNULL_PTR obj);
7313         public static native byte[] ChannelShutdownState_write(long obj);
7314         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ ChannelShutdownState_read(struct LDKu8slice ser);
7315         public static native long ChannelShutdownState_read(byte[] ser);
7316         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
7317         public static native void ChannelManagerReadArgs_free(long this_obj);
7318         // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7319         public static native long ChannelManagerReadArgs_get_entropy_source(long this_ptr);
7320         // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val);
7321         public static native void ChannelManagerReadArgs_set_entropy_source(long this_ptr, long val);
7322         // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7323         public static native long ChannelManagerReadArgs_get_node_signer(long this_ptr);
7324         // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val);
7325         public static native void ChannelManagerReadArgs_set_node_signer(long this_ptr, long val);
7326         // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7327         public static native long ChannelManagerReadArgs_get_signer_provider(long this_ptr);
7328         // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val);
7329         public static native void ChannelManagerReadArgs_set_signer_provider(long this_ptr, long val);
7330         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7331         public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
7332         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
7333         public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
7334         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7335         public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
7336         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
7337         public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
7338         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7339         public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
7340         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
7341         public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
7342         // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7343         public static native long ChannelManagerReadArgs_get_router(long this_ptr);
7344         // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val);
7345         public static native void ChannelManagerReadArgs_set_router(long this_ptr, long val);
7346         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7347         public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
7348         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
7349         public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
7350         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7351         public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
7352         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
7353         public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
7354         // MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors);
7355         public static native long ChannelManagerReadArgs_new(long entropy_source, long node_signer, long signer_provider, long fee_estimator, long chain_monitor, long tx_broadcaster, long router, long logger, long default_config, long[] channel_monitors);
7356         // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
7357         public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_read(byte[] ser, long arg);
7358         // void ExpandedKey_free(struct LDKExpandedKey this_obj);
7359         public static native void ExpandedKey_free(long this_obj);
7360         // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
7361         public static native long ExpandedKey_new(byte[] key_material);
7362         // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
7363         public static native long create(long keys, long min_value_msat, int invoice_expiry_delta_secs, long entropy_source, long current_time, long min_final_cltv_expiry_delta);
7364         // struct LDKCResult_ThirtyTwoBytesNoneZ 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, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
7365         public static native long create_from_hash(long keys, long min_value_msat, byte[] payment_hash, int invoice_expiry_delta_secs, long current_time, long min_final_cltv_expiry_delta);
7366         // void DecodeError_free(struct LDKDecodeError this_ptr);
7367         public static native void DecodeError_free(long this_ptr);
7368         // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
7369         public static native long DecodeError_clone_ptr(long arg);
7370         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
7371         public static native long DecodeError_clone(long orig);
7372         // struct LDKDecodeError DecodeError_unknown_version(void);
7373         public static native long DecodeError_unknown_version();
7374         // struct LDKDecodeError DecodeError_unknown_required_feature(void);
7375         public static native long DecodeError_unknown_required_feature();
7376         // struct LDKDecodeError DecodeError_invalid_value(void);
7377         public static native long DecodeError_invalid_value();
7378         // struct LDKDecodeError DecodeError_short_read(void);
7379         public static native long DecodeError_short_read();
7380         // struct LDKDecodeError DecodeError_bad_length_descriptor(void);
7381         public static native long DecodeError_bad_length_descriptor();
7382         // struct LDKDecodeError DecodeError_io(enum LDKIOError a);
7383         public static native long DecodeError_io(IOError a);
7384         // struct LDKDecodeError DecodeError_unsupported_compression(void);
7385         public static native long DecodeError_unsupported_compression();
7386         // bool DecodeError_eq(const struct LDKDecodeError *NONNULL_PTR a, const struct LDKDecodeError *NONNULL_PTR b);
7387         public static native boolean DecodeError_eq(long a, long b);
7388         // void Init_free(struct LDKInit this_obj);
7389         public static native void Init_free(long this_obj);
7390         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
7391         public static native long Init_get_features(long this_ptr);
7392         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
7393         public static native void Init_set_features(long this_ptr, long val);
7394         // struct LDKCOption_CVec_ThirtyTwoBytesZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr);
7395         public static native long Init_get_networks(long this_ptr);
7396         // void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ThirtyTwoBytesZZ val);
7397         public static native void Init_set_networks(long this_ptr, long val);
7398         // struct LDKCOption_SocketAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
7399         public static native long Init_get_remote_network_address(long this_ptr);
7400         // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val);
7401         public static native void Init_set_remote_network_address(long this_ptr, long val);
7402         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ThirtyTwoBytesZZ networks_arg, struct LDKCOption_SocketAddressZ remote_network_address_arg);
7403         public static native long Init_new(long features_arg, long networks_arg, long remote_network_address_arg);
7404         // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
7405         public static native long Init_clone_ptr(long arg);
7406         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
7407         public static native long Init_clone(long orig);
7408         // bool Init_eq(const struct LDKInit *NONNULL_PTR a, const struct LDKInit *NONNULL_PTR b);
7409         public static native boolean Init_eq(long a, long b);
7410         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
7411         public static native void ErrorMessage_free(long this_obj);
7412         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
7413         public static native byte[] ErrorMessage_get_channel_id(long this_ptr);
7414         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7415         public static native void ErrorMessage_set_channel_id(long this_ptr, byte[] val);
7416         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
7417         public static native String ErrorMessage_get_data(long this_ptr);
7418         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
7419         public static native void ErrorMessage_set_data(long this_ptr, String val);
7420         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
7421         public static native long ErrorMessage_new(byte[] channel_id_arg, String data_arg);
7422         // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
7423         public static native long ErrorMessage_clone_ptr(long arg);
7424         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
7425         public static native long ErrorMessage_clone(long orig);
7426         // bool ErrorMessage_eq(const struct LDKErrorMessage *NONNULL_PTR a, const struct LDKErrorMessage *NONNULL_PTR b);
7427         public static native boolean ErrorMessage_eq(long a, long b);
7428         // void WarningMessage_free(struct LDKWarningMessage this_obj);
7429         public static native void WarningMessage_free(long this_obj);
7430         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
7431         public static native byte[] WarningMessage_get_channel_id(long this_ptr);
7432         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7433         public static native void WarningMessage_set_channel_id(long this_ptr, byte[] val);
7434         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
7435         public static native String WarningMessage_get_data(long this_ptr);
7436         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
7437         public static native void WarningMessage_set_data(long this_ptr, String val);
7438         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
7439         public static native long WarningMessage_new(byte[] channel_id_arg, String data_arg);
7440         // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
7441         public static native long WarningMessage_clone_ptr(long arg);
7442         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
7443         public static native long WarningMessage_clone(long orig);
7444         // bool WarningMessage_eq(const struct LDKWarningMessage *NONNULL_PTR a, const struct LDKWarningMessage *NONNULL_PTR b);
7445         public static native boolean WarningMessage_eq(long a, long b);
7446         // void Ping_free(struct LDKPing this_obj);
7447         public static native void Ping_free(long this_obj);
7448         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
7449         public static native short Ping_get_ponglen(long this_ptr);
7450         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
7451         public static native void Ping_set_ponglen(long this_ptr, short val);
7452         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
7453         public static native short Ping_get_byteslen(long this_ptr);
7454         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
7455         public static native void Ping_set_byteslen(long this_ptr, short val);
7456         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
7457         public static native long Ping_new(short ponglen_arg, short byteslen_arg);
7458         // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
7459         public static native long Ping_clone_ptr(long arg);
7460         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
7461         public static native long Ping_clone(long orig);
7462         // bool Ping_eq(const struct LDKPing *NONNULL_PTR a, const struct LDKPing *NONNULL_PTR b);
7463         public static native boolean Ping_eq(long a, long b);
7464         // void Pong_free(struct LDKPong this_obj);
7465         public static native void Pong_free(long this_obj);
7466         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
7467         public static native short Pong_get_byteslen(long this_ptr);
7468         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
7469         public static native void Pong_set_byteslen(long this_ptr, short val);
7470         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
7471         public static native long Pong_new(short byteslen_arg);
7472         // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
7473         public static native long Pong_clone_ptr(long arg);
7474         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
7475         public static native long Pong_clone(long orig);
7476         // bool Pong_eq(const struct LDKPong *NONNULL_PTR a, const struct LDKPong *NONNULL_PTR b);
7477         public static native boolean Pong_eq(long a, long b);
7478         // void OpenChannel_free(struct LDKOpenChannel this_obj);
7479         public static native void OpenChannel_free(long this_obj);
7480         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
7481         public static native byte[] OpenChannel_get_chain_hash(long this_ptr);
7482         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7483         public static native void OpenChannel_set_chain_hash(long this_ptr, byte[] val);
7484         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
7485         public static native byte[] OpenChannel_get_temporary_channel_id(long this_ptr);
7486         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7487         public static native void OpenChannel_set_temporary_channel_id(long this_ptr, byte[] val);
7488         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7489         public static native long OpenChannel_get_funding_satoshis(long this_ptr);
7490         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7491         public static native void OpenChannel_set_funding_satoshis(long this_ptr, long val);
7492         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7493         public static native long OpenChannel_get_push_msat(long this_ptr);
7494         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7495         public static native void OpenChannel_set_push_msat(long this_ptr, long val);
7496         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7497         public static native long OpenChannel_get_dust_limit_satoshis(long this_ptr);
7498         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7499         public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);
7500         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7501         public static native long OpenChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
7502         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7503         public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7504         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7505         public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
7506         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7507         public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
7508         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7509         public static native long OpenChannel_get_htlc_minimum_msat(long this_ptr);
7510         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7511         public static native void OpenChannel_set_htlc_minimum_msat(long this_ptr, long val);
7512         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7513         public static native int OpenChannel_get_feerate_per_kw(long this_ptr);
7514         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
7515         public static native void OpenChannel_set_feerate_per_kw(long this_ptr, int val);
7516         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7517         public static native short OpenChannel_get_to_self_delay(long this_ptr);
7518         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
7519         public static native void OpenChannel_set_to_self_delay(long this_ptr, short val);
7520         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7521         public static native short OpenChannel_get_max_accepted_htlcs(long this_ptr);
7522         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
7523         public static native void OpenChannel_set_max_accepted_htlcs(long this_ptr, short val);
7524         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7525         public static native byte[] OpenChannel_get_funding_pubkey(long this_ptr);
7526         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7527         public static native void OpenChannel_set_funding_pubkey(long this_ptr, byte[] val);
7528         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7529         public static native byte[] OpenChannel_get_revocation_basepoint(long this_ptr);
7530         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7531         public static native void OpenChannel_set_revocation_basepoint(long this_ptr, byte[] val);
7532         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7533         public static native byte[] OpenChannel_get_payment_point(long this_ptr);
7534         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7535         public static native void OpenChannel_set_payment_point(long this_ptr, byte[] val);
7536         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7537         public static native byte[] OpenChannel_get_delayed_payment_basepoint(long this_ptr);
7538         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7539         public static native void OpenChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7540         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7541         public static native byte[] OpenChannel_get_htlc_basepoint(long this_ptr);
7542         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7543         public static native void OpenChannel_set_htlc_basepoint(long this_ptr, byte[] val);
7544         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7545         public static native byte[] OpenChannel_get_first_per_commitment_point(long this_ptr);
7546         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7547         public static native void OpenChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
7548         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7549         public static native byte OpenChannel_get_channel_flags(long this_ptr);
7550         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
7551         public static native void OpenChannel_set_channel_flags(long this_ptr, byte val);
7552         // struct LDKCOption_CVec_u8ZZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7553         public static native long OpenChannel_get_shutdown_scriptpubkey(long this_ptr);
7554         // void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
7555         public static native void OpenChannel_set_shutdown_scriptpubkey(long this_ptr, long val);
7556         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7557         public static native long OpenChannel_get_channel_type(long this_ptr);
7558         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7559         public static native void OpenChannel_set_channel_type(long this_ptr, long val);
7560         // MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, 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, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
7561         public static native long OpenChannel_new(byte[] chain_hash_arg, byte[] temporary_channel_id_arg, long funding_satoshis_arg, long push_msat_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long channel_reserve_satoshis_arg, long htlc_minimum_msat_arg, int feerate_per_kw_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte channel_flags_arg, long shutdown_scriptpubkey_arg, long channel_type_arg);
7562         // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
7563         public static native long OpenChannel_clone_ptr(long arg);
7564         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
7565         public static native long OpenChannel_clone(long orig);
7566         // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b);
7567         public static native boolean OpenChannel_eq(long a, long b);
7568         // void OpenChannelV2_free(struct LDKOpenChannelV2 this_obj);
7569         public static native void OpenChannelV2_free(long this_obj);
7570         // const uint8_t (*OpenChannelV2_get_chain_hash(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32];
7571         public static native byte[] OpenChannelV2_get_chain_hash(long this_ptr);
7572         // void OpenChannelV2_set_chain_hash(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7573         public static native void OpenChannelV2_set_chain_hash(long this_ptr, byte[] val);
7574         // const uint8_t (*OpenChannelV2_get_temporary_channel_id(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32];
7575         public static native byte[] OpenChannelV2_get_temporary_channel_id(long this_ptr);
7576         // void OpenChannelV2_set_temporary_channel_id(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7577         public static native void OpenChannelV2_set_temporary_channel_id(long this_ptr, byte[] val);
7578         // uint32_t OpenChannelV2_get_funding_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7579         public static native int OpenChannelV2_get_funding_feerate_sat_per_1000_weight(long this_ptr);
7580         // void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7581         public static native void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(long this_ptr, int val);
7582         // uint32_t OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7583         public static native int OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(long this_ptr);
7584         // void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7585         public static native void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(long this_ptr, int val);
7586         // uint64_t OpenChannelV2_get_funding_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7587         public static native long OpenChannelV2_get_funding_satoshis(long this_ptr);
7588         // void OpenChannelV2_set_funding_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7589         public static native void OpenChannelV2_set_funding_satoshis(long this_ptr, long val);
7590         // uint64_t OpenChannelV2_get_dust_limit_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7591         public static native long OpenChannelV2_get_dust_limit_satoshis(long this_ptr);
7592         // void OpenChannelV2_set_dust_limit_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7593         public static native void OpenChannelV2_set_dust_limit_satoshis(long this_ptr, long val);
7594         // uint64_t OpenChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7595         public static native long OpenChannelV2_get_max_htlc_value_in_flight_msat(long this_ptr);
7596         // void OpenChannelV2_set_max_htlc_value_in_flight_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7597         public static native void OpenChannelV2_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7598         // uint64_t OpenChannelV2_get_htlc_minimum_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7599         public static native long OpenChannelV2_get_htlc_minimum_msat(long this_ptr);
7600         // void OpenChannelV2_set_htlc_minimum_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7601         public static native void OpenChannelV2_set_htlc_minimum_msat(long this_ptr, long val);
7602         // uint16_t OpenChannelV2_get_to_self_delay(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7603         public static native short OpenChannelV2_get_to_self_delay(long this_ptr);
7604         // void OpenChannelV2_set_to_self_delay(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7605         public static native void OpenChannelV2_set_to_self_delay(long this_ptr, short val);
7606         // uint16_t OpenChannelV2_get_max_accepted_htlcs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7607         public static native short OpenChannelV2_get_max_accepted_htlcs(long this_ptr);
7608         // void OpenChannelV2_set_max_accepted_htlcs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7609         public static native void OpenChannelV2_set_max_accepted_htlcs(long this_ptr, short val);
7610         // uint32_t OpenChannelV2_get_locktime(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7611         public static native int OpenChannelV2_get_locktime(long this_ptr);
7612         // void OpenChannelV2_set_locktime(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7613         public static native void OpenChannelV2_set_locktime(long this_ptr, int val);
7614         // struct LDKPublicKey OpenChannelV2_get_funding_pubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7615         public static native byte[] OpenChannelV2_get_funding_pubkey(long this_ptr);
7616         // void OpenChannelV2_set_funding_pubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7617         public static native void OpenChannelV2_set_funding_pubkey(long this_ptr, byte[] val);
7618         // struct LDKPublicKey OpenChannelV2_get_revocation_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7619         public static native byte[] OpenChannelV2_get_revocation_basepoint(long this_ptr);
7620         // void OpenChannelV2_set_revocation_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7621         public static native void OpenChannelV2_set_revocation_basepoint(long this_ptr, byte[] val);
7622         // struct LDKPublicKey OpenChannelV2_get_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7623         public static native byte[] OpenChannelV2_get_payment_basepoint(long this_ptr);
7624         // void OpenChannelV2_set_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7625         public static native void OpenChannelV2_set_payment_basepoint(long this_ptr, byte[] val);
7626         // struct LDKPublicKey OpenChannelV2_get_delayed_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7627         public static native byte[] OpenChannelV2_get_delayed_payment_basepoint(long this_ptr);
7628         // void OpenChannelV2_set_delayed_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7629         public static native void OpenChannelV2_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7630         // struct LDKPublicKey OpenChannelV2_get_htlc_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7631         public static native byte[] OpenChannelV2_get_htlc_basepoint(long this_ptr);
7632         // void OpenChannelV2_set_htlc_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7633         public static native void OpenChannelV2_set_htlc_basepoint(long this_ptr, byte[] val);
7634         // struct LDKPublicKey OpenChannelV2_get_first_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7635         public static native byte[] OpenChannelV2_get_first_per_commitment_point(long this_ptr);
7636         // void OpenChannelV2_set_first_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7637         public static native void OpenChannelV2_set_first_per_commitment_point(long this_ptr, byte[] val);
7638         // struct LDKPublicKey OpenChannelV2_get_second_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7639         public static native byte[] OpenChannelV2_get_second_per_commitment_point(long this_ptr);
7640         // void OpenChannelV2_set_second_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7641         public static native void OpenChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
7642         // uint8_t OpenChannelV2_get_channel_flags(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7643         public static native byte OpenChannelV2_get_channel_flags(long this_ptr);
7644         // void OpenChannelV2_set_channel_flags(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint8_t val);
7645         public static native void OpenChannelV2_set_channel_flags(long this_ptr, byte val);
7646         // struct LDKCOption_CVec_u8ZZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7647         public static native long OpenChannelV2_get_shutdown_scriptpubkey(long this_ptr);
7648         // void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
7649         public static native void OpenChannelV2_set_shutdown_scriptpubkey(long this_ptr, long val);
7650         // struct LDKChannelTypeFeatures OpenChannelV2_get_channel_type(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7651         public static native long OpenChannelV2_get_channel_type(long this_ptr);
7652         // void OpenChannelV2_set_channel_type(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7653         public static native void OpenChannelV2_set_channel_type(long this_ptr, long val);
7654         // enum LDKCOption_NoneZ OpenChannelV2_get_require_confirmed_inputs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7655         public static native COption_NoneZ OpenChannelV2_get_require_confirmed_inputs(long this_ptr);
7656         // void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
7657         public static native void OpenChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
7658         // MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
7659         public static native long OpenChannelV2_new(byte[] chain_hash_arg, byte[] temporary_channel_id_arg, int funding_feerate_sat_per_1000_weight_arg, int commitment_feerate_sat_per_1000_weight_arg, long funding_satoshis_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long htlc_minimum_msat_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, int locktime_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_basepoint_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte[] second_per_commitment_point_arg, byte channel_flags_arg, long shutdown_scriptpubkey_arg, long channel_type_arg, COption_NoneZ require_confirmed_inputs_arg);
7660         // uint64_t OpenChannelV2_clone_ptr(LDKOpenChannelV2 *NONNULL_PTR arg);
7661         public static native long OpenChannelV2_clone_ptr(long arg);
7662         // struct LDKOpenChannelV2 OpenChannelV2_clone(const struct LDKOpenChannelV2 *NONNULL_PTR orig);
7663         public static native long OpenChannelV2_clone(long orig);
7664         // bool OpenChannelV2_eq(const struct LDKOpenChannelV2 *NONNULL_PTR a, const struct LDKOpenChannelV2 *NONNULL_PTR b);
7665         public static native boolean OpenChannelV2_eq(long a, long b);
7666         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
7667         public static native void AcceptChannel_free(long this_obj);
7668         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
7669         public static native byte[] AcceptChannel_get_temporary_channel_id(long this_ptr);
7670         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7671         public static native void AcceptChannel_set_temporary_channel_id(long this_ptr, byte[] val);
7672         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7673         public static native long AcceptChannel_get_dust_limit_satoshis(long this_ptr);
7674         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7675         public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);
7676         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7677         public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
7678         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7679         public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7680         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7681         public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
7682         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7683         public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
7684         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7685         public static native long AcceptChannel_get_htlc_minimum_msat(long this_ptr);
7686         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7687         public static native void AcceptChannel_set_htlc_minimum_msat(long this_ptr, long val);
7688         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7689         public static native int AcceptChannel_get_minimum_depth(long this_ptr);
7690         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
7691         public static native void AcceptChannel_set_minimum_depth(long this_ptr, int val);
7692         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7693         public static native short AcceptChannel_get_to_self_delay(long this_ptr);
7694         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
7695         public static native void AcceptChannel_set_to_self_delay(long this_ptr, short val);
7696         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7697         public static native short AcceptChannel_get_max_accepted_htlcs(long this_ptr);
7698         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
7699         public static native void AcceptChannel_set_max_accepted_htlcs(long this_ptr, short val);
7700         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7701         public static native byte[] AcceptChannel_get_funding_pubkey(long this_ptr);
7702         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7703         public static native void AcceptChannel_set_funding_pubkey(long this_ptr, byte[] val);
7704         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7705         public static native byte[] AcceptChannel_get_revocation_basepoint(long this_ptr);
7706         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7707         public static native void AcceptChannel_set_revocation_basepoint(long this_ptr, byte[] val);
7708         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7709         public static native byte[] AcceptChannel_get_payment_point(long this_ptr);
7710         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7711         public static native void AcceptChannel_set_payment_point(long this_ptr, byte[] val);
7712         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7713         public static native byte[] AcceptChannel_get_delayed_payment_basepoint(long this_ptr);
7714         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7715         public static native void AcceptChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7716         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7717         public static native byte[] AcceptChannel_get_htlc_basepoint(long this_ptr);
7718         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7719         public static native void AcceptChannel_set_htlc_basepoint(long this_ptr, byte[] val);
7720         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7721         public static native byte[] AcceptChannel_get_first_per_commitment_point(long this_ptr);
7722         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7723         public static native void AcceptChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
7724         // struct LDKCOption_CVec_u8ZZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7725         public static native long AcceptChannel_get_shutdown_scriptpubkey(long this_ptr);
7726         // void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
7727         public static native void AcceptChannel_set_shutdown_scriptpubkey(long this_ptr, long val);
7728         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7729         public static native long AcceptChannel_get_channel_type(long this_ptr);
7730         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7731         public static native void AcceptChannel_set_channel_type(long this_ptr, long val);
7732         // MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, 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, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
7733         public static native long AcceptChannel_new(byte[] temporary_channel_id_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long channel_reserve_satoshis_arg, long htlc_minimum_msat_arg, int minimum_depth_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, long shutdown_scriptpubkey_arg, long channel_type_arg);
7734         // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
7735         public static native long AcceptChannel_clone_ptr(long arg);
7736         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
7737         public static native long AcceptChannel_clone(long orig);
7738         // bool AcceptChannel_eq(const struct LDKAcceptChannel *NONNULL_PTR a, const struct LDKAcceptChannel *NONNULL_PTR b);
7739         public static native boolean AcceptChannel_eq(long a, long b);
7740         // void AcceptChannelV2_free(struct LDKAcceptChannelV2 this_obj);
7741         public static native void AcceptChannelV2_free(long this_obj);
7742         // const uint8_t (*AcceptChannelV2_get_temporary_channel_id(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr))[32];
7743         public static native byte[] AcceptChannelV2_get_temporary_channel_id(long this_ptr);
7744         // void AcceptChannelV2_set_temporary_channel_id(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7745         public static native void AcceptChannelV2_set_temporary_channel_id(long this_ptr, byte[] val);
7746         // uint64_t AcceptChannelV2_get_funding_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7747         public static native long AcceptChannelV2_get_funding_satoshis(long this_ptr);
7748         // void AcceptChannelV2_set_funding_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7749         public static native void AcceptChannelV2_set_funding_satoshis(long this_ptr, long val);
7750         // uint64_t AcceptChannelV2_get_dust_limit_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7751         public static native long AcceptChannelV2_get_dust_limit_satoshis(long this_ptr);
7752         // void AcceptChannelV2_set_dust_limit_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7753         public static native void AcceptChannelV2_set_dust_limit_satoshis(long this_ptr, long val);
7754         // uint64_t AcceptChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7755         public static native long AcceptChannelV2_get_max_htlc_value_in_flight_msat(long this_ptr);
7756         // void AcceptChannelV2_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7757         public static native void AcceptChannelV2_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7758         // uint64_t AcceptChannelV2_get_htlc_minimum_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7759         public static native long AcceptChannelV2_get_htlc_minimum_msat(long this_ptr);
7760         // void AcceptChannelV2_set_htlc_minimum_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7761         public static native void AcceptChannelV2_set_htlc_minimum_msat(long this_ptr, long val);
7762         // uint32_t AcceptChannelV2_get_minimum_depth(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7763         public static native int AcceptChannelV2_get_minimum_depth(long this_ptr);
7764         // void AcceptChannelV2_set_minimum_depth(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7765         public static native void AcceptChannelV2_set_minimum_depth(long this_ptr, int val);
7766         // uint16_t AcceptChannelV2_get_to_self_delay(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7767         public static native short AcceptChannelV2_get_to_self_delay(long this_ptr);
7768         // void AcceptChannelV2_set_to_self_delay(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7769         public static native void AcceptChannelV2_set_to_self_delay(long this_ptr, short val);
7770         // uint16_t AcceptChannelV2_get_max_accepted_htlcs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7771         public static native short AcceptChannelV2_get_max_accepted_htlcs(long this_ptr);
7772         // void AcceptChannelV2_set_max_accepted_htlcs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7773         public static native void AcceptChannelV2_set_max_accepted_htlcs(long this_ptr, short val);
7774         // struct LDKPublicKey AcceptChannelV2_get_funding_pubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7775         public static native byte[] AcceptChannelV2_get_funding_pubkey(long this_ptr);
7776         // void AcceptChannelV2_set_funding_pubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7777         public static native void AcceptChannelV2_set_funding_pubkey(long this_ptr, byte[] val);
7778         // struct LDKPublicKey AcceptChannelV2_get_revocation_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7779         public static native byte[] AcceptChannelV2_get_revocation_basepoint(long this_ptr);
7780         // void AcceptChannelV2_set_revocation_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7781         public static native void AcceptChannelV2_set_revocation_basepoint(long this_ptr, byte[] val);
7782         // struct LDKPublicKey AcceptChannelV2_get_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7783         public static native byte[] AcceptChannelV2_get_payment_basepoint(long this_ptr);
7784         // void AcceptChannelV2_set_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7785         public static native void AcceptChannelV2_set_payment_basepoint(long this_ptr, byte[] val);
7786         // struct LDKPublicKey AcceptChannelV2_get_delayed_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7787         public static native byte[] AcceptChannelV2_get_delayed_payment_basepoint(long this_ptr);
7788         // void AcceptChannelV2_set_delayed_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7789         public static native void AcceptChannelV2_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7790         // struct LDKPublicKey AcceptChannelV2_get_htlc_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7791         public static native byte[] AcceptChannelV2_get_htlc_basepoint(long this_ptr);
7792         // void AcceptChannelV2_set_htlc_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7793         public static native void AcceptChannelV2_set_htlc_basepoint(long this_ptr, byte[] val);
7794         // struct LDKPublicKey AcceptChannelV2_get_first_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7795         public static native byte[] AcceptChannelV2_get_first_per_commitment_point(long this_ptr);
7796         // void AcceptChannelV2_set_first_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7797         public static native void AcceptChannelV2_set_first_per_commitment_point(long this_ptr, byte[] val);
7798         // struct LDKPublicKey AcceptChannelV2_get_second_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7799         public static native byte[] AcceptChannelV2_get_second_per_commitment_point(long this_ptr);
7800         // void AcceptChannelV2_set_second_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7801         public static native void AcceptChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
7802         // struct LDKCOption_CVec_u8ZZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7803         public static native long AcceptChannelV2_get_shutdown_scriptpubkey(long this_ptr);
7804         // void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
7805         public static native void AcceptChannelV2_set_shutdown_scriptpubkey(long this_ptr, long val);
7806         // struct LDKChannelTypeFeatures AcceptChannelV2_get_channel_type(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7807         public static native long AcceptChannelV2_get_channel_type(long this_ptr);
7808         // void AcceptChannelV2_set_channel_type(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7809         public static native void AcceptChannelV2_set_channel_type(long this_ptr, long val);
7810         // enum LDKCOption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7811         public static native COption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(long this_ptr);
7812         // void AcceptChannelV2_set_require_confirmed_inputs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
7813         public static native void AcceptChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
7814         // MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
7815         public static native long AcceptChannelV2_new(byte[] temporary_channel_id_arg, long funding_satoshis_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long htlc_minimum_msat_arg, int minimum_depth_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_basepoint_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte[] second_per_commitment_point_arg, long shutdown_scriptpubkey_arg, long channel_type_arg, COption_NoneZ require_confirmed_inputs_arg);
7816         // uint64_t AcceptChannelV2_clone_ptr(LDKAcceptChannelV2 *NONNULL_PTR arg);
7817         public static native long AcceptChannelV2_clone_ptr(long arg);
7818         // struct LDKAcceptChannelV2 AcceptChannelV2_clone(const struct LDKAcceptChannelV2 *NONNULL_PTR orig);
7819         public static native long AcceptChannelV2_clone(long orig);
7820         // bool AcceptChannelV2_eq(const struct LDKAcceptChannelV2 *NONNULL_PTR a, const struct LDKAcceptChannelV2 *NONNULL_PTR b);
7821         public static native boolean AcceptChannelV2_eq(long a, long b);
7822         // void FundingCreated_free(struct LDKFundingCreated this_obj);
7823         public static native void FundingCreated_free(long this_obj);
7824         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
7825         public static native byte[] FundingCreated_get_temporary_channel_id(long this_ptr);
7826         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7827         public static native void FundingCreated_set_temporary_channel_id(long this_ptr, byte[] val);
7828         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
7829         public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
7830         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7831         public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
7832         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
7833         public static native short FundingCreated_get_funding_output_index(long this_ptr);
7834         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
7835         public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
7836         // struct LDKECDSASignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
7837         public static native byte[] FundingCreated_get_signature(long this_ptr);
7838         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
7839         public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
7840         // 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 LDKECDSASignature signature_arg);
7841         public static native long FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
7842         // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
7843         public static native long FundingCreated_clone_ptr(long arg);
7844         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
7845         public static native long FundingCreated_clone(long orig);
7846         // bool FundingCreated_eq(const struct LDKFundingCreated *NONNULL_PTR a, const struct LDKFundingCreated *NONNULL_PTR b);
7847         public static native boolean FundingCreated_eq(long a, long b);
7848         // void FundingSigned_free(struct LDKFundingSigned this_obj);
7849         public static native void FundingSigned_free(long this_obj);
7850         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
7851         public static native byte[] FundingSigned_get_channel_id(long this_ptr);
7852         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7853         public static native void FundingSigned_set_channel_id(long this_ptr, byte[] val);
7854         // struct LDKECDSASignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
7855         public static native byte[] FundingSigned_get_signature(long this_ptr);
7856         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
7857         public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
7858         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg);
7859         public static native long FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
7860         // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
7861         public static native long FundingSigned_clone_ptr(long arg);
7862         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
7863         public static native long FundingSigned_clone(long orig);
7864         // bool FundingSigned_eq(const struct LDKFundingSigned *NONNULL_PTR a, const struct LDKFundingSigned *NONNULL_PTR b);
7865         public static native boolean FundingSigned_eq(long a, long b);
7866         // void ChannelReady_free(struct LDKChannelReady this_obj);
7867         public static native void ChannelReady_free(long this_obj);
7868         // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
7869         public static native byte[] ChannelReady_get_channel_id(long this_ptr);
7870         // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7871         public static native void ChannelReady_set_channel_id(long this_ptr, byte[] val);
7872         // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
7873         public static native byte[] ChannelReady_get_next_per_commitment_point(long this_ptr);
7874         // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7875         public static native void ChannelReady_set_next_per_commitment_point(long this_ptr, byte[] val);
7876         // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
7877         public static native long ChannelReady_get_short_channel_id_alias(long this_ptr);
7878         // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7879         public static native void ChannelReady_set_short_channel_id_alias(long this_ptr, long val);
7880         // 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);
7881         public static native long ChannelReady_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, long short_channel_id_alias_arg);
7882         // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
7883         public static native long ChannelReady_clone_ptr(long arg);
7884         // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
7885         public static native long ChannelReady_clone(long orig);
7886         // bool ChannelReady_eq(const struct LDKChannelReady *NONNULL_PTR a, const struct LDKChannelReady *NONNULL_PTR b);
7887         public static native boolean ChannelReady_eq(long a, long b);
7888         // void TxAddInput_free(struct LDKTxAddInput this_obj);
7889         public static native void TxAddInput_free(long this_obj);
7890         // const uint8_t (*TxAddInput_get_channel_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr))[32];
7891         public static native byte[] TxAddInput_get_channel_id(long this_ptr);
7892         // void TxAddInput_set_channel_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7893         public static native void TxAddInput_set_channel_id(long this_ptr, byte[] val);
7894         // uint64_t TxAddInput_get_serial_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7895         public static native long TxAddInput_get_serial_id(long this_ptr);
7896         // void TxAddInput_set_serial_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint64_t val);
7897         public static native void TxAddInput_set_serial_id(long this_ptr, long val);
7898         // struct LDKTransactionU16LenLimited TxAddInput_get_prevtx(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7899         public static native long TxAddInput_get_prevtx(long this_ptr);
7900         // void TxAddInput_set_prevtx(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKTransactionU16LenLimited val);
7901         public static native void TxAddInput_set_prevtx(long this_ptr, long val);
7902         // uint32_t TxAddInput_get_prevtx_out(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7903         public static native int TxAddInput_get_prevtx_out(long this_ptr);
7904         // void TxAddInput_set_prevtx_out(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
7905         public static native void TxAddInput_set_prevtx_out(long this_ptr, int val);
7906         // uint32_t TxAddInput_get_sequence(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7907         public static native int TxAddInput_get_sequence(long this_ptr);
7908         // void TxAddInput_set_sequence(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
7909         public static native void TxAddInput_set_sequence(long this_ptr, int val);
7910         // MUST_USE_RES struct LDKTxAddInput TxAddInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, struct LDKTransactionU16LenLimited prevtx_arg, uint32_t prevtx_out_arg, uint32_t sequence_arg);
7911         public static native long TxAddInput_new(byte[] channel_id_arg, long serial_id_arg, long prevtx_arg, int prevtx_out_arg, int sequence_arg);
7912         // uint64_t TxAddInput_clone_ptr(LDKTxAddInput *NONNULL_PTR arg);
7913         public static native long TxAddInput_clone_ptr(long arg);
7914         // struct LDKTxAddInput TxAddInput_clone(const struct LDKTxAddInput *NONNULL_PTR orig);
7915         public static native long TxAddInput_clone(long orig);
7916         // bool TxAddInput_eq(const struct LDKTxAddInput *NONNULL_PTR a, const struct LDKTxAddInput *NONNULL_PTR b);
7917         public static native boolean TxAddInput_eq(long a, long b);
7918         // void TxAddOutput_free(struct LDKTxAddOutput this_obj);
7919         public static native void TxAddOutput_free(long this_obj);
7920         // const uint8_t (*TxAddOutput_get_channel_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr))[32];
7921         public static native byte[] TxAddOutput_get_channel_id(long this_ptr);
7922         // void TxAddOutput_set_channel_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7923         public static native void TxAddOutput_set_channel_id(long this_ptr, byte[] val);
7924         // uint64_t TxAddOutput_get_serial_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
7925         public static native long TxAddOutput_get_serial_id(long this_ptr);
7926         // void TxAddOutput_set_serial_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
7927         public static native void TxAddOutput_set_serial_id(long this_ptr, long val);
7928         // uint64_t TxAddOutput_get_sats(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
7929         public static native long TxAddOutput_get_sats(long this_ptr);
7930         // void TxAddOutput_set_sats(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
7931         public static native void TxAddOutput_set_sats(long this_ptr, long val);
7932         // struct LDKu8slice TxAddOutput_get_script(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
7933         public static native byte[] TxAddOutput_get_script(long this_ptr);
7934         // void TxAddOutput_set_script(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
7935         public static native void TxAddOutput_set_script(long this_ptr, byte[] val);
7936         // MUST_USE_RES struct LDKTxAddOutput TxAddOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, uint64_t sats_arg, struct LDKCVec_u8Z script_arg);
7937         public static native long TxAddOutput_new(byte[] channel_id_arg, long serial_id_arg, long sats_arg, byte[] script_arg);
7938         // uint64_t TxAddOutput_clone_ptr(LDKTxAddOutput *NONNULL_PTR arg);
7939         public static native long TxAddOutput_clone_ptr(long arg);
7940         // struct LDKTxAddOutput TxAddOutput_clone(const struct LDKTxAddOutput *NONNULL_PTR orig);
7941         public static native long TxAddOutput_clone(long orig);
7942         // bool TxAddOutput_eq(const struct LDKTxAddOutput *NONNULL_PTR a, const struct LDKTxAddOutput *NONNULL_PTR b);
7943         public static native boolean TxAddOutput_eq(long a, long b);
7944         // void TxRemoveInput_free(struct LDKTxRemoveInput this_obj);
7945         public static native void TxRemoveInput_free(long this_obj);
7946         // const uint8_t (*TxRemoveInput_get_channel_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr))[32];
7947         public static native byte[] TxRemoveInput_get_channel_id(long this_ptr);
7948         // void TxRemoveInput_set_channel_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7949         public static native void TxRemoveInput_set_channel_id(long this_ptr, byte[] val);
7950         // uint64_t TxRemoveInput_get_serial_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr);
7951         public static native long TxRemoveInput_get_serial_id(long this_ptr);
7952         // void TxRemoveInput_set_serial_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, uint64_t val);
7953         public static native void TxRemoveInput_set_serial_id(long this_ptr, long val);
7954         // MUST_USE_RES struct LDKTxRemoveInput TxRemoveInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg);
7955         public static native long TxRemoveInput_new(byte[] channel_id_arg, long serial_id_arg);
7956         // uint64_t TxRemoveInput_clone_ptr(LDKTxRemoveInput *NONNULL_PTR arg);
7957         public static native long TxRemoveInput_clone_ptr(long arg);
7958         // struct LDKTxRemoveInput TxRemoveInput_clone(const struct LDKTxRemoveInput *NONNULL_PTR orig);
7959         public static native long TxRemoveInput_clone(long orig);
7960         // bool TxRemoveInput_eq(const struct LDKTxRemoveInput *NONNULL_PTR a, const struct LDKTxRemoveInput *NONNULL_PTR b);
7961         public static native boolean TxRemoveInput_eq(long a, long b);
7962         // void TxRemoveOutput_free(struct LDKTxRemoveOutput this_obj);
7963         public static native void TxRemoveOutput_free(long this_obj);
7964         // const uint8_t (*TxRemoveOutput_get_channel_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr))[32];
7965         public static native byte[] TxRemoveOutput_get_channel_id(long this_ptr);
7966         // void TxRemoveOutput_set_channel_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7967         public static native void TxRemoveOutput_set_channel_id(long this_ptr, byte[] val);
7968         // uint64_t TxRemoveOutput_get_serial_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr);
7969         public static native long TxRemoveOutput_get_serial_id(long this_ptr);
7970         // void TxRemoveOutput_set_serial_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, uint64_t val);
7971         public static native void TxRemoveOutput_set_serial_id(long this_ptr, long val);
7972         // MUST_USE_RES struct LDKTxRemoveOutput TxRemoveOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg);
7973         public static native long TxRemoveOutput_new(byte[] channel_id_arg, long serial_id_arg);
7974         // uint64_t TxRemoveOutput_clone_ptr(LDKTxRemoveOutput *NONNULL_PTR arg);
7975         public static native long TxRemoveOutput_clone_ptr(long arg);
7976         // struct LDKTxRemoveOutput TxRemoveOutput_clone(const struct LDKTxRemoveOutput *NONNULL_PTR orig);
7977         public static native long TxRemoveOutput_clone(long orig);
7978         // bool TxRemoveOutput_eq(const struct LDKTxRemoveOutput *NONNULL_PTR a, const struct LDKTxRemoveOutput *NONNULL_PTR b);
7979         public static native boolean TxRemoveOutput_eq(long a, long b);
7980         // void TxComplete_free(struct LDKTxComplete this_obj);
7981         public static native void TxComplete_free(long this_obj);
7982         // const uint8_t (*TxComplete_get_channel_id(const struct LDKTxComplete *NONNULL_PTR this_ptr))[32];
7983         public static native byte[] TxComplete_get_channel_id(long this_ptr);
7984         // void TxComplete_set_channel_id(struct LDKTxComplete *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7985         public static native void TxComplete_set_channel_id(long this_ptr, byte[] val);
7986         // MUST_USE_RES struct LDKTxComplete TxComplete_new(struct LDKThirtyTwoBytes channel_id_arg);
7987         public static native long TxComplete_new(byte[] channel_id_arg);
7988         // uint64_t TxComplete_clone_ptr(LDKTxComplete *NONNULL_PTR arg);
7989         public static native long TxComplete_clone_ptr(long arg);
7990         // struct LDKTxComplete TxComplete_clone(const struct LDKTxComplete *NONNULL_PTR orig);
7991         public static native long TxComplete_clone(long orig);
7992         // bool TxComplete_eq(const struct LDKTxComplete *NONNULL_PTR a, const struct LDKTxComplete *NONNULL_PTR b);
7993         public static native boolean TxComplete_eq(long a, long b);
7994         // void TxSignatures_free(struct LDKTxSignatures this_obj);
7995         public static native void TxSignatures_free(long this_obj);
7996         // const uint8_t (*TxSignatures_get_channel_id(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32];
7997         public static native byte[] TxSignatures_get_channel_id(long this_ptr);
7998         // void TxSignatures_set_channel_id(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7999         public static native void TxSignatures_set_channel_id(long this_ptr, byte[] val);
8000         // const uint8_t (*TxSignatures_get_tx_hash(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32];
8001         public static native byte[] TxSignatures_get_tx_hash(long this_ptr);
8002         // void TxSignatures_set_tx_hash(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8003         public static native void TxSignatures_set_tx_hash(long this_ptr, byte[] val);
8004         // struct LDKCVec_WitnessZ TxSignatures_get_witnesses(const struct LDKTxSignatures *NONNULL_PTR this_ptr);
8005         public static native byte[][] TxSignatures_get_witnesses(long this_ptr);
8006         // void TxSignatures_set_witnesses(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKCVec_WitnessZ val);
8007         public static native void TxSignatures_set_witnesses(long this_ptr, byte[][] val);
8008         // MUST_USE_RES struct LDKTxSignatures TxSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes tx_hash_arg, struct LDKCVec_WitnessZ witnesses_arg);
8009         public static native long TxSignatures_new(byte[] channel_id_arg, byte[] tx_hash_arg, byte[][] witnesses_arg);
8010         // uint64_t TxSignatures_clone_ptr(LDKTxSignatures *NONNULL_PTR arg);
8011         public static native long TxSignatures_clone_ptr(long arg);
8012         // struct LDKTxSignatures TxSignatures_clone(const struct LDKTxSignatures *NONNULL_PTR orig);
8013         public static native long TxSignatures_clone(long orig);
8014         // bool TxSignatures_eq(const struct LDKTxSignatures *NONNULL_PTR a, const struct LDKTxSignatures *NONNULL_PTR b);
8015         public static native boolean TxSignatures_eq(long a, long b);
8016         // void TxInitRbf_free(struct LDKTxInitRbf this_obj);
8017         public static native void TxInitRbf_free(long this_obj);
8018         // const uint8_t (*TxInitRbf_get_channel_id(const struct LDKTxInitRbf *NONNULL_PTR this_ptr))[32];
8019         public static native byte[] TxInitRbf_get_channel_id(long this_ptr);
8020         // void TxInitRbf_set_channel_id(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8021         public static native void TxInitRbf_set_channel_id(long this_ptr, byte[] val);
8022         // uint32_t TxInitRbf_get_locktime(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
8023         public static native int TxInitRbf_get_locktime(long this_ptr);
8024         // void TxInitRbf_set_locktime(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
8025         public static native void TxInitRbf_set_locktime(long this_ptr, int val);
8026         // uint32_t TxInitRbf_get_feerate_sat_per_1000_weight(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
8027         public static native int TxInitRbf_get_feerate_sat_per_1000_weight(long this_ptr);
8028         // void TxInitRbf_set_feerate_sat_per_1000_weight(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
8029         public static native void TxInitRbf_set_feerate_sat_per_1000_weight(long this_ptr, int val);
8030         // struct LDKCOption_i64Z TxInitRbf_get_funding_output_contribution(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
8031         public static native long TxInitRbf_get_funding_output_contribution(long this_ptr);
8032         // void TxInitRbf_set_funding_output_contribution(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
8033         public static native void TxInitRbf_set_funding_output_contribution(long this_ptr, long val);
8034         // MUST_USE_RES struct LDKTxInitRbf TxInitRbf_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t locktime_arg, uint32_t feerate_sat_per_1000_weight_arg, struct LDKCOption_i64Z funding_output_contribution_arg);
8035         public static native long TxInitRbf_new(byte[] channel_id_arg, int locktime_arg, int feerate_sat_per_1000_weight_arg, long funding_output_contribution_arg);
8036         // uint64_t TxInitRbf_clone_ptr(LDKTxInitRbf *NONNULL_PTR arg);
8037         public static native long TxInitRbf_clone_ptr(long arg);
8038         // struct LDKTxInitRbf TxInitRbf_clone(const struct LDKTxInitRbf *NONNULL_PTR orig);
8039         public static native long TxInitRbf_clone(long orig);
8040         // bool TxInitRbf_eq(const struct LDKTxInitRbf *NONNULL_PTR a, const struct LDKTxInitRbf *NONNULL_PTR b);
8041         public static native boolean TxInitRbf_eq(long a, long b);
8042         // void TxAckRbf_free(struct LDKTxAckRbf this_obj);
8043         public static native void TxAckRbf_free(long this_obj);
8044         // const uint8_t (*TxAckRbf_get_channel_id(const struct LDKTxAckRbf *NONNULL_PTR this_ptr))[32];
8045         public static native byte[] TxAckRbf_get_channel_id(long this_ptr);
8046         // void TxAckRbf_set_channel_id(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8047         public static native void TxAckRbf_set_channel_id(long this_ptr, byte[] val);
8048         // struct LDKCOption_i64Z TxAckRbf_get_funding_output_contribution(const struct LDKTxAckRbf *NONNULL_PTR this_ptr);
8049         public static native long TxAckRbf_get_funding_output_contribution(long this_ptr);
8050         // void TxAckRbf_set_funding_output_contribution(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
8051         public static native void TxAckRbf_set_funding_output_contribution(long this_ptr, long val);
8052         // MUST_USE_RES struct LDKTxAckRbf TxAckRbf_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCOption_i64Z funding_output_contribution_arg);
8053         public static native long TxAckRbf_new(byte[] channel_id_arg, long funding_output_contribution_arg);
8054         // uint64_t TxAckRbf_clone_ptr(LDKTxAckRbf *NONNULL_PTR arg);
8055         public static native long TxAckRbf_clone_ptr(long arg);
8056         // struct LDKTxAckRbf TxAckRbf_clone(const struct LDKTxAckRbf *NONNULL_PTR orig);
8057         public static native long TxAckRbf_clone(long orig);
8058         // bool TxAckRbf_eq(const struct LDKTxAckRbf *NONNULL_PTR a, const struct LDKTxAckRbf *NONNULL_PTR b);
8059         public static native boolean TxAckRbf_eq(long a, long b);
8060         // void TxAbort_free(struct LDKTxAbort this_obj);
8061         public static native void TxAbort_free(long this_obj);
8062         // const uint8_t (*TxAbort_get_channel_id(const struct LDKTxAbort *NONNULL_PTR this_ptr))[32];
8063         public static native byte[] TxAbort_get_channel_id(long this_ptr);
8064         // void TxAbort_set_channel_id(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8065         public static native void TxAbort_set_channel_id(long this_ptr, byte[] val);
8066         // struct LDKCVec_u8Z TxAbort_get_data(const struct LDKTxAbort *NONNULL_PTR this_ptr);
8067         public static native byte[] TxAbort_get_data(long this_ptr);
8068         // void TxAbort_set_data(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8069         public static native void TxAbort_set_data(long this_ptr, byte[] val);
8070         // MUST_USE_RES struct LDKTxAbort TxAbort_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z data_arg);
8071         public static native long TxAbort_new(byte[] channel_id_arg, byte[] data_arg);
8072         // uint64_t TxAbort_clone_ptr(LDKTxAbort *NONNULL_PTR arg);
8073         public static native long TxAbort_clone_ptr(long arg);
8074         // struct LDKTxAbort TxAbort_clone(const struct LDKTxAbort *NONNULL_PTR orig);
8075         public static native long TxAbort_clone(long orig);
8076         // bool TxAbort_eq(const struct LDKTxAbort *NONNULL_PTR a, const struct LDKTxAbort *NONNULL_PTR b);
8077         public static native boolean TxAbort_eq(long a, long b);
8078         // void Shutdown_free(struct LDKShutdown this_obj);
8079         public static native void Shutdown_free(long this_obj);
8080         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
8081         public static native byte[] Shutdown_get_channel_id(long this_ptr);
8082         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8083         public static native void Shutdown_set_channel_id(long this_ptr, byte[] val);
8084         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
8085         public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
8086         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8087         public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
8088         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
8089         public static native long Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
8090         // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
8091         public static native long Shutdown_clone_ptr(long arg);
8092         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
8093         public static native long Shutdown_clone(long orig);
8094         // bool Shutdown_eq(const struct LDKShutdown *NONNULL_PTR a, const struct LDKShutdown *NONNULL_PTR b);
8095         public static native boolean Shutdown_eq(long a, long b);
8096         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
8097         public static native void ClosingSignedFeeRange_free(long this_obj);
8098         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
8099         public static native long ClosingSignedFeeRange_get_min_fee_satoshis(long this_ptr);
8100         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
8101         public static native void ClosingSignedFeeRange_set_min_fee_satoshis(long this_ptr, long val);
8102         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
8103         public static native long ClosingSignedFeeRange_get_max_fee_satoshis(long this_ptr);
8104         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
8105         public static native void ClosingSignedFeeRange_set_max_fee_satoshis(long this_ptr, long val);
8106         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
8107         public static native long ClosingSignedFeeRange_new(long min_fee_satoshis_arg, long max_fee_satoshis_arg);
8108         // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
8109         public static native long ClosingSignedFeeRange_clone_ptr(long arg);
8110         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
8111         public static native long ClosingSignedFeeRange_clone(long orig);
8112         // bool ClosingSignedFeeRange_eq(const struct LDKClosingSignedFeeRange *NONNULL_PTR a, const struct LDKClosingSignedFeeRange *NONNULL_PTR b);
8113         public static native boolean ClosingSignedFeeRange_eq(long a, long b);
8114         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
8115         public static native void ClosingSigned_free(long this_obj);
8116         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
8117         public static native byte[] ClosingSigned_get_channel_id(long this_ptr);
8118         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8119         public static native void ClosingSigned_set_channel_id(long this_ptr, byte[] val);
8120         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
8121         public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
8122         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
8123         public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
8124         // struct LDKECDSASignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
8125         public static native byte[] ClosingSigned_get_signature(long this_ptr);
8126         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8127         public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
8128         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
8129         public static native long ClosingSigned_get_fee_range(long this_ptr);
8130         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
8131         public static native void ClosingSigned_set_fee_range(long this_ptr, long val);
8132         // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
8133         public static native long ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, long fee_range_arg);
8134         // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
8135         public static native long ClosingSigned_clone_ptr(long arg);
8136         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
8137         public static native long ClosingSigned_clone(long orig);
8138         // bool ClosingSigned_eq(const struct LDKClosingSigned *NONNULL_PTR a, const struct LDKClosingSigned *NONNULL_PTR b);
8139         public static native boolean ClosingSigned_eq(long a, long b);
8140         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
8141         public static native void UpdateAddHTLC_free(long this_obj);
8142         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
8143         public static native byte[] UpdateAddHTLC_get_channel_id(long this_ptr);
8144         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8145         public static native void UpdateAddHTLC_set_channel_id(long this_ptr, byte[] val);
8146         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8147         public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
8148         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
8149         public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
8150         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8151         public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
8152         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
8153         public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
8154         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
8155         public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
8156         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8157         public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
8158         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8159         public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
8160         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
8161         public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
8162         // struct LDKCOption_u64Z UpdateAddHTLC_get_skimmed_fee_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8163         public static native long UpdateAddHTLC_get_skimmed_fee_msat(long this_ptr);
8164         // void UpdateAddHTLC_set_skimmed_fee_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8165         public static native void UpdateAddHTLC_set_skimmed_fee_msat(long this_ptr, long val);
8166         // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
8167         public static native long UpdateAddHTLC_clone_ptr(long arg);
8168         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
8169         public static native long UpdateAddHTLC_clone(long orig);
8170         // bool UpdateAddHTLC_eq(const struct LDKUpdateAddHTLC *NONNULL_PTR a, const struct LDKUpdateAddHTLC *NONNULL_PTR b);
8171         public static native boolean UpdateAddHTLC_eq(long a, long b);
8172         // void OnionMessage_free(struct LDKOnionMessage this_obj);
8173         public static native void OnionMessage_free(long this_obj);
8174         // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
8175         public static native byte[] OnionMessage_get_blinding_point(long this_ptr);
8176         // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8177         public static native void OnionMessage_set_blinding_point(long this_ptr, byte[] val);
8178         // struct LDKPacket OnionMessage_get_onion_routing_packet(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
8179         public static native long OnionMessage_get_onion_routing_packet(long this_ptr);
8180         // void OnionMessage_set_onion_routing_packet(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPacket val);
8181         public static native void OnionMessage_set_onion_routing_packet(long this_ptr, long val);
8182         // MUST_USE_RES struct LDKOnionMessage OnionMessage_new(struct LDKPublicKey blinding_point_arg, struct LDKPacket onion_routing_packet_arg);
8183         public static native long OnionMessage_new(byte[] blinding_point_arg, long onion_routing_packet_arg);
8184         // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg);
8185         public static native long OnionMessage_clone_ptr(long arg);
8186         // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig);
8187         public static native long OnionMessage_clone(long orig);
8188         // bool OnionMessage_eq(const struct LDKOnionMessage *NONNULL_PTR a, const struct LDKOnionMessage *NONNULL_PTR b);
8189         public static native boolean OnionMessage_eq(long a, long b);
8190         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
8191         public static native void UpdateFulfillHTLC_free(long this_obj);
8192         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
8193         public static native byte[] UpdateFulfillHTLC_get_channel_id(long this_ptr);
8194         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8195         public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, byte[] val);
8196         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
8197         public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
8198         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
8199         public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
8200         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
8201         public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
8202         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8203         public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
8204         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
8205         public static native long UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
8206         // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
8207         public static native long UpdateFulfillHTLC_clone_ptr(long arg);
8208         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
8209         public static native long UpdateFulfillHTLC_clone(long orig);
8210         // bool UpdateFulfillHTLC_eq(const struct LDKUpdateFulfillHTLC *NONNULL_PTR a, const struct LDKUpdateFulfillHTLC *NONNULL_PTR b);
8211         public static native boolean UpdateFulfillHTLC_eq(long a, long b);
8212         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
8213         public static native void UpdateFailHTLC_free(long this_obj);
8214         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
8215         public static native byte[] UpdateFailHTLC_get_channel_id(long this_ptr);
8216         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8217         public static native void UpdateFailHTLC_set_channel_id(long this_ptr, byte[] val);
8218         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
8219         public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
8220         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
8221         public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
8222         // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
8223         public static native long UpdateFailHTLC_clone_ptr(long arg);
8224         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
8225         public static native long UpdateFailHTLC_clone(long orig);
8226         // bool UpdateFailHTLC_eq(const struct LDKUpdateFailHTLC *NONNULL_PTR a, const struct LDKUpdateFailHTLC *NONNULL_PTR b);
8227         public static native boolean UpdateFailHTLC_eq(long a, long b);
8228         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
8229         public static native void UpdateFailMalformedHTLC_free(long this_obj);
8230         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
8231         public static native byte[] UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
8232         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8233         public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, byte[] val);
8234         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
8235         public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
8236         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
8237         public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
8238         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
8239         public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
8240         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
8241         public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
8242         // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
8243         public static native long UpdateFailMalformedHTLC_clone_ptr(long arg);
8244         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
8245         public static native long UpdateFailMalformedHTLC_clone(long orig);
8246         // bool UpdateFailMalformedHTLC_eq(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR a, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR b);
8247         public static native boolean UpdateFailMalformedHTLC_eq(long a, long b);
8248         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
8249         public static native void CommitmentSigned_free(long this_obj);
8250         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
8251         public static native byte[] CommitmentSigned_get_channel_id(long this_ptr);
8252         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8253         public static native void CommitmentSigned_set_channel_id(long this_ptr, byte[] val);
8254         // struct LDKECDSASignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
8255         public static native byte[] CommitmentSigned_get_signature(long this_ptr);
8256         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8257         public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
8258         // struct LDKCVec_ECDSASignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
8259         public static native byte[][] CommitmentSigned_get_htlc_signatures(long this_ptr);
8260         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val);
8261         public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
8262         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg);
8263         public static native long CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
8264         // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
8265         public static native long CommitmentSigned_clone_ptr(long arg);
8266         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
8267         public static native long CommitmentSigned_clone(long orig);
8268         // bool CommitmentSigned_eq(const struct LDKCommitmentSigned *NONNULL_PTR a, const struct LDKCommitmentSigned *NONNULL_PTR b);
8269         public static native boolean CommitmentSigned_eq(long a, long b);
8270         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
8271         public static native void RevokeAndACK_free(long this_obj);
8272         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
8273         public static native byte[] RevokeAndACK_get_channel_id(long this_ptr);
8274         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8275         public static native void RevokeAndACK_set_channel_id(long this_ptr, byte[] val);
8276         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
8277         public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
8278         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8279         public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
8280         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
8281         public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
8282         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8283         public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
8284         // 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);
8285         public static native long RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
8286         // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
8287         public static native long RevokeAndACK_clone_ptr(long arg);
8288         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
8289         public static native long RevokeAndACK_clone(long orig);
8290         // bool RevokeAndACK_eq(const struct LDKRevokeAndACK *NONNULL_PTR a, const struct LDKRevokeAndACK *NONNULL_PTR b);
8291         public static native boolean RevokeAndACK_eq(long a, long b);
8292         // void UpdateFee_free(struct LDKUpdateFee this_obj);
8293         public static native void UpdateFee_free(long this_obj);
8294         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
8295         public static native byte[] UpdateFee_get_channel_id(long this_ptr);
8296         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8297         public static native void UpdateFee_set_channel_id(long this_ptr, byte[] val);
8298         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
8299         public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
8300         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
8301         public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
8302         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
8303         public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
8304         // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
8305         public static native long UpdateFee_clone_ptr(long arg);
8306         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
8307         public static native long UpdateFee_clone(long orig);
8308         // bool UpdateFee_eq(const struct LDKUpdateFee *NONNULL_PTR a, const struct LDKUpdateFee *NONNULL_PTR b);
8309         public static native boolean UpdateFee_eq(long a, long b);
8310         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
8311         public static native void ChannelReestablish_free(long this_obj);
8312         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
8313         public static native byte[] ChannelReestablish_get_channel_id(long this_ptr);
8314         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8315         public static native void ChannelReestablish_set_channel_id(long this_ptr, byte[] val);
8316         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
8317         public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
8318         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
8319         public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
8320         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
8321         public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
8322         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
8323         public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
8324         // const uint8_t (*ChannelReestablish_get_your_last_per_commitment_secret(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
8325         public static native byte[] ChannelReestablish_get_your_last_per_commitment_secret(long this_ptr);
8326         // void ChannelReestablish_set_your_last_per_commitment_secret(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8327         public static native void ChannelReestablish_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
8328         // struct LDKPublicKey ChannelReestablish_get_my_current_per_commitment_point(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
8329         public static native byte[] ChannelReestablish_get_my_current_per_commitment_point(long this_ptr);
8330         // void ChannelReestablish_set_my_current_per_commitment_point(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8331         public static native void ChannelReestablish_set_my_current_per_commitment_point(long this_ptr, byte[] val);
8332         // struct LDKCOption_ThirtyTwoBytesZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
8333         public static native long ChannelReestablish_get_next_funding_txid(long this_ptr);
8334         // void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
8335         public static native void ChannelReestablish_set_next_funding_txid(long this_ptr, long val);
8336         // MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg);
8337         public static native long ChannelReestablish_new(byte[] channel_id_arg, long next_local_commitment_number_arg, long next_remote_commitment_number_arg, byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg, long next_funding_txid_arg);
8338         // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
8339         public static native long ChannelReestablish_clone_ptr(long arg);
8340         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
8341         public static native long ChannelReestablish_clone(long orig);
8342         // bool ChannelReestablish_eq(const struct LDKChannelReestablish *NONNULL_PTR a, const struct LDKChannelReestablish *NONNULL_PTR b);
8343         public static native boolean ChannelReestablish_eq(long a, long b);
8344         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
8345         public static native void AnnouncementSignatures_free(long this_obj);
8346         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
8347         public static native byte[] AnnouncementSignatures_get_channel_id(long this_ptr);
8348         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8349         public static native void AnnouncementSignatures_set_channel_id(long this_ptr, byte[] val);
8350         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
8351         public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
8352         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
8353         public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
8354         // struct LDKECDSASignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
8355         public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
8356         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8357         public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
8358         // struct LDKECDSASignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
8359         public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
8360         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8361         public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
8362         // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg);
8363         public static native long AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
8364         // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
8365         public static native long AnnouncementSignatures_clone_ptr(long arg);
8366         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
8367         public static native long AnnouncementSignatures_clone(long orig);
8368         // bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b);
8369         public static native boolean AnnouncementSignatures_eq(long a, long b);
8370         // void SocketAddress_free(struct LDKSocketAddress this_ptr);
8371         public static native void SocketAddress_free(long this_ptr);
8372         // uint64_t SocketAddress_clone_ptr(LDKSocketAddress *NONNULL_PTR arg);
8373         public static native long SocketAddress_clone_ptr(long arg);
8374         // struct LDKSocketAddress SocketAddress_clone(const struct LDKSocketAddress *NONNULL_PTR orig);
8375         public static native long SocketAddress_clone(long orig);
8376         // struct LDKSocketAddress SocketAddress_tcp_ip_v4(struct LDKFourBytes addr, uint16_t port);
8377         public static native long SocketAddress_tcp_ip_v4(byte[] addr, short port);
8378         // struct LDKSocketAddress SocketAddress_tcp_ip_v6(struct LDKSixteenBytes addr, uint16_t port);
8379         public static native long SocketAddress_tcp_ip_v6(byte[] addr, short port);
8380         // struct LDKSocketAddress SocketAddress_onion_v2(struct LDKTwelveBytes a);
8381         public static native long SocketAddress_onion_v2(byte[] a);
8382         // struct LDKSocketAddress SocketAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
8383         public static native long SocketAddress_onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port);
8384         // struct LDKSocketAddress SocketAddress_hostname(struct LDKHostname hostname, uint16_t port);
8385         public static native long SocketAddress_hostname(long hostname, short port);
8386         // bool SocketAddress_eq(const struct LDKSocketAddress *NONNULL_PTR a, const struct LDKSocketAddress *NONNULL_PTR b);
8387         public static native boolean SocketAddress_eq(long a, long b);
8388         // struct LDKCVec_u8Z SocketAddress_write(const struct LDKSocketAddress *NONNULL_PTR obj);
8389         public static native byte[] SocketAddress_write(long obj);
8390         // struct LDKCResult_SocketAddressDecodeErrorZ SocketAddress_read(struct LDKu8slice ser);
8391         public static native long SocketAddress_read(byte[] ser);
8392         // enum LDKSocketAddressParseError SocketAddressParseError_clone(const enum LDKSocketAddressParseError *NONNULL_PTR orig);
8393         public static native SocketAddressParseError SocketAddressParseError_clone(long orig);
8394         // enum LDKSocketAddressParseError SocketAddressParseError_socket_addr_parse(void);
8395         public static native SocketAddressParseError SocketAddressParseError_socket_addr_parse();
8396         // enum LDKSocketAddressParseError SocketAddressParseError_invalid_input(void);
8397         public static native SocketAddressParseError SocketAddressParseError_invalid_input();
8398         // enum LDKSocketAddressParseError SocketAddressParseError_invalid_port(void);
8399         public static native SocketAddressParseError SocketAddressParseError_invalid_port();
8400         // enum LDKSocketAddressParseError SocketAddressParseError_invalid_onion_v3(void);
8401         public static native SocketAddressParseError SocketAddressParseError_invalid_onion_v3();
8402         // bool SocketAddressParseError_eq(const enum LDKSocketAddressParseError *NONNULL_PTR a, const enum LDKSocketAddressParseError *NONNULL_PTR b);
8403         public static native boolean SocketAddressParseError_eq(long a, long b);
8404         // struct LDKCResult_SocketAddressSocketAddressParseErrorZ parse_onion_address(struct LDKStr host, uint16_t port);
8405         public static native long parse_onion_address(String host, short port);
8406         // struct LDKStr SocketAddress_to_str(const struct LDKSocketAddress *NONNULL_PTR o);
8407         public static native String SocketAddress_to_str(long o);
8408         // struct LDKCResult_SocketAddressSocketAddressParseErrorZ SocketAddress_from_str(struct LDKStr s);
8409         public static native long SocketAddress_from_str(String s);
8410         // void UnsignedGossipMessage_free(struct LDKUnsignedGossipMessage this_ptr);
8411         public static native void UnsignedGossipMessage_free(long this_ptr);
8412         // uint64_t UnsignedGossipMessage_clone_ptr(LDKUnsignedGossipMessage *NONNULL_PTR arg);
8413         public static native long UnsignedGossipMessage_clone_ptr(long arg);
8414         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_clone(const struct LDKUnsignedGossipMessage *NONNULL_PTR orig);
8415         public static native long UnsignedGossipMessage_clone(long orig);
8416         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_announcement(struct LDKUnsignedChannelAnnouncement a);
8417         public static native long UnsignedGossipMessage_channel_announcement(long a);
8418         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_update(struct LDKUnsignedChannelUpdate a);
8419         public static native long UnsignedGossipMessage_channel_update(long a);
8420         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_node_announcement(struct LDKUnsignedNodeAnnouncement a);
8421         public static native long UnsignedGossipMessage_node_announcement(long a);
8422         // struct LDKCVec_u8Z UnsignedGossipMessage_write(const struct LDKUnsignedGossipMessage *NONNULL_PTR obj);
8423         public static native byte[] UnsignedGossipMessage_write(long obj);
8424         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
8425         public static native void UnsignedNodeAnnouncement_free(long this_obj);
8426         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
8427         public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
8428         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
8429         public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
8430         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
8431         public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
8432         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
8433         public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
8434         // struct LDKNodeId UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
8435         public static native long UnsignedNodeAnnouncement_get_node_id(long this_ptr);
8436         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8437         public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, long val);
8438         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
8439         public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
8440         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
8441         public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
8442         // struct LDKNodeAlias UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
8443         public static native long UnsignedNodeAnnouncement_get_alias(long this_ptr);
8444         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
8445         public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, long val);
8446         // struct LDKCVec_SocketAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
8447         public static native long[] UnsignedNodeAnnouncement_get_addresses(long this_ptr);
8448         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_SocketAddressZ val);
8449         public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
8450         // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
8451         public static native long UnsignedNodeAnnouncement_clone_ptr(long arg);
8452         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
8453         public static native long UnsignedNodeAnnouncement_clone(long orig);
8454         // bool UnsignedNodeAnnouncement_eq(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR a, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR b);
8455         public static native boolean UnsignedNodeAnnouncement_eq(long a, long b);
8456         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
8457         public static native void NodeAnnouncement_free(long this_obj);
8458         // struct LDKECDSASignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
8459         public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
8460         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8461         public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
8462         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
8463         public static native long NodeAnnouncement_get_contents(long this_ptr);
8464         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
8465         public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
8466         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
8467         public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
8468         // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
8469         public static native long NodeAnnouncement_clone_ptr(long arg);
8470         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
8471         public static native long NodeAnnouncement_clone(long orig);
8472         // bool NodeAnnouncement_eq(const struct LDKNodeAnnouncement *NONNULL_PTR a, const struct LDKNodeAnnouncement *NONNULL_PTR b);
8473         public static native boolean NodeAnnouncement_eq(long a, long b);
8474         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
8475         public static native void UnsignedChannelAnnouncement_free(long this_obj);
8476         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8477         public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
8478         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
8479         public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
8480         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
8481         public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
8482         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8483         public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
8484         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8485         public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
8486         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
8487         public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
8488         // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8489         public static native long UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
8490         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8491         public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, long val);
8492         // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8493         public static native long UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
8494         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8495         public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, long val);
8496         // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8497         public static native long UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
8498         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8499         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, long val);
8500         // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8501         public static native long UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
8502         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8503         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, long val);
8504         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_get_excess_data(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8505         public static native byte[] UnsignedChannelAnnouncement_get_excess_data(long this_ptr);
8506         // void UnsignedChannelAnnouncement_set_excess_data(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8507         public static native void UnsignedChannelAnnouncement_set_excess_data(long this_ptr, byte[] val);
8508         // MUST_USE_RES struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_new(struct LDKChannelFeatures features_arg, struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, struct LDKNodeId node_id_1_arg, struct LDKNodeId node_id_2_arg, struct LDKNodeId bitcoin_key_1_arg, struct LDKNodeId bitcoin_key_2_arg, struct LDKCVec_u8Z excess_data_arg);
8509         public static native long UnsignedChannelAnnouncement_new(long features_arg, byte[] chain_hash_arg, long short_channel_id_arg, long node_id_1_arg, long node_id_2_arg, long bitcoin_key_1_arg, long bitcoin_key_2_arg, byte[] excess_data_arg);
8510         // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
8511         public static native long UnsignedChannelAnnouncement_clone_ptr(long arg);
8512         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
8513         public static native long UnsignedChannelAnnouncement_clone(long orig);
8514         // bool UnsignedChannelAnnouncement_eq(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR a, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR b);
8515         public static native boolean UnsignedChannelAnnouncement_eq(long a, long b);
8516         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
8517         public static native void ChannelAnnouncement_free(long this_obj);
8518         // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8519         public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
8520         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8521         public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
8522         // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8523         public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
8524         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8525         public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
8526         // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8527         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
8528         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8529         public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
8530         // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8531         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
8532         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8533         public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
8534         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8535         public static native long ChannelAnnouncement_get_contents(long this_ptr);
8536         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
8537         public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
8538         // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKECDSASignature node_signature_1_arg, struct LDKECDSASignature node_signature_2_arg, struct LDKECDSASignature bitcoin_signature_1_arg, struct LDKECDSASignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg);
8539         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);
8540         // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
8541         public static native long ChannelAnnouncement_clone_ptr(long arg);
8542         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
8543         public static native long ChannelAnnouncement_clone(long orig);
8544         // bool ChannelAnnouncement_eq(const struct LDKChannelAnnouncement *NONNULL_PTR a, const struct LDKChannelAnnouncement *NONNULL_PTR b);
8545         public static native boolean ChannelAnnouncement_eq(long a, long b);
8546         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
8547         public static native void UnsignedChannelUpdate_free(long this_obj);
8548         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
8549         public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
8550         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8551         public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
8552         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8553         public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
8554         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
8555         public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
8556         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8557         public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
8558         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
8559         public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
8560         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8561         public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
8562         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
8563         public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
8564         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8565         public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
8566         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
8567         public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
8568         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8569         public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
8570         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
8571         public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
8572         // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8573         public static native long UnsignedChannelUpdate_get_htlc_maximum_msat(long this_ptr);
8574         // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
8575         public static native void UnsignedChannelUpdate_set_htlc_maximum_msat(long this_ptr, long val);
8576         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8577         public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
8578         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
8579         public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
8580         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8581         public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
8582         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
8583         public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
8584         // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8585         public static native byte[] UnsignedChannelUpdate_get_excess_data(long this_ptr);
8586         // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8587         public static native void UnsignedChannelUpdate_set_excess_data(long this_ptr, byte[] val);
8588         // MUST_USE_RES struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_new(struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, uint32_t timestamp_arg, uint8_t flags_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, struct LDKCVec_u8Z excess_data_arg);
8589         public static native long UnsignedChannelUpdate_new(byte[] chain_hash_arg, long short_channel_id_arg, int timestamp_arg, byte flags_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, int fee_base_msat_arg, int fee_proportional_millionths_arg, byte[] excess_data_arg);
8590         // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
8591         public static native long UnsignedChannelUpdate_clone_ptr(long arg);
8592         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
8593         public static native long UnsignedChannelUpdate_clone(long orig);
8594         // bool UnsignedChannelUpdate_eq(const struct LDKUnsignedChannelUpdate *NONNULL_PTR a, const struct LDKUnsignedChannelUpdate *NONNULL_PTR b);
8595         public static native boolean UnsignedChannelUpdate_eq(long a, long b);
8596         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
8597         public static native void ChannelUpdate_free(long this_obj);
8598         // struct LDKECDSASignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
8599         public static native byte[] ChannelUpdate_get_signature(long this_ptr);
8600         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8601         public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
8602         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
8603         public static native long ChannelUpdate_get_contents(long this_ptr);
8604         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
8605         public static native void ChannelUpdate_set_contents(long this_ptr, long val);
8606         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
8607         public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
8608         // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
8609         public static native long ChannelUpdate_clone_ptr(long arg);
8610         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
8611         public static native long ChannelUpdate_clone(long orig);
8612         // bool ChannelUpdate_eq(const struct LDKChannelUpdate *NONNULL_PTR a, const struct LDKChannelUpdate *NONNULL_PTR b);
8613         public static native boolean ChannelUpdate_eq(long a, long b);
8614         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
8615         public static native void QueryChannelRange_free(long this_obj);
8616         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
8617         public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
8618         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8619         public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
8620         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
8621         public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
8622         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8623         public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
8624         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
8625         public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
8626         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8627         public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
8628         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
8629         public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
8630         // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
8631         public static native long QueryChannelRange_clone_ptr(long arg);
8632         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
8633         public static native long QueryChannelRange_clone(long orig);
8634         // bool QueryChannelRange_eq(const struct LDKQueryChannelRange *NONNULL_PTR a, const struct LDKQueryChannelRange *NONNULL_PTR b);
8635         public static native boolean QueryChannelRange_eq(long a, long b);
8636         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
8637         public static native void ReplyChannelRange_free(long this_obj);
8638         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
8639         public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
8640         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8641         public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
8642         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8643         public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
8644         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8645         public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
8646         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8647         public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
8648         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8649         public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
8650         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8651         public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
8652         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
8653         public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
8654         // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8655         public static native long[] ReplyChannelRange_get_short_channel_ids(long this_ptr);
8656         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
8657         public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
8658         // 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);
8659         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);
8660         // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
8661         public static native long ReplyChannelRange_clone_ptr(long arg);
8662         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
8663         public static native long ReplyChannelRange_clone(long orig);
8664         // bool ReplyChannelRange_eq(const struct LDKReplyChannelRange *NONNULL_PTR a, const struct LDKReplyChannelRange *NONNULL_PTR b);
8665         public static native boolean ReplyChannelRange_eq(long a, long b);
8666         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
8667         public static native void QueryShortChannelIds_free(long this_obj);
8668         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
8669         public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
8670         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8671         public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
8672         // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr);
8673         public static native long[] QueryShortChannelIds_get_short_channel_ids(long this_ptr);
8674         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
8675         public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
8676         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
8677         public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
8678         // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
8679         public static native long QueryShortChannelIds_clone_ptr(long arg);
8680         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
8681         public static native long QueryShortChannelIds_clone(long orig);
8682         // bool QueryShortChannelIds_eq(const struct LDKQueryShortChannelIds *NONNULL_PTR a, const struct LDKQueryShortChannelIds *NONNULL_PTR b);
8683         public static native boolean QueryShortChannelIds_eq(long a, long b);
8684         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
8685         public static native void ReplyShortChannelIdsEnd_free(long this_obj);
8686         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
8687         public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
8688         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8689         public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
8690         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
8691         public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
8692         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
8693         public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
8694         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
8695         public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
8696         // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
8697         public static native long ReplyShortChannelIdsEnd_clone_ptr(long arg);
8698         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
8699         public static native long ReplyShortChannelIdsEnd_clone(long orig);
8700         // bool ReplyShortChannelIdsEnd_eq(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR a, const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR b);
8701         public static native boolean ReplyShortChannelIdsEnd_eq(long a, long b);
8702         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
8703         public static native void GossipTimestampFilter_free(long this_obj);
8704         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
8705         public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
8706         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8707         public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
8708         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
8709         public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
8710         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
8711         public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
8712         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
8713         public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
8714         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
8715         public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
8716         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
8717         public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
8718         // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
8719         public static native long GossipTimestampFilter_clone_ptr(long arg);
8720         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
8721         public static native long GossipTimestampFilter_clone(long orig);
8722         // bool GossipTimestampFilter_eq(const struct LDKGossipTimestampFilter *NONNULL_PTR a, const struct LDKGossipTimestampFilter *NONNULL_PTR b);
8723         public static native boolean GossipTimestampFilter_eq(long a, long b);
8724         // void ErrorAction_free(struct LDKErrorAction this_ptr);
8725         public static native void ErrorAction_free(long this_ptr);
8726         // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
8727         public static native long ErrorAction_clone_ptr(long arg);
8728         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
8729         public static native long ErrorAction_clone(long orig);
8730         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
8731         public static native long ErrorAction_disconnect_peer(long msg);
8732         // struct LDKErrorAction ErrorAction_disconnect_peer_with_warning(struct LDKWarningMessage msg);
8733         public static native long ErrorAction_disconnect_peer_with_warning(long msg);
8734         // struct LDKErrorAction ErrorAction_ignore_error(void);
8735         public static native long ErrorAction_ignore_error();
8736         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
8737         public static native long ErrorAction_ignore_and_log(Level a);
8738         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
8739         public static native long ErrorAction_ignore_duplicate_gossip();
8740         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
8741         public static native long ErrorAction_send_error_message(long msg);
8742         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
8743         public static native long ErrorAction_send_warning_message(long msg, Level log_level);
8744         // void LightningError_free(struct LDKLightningError this_obj);
8745         public static native void LightningError_free(long this_obj);
8746         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
8747         public static native String LightningError_get_err(long this_ptr);
8748         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
8749         public static native void LightningError_set_err(long this_ptr, String val);
8750         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
8751         public static native long LightningError_get_action(long this_ptr);
8752         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
8753         public static native void LightningError_set_action(long this_ptr, long val);
8754         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
8755         public static native long LightningError_new(String err_arg, long action_arg);
8756         // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
8757         public static native long LightningError_clone_ptr(long arg);
8758         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
8759         public static native long LightningError_clone(long orig);
8760         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
8761         public static native void CommitmentUpdate_free(long this_obj);
8762         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8763         public static native long[] CommitmentUpdate_get_update_add_htlcs(long this_ptr);
8764         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
8765         public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
8766         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8767         public static native long[] CommitmentUpdate_get_update_fulfill_htlcs(long this_ptr);
8768         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
8769         public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
8770         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8771         public static native long[] CommitmentUpdate_get_update_fail_htlcs(long this_ptr);
8772         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
8773         public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
8774         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8775         public static native long[] CommitmentUpdate_get_update_fail_malformed_htlcs(long this_ptr);
8776         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
8777         public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
8778         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8779         public static native long CommitmentUpdate_get_update_fee(long this_ptr);
8780         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
8781         public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
8782         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8783         public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
8784         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
8785         public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
8786         // 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);
8787         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);
8788         // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
8789         public static native long CommitmentUpdate_clone_ptr(long arg);
8790         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
8791         public static native long CommitmentUpdate_clone(long orig);
8792         // bool CommitmentUpdate_eq(const struct LDKCommitmentUpdate *NONNULL_PTR a, const struct LDKCommitmentUpdate *NONNULL_PTR b);
8793         public static native boolean CommitmentUpdate_eq(long a, long b);
8794         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
8795         public static native void ChannelMessageHandler_free(long this_ptr);
8796         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
8797         public static native void RoutingMessageHandler_free(long this_ptr);
8798         // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr);
8799         public static native void OnionMessageHandler_free(long this_ptr);
8800         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
8801         public static native byte[] AcceptChannel_write(long obj);
8802         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
8803         public static native long AcceptChannel_read(byte[] ser);
8804         // struct LDKCVec_u8Z AcceptChannelV2_write(const struct LDKAcceptChannelV2 *NONNULL_PTR obj);
8805         public static native byte[] AcceptChannelV2_write(long obj);
8806         // struct LDKCResult_AcceptChannelV2DecodeErrorZ AcceptChannelV2_read(struct LDKu8slice ser);
8807         public static native long AcceptChannelV2_read(byte[] ser);
8808         // struct LDKCVec_u8Z TxAddInput_write(const struct LDKTxAddInput *NONNULL_PTR obj);
8809         public static native byte[] TxAddInput_write(long obj);
8810         // struct LDKCResult_TxAddInputDecodeErrorZ TxAddInput_read(struct LDKu8slice ser);
8811         public static native long TxAddInput_read(byte[] ser);
8812         // struct LDKCVec_u8Z TxAddOutput_write(const struct LDKTxAddOutput *NONNULL_PTR obj);
8813         public static native byte[] TxAddOutput_write(long obj);
8814         // struct LDKCResult_TxAddOutputDecodeErrorZ TxAddOutput_read(struct LDKu8slice ser);
8815         public static native long TxAddOutput_read(byte[] ser);
8816         // struct LDKCVec_u8Z TxRemoveInput_write(const struct LDKTxRemoveInput *NONNULL_PTR obj);
8817         public static native byte[] TxRemoveInput_write(long obj);
8818         // struct LDKCResult_TxRemoveInputDecodeErrorZ TxRemoveInput_read(struct LDKu8slice ser);
8819         public static native long TxRemoveInput_read(byte[] ser);
8820         // struct LDKCVec_u8Z TxRemoveOutput_write(const struct LDKTxRemoveOutput *NONNULL_PTR obj);
8821         public static native byte[] TxRemoveOutput_write(long obj);
8822         // struct LDKCResult_TxRemoveOutputDecodeErrorZ TxRemoveOutput_read(struct LDKu8slice ser);
8823         public static native long TxRemoveOutput_read(byte[] ser);
8824         // struct LDKCVec_u8Z TxComplete_write(const struct LDKTxComplete *NONNULL_PTR obj);
8825         public static native byte[] TxComplete_write(long obj);
8826         // struct LDKCResult_TxCompleteDecodeErrorZ TxComplete_read(struct LDKu8slice ser);
8827         public static native long TxComplete_read(byte[] ser);
8828         // struct LDKCVec_u8Z TxSignatures_write(const struct LDKTxSignatures *NONNULL_PTR obj);
8829         public static native byte[] TxSignatures_write(long obj);
8830         // struct LDKCResult_TxSignaturesDecodeErrorZ TxSignatures_read(struct LDKu8slice ser);
8831         public static native long TxSignatures_read(byte[] ser);
8832         // struct LDKCVec_u8Z TxInitRbf_write(const struct LDKTxInitRbf *NONNULL_PTR obj);
8833         public static native byte[] TxInitRbf_write(long obj);
8834         // struct LDKCResult_TxInitRbfDecodeErrorZ TxInitRbf_read(struct LDKu8slice ser);
8835         public static native long TxInitRbf_read(byte[] ser);
8836         // struct LDKCVec_u8Z TxAckRbf_write(const struct LDKTxAckRbf *NONNULL_PTR obj);
8837         public static native byte[] TxAckRbf_write(long obj);
8838         // struct LDKCResult_TxAckRbfDecodeErrorZ TxAckRbf_read(struct LDKu8slice ser);
8839         public static native long TxAckRbf_read(byte[] ser);
8840         // struct LDKCVec_u8Z TxAbort_write(const struct LDKTxAbort *NONNULL_PTR obj);
8841         public static native byte[] TxAbort_write(long obj);
8842         // struct LDKCResult_TxAbortDecodeErrorZ TxAbort_read(struct LDKu8slice ser);
8843         public static native long TxAbort_read(byte[] ser);
8844         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
8845         public static native byte[] AnnouncementSignatures_write(long obj);
8846         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
8847         public static native long AnnouncementSignatures_read(byte[] ser);
8848         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
8849         public static native byte[] ChannelReestablish_write(long obj);
8850         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
8851         public static native long ChannelReestablish_read(byte[] ser);
8852         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
8853         public static native byte[] ClosingSigned_write(long obj);
8854         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
8855         public static native long ClosingSigned_read(byte[] ser);
8856         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
8857         public static native byte[] ClosingSignedFeeRange_write(long obj);
8858         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
8859         public static native long ClosingSignedFeeRange_read(byte[] ser);
8860         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
8861         public static native byte[] CommitmentSigned_write(long obj);
8862         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
8863         public static native long CommitmentSigned_read(byte[] ser);
8864         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
8865         public static native byte[] FundingCreated_write(long obj);
8866         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
8867         public static native long FundingCreated_read(byte[] ser);
8868         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
8869         public static native byte[] FundingSigned_write(long obj);
8870         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
8871         public static native long FundingSigned_read(byte[] ser);
8872         // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
8873         public static native byte[] ChannelReady_write(long obj);
8874         // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
8875         public static native long ChannelReady_read(byte[] ser);
8876         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
8877         public static native byte[] Init_write(long obj);
8878         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
8879         public static native long Init_read(byte[] ser);
8880         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
8881         public static native byte[] OpenChannel_write(long obj);
8882         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
8883         public static native long OpenChannel_read(byte[] ser);
8884         // struct LDKCVec_u8Z OpenChannelV2_write(const struct LDKOpenChannelV2 *NONNULL_PTR obj);
8885         public static native byte[] OpenChannelV2_write(long obj);
8886         // struct LDKCResult_OpenChannelV2DecodeErrorZ OpenChannelV2_read(struct LDKu8slice ser);
8887         public static native long OpenChannelV2_read(byte[] ser);
8888         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
8889         public static native byte[] RevokeAndACK_write(long obj);
8890         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
8891         public static native long RevokeAndACK_read(byte[] ser);
8892         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
8893         public static native byte[] Shutdown_write(long obj);
8894         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
8895         public static native long Shutdown_read(byte[] ser);
8896         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
8897         public static native byte[] UpdateFailHTLC_write(long obj);
8898         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
8899         public static native long UpdateFailHTLC_read(byte[] ser);
8900         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
8901         public static native byte[] UpdateFailMalformedHTLC_write(long obj);
8902         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
8903         public static native long UpdateFailMalformedHTLC_read(byte[] ser);
8904         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
8905         public static native byte[] UpdateFee_write(long obj);
8906         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
8907         public static native long UpdateFee_read(byte[] ser);
8908         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
8909         public static native byte[] UpdateFulfillHTLC_write(long obj);
8910         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
8911         public static native long UpdateFulfillHTLC_read(byte[] ser);
8912         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
8913         public static native byte[] UpdateAddHTLC_write(long obj);
8914         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
8915         public static native long UpdateAddHTLC_read(byte[] ser);
8916         // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser);
8917         public static native long OnionMessage_read(byte[] ser);
8918         // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj);
8919         public static native byte[] OnionMessage_write(long obj);
8920         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
8921         public static native byte[] Ping_write(long obj);
8922         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
8923         public static native long Ping_read(byte[] ser);
8924         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
8925         public static native byte[] Pong_write(long obj);
8926         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
8927         public static native long Pong_read(byte[] ser);
8928         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
8929         public static native byte[] UnsignedChannelAnnouncement_write(long obj);
8930         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
8931         public static native long UnsignedChannelAnnouncement_read(byte[] ser);
8932         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
8933         public static native byte[] ChannelAnnouncement_write(long obj);
8934         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
8935         public static native long ChannelAnnouncement_read(byte[] ser);
8936         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
8937         public static native byte[] UnsignedChannelUpdate_write(long obj);
8938         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
8939         public static native long UnsignedChannelUpdate_read(byte[] ser);
8940         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
8941         public static native byte[] ChannelUpdate_write(long obj);
8942         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
8943         public static native long ChannelUpdate_read(byte[] ser);
8944         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
8945         public static native byte[] ErrorMessage_write(long obj);
8946         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
8947         public static native long ErrorMessage_read(byte[] ser);
8948         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
8949         public static native byte[] WarningMessage_write(long obj);
8950         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
8951         public static native long WarningMessage_read(byte[] ser);
8952         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
8953         public static native byte[] UnsignedNodeAnnouncement_write(long obj);
8954         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
8955         public static native long UnsignedNodeAnnouncement_read(byte[] ser);
8956         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
8957         public static native byte[] NodeAnnouncement_write(long obj);
8958         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
8959         public static native long NodeAnnouncement_read(byte[] ser);
8960         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
8961         public static native long QueryShortChannelIds_read(byte[] ser);
8962         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
8963         public static native byte[] QueryShortChannelIds_write(long obj);
8964         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
8965         public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
8966         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
8967         public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
8968         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
8969         public static native int QueryChannelRange_end_blocknum(long this_arg);
8970         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
8971         public static native byte[] QueryChannelRange_write(long obj);
8972         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
8973         public static native long QueryChannelRange_read(byte[] ser);
8974         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
8975         public static native long ReplyChannelRange_read(byte[] ser);
8976         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
8977         public static native byte[] ReplyChannelRange_write(long obj);
8978         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
8979         public static native byte[] GossipTimestampFilter_write(long obj);
8980         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
8981         public static native long GossipTimestampFilter_read(byte[] ser);
8982         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
8983         public static native void CustomMessageHandler_free(long this_ptr);
8984         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
8985         public static native void IgnoringMessageHandler_free(long this_obj);
8986         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
8987         public static native long IgnoringMessageHandler_new();
8988         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8989         public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
8990         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8991         public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
8992         // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8993         public static native long IgnoringMessageHandler_as_OnionMessageHandler(long this_arg);
8994         // struct LDKOffersMessageHandler IgnoringMessageHandler_as_OffersMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8995         public static native long IgnoringMessageHandler_as_OffersMessageHandler(long this_arg);
8996         // struct LDKCustomOnionMessageHandler IgnoringMessageHandler_as_CustomOnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8997         public static native long IgnoringMessageHandler_as_CustomOnionMessageHandler(long this_arg);
8998         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8999         public static native long IgnoringMessageHandler_as_CustomMessageReader(long this_arg);
9000         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9001         public static native long IgnoringMessageHandler_as_CustomMessageHandler(long this_arg);
9002         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
9003         public static native void ErroringMessageHandler_free(long this_obj);
9004         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
9005         public static native long ErroringMessageHandler_new();
9006         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
9007         public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
9008         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
9009         public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
9010         // void MessageHandler_free(struct LDKMessageHandler this_obj);
9011         public static native void MessageHandler_free(long this_obj);
9012         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9013         public static native long MessageHandler_get_chan_handler(long this_ptr);
9014         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
9015         public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
9016         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9017         public static native long MessageHandler_get_route_handler(long this_ptr);
9018         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
9019         public static native void MessageHandler_set_route_handler(long this_ptr, long val);
9020         // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9021         public static native long MessageHandler_get_onion_message_handler(long this_ptr);
9022         // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val);
9023         public static native void MessageHandler_set_onion_message_handler(long this_ptr, long val);
9024         // const struct LDKCustomMessageHandler *MessageHandler_get_custom_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9025         public static native long MessageHandler_get_custom_message_handler(long this_ptr);
9026         // void MessageHandler_set_custom_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKCustomMessageHandler val);
9027         public static native void MessageHandler_set_custom_message_handler(long this_ptr, long val);
9028         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg, struct LDKOnionMessageHandler onion_message_handler_arg, struct LDKCustomMessageHandler custom_message_handler_arg);
9029         public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg, long onion_message_handler_arg, long custom_message_handler_arg);
9030         // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
9031         public static native long SocketDescriptor_clone_ptr(long arg);
9032         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
9033         public static native long SocketDescriptor_clone(long orig);
9034         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
9035         public static native void SocketDescriptor_free(long this_ptr);
9036         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
9037         public static native void PeerHandleError_free(long this_obj);
9038         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(void);
9039         public static native long PeerHandleError_new();
9040         // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
9041         public static native long PeerHandleError_clone_ptr(long arg);
9042         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
9043         public static native long PeerHandleError_clone(long orig);
9044         // void PeerManager_free(struct LDKPeerManager this_obj);
9045         public static native void PeerManager_free(long this_obj);
9046         // MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler message_handler, uint32_t current_time, const uint8_t (*ephemeral_random_data)[32], struct LDKLogger logger, struct LDKNodeSigner node_signer);
9047         public static native long PeerManager_new(long message_handler, int current_time, byte[] ephemeral_random_data, long logger, long node_signer);
9048         // MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
9049         public static native long[] PeerManager_get_peer_node_ids(long this_arg);
9050         // 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_SocketAddressZ remote_network_address);
9051         public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor, long remote_network_address);
9052         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address);
9053         public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor, long remote_network_address);
9054         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
9055         public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
9056         // 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);
9057         public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
9058         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
9059         public static native void PeerManager_process_events(long this_arg);
9060         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
9061         public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
9062         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
9063         public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id);
9064         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
9065         public static native void PeerManager_disconnect_all_peers(long this_arg);
9066         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
9067         public static native void PeerManager_timer_tick_occurred(long this_arg);
9068         // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_SocketAddressZ addresses);
9069         public static native void PeerManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
9070         // uint64_t htlc_success_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
9071         public static native long htlc_success_tx_weight(long channel_type_features);
9072         // uint64_t htlc_timeout_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
9073         public static native long htlc_timeout_tx_weight(long channel_type_features);
9074         // enum LDKHTLCClaim HTLCClaim_clone(const enum LDKHTLCClaim *NONNULL_PTR orig);
9075         public static native HTLCClaim HTLCClaim_clone(long orig);
9076         // enum LDKHTLCClaim HTLCClaim_offered_timeout(void);
9077         public static native HTLCClaim HTLCClaim_offered_timeout();
9078         // enum LDKHTLCClaim HTLCClaim_offered_preimage(void);
9079         public static native HTLCClaim HTLCClaim_offered_preimage();
9080         // enum LDKHTLCClaim HTLCClaim_accepted_timeout(void);
9081         public static native HTLCClaim HTLCClaim_accepted_timeout();
9082         // enum LDKHTLCClaim HTLCClaim_accepted_preimage(void);
9083         public static native HTLCClaim HTLCClaim_accepted_preimage();
9084         // enum LDKHTLCClaim HTLCClaim_revocation(void);
9085         public static native HTLCClaim HTLCClaim_revocation();
9086         // bool HTLCClaim_eq(const enum LDKHTLCClaim *NONNULL_PTR a, const enum LDKHTLCClaim *NONNULL_PTR b);
9087         public static native boolean HTLCClaim_eq(long a, long b);
9088         // MUST_USE_RES struct LDKCOption_HTLCClaimZ HTLCClaim_from_witness(struct LDKWitness witness);
9089         public static native long HTLCClaim_from_witness(byte[] witness);
9090         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
9091         public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
9092         // 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);
9093         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);
9094         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
9095         public static native void CounterpartyCommitmentSecrets_free(long this_obj);
9096         // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
9097         public static native long CounterpartyCommitmentSecrets_clone_ptr(long arg);
9098         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
9099         public static native long CounterpartyCommitmentSecrets_clone(long orig);
9100         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
9101         public static native long CounterpartyCommitmentSecrets_new();
9102         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
9103         public static native long CounterpartyCommitmentSecrets_get_min_seen_secret(long this_arg);
9104         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
9105         public static native long CounterpartyCommitmentSecrets_provide_secret(long this_arg, long idx, byte[] secret);
9106         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
9107         public static native byte[] CounterpartyCommitmentSecrets_get_secret(long this_arg, long idx);
9108         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
9109         public static native byte[] CounterpartyCommitmentSecrets_write(long obj);
9110         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
9111         public static native long CounterpartyCommitmentSecrets_read(byte[] ser);
9112         // struct LDKSecretKey derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
9113         public static native byte[] derive_private_key(byte[] per_commitment_point, byte[] base_secret);
9114         // struct LDKPublicKey derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
9115         public static native byte[] derive_public_key(byte[] per_commitment_point, byte[] base_point);
9116         // struct LDKSecretKey derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
9117         public static native byte[] derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
9118         // struct LDKPublicKey derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
9119         public static native byte[] derive_public_revocation_key(byte[] per_commitment_point, byte[] countersignatory_revocation_base_point);
9120         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
9121         public static native void TxCreationKeys_free(long this_obj);
9122         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
9123         public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
9124         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9125         public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
9126         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
9127         public static native byte[] TxCreationKeys_get_revocation_key(long this_ptr);
9128         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9129         public static native void TxCreationKeys_set_revocation_key(long this_ptr, byte[] val);
9130         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
9131         public static native byte[] TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
9132         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9133         public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, byte[] val);
9134         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
9135         public static native byte[] TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
9136         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9137         public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, byte[] val);
9138         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
9139         public static native byte[] TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
9140         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9141         public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, byte[] val);
9142         // 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);
9143         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);
9144         // bool TxCreationKeys_eq(const struct LDKTxCreationKeys *NONNULL_PTR a, const struct LDKTxCreationKeys *NONNULL_PTR b);
9145         public static native boolean TxCreationKeys_eq(long a, long b);
9146         // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
9147         public static native long TxCreationKeys_clone_ptr(long arg);
9148         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
9149         public static native long TxCreationKeys_clone(long orig);
9150         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
9151         public static native byte[] TxCreationKeys_write(long obj);
9152         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
9153         public static native long TxCreationKeys_read(byte[] ser);
9154         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
9155         public static native void ChannelPublicKeys_free(long this_obj);
9156         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
9157         public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
9158         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9159         public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
9160         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
9161         public static native byte[] ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
9162         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9163         public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, byte[] val);
9164         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
9165         public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
9166         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9167         public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
9168         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
9169         public static native byte[] ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
9170         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9171         public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, byte[] val);
9172         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
9173         public static native byte[] ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
9174         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9175         public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, byte[] val);
9176         // 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);
9177         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);
9178         // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
9179         public static native long ChannelPublicKeys_clone_ptr(long arg);
9180         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
9181         public static native long ChannelPublicKeys_clone(long orig);
9182         // uint64_t ChannelPublicKeys_hash(const struct LDKChannelPublicKeys *NONNULL_PTR o);
9183         public static native long ChannelPublicKeys_hash(long o);
9184         // bool ChannelPublicKeys_eq(const struct LDKChannelPublicKeys *NONNULL_PTR a, const struct LDKChannelPublicKeys *NONNULL_PTR b);
9185         public static native boolean ChannelPublicKeys_eq(long a, long b);
9186         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
9187         public static native byte[] ChannelPublicKeys_write(long obj);
9188         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
9189         public static native long ChannelPublicKeys_read(byte[] ser);
9190         // MUST_USE_RES struct LDKTxCreationKeys 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);
9191         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);
9192         // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_from_channel_static_keys(struct LDKPublicKey per_commitment_point, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
9193         public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
9194         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
9195         public static native byte[] get_revokeable_redeemscript(byte[] revocation_key, short contest_delay, byte[] broadcaster_delayed_payment_key);
9196         // struct LDKCVec_u8Z get_counterparty_payment_script(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, struct LDKPublicKey payment_key);
9197         public static native byte[] get_counterparty_payment_script(long channel_type_features, byte[] payment_key);
9198         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
9199         public static native void HTLCOutputInCommitment_free(long this_obj);
9200         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
9201         public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
9202         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
9203         public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
9204         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
9205         public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
9206         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
9207         public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
9208         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
9209         public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
9210         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
9211         public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
9212         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
9213         public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
9214         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9215         public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
9216         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
9217         public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);
9218         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
9219         public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);
9220         // 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);
9221         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);
9222         // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
9223         public static native long HTLCOutputInCommitment_clone_ptr(long arg);
9224         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
9225         public static native long HTLCOutputInCommitment_clone(long orig);
9226         // bool HTLCOutputInCommitment_eq(const struct LDKHTLCOutputInCommitment *NONNULL_PTR a, const struct LDKHTLCOutputInCommitment *NONNULL_PTR b);
9227         public static native boolean HTLCOutputInCommitment_eq(long a, long b);
9228         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
9229         public static native byte[] HTLCOutputInCommitment_write(long obj);
9230         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
9231         public static native long HTLCOutputInCommitment_read(byte[] ser);
9232         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, const struct LDKTxCreationKeys *NONNULL_PTR keys);
9233         public static native byte[] get_htlc_redeemscript(long htlc, long channel_type_features, long keys);
9234         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
9235         public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
9236         // 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, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, struct LDKPublicKey broadcaster_delayed_payment_key, struct LDKPublicKey revocation_key);
9237         public static native byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_per_kw, short contest_delay, long htlc, long channel_type_features, byte[] broadcaster_delayed_payment_key, byte[] revocation_key);
9238         // struct LDKWitness build_htlc_input_witness(struct LDKECDSASignature local_sig, struct LDKECDSASignature remote_sig, struct LDKCOption_ThirtyTwoBytesZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
9239         public static native byte[] build_htlc_input_witness(byte[] local_sig, byte[] remote_sig, long preimage, byte[] redeem_script, long channel_type_features);
9240         // struct LDKCVec_u8Z get_to_countersignatory_with_anchors_redeemscript(struct LDKPublicKey payment_point);
9241         public static native byte[] get_to_countersignatory_with_anchors_redeemscript(byte[] payment_point);
9242         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
9243         public static native byte[] get_anchor_redeemscript(byte[] funding_pubkey);
9244         // struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKECDSASignature funding_sig);
9245         public static native byte[] build_anchor_input_witness(byte[] funding_key, byte[] funding_sig);
9246         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
9247         public static native void ChannelTransactionParameters_free(long this_obj);
9248         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
9249         public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
9250         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
9251         public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
9252         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
9253         public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
9254         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
9255         public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
9256         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
9257         public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
9258         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
9259         public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
9260         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
9261         public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
9262         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
9263         public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
9264         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
9265         public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
9266         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
9267         public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
9268         // struct LDKChannelTypeFeatures ChannelTransactionParameters_get_channel_type_features(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
9269         public static native long ChannelTransactionParameters_get_channel_type_features(long this_ptr);
9270         // void ChannelTransactionParameters_set_channel_type_features(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
9271         public static native void ChannelTransactionParameters_set_channel_type_features(long this_ptr, long val);
9272         // 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, struct LDKChannelTypeFeatures channel_type_features_arg);
9273         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, long channel_type_features_arg);
9274         // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
9275         public static native long ChannelTransactionParameters_clone_ptr(long arg);
9276         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
9277         public static native long ChannelTransactionParameters_clone(long orig);
9278         // uint64_t ChannelTransactionParameters_hash(const struct LDKChannelTransactionParameters *NONNULL_PTR o);
9279         public static native long ChannelTransactionParameters_hash(long o);
9280         // bool ChannelTransactionParameters_eq(const struct LDKChannelTransactionParameters *NONNULL_PTR a, const struct LDKChannelTransactionParameters *NONNULL_PTR b);
9281         public static native boolean ChannelTransactionParameters_eq(long a, long b);
9282         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
9283         public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
9284         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
9285         public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
9286         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
9287         public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
9288         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
9289         public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
9290         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
9291         public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
9292         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
9293         public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
9294         // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
9295         public static native long CounterpartyChannelTransactionParameters_clone_ptr(long arg);
9296         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
9297         public static native long CounterpartyChannelTransactionParameters_clone(long orig);
9298         // uint64_t CounterpartyChannelTransactionParameters_hash(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR o);
9299         public static native long CounterpartyChannelTransactionParameters_hash(long o);
9300         // bool CounterpartyChannelTransactionParameters_eq(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR a, const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR b);
9301         public static native boolean CounterpartyChannelTransactionParameters_eq(long a, long b);
9302         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
9303         public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
9304         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
9305         public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
9306         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
9307         public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
9308         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
9309         public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
9310         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
9311         public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
9312         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
9313         public static native byte[] ChannelTransactionParameters_write(long obj);
9314         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
9315         public static native long ChannelTransactionParameters_read(byte[] ser);
9316         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
9317         public static native void DirectedChannelTransactionParameters_free(long this_obj);
9318         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
9319         public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
9320         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
9321         public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
9322         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
9323         public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
9324         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
9325         public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
9326         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
9327         public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
9328         // MUST_USE_RES struct LDKChannelTypeFeatures DirectedChannelTransactionParameters_channel_type_features(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
9329         public static native long DirectedChannelTransactionParameters_channel_type_features(long this_arg);
9330         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
9331         public static native void HolderCommitmentTransaction_free(long this_obj);
9332         // struct LDKECDSASignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
9333         public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
9334         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9335         public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
9336         // struct LDKCVec_ECDSASignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
9337         public static native byte[][] HolderCommitmentTransaction_get_counterparty_htlc_sigs(long this_ptr);
9338         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val);
9339         public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
9340         // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
9341         public static native long HolderCommitmentTransaction_clone_ptr(long arg);
9342         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
9343         public static native long HolderCommitmentTransaction_clone(long orig);
9344         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
9345         public static native byte[] HolderCommitmentTransaction_write(long obj);
9346         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
9347         public static native long HolderCommitmentTransaction_read(byte[] ser);
9348         // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKECDSASignature counterparty_sig, struct LDKCVec_ECDSASignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
9349         public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
9350         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
9351         public static native void BuiltCommitmentTransaction_free(long this_obj);
9352         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
9353         public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
9354         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
9355         public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
9356         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
9357         public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
9358         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9359         public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
9360         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
9361         public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
9362         // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
9363         public static native long BuiltCommitmentTransaction_clone_ptr(long arg);
9364         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
9365         public static native long BuiltCommitmentTransaction_clone(long orig);
9366         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
9367         public static native byte[] BuiltCommitmentTransaction_write(long obj);
9368         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
9369         public static native long BuiltCommitmentTransaction_read(byte[] ser);
9370         // 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);
9371         public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
9372         // MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
9373         public static native byte[] BuiltCommitmentTransaction_sign_counterparty_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
9374         // MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source);
9375         public static native byte[] BuiltCommitmentTransaction_sign_holder_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis, long entropy_source);
9376         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
9377         public static native void ClosingTransaction_free(long this_obj);
9378         // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
9379         public static native long ClosingTransaction_clone_ptr(long arg);
9380         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
9381         public static native long ClosingTransaction_clone(long orig);
9382         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
9383         public static native long ClosingTransaction_hash(long o);
9384         // bool ClosingTransaction_eq(const struct LDKClosingTransaction *NONNULL_PTR a, const struct LDKClosingTransaction *NONNULL_PTR b);
9385         public static native boolean ClosingTransaction_eq(long a, long b);
9386         // 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);
9387         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);
9388         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
9389         public static native long ClosingTransaction_trust(long this_arg);
9390         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
9391         public static native long ClosingTransaction_verify(long this_arg, long funding_outpoint);
9392         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
9393         public static native long ClosingTransaction_to_holder_value_sat(long this_arg);
9394         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
9395         public static native long ClosingTransaction_to_counterparty_value_sat(long this_arg);
9396         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
9397         public static native byte[] ClosingTransaction_to_holder_script(long this_arg);
9398         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
9399         public static native byte[] ClosingTransaction_to_counterparty_script(long this_arg);
9400         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
9401         public static native void TrustedClosingTransaction_free(long this_obj);
9402         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
9403         public static native byte[] TrustedClosingTransaction_built_transaction(long this_arg);
9404         // 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);
9405         public static native byte[] TrustedClosingTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
9406         // MUST_USE_RES struct LDKECDSASignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
9407         public static native byte[] TrustedClosingTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
9408         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
9409         public static native void CommitmentTransaction_free(long this_obj);
9410         // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
9411         public static native long CommitmentTransaction_clone_ptr(long arg);
9412         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
9413         public static native long CommitmentTransaction_clone(long orig);
9414         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
9415         public static native byte[] CommitmentTransaction_write(long obj);
9416         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
9417         public static native long CommitmentTransaction_read(byte[] ser);
9418         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
9419         public static native long CommitmentTransaction_commitment_number(long this_arg);
9420         // MUST_USE_RES struct LDKPublicKey CommitmentTransaction_per_commitment_point(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
9421         public static native byte[] CommitmentTransaction_per_commitment_point(long this_arg);
9422         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
9423         public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
9424         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
9425         public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
9426         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
9427         public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
9428         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
9429         public static native long CommitmentTransaction_trust(long this_arg);
9430         // 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);
9431         public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
9432         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
9433         public static native void TrustedCommitmentTransaction_free(long this_obj);
9434         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
9435         public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
9436         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
9437         public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
9438         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
9439         public static native long TrustedCommitmentTransaction_keys(long this_arg);
9440         // MUST_USE_RES struct LDKChannelTypeFeatures TrustedCommitmentTransaction_channel_type_features(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
9441         public static native long TrustedCommitmentTransaction_channel_type_features(long this_arg);
9442         // MUST_USE_RES struct LDKCResult_CVec_ECDSASignatureZNoneZ 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, const struct LDKEntropySource *NONNULL_PTR entropy_source);
9443         public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters, long entropy_source);
9444         // MUST_USE_RES struct LDKCOption_usizeZ TrustedCommitmentTransaction_revokeable_output_index(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
9445         public static native long TrustedCommitmentTransaction_revokeable_output_index(long this_arg);
9446         // MUST_USE_RES struct LDKCResult_TransactionNoneZ TrustedCommitmentTransaction_build_to_local_justice_tx(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, uint64_t feerate_per_kw, struct LDKCVec_u8Z destination_script);
9447         public static native long TrustedCommitmentTransaction_build_to_local_justice_tx(long this_arg, long feerate_per_kw, byte[] destination_script);
9448         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
9449         public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
9450         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
9451         public static native boolean InitFeatures_eq(long a, long b);
9452         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
9453         public static native boolean NodeFeatures_eq(long a, long b);
9454         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
9455         public static native boolean ChannelFeatures_eq(long a, long b);
9456         // bool Bolt11InvoiceFeatures_eq(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR b);
9457         public static native boolean Bolt11InvoiceFeatures_eq(long a, long b);
9458         // bool OfferFeatures_eq(const struct LDKOfferFeatures *NONNULL_PTR a, const struct LDKOfferFeatures *NONNULL_PTR b);
9459         public static native boolean OfferFeatures_eq(long a, long b);
9460         // bool InvoiceRequestFeatures_eq(const struct LDKInvoiceRequestFeatures *NONNULL_PTR a, const struct LDKInvoiceRequestFeatures *NONNULL_PTR b);
9461         public static native boolean InvoiceRequestFeatures_eq(long a, long b);
9462         // bool Bolt12InvoiceFeatures_eq(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR b);
9463         public static native boolean Bolt12InvoiceFeatures_eq(long a, long b);
9464         // bool BlindedHopFeatures_eq(const struct LDKBlindedHopFeatures *NONNULL_PTR a, const struct LDKBlindedHopFeatures *NONNULL_PTR b);
9465         public static native boolean BlindedHopFeatures_eq(long a, long b);
9466         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
9467         public static native boolean ChannelTypeFeatures_eq(long a, long b);
9468         // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
9469         public static native long InitFeatures_clone_ptr(long arg);
9470         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
9471         public static native long InitFeatures_clone(long orig);
9472         // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
9473         public static native long NodeFeatures_clone_ptr(long arg);
9474         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
9475         public static native long NodeFeatures_clone(long orig);
9476         // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
9477         public static native long ChannelFeatures_clone_ptr(long arg);
9478         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
9479         public static native long ChannelFeatures_clone(long orig);
9480         // uint64_t Bolt11InvoiceFeatures_clone_ptr(LDKBolt11InvoiceFeatures *NONNULL_PTR arg);
9481         public static native long Bolt11InvoiceFeatures_clone_ptr(long arg);
9482         // struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_clone(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR orig);
9483         public static native long Bolt11InvoiceFeatures_clone(long orig);
9484         // uint64_t OfferFeatures_clone_ptr(LDKOfferFeatures *NONNULL_PTR arg);
9485         public static native long OfferFeatures_clone_ptr(long arg);
9486         // struct LDKOfferFeatures OfferFeatures_clone(const struct LDKOfferFeatures *NONNULL_PTR orig);
9487         public static native long OfferFeatures_clone(long orig);
9488         // uint64_t InvoiceRequestFeatures_clone_ptr(LDKInvoiceRequestFeatures *NONNULL_PTR arg);
9489         public static native long InvoiceRequestFeatures_clone_ptr(long arg);
9490         // struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_clone(const struct LDKInvoiceRequestFeatures *NONNULL_PTR orig);
9491         public static native long InvoiceRequestFeatures_clone(long orig);
9492         // uint64_t Bolt12InvoiceFeatures_clone_ptr(LDKBolt12InvoiceFeatures *NONNULL_PTR arg);
9493         public static native long Bolt12InvoiceFeatures_clone_ptr(long arg);
9494         // struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_clone(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR orig);
9495         public static native long Bolt12InvoiceFeatures_clone(long orig);
9496         // uint64_t BlindedHopFeatures_clone_ptr(LDKBlindedHopFeatures *NONNULL_PTR arg);
9497         public static native long BlindedHopFeatures_clone_ptr(long arg);
9498         // struct LDKBlindedHopFeatures BlindedHopFeatures_clone(const struct LDKBlindedHopFeatures *NONNULL_PTR orig);
9499         public static native long BlindedHopFeatures_clone(long orig);
9500         // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
9501         public static native long ChannelTypeFeatures_clone_ptr(long arg);
9502         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
9503         public static native long ChannelTypeFeatures_clone(long orig);
9504         // void InitFeatures_free(struct LDKInitFeatures this_obj);
9505         public static native void InitFeatures_free(long this_obj);
9506         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
9507         public static native void NodeFeatures_free(long this_obj);
9508         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
9509         public static native void ChannelFeatures_free(long this_obj);
9510         // void Bolt11InvoiceFeatures_free(struct LDKBolt11InvoiceFeatures this_obj);
9511         public static native void Bolt11InvoiceFeatures_free(long this_obj);
9512         // void OfferFeatures_free(struct LDKOfferFeatures this_obj);
9513         public static native void OfferFeatures_free(long this_obj);
9514         // void InvoiceRequestFeatures_free(struct LDKInvoiceRequestFeatures this_obj);
9515         public static native void InvoiceRequestFeatures_free(long this_obj);
9516         // void Bolt12InvoiceFeatures_free(struct LDKBolt12InvoiceFeatures this_obj);
9517         public static native void Bolt12InvoiceFeatures_free(long this_obj);
9518         // void BlindedHopFeatures_free(struct LDKBlindedHopFeatures this_obj);
9519         public static native void BlindedHopFeatures_free(long this_obj);
9520         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
9521         public static native void ChannelTypeFeatures_free(long this_obj);
9522         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
9523         public static native long InitFeatures_empty();
9524         // MUST_USE_RES bool InitFeatures_requires_unknown_bits_from(const struct LDKInitFeatures *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR other);
9525         public static native boolean InitFeatures_requires_unknown_bits_from(long this_arg, long other);
9526         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9527         public static native boolean InitFeatures_requires_unknown_bits(long this_arg);
9528         // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9529         public static native long InitFeatures_set_required_feature_bit(long this_arg, long bit);
9530         // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9531         public static native long InitFeatures_set_optional_feature_bit(long this_arg, long bit);
9532         // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9533         public static native long InitFeatures_set_required_custom_bit(long this_arg, long bit);
9534         // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9535         public static native long InitFeatures_set_optional_custom_bit(long this_arg, long bit);
9536         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
9537         public static native long NodeFeatures_empty();
9538         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits_from(const struct LDKNodeFeatures *NONNULL_PTR this_arg, const struct LDKNodeFeatures *NONNULL_PTR other);
9539         public static native boolean NodeFeatures_requires_unknown_bits_from(long this_arg, long other);
9540         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9541         public static native boolean NodeFeatures_requires_unknown_bits(long this_arg);
9542         // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9543         public static native long NodeFeatures_set_required_feature_bit(long this_arg, long bit);
9544         // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9545         public static native long NodeFeatures_set_optional_feature_bit(long this_arg, long bit);
9546         // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9547         public static native long NodeFeatures_set_required_custom_bit(long this_arg, long bit);
9548         // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9549         public static native long NodeFeatures_set_optional_custom_bit(long this_arg, long bit);
9550         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
9551         public static native long ChannelFeatures_empty();
9552         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits_from(const struct LDKChannelFeatures *NONNULL_PTR this_arg, const struct LDKChannelFeatures *NONNULL_PTR other);
9553         public static native boolean ChannelFeatures_requires_unknown_bits_from(long this_arg, long other);
9554         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
9555         public static native boolean ChannelFeatures_requires_unknown_bits(long this_arg);
9556         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9557         public static native long ChannelFeatures_set_required_feature_bit(long this_arg, long bit);
9558         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9559         public static native long ChannelFeatures_set_optional_feature_bit(long this_arg, long bit);
9560         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9561         public static native long ChannelFeatures_set_required_custom_bit(long this_arg, long bit);
9562         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9563         public static native long ChannelFeatures_set_optional_custom_bit(long this_arg, long bit);
9564         // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_empty(void);
9565         public static native long Bolt11InvoiceFeatures_empty();
9566         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR other);
9567         public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
9568         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9569         public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits(long this_arg);
9570         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9571         public static native long Bolt11InvoiceFeatures_set_required_feature_bit(long this_arg, long bit);
9572         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9573         public static native long Bolt11InvoiceFeatures_set_optional_feature_bit(long this_arg, long bit);
9574         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9575         public static native long Bolt11InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
9576         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9577         public static native long Bolt11InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
9578         // MUST_USE_RES struct LDKOfferFeatures OfferFeatures_empty(void);
9579         public static native long OfferFeatures_empty();
9580         // MUST_USE_RES bool OfferFeatures_requires_unknown_bits_from(const struct LDKOfferFeatures *NONNULL_PTR this_arg, const struct LDKOfferFeatures *NONNULL_PTR other);
9581         public static native boolean OfferFeatures_requires_unknown_bits_from(long this_arg, long other);
9582         // MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg);
9583         public static native boolean OfferFeatures_requires_unknown_bits(long this_arg);
9584         // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9585         public static native long OfferFeatures_set_required_feature_bit(long this_arg, long bit);
9586         // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9587         public static native long OfferFeatures_set_optional_feature_bit(long this_arg, long bit);
9588         // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9589         public static native long OfferFeatures_set_required_custom_bit(long this_arg, long bit);
9590         // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9591         public static native long OfferFeatures_set_optional_custom_bit(long this_arg, long bit);
9592         // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_empty(void);
9593         public static native long InvoiceRequestFeatures_empty();
9594         // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits_from(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, const struct LDKInvoiceRequestFeatures *NONNULL_PTR other);
9595         public static native boolean InvoiceRequestFeatures_requires_unknown_bits_from(long this_arg, long other);
9596         // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg);
9597         public static native boolean InvoiceRequestFeatures_requires_unknown_bits(long this_arg);
9598         // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9599         public static native long InvoiceRequestFeatures_set_required_feature_bit(long this_arg, long bit);
9600         // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9601         public static native long InvoiceRequestFeatures_set_optional_feature_bit(long this_arg, long bit);
9602         // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9603         public static native long InvoiceRequestFeatures_set_required_custom_bit(long this_arg, long bit);
9604         // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9605         public static native long InvoiceRequestFeatures_set_optional_custom_bit(long this_arg, long bit);
9606         // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_empty(void);
9607         public static native long Bolt12InvoiceFeatures_empty();
9608         // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR other);
9609         public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
9610         // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9611         public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits(long this_arg);
9612         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9613         public static native long Bolt12InvoiceFeatures_set_required_feature_bit(long this_arg, long bit);
9614         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9615         public static native long Bolt12InvoiceFeatures_set_optional_feature_bit(long this_arg, long bit);
9616         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9617         public static native long Bolt12InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
9618         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9619         public static native long Bolt12InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
9620         // MUST_USE_RES struct LDKBlindedHopFeatures BlindedHopFeatures_empty(void);
9621         public static native long BlindedHopFeatures_empty();
9622         // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits_from(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, const struct LDKBlindedHopFeatures *NONNULL_PTR other);
9623         public static native boolean BlindedHopFeatures_requires_unknown_bits_from(long this_arg, long other);
9624         // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg);
9625         public static native boolean BlindedHopFeatures_requires_unknown_bits(long this_arg);
9626         // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9627         public static native long BlindedHopFeatures_set_required_feature_bit(long this_arg, long bit);
9628         // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9629         public static native long BlindedHopFeatures_set_optional_feature_bit(long this_arg, long bit);
9630         // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9631         public static native long BlindedHopFeatures_set_required_custom_bit(long this_arg, long bit);
9632         // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9633         public static native long BlindedHopFeatures_set_optional_custom_bit(long this_arg, long bit);
9634         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
9635         public static native long ChannelTypeFeatures_empty();
9636         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits_from(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, const struct LDKChannelTypeFeatures *NONNULL_PTR other);
9637         public static native boolean ChannelTypeFeatures_requires_unknown_bits_from(long this_arg, long other);
9638         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9639         public static native boolean ChannelTypeFeatures_requires_unknown_bits(long this_arg);
9640         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9641         public static native long ChannelTypeFeatures_set_required_feature_bit(long this_arg, long bit);
9642         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9643         public static native long ChannelTypeFeatures_set_optional_feature_bit(long this_arg, long bit);
9644         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9645         public static native long ChannelTypeFeatures_set_required_custom_bit(long this_arg, long bit);
9646         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9647         public static native long ChannelTypeFeatures_set_optional_custom_bit(long this_arg, long bit);
9648         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
9649         public static native byte[] InitFeatures_write(long obj);
9650         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
9651         public static native long InitFeatures_read(byte[] ser);
9652         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
9653         public static native byte[] ChannelFeatures_write(long obj);
9654         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
9655         public static native long ChannelFeatures_read(byte[] ser);
9656         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
9657         public static native byte[] NodeFeatures_write(long obj);
9658         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
9659         public static native long NodeFeatures_read(byte[] ser);
9660         // struct LDKCVec_u8Z Bolt11InvoiceFeatures_write(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR obj);
9661         public static native byte[] Bolt11InvoiceFeatures_write(long obj);
9662         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ Bolt11InvoiceFeatures_read(struct LDKu8slice ser);
9663         public static native long Bolt11InvoiceFeatures_read(byte[] ser);
9664         // struct LDKCVec_u8Z Bolt12InvoiceFeatures_write(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR obj);
9665         public static native byte[] Bolt12InvoiceFeatures_write(long obj);
9666         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ Bolt12InvoiceFeatures_read(struct LDKu8slice ser);
9667         public static native long Bolt12InvoiceFeatures_read(byte[] ser);
9668         // struct LDKCVec_u8Z BlindedHopFeatures_write(const struct LDKBlindedHopFeatures *NONNULL_PTR obj);
9669         public static native byte[] BlindedHopFeatures_write(long obj);
9670         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ BlindedHopFeatures_read(struct LDKu8slice ser);
9671         public static native long BlindedHopFeatures_read(byte[] ser);
9672         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
9673         public static native byte[] ChannelTypeFeatures_write(long obj);
9674         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
9675         public static native long ChannelTypeFeatures_read(byte[] ser);
9676         // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9677         public static native void InitFeatures_set_data_loss_protect_optional(long this_arg);
9678         // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9679         public static native void InitFeatures_set_data_loss_protect_required(long this_arg);
9680         // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9681         public static native boolean InitFeatures_supports_data_loss_protect(long this_arg);
9682         // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9683         public static native void NodeFeatures_set_data_loss_protect_optional(long this_arg);
9684         // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9685         public static native void NodeFeatures_set_data_loss_protect_required(long this_arg);
9686         // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9687         public static native boolean NodeFeatures_supports_data_loss_protect(long this_arg);
9688         // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9689         public static native boolean InitFeatures_requires_data_loss_protect(long this_arg);
9690         // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9691         public static native boolean NodeFeatures_requires_data_loss_protect(long this_arg);
9692         // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9693         public static native void InitFeatures_set_initial_routing_sync_optional(long this_arg);
9694         // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9695         public static native void InitFeatures_set_initial_routing_sync_required(long this_arg);
9696         // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9697         public static native boolean InitFeatures_initial_routing_sync(long this_arg);
9698         // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9699         public static native void InitFeatures_set_upfront_shutdown_script_optional(long this_arg);
9700         // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9701         public static native void InitFeatures_set_upfront_shutdown_script_required(long this_arg);
9702         // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9703         public static native boolean InitFeatures_supports_upfront_shutdown_script(long this_arg);
9704         // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9705         public static native void NodeFeatures_set_upfront_shutdown_script_optional(long this_arg);
9706         // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9707         public static native void NodeFeatures_set_upfront_shutdown_script_required(long this_arg);
9708         // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9709         public static native boolean NodeFeatures_supports_upfront_shutdown_script(long this_arg);
9710         // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9711         public static native boolean InitFeatures_requires_upfront_shutdown_script(long this_arg);
9712         // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9713         public static native boolean NodeFeatures_requires_upfront_shutdown_script(long this_arg);
9714         // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9715         public static native void InitFeatures_set_gossip_queries_optional(long this_arg);
9716         // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9717         public static native void InitFeatures_set_gossip_queries_required(long this_arg);
9718         // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9719         public static native boolean InitFeatures_supports_gossip_queries(long this_arg);
9720         // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9721         public static native void NodeFeatures_set_gossip_queries_optional(long this_arg);
9722         // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9723         public static native void NodeFeatures_set_gossip_queries_required(long this_arg);
9724         // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9725         public static native boolean NodeFeatures_supports_gossip_queries(long this_arg);
9726         // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9727         public static native boolean InitFeatures_requires_gossip_queries(long this_arg);
9728         // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9729         public static native boolean NodeFeatures_requires_gossip_queries(long this_arg);
9730         // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9731         public static native void InitFeatures_set_variable_length_onion_optional(long this_arg);
9732         // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9733         public static native void InitFeatures_set_variable_length_onion_required(long this_arg);
9734         // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9735         public static native boolean InitFeatures_supports_variable_length_onion(long this_arg);
9736         // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9737         public static native void NodeFeatures_set_variable_length_onion_optional(long this_arg);
9738         // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9739         public static native void NodeFeatures_set_variable_length_onion_required(long this_arg);
9740         // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9741         public static native boolean NodeFeatures_supports_variable_length_onion(long this_arg);
9742         // void Bolt11InvoiceFeatures_set_variable_length_onion_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9743         public static native void Bolt11InvoiceFeatures_set_variable_length_onion_optional(long this_arg);
9744         // void Bolt11InvoiceFeatures_set_variable_length_onion_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9745         public static native void Bolt11InvoiceFeatures_set_variable_length_onion_required(long this_arg);
9746         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9747         public static native boolean Bolt11InvoiceFeatures_supports_variable_length_onion(long this_arg);
9748         // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9749         public static native boolean InitFeatures_requires_variable_length_onion(long this_arg);
9750         // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9751         public static native boolean NodeFeatures_requires_variable_length_onion(long this_arg);
9752         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9753         public static native boolean Bolt11InvoiceFeatures_requires_variable_length_onion(long this_arg);
9754         // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9755         public static native void InitFeatures_set_static_remote_key_optional(long this_arg);
9756         // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9757         public static native void InitFeatures_set_static_remote_key_required(long this_arg);
9758         // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9759         public static native boolean InitFeatures_supports_static_remote_key(long this_arg);
9760         // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9761         public static native void NodeFeatures_set_static_remote_key_optional(long this_arg);
9762         // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9763         public static native void NodeFeatures_set_static_remote_key_required(long this_arg);
9764         // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9765         public static native boolean NodeFeatures_supports_static_remote_key(long this_arg);
9766         // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9767         public static native void ChannelTypeFeatures_set_static_remote_key_optional(long this_arg);
9768         // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9769         public static native void ChannelTypeFeatures_set_static_remote_key_required(long this_arg);
9770         // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9771         public static native boolean ChannelTypeFeatures_supports_static_remote_key(long this_arg);
9772         // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9773         public static native boolean InitFeatures_requires_static_remote_key(long this_arg);
9774         // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9775         public static native boolean NodeFeatures_requires_static_remote_key(long this_arg);
9776         // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9777         public static native boolean ChannelTypeFeatures_requires_static_remote_key(long this_arg);
9778         // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9779         public static native void InitFeatures_set_payment_secret_optional(long this_arg);
9780         // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9781         public static native void InitFeatures_set_payment_secret_required(long this_arg);
9782         // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9783         public static native boolean InitFeatures_supports_payment_secret(long this_arg);
9784         // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9785         public static native void NodeFeatures_set_payment_secret_optional(long this_arg);
9786         // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9787         public static native void NodeFeatures_set_payment_secret_required(long this_arg);
9788         // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9789         public static native boolean NodeFeatures_supports_payment_secret(long this_arg);
9790         // void Bolt11InvoiceFeatures_set_payment_secret_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9791         public static native void Bolt11InvoiceFeatures_set_payment_secret_optional(long this_arg);
9792         // void Bolt11InvoiceFeatures_set_payment_secret_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9793         public static native void Bolt11InvoiceFeatures_set_payment_secret_required(long this_arg);
9794         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9795         public static native boolean Bolt11InvoiceFeatures_supports_payment_secret(long this_arg);
9796         // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9797         public static native boolean InitFeatures_requires_payment_secret(long this_arg);
9798         // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9799         public static native boolean NodeFeatures_requires_payment_secret(long this_arg);
9800         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9801         public static native boolean Bolt11InvoiceFeatures_requires_payment_secret(long this_arg);
9802         // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9803         public static native void InitFeatures_set_basic_mpp_optional(long this_arg);
9804         // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9805         public static native void InitFeatures_set_basic_mpp_required(long this_arg);
9806         // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9807         public static native boolean InitFeatures_supports_basic_mpp(long this_arg);
9808         // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9809         public static native void NodeFeatures_set_basic_mpp_optional(long this_arg);
9810         // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9811         public static native void NodeFeatures_set_basic_mpp_required(long this_arg);
9812         // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9813         public static native boolean NodeFeatures_supports_basic_mpp(long this_arg);
9814         // void Bolt11InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9815         public static native void Bolt11InvoiceFeatures_set_basic_mpp_optional(long this_arg);
9816         // void Bolt11InvoiceFeatures_set_basic_mpp_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9817         public static native void Bolt11InvoiceFeatures_set_basic_mpp_required(long this_arg);
9818         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9819         public static native boolean Bolt11InvoiceFeatures_supports_basic_mpp(long this_arg);
9820         // void Bolt12InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9821         public static native void Bolt12InvoiceFeatures_set_basic_mpp_optional(long this_arg);
9822         // void Bolt12InvoiceFeatures_set_basic_mpp_required(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9823         public static native void Bolt12InvoiceFeatures_set_basic_mpp_required(long this_arg);
9824         // MUST_USE_RES bool Bolt12InvoiceFeatures_supports_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9825         public static native boolean Bolt12InvoiceFeatures_supports_basic_mpp(long this_arg);
9826         // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9827         public static native boolean InitFeatures_requires_basic_mpp(long this_arg);
9828         // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9829         public static native boolean NodeFeatures_requires_basic_mpp(long this_arg);
9830         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9831         public static native boolean Bolt11InvoiceFeatures_requires_basic_mpp(long this_arg);
9832         // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9833         public static native boolean Bolt12InvoiceFeatures_requires_basic_mpp(long this_arg);
9834         // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9835         public static native void InitFeatures_set_wumbo_optional(long this_arg);
9836         // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9837         public static native void InitFeatures_set_wumbo_required(long this_arg);
9838         // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9839         public static native boolean InitFeatures_supports_wumbo(long this_arg);
9840         // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9841         public static native void NodeFeatures_set_wumbo_optional(long this_arg);
9842         // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9843         public static native void NodeFeatures_set_wumbo_required(long this_arg);
9844         // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9845         public static native boolean NodeFeatures_supports_wumbo(long this_arg);
9846         // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9847         public static native boolean InitFeatures_requires_wumbo(long this_arg);
9848         // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9849         public static native boolean NodeFeatures_requires_wumbo(long this_arg);
9850         // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9851         public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
9852         // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9853         public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
9854         // MUST_USE_RES bool InitFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9855         public static native boolean InitFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
9856         // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9857         public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
9858         // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9859         public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
9860         // MUST_USE_RES bool NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9861         public static native boolean NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
9862         // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9863         public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
9864         // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9865         public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
9866         // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9867         public static native boolean ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
9868         // MUST_USE_RES bool InitFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9869         public static native boolean InitFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
9870         // MUST_USE_RES bool NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9871         public static native boolean NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
9872         // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9873         public static native boolean ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
9874         // void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9875         public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
9876         // void InitFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9877         public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
9878         // MUST_USE_RES bool InitFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9879         public static native boolean InitFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
9880         // void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9881         public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
9882         // void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9883         public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
9884         // MUST_USE_RES bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9885         public static native boolean NodeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
9886         // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9887         public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
9888         // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9889         public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
9890         // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9891         public static native boolean ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
9892         // MUST_USE_RES bool InitFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9893         public static native boolean InitFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
9894         // MUST_USE_RES bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9895         public static native boolean NodeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
9896         // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9897         public static native boolean ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
9898         // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9899         public static native void InitFeatures_set_shutdown_any_segwit_optional(long this_arg);
9900         // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9901         public static native void InitFeatures_set_shutdown_any_segwit_required(long this_arg);
9902         // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9903         public static native boolean InitFeatures_supports_shutdown_anysegwit(long this_arg);
9904         // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9905         public static native void NodeFeatures_set_shutdown_any_segwit_optional(long this_arg);
9906         // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9907         public static native void NodeFeatures_set_shutdown_any_segwit_required(long this_arg);
9908         // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9909         public static native boolean NodeFeatures_supports_shutdown_anysegwit(long this_arg);
9910         // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9911         public static native boolean InitFeatures_requires_shutdown_anysegwit(long this_arg);
9912         // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9913         public static native boolean NodeFeatures_requires_shutdown_anysegwit(long this_arg);
9914         // void InitFeatures_set_taproot_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9915         public static native void InitFeatures_set_taproot_optional(long this_arg);
9916         // void InitFeatures_set_taproot_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9917         public static native void InitFeatures_set_taproot_required(long this_arg);
9918         // MUST_USE_RES bool InitFeatures_supports_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9919         public static native boolean InitFeatures_supports_taproot(long this_arg);
9920         // void NodeFeatures_set_taproot_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9921         public static native void NodeFeatures_set_taproot_optional(long this_arg);
9922         // void NodeFeatures_set_taproot_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9923         public static native void NodeFeatures_set_taproot_required(long this_arg);
9924         // MUST_USE_RES bool NodeFeatures_supports_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9925         public static native boolean NodeFeatures_supports_taproot(long this_arg);
9926         // void ChannelTypeFeatures_set_taproot_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9927         public static native void ChannelTypeFeatures_set_taproot_optional(long this_arg);
9928         // void ChannelTypeFeatures_set_taproot_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9929         public static native void ChannelTypeFeatures_set_taproot_required(long this_arg);
9930         // MUST_USE_RES bool ChannelTypeFeatures_supports_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9931         public static native boolean ChannelTypeFeatures_supports_taproot(long this_arg);
9932         // MUST_USE_RES bool InitFeatures_requires_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9933         public static native boolean InitFeatures_requires_taproot(long this_arg);
9934         // MUST_USE_RES bool NodeFeatures_requires_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9935         public static native boolean NodeFeatures_requires_taproot(long this_arg);
9936         // MUST_USE_RES bool ChannelTypeFeatures_requires_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9937         public static native boolean ChannelTypeFeatures_requires_taproot(long this_arg);
9938         // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9939         public static native void InitFeatures_set_onion_messages_optional(long this_arg);
9940         // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9941         public static native void InitFeatures_set_onion_messages_required(long this_arg);
9942         // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9943         public static native boolean InitFeatures_supports_onion_messages(long this_arg);
9944         // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9945         public static native void NodeFeatures_set_onion_messages_optional(long this_arg);
9946         // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9947         public static native void NodeFeatures_set_onion_messages_required(long this_arg);
9948         // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9949         public static native boolean NodeFeatures_supports_onion_messages(long this_arg);
9950         // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9951         public static native boolean InitFeatures_requires_onion_messages(long this_arg);
9952         // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9953         public static native boolean NodeFeatures_requires_onion_messages(long this_arg);
9954         // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9955         public static native void InitFeatures_set_channel_type_optional(long this_arg);
9956         // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9957         public static native void InitFeatures_set_channel_type_required(long this_arg);
9958         // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9959         public static native boolean InitFeatures_supports_channel_type(long this_arg);
9960         // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9961         public static native void NodeFeatures_set_channel_type_optional(long this_arg);
9962         // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9963         public static native void NodeFeatures_set_channel_type_required(long this_arg);
9964         // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9965         public static native boolean NodeFeatures_supports_channel_type(long this_arg);
9966         // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9967         public static native boolean InitFeatures_requires_channel_type(long this_arg);
9968         // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9969         public static native boolean NodeFeatures_requires_channel_type(long this_arg);
9970         // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9971         public static native void InitFeatures_set_scid_privacy_optional(long this_arg);
9972         // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9973         public static native void InitFeatures_set_scid_privacy_required(long this_arg);
9974         // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9975         public static native boolean InitFeatures_supports_scid_privacy(long this_arg);
9976         // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9977         public static native void NodeFeatures_set_scid_privacy_optional(long this_arg);
9978         // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9979         public static native void NodeFeatures_set_scid_privacy_required(long this_arg);
9980         // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9981         public static native boolean NodeFeatures_supports_scid_privacy(long this_arg);
9982         // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9983         public static native void ChannelTypeFeatures_set_scid_privacy_optional(long this_arg);
9984         // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9985         public static native void ChannelTypeFeatures_set_scid_privacy_required(long this_arg);
9986         // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9987         public static native boolean ChannelTypeFeatures_supports_scid_privacy(long this_arg);
9988         // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9989         public static native boolean InitFeatures_requires_scid_privacy(long this_arg);
9990         // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9991         public static native boolean NodeFeatures_requires_scid_privacy(long this_arg);
9992         // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9993         public static native boolean ChannelTypeFeatures_requires_scid_privacy(long this_arg);
9994         // void Bolt11InvoiceFeatures_set_payment_metadata_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9995         public static native void Bolt11InvoiceFeatures_set_payment_metadata_optional(long this_arg);
9996         // void Bolt11InvoiceFeatures_set_payment_metadata_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9997         public static native void Bolt11InvoiceFeatures_set_payment_metadata_required(long this_arg);
9998         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9999         public static native boolean Bolt11InvoiceFeatures_supports_payment_metadata(long this_arg);
10000         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10001         public static native boolean Bolt11InvoiceFeatures_requires_payment_metadata(long this_arg);
10002         // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10003         public static native void InitFeatures_set_zero_conf_optional(long this_arg);
10004         // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10005         public static native void InitFeatures_set_zero_conf_required(long this_arg);
10006         // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10007         public static native boolean InitFeatures_supports_zero_conf(long this_arg);
10008         // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10009         public static native void NodeFeatures_set_zero_conf_optional(long this_arg);
10010         // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10011         public static native void NodeFeatures_set_zero_conf_required(long this_arg);
10012         // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10013         public static native boolean NodeFeatures_supports_zero_conf(long this_arg);
10014         // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10015         public static native void ChannelTypeFeatures_set_zero_conf_optional(long this_arg);
10016         // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10017         public static native void ChannelTypeFeatures_set_zero_conf_required(long this_arg);
10018         // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10019         public static native boolean ChannelTypeFeatures_supports_zero_conf(long this_arg);
10020         // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10021         public static native boolean InitFeatures_requires_zero_conf(long this_arg);
10022         // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10023         public static native boolean NodeFeatures_requires_zero_conf(long this_arg);
10024         // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10025         public static native boolean ChannelTypeFeatures_requires_zero_conf(long this_arg);
10026         // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10027         public static native void NodeFeatures_set_keysend_optional(long this_arg);
10028         // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10029         public static native void NodeFeatures_set_keysend_required(long this_arg);
10030         // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10031         public static native boolean NodeFeatures_supports_keysend(long this_arg);
10032         // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10033         public static native boolean NodeFeatures_requires_keysend(long this_arg);
10034         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
10035         public static native void ShutdownScript_free(long this_obj);
10036         // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
10037         public static native long ShutdownScript_clone_ptr(long arg);
10038         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
10039         public static native long ShutdownScript_clone(long orig);
10040         // bool ShutdownScript_eq(const struct LDKShutdownScript *NONNULL_PTR a, const struct LDKShutdownScript *NONNULL_PTR b);
10041         public static native boolean ShutdownScript_eq(long a, long b);
10042         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
10043         public static native void InvalidShutdownScript_free(long this_obj);
10044         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
10045         public static native byte[] InvalidShutdownScript_get_script(long this_ptr);
10046         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
10047         public static native void InvalidShutdownScript_set_script(long this_ptr, byte[] val);
10048         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
10049         public static native long InvalidShutdownScript_new(byte[] script_arg);
10050         // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
10051         public static native long InvalidShutdownScript_clone_ptr(long arg);
10052         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
10053         public static native long InvalidShutdownScript_clone(long orig);
10054         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
10055         public static native byte[] ShutdownScript_write(long obj);
10056         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
10057         public static native long ShutdownScript_read(byte[] ser);
10058         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
10059         public static native long ShutdownScript_new_p2wpkh(byte[] pubkey_hash);
10060         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
10061         public static native long ShutdownScript_new_p2wsh(byte[] script_hash);
10062         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
10063         public static native long ShutdownScript_new_witness_program(byte version, byte[] program);
10064         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
10065         public static native byte[] ShutdownScript_into_inner(long this_arg);
10066         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
10067         public static native byte[] ShutdownScript_as_legacy_pubkey(long this_arg);
10068         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
10069         public static native boolean ShutdownScript_is_compatible(long this_arg, long features);
10070         // void Retry_free(struct LDKRetry this_ptr);
10071         public static native void Retry_free(long this_ptr);
10072         // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
10073         public static native long Retry_clone_ptr(long arg);
10074         // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
10075         public static native long Retry_clone(long orig);
10076         // struct LDKRetry Retry_attempts(uint32_t a);
10077         public static native long Retry_attempts(int a);
10078         // struct LDKRetry Retry_timeout(uint64_t a);
10079         public static native long Retry_timeout(long a);
10080         // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
10081         public static native boolean Retry_eq(long a, long b);
10082         // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
10083         public static native long Retry_hash(long o);
10084         // struct LDKCVec_u8Z Retry_write(const struct LDKRetry *NONNULL_PTR obj);
10085         public static native byte[] Retry_write(long obj);
10086         // struct LDKCResult_RetryDecodeErrorZ Retry_read(struct LDKu8slice ser);
10087         public static native long Retry_read(byte[] ser);
10088         // enum LDKRetryableSendFailure RetryableSendFailure_clone(const enum LDKRetryableSendFailure *NONNULL_PTR orig);
10089         public static native RetryableSendFailure RetryableSendFailure_clone(long orig);
10090         // enum LDKRetryableSendFailure RetryableSendFailure_payment_expired(void);
10091         public static native RetryableSendFailure RetryableSendFailure_payment_expired();
10092         // enum LDKRetryableSendFailure RetryableSendFailure_route_not_found(void);
10093         public static native RetryableSendFailure RetryableSendFailure_route_not_found();
10094         // enum LDKRetryableSendFailure RetryableSendFailure_duplicate_payment(void);
10095         public static native RetryableSendFailure RetryableSendFailure_duplicate_payment();
10096         // bool RetryableSendFailure_eq(const enum LDKRetryableSendFailure *NONNULL_PTR a, const enum LDKRetryableSendFailure *NONNULL_PTR b);
10097         public static native boolean RetryableSendFailure_eq(long a, long b);
10098         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
10099         public static native void PaymentSendFailure_free(long this_ptr);
10100         // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
10101         public static native long PaymentSendFailure_clone_ptr(long arg);
10102         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
10103         public static native long PaymentSendFailure_clone(long orig);
10104         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
10105         public static native long PaymentSendFailure_parameter_error(long a);
10106         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
10107         public static native long PaymentSendFailure_path_parameter_error(long[] a);
10108         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_resend_safe(struct LDKCVec_APIErrorZ a);
10109         public static native long PaymentSendFailure_all_failed_resend_safe(long[] a);
10110         // struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void);
10111         public static native long PaymentSendFailure_duplicate_payment();
10112         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
10113         public static native long PaymentSendFailure_partial_failure(long[] results, long failed_paths_retry, byte[] payment_id);
10114         // bool PaymentSendFailure_eq(const struct LDKPaymentSendFailure *NONNULL_PTR a, const struct LDKPaymentSendFailure *NONNULL_PTR b);
10115         public static native boolean PaymentSendFailure_eq(long a, long b);
10116         // void ProbeSendFailure_free(struct LDKProbeSendFailure this_ptr);
10117         public static native void ProbeSendFailure_free(long this_ptr);
10118         // uint64_t ProbeSendFailure_clone_ptr(LDKProbeSendFailure *NONNULL_PTR arg);
10119         public static native long ProbeSendFailure_clone_ptr(long arg);
10120         // struct LDKProbeSendFailure ProbeSendFailure_clone(const struct LDKProbeSendFailure *NONNULL_PTR orig);
10121         public static native long ProbeSendFailure_clone(long orig);
10122         // struct LDKProbeSendFailure ProbeSendFailure_route_not_found(void);
10123         public static native long ProbeSendFailure_route_not_found();
10124         // struct LDKProbeSendFailure ProbeSendFailure_sending_failed(struct LDKPaymentSendFailure a);
10125         public static native long ProbeSendFailure_sending_failed(long a);
10126         // bool ProbeSendFailure_eq(const struct LDKProbeSendFailure *NONNULL_PTR a, const struct LDKProbeSendFailure *NONNULL_PTR b);
10127         public static native boolean ProbeSendFailure_eq(long a, long b);
10128         // void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj);
10129         public static native void RecipientOnionFields_free(long this_obj);
10130         // struct LDKCOption_ThirtyTwoBytesZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
10131         public static native long RecipientOnionFields_get_payment_secret(long this_ptr);
10132         // void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
10133         public static native void RecipientOnionFields_set_payment_secret(long this_ptr, long val);
10134         // struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
10135         public static native long RecipientOnionFields_get_payment_metadata(long this_ptr);
10136         // void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
10137         public static native void RecipientOnionFields_set_payment_metadata(long this_ptr, long val);
10138         // uint64_t RecipientOnionFields_clone_ptr(LDKRecipientOnionFields *NONNULL_PTR arg);
10139         public static native long RecipientOnionFields_clone_ptr(long arg);
10140         // struct LDKRecipientOnionFields RecipientOnionFields_clone(const struct LDKRecipientOnionFields *NONNULL_PTR orig);
10141         public static native long RecipientOnionFields_clone(long orig);
10142         // bool RecipientOnionFields_eq(const struct LDKRecipientOnionFields *NONNULL_PTR a, const struct LDKRecipientOnionFields *NONNULL_PTR b);
10143         public static native boolean RecipientOnionFields_eq(long a, long b);
10144         // struct LDKCVec_u8Z RecipientOnionFields_write(const struct LDKRecipientOnionFields *NONNULL_PTR obj);
10145         public static native byte[] RecipientOnionFields_write(long obj);
10146         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ RecipientOnionFields_read(struct LDKu8slice ser);
10147         public static native long RecipientOnionFields_read(byte[] ser);
10148         // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(struct LDKThirtyTwoBytes payment_secret);
10149         public static native long RecipientOnionFields_secret_only(byte[] payment_secret);
10150         // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void);
10151         public static native long RecipientOnionFields_spontaneous_empty();
10152         // MUST_USE_RES struct LDKCResult_RecipientOnionFieldsNoneZ RecipientOnionFields_with_custom_tlvs(struct LDKRecipientOnionFields this_arg, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs);
10153         public static native long RecipientOnionFields_with_custom_tlvs(long this_arg, long[] custom_tlvs);
10154         // MUST_USE_RES struct LDKCVec_C2Tuple_u64CVec_u8ZZZ RecipientOnionFields_custom_tlvs(const struct LDKRecipientOnionFields *NONNULL_PTR this_arg);
10155         public static native long[] RecipientOnionFields_custom_tlvs(long this_arg);
10156         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
10157         public static native void CustomMessageReader_free(long this_ptr);
10158         // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
10159         public static native long Type_clone_ptr(long arg);
10160         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
10161         public static native long Type_clone(long orig);
10162         // void Type_free(struct LDKType this_ptr);
10163         public static native void Type_free(long this_ptr);
10164         // void Offer_free(struct LDKOffer this_obj);
10165         public static native void Offer_free(long this_obj);
10166         // uint64_t Offer_clone_ptr(LDKOffer *NONNULL_PTR arg);
10167         public static native long Offer_clone_ptr(long arg);
10168         // struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig);
10169         public static native long Offer_clone(long orig);
10170         // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg);
10171         public static native byte[][] Offer_chains(long this_arg);
10172         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg);
10173         public static native long Offer_metadata(long this_arg);
10174         // MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg);
10175         public static native long Offer_amount(long this_arg);
10176         // MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg);
10177         public static native long Offer_description(long this_arg);
10178         // MUST_USE_RES struct LDKOfferFeatures Offer_offer_features(const struct LDKOffer *NONNULL_PTR this_arg);
10179         public static native long Offer_offer_features(long this_arg);
10180         // MUST_USE_RES struct LDKCOption_u64Z Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg);
10181         public static native long Offer_absolute_expiry(long this_arg);
10182         // MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg);
10183         public static native long Offer_issuer(long this_arg);
10184         // MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg);
10185         public static native long[] Offer_paths(long this_arg);
10186         // MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
10187         public static native long Offer_supported_quantity(long this_arg);
10188         // MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg);
10189         public static native byte[] Offer_signing_pubkey(long this_arg);
10190         // MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain);
10191         public static native boolean Offer_supports_chain(long this_arg, byte[] chain);
10192         // MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg);
10193         public static native boolean Offer_is_expired(long this_arg);
10194         // MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity);
10195         public static native boolean Offer_is_valid_quantity(long this_arg, long quantity);
10196         // MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
10197         public static native boolean Offer_expects_quantity(long this_arg);
10198         // struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj);
10199         public static native byte[] Offer_write(long obj);
10200         // void Amount_free(struct LDKAmount this_obj);
10201         public static native void Amount_free(long this_obj);
10202         // uint64_t Amount_clone_ptr(LDKAmount *NONNULL_PTR arg);
10203         public static native long Amount_clone_ptr(long arg);
10204         // struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig);
10205         public static native long Amount_clone(long orig);
10206         // void Quantity_free(struct LDKQuantity this_obj);
10207         public static native void Quantity_free(long this_obj);
10208         // uint64_t Quantity_clone_ptr(LDKQuantity *NONNULL_PTR arg);
10209         public static native long Quantity_clone_ptr(long arg);
10210         // struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig);
10211         public static native long Quantity_clone(long orig);
10212         // struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s);
10213         public static native long Offer_from_str(String s);
10214         // void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj);
10215         public static native void UnsignedBolt12Invoice_free(long this_obj);
10216         // MUST_USE_RES struct LDKTaggedHash UnsignedBolt12Invoice_tagged_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10217         public static native long UnsignedBolt12Invoice_tagged_hash(long this_arg);
10218         // void Bolt12Invoice_free(struct LDKBolt12Invoice this_obj);
10219         public static native void Bolt12Invoice_free(long this_obj);
10220         // uint64_t Bolt12Invoice_clone_ptr(LDKBolt12Invoice *NONNULL_PTR arg);
10221         public static native long Bolt12Invoice_clone_ptr(long arg);
10222         // struct LDKBolt12Invoice Bolt12Invoice_clone(const struct LDKBolt12Invoice *NONNULL_PTR orig);
10223         public static native long Bolt12Invoice_clone(long orig);
10224         // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ UnsignedBolt12Invoice_offer_chains(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10225         public static native long UnsignedBolt12Invoice_offer_chains(long this_arg);
10226         // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_chain(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10227         public static native byte[] UnsignedBolt12Invoice_chain(long this_arg);
10228         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedBolt12Invoice_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10229         public static native long UnsignedBolt12Invoice_metadata(long this_arg);
10230         // MUST_USE_RES struct LDKAmount UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10231         public static native long UnsignedBolt12Invoice_amount(long this_arg);
10232         // MUST_USE_RES struct LDKOfferFeatures UnsignedBolt12Invoice_offer_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10233         public static native long UnsignedBolt12Invoice_offer_features(long this_arg);
10234         // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_description(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10235         public static native long UnsignedBolt12Invoice_description(long this_arg);
10236         // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_absolute_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10237         public static native long UnsignedBolt12Invoice_absolute_expiry(long this_arg);
10238         // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_issuer(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10239         public static native long UnsignedBolt12Invoice_issuer(long this_arg);
10240         // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedBolt12Invoice_message_paths(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10241         public static native long[] UnsignedBolt12Invoice_message_paths(long this_arg);
10242         // MUST_USE_RES struct LDKQuantity UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10243         public static native long UnsignedBolt12Invoice_supported_quantity(long this_arg);
10244         // MUST_USE_RES struct LDKu8slice UnsignedBolt12Invoice_payer_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10245         public static native byte[] UnsignedBolt12Invoice_payer_metadata(long this_arg);
10246         // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedBolt12Invoice_invoice_request_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10247         public static native long UnsignedBolt12Invoice_invoice_request_features(long this_arg);
10248         // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10249         public static native long UnsignedBolt12Invoice_quantity(long this_arg);
10250         // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_payer_id(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10251         public static native byte[] UnsignedBolt12Invoice_payer_id(long this_arg);
10252         // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_payer_note(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10253         public static native long UnsignedBolt12Invoice_payer_note(long this_arg);
10254         // MUST_USE_RES uint64_t UnsignedBolt12Invoice_created_at(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10255         public static native long UnsignedBolt12Invoice_created_at(long this_arg);
10256         // MUST_USE_RES uint64_t UnsignedBolt12Invoice_relative_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10257         public static native long UnsignedBolt12Invoice_relative_expiry(long this_arg);
10258         // MUST_USE_RES bool UnsignedBolt12Invoice_is_expired(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10259         public static native boolean UnsignedBolt12Invoice_is_expired(long this_arg);
10260         // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_payment_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10261         public static native byte[] UnsignedBolt12Invoice_payment_hash(long this_arg);
10262         // MUST_USE_RES uint64_t UnsignedBolt12Invoice_amount_msats(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10263         public static native long UnsignedBolt12Invoice_amount_msats(long this_arg);
10264         // MUST_USE_RES struct LDKBolt12InvoiceFeatures UnsignedBolt12Invoice_invoice_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10265         public static native long UnsignedBolt12Invoice_invoice_features(long this_arg);
10266         // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
10267         public static native byte[] UnsignedBolt12Invoice_signing_pubkey(long this_arg);
10268         // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ Bolt12Invoice_offer_chains(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10269         public static native long Bolt12Invoice_offer_chains(long this_arg);
10270         // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_chain(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10271         public static native byte[] Bolt12Invoice_chain(long this_arg);
10272         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt12Invoice_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10273         public static native long Bolt12Invoice_metadata(long this_arg);
10274         // MUST_USE_RES struct LDKAmount Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10275         public static native long Bolt12Invoice_amount(long this_arg);
10276         // MUST_USE_RES struct LDKOfferFeatures Bolt12Invoice_offer_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10277         public static native long Bolt12Invoice_offer_features(long this_arg);
10278         // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_description(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10279         public static native long Bolt12Invoice_description(long this_arg);
10280         // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_absolute_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10281         public static native long Bolt12Invoice_absolute_expiry(long this_arg);
10282         // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_issuer(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10283         public static native long Bolt12Invoice_issuer(long this_arg);
10284         // MUST_USE_RES struct LDKCVec_BlindedPathZ Bolt12Invoice_message_paths(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10285         public static native long[] Bolt12Invoice_message_paths(long this_arg);
10286         // MUST_USE_RES struct LDKQuantity Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10287         public static native long Bolt12Invoice_supported_quantity(long this_arg);
10288         // MUST_USE_RES struct LDKu8slice Bolt12Invoice_payer_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10289         public static native byte[] Bolt12Invoice_payer_metadata(long this_arg);
10290         // MUST_USE_RES struct LDKInvoiceRequestFeatures Bolt12Invoice_invoice_request_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10291         public static native long Bolt12Invoice_invoice_request_features(long this_arg);
10292         // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10293         public static native long Bolt12Invoice_quantity(long this_arg);
10294         // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_payer_id(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10295         public static native byte[] Bolt12Invoice_payer_id(long this_arg);
10296         // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_payer_note(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10297         public static native long Bolt12Invoice_payer_note(long this_arg);
10298         // MUST_USE_RES uint64_t Bolt12Invoice_created_at(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10299         public static native long Bolt12Invoice_created_at(long this_arg);
10300         // MUST_USE_RES uint64_t Bolt12Invoice_relative_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10301         public static native long Bolt12Invoice_relative_expiry(long this_arg);
10302         // MUST_USE_RES bool Bolt12Invoice_is_expired(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10303         public static native boolean Bolt12Invoice_is_expired(long this_arg);
10304         // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_payment_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10305         public static native byte[] Bolt12Invoice_payment_hash(long this_arg);
10306         // MUST_USE_RES uint64_t Bolt12Invoice_amount_msats(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10307         public static native long Bolt12Invoice_amount_msats(long this_arg);
10308         // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10309         public static native long Bolt12Invoice_invoice_features(long this_arg);
10310         // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_signing_pubkey(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10311         public static native byte[] Bolt12Invoice_signing_pubkey(long this_arg);
10312         // MUST_USE_RES struct LDKSchnorrSignature Bolt12Invoice_signature(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10313         public static native byte[] Bolt12Invoice_signature(long this_arg);
10314         // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_signable_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
10315         public static native byte[] Bolt12Invoice_signable_hash(long this_arg);
10316         // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
10317         public static native long Bolt12Invoice_verify(long this_arg, long key);
10318         // struct LDKCVec_u8Z UnsignedBolt12Invoice_write(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR obj);
10319         public static native byte[] UnsignedBolt12Invoice_write(long obj);
10320         // struct LDKCVec_u8Z Bolt12Invoice_write(const struct LDKBolt12Invoice *NONNULL_PTR obj);
10321         public static native byte[] Bolt12Invoice_write(long obj);
10322         // void BlindedPayInfo_free(struct LDKBlindedPayInfo this_obj);
10323         public static native void BlindedPayInfo_free(long this_obj);
10324         // uint32_t BlindedPayInfo_get_fee_base_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
10325         public static native int BlindedPayInfo_get_fee_base_msat(long this_ptr);
10326         // void BlindedPayInfo_set_fee_base_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
10327         public static native void BlindedPayInfo_set_fee_base_msat(long this_ptr, int val);
10328         // uint32_t BlindedPayInfo_get_fee_proportional_millionths(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
10329         public static native int BlindedPayInfo_get_fee_proportional_millionths(long this_ptr);
10330         // void BlindedPayInfo_set_fee_proportional_millionths(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
10331         public static native void BlindedPayInfo_set_fee_proportional_millionths(long this_ptr, int val);
10332         // uint16_t BlindedPayInfo_get_cltv_expiry_delta(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
10333         public static native short BlindedPayInfo_get_cltv_expiry_delta(long this_ptr);
10334         // void BlindedPayInfo_set_cltv_expiry_delta(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint16_t val);
10335         public static native void BlindedPayInfo_set_cltv_expiry_delta(long this_ptr, short val);
10336         // uint64_t BlindedPayInfo_get_htlc_minimum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
10337         public static native long BlindedPayInfo_get_htlc_minimum_msat(long this_ptr);
10338         // void BlindedPayInfo_set_htlc_minimum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
10339         public static native void BlindedPayInfo_set_htlc_minimum_msat(long this_ptr, long val);
10340         // uint64_t BlindedPayInfo_get_htlc_maximum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
10341         public static native long BlindedPayInfo_get_htlc_maximum_msat(long this_ptr);
10342         // void BlindedPayInfo_set_htlc_maximum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
10343         public static native void BlindedPayInfo_set_htlc_maximum_msat(long this_ptr, long val);
10344         // struct LDKBlindedHopFeatures BlindedPayInfo_get_features(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
10345         public static native long BlindedPayInfo_get_features(long this_ptr);
10346         // void BlindedPayInfo_set_features(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
10347         public static native void BlindedPayInfo_set_features(long this_ptr, long val);
10348         // MUST_USE_RES struct LDKBlindedPayInfo BlindedPayInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, struct LDKBlindedHopFeatures features_arg);
10349         public static native long BlindedPayInfo_new(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, long features_arg);
10350         // uint64_t BlindedPayInfo_clone_ptr(LDKBlindedPayInfo *NONNULL_PTR arg);
10351         public static native long BlindedPayInfo_clone_ptr(long arg);
10352         // struct LDKBlindedPayInfo BlindedPayInfo_clone(const struct LDKBlindedPayInfo *NONNULL_PTR orig);
10353         public static native long BlindedPayInfo_clone(long orig);
10354         // uint64_t BlindedPayInfo_hash(const struct LDKBlindedPayInfo *NONNULL_PTR o);
10355         public static native long BlindedPayInfo_hash(long o);
10356         // bool BlindedPayInfo_eq(const struct LDKBlindedPayInfo *NONNULL_PTR a, const struct LDKBlindedPayInfo *NONNULL_PTR b);
10357         public static native boolean BlindedPayInfo_eq(long a, long b);
10358         // struct LDKCVec_u8Z BlindedPayInfo_write(const struct LDKBlindedPayInfo *NONNULL_PTR obj);
10359         public static native byte[] BlindedPayInfo_write(long obj);
10360         // struct LDKCResult_BlindedPayInfoDecodeErrorZ BlindedPayInfo_read(struct LDKu8slice ser);
10361         public static native long BlindedPayInfo_read(byte[] ser);
10362         // void InvoiceError_free(struct LDKInvoiceError this_obj);
10363         public static native void InvoiceError_free(long this_obj);
10364         // struct LDKErroneousField InvoiceError_get_erroneous_field(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
10365         public static native long InvoiceError_get_erroneous_field(long this_ptr);
10366         // void InvoiceError_set_erroneous_field(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKErroneousField val);
10367         public static native void InvoiceError_set_erroneous_field(long this_ptr, long val);
10368         // struct LDKUntrustedString InvoiceError_get_message(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
10369         public static native long InvoiceError_get_message(long this_ptr);
10370         // void InvoiceError_set_message(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKUntrustedString val);
10371         public static native void InvoiceError_set_message(long this_ptr, long val);
10372         // MUST_USE_RES struct LDKInvoiceError InvoiceError_new(struct LDKErroneousField erroneous_field_arg, struct LDKUntrustedString message_arg);
10373         public static native long InvoiceError_new(long erroneous_field_arg, long message_arg);
10374         // uint64_t InvoiceError_clone_ptr(LDKInvoiceError *NONNULL_PTR arg);
10375         public static native long InvoiceError_clone_ptr(long arg);
10376         // struct LDKInvoiceError InvoiceError_clone(const struct LDKInvoiceError *NONNULL_PTR orig);
10377         public static native long InvoiceError_clone(long orig);
10378         // void ErroneousField_free(struct LDKErroneousField this_obj);
10379         public static native void ErroneousField_free(long this_obj);
10380         // uint64_t ErroneousField_get_tlv_fieldnum(const struct LDKErroneousField *NONNULL_PTR this_ptr);
10381         public static native long ErroneousField_get_tlv_fieldnum(long this_ptr);
10382         // void ErroneousField_set_tlv_fieldnum(struct LDKErroneousField *NONNULL_PTR this_ptr, uint64_t val);
10383         public static native void ErroneousField_set_tlv_fieldnum(long this_ptr, long val);
10384         // struct LDKCOption_CVec_u8ZZ ErroneousField_get_suggested_value(const struct LDKErroneousField *NONNULL_PTR this_ptr);
10385         public static native long ErroneousField_get_suggested_value(long this_ptr);
10386         // void ErroneousField_set_suggested_value(struct LDKErroneousField *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
10387         public static native void ErroneousField_set_suggested_value(long this_ptr, long val);
10388         // MUST_USE_RES struct LDKErroneousField ErroneousField_new(uint64_t tlv_fieldnum_arg, struct LDKCOption_CVec_u8ZZ suggested_value_arg);
10389         public static native long ErroneousField_new(long tlv_fieldnum_arg, long suggested_value_arg);
10390         // uint64_t ErroneousField_clone_ptr(LDKErroneousField *NONNULL_PTR arg);
10391         public static native long ErroneousField_clone_ptr(long arg);
10392         // struct LDKErroneousField ErroneousField_clone(const struct LDKErroneousField *NONNULL_PTR orig);
10393         public static native long ErroneousField_clone(long orig);
10394         // MUST_USE_RES struct LDKInvoiceError InvoiceError_from_string(struct LDKStr s);
10395         public static native long InvoiceError_from_string(String s);
10396         // struct LDKCVec_u8Z InvoiceError_write(const struct LDKInvoiceError *NONNULL_PTR obj);
10397         public static native byte[] InvoiceError_write(long obj);
10398         // struct LDKCResult_InvoiceErrorDecodeErrorZ InvoiceError_read(struct LDKu8slice ser);
10399         public static native long InvoiceError_read(byte[] ser);
10400         // void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj);
10401         public static native void UnsignedInvoiceRequest_free(long this_obj);
10402         // MUST_USE_RES struct LDKTaggedHash UnsignedInvoiceRequest_tagged_hash(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10403         public static native long UnsignedInvoiceRequest_tagged_hash(long this_arg);
10404         // void InvoiceRequest_free(struct LDKInvoiceRequest this_obj);
10405         public static native void InvoiceRequest_free(long this_obj);
10406         // uint64_t InvoiceRequest_clone_ptr(LDKInvoiceRequest *NONNULL_PTR arg);
10407         public static native long InvoiceRequest_clone_ptr(long arg);
10408         // struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig);
10409         public static native long InvoiceRequest_clone(long orig);
10410         // void VerifiedInvoiceRequest_free(struct LDKVerifiedInvoiceRequest this_obj);
10411         public static native void VerifiedInvoiceRequest_free(long this_obj);
10412         // struct LDKCOption_SecretKeyZ VerifiedInvoiceRequest_get_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr);
10413         public static native long VerifiedInvoiceRequest_get_keys(long this_ptr);
10414         // void VerifiedInvoiceRequest_set_keys(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKCOption_SecretKeyZ val);
10415         public static native void VerifiedInvoiceRequest_set_keys(long this_ptr, long val);
10416         // uint64_t VerifiedInvoiceRequest_clone_ptr(LDKVerifiedInvoiceRequest *NONNULL_PTR arg);
10417         public static native long VerifiedInvoiceRequest_clone_ptr(long arg);
10418         // struct LDKVerifiedInvoiceRequest VerifiedInvoiceRequest_clone(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR orig);
10419         public static native long VerifiedInvoiceRequest_clone(long orig);
10420         // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ UnsignedInvoiceRequest_chains(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10421         public static native byte[][] UnsignedInvoiceRequest_chains(long this_arg);
10422         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedInvoiceRequest_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10423         public static native long UnsignedInvoiceRequest_metadata(long this_arg);
10424         // MUST_USE_RES struct LDKAmount UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10425         public static native long UnsignedInvoiceRequest_amount(long this_arg);
10426         // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_description(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10427         public static native long UnsignedInvoiceRequest_description(long this_arg);
10428         // MUST_USE_RES struct LDKOfferFeatures UnsignedInvoiceRequest_offer_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10429         public static native long UnsignedInvoiceRequest_offer_features(long this_arg);
10430         // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_absolute_expiry(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10431         public static native long UnsignedInvoiceRequest_absolute_expiry(long this_arg);
10432         // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_issuer(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10433         public static native long UnsignedInvoiceRequest_issuer(long this_arg);
10434         // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedInvoiceRequest_paths(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10435         public static native long[] UnsignedInvoiceRequest_paths(long this_arg);
10436         // MUST_USE_RES struct LDKQuantity UnsignedInvoiceRequest_supported_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10437         public static native long UnsignedInvoiceRequest_supported_quantity(long this_arg);
10438         // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_signing_pubkey(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10439         public static native byte[] UnsignedInvoiceRequest_signing_pubkey(long this_arg);
10440         // MUST_USE_RES struct LDKu8slice UnsignedInvoiceRequest_payer_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10441         public static native byte[] UnsignedInvoiceRequest_payer_metadata(long this_arg);
10442         // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedInvoiceRequest_chain(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10443         public static native byte[] UnsignedInvoiceRequest_chain(long this_arg);
10444         // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_amount_msats(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10445         public static native long UnsignedInvoiceRequest_amount_msats(long this_arg);
10446         // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedInvoiceRequest_invoice_request_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10447         public static native long UnsignedInvoiceRequest_invoice_request_features(long this_arg);
10448         // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10449         public static native long UnsignedInvoiceRequest_quantity(long this_arg);
10450         // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_payer_id(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10451         public static native byte[] UnsignedInvoiceRequest_payer_id(long this_arg);
10452         // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_payer_note(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
10453         public static native long UnsignedInvoiceRequest_payer_note(long this_arg);
10454         // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ InvoiceRequest_chains(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10455         public static native byte[][] InvoiceRequest_chains(long this_arg);
10456         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10457         public static native long InvoiceRequest_metadata(long this_arg);
10458         // MUST_USE_RES struct LDKAmount InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10459         public static native long InvoiceRequest_amount(long this_arg);
10460         // MUST_USE_RES struct LDKPrintableString InvoiceRequest_description(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10461         public static native long InvoiceRequest_description(long this_arg);
10462         // MUST_USE_RES struct LDKOfferFeatures InvoiceRequest_offer_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10463         public static native long InvoiceRequest_offer_features(long this_arg);
10464         // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_absolute_expiry(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10465         public static native long InvoiceRequest_absolute_expiry(long this_arg);
10466         // MUST_USE_RES struct LDKPrintableString InvoiceRequest_issuer(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10467         public static native long InvoiceRequest_issuer(long this_arg);
10468         // MUST_USE_RES struct LDKCVec_BlindedPathZ InvoiceRequest_paths(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10469         public static native long[] InvoiceRequest_paths(long this_arg);
10470         // MUST_USE_RES struct LDKQuantity InvoiceRequest_supported_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10471         public static native long InvoiceRequest_supported_quantity(long this_arg);
10472         // MUST_USE_RES struct LDKPublicKey InvoiceRequest_signing_pubkey(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10473         public static native byte[] InvoiceRequest_signing_pubkey(long this_arg);
10474         // MUST_USE_RES struct LDKu8slice InvoiceRequest_payer_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10475         public static native byte[] InvoiceRequest_payer_metadata(long this_arg);
10476         // MUST_USE_RES struct LDKThirtyTwoBytes InvoiceRequest_chain(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10477         public static native byte[] InvoiceRequest_chain(long this_arg);
10478         // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10479         public static native long InvoiceRequest_amount_msats(long this_arg);
10480         // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_invoice_request_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10481         public static native long InvoiceRequest_invoice_request_features(long this_arg);
10482         // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10483         public static native long InvoiceRequest_quantity(long this_arg);
10484         // MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10485         public static native byte[] InvoiceRequest_payer_id(long this_arg);
10486         // MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10487         public static native long InvoiceRequest_payer_note(long this_arg);
10488         // MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
10489         public static native byte[] InvoiceRequest_signature(long this_arg);
10490         // MUST_USE_RES struct LDKCResult_VerifiedInvoiceRequestNoneZ InvoiceRequest_verify(struct LDKInvoiceRequest this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
10491         public static native long InvoiceRequest_verify(long this_arg, long key);
10492         // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ VerifiedInvoiceRequest_chains(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10493         public static native byte[][] VerifiedInvoiceRequest_chains(long this_arg);
10494         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ VerifiedInvoiceRequest_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10495         public static native long VerifiedInvoiceRequest_metadata(long this_arg);
10496         // MUST_USE_RES struct LDKAmount VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10497         public static native long VerifiedInvoiceRequest_amount(long this_arg);
10498         // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_description(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10499         public static native long VerifiedInvoiceRequest_description(long this_arg);
10500         // MUST_USE_RES struct LDKOfferFeatures VerifiedInvoiceRequest_offer_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10501         public static native long VerifiedInvoiceRequest_offer_features(long this_arg);
10502         // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_absolute_expiry(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10503         public static native long VerifiedInvoiceRequest_absolute_expiry(long this_arg);
10504         // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_issuer(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10505         public static native long VerifiedInvoiceRequest_issuer(long this_arg);
10506         // MUST_USE_RES struct LDKCVec_BlindedPathZ VerifiedInvoiceRequest_paths(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10507         public static native long[] VerifiedInvoiceRequest_paths(long this_arg);
10508         // MUST_USE_RES struct LDKQuantity VerifiedInvoiceRequest_supported_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10509         public static native long VerifiedInvoiceRequest_supported_quantity(long this_arg);
10510         // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_signing_pubkey(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10511         public static native byte[] VerifiedInvoiceRequest_signing_pubkey(long this_arg);
10512         // MUST_USE_RES struct LDKu8slice VerifiedInvoiceRequest_payer_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10513         public static native byte[] VerifiedInvoiceRequest_payer_metadata(long this_arg);
10514         // MUST_USE_RES struct LDKThirtyTwoBytes VerifiedInvoiceRequest_chain(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10515         public static native byte[] VerifiedInvoiceRequest_chain(long this_arg);
10516         // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_amount_msats(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10517         public static native long VerifiedInvoiceRequest_amount_msats(long this_arg);
10518         // MUST_USE_RES struct LDKInvoiceRequestFeatures VerifiedInvoiceRequest_invoice_request_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10519         public static native long VerifiedInvoiceRequest_invoice_request_features(long this_arg);
10520         // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10521         public static native long VerifiedInvoiceRequest_quantity(long this_arg);
10522         // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_payer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10523         public static native byte[] VerifiedInvoiceRequest_payer_id(long this_arg);
10524         // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_payer_note(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
10525         public static native long VerifiedInvoiceRequest_payer_note(long this_arg);
10526         // struct LDKCVec_u8Z UnsignedInvoiceRequest_write(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR obj);
10527         public static native byte[] UnsignedInvoiceRequest_write(long obj);
10528         // struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj);
10529         public static native byte[] InvoiceRequest_write(long obj);
10530         // void TaggedHash_free(struct LDKTaggedHash this_obj);
10531         public static native void TaggedHash_free(long this_obj);
10532         // void Bolt12ParseError_free(struct LDKBolt12ParseError this_obj);
10533         public static native void Bolt12ParseError_free(long this_obj);
10534         // uint64_t Bolt12ParseError_clone_ptr(LDKBolt12ParseError *NONNULL_PTR arg);
10535         public static native long Bolt12ParseError_clone_ptr(long arg);
10536         // struct LDKBolt12ParseError Bolt12ParseError_clone(const struct LDKBolt12ParseError *NONNULL_PTR orig);
10537         public static native long Bolt12ParseError_clone(long orig);
10538         // enum LDKBolt12SemanticError Bolt12SemanticError_clone(const enum LDKBolt12SemanticError *NONNULL_PTR orig);
10539         public static native Bolt12SemanticError Bolt12SemanticError_clone(long orig);
10540         // enum LDKBolt12SemanticError Bolt12SemanticError_already_expired(void);
10541         public static native Bolt12SemanticError Bolt12SemanticError_already_expired();
10542         // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_chain(void);
10543         public static native Bolt12SemanticError Bolt12SemanticError_unsupported_chain();
10544         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_chain(void);
10545         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_chain();
10546         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_amount(void);
10547         public static native Bolt12SemanticError Bolt12SemanticError_missing_amount();
10548         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_amount(void);
10549         public static native Bolt12SemanticError Bolt12SemanticError_invalid_amount();
10550         // enum LDKBolt12SemanticError Bolt12SemanticError_insufficient_amount(void);
10551         public static native Bolt12SemanticError Bolt12SemanticError_insufficient_amount();
10552         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_amount(void);
10553         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_amount();
10554         // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_currency(void);
10555         public static native Bolt12SemanticError Bolt12SemanticError_unsupported_currency();
10556         // enum LDKBolt12SemanticError Bolt12SemanticError_unknown_required_features(void);
10557         public static native Bolt12SemanticError Bolt12SemanticError_unknown_required_features();
10558         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_features(void);
10559         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_features();
10560         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_description(void);
10561         public static native Bolt12SemanticError Bolt12SemanticError_missing_description();
10562         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signing_pubkey(void);
10563         public static native Bolt12SemanticError Bolt12SemanticError_missing_signing_pubkey();
10564         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey(void);
10565         public static native Bolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey();
10566         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey(void);
10567         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey();
10568         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_quantity(void);
10569         public static native Bolt12SemanticError Bolt12SemanticError_missing_quantity();
10570         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_quantity(void);
10571         public static native Bolt12SemanticError Bolt12SemanticError_invalid_quantity();
10572         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_quantity(void);
10573         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_quantity();
10574         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_metadata(void);
10575         public static native Bolt12SemanticError Bolt12SemanticError_invalid_metadata();
10576         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_metadata(void);
10577         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_metadata();
10578         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_metadata(void);
10579         public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_metadata();
10580         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_id(void);
10581         public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_id();
10582         // enum LDKBolt12SemanticError Bolt12SemanticError_duplicate_payment_id(void);
10583         public static native Bolt12SemanticError Bolt12SemanticError_duplicate_payment_id();
10584         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_paths(void);
10585         public static native Bolt12SemanticError Bolt12SemanticError_missing_paths();
10586         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_pay_info(void);
10587         public static native Bolt12SemanticError Bolt12SemanticError_invalid_pay_info();
10588         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_creation_time(void);
10589         public static native Bolt12SemanticError Bolt12SemanticError_missing_creation_time();
10590         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payment_hash(void);
10591         public static native Bolt12SemanticError Bolt12SemanticError_missing_payment_hash();
10592         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signature(void);
10593         public static native Bolt12SemanticError Bolt12SemanticError_missing_signature();
10594         // void Refund_free(struct LDKRefund this_obj);
10595         public static native void Refund_free(long this_obj);
10596         // uint64_t Refund_clone_ptr(LDKRefund *NONNULL_PTR arg);
10597         public static native long Refund_clone_ptr(long arg);
10598         // struct LDKRefund Refund_clone(const struct LDKRefund *NONNULL_PTR orig);
10599         public static native long Refund_clone(long orig);
10600         // MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund *NONNULL_PTR this_arg);
10601         public static native long Refund_description(long this_arg);
10602         // MUST_USE_RES struct LDKCOption_u64Z Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg);
10603         public static native long Refund_absolute_expiry(long this_arg);
10604         // MUST_USE_RES bool Refund_is_expired(const struct LDKRefund *NONNULL_PTR this_arg);
10605         public static native boolean Refund_is_expired(long this_arg);
10606         // MUST_USE_RES struct LDKPrintableString Refund_issuer(const struct LDKRefund *NONNULL_PTR this_arg);
10607         public static native long Refund_issuer(long this_arg);
10608         // MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NONNULL_PTR this_arg);
10609         public static native long[] Refund_paths(long this_arg);
10610         // MUST_USE_RES struct LDKu8slice Refund_payer_metadata(const struct LDKRefund *NONNULL_PTR this_arg);
10611         public static native byte[] Refund_payer_metadata(long this_arg);
10612         // MUST_USE_RES struct LDKThirtyTwoBytes Refund_chain(const struct LDKRefund *NONNULL_PTR this_arg);
10613         public static native byte[] Refund_chain(long this_arg);
10614         // MUST_USE_RES uint64_t Refund_amount_msats(const struct LDKRefund *NONNULL_PTR this_arg);
10615         public static native long Refund_amount_msats(long this_arg);
10616         // MUST_USE_RES struct LDKInvoiceRequestFeatures Refund_features(const struct LDKRefund *NONNULL_PTR this_arg);
10617         public static native long Refund_features(long this_arg);
10618         // MUST_USE_RES struct LDKCOption_u64Z Refund_quantity(const struct LDKRefund *NONNULL_PTR this_arg);
10619         public static native long Refund_quantity(long this_arg);
10620         // MUST_USE_RES struct LDKPublicKey Refund_payer_id(const struct LDKRefund *NONNULL_PTR this_arg);
10621         public static native byte[] Refund_payer_id(long this_arg);
10622         // MUST_USE_RES struct LDKPrintableString Refund_payer_note(const struct LDKRefund *NONNULL_PTR this_arg);
10623         public static native long Refund_payer_note(long this_arg);
10624         // struct LDKCVec_u8Z Refund_write(const struct LDKRefund *NONNULL_PTR obj);
10625         public static native byte[] Refund_write(long obj);
10626         // struct LDKCResult_RefundBolt12ParseErrorZ Refund_from_str(struct LDKStr s);
10627         public static native long Refund_from_str(String s);
10628         // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig);
10629         public static native UtxoLookupError UtxoLookupError_clone(long orig);
10630         // enum LDKUtxoLookupError UtxoLookupError_unknown_chain(void);
10631         public static native UtxoLookupError UtxoLookupError_unknown_chain();
10632         // enum LDKUtxoLookupError UtxoLookupError_unknown_tx(void);
10633         public static native UtxoLookupError UtxoLookupError_unknown_tx();
10634         // void UtxoResult_free(struct LDKUtxoResult this_ptr);
10635         public static native void UtxoResult_free(long this_ptr);
10636         // uint64_t UtxoResult_clone_ptr(LDKUtxoResult *NONNULL_PTR arg);
10637         public static native long UtxoResult_clone_ptr(long arg);
10638         // struct LDKUtxoResult UtxoResult_clone(const struct LDKUtxoResult *NONNULL_PTR orig);
10639         public static native long UtxoResult_clone(long orig);
10640         // struct LDKUtxoResult UtxoResult_sync(struct LDKCResult_TxOutUtxoLookupErrorZ a);
10641         public static native long UtxoResult_sync(long a);
10642         // struct LDKUtxoResult UtxoResult_async(struct LDKUtxoFuture a);
10643         public static native long UtxoResult_async(long a);
10644         // void UtxoLookup_free(struct LDKUtxoLookup this_ptr);
10645         public static native void UtxoLookup_free(long this_ptr);
10646         // void UtxoFuture_free(struct LDKUtxoFuture this_obj);
10647         public static native void UtxoFuture_free(long this_obj);
10648         // uint64_t UtxoFuture_clone_ptr(LDKUtxoFuture *NONNULL_PTR arg);
10649         public static native long UtxoFuture_clone_ptr(long arg);
10650         // struct LDKUtxoFuture UtxoFuture_clone(const struct LDKUtxoFuture *NONNULL_PTR orig);
10651         public static native long UtxoFuture_clone(long orig);
10652         // MUST_USE_RES struct LDKUtxoFuture UtxoFuture_new(void);
10653         public static native long UtxoFuture_new();
10654         // void UtxoFuture_resolve_without_forwarding(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, struct LDKCResult_TxOutUtxoLookupErrorZ result);
10655         public static native void UtxoFuture_resolve_without_forwarding(long this_arg, long graph, long result);
10656         // void UtxoFuture_resolve(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, const struct LDKP2PGossipSync *NONNULL_PTR gossip, struct LDKCResult_TxOutUtxoLookupErrorZ result);
10657         public static native void UtxoFuture_resolve(long this_arg, long graph, long gossip, long result);
10658         // void NodeId_free(struct LDKNodeId this_obj);
10659         public static native void NodeId_free(long this_obj);
10660         // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
10661         public static native long NodeId_clone_ptr(long arg);
10662         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
10663         public static native long NodeId_clone(long orig);
10664         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
10665         public static native long NodeId_from_pubkey(byte[] pubkey);
10666         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
10667         public static native byte[] NodeId_as_slice(long this_arg);
10668         // MUST_USE_RES struct LDKCResult_PublicKeySecp256k1ErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg);
10669         public static native long NodeId_as_pubkey(long this_arg);
10670         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
10671         public static native long NodeId_hash(long o);
10672         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
10673         public static native byte[] NodeId_write(long obj);
10674         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
10675         public static native long NodeId_read(byte[] ser);
10676         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
10677         public static native void NetworkGraph_free(long this_obj);
10678         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
10679         public static native void ReadOnlyNetworkGraph_free(long this_obj);
10680         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
10681         public static native void NetworkUpdate_free(long this_ptr);
10682         // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
10683         public static native long NetworkUpdate_clone_ptr(long arg);
10684         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
10685         public static native long NetworkUpdate_clone(long orig);
10686         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
10687         public static native long NetworkUpdate_channel_update_message(long msg);
10688         // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
10689         public static native long NetworkUpdate_channel_failure(long short_channel_id, boolean is_permanent);
10690         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
10691         public static native long NetworkUpdate_node_failure(byte[] node_id, boolean is_permanent);
10692         // bool NetworkUpdate_eq(const struct LDKNetworkUpdate *NONNULL_PTR a, const struct LDKNetworkUpdate *NONNULL_PTR b);
10693         public static native boolean NetworkUpdate_eq(long a, long b);
10694         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
10695         public static native byte[] NetworkUpdate_write(long obj);
10696         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
10697         public static native long NetworkUpdate_read(byte[] ser);
10698         // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
10699         public static native void P2PGossipSync_free(long this_obj);
10700         // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_UtxoLookupZ utxo_lookup, struct LDKLogger logger);
10701         public static native long P2PGossipSync_new(long network_graph, long utxo_lookup, long logger);
10702         // void P2PGossipSync_add_utxo_lookup(const struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup);
10703         public static native void P2PGossipSync_add_utxo_lookup(long this_arg, long utxo_lookup);
10704         // void NetworkGraph_handle_network_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNetworkUpdate *NONNULL_PTR network_update);
10705         public static native void NetworkGraph_handle_network_update(long this_arg, long network_update);
10706         // MUST_USE_RES struct LDKThirtyTwoBytes NetworkGraph_get_chain_hash(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
10707         public static native byte[] NetworkGraph_get_chain_hash(long this_arg);
10708         // struct LDKCResult_NoneLightningErrorZ verify_node_announcement(const struct LDKNodeAnnouncement *NONNULL_PTR msg);
10709         public static native long verify_node_announcement(long msg);
10710         // struct LDKCResult_NoneLightningErrorZ verify_channel_announcement(const struct LDKChannelAnnouncement *NONNULL_PTR msg);
10711         public static native long verify_channel_announcement(long msg);
10712         // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
10713         public static native long P2PGossipSync_as_RoutingMessageHandler(long this_arg);
10714         // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
10715         public static native long P2PGossipSync_as_MessageSendEventsProvider(long this_arg);
10716         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
10717         public static native void ChannelUpdateInfo_free(long this_obj);
10718         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10719         public static native int ChannelUpdateInfo_get_last_update(long this_ptr);
10720         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
10721         public static native void ChannelUpdateInfo_set_last_update(long this_ptr, int val);
10722         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10723         public static native boolean ChannelUpdateInfo_get_enabled(long this_ptr);
10724         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
10725         public static native void ChannelUpdateInfo_set_enabled(long this_ptr, boolean val);
10726         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10727         public static native short ChannelUpdateInfo_get_cltv_expiry_delta(long this_ptr);
10728         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
10729         public static native void ChannelUpdateInfo_set_cltv_expiry_delta(long this_ptr, short val);
10730         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10731         public static native long ChannelUpdateInfo_get_htlc_minimum_msat(long this_ptr);
10732         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
10733         public static native void ChannelUpdateInfo_set_htlc_minimum_msat(long this_ptr, long val);
10734         // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10735         public static native long ChannelUpdateInfo_get_htlc_maximum_msat(long this_ptr);
10736         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
10737         public static native void ChannelUpdateInfo_set_htlc_maximum_msat(long this_ptr, long val);
10738         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10739         public static native long ChannelUpdateInfo_get_fees(long this_ptr);
10740         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
10741         public static native void ChannelUpdateInfo_set_fees(long this_ptr, long val);
10742         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10743         public static native long ChannelUpdateInfo_get_last_update_message(long this_ptr);
10744         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
10745         public static native void ChannelUpdateInfo_set_last_update_message(long this_ptr, long val);
10746         // 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, uint64_t htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg);
10747         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);
10748         // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
10749         public static native long ChannelUpdateInfo_clone_ptr(long arg);
10750         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
10751         public static native long ChannelUpdateInfo_clone(long orig);
10752         // bool ChannelUpdateInfo_eq(const struct LDKChannelUpdateInfo *NONNULL_PTR a, const struct LDKChannelUpdateInfo *NONNULL_PTR b);
10753         public static native boolean ChannelUpdateInfo_eq(long a, long b);
10754         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
10755         public static native byte[] ChannelUpdateInfo_write(long obj);
10756         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
10757         public static native long ChannelUpdateInfo_read(byte[] ser);
10758         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
10759         public static native void ChannelInfo_free(long this_obj);
10760         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10761         public static native long ChannelInfo_get_features(long this_ptr);
10762         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
10763         public static native void ChannelInfo_set_features(long this_ptr, long val);
10764         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10765         public static native long ChannelInfo_get_node_one(long this_ptr);
10766         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
10767         public static native void ChannelInfo_set_node_one(long this_ptr, long val);
10768         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10769         public static native long ChannelInfo_get_one_to_two(long this_ptr);
10770         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
10771         public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
10772         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10773         public static native long ChannelInfo_get_node_two(long this_ptr);
10774         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
10775         public static native void ChannelInfo_set_node_two(long this_ptr, long val);
10776         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10777         public static native long ChannelInfo_get_two_to_one(long this_ptr);
10778         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
10779         public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
10780         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10781         public static native long ChannelInfo_get_capacity_sats(long this_ptr);
10782         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
10783         public static native void ChannelInfo_set_capacity_sats(long this_ptr, long val);
10784         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10785         public static native long ChannelInfo_get_announcement_message(long this_ptr);
10786         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
10787         public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
10788         // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
10789         public static native long ChannelInfo_clone_ptr(long arg);
10790         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
10791         public static native long ChannelInfo_clone(long orig);
10792         // bool ChannelInfo_eq(const struct LDKChannelInfo *NONNULL_PTR a, const struct LDKChannelInfo *NONNULL_PTR b);
10793         public static native boolean ChannelInfo_eq(long a, long b);
10794         // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
10795         public static native long ChannelInfo_get_directional_info(long this_arg, byte channel_flags);
10796         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
10797         public static native byte[] ChannelInfo_write(long obj);
10798         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
10799         public static native long ChannelInfo_read(byte[] ser);
10800         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
10801         public static native void DirectedChannelInfo_free(long this_obj);
10802         // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
10803         public static native long DirectedChannelInfo_clone_ptr(long arg);
10804         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
10805         public static native long DirectedChannelInfo_clone(long orig);
10806         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
10807         public static native long DirectedChannelInfo_channel(long this_arg);
10808         // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
10809         public static native long DirectedChannelInfo_htlc_maximum_msat(long this_arg);
10810         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
10811         public static native long DirectedChannelInfo_effective_capacity(long this_arg);
10812         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
10813         public static native void EffectiveCapacity_free(long this_ptr);
10814         // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
10815         public static native long EffectiveCapacity_clone_ptr(long arg);
10816         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
10817         public static native long EffectiveCapacity_clone(long orig);
10818         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
10819         public static native long EffectiveCapacity_exact_liquidity(long liquidity_msat);
10820         // struct LDKEffectiveCapacity EffectiveCapacity_advertised_max_htlc(uint64_t amount_msat);
10821         public static native long EffectiveCapacity_advertised_max_htlc(long amount_msat);
10822         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, uint64_t htlc_maximum_msat);
10823         public static native long EffectiveCapacity_total(long capacity_msat, long htlc_maximum_msat);
10824         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
10825         public static native long EffectiveCapacity_infinite();
10826         // struct LDKEffectiveCapacity EffectiveCapacity_hint_max_htlc(uint64_t amount_msat);
10827         public static native long EffectiveCapacity_hint_max_htlc(long amount_msat);
10828         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
10829         public static native long EffectiveCapacity_unknown();
10830         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
10831         public static native long EffectiveCapacity_as_msat(long this_arg);
10832         // void RoutingFees_free(struct LDKRoutingFees this_obj);
10833         public static native void RoutingFees_free(long this_obj);
10834         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
10835         public static native int RoutingFees_get_base_msat(long this_ptr);
10836         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
10837         public static native void RoutingFees_set_base_msat(long this_ptr, int val);
10838         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
10839         public static native int RoutingFees_get_proportional_millionths(long this_ptr);
10840         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
10841         public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
10842         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
10843         public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
10844         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
10845         public static native boolean RoutingFees_eq(long a, long b);
10846         // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
10847         public static native long RoutingFees_clone_ptr(long arg);
10848         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
10849         public static native long RoutingFees_clone(long orig);
10850         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
10851         public static native long RoutingFees_hash(long o);
10852         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
10853         public static native byte[] RoutingFees_write(long obj);
10854         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
10855         public static native long RoutingFees_read(byte[] ser);
10856         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
10857         public static native void NodeAnnouncementInfo_free(long this_obj);
10858         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10859         public static native long NodeAnnouncementInfo_get_features(long this_ptr);
10860         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
10861         public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
10862         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10863         public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
10864         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
10865         public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
10866         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
10867         public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
10868         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
10869         public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
10870         // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10871         public static native long NodeAnnouncementInfo_get_alias(long this_ptr);
10872         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
10873         public static native void NodeAnnouncementInfo_set_alias(long this_ptr, long val);
10874         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10875         public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
10876         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
10877         public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
10878         // 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 LDKNodeAnnouncement announcement_message_arg);
10879         public static native long NodeAnnouncementInfo_new(long features_arg, int last_update_arg, byte[] rgb_arg, long alias_arg, long announcement_message_arg);
10880         // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
10881         public static native long NodeAnnouncementInfo_clone_ptr(long arg);
10882         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
10883         public static native long NodeAnnouncementInfo_clone(long orig);
10884         // bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a, const struct LDKNodeAnnouncementInfo *NONNULL_PTR b);
10885         public static native boolean NodeAnnouncementInfo_eq(long a, long b);
10886         // MUST_USE_RES struct LDKCVec_SocketAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg);
10887         public static native long[] NodeAnnouncementInfo_addresses(long this_arg);
10888         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
10889         public static native byte[] NodeAnnouncementInfo_write(long obj);
10890         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
10891         public static native long NodeAnnouncementInfo_read(byte[] ser);
10892         // void NodeAlias_free(struct LDKNodeAlias this_obj);
10893         public static native void NodeAlias_free(long this_obj);
10894         // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
10895         public static native byte[] NodeAlias_get_a(long this_ptr);
10896         // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10897         public static native void NodeAlias_set_a(long this_ptr, byte[] val);
10898         // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
10899         public static native long NodeAlias_new(byte[] a_arg);
10900         // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
10901         public static native long NodeAlias_clone_ptr(long arg);
10902         // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
10903         public static native long NodeAlias_clone(long orig);
10904         // bool NodeAlias_eq(const struct LDKNodeAlias *NONNULL_PTR a, const struct LDKNodeAlias *NONNULL_PTR b);
10905         public static native boolean NodeAlias_eq(long a, long b);
10906         // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
10907         public static native byte[] NodeAlias_write(long obj);
10908         // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
10909         public static native long NodeAlias_read(byte[] ser);
10910         // void NodeInfo_free(struct LDKNodeInfo this_obj);
10911         public static native void NodeInfo_free(long this_obj);
10912         // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
10913         public static native long[] NodeInfo_get_channels(long this_ptr);
10914         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
10915         public static native void NodeInfo_set_channels(long this_ptr, long[] val);
10916         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
10917         public static native long NodeInfo_get_announcement_info(long this_ptr);
10918         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
10919         public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
10920         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
10921         public static native long NodeInfo_new(long[] channels_arg, long announcement_info_arg);
10922         // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
10923         public static native long NodeInfo_clone_ptr(long arg);
10924         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
10925         public static native long NodeInfo_clone(long orig);
10926         // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b);
10927         public static native boolean NodeInfo_eq(long a, long b);
10928         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
10929         public static native byte[] NodeInfo_write(long obj);
10930         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
10931         public static native long NodeInfo_read(byte[] ser);
10932         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
10933         public static native byte[] NetworkGraph_write(long obj);
10934         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
10935         public static native long NetworkGraph_read(byte[] ser, long arg);
10936         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger);
10937         public static native long NetworkGraph_new(Network network, long logger);
10938         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
10939         public static native long NetworkGraph_read_only(long this_arg);
10940         // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
10941         public static native long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long this_arg);
10942         // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
10943         public static native void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long this_arg, int last_rapid_gossip_sync_timestamp);
10944         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
10945         public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
10946         // 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);
10947         public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
10948         // 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_UtxoLookupZ utxo_lookup);
10949         public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long utxo_lookup);
10950         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement_no_lookup(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg);
10951         public static native long NetworkGraph_update_channel_from_announcement_no_lookup(long this_arg, long msg);
10952         // 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_UtxoLookupZ utxo_lookup);
10953         public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long utxo_lookup);
10954         // 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);
10955         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);
10956         // void NetworkGraph_channel_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
10957         public static native void NetworkGraph_channel_failed_permanent(long this_arg, long short_channel_id);
10958         // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
10959         public static native void NetworkGraph_node_failed_permanent(long this_arg, byte[] node_id);
10960         // void NetworkGraph_remove_stale_channels_and_tracking(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
10961         public static native void NetworkGraph_remove_stale_channels_and_tracking(long this_arg);
10962         // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
10963         public static native void NetworkGraph_remove_stale_channels_and_tracking_with_time(long this_arg, long current_time_unix);
10964         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
10965         public static native long NetworkGraph_update_channel(long this_arg, long msg);
10966         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
10967         public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
10968         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_verify_channel_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
10969         public static native long NetworkGraph_verify_channel_update(long this_arg, long msg);
10970         // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
10971         public static native long ReadOnlyNetworkGraph_channel(long this_arg, long short_channel_id);
10972         // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
10973         public static native long[] ReadOnlyNetworkGraph_list_channels(long this_arg);
10974         // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
10975         public static native long ReadOnlyNetworkGraph_node(long this_arg, long node_id);
10976         // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
10977         public static native long[] ReadOnlyNetworkGraph_list_nodes(long this_arg);
10978         // MUST_USE_RES struct LDKCOption_CVec_SocketAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
10979         public static native long ReadOnlyNetworkGraph_get_addresses(long this_arg, byte[] pubkey);
10980         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
10981         public static native void DefaultRouter_free(long this_obj);
10982         // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes, struct LDKLockableScore scorer, struct LDKProbabilisticScoringFeeParameters score_params);
10983         public static native long DefaultRouter_new(long network_graph, long logger, byte[] random_seed_bytes, long scorer, long score_params);
10984         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
10985         public static native long DefaultRouter_as_Router(long this_arg);
10986         // void Router_free(struct LDKRouter this_ptr);
10987         public static native void Router_free(long this_ptr);
10988         // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj);
10989         public static native void ScorerAccountingForInFlightHtlcs_free(long this_obj);
10990         // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScoreLookUp scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs);
10991         public static native long ScorerAccountingForInFlightHtlcs_new(long scorer, long inflight_htlcs);
10992         // struct LDKScoreLookUp ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg);
10993         public static native long ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(long this_arg);
10994         // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
10995         public static native void InFlightHtlcs_free(long this_obj);
10996         // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg);
10997         public static native long InFlightHtlcs_clone_ptr(long arg);
10998         // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig);
10999         public static native long InFlightHtlcs_clone(long orig);
11000         // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void);
11001         public static native long InFlightHtlcs_new();
11002         // void InFlightHtlcs_process_path(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, struct LDKPublicKey payer_node_id);
11003         public static native void InFlightHtlcs_process_path(long this_arg, long path, byte[] payer_node_id);
11004         // void InFlightHtlcs_add_inflight_htlc(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, uint64_t channel_scid, uint64_t used_msat);
11005         public static native void InFlightHtlcs_add_inflight_htlc(long this_arg, long source, long target, long channel_scid, long used_msat);
11006         // MUST_USE_RES struct LDKCOption_u64Z InFlightHtlcs_used_liquidity_msat(const struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, uint64_t channel_scid);
11007         public static native long InFlightHtlcs_used_liquidity_msat(long this_arg, long source, long target, long channel_scid);
11008         // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
11009         public static native byte[] InFlightHtlcs_write(long obj);
11010         // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
11011         public static native long InFlightHtlcs_read(byte[] ser);
11012         // void RouteHop_free(struct LDKRouteHop this_obj);
11013         public static native void RouteHop_free(long this_obj);
11014         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
11015         public static native byte[] RouteHop_get_pubkey(long this_ptr);
11016         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11017         public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
11018         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
11019         public static native long RouteHop_get_node_features(long this_ptr);
11020         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
11021         public static native void RouteHop_set_node_features(long this_ptr, long val);
11022         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
11023         public static native long RouteHop_get_short_channel_id(long this_ptr);
11024         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
11025         public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
11026         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
11027         public static native long RouteHop_get_channel_features(long this_ptr);
11028         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
11029         public static native void RouteHop_set_channel_features(long this_ptr, long val);
11030         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
11031         public static native long RouteHop_get_fee_msat(long this_ptr);
11032         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
11033         public static native void RouteHop_set_fee_msat(long this_ptr, long val);
11034         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
11035         public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
11036         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
11037         public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
11038         // bool RouteHop_get_maybe_announced_channel(const struct LDKRouteHop *NONNULL_PTR this_ptr);
11039         public static native boolean RouteHop_get_maybe_announced_channel(long this_ptr);
11040         // void RouteHop_set_maybe_announced_channel(struct LDKRouteHop *NONNULL_PTR this_ptr, bool val);
11041         public static native void RouteHop_set_maybe_announced_channel(long this_ptr, boolean val);
11042         // 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, bool maybe_announced_channel_arg);
11043         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, boolean maybe_announced_channel_arg);
11044         // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
11045         public static native long RouteHop_clone_ptr(long arg);
11046         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
11047         public static native long RouteHop_clone(long orig);
11048         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
11049         public static native long RouteHop_hash(long o);
11050         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
11051         public static native boolean RouteHop_eq(long a, long b);
11052         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
11053         public static native byte[] RouteHop_write(long obj);
11054         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
11055         public static native long RouteHop_read(byte[] ser);
11056         // void BlindedTail_free(struct LDKBlindedTail this_obj);
11057         public static native void BlindedTail_free(long this_obj);
11058         // struct LDKCVec_BlindedHopZ BlindedTail_get_hops(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
11059         public static native long[] BlindedTail_get_hops(long this_ptr);
11060         // void BlindedTail_set_hops(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
11061         public static native void BlindedTail_set_hops(long this_ptr, long[] val);
11062         // struct LDKPublicKey BlindedTail_get_blinding_point(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
11063         public static native byte[] BlindedTail_get_blinding_point(long this_ptr);
11064         // void BlindedTail_set_blinding_point(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11065         public static native void BlindedTail_set_blinding_point(long this_ptr, byte[] val);
11066         // uint32_t BlindedTail_get_excess_final_cltv_expiry_delta(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
11067         public static native int BlindedTail_get_excess_final_cltv_expiry_delta(long this_ptr);
11068         // void BlindedTail_set_excess_final_cltv_expiry_delta(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint32_t val);
11069         public static native void BlindedTail_set_excess_final_cltv_expiry_delta(long this_ptr, int val);
11070         // uint64_t BlindedTail_get_final_value_msat(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
11071         public static native long BlindedTail_get_final_value_msat(long this_ptr);
11072         // void BlindedTail_set_final_value_msat(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint64_t val);
11073         public static native void BlindedTail_set_final_value_msat(long this_ptr, long val);
11074         // MUST_USE_RES struct LDKBlindedTail BlindedTail_new(struct LDKCVec_BlindedHopZ hops_arg, struct LDKPublicKey blinding_point_arg, uint32_t excess_final_cltv_expiry_delta_arg, uint64_t final_value_msat_arg);
11075         public static native long BlindedTail_new(long[] hops_arg, byte[] blinding_point_arg, int excess_final_cltv_expiry_delta_arg, long final_value_msat_arg);
11076         // uint64_t BlindedTail_clone_ptr(LDKBlindedTail *NONNULL_PTR arg);
11077         public static native long BlindedTail_clone_ptr(long arg);
11078         // struct LDKBlindedTail BlindedTail_clone(const struct LDKBlindedTail *NONNULL_PTR orig);
11079         public static native long BlindedTail_clone(long orig);
11080         // uint64_t BlindedTail_hash(const struct LDKBlindedTail *NONNULL_PTR o);
11081         public static native long BlindedTail_hash(long o);
11082         // bool BlindedTail_eq(const struct LDKBlindedTail *NONNULL_PTR a, const struct LDKBlindedTail *NONNULL_PTR b);
11083         public static native boolean BlindedTail_eq(long a, long b);
11084         // struct LDKCVec_u8Z BlindedTail_write(const struct LDKBlindedTail *NONNULL_PTR obj);
11085         public static native byte[] BlindedTail_write(long obj);
11086         // struct LDKCResult_BlindedTailDecodeErrorZ BlindedTail_read(struct LDKu8slice ser);
11087         public static native long BlindedTail_read(byte[] ser);
11088         // void Path_free(struct LDKPath this_obj);
11089         public static native void Path_free(long this_obj);
11090         // struct LDKCVec_RouteHopZ Path_get_hops(const struct LDKPath *NONNULL_PTR this_ptr);
11091         public static native long[] Path_get_hops(long this_ptr);
11092         // void Path_set_hops(struct LDKPath *NONNULL_PTR this_ptr, struct LDKCVec_RouteHopZ val);
11093         public static native void Path_set_hops(long this_ptr, long[] val);
11094         // struct LDKBlindedTail Path_get_blinded_tail(const struct LDKPath *NONNULL_PTR this_ptr);
11095         public static native long Path_get_blinded_tail(long this_ptr);
11096         // void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlindedTail val);
11097         public static native void Path_set_blinded_tail(long this_ptr, long val);
11098         // MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg);
11099         public static native long Path_new(long[] hops_arg, long blinded_tail_arg);
11100         // uint64_t Path_clone_ptr(LDKPath *NONNULL_PTR arg);
11101         public static native long Path_clone_ptr(long arg);
11102         // struct LDKPath Path_clone(const struct LDKPath *NONNULL_PTR orig);
11103         public static native long Path_clone(long orig);
11104         // uint64_t Path_hash(const struct LDKPath *NONNULL_PTR o);
11105         public static native long Path_hash(long o);
11106         // bool Path_eq(const struct LDKPath *NONNULL_PTR a, const struct LDKPath *NONNULL_PTR b);
11107         public static native boolean Path_eq(long a, long b);
11108         // MUST_USE_RES uint64_t Path_fee_msat(const struct LDKPath *NONNULL_PTR this_arg);
11109         public static native long Path_fee_msat(long this_arg);
11110         // MUST_USE_RES uint64_t Path_final_value_msat(const struct LDKPath *NONNULL_PTR this_arg);
11111         public static native long Path_final_value_msat(long this_arg);
11112         // MUST_USE_RES struct LDKCOption_u32Z Path_final_cltv_expiry_delta(const struct LDKPath *NONNULL_PTR this_arg);
11113         public static native long Path_final_cltv_expiry_delta(long this_arg);
11114         // void Route_free(struct LDKRoute this_obj);
11115         public static native void Route_free(long this_obj);
11116         // struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
11117         public static native long[] Route_get_paths(long this_ptr);
11118         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val);
11119         public static native void Route_set_paths(long this_ptr, long[] val);
11120         // struct LDKRouteParameters Route_get_route_params(const struct LDKRoute *NONNULL_PTR this_ptr);
11121         public static native long Route_get_route_params(long this_ptr);
11122         // void Route_set_route_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKRouteParameters val);
11123         public static native void Route_set_route_params(long this_ptr, long val);
11124         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKRouteParameters route_params_arg);
11125         public static native long Route_new(long[] paths_arg, long route_params_arg);
11126         // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
11127         public static native long Route_clone_ptr(long arg);
11128         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
11129         public static native long Route_clone(long orig);
11130         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
11131         public static native long Route_hash(long o);
11132         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
11133         public static native boolean Route_eq(long a, long b);
11134         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
11135         public static native long Route_get_total_fees(long this_arg);
11136         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
11137         public static native long Route_get_total_amount(long this_arg);
11138         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
11139         public static native byte[] Route_write(long obj);
11140         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
11141         public static native long Route_read(byte[] ser);
11142         // void RouteParameters_free(struct LDKRouteParameters this_obj);
11143         public static native void RouteParameters_free(long this_obj);
11144         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
11145         public static native long RouteParameters_get_payment_params(long this_ptr);
11146         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
11147         public static native void RouteParameters_set_payment_params(long this_ptr, long val);
11148         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
11149         public static native long RouteParameters_get_final_value_msat(long this_ptr);
11150         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
11151         public static native void RouteParameters_set_final_value_msat(long this_ptr, long val);
11152         // struct LDKCOption_u64Z RouteParameters_get_max_total_routing_fee_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
11153         public static native long RouteParameters_get_max_total_routing_fee_msat(long this_ptr);
11154         // void RouteParameters_set_max_total_routing_fee_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
11155         public static native void RouteParameters_set_max_total_routing_fee_msat(long this_ptr, long val);
11156         // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, struct LDKCOption_u64Z max_total_routing_fee_msat_arg);
11157         public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg, long max_total_routing_fee_msat_arg);
11158         // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
11159         public static native long RouteParameters_clone_ptr(long arg);
11160         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
11161         public static native long RouteParameters_clone(long orig);
11162         // uint64_t RouteParameters_hash(const struct LDKRouteParameters *NONNULL_PTR o);
11163         public static native long RouteParameters_hash(long o);
11164         // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b);
11165         public static native boolean RouteParameters_eq(long a, long b);
11166         // MUST_USE_RES struct LDKRouteParameters RouteParameters_from_payment_params_and_value(struct LDKPaymentParameters payment_params, uint64_t final_value_msat);
11167         public static native long RouteParameters_from_payment_params_and_value(long payment_params, long final_value_msat);
11168         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
11169         public static native byte[] RouteParameters_write(long obj);
11170         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
11171         public static native long RouteParameters_read(byte[] ser);
11172         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
11173         public static native void PaymentParameters_free(long this_obj);
11174         // struct LDKPayee PaymentParameters_get_payee(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
11175         public static native long PaymentParameters_get_payee(long this_ptr);
11176         // void PaymentParameters_set_payee(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPayee val);
11177         public static native void PaymentParameters_set_payee(long this_ptr, long val);
11178         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
11179         public static native long PaymentParameters_get_expiry_time(long this_ptr);
11180         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
11181         public static native void PaymentParameters_set_expiry_time(long this_ptr, long val);
11182         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
11183         public static native int PaymentParameters_get_max_total_cltv_expiry_delta(long this_ptr);
11184         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
11185         public static native void PaymentParameters_set_max_total_cltv_expiry_delta(long this_ptr, int val);
11186         // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
11187         public static native byte PaymentParameters_get_max_path_count(long this_ptr);
11188         // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
11189         public static native void PaymentParameters_set_max_path_count(long this_ptr, byte val);
11190         // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
11191         public static native byte PaymentParameters_get_max_channel_saturation_power_of_half(long this_ptr);
11192         // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
11193         public static native void PaymentParameters_set_max_channel_saturation_power_of_half(long this_ptr, byte val);
11194         // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
11195         public static native long[] PaymentParameters_get_previously_failed_channels(long this_ptr);
11196         // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
11197         public static native void PaymentParameters_set_previously_failed_channels(long this_ptr, long[] val);
11198         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPayee payee_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg, uint8_t max_path_count_arg, uint8_t max_channel_saturation_power_of_half_arg, struct LDKCVec_u64Z previously_failed_channels_arg);
11199         public static native long PaymentParameters_new(long payee_arg, long expiry_time_arg, int max_total_cltv_expiry_delta_arg, byte max_path_count_arg, byte max_channel_saturation_power_of_half_arg, long[] previously_failed_channels_arg);
11200         // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
11201         public static native long PaymentParameters_clone_ptr(long arg);
11202         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
11203         public static native long PaymentParameters_clone(long orig);
11204         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
11205         public static native long PaymentParameters_hash(long o);
11206         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
11207         public static native boolean PaymentParameters_eq(long a, long b);
11208         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
11209         public static native byte[] PaymentParameters_write(long obj);
11210         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg);
11211         public static native long PaymentParameters_read(byte[] ser, int arg);
11212         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
11213         public static native long PaymentParameters_from_node_id(byte[] payee_pubkey, int final_cltv_expiry_delta);
11214         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta, bool allow_mpp);
11215         public static native long PaymentParameters_for_keysend(byte[] payee_pubkey, int final_cltv_expiry_delta, boolean allow_mpp);
11216         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_bolt12_invoice(const struct LDKBolt12Invoice *NONNULL_PTR invoice);
11217         public static native long PaymentParameters_from_bolt12_invoice(long invoice);
11218         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ blinded_route_hints);
11219         public static native long PaymentParameters_blinded(long[] blinded_route_hints);
11220         // void Payee_free(struct LDKPayee this_ptr);
11221         public static native void Payee_free(long this_ptr);
11222         // uint64_t Payee_clone_ptr(LDKPayee *NONNULL_PTR arg);
11223         public static native long Payee_clone_ptr(long arg);
11224         // struct LDKPayee Payee_clone(const struct LDKPayee *NONNULL_PTR orig);
11225         public static native long Payee_clone(long orig);
11226         // struct LDKPayee Payee_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ route_hints, struct LDKBolt12InvoiceFeatures features);
11227         public static native long Payee_blinded(long[] route_hints, long features);
11228         // struct LDKPayee Payee_clear(struct LDKPublicKey node_id, struct LDKCVec_RouteHintZ route_hints, struct LDKBolt11InvoiceFeatures features, uint32_t final_cltv_expiry_delta);
11229         public static native long Payee_clear(byte[] node_id, long[] route_hints, long features, int final_cltv_expiry_delta);
11230         // uint64_t Payee_hash(const struct LDKPayee *NONNULL_PTR o);
11231         public static native long Payee_hash(long o);
11232         // bool Payee_eq(const struct LDKPayee *NONNULL_PTR a, const struct LDKPayee *NONNULL_PTR b);
11233         public static native boolean Payee_eq(long a, long b);
11234         // void RouteHint_free(struct LDKRouteHint this_obj);
11235         public static native void RouteHint_free(long this_obj);
11236         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
11237         public static native long[] RouteHint_get_a(long this_ptr);
11238         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
11239         public static native void RouteHint_set_a(long this_ptr, long[] val);
11240         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
11241         public static native long RouteHint_new(long[] a_arg);
11242         // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
11243         public static native long RouteHint_clone_ptr(long arg);
11244         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
11245         public static native long RouteHint_clone(long orig);
11246         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
11247         public static native long RouteHint_hash(long o);
11248         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
11249         public static native boolean RouteHint_eq(long a, long b);
11250         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
11251         public static native byte[] RouteHint_write(long obj);
11252         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
11253         public static native long RouteHint_read(byte[] ser);
11254         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
11255         public static native void RouteHintHop_free(long this_obj);
11256         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
11257         public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
11258         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11259         public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
11260         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
11261         public static native long RouteHintHop_get_short_channel_id(long this_ptr);
11262         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
11263         public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
11264         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
11265         public static native long RouteHintHop_get_fees(long this_ptr);
11266         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
11267         public static native void RouteHintHop_set_fees(long this_ptr, long val);
11268         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
11269         public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
11270         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
11271         public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
11272         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
11273         public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
11274         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
11275         public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
11276         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
11277         public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
11278         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
11279         public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
11280         // 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);
11281         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);
11282         // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
11283         public static native long RouteHintHop_clone_ptr(long arg);
11284         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
11285         public static native long RouteHintHop_clone(long orig);
11286         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
11287         public static native long RouteHintHop_hash(long o);
11288         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
11289         public static native boolean RouteHintHop_eq(long a, long b);
11290         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
11291         public static native byte[] RouteHintHop_write(long obj);
11292         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
11293         public static native long RouteHintHop_read(byte[] ser);
11294         // 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 LDKScoreLookUp *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]);
11295         public static native long find_route(byte[] our_node_pubkey, long route_params, long network_graph, long[] first_hops, long logger, long scorer, long score_params, byte[] random_seed_bytes);
11296         // 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]);
11297         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);
11298         // void ScoreLookUp_free(struct LDKScoreLookUp this_ptr);
11299         public static native void ScoreLookUp_free(long this_ptr);
11300         // void ScoreUpdate_free(struct LDKScoreUpdate this_ptr);
11301         public static native void ScoreUpdate_free(long this_ptr);
11302         // void Score_free(struct LDKScore this_ptr);
11303         public static native void Score_free(long this_ptr);
11304         // void LockableScore_free(struct LDKLockableScore this_ptr);
11305         public static native void LockableScore_free(long this_ptr);
11306         // void WriteableScore_free(struct LDKWriteableScore this_ptr);
11307         public static native void WriteableScore_free(long this_ptr);
11308         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
11309         public static native void MultiThreadedLockableScore_free(long this_obj);
11310         // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
11311         public static native long MultiThreadedLockableScore_as_LockableScore(long this_arg);
11312         // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
11313         public static native byte[] MultiThreadedLockableScore_write(long obj);
11314         // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
11315         public static native long MultiThreadedLockableScore_as_WriteableScore(long this_arg);
11316         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
11317         public static native long MultiThreadedLockableScore_new(long score);
11318         // void MultiThreadedScoreLockRead_free(struct LDKMultiThreadedScoreLockRead this_obj);
11319         public static native void MultiThreadedScoreLockRead_free(long this_obj);
11320         // void MultiThreadedScoreLockWrite_free(struct LDKMultiThreadedScoreLockWrite this_obj);
11321         public static native void MultiThreadedScoreLockWrite_free(long this_obj);
11322         // struct LDKScoreLookUp MultiThreadedScoreLockRead_as_ScoreLookUp(const struct LDKMultiThreadedScoreLockRead *NONNULL_PTR this_arg);
11323         public static native long MultiThreadedScoreLockRead_as_ScoreLookUp(long this_arg);
11324         // struct LDKCVec_u8Z MultiThreadedScoreLockWrite_write(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR obj);
11325         public static native byte[] MultiThreadedScoreLockWrite_write(long obj);
11326         // struct LDKScoreUpdate MultiThreadedScoreLockWrite_as_ScoreUpdate(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR this_arg);
11327         public static native long MultiThreadedScoreLockWrite_as_ScoreUpdate(long this_arg);
11328         // void ChannelUsage_free(struct LDKChannelUsage this_obj);
11329         public static native void ChannelUsage_free(long this_obj);
11330         // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
11331         public static native long ChannelUsage_get_amount_msat(long this_ptr);
11332         // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
11333         public static native void ChannelUsage_set_amount_msat(long this_ptr, long val);
11334         // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
11335         public static native long ChannelUsage_get_inflight_htlc_msat(long this_ptr);
11336         // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
11337         public static native void ChannelUsage_set_inflight_htlc_msat(long this_ptr, long val);
11338         // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
11339         public static native long ChannelUsage_get_effective_capacity(long this_ptr);
11340         // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
11341         public static native void ChannelUsage_set_effective_capacity(long this_ptr, long val);
11342         // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
11343         public static native long ChannelUsage_new(long amount_msat_arg, long inflight_htlc_msat_arg, long effective_capacity_arg);
11344         // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
11345         public static native long ChannelUsage_clone_ptr(long arg);
11346         // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
11347         public static native long ChannelUsage_clone(long orig);
11348         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
11349         public static native void FixedPenaltyScorer_free(long this_obj);
11350         // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
11351         public static native long FixedPenaltyScorer_clone_ptr(long arg);
11352         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
11353         public static native long FixedPenaltyScorer_clone(long orig);
11354         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
11355         public static native long FixedPenaltyScorer_with_penalty(long penalty_msat);
11356         // struct LDKScoreLookUp FixedPenaltyScorer_as_ScoreLookUp(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
11357         public static native long FixedPenaltyScorer_as_ScoreLookUp(long this_arg);
11358         // struct LDKScoreUpdate FixedPenaltyScorer_as_ScoreUpdate(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
11359         public static native long FixedPenaltyScorer_as_ScoreUpdate(long this_arg);
11360         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
11361         public static native byte[] FixedPenaltyScorer_write(long obj);
11362         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
11363         public static native long FixedPenaltyScorer_read(byte[] ser, long arg);
11364         // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
11365         public static native void ProbabilisticScorer_free(long this_obj);
11366         // void ProbabilisticScoringFeeParameters_free(struct LDKProbabilisticScoringFeeParameters this_obj);
11367         public static native void ProbabilisticScoringFeeParameters_free(long this_obj);
11368         // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11369         public static native long ProbabilisticScoringFeeParameters_get_base_penalty_msat(long this_ptr);
11370         // void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11371         public static native void ProbabilisticScoringFeeParameters_set_base_penalty_msat(long this_ptr, long val);
11372         // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11373         public static native long ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(long this_ptr);
11374         // void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11375         public static native void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(long this_ptr, long val);
11376         // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11377         public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(long this_ptr);
11378         // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11379         public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(long this_ptr, long val);
11380         // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11381         public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(long this_ptr);
11382         // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11383         public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
11384         // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11385         public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(long this_ptr);
11386         // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11387         public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(long this_ptr, long val);
11388         // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11389         public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr);
11390         // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11391         public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
11392         // uint64_t ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11393         public static native long ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(long this_ptr);
11394         // void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11395         public static native void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(long this_ptr, long val);
11396         // uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11397         public static native long ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(long this_ptr);
11398         // void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
11399         public static native void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(long this_ptr, long val);
11400         // bool ProbabilisticScoringFeeParameters_get_linear_success_probability(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
11401         public static native boolean ProbabilisticScoringFeeParameters_get_linear_success_probability(long this_ptr);
11402         // void ProbabilisticScoringFeeParameters_set_linear_success_probability(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, bool val);
11403         public static native void ProbabilisticScoringFeeParameters_set_linear_success_probability(long this_ptr, boolean val);
11404         // uint64_t ProbabilisticScoringFeeParameters_clone_ptr(LDKProbabilisticScoringFeeParameters *NONNULL_PTR arg);
11405         public static native long ProbabilisticScoringFeeParameters_clone_ptr(long arg);
11406         // struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_clone(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR orig);
11407         public static native long ProbabilisticScoringFeeParameters_clone(long orig);
11408         // MUST_USE_RES struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_default(void);
11409         public static native long ProbabilisticScoringFeeParameters_default();
11410         // void ProbabilisticScoringFeeParameters_add_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
11411         public static native void ProbabilisticScoringFeeParameters_add_banned(long this_arg, long node_id);
11412         // void ProbabilisticScoringFeeParameters_add_banned_from_list(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
11413         public static native void ProbabilisticScoringFeeParameters_add_banned_from_list(long this_arg, long[] node_ids);
11414         // void ProbabilisticScoringFeeParameters_remove_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
11415         public static native void ProbabilisticScoringFeeParameters_remove_banned(long this_arg, long node_id);
11416         // void ProbabilisticScoringFeeParameters_set_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
11417         public static native void ProbabilisticScoringFeeParameters_set_manual_penalty(long this_arg, long node_id, long penalty);
11418         // void ProbabilisticScoringFeeParameters_remove_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
11419         public static native void ProbabilisticScoringFeeParameters_remove_manual_penalty(long this_arg, long node_id);
11420         // void ProbabilisticScoringFeeParameters_clear_manual_penalties(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg);
11421         public static native void ProbabilisticScoringFeeParameters_clear_manual_penalties(long this_arg);
11422         // void ProbabilisticScoringDecayParameters_free(struct LDKProbabilisticScoringDecayParameters this_obj);
11423         public static native void ProbabilisticScoringDecayParameters_free(long this_obj);
11424         // uint64_t ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
11425         public static native long ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(long this_ptr);
11426         // void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
11427         public static native void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(long this_ptr, long val);
11428         // uint64_t ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
11429         public static native long ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(long this_ptr);
11430         // void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
11431         public static native void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(long this_ptr, long val);
11432         // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_new(uint64_t historical_no_updates_half_life_arg, uint64_t liquidity_offset_half_life_arg);
11433         public static native long ProbabilisticScoringDecayParameters_new(long historical_no_updates_half_life_arg, long liquidity_offset_half_life_arg);
11434         // uint64_t ProbabilisticScoringDecayParameters_clone_ptr(LDKProbabilisticScoringDecayParameters *NONNULL_PTR arg);
11435         public static native long ProbabilisticScoringDecayParameters_clone_ptr(long arg);
11436         // struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_clone(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR orig);
11437         public static native long ProbabilisticScoringDecayParameters_clone(long orig);
11438         // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_default(void);
11439         public static native long ProbabilisticScoringDecayParameters_default();
11440         // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringDecayParameters decay_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
11441         public static native long ProbabilisticScorer_new(long decay_params, long network_graph, long logger);
11442         // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
11443         public static native void ProbabilisticScorer_debug_log_liquidity_stats(long this_arg);
11444         // 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);
11445         public static native long ProbabilisticScorer_estimated_channel_liquidity_range(long this_arg, long scid, long target);
11446         // MUST_USE_RES struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
11447         public static native long ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(long this_arg, long scid, long target);
11448         // MUST_USE_RES struct LDKCOption_f64Z ProbabilisticScorer_historical_estimated_payment_success_probability(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target, uint64_t amount_msat, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR params);
11449         public static native long ProbabilisticScorer_historical_estimated_payment_success_probability(long this_arg, long scid, long target, long amount_msat, long params);
11450         // struct LDKScoreLookUp ProbabilisticScorer_as_ScoreLookUp(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
11451         public static native long ProbabilisticScorer_as_ScoreLookUp(long this_arg);
11452         // struct LDKScoreUpdate ProbabilisticScorer_as_ScoreUpdate(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
11453         public static native long ProbabilisticScorer_as_ScoreUpdate(long this_arg);
11454         // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
11455         public static native long ProbabilisticScorer_as_Score(long this_arg);
11456         // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
11457         public static native byte[] ProbabilisticScorer_write(long obj);
11458         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringDecayParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
11459         public static native long ProbabilisticScorer_read(byte[] ser, long arg_a, long arg_b, long arg_c);
11460         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
11461         public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
11462         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11463         public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
11464         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
11465         public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
11466         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11467         public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
11468         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11469         public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
11470         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11471         public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
11472         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
11473         public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
11474         // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11475         public static native long DelayedPaymentOutputDescriptor_get_output(long this_ptr);
11476         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
11477         public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
11478         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11479         public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
11480         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11481         public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
11482         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
11483         public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
11484         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11485         public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
11486         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11487         public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
11488         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
11489         public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
11490         // 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);
11491         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);
11492         // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
11493         public static native long DelayedPaymentOutputDescriptor_clone_ptr(long arg);
11494         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
11495         public static native long DelayedPaymentOutputDescriptor_clone(long orig);
11496         // uint64_t DelayedPaymentOutputDescriptor_hash(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR o);
11497         public static native long DelayedPaymentOutputDescriptor_hash(long o);
11498         // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b);
11499         public static native boolean DelayedPaymentOutputDescriptor_eq(long a, long b);
11500         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
11501         public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
11502         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
11503         public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
11504         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
11505         public static native void StaticPaymentOutputDescriptor_free(long this_obj);
11506         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11507         public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
11508         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
11509         public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
11510         // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11511         public static native long StaticPaymentOutputDescriptor_get_output(long this_ptr);
11512         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
11513         public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
11514         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
11515         public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
11516         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11517         public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
11518         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11519         public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
11520         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
11521         public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
11522         // struct LDKChannelTransactionParameters StaticPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
11523         public static native long StaticPaymentOutputDescriptor_get_channel_transaction_parameters(long this_ptr);
11524         // void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
11525         public static native void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(long this_ptr, long val);
11526         // 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, struct LDKChannelTransactionParameters channel_transaction_parameters_arg);
11527         public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg, long channel_transaction_parameters_arg);
11528         // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
11529         public static native long StaticPaymentOutputDescriptor_clone_ptr(long arg);
11530         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
11531         public static native long StaticPaymentOutputDescriptor_clone(long orig);
11532         // uint64_t StaticPaymentOutputDescriptor_hash(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR o);
11533         public static native long StaticPaymentOutputDescriptor_hash(long o);
11534         // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b);
11535         public static native boolean StaticPaymentOutputDescriptor_eq(long a, long b);
11536         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ StaticPaymentOutputDescriptor_witness_script(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg);
11537         public static native long StaticPaymentOutputDescriptor_witness_script(long this_arg);
11538         // MUST_USE_RES uintptr_t StaticPaymentOutputDescriptor_max_witness_length(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg);
11539         public static native long StaticPaymentOutputDescriptor_max_witness_length(long this_arg);
11540         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
11541         public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
11542         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
11543         public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
11544         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
11545         public static native void SpendableOutputDescriptor_free(long this_ptr);
11546         // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
11547         public static native long SpendableOutputDescriptor_clone_ptr(long arg);
11548         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
11549         public static native long SpendableOutputDescriptor_clone(long orig);
11550         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
11551         public static native long SpendableOutputDescriptor_static_output(long outpoint, long output);
11552         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
11553         public static native long SpendableOutputDescriptor_delayed_payment_output(long a);
11554         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
11555         public static native long SpendableOutputDescriptor_static_payment_output(long a);
11556         // uint64_t SpendableOutputDescriptor_hash(const struct LDKSpendableOutputDescriptor *NONNULL_PTR o);
11557         public static native long SpendableOutputDescriptor_hash(long o);
11558         // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b);
11559         public static native boolean SpendableOutputDescriptor_eq(long a, long b);
11560         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
11561         public static native byte[] SpendableOutputDescriptor_write(long obj);
11562         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
11563         public static native long SpendableOutputDescriptor_read(byte[] ser);
11564         // MUST_USE_RES struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime);
11565         public static native long SpendableOutputDescriptor_create_spendable_outputs_psbt(long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, long locktime);
11566         // void ChannelDerivationParameters_free(struct LDKChannelDerivationParameters this_obj);
11567         public static native void ChannelDerivationParameters_free(long this_obj);
11568         // uint64_t ChannelDerivationParameters_get_value_satoshis(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
11569         public static native long ChannelDerivationParameters_get_value_satoshis(long this_ptr);
11570         // void ChannelDerivationParameters_set_value_satoshis(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, uint64_t val);
11571         public static native void ChannelDerivationParameters_set_value_satoshis(long this_ptr, long val);
11572         // const uint8_t (*ChannelDerivationParameters_get_keys_id(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr))[32];
11573         public static native byte[] ChannelDerivationParameters_get_keys_id(long this_ptr);
11574         // void ChannelDerivationParameters_set_keys_id(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11575         public static native void ChannelDerivationParameters_set_keys_id(long this_ptr, byte[] val);
11576         // struct LDKChannelTransactionParameters ChannelDerivationParameters_get_transaction_parameters(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
11577         public static native long ChannelDerivationParameters_get_transaction_parameters(long this_ptr);
11578         // void ChannelDerivationParameters_set_transaction_parameters(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
11579         public static native void ChannelDerivationParameters_set_transaction_parameters(long this_ptr, long val);
11580         // MUST_USE_RES struct LDKChannelDerivationParameters ChannelDerivationParameters_new(uint64_t value_satoshis_arg, struct LDKThirtyTwoBytes keys_id_arg, struct LDKChannelTransactionParameters transaction_parameters_arg);
11581         public static native long ChannelDerivationParameters_new(long value_satoshis_arg, byte[] keys_id_arg, long transaction_parameters_arg);
11582         // uint64_t ChannelDerivationParameters_clone_ptr(LDKChannelDerivationParameters *NONNULL_PTR arg);
11583         public static native long ChannelDerivationParameters_clone_ptr(long arg);
11584         // struct LDKChannelDerivationParameters ChannelDerivationParameters_clone(const struct LDKChannelDerivationParameters *NONNULL_PTR orig);
11585         public static native long ChannelDerivationParameters_clone(long orig);
11586         // bool ChannelDerivationParameters_eq(const struct LDKChannelDerivationParameters *NONNULL_PTR a, const struct LDKChannelDerivationParameters *NONNULL_PTR b);
11587         public static native boolean ChannelDerivationParameters_eq(long a, long b);
11588         // struct LDKCVec_u8Z ChannelDerivationParameters_write(const struct LDKChannelDerivationParameters *NONNULL_PTR obj);
11589         public static native byte[] ChannelDerivationParameters_write(long obj);
11590         // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ ChannelDerivationParameters_read(struct LDKu8slice ser);
11591         public static native long ChannelDerivationParameters_read(byte[] ser);
11592         // void HTLCDescriptor_free(struct LDKHTLCDescriptor this_obj);
11593         public static native void HTLCDescriptor_free(long this_obj);
11594         // struct LDKChannelDerivationParameters HTLCDescriptor_get_channel_derivation_parameters(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11595         public static native long HTLCDescriptor_get_channel_derivation_parameters(long this_ptr);
11596         // void HTLCDescriptor_set_channel_derivation_parameters(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
11597         public static native void HTLCDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
11598         // uint64_t HTLCDescriptor_get_per_commitment_number(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11599         public static native long HTLCDescriptor_get_per_commitment_number(long this_ptr);
11600         // void HTLCDescriptor_set_per_commitment_number(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint64_t val);
11601         public static native void HTLCDescriptor_set_per_commitment_number(long this_ptr, long val);
11602         // struct LDKPublicKey HTLCDescriptor_get_per_commitment_point(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11603         public static native byte[] HTLCDescriptor_get_per_commitment_point(long this_ptr);
11604         // void HTLCDescriptor_set_per_commitment_point(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11605         public static native void HTLCDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
11606         // uint32_t HTLCDescriptor_get_feerate_per_kw(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11607         public static native int HTLCDescriptor_get_feerate_per_kw(long this_ptr);
11608         // void HTLCDescriptor_set_feerate_per_kw(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint32_t val);
11609         public static native void HTLCDescriptor_set_feerate_per_kw(long this_ptr, int val);
11610         // struct LDKHTLCOutputInCommitment HTLCDescriptor_get_htlc(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11611         public static native long HTLCDescriptor_get_htlc(long this_ptr);
11612         // void HTLCDescriptor_set_htlc(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKHTLCOutputInCommitment val);
11613         public static native void HTLCDescriptor_set_htlc(long this_ptr, long val);
11614         // struct LDKCOption_ThirtyTwoBytesZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11615         public static native long HTLCDescriptor_get_preimage(long this_ptr);
11616         // void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
11617         public static native void HTLCDescriptor_set_preimage(long this_ptr, long val);
11618         // struct LDKECDSASignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11619         public static native byte[] HTLCDescriptor_get_counterparty_sig(long this_ptr);
11620         // void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
11621         public static native void HTLCDescriptor_set_counterparty_sig(long this_ptr, byte[] val);
11622         // uint64_t HTLCDescriptor_clone_ptr(LDKHTLCDescriptor *NONNULL_PTR arg);
11623         public static native long HTLCDescriptor_clone_ptr(long arg);
11624         // struct LDKHTLCDescriptor HTLCDescriptor_clone(const struct LDKHTLCDescriptor *NONNULL_PTR orig);
11625         public static native long HTLCDescriptor_clone(long orig);
11626         // bool HTLCDescriptor_eq(const struct LDKHTLCDescriptor *NONNULL_PTR a, const struct LDKHTLCDescriptor *NONNULL_PTR b);
11627         public static native boolean HTLCDescriptor_eq(long a, long b);
11628         // struct LDKCVec_u8Z HTLCDescriptor_write(const struct LDKHTLCDescriptor *NONNULL_PTR obj);
11629         public static native byte[] HTLCDescriptor_write(long obj);
11630         // struct LDKCResult_HTLCDescriptorDecodeErrorZ HTLCDescriptor_read(struct LDKu8slice ser);
11631         public static native long HTLCDescriptor_read(byte[] ser);
11632         // MUST_USE_RES struct LDKOutPoint HTLCDescriptor_outpoint(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11633         public static native long HTLCDescriptor_outpoint(long this_arg);
11634         // MUST_USE_RES struct LDKTxOut HTLCDescriptor_previous_utxo(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11635         public static native long HTLCDescriptor_previous_utxo(long this_arg);
11636         // MUST_USE_RES struct LDKTxIn HTLCDescriptor_unsigned_tx_input(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11637         public static native long HTLCDescriptor_unsigned_tx_input(long this_arg);
11638         // MUST_USE_RES struct LDKTxOut HTLCDescriptor_tx_output(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11639         public static native long HTLCDescriptor_tx_output(long this_arg);
11640         // MUST_USE_RES struct LDKCVec_u8Z HTLCDescriptor_witness_script(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11641         public static native byte[] HTLCDescriptor_witness_script(long this_arg);
11642         // MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature, struct LDKu8slice witness_script);
11643         public static native byte[] HTLCDescriptor_tx_input_witness(long this_arg, byte[] signature, byte[] witness_script);
11644         // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner HTLCDescriptor_derive_channel_signer(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
11645         public static native long HTLCDescriptor_derive_channel_signer(long this_arg, long signer_provider);
11646         // void ChannelSigner_free(struct LDKChannelSigner this_ptr);
11647         public static native void ChannelSigner_free(long this_ptr);
11648         // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr);
11649         public static native void EcdsaChannelSigner_free(long this_ptr);
11650         // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg);
11651         public static native long WriteableEcdsaChannelSigner_clone_ptr(long arg);
11652         // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig);
11653         public static native long WriteableEcdsaChannelSigner_clone(long orig);
11654         // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr);
11655         public static native void WriteableEcdsaChannelSigner_free(long this_ptr);
11656         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
11657         public static native Recipient Recipient_clone(long orig);
11658         // enum LDKRecipient Recipient_node(void);
11659         public static native Recipient Recipient_node();
11660         // enum LDKRecipient Recipient_phantom_node(void);
11661         public static native Recipient Recipient_phantom_node();
11662         // void EntropySource_free(struct LDKEntropySource this_ptr);
11663         public static native void EntropySource_free(long this_ptr);
11664         // void NodeSigner_free(struct LDKNodeSigner this_ptr);
11665         public static native void NodeSigner_free(long this_ptr);
11666         // void SignerProvider_free(struct LDKSignerProvider this_ptr);
11667         public static native void SignerProvider_free(long this_ptr);
11668         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
11669         public static native void InMemorySigner_free(long this_obj);
11670         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
11671         public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
11672         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
11673         public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
11674         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
11675         public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
11676         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
11677         public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
11678         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
11679         public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
11680         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
11681         public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
11682         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
11683         public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
11684         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
11685         public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
11686         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
11687         public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
11688         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
11689         public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
11690         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
11691         public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
11692         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11693         public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
11694         // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
11695         public static native long InMemorySigner_clone_ptr(long arg);
11696         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
11697         public static native long InMemorySigner_clone(long orig);
11698         // MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id, struct LDKThirtyTwoBytes rand_bytes_unique_start);
11699         public static native long InMemorySigner_new(byte[] funding_key, byte[] revocation_base_key, byte[] payment_key, byte[] delayed_payment_base_key, byte[] htlc_base_key, byte[] commitment_seed, long channel_value_satoshis, byte[] channel_keys_id, byte[] rand_bytes_unique_start);
11700         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11701         public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
11702         // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11703         public static native long InMemorySigner_counterparty_selected_contest_delay(long this_arg);
11704         // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11705         public static native long InMemorySigner_holder_selected_contest_delay(long this_arg);
11706         // MUST_USE_RES struct LDKCOption_boolZ InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11707         public static native long InMemorySigner_is_outbound(long this_arg);
11708         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11709         public static native long InMemorySigner_funding_outpoint(long this_arg);
11710         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11711         public static native long InMemorySigner_get_channel_parameters(long this_arg);
11712         // MUST_USE_RES struct LDKChannelTypeFeatures InMemorySigner_channel_type_features(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11713         public static native long InMemorySigner_channel_type_features(long this_arg);
11714         // 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);
11715         public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
11716         // 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);
11717         public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
11718         // struct LDKEntropySource InMemorySigner_as_EntropySource(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11719         public static native long InMemorySigner_as_EntropySource(long this_arg);
11720         // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11721         public static native long InMemorySigner_as_ChannelSigner(long this_arg);
11722         // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11723         public static native long InMemorySigner_as_EcdsaChannelSigner(long this_arg);
11724         // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
11725         public static native long InMemorySigner_as_WriteableEcdsaChannelSigner(long this_arg);
11726         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
11727         public static native byte[] InMemorySigner_write(long obj);
11728         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKEntropySource arg);
11729         public static native long InMemorySigner_read(byte[] ser, long arg);
11730         // void KeysManager_free(struct LDKKeysManager this_obj);
11731         public static native void KeysManager_free(long this_obj);
11732         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
11733         public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
11734         // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg);
11735         public static native byte[] KeysManager_get_node_secret_key(long this_arg);
11736         // 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]);
11737         public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
11738         // MUST_USE_RES struct LDKCResult_CVec_u8ZNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt);
11739         public static native long KeysManager_sign_spendable_outputs_psbt(long this_arg, long[] descriptors, byte[] psbt);
11740         // 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, struct LDKCOption_u32Z locktime);
11741         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, long locktime);
11742         // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg);
11743         public static native long KeysManager_as_EntropySource(long this_arg);
11744         // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg);
11745         public static native long KeysManager_as_NodeSigner(long this_arg);
11746         // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg);
11747         public static native long KeysManager_as_SignerProvider(long this_arg);
11748         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
11749         public static native void PhantomKeysManager_free(long this_obj);
11750         // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
11751         public static native long PhantomKeysManager_as_EntropySource(long this_arg);
11752         // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
11753         public static native long PhantomKeysManager_as_NodeSigner(long this_arg);
11754         // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
11755         public static native long PhantomKeysManager_as_SignerProvider(long this_arg);
11756         // 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]);
11757         public static native long PhantomKeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed);
11758         // 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, struct LDKCOption_u32Z locktime);
11759         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, long locktime);
11760         // 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]);
11761         public static native long PhantomKeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
11762         // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
11763         public static native byte[] PhantomKeysManager_get_node_secret_key(long this_arg);
11764         // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
11765         public static native byte[] PhantomKeysManager_get_phantom_node_secret_key(long this_arg);
11766         // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
11767         public static native void OnionMessenger_free(long this_obj);
11768         // void MessageRouter_free(struct LDKMessageRouter this_ptr);
11769         public static native void MessageRouter_free(long this_ptr);
11770         // void DefaultMessageRouter_free(struct LDKDefaultMessageRouter this_obj);
11771         public static native void DefaultMessageRouter_free(long this_obj);
11772         // MUST_USE_RES struct LDKDefaultMessageRouter DefaultMessageRouter_new(void);
11773         public static native long DefaultMessageRouter_new();
11774         // struct LDKMessageRouter DefaultMessageRouter_as_MessageRouter(const struct LDKDefaultMessageRouter *NONNULL_PTR this_arg);
11775         public static native long DefaultMessageRouter_as_MessageRouter(long this_arg);
11776         // void OnionMessagePath_free(struct LDKOnionMessagePath this_obj);
11777         public static native void OnionMessagePath_free(long this_obj);
11778         // struct LDKCVec_PublicKeyZ OnionMessagePath_get_intermediate_nodes(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
11779         public static native byte[][] OnionMessagePath_get_intermediate_nodes(long this_ptr);
11780         // void OnionMessagePath_set_intermediate_nodes(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCVec_PublicKeyZ val);
11781         public static native void OnionMessagePath_set_intermediate_nodes(long this_ptr, byte[][] val);
11782         // struct LDKDestination OnionMessagePath_get_destination(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
11783         public static native long OnionMessagePath_get_destination(long this_ptr);
11784         // void OnionMessagePath_set_destination(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKDestination val);
11785         public static native void OnionMessagePath_set_destination(long this_ptr, long val);
11786         // MUST_USE_RES struct LDKOnionMessagePath OnionMessagePath_new(struct LDKCVec_PublicKeyZ intermediate_nodes_arg, struct LDKDestination destination_arg);
11787         public static native long OnionMessagePath_new(byte[][] intermediate_nodes_arg, long destination_arg);
11788         // uint64_t OnionMessagePath_clone_ptr(LDKOnionMessagePath *NONNULL_PTR arg);
11789         public static native long OnionMessagePath_clone_ptr(long arg);
11790         // struct LDKOnionMessagePath OnionMessagePath_clone(const struct LDKOnionMessagePath *NONNULL_PTR orig);
11791         public static native long OnionMessagePath_clone(long orig);
11792         // void Destination_free(struct LDKDestination this_ptr);
11793         public static native void Destination_free(long this_ptr);
11794         // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg);
11795         public static native long Destination_clone_ptr(long arg);
11796         // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig);
11797         public static native long Destination_clone(long orig);
11798         // struct LDKDestination Destination_node(struct LDKPublicKey a);
11799         public static native long Destination_node(byte[] a);
11800         // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a);
11801         public static native long Destination_blinded_path(long a);
11802         // void SendError_free(struct LDKSendError this_ptr);
11803         public static native void SendError_free(long this_ptr);
11804         // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
11805         public static native long SendError_clone_ptr(long arg);
11806         // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
11807         public static native long SendError_clone(long orig);
11808         // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
11809         public static native long SendError_secp256k1(Secp256k1Error a);
11810         // struct LDKSendError SendError_too_big_packet(void);
11811         public static native long SendError_too_big_packet();
11812         // struct LDKSendError SendError_too_few_blinded_hops(void);
11813         public static native long SendError_too_few_blinded_hops();
11814         // struct LDKSendError SendError_invalid_first_hop(void);
11815         public static native long SendError_invalid_first_hop();
11816         // struct LDKSendError SendError_invalid_message(void);
11817         public static native long SendError_invalid_message();
11818         // struct LDKSendError SendError_buffer_full(void);
11819         public static native long SendError_buffer_full();
11820         // struct LDKSendError SendError_get_node_id_failed(void);
11821         public static native long SendError_get_node_id_failed();
11822         // struct LDKSendError SendError_blinded_path_advance_failed(void);
11823         public static native long SendError_blinded_path_advance_failed();
11824         // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b);
11825         public static native boolean SendError_eq(long a, long b);
11826         // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr);
11827         public static native void CustomOnionMessageHandler_free(long this_ptr);
11828         // void PeeledOnion_free(struct LDKPeeledOnion this_ptr);
11829         public static native void PeeledOnion_free(long this_ptr);
11830         // uint64_t PeeledOnion_clone_ptr(LDKPeeledOnion *NONNULL_PTR arg);
11831         public static native long PeeledOnion_clone_ptr(long arg);
11832         // struct LDKPeeledOnion PeeledOnion_clone(const struct LDKPeeledOnion *NONNULL_PTR orig);
11833         public static native long PeeledOnion_clone(long orig);
11834         // struct LDKPeeledOnion PeeledOnion_forward(struct LDKPublicKey a, struct LDKOnionMessage b);
11835         public static native long PeeledOnion_forward(byte[] a, long b);
11836         // struct LDKPeeledOnion PeeledOnion_receive(struct LDKParsedOnionMessageContents a, struct LDKThirtyTwoBytes b, struct LDKBlindedPath c);
11837         public static native long PeeledOnion_receive(long a, byte[] b, long c);
11838         // struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path);
11839         public static native long create_onion_message(long entropy_source, long node_signer, long path, long contents, long reply_path);
11840         // struct LDKCResult_PeeledOnionNoneZ peel_onion_message(const struct LDKOnionMessage *NONNULL_PTR msg, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler);
11841         public static native long peel_onion_message(long msg, long node_signer, long logger, long custom_handler);
11842         // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKMessageRouter message_router, struct LDKOffersMessageHandler offers_handler, struct LDKCustomOnionMessageHandler custom_handler);
11843         public static native long OnionMessenger_new(long entropy_source, long node_signer, long logger, long message_router, long offers_handler, long custom_handler);
11844         // MUST_USE_RES struct LDKCResult_NoneSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path);
11845         public static native long OnionMessenger_send_onion_message(long this_arg, long path, long contents, long reply_path);
11846         // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
11847         public static native long OnionMessenger_as_OnionMessageHandler(long this_arg);
11848         // void OffersMessageHandler_free(struct LDKOffersMessageHandler this_ptr);
11849         public static native void OffersMessageHandler_free(long this_ptr);
11850         // void OffersMessage_free(struct LDKOffersMessage this_ptr);
11851         public static native void OffersMessage_free(long this_ptr);
11852         // uint64_t OffersMessage_clone_ptr(LDKOffersMessage *NONNULL_PTR arg);
11853         public static native long OffersMessage_clone_ptr(long arg);
11854         // struct LDKOffersMessage OffersMessage_clone(const struct LDKOffersMessage *NONNULL_PTR orig);
11855         public static native long OffersMessage_clone(long orig);
11856         // struct LDKOffersMessage OffersMessage_invoice_request(struct LDKInvoiceRequest a);
11857         public static native long OffersMessage_invoice_request(long a);
11858         // struct LDKOffersMessage OffersMessage_invoice(struct LDKBolt12Invoice a);
11859         public static native long OffersMessage_invoice(long a);
11860         // struct LDKOffersMessage OffersMessage_invoice_error(struct LDKInvoiceError a);
11861         public static native long OffersMessage_invoice_error(long a);
11862         // MUST_USE_RES bool OffersMessage_is_known_type(uint64_t tlv_type);
11863         public static native boolean OffersMessage_is_known_type(long tlv_type);
11864         // struct LDKCVec_u8Z OffersMessage_write(const struct LDKOffersMessage *NONNULL_PTR obj);
11865         public static native byte[] OffersMessage_write(long obj);
11866         // struct LDKCResult_OffersMessageDecodeErrorZ OffersMessage_read(struct LDKu8slice ser, uint64_t arg_a, const struct LDKLogger *NONNULL_PTR arg_b);
11867         public static native long OffersMessage_read(byte[] ser, long arg_a, long arg_b);
11868         // void Packet_free(struct LDKPacket this_obj);
11869         public static native void Packet_free(long this_obj);
11870         // uint8_t Packet_get_version(const struct LDKPacket *NONNULL_PTR this_ptr);
11871         public static native byte Packet_get_version(long this_ptr);
11872         // void Packet_set_version(struct LDKPacket *NONNULL_PTR this_ptr, uint8_t val);
11873         public static native void Packet_set_version(long this_ptr, byte val);
11874         // struct LDKPublicKey Packet_get_public_key(const struct LDKPacket *NONNULL_PTR this_ptr);
11875         public static native byte[] Packet_get_public_key(long this_ptr);
11876         // void Packet_set_public_key(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11877         public static native void Packet_set_public_key(long this_ptr, byte[] val);
11878         // struct LDKCVec_u8Z Packet_get_hop_data(const struct LDKPacket *NONNULL_PTR this_ptr);
11879         public static native byte[] Packet_get_hop_data(long this_ptr);
11880         // void Packet_set_hop_data(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
11881         public static native void Packet_set_hop_data(long this_ptr, byte[] val);
11882         // const uint8_t (*Packet_get_hmac(const struct LDKPacket *NONNULL_PTR this_ptr))[32];
11883         public static native byte[] Packet_get_hmac(long this_ptr);
11884         // void Packet_set_hmac(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11885         public static native void Packet_set_hmac(long this_ptr, byte[] val);
11886         // MUST_USE_RES struct LDKPacket Packet_new(uint8_t version_arg, struct LDKPublicKey public_key_arg, struct LDKCVec_u8Z hop_data_arg, struct LDKThirtyTwoBytes hmac_arg);
11887         public static native long Packet_new(byte version_arg, byte[] public_key_arg, byte[] hop_data_arg, byte[] hmac_arg);
11888         // uint64_t Packet_clone_ptr(LDKPacket *NONNULL_PTR arg);
11889         public static native long Packet_clone_ptr(long arg);
11890         // struct LDKPacket Packet_clone(const struct LDKPacket *NONNULL_PTR orig);
11891         public static native long Packet_clone(long orig);
11892         // bool Packet_eq(const struct LDKPacket *NONNULL_PTR a, const struct LDKPacket *NONNULL_PTR b);
11893         public static native boolean Packet_eq(long a, long b);
11894         // struct LDKCVec_u8Z Packet_write(const struct LDKPacket *NONNULL_PTR obj);
11895         public static native byte[] Packet_write(long obj);
11896         // void ParsedOnionMessageContents_free(struct LDKParsedOnionMessageContents this_ptr);
11897         public static native void ParsedOnionMessageContents_free(long this_ptr);
11898         // uint64_t ParsedOnionMessageContents_clone_ptr(LDKParsedOnionMessageContents *NONNULL_PTR arg);
11899         public static native long ParsedOnionMessageContents_clone_ptr(long arg);
11900         // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_clone(const struct LDKParsedOnionMessageContents *NONNULL_PTR orig);
11901         public static native long ParsedOnionMessageContents_clone(long orig);
11902         // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_offers(struct LDKOffersMessage a);
11903         public static native long ParsedOnionMessageContents_offers(long a);
11904         // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_custom(struct LDKOnionMessageContents a);
11905         public static native long ParsedOnionMessageContents_custom(long a);
11906         // struct LDKOnionMessageContents ParsedOnionMessageContents_as_OnionMessageContents(const struct LDKParsedOnionMessageContents *NONNULL_PTR this_arg);
11907         public static native long ParsedOnionMessageContents_as_OnionMessageContents(long this_arg);
11908         // struct LDKCVec_u8Z ParsedOnionMessageContents_write(const struct LDKParsedOnionMessageContents *NONNULL_PTR obj);
11909         public static native byte[] ParsedOnionMessageContents_write(long obj);
11910         // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg);
11911         public static native long OnionMessageContents_clone_ptr(long arg);
11912         // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig);
11913         public static native long OnionMessageContents_clone(long orig);
11914         // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr);
11915         public static native void OnionMessageContents_free(long this_ptr);
11916         // void BlindedPath_free(struct LDKBlindedPath this_obj);
11917         public static native void BlindedPath_free(long this_obj);
11918         // struct LDKPublicKey BlindedPath_get_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
11919         public static native byte[] BlindedPath_get_introduction_node_id(long this_ptr);
11920         // void BlindedPath_set_introduction_node_id(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11921         public static native void BlindedPath_set_introduction_node_id(long this_ptr, byte[] val);
11922         // struct LDKPublicKey BlindedPath_get_blinding_point(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
11923         public static native byte[] BlindedPath_get_blinding_point(long this_ptr);
11924         // void BlindedPath_set_blinding_point(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11925         public static native void BlindedPath_set_blinding_point(long this_ptr, byte[] val);
11926         // struct LDKCVec_BlindedHopZ BlindedPath_get_blinded_hops(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
11927         public static native long[] BlindedPath_get_blinded_hops(long this_ptr);
11928         // void BlindedPath_set_blinded_hops(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
11929         public static native void BlindedPath_set_blinded_hops(long this_ptr, long[] val);
11930         // MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKPublicKey introduction_node_id_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg);
11931         public static native long BlindedPath_new(byte[] introduction_node_id_arg, byte[] blinding_point_arg, long[] blinded_hops_arg);
11932         // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg);
11933         public static native long BlindedPath_clone_ptr(long arg);
11934         // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig);
11935         public static native long BlindedPath_clone(long orig);
11936         // uint64_t BlindedPath_hash(const struct LDKBlindedPath *NONNULL_PTR o);
11937         public static native long BlindedPath_hash(long o);
11938         // bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDKBlindedPath *NONNULL_PTR b);
11939         public static native boolean BlindedPath_eq(long a, long b);
11940         // void BlindedHop_free(struct LDKBlindedHop this_obj);
11941         public static native void BlindedHop_free(long this_obj);
11942         // struct LDKPublicKey BlindedHop_get_blinded_node_id(const struct LDKBlindedHop *NONNULL_PTR this_ptr);
11943         public static native byte[] BlindedHop_get_blinded_node_id(long this_ptr);
11944         // void BlindedHop_set_blinded_node_id(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11945         public static native void BlindedHop_set_blinded_node_id(long this_ptr, byte[] val);
11946         // struct LDKCVec_u8Z BlindedHop_get_encrypted_payload(const struct LDKBlindedHop *NONNULL_PTR this_ptr);
11947         public static native byte[] BlindedHop_get_encrypted_payload(long this_ptr);
11948         // void BlindedHop_set_encrypted_payload(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
11949         public static native void BlindedHop_set_encrypted_payload(long this_ptr, byte[] val);
11950         // MUST_USE_RES struct LDKBlindedHop BlindedHop_new(struct LDKPublicKey blinded_node_id_arg, struct LDKCVec_u8Z encrypted_payload_arg);
11951         public static native long BlindedHop_new(byte[] blinded_node_id_arg, byte[] encrypted_payload_arg);
11952         // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg);
11953         public static native long BlindedHop_clone_ptr(long arg);
11954         // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig);
11955         public static native long BlindedHop_clone(long orig);
11956         // uint64_t BlindedHop_hash(const struct LDKBlindedHop *NONNULL_PTR o);
11957         public static native long BlindedHop_hash(long o);
11958         // bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBlindedHop *NONNULL_PTR b);
11959         public static native boolean BlindedHop_eq(long a, long b);
11960         // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_one_hop_for_message(struct LDKPublicKey recipient_node_id, const struct LDKEntropySource *NONNULL_PTR entropy_source);
11961         public static native long BlindedPath_one_hop_for_message(byte[] recipient_node_id, long entropy_source);
11962         // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source);
11963         public static native long BlindedPath_new_for_message(byte[][] node_pks, long entropy_source);
11964         // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, const struct LDKEntropySource *NONNULL_PTR entropy_source);
11965         public static native long BlindedPath_one_hop_for_payment(byte[] payee_node_id, long payee_tlvs, long entropy_source);
11966         // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj);
11967         public static native byte[] BlindedPath_write(long obj);
11968         // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser);
11969         public static native long BlindedPath_read(byte[] ser);
11970         // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
11971         public static native byte[] BlindedHop_write(long obj);
11972         // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
11973         public static native long BlindedHop_read(byte[] ser);
11974         // void ForwardNode_free(struct LDKForwardNode this_obj);
11975         public static native void ForwardNode_free(long this_obj);
11976         // struct LDKForwardTlvs ForwardNode_get_tlvs(const struct LDKForwardNode *NONNULL_PTR this_ptr);
11977         public static native long ForwardNode_get_tlvs(long this_ptr);
11978         // void ForwardNode_set_tlvs(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKForwardTlvs val);
11979         public static native void ForwardNode_set_tlvs(long this_ptr, long val);
11980         // struct LDKPublicKey ForwardNode_get_node_id(const struct LDKForwardNode *NONNULL_PTR this_ptr);
11981         public static native byte[] ForwardNode_get_node_id(long this_ptr);
11982         // void ForwardNode_set_node_id(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11983         public static native void ForwardNode_set_node_id(long this_ptr, byte[] val);
11984         // uint64_t ForwardNode_get_htlc_maximum_msat(const struct LDKForwardNode *NONNULL_PTR this_ptr);
11985         public static native long ForwardNode_get_htlc_maximum_msat(long this_ptr);
11986         // void ForwardNode_set_htlc_maximum_msat(struct LDKForwardNode *NONNULL_PTR this_ptr, uint64_t val);
11987         public static native void ForwardNode_set_htlc_maximum_msat(long this_ptr, long val);
11988         // MUST_USE_RES struct LDKForwardNode ForwardNode_new(struct LDKForwardTlvs tlvs_arg, struct LDKPublicKey node_id_arg, uint64_t htlc_maximum_msat_arg);
11989         public static native long ForwardNode_new(long tlvs_arg, byte[] node_id_arg, long htlc_maximum_msat_arg);
11990         // uint64_t ForwardNode_clone_ptr(LDKForwardNode *NONNULL_PTR arg);
11991         public static native long ForwardNode_clone_ptr(long arg);
11992         // struct LDKForwardNode ForwardNode_clone(const struct LDKForwardNode *NONNULL_PTR orig);
11993         public static native long ForwardNode_clone(long orig);
11994         // void ForwardTlvs_free(struct LDKForwardTlvs this_obj);
11995         public static native void ForwardTlvs_free(long this_obj);
11996         // uint64_t ForwardTlvs_get_short_channel_id(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
11997         public static native long ForwardTlvs_get_short_channel_id(long this_ptr);
11998         // void ForwardTlvs_set_short_channel_id(struct LDKForwardTlvs *NONNULL_PTR this_ptr, uint64_t val);
11999         public static native void ForwardTlvs_set_short_channel_id(long this_ptr, long val);
12000         // struct LDKPaymentRelay ForwardTlvs_get_payment_relay(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
12001         public static native long ForwardTlvs_get_payment_relay(long this_ptr);
12002         // void ForwardTlvs_set_payment_relay(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentRelay val);
12003         public static native void ForwardTlvs_set_payment_relay(long this_ptr, long val);
12004         // struct LDKPaymentConstraints ForwardTlvs_get_payment_constraints(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
12005         public static native long ForwardTlvs_get_payment_constraints(long this_ptr);
12006         // void ForwardTlvs_set_payment_constraints(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val);
12007         public static native void ForwardTlvs_set_payment_constraints(long this_ptr, long val);
12008         // struct LDKBlindedHopFeatures ForwardTlvs_get_features(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
12009         public static native long ForwardTlvs_get_features(long this_ptr);
12010         // void ForwardTlvs_set_features(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
12011         public static native void ForwardTlvs_set_features(long this_ptr, long val);
12012         // MUST_USE_RES struct LDKForwardTlvs ForwardTlvs_new(uint64_t short_channel_id_arg, struct LDKPaymentRelay payment_relay_arg, struct LDKPaymentConstraints payment_constraints_arg, struct LDKBlindedHopFeatures features_arg);
12013         public static native long ForwardTlvs_new(long short_channel_id_arg, long payment_relay_arg, long payment_constraints_arg, long features_arg);
12014         // uint64_t ForwardTlvs_clone_ptr(LDKForwardTlvs *NONNULL_PTR arg);
12015         public static native long ForwardTlvs_clone_ptr(long arg);
12016         // struct LDKForwardTlvs ForwardTlvs_clone(const struct LDKForwardTlvs *NONNULL_PTR orig);
12017         public static native long ForwardTlvs_clone(long orig);
12018         // void ReceiveTlvs_free(struct LDKReceiveTlvs this_obj);
12019         public static native void ReceiveTlvs_free(long this_obj);
12020         // const uint8_t (*ReceiveTlvs_get_payment_secret(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr))[32];
12021         public static native byte[] ReceiveTlvs_get_payment_secret(long this_ptr);
12022         // void ReceiveTlvs_set_payment_secret(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12023         public static native void ReceiveTlvs_set_payment_secret(long this_ptr, byte[] val);
12024         // struct LDKPaymentConstraints ReceiveTlvs_get_payment_constraints(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr);
12025         public static native long ReceiveTlvs_get_payment_constraints(long this_ptr);
12026         // void ReceiveTlvs_set_payment_constraints(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val);
12027         public static native void ReceiveTlvs_set_payment_constraints(long this_ptr, long val);
12028         // MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg);
12029         public static native long ReceiveTlvs_new(byte[] payment_secret_arg, long payment_constraints_arg);
12030         // uint64_t ReceiveTlvs_clone_ptr(LDKReceiveTlvs *NONNULL_PTR arg);
12031         public static native long ReceiveTlvs_clone_ptr(long arg);
12032         // struct LDKReceiveTlvs ReceiveTlvs_clone(const struct LDKReceiveTlvs *NONNULL_PTR orig);
12033         public static native long ReceiveTlvs_clone(long orig);
12034         // void PaymentRelay_free(struct LDKPaymentRelay this_obj);
12035         public static native void PaymentRelay_free(long this_obj);
12036         // uint16_t PaymentRelay_get_cltv_expiry_delta(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
12037         public static native short PaymentRelay_get_cltv_expiry_delta(long this_ptr);
12038         // void PaymentRelay_set_cltv_expiry_delta(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint16_t val);
12039         public static native void PaymentRelay_set_cltv_expiry_delta(long this_ptr, short val);
12040         // uint32_t PaymentRelay_get_fee_proportional_millionths(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
12041         public static native int PaymentRelay_get_fee_proportional_millionths(long this_ptr);
12042         // void PaymentRelay_set_fee_proportional_millionths(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val);
12043         public static native void PaymentRelay_set_fee_proportional_millionths(long this_ptr, int val);
12044         // uint32_t PaymentRelay_get_fee_base_msat(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
12045         public static native int PaymentRelay_get_fee_base_msat(long this_ptr);
12046         // void PaymentRelay_set_fee_base_msat(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val);
12047         public static native void PaymentRelay_set_fee_base_msat(long this_ptr, int val);
12048         // MUST_USE_RES struct LDKPaymentRelay PaymentRelay_new(uint16_t cltv_expiry_delta_arg, uint32_t fee_proportional_millionths_arg, uint32_t fee_base_msat_arg);
12049         public static native long PaymentRelay_new(short cltv_expiry_delta_arg, int fee_proportional_millionths_arg, int fee_base_msat_arg);
12050         // uint64_t PaymentRelay_clone_ptr(LDKPaymentRelay *NONNULL_PTR arg);
12051         public static native long PaymentRelay_clone_ptr(long arg);
12052         // struct LDKPaymentRelay PaymentRelay_clone(const struct LDKPaymentRelay *NONNULL_PTR orig);
12053         public static native long PaymentRelay_clone(long orig);
12054         // void PaymentConstraints_free(struct LDKPaymentConstraints this_obj);
12055         public static native void PaymentConstraints_free(long this_obj);
12056         // uint32_t PaymentConstraints_get_max_cltv_expiry(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr);
12057         public static native int PaymentConstraints_get_max_cltv_expiry(long this_ptr);
12058         // void PaymentConstraints_set_max_cltv_expiry(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint32_t val);
12059         public static native void PaymentConstraints_set_max_cltv_expiry(long this_ptr, int val);
12060         // uint64_t PaymentConstraints_get_htlc_minimum_msat(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr);
12061         public static native long PaymentConstraints_get_htlc_minimum_msat(long this_ptr);
12062         // void PaymentConstraints_set_htlc_minimum_msat(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint64_t val);
12063         public static native void PaymentConstraints_set_htlc_minimum_msat(long this_ptr, long val);
12064         // MUST_USE_RES struct LDKPaymentConstraints PaymentConstraints_new(uint32_t max_cltv_expiry_arg, uint64_t htlc_minimum_msat_arg);
12065         public static native long PaymentConstraints_new(int max_cltv_expiry_arg, long htlc_minimum_msat_arg);
12066         // uint64_t PaymentConstraints_clone_ptr(LDKPaymentConstraints *NONNULL_PTR arg);
12067         public static native long PaymentConstraints_clone_ptr(long arg);
12068         // struct LDKPaymentConstraints PaymentConstraints_clone(const struct LDKPaymentConstraints *NONNULL_PTR orig);
12069         public static native long PaymentConstraints_clone(long orig);
12070         // struct LDKCVec_u8Z ForwardTlvs_write(const struct LDKForwardTlvs *NONNULL_PTR obj);
12071         public static native byte[] ForwardTlvs_write(long obj);
12072         // struct LDKCVec_u8Z ReceiveTlvs_write(const struct LDKReceiveTlvs *NONNULL_PTR obj);
12073         public static native byte[] ReceiveTlvs_write(long obj);
12074         // struct LDKCResult_ReceiveTlvsDecodeErrorZ ReceiveTlvs_read(struct LDKu8slice ser);
12075         public static native long ReceiveTlvs_read(byte[] ser);
12076         // struct LDKCVec_u8Z PaymentRelay_write(const struct LDKPaymentRelay *NONNULL_PTR obj);
12077         public static native byte[] PaymentRelay_write(long obj);
12078         // struct LDKCResult_PaymentRelayDecodeErrorZ PaymentRelay_read(struct LDKu8slice ser);
12079         public static native long PaymentRelay_read(byte[] ser);
12080         // struct LDKCVec_u8Z PaymentConstraints_write(const struct LDKPaymentConstraints *NONNULL_PTR obj);
12081         public static native byte[] PaymentConstraints_write(long obj);
12082         // struct LDKCResult_PaymentConstraintsDecodeErrorZ PaymentConstraints_read(struct LDKu8slice ser);
12083         public static native long PaymentConstraints_read(byte[] ser);
12084         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
12085         public static native void PaymentPurpose_free(long this_ptr);
12086         // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
12087         public static native long PaymentPurpose_clone_ptr(long arg);
12088         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
12089         public static native long PaymentPurpose_clone(long orig);
12090         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret);
12091         public static native long PaymentPurpose_invoice_payment(long payment_preimage, byte[] payment_secret);
12092         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
12093         public static native long PaymentPurpose_spontaneous_payment(byte[] a);
12094         // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
12095         public static native boolean PaymentPurpose_eq(long a, long b);
12096         // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
12097         public static native byte[] PaymentPurpose_write(long obj);
12098         // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
12099         public static native long PaymentPurpose_read(byte[] ser);
12100         // void ClaimedHTLC_free(struct LDKClaimedHTLC this_obj);
12101         public static native void ClaimedHTLC_free(long this_obj);
12102         // const uint8_t (*ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr))[32];
12103         public static native byte[] ClaimedHTLC_get_channel_id(long this_ptr);
12104         // void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12105         public static native void ClaimedHTLC_set_channel_id(long this_ptr, byte[] val);
12106         // struct LDKU128 ClaimedHTLC_get_user_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
12107         public static native byte[] ClaimedHTLC_get_user_channel_id(long this_ptr);
12108         // void ClaimedHTLC_set_user_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKU128 val);
12109         public static native void ClaimedHTLC_set_user_channel_id(long this_ptr, byte[] val);
12110         // uint32_t ClaimedHTLC_get_cltv_expiry(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
12111         public static native int ClaimedHTLC_get_cltv_expiry(long this_ptr);
12112         // void ClaimedHTLC_set_cltv_expiry(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint32_t val);
12113         public static native void ClaimedHTLC_set_cltv_expiry(long this_ptr, int val);
12114         // uint64_t ClaimedHTLC_get_value_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
12115         public static native long ClaimedHTLC_get_value_msat(long this_ptr);
12116         // void ClaimedHTLC_set_value_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val);
12117         public static native void ClaimedHTLC_set_value_msat(long this_ptr, long val);
12118         // MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg);
12119         public static native long ClaimedHTLC_new(byte[] channel_id_arg, byte[] user_channel_id_arg, int cltv_expiry_arg, long value_msat_arg);
12120         // uint64_t ClaimedHTLC_clone_ptr(LDKClaimedHTLC *NONNULL_PTR arg);
12121         public static native long ClaimedHTLC_clone_ptr(long arg);
12122         // struct LDKClaimedHTLC ClaimedHTLC_clone(const struct LDKClaimedHTLC *NONNULL_PTR orig);
12123         public static native long ClaimedHTLC_clone(long orig);
12124         // bool ClaimedHTLC_eq(const struct LDKClaimedHTLC *NONNULL_PTR a, const struct LDKClaimedHTLC *NONNULL_PTR b);
12125         public static native boolean ClaimedHTLC_eq(long a, long b);
12126         // struct LDKCVec_u8Z ClaimedHTLC_write(const struct LDKClaimedHTLC *NONNULL_PTR obj);
12127         public static native byte[] ClaimedHTLC_write(long obj);
12128         // struct LDKCResult_ClaimedHTLCDecodeErrorZ ClaimedHTLC_read(struct LDKu8slice ser);
12129         public static native long ClaimedHTLC_read(byte[] ser);
12130         // void PathFailure_free(struct LDKPathFailure this_ptr);
12131         public static native void PathFailure_free(long this_ptr);
12132         // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
12133         public static native long PathFailure_clone_ptr(long arg);
12134         // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
12135         public static native long PathFailure_clone(long orig);
12136         // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
12137         public static native long PathFailure_initial_send(long err);
12138         // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
12139         public static native long PathFailure_on_path(long network_update);
12140         // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
12141         public static native boolean PathFailure_eq(long a, long b);
12142         // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
12143         public static native byte[] PathFailure_write(long obj);
12144         // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
12145         public static native long PathFailure_read(byte[] ser);
12146         // void ClosureReason_free(struct LDKClosureReason this_ptr);
12147         public static native void ClosureReason_free(long this_ptr);
12148         // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
12149         public static native long ClosureReason_clone_ptr(long arg);
12150         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
12151         public static native long ClosureReason_clone(long orig);
12152         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKUntrustedString peer_msg);
12153         public static native long ClosureReason_counterparty_force_closed(long peer_msg);
12154         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
12155         public static native long ClosureReason_holder_force_closed();
12156         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
12157         public static native long ClosureReason_cooperative_closure();
12158         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
12159         public static native long ClosureReason_commitment_tx_confirmed();
12160         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
12161         public static native long ClosureReason_funding_timed_out();
12162         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
12163         public static native long ClosureReason_processing_error(String err);
12164         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
12165         public static native long ClosureReason_disconnected_peer();
12166         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
12167         public static native long ClosureReason_outdated_channel_manager();
12168         // struct LDKClosureReason ClosureReason_counterparty_coop_closed_unfunded_channel(void);
12169         public static native long ClosureReason_counterparty_coop_closed_unfunded_channel();
12170         // struct LDKClosureReason ClosureReason_funding_batch_closure(void);
12171         public static native long ClosureReason_funding_batch_closure();
12172         // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
12173         public static native boolean ClosureReason_eq(long a, long b);
12174         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
12175         public static native byte[] ClosureReason_write(long obj);
12176         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
12177         public static native long ClosureReason_read(byte[] ser);
12178         // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
12179         public static native void HTLCDestination_free(long this_ptr);
12180         // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
12181         public static native long HTLCDestination_clone_ptr(long arg);
12182         // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
12183         public static native long HTLCDestination_clone(long orig);
12184         // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
12185         public static native long HTLCDestination_next_hop_channel(byte[] node_id, byte[] channel_id);
12186         // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
12187         public static native long HTLCDestination_unknown_next_hop(long requested_forward_scid);
12188         // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
12189         public static native long HTLCDestination_invalid_forward(long requested_forward_scid);
12190         // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
12191         public static native long HTLCDestination_failed_payment(byte[] payment_hash);
12192         // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
12193         public static native boolean HTLCDestination_eq(long a, long b);
12194         // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
12195         public static native byte[] HTLCDestination_write(long obj);
12196         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
12197         public static native long HTLCDestination_read(byte[] ser);
12198         // enum LDKPaymentFailureReason PaymentFailureReason_clone(const enum LDKPaymentFailureReason *NONNULL_PTR orig);
12199         public static native PaymentFailureReason PaymentFailureReason_clone(long orig);
12200         // enum LDKPaymentFailureReason PaymentFailureReason_recipient_rejected(void);
12201         public static native PaymentFailureReason PaymentFailureReason_recipient_rejected();
12202         // enum LDKPaymentFailureReason PaymentFailureReason_user_abandoned(void);
12203         public static native PaymentFailureReason PaymentFailureReason_user_abandoned();
12204         // enum LDKPaymentFailureReason PaymentFailureReason_retries_exhausted(void);
12205         public static native PaymentFailureReason PaymentFailureReason_retries_exhausted();
12206         // enum LDKPaymentFailureReason PaymentFailureReason_payment_expired(void);
12207         public static native PaymentFailureReason PaymentFailureReason_payment_expired();
12208         // enum LDKPaymentFailureReason PaymentFailureReason_route_not_found(void);
12209         public static native PaymentFailureReason PaymentFailureReason_route_not_found();
12210         // enum LDKPaymentFailureReason PaymentFailureReason_unexpected_error(void);
12211         public static native PaymentFailureReason PaymentFailureReason_unexpected_error();
12212         // bool PaymentFailureReason_eq(const enum LDKPaymentFailureReason *NONNULL_PTR a, const enum LDKPaymentFailureReason *NONNULL_PTR b);
12213         public static native boolean PaymentFailureReason_eq(long a, long b);
12214         // struct LDKCVec_u8Z PaymentFailureReason_write(const enum LDKPaymentFailureReason *NONNULL_PTR obj);
12215         public static native byte[] PaymentFailureReason_write(long obj);
12216         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ PaymentFailureReason_read(struct LDKu8slice ser);
12217         public static native long PaymentFailureReason_read(byte[] ser);
12218         // void Event_free(struct LDKEvent this_ptr);
12219         public static native void Event_free(long this_ptr);
12220         // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
12221         public static native long Event_clone_ptr(long arg);
12222         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
12223         public static native long Event_clone(long orig);
12224         // 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, struct LDKU128 user_channel_id);
12225         public static native long Event_funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, byte[] user_channel_id);
12226         // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKCOption_ThirtyTwoBytesZ via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline);
12227         public static native long Event_payment_claimable(byte[] receiver_node_id, byte[] payment_hash, long onion_fields, long amount_msat, long counterparty_skimmed_fee_msat, long purpose, long via_channel_id, long via_user_channel_id, long claim_deadline);
12228         // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKCVec_ClaimedHTLCZ htlcs, struct LDKCOption_u64Z sender_intended_total_msat);
12229         public static native long Event_payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose, long[] htlcs, long sender_intended_total_msat);
12230         // struct LDKEvent Event_invoice_request_failed(struct LDKThirtyTwoBytes payment_id);
12231         public static native long Event_invoice_request_failed(byte[] payment_id);
12232         // struct LDKEvent Event_payment_sent(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
12233         public static native long Event_payment_sent(long payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
12234         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_PaymentFailureReasonZ reason);
12235         public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash, long reason);
12236         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKPath path);
12237         public static native long Event_payment_path_successful(byte[] payment_id, long payment_hash, long path);
12238         // struct LDKEvent Event_payment_path_failed(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
12239         public static native long Event_payment_path_failed(long payment_id, byte[] payment_hash, boolean payment_failed_permanently, long failure, long path, long short_channel_id);
12240         // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
12241         public static native long Event_probe_successful(byte[] payment_id, byte[] payment_hash, long path);
12242         // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
12243         public static native long Event_probe_failed(byte[] payment_id, byte[] payment_hash, long path, long short_channel_id);
12244         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
12245         public static native long Event_pending_htlcs_forwardable(long time_forwardable);
12246         // struct LDKEvent Event_htlcintercepted(struct LDKThirtyTwoBytes intercept_id, uint64_t requested_next_hop_scid, struct LDKThirtyTwoBytes payment_hash, uint64_t inbound_amount_msat, uint64_t expected_outbound_amount_msat);
12247         public static native long Event_htlcintercepted(byte[] intercept_id, long requested_next_hop_scid, byte[] payment_hash, long inbound_amount_msat, long expected_outbound_amount_msat);
12248         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKCOption_ThirtyTwoBytesZ channel_id);
12249         public static native long Event_spendable_outputs(long[] outputs, long channel_id);
12250         // struct LDKEvent Event_payment_forwarded(struct LDKCOption_ThirtyTwoBytesZ prev_channel_id, struct LDKCOption_ThirtyTwoBytesZ next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat);
12251         public static native long Event_payment_forwarded(long prev_channel_id, long next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx, long outbound_amount_forwarded_msat);
12252         // struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo);
12253         public static native long Event_channel_pending(byte[] channel_id, byte[] user_channel_id, long former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo);
12254         // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
12255         public static native long Event_channel_ready(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type);
12256         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats);
12257         public static native long Event_channel_closed(byte[] channel_id, byte[] user_channel_id, long reason, byte[] counterparty_node_id, long channel_capacity_sats);
12258         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
12259         public static native long Event_discard_funding(byte[] channel_id, byte[] transaction);
12260         // 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);
12261         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);
12262         // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
12263         public static native long Event_htlchandling_failed(byte[] prev_channel_id, long failed_next_destination);
12264         // struct LDKEvent Event_bump_transaction(struct LDKBumpTransactionEvent a);
12265         public static native long Event_bump_transaction(long a);
12266         // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
12267         public static native boolean Event_eq(long a, long b);
12268         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
12269         public static native byte[] Event_write(long obj);
12270         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
12271         public static native long Event_read(byte[] ser);
12272         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
12273         public static native void MessageSendEvent_free(long this_ptr);
12274         // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
12275         public static native long MessageSendEvent_clone_ptr(long arg);
12276         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
12277         public static native long MessageSendEvent_clone(long orig);
12278         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
12279         public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
12280         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel_v2(struct LDKPublicKey node_id, struct LDKAcceptChannelV2 msg);
12281         public static native long MessageSendEvent_send_accept_channel_v2(byte[] node_id, long msg);
12282         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
12283         public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
12284         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel_v2(struct LDKPublicKey node_id, struct LDKOpenChannelV2 msg);
12285         public static native long MessageSendEvent_send_open_channel_v2(byte[] node_id, long msg);
12286         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
12287         public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
12288         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
12289         public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
12290         // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_input(struct LDKPublicKey node_id, struct LDKTxAddInput msg);
12291         public static native long MessageSendEvent_send_tx_add_input(byte[] node_id, long msg);
12292         // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_output(struct LDKPublicKey node_id, struct LDKTxAddOutput msg);
12293         public static native long MessageSendEvent_send_tx_add_output(byte[] node_id, long msg);
12294         // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_input(struct LDKPublicKey node_id, struct LDKTxRemoveInput msg);
12295         public static native long MessageSendEvent_send_tx_remove_input(byte[] node_id, long msg);
12296         // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_output(struct LDKPublicKey node_id, struct LDKTxRemoveOutput msg);
12297         public static native long MessageSendEvent_send_tx_remove_output(byte[] node_id, long msg);
12298         // struct LDKMessageSendEvent MessageSendEvent_send_tx_complete(struct LDKPublicKey node_id, struct LDKTxComplete msg);
12299         public static native long MessageSendEvent_send_tx_complete(byte[] node_id, long msg);
12300         // struct LDKMessageSendEvent MessageSendEvent_send_tx_signatures(struct LDKPublicKey node_id, struct LDKTxSignatures msg);
12301         public static native long MessageSendEvent_send_tx_signatures(byte[] node_id, long msg);
12302         // struct LDKMessageSendEvent MessageSendEvent_send_tx_init_rbf(struct LDKPublicKey node_id, struct LDKTxInitRbf msg);
12303         public static native long MessageSendEvent_send_tx_init_rbf(byte[] node_id, long msg);
12304         // struct LDKMessageSendEvent MessageSendEvent_send_tx_ack_rbf(struct LDKPublicKey node_id, struct LDKTxAckRbf msg);
12305         public static native long MessageSendEvent_send_tx_ack_rbf(byte[] node_id, long msg);
12306         // struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAbort msg);
12307         public static native long MessageSendEvent_send_tx_abort(byte[] node_id, long msg);
12308         // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
12309         public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
12310         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
12311         public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
12312         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
12313         public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
12314         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
12315         public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
12316         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
12317         public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
12318         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
12319         public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
12320         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
12321         public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
12322         // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
12323         public static native long MessageSendEvent_send_channel_announcement(byte[] node_id, long msg, long update_msg);
12324         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
12325         public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
12326         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
12327         public static native long MessageSendEvent_broadcast_channel_update(long msg);
12328         // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
12329         public static native long MessageSendEvent_broadcast_node_announcement(long msg);
12330         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
12331         public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
12332         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
12333         public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
12334         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
12335         public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
12336         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
12337         public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
12338         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
12339         public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
12340         // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
12341         public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
12342         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
12343         public static native void MessageSendEventsProvider_free(long this_ptr);
12344         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
12345         public static native void EventsProvider_free(long this_ptr);
12346         // void EventHandler_free(struct LDKEventHandler this_ptr);
12347         public static native void EventHandler_free(long this_ptr);
12348         // void AnchorDescriptor_free(struct LDKAnchorDescriptor this_obj);
12349         public static native void AnchorDescriptor_free(long this_obj);
12350         // struct LDKChannelDerivationParameters AnchorDescriptor_get_channel_derivation_parameters(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
12351         public static native long AnchorDescriptor_get_channel_derivation_parameters(long this_ptr);
12352         // void AnchorDescriptor_set_channel_derivation_parameters(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
12353         public static native void AnchorDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
12354         // struct LDKOutPoint AnchorDescriptor_get_outpoint(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
12355         public static native long AnchorDescriptor_get_outpoint(long this_ptr);
12356         // void AnchorDescriptor_set_outpoint(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
12357         public static native void AnchorDescriptor_set_outpoint(long this_ptr, long val);
12358         // MUST_USE_RES struct LDKAnchorDescriptor AnchorDescriptor_new(struct LDKChannelDerivationParameters channel_derivation_parameters_arg, struct LDKOutPoint outpoint_arg);
12359         public static native long AnchorDescriptor_new(long channel_derivation_parameters_arg, long outpoint_arg);
12360         // uint64_t AnchorDescriptor_clone_ptr(LDKAnchorDescriptor *NONNULL_PTR arg);
12361         public static native long AnchorDescriptor_clone_ptr(long arg);
12362         // struct LDKAnchorDescriptor AnchorDescriptor_clone(const struct LDKAnchorDescriptor *NONNULL_PTR orig);
12363         public static native long AnchorDescriptor_clone(long orig);
12364         // bool AnchorDescriptor_eq(const struct LDKAnchorDescriptor *NONNULL_PTR a, const struct LDKAnchorDescriptor *NONNULL_PTR b);
12365         public static native boolean AnchorDescriptor_eq(long a, long b);
12366         // MUST_USE_RES struct LDKTxOut AnchorDescriptor_previous_utxo(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
12367         public static native long AnchorDescriptor_previous_utxo(long this_arg);
12368         // MUST_USE_RES struct LDKTxIn AnchorDescriptor_unsigned_tx_input(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
12369         public static native long AnchorDescriptor_unsigned_tx_input(long this_arg);
12370         // MUST_USE_RES struct LDKCVec_u8Z AnchorDescriptor_witness_script(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
12371         public static native byte[] AnchorDescriptor_witness_script(long this_arg);
12372         // MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature);
12373         public static native byte[] AnchorDescriptor_tx_input_witness(long this_arg, byte[] signature);
12374         // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner AnchorDescriptor_derive_channel_signer(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
12375         public static native long AnchorDescriptor_derive_channel_signer(long this_arg, long signer_provider);
12376         // void BumpTransactionEvent_free(struct LDKBumpTransactionEvent this_ptr);
12377         public static native void BumpTransactionEvent_free(long this_ptr);
12378         // uint64_t BumpTransactionEvent_clone_ptr(LDKBumpTransactionEvent *NONNULL_PTR arg);
12379         public static native long BumpTransactionEvent_clone_ptr(long arg);
12380         // struct LDKBumpTransactionEvent BumpTransactionEvent_clone(const struct LDKBumpTransactionEvent *NONNULL_PTR orig);
12381         public static native long BumpTransactionEvent_clone(long orig);
12382         // struct LDKBumpTransactionEvent BumpTransactionEvent_channel_close(struct LDKThirtyTwoBytes claim_id, uint32_t package_target_feerate_sat_per_1000_weight, struct LDKTransaction commitment_tx, uint64_t commitment_tx_fee_satoshis, struct LDKAnchorDescriptor anchor_descriptor, struct LDKCVec_HTLCOutputInCommitmentZ pending_htlcs);
12383         public static native long BumpTransactionEvent_channel_close(byte[] claim_id, int package_target_feerate_sat_per_1000_weight, byte[] commitment_tx, long commitment_tx_fee_satoshis, long anchor_descriptor, long[] pending_htlcs);
12384         // struct LDKBumpTransactionEvent BumpTransactionEvent_htlcresolution(struct LDKThirtyTwoBytes claim_id, uint32_t target_feerate_sat_per_1000_weight, struct LDKCVec_HTLCDescriptorZ htlc_descriptors, uint32_t tx_lock_time);
12385         public static native long BumpTransactionEvent_htlcresolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, long[] htlc_descriptors, int tx_lock_time);
12386         // bool BumpTransactionEvent_eq(const struct LDKBumpTransactionEvent *NONNULL_PTR a, const struct LDKBumpTransactionEvent *NONNULL_PTR b);
12387         public static native boolean BumpTransactionEvent_eq(long a, long b);
12388         // void Input_free(struct LDKInput this_obj);
12389         public static native void Input_free(long this_obj);
12390         // struct LDKOutPoint Input_get_outpoint(const struct LDKInput *NONNULL_PTR this_ptr);
12391         public static native long Input_get_outpoint(long this_ptr);
12392         // void Input_set_outpoint(struct LDKInput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
12393         public static native void Input_set_outpoint(long this_ptr, long val);
12394         // struct LDKTxOut Input_get_previous_utxo(const struct LDKInput *NONNULL_PTR this_ptr);
12395         public static native long Input_get_previous_utxo(long this_ptr);
12396         // void Input_set_previous_utxo(struct LDKInput *NONNULL_PTR this_ptr, struct LDKTxOut val);
12397         public static native void Input_set_previous_utxo(long this_ptr, long val);
12398         // uint64_t Input_get_satisfaction_weight(const struct LDKInput *NONNULL_PTR this_ptr);
12399         public static native long Input_get_satisfaction_weight(long this_ptr);
12400         // void Input_set_satisfaction_weight(struct LDKInput *NONNULL_PTR this_ptr, uint64_t val);
12401         public static native void Input_set_satisfaction_weight(long this_ptr, long val);
12402         // MUST_USE_RES struct LDKInput Input_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut previous_utxo_arg, uint64_t satisfaction_weight_arg);
12403         public static native long Input_new(long outpoint_arg, long previous_utxo_arg, long satisfaction_weight_arg);
12404         // uint64_t Input_clone_ptr(LDKInput *NONNULL_PTR arg);
12405         public static native long Input_clone_ptr(long arg);
12406         // struct LDKInput Input_clone(const struct LDKInput *NONNULL_PTR orig);
12407         public static native long Input_clone(long orig);
12408         // uint64_t Input_hash(const struct LDKInput *NONNULL_PTR o);
12409         public static native long Input_hash(long o);
12410         // bool Input_eq(const struct LDKInput *NONNULL_PTR a, const struct LDKInput *NONNULL_PTR b);
12411         public static native boolean Input_eq(long a, long b);
12412         // void Utxo_free(struct LDKUtxo this_obj);
12413         public static native void Utxo_free(long this_obj);
12414         // struct LDKOutPoint Utxo_get_outpoint(const struct LDKUtxo *NONNULL_PTR this_ptr);
12415         public static native long Utxo_get_outpoint(long this_ptr);
12416         // void Utxo_set_outpoint(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKOutPoint val);
12417         public static native void Utxo_set_outpoint(long this_ptr, long val);
12418         // struct LDKTxOut Utxo_get_output(const struct LDKUtxo *NONNULL_PTR this_ptr);
12419         public static native long Utxo_get_output(long this_ptr);
12420         // void Utxo_set_output(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKTxOut val);
12421         public static native void Utxo_set_output(long this_ptr, long val);
12422         // uint64_t Utxo_get_satisfaction_weight(const struct LDKUtxo *NONNULL_PTR this_ptr);
12423         public static native long Utxo_get_satisfaction_weight(long this_ptr);
12424         // void Utxo_set_satisfaction_weight(struct LDKUtxo *NONNULL_PTR this_ptr, uint64_t val);
12425         public static native void Utxo_set_satisfaction_weight(long this_ptr, long val);
12426         // MUST_USE_RES struct LDKUtxo Utxo_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, uint64_t satisfaction_weight_arg);
12427         public static native long Utxo_new(long outpoint_arg, long output_arg, long satisfaction_weight_arg);
12428         // uint64_t Utxo_clone_ptr(LDKUtxo *NONNULL_PTR arg);
12429         public static native long Utxo_clone_ptr(long arg);
12430         // struct LDKUtxo Utxo_clone(const struct LDKUtxo *NONNULL_PTR orig);
12431         public static native long Utxo_clone(long orig);
12432         // uint64_t Utxo_hash(const struct LDKUtxo *NONNULL_PTR o);
12433         public static native long Utxo_hash(long o);
12434         // bool Utxo_eq(const struct LDKUtxo *NONNULL_PTR a, const struct LDKUtxo *NONNULL_PTR b);
12435         public static native boolean Utxo_eq(long a, long b);
12436         // MUST_USE_RES struct LDKUtxo Utxo_new_p2pkh(struct LDKOutPoint outpoint, uint64_t value, const uint8_t (*pubkey_hash)[20]);
12437         public static native long Utxo_new_p2pkh(long outpoint, long value, byte[] pubkey_hash);
12438         // void CoinSelection_free(struct LDKCoinSelection this_obj);
12439         public static native void CoinSelection_free(long this_obj);
12440         // struct LDKCVec_UtxoZ CoinSelection_get_confirmed_utxos(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
12441         public static native long[] CoinSelection_get_confirmed_utxos(long this_ptr);
12442         // void CoinSelection_set_confirmed_utxos(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCVec_UtxoZ val);
12443         public static native void CoinSelection_set_confirmed_utxos(long this_ptr, long[] val);
12444         // struct LDKCOption_TxOutZ CoinSelection_get_change_output(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
12445         public static native long CoinSelection_get_change_output(long this_ptr);
12446         // void CoinSelection_set_change_output(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCOption_TxOutZ val);
12447         public static native void CoinSelection_set_change_output(long this_ptr, long val);
12448         // MUST_USE_RES struct LDKCoinSelection CoinSelection_new(struct LDKCVec_UtxoZ confirmed_utxos_arg, struct LDKCOption_TxOutZ change_output_arg);
12449         public static native long CoinSelection_new(long[] confirmed_utxos_arg, long change_output_arg);
12450         // uint64_t CoinSelection_clone_ptr(LDKCoinSelection *NONNULL_PTR arg);
12451         public static native long CoinSelection_clone_ptr(long arg);
12452         // struct LDKCoinSelection CoinSelection_clone(const struct LDKCoinSelection *NONNULL_PTR orig);
12453         public static native long CoinSelection_clone(long orig);
12454         // void CoinSelectionSource_free(struct LDKCoinSelectionSource this_ptr);
12455         public static native void CoinSelectionSource_free(long this_ptr);
12456         // void WalletSource_free(struct LDKWalletSource this_ptr);
12457         public static native void WalletSource_free(long this_ptr);
12458         // void Wallet_free(struct LDKWallet this_obj);
12459         public static native void Wallet_free(long this_obj);
12460         // MUST_USE_RES struct LDKWallet Wallet_new(struct LDKWalletSource source, struct LDKLogger logger);
12461         public static native long Wallet_new(long source, long logger);
12462         // struct LDKCoinSelectionSource Wallet_as_CoinSelectionSource(const struct LDKWallet *NONNULL_PTR this_arg);
12463         public static native long Wallet_as_CoinSelectionSource(long this_arg);
12464         // void BumpTransactionEventHandler_free(struct LDKBumpTransactionEventHandler this_obj);
12465         public static native void BumpTransactionEventHandler_free(long this_obj);
12466         // MUST_USE_RES struct LDKBumpTransactionEventHandler BumpTransactionEventHandler_new(struct LDKBroadcasterInterface broadcaster, struct LDKCoinSelectionSource utxo_source, struct LDKSignerProvider signer_provider, struct LDKLogger logger);
12467         public static native long BumpTransactionEventHandler_new(long broadcaster, long utxo_source, long signer_provider, long logger);
12468         // void BumpTransactionEventHandler_handle_event(const struct LDKBumpTransactionEventHandler *NONNULL_PTR this_arg, const struct LDKBumpTransactionEvent *NONNULL_PTR event);
12469         public static native void BumpTransactionEventHandler_handle_event(long this_arg, long event);
12470         // void FilesystemStore_free(struct LDKFilesystemStore this_obj);
12471         public static native void FilesystemStore_free(long this_obj);
12472         // MUST_USE_RES struct LDKFilesystemStore FilesystemStore_new(struct LDKStr data_dir);
12473         public static native long FilesystemStore_new(String data_dir);
12474         // MUST_USE_RES struct LDKStr FilesystemStore_get_data_dir(const struct LDKFilesystemStore *NONNULL_PTR this_arg);
12475         public static native String FilesystemStore_get_data_dir(long this_arg);
12476         // struct LDKKVStore FilesystemStore_as_KVStore(const struct LDKFilesystemStore *NONNULL_PTR this_arg);
12477         public static native long FilesystemStore_as_KVStore(long this_arg);
12478         // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
12479         public static native void BackgroundProcessor_free(long this_obj);
12480         // void GossipSync_free(struct LDKGossipSync this_ptr);
12481         public static native void GossipSync_free(long this_ptr);
12482         // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
12483         public static native long GossipSync_p2_p(long a);
12484         // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
12485         public static native long GossipSync_rapid(long a);
12486         // struct LDKGossipSync GossipSync_none(void);
12487         public static native long GossipSync_none();
12488         // 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 LDKCOption_WriteableScoreZ scorer);
12489         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);
12490         // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
12491         public static native long BackgroundProcessor_join(long this_arg);
12492         // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
12493         public static native long BackgroundProcessor_stop(long this_arg);
12494         // void Bolt11ParseError_free(struct LDKBolt11ParseError this_ptr);
12495         public static native void Bolt11ParseError_free(long this_ptr);
12496         // uint64_t Bolt11ParseError_clone_ptr(LDKBolt11ParseError *NONNULL_PTR arg);
12497         public static native long Bolt11ParseError_clone_ptr(long arg);
12498         // struct LDKBolt11ParseError Bolt11ParseError_clone(const struct LDKBolt11ParseError *NONNULL_PTR orig);
12499         public static native long Bolt11ParseError_clone(long orig);
12500         // struct LDKBolt11ParseError Bolt11ParseError_bech32_error(struct LDKBech32Error a);
12501         public static native long Bolt11ParseError_bech32_error(long a);
12502         // struct LDKBolt11ParseError Bolt11ParseError_parse_amount_error(struct LDKError a);
12503         public static native long Bolt11ParseError_parse_amount_error(int a);
12504         // struct LDKBolt11ParseError Bolt11ParseError_malformed_signature(enum LDKSecp256k1Error a);
12505         public static native long Bolt11ParseError_malformed_signature(Secp256k1Error a);
12506         // struct LDKBolt11ParseError Bolt11ParseError_bad_prefix(void);
12507         public static native long Bolt11ParseError_bad_prefix();
12508         // struct LDKBolt11ParseError Bolt11ParseError_unknown_currency(void);
12509         public static native long Bolt11ParseError_unknown_currency();
12510         // struct LDKBolt11ParseError Bolt11ParseError_unknown_si_prefix(void);
12511         public static native long Bolt11ParseError_unknown_si_prefix();
12512         // struct LDKBolt11ParseError Bolt11ParseError_malformed_hrp(void);
12513         public static native long Bolt11ParseError_malformed_hrp();
12514         // struct LDKBolt11ParseError Bolt11ParseError_too_short_data_part(void);
12515         public static native long Bolt11ParseError_too_short_data_part();
12516         // struct LDKBolt11ParseError Bolt11ParseError_unexpected_end_of_tagged_fields(void);
12517         public static native long Bolt11ParseError_unexpected_end_of_tagged_fields();
12518         // struct LDKBolt11ParseError Bolt11ParseError_description_decode_error(struct LDKError a);
12519         public static native long Bolt11ParseError_description_decode_error(int a);
12520         // struct LDKBolt11ParseError Bolt11ParseError_padding_error(void);
12521         public static native long Bolt11ParseError_padding_error();
12522         // struct LDKBolt11ParseError Bolt11ParseError_integer_overflow_error(void);
12523         public static native long Bolt11ParseError_integer_overflow_error();
12524         // struct LDKBolt11ParseError Bolt11ParseError_invalid_seg_wit_program_length(void);
12525         public static native long Bolt11ParseError_invalid_seg_wit_program_length();
12526         // struct LDKBolt11ParseError Bolt11ParseError_invalid_pub_key_hash_length(void);
12527         public static native long Bolt11ParseError_invalid_pub_key_hash_length();
12528         // struct LDKBolt11ParseError Bolt11ParseError_invalid_script_hash_length(void);
12529         public static native long Bolt11ParseError_invalid_script_hash_length();
12530         // struct LDKBolt11ParseError Bolt11ParseError_invalid_recovery_id(void);
12531         public static native long Bolt11ParseError_invalid_recovery_id();
12532         // struct LDKBolt11ParseError Bolt11ParseError_invalid_slice_length(struct LDKStr a);
12533         public static native long Bolt11ParseError_invalid_slice_length(String a);
12534         // struct LDKBolt11ParseError Bolt11ParseError_skip(void);
12535         public static native long Bolt11ParseError_skip();
12536         // bool Bolt11ParseError_eq(const struct LDKBolt11ParseError *NONNULL_PTR a, const struct LDKBolt11ParseError *NONNULL_PTR b);
12537         public static native boolean Bolt11ParseError_eq(long a, long b);
12538         // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
12539         public static native void ParseOrSemanticError_free(long this_ptr);
12540         // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
12541         public static native long ParseOrSemanticError_clone_ptr(long arg);
12542         // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
12543         public static native long ParseOrSemanticError_clone(long orig);
12544         // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKBolt11ParseError a);
12545         public static native long ParseOrSemanticError_parse_error(long a);
12546         // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKBolt11SemanticError a);
12547         public static native long ParseOrSemanticError_semantic_error(Bolt11SemanticError a);
12548         // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b);
12549         public static native boolean ParseOrSemanticError_eq(long a, long b);
12550         // void Bolt11Invoice_free(struct LDKBolt11Invoice this_obj);
12551         public static native void Bolt11Invoice_free(long this_obj);
12552         // bool Bolt11Invoice_eq(const struct LDKBolt11Invoice *NONNULL_PTR a, const struct LDKBolt11Invoice *NONNULL_PTR b);
12553         public static native boolean Bolt11Invoice_eq(long a, long b);
12554         // uint64_t Bolt11Invoice_clone_ptr(LDKBolt11Invoice *NONNULL_PTR arg);
12555         public static native long Bolt11Invoice_clone_ptr(long arg);
12556         // struct LDKBolt11Invoice Bolt11Invoice_clone(const struct LDKBolt11Invoice *NONNULL_PTR orig);
12557         public static native long Bolt11Invoice_clone(long orig);
12558         // uint64_t Bolt11Invoice_hash(const struct LDKBolt11Invoice *NONNULL_PTR o);
12559         public static native long Bolt11Invoice_hash(long o);
12560         // void SignedRawBolt11Invoice_free(struct LDKSignedRawBolt11Invoice this_obj);
12561         public static native void SignedRawBolt11Invoice_free(long this_obj);
12562         // bool SignedRawBolt11Invoice_eq(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR a, const struct LDKSignedRawBolt11Invoice *NONNULL_PTR b);
12563         public static native boolean SignedRawBolt11Invoice_eq(long a, long b);
12564         // uint64_t SignedRawBolt11Invoice_clone_ptr(LDKSignedRawBolt11Invoice *NONNULL_PTR arg);
12565         public static native long SignedRawBolt11Invoice_clone_ptr(long arg);
12566         // struct LDKSignedRawBolt11Invoice SignedRawBolt11Invoice_clone(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR orig);
12567         public static native long SignedRawBolt11Invoice_clone(long orig);
12568         // uint64_t SignedRawBolt11Invoice_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
12569         public static native long SignedRawBolt11Invoice_hash(long o);
12570         // void RawBolt11Invoice_free(struct LDKRawBolt11Invoice this_obj);
12571         public static native void RawBolt11Invoice_free(long this_obj);
12572         // struct LDKRawDataPart RawBolt11Invoice_get_data(const struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr);
12573         public static native long RawBolt11Invoice_get_data(long this_ptr);
12574         // void RawBolt11Invoice_set_data(struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
12575         public static native void RawBolt11Invoice_set_data(long this_ptr, long val);
12576         // bool RawBolt11Invoice_eq(const struct LDKRawBolt11Invoice *NONNULL_PTR a, const struct LDKRawBolt11Invoice *NONNULL_PTR b);
12577         public static native boolean RawBolt11Invoice_eq(long a, long b);
12578         // uint64_t RawBolt11Invoice_clone_ptr(LDKRawBolt11Invoice *NONNULL_PTR arg);
12579         public static native long RawBolt11Invoice_clone_ptr(long arg);
12580         // struct LDKRawBolt11Invoice RawBolt11Invoice_clone(const struct LDKRawBolt11Invoice *NONNULL_PTR orig);
12581         public static native long RawBolt11Invoice_clone(long orig);
12582         // uint64_t RawBolt11Invoice_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR o);
12583         public static native long RawBolt11Invoice_hash(long o);
12584         // void RawDataPart_free(struct LDKRawDataPart this_obj);
12585         public static native void RawDataPart_free(long this_obj);
12586         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
12587         public static native long RawDataPart_get_timestamp(long this_ptr);
12588         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
12589         public static native void RawDataPart_set_timestamp(long this_ptr, long val);
12590         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
12591         public static native boolean RawDataPart_eq(long a, long b);
12592         // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
12593         public static native long RawDataPart_clone_ptr(long arg);
12594         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
12595         public static native long RawDataPart_clone(long orig);
12596         // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
12597         public static native long RawDataPart_hash(long o);
12598         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
12599         public static native void PositiveTimestamp_free(long this_obj);
12600         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
12601         public static native boolean PositiveTimestamp_eq(long a, long b);
12602         // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
12603         public static native long PositiveTimestamp_clone_ptr(long arg);
12604         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
12605         public static native long PositiveTimestamp_clone(long orig);
12606         // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
12607         public static native long PositiveTimestamp_hash(long o);
12608         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
12609         public static native SiPrefix SiPrefix_clone(long orig);
12610         // enum LDKSiPrefix SiPrefix_milli(void);
12611         public static native SiPrefix SiPrefix_milli();
12612         // enum LDKSiPrefix SiPrefix_micro(void);
12613         public static native SiPrefix SiPrefix_micro();
12614         // enum LDKSiPrefix SiPrefix_nano(void);
12615         public static native SiPrefix SiPrefix_nano();
12616         // enum LDKSiPrefix SiPrefix_pico(void);
12617         public static native SiPrefix SiPrefix_pico();
12618         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
12619         public static native boolean SiPrefix_eq(long a, long b);
12620         // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
12621         public static native long SiPrefix_hash(long o);
12622         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
12623         public static native long SiPrefix_multiplier(long this_arg);
12624         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
12625         public static native Currency Currency_clone(long orig);
12626         // enum LDKCurrency Currency_bitcoin(void);
12627         public static native Currency Currency_bitcoin();
12628         // enum LDKCurrency Currency_bitcoin_testnet(void);
12629         public static native Currency Currency_bitcoin_testnet();
12630         // enum LDKCurrency Currency_regtest(void);
12631         public static native Currency Currency_regtest();
12632         // enum LDKCurrency Currency_simnet(void);
12633         public static native Currency Currency_simnet();
12634         // enum LDKCurrency Currency_signet(void);
12635         public static native Currency Currency_signet();
12636         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
12637         public static native long Currency_hash(long o);
12638         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
12639         public static native boolean Currency_eq(long a, long b);
12640         // void Sha256_free(struct LDKSha256 this_obj);
12641         public static native void Sha256_free(long this_obj);
12642         // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
12643         public static native long Sha256_clone_ptr(long arg);
12644         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
12645         public static native long Sha256_clone(long orig);
12646         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
12647         public static native long Sha256_hash(long o);
12648         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
12649         public static native boolean Sha256_eq(long a, long b);
12650         // MUST_USE_RES struct LDKSha256 Sha256_from_bytes(const uint8_t (*bytes)[32]);
12651         public static native long Sha256_from_bytes(byte[] bytes);
12652         // void Description_free(struct LDKDescription this_obj);
12653         public static native void Description_free(long this_obj);
12654         // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
12655         public static native long Description_clone_ptr(long arg);
12656         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
12657         public static native long Description_clone(long orig);
12658         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
12659         public static native long Description_hash(long o);
12660         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
12661         public static native boolean Description_eq(long a, long b);
12662         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
12663         public static native void PayeePubKey_free(long this_obj);
12664         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
12665         public static native byte[] PayeePubKey_get_a(long this_ptr);
12666         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12667         public static native void PayeePubKey_set_a(long this_ptr, byte[] val);
12668         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
12669         public static native long PayeePubKey_new(byte[] a_arg);
12670         // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
12671         public static native long PayeePubKey_clone_ptr(long arg);
12672         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
12673         public static native long PayeePubKey_clone(long orig);
12674         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
12675         public static native long PayeePubKey_hash(long o);
12676         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
12677         public static native boolean PayeePubKey_eq(long a, long b);
12678         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
12679         public static native void ExpiryTime_free(long this_obj);
12680         // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
12681         public static native long ExpiryTime_clone_ptr(long arg);
12682         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
12683         public static native long ExpiryTime_clone(long orig);
12684         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
12685         public static native long ExpiryTime_hash(long o);
12686         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
12687         public static native boolean ExpiryTime_eq(long a, long b);
12688         // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj);
12689         public static native void MinFinalCltvExpiryDelta_free(long this_obj);
12690         // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr);
12691         public static native long MinFinalCltvExpiryDelta_get_a(long this_ptr);
12692         // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val);
12693         public static native void MinFinalCltvExpiryDelta_set_a(long this_ptr, long val);
12694         // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg);
12695         public static native long MinFinalCltvExpiryDelta_new(long a_arg);
12696         // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg);
12697         public static native long MinFinalCltvExpiryDelta_clone_ptr(long arg);
12698         // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig);
12699         public static native long MinFinalCltvExpiryDelta_clone(long orig);
12700         // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o);
12701         public static native long MinFinalCltvExpiryDelta_hash(long o);
12702         // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b);
12703         public static native boolean MinFinalCltvExpiryDelta_eq(long a, long b);
12704         // void Fallback_free(struct LDKFallback this_ptr);
12705         public static native void Fallback_free(long this_ptr);
12706         // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
12707         public static native long Fallback_clone_ptr(long arg);
12708         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
12709         public static native long Fallback_clone(long orig);
12710         // struct LDKFallback Fallback_seg_wit_program(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
12711         public static native long Fallback_seg_wit_program(byte version, byte[] program);
12712         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
12713         public static native long Fallback_pub_key_hash(byte[] a);
12714         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
12715         public static native long Fallback_script_hash(byte[] a);
12716         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
12717         public static native long Fallback_hash(long o);
12718         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
12719         public static native boolean Fallback_eq(long a, long b);
12720         // void Bolt11InvoiceSignature_free(struct LDKBolt11InvoiceSignature this_obj);
12721         public static native void Bolt11InvoiceSignature_free(long this_obj);
12722         // uint64_t Bolt11InvoiceSignature_clone_ptr(LDKBolt11InvoiceSignature *NONNULL_PTR arg);
12723         public static native long Bolt11InvoiceSignature_clone_ptr(long arg);
12724         // struct LDKBolt11InvoiceSignature Bolt11InvoiceSignature_clone(const struct LDKBolt11InvoiceSignature *NONNULL_PTR orig);
12725         public static native long Bolt11InvoiceSignature_clone(long orig);
12726         // uint64_t Bolt11InvoiceSignature_hash(const struct LDKBolt11InvoiceSignature *NONNULL_PTR o);
12727         public static native long Bolt11InvoiceSignature_hash(long o);
12728         // bool Bolt11InvoiceSignature_eq(const struct LDKBolt11InvoiceSignature *NONNULL_PTR a, const struct LDKBolt11InvoiceSignature *NONNULL_PTR b);
12729         public static native boolean Bolt11InvoiceSignature_eq(long a, long b);
12730         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
12731         public static native void PrivateRoute_free(long this_obj);
12732         // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
12733         public static native long PrivateRoute_clone_ptr(long arg);
12734         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
12735         public static native long PrivateRoute_clone(long orig);
12736         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
12737         public static native long PrivateRoute_hash(long o);
12738         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
12739         public static native boolean PrivateRoute_eq(long a, long b);
12740         // MUST_USE_RES struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ SignedRawBolt11Invoice_into_parts(struct LDKSignedRawBolt11Invoice this_arg);
12741         public static native long SignedRawBolt11Invoice_into_parts(long this_arg);
12742         // MUST_USE_RES struct LDKRawBolt11Invoice SignedRawBolt11Invoice_raw_invoice(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
12743         public static native long SignedRawBolt11Invoice_raw_invoice(long this_arg);
12744         // MUST_USE_RES const uint8_t (*SignedRawBolt11Invoice_signable_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg))[32];
12745         public static native byte[] SignedRawBolt11Invoice_signable_hash(long this_arg);
12746         // MUST_USE_RES struct LDKBolt11InvoiceSignature SignedRawBolt11Invoice_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
12747         public static native long SignedRawBolt11Invoice_signature(long this_arg);
12748         // MUST_USE_RES struct LDKCResult_PayeePubKeySecp256k1ErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
12749         public static native long SignedRawBolt11Invoice_recover_payee_pub_key(long this_arg);
12750         // MUST_USE_RES bool SignedRawBolt11Invoice_check_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
12751         public static native boolean SignedRawBolt11Invoice_check_signature(long this_arg);
12752         // MUST_USE_RES struct LDKThirtyTwoBytes RawBolt11Invoice_signable_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12753         public static native byte[] RawBolt11Invoice_signable_hash(long this_arg);
12754         // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_payment_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12755         public static native long RawBolt11Invoice_payment_hash(long this_arg);
12756         // MUST_USE_RES struct LDKDescription RawBolt11Invoice_description(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12757         public static native long RawBolt11Invoice_description(long this_arg);
12758         // MUST_USE_RES struct LDKPayeePubKey RawBolt11Invoice_payee_pub_key(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12759         public static native long RawBolt11Invoice_payee_pub_key(long this_arg);
12760         // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_description_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12761         public static native long RawBolt11Invoice_description_hash(long this_arg);
12762         // MUST_USE_RES struct LDKExpiryTime RawBolt11Invoice_expiry_time(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12763         public static native long RawBolt11Invoice_expiry_time(long this_arg);
12764         // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawBolt11Invoice_min_final_cltv_expiry_delta(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12765         public static native long RawBolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
12766         // MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12767         public static native long RawBolt11Invoice_payment_secret(long this_arg);
12768         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawBolt11Invoice_payment_metadata(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12769         public static native long RawBolt11Invoice_payment_metadata(long this_arg);
12770         // MUST_USE_RES struct LDKBolt11InvoiceFeatures RawBolt11Invoice_features(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12771         public static native long RawBolt11Invoice_features(long this_arg);
12772         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawBolt11Invoice_private_routes(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12773         public static native long[] RawBolt11Invoice_private_routes(long this_arg);
12774         // MUST_USE_RES struct LDKCOption_u64Z RawBolt11Invoice_amount_pico_btc(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12775         public static native long RawBolt11Invoice_amount_pico_btc(long this_arg);
12776         // MUST_USE_RES enum LDKCurrency RawBolt11Invoice_currency(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
12777         public static native Currency RawBolt11Invoice_currency(long this_arg);
12778         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
12779         public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
12780         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
12781         public static native long PositiveTimestamp_from_system_time(long time);
12782         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
12783         public static native long PositiveTimestamp_from_duration_since_epoch(long duration);
12784         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
12785         public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
12786         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
12787         public static native long PositiveTimestamp_as_duration_since_epoch(long this_arg);
12788         // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
12789         public static native long PositiveTimestamp_as_time(long this_arg);
12790         // MUST_USE_RES struct LDKThirtyTwoBytes Bolt11Invoice_signable_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12791         public static native byte[] Bolt11Invoice_signable_hash(long this_arg);
12792         // MUST_USE_RES struct LDKSignedRawBolt11Invoice Bolt11Invoice_into_signed_raw(struct LDKBolt11Invoice this_arg);
12793         public static native long Bolt11Invoice_into_signed_raw(long this_arg);
12794         // MUST_USE_RES struct LDKCResult_NoneBolt11SemanticErrorZ Bolt11Invoice_check_signature(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12795         public static native long Bolt11Invoice_check_signature(long this_arg);
12796         // MUST_USE_RES struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ Bolt11Invoice_from_signed(struct LDKSignedRawBolt11Invoice signed_invoice);
12797         public static native long Bolt11Invoice_from_signed(long signed_invoice);
12798         // MUST_USE_RES uint64_t Bolt11Invoice_timestamp(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12799         public static native long Bolt11Invoice_timestamp(long this_arg);
12800         // MUST_USE_RES uint64_t Bolt11Invoice_duration_since_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12801         public static native long Bolt11Invoice_duration_since_epoch(long this_arg);
12802         // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
12803         public static native byte[] Bolt11Invoice_payment_hash(long this_arg);
12804         // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12805         public static native byte[] Bolt11Invoice_payee_pub_key(long this_arg);
12806         // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_secret(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
12807         public static native byte[] Bolt11Invoice_payment_secret(long this_arg);
12808         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt11Invoice_payment_metadata(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12809         public static native long Bolt11Invoice_payment_metadata(long this_arg);
12810         // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11Invoice_features(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12811         public static native long Bolt11Invoice_features(long this_arg);
12812         // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_recover_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12813         public static native byte[] Bolt11Invoice_recover_payee_pub_key(long this_arg);
12814         // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12815         public static native long Bolt11Invoice_expires_at(long this_arg);
12816         // MUST_USE_RES uint64_t Bolt11Invoice_expiry_time(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12817         public static native long Bolt11Invoice_expiry_time(long this_arg);
12818         // MUST_USE_RES bool Bolt11Invoice_is_expired(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12819         public static native boolean Bolt11Invoice_is_expired(long this_arg);
12820         // MUST_USE_RES uint64_t Bolt11Invoice_duration_until_expiry(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12821         public static native long Bolt11Invoice_duration_until_expiry(long this_arg);
12822         // MUST_USE_RES uint64_t Bolt11Invoice_expiration_remaining_from_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t time);
12823         public static native long Bolt11Invoice_expiration_remaining_from_epoch(long this_arg, long time);
12824         // MUST_USE_RES bool Bolt11Invoice_would_expire(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t at_time);
12825         public static native boolean Bolt11Invoice_would_expire(long this_arg, long at_time);
12826         // MUST_USE_RES uint64_t Bolt11Invoice_min_final_cltv_expiry_delta(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12827         public static native long Bolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
12828         // MUST_USE_RES struct LDKCVec_StrZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12829         public static native String[] Bolt11Invoice_fallback_addresses(long this_arg);
12830         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Bolt11Invoice_private_routes(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12831         public static native long[] Bolt11Invoice_private_routes(long this_arg);
12832         // MUST_USE_RES struct LDKCVec_RouteHintZ Bolt11Invoice_route_hints(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12833         public static native long[] Bolt11Invoice_route_hints(long this_arg);
12834         // MUST_USE_RES enum LDKCurrency Bolt11Invoice_currency(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12835         public static native Currency Bolt11Invoice_currency(long this_arg);
12836         // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_amount_milli_satoshis(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
12837         public static native long Bolt11Invoice_amount_milli_satoshis(long this_arg);
12838         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
12839         public static native long Description_new(String description);
12840         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
12841         public static native String Description_into_inner(long this_arg);
12842         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
12843         public static native long ExpiryTime_from_seconds(long seconds);
12844         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
12845         public static native long ExpiryTime_from_duration(long duration);
12846         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
12847         public static native long ExpiryTime_as_seconds(long this_arg);
12848         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
12849         public static native long ExpiryTime_as_duration(long this_arg);
12850         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
12851         public static native long PrivateRoute_new(long hops);
12852         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
12853         public static native long PrivateRoute_into_inner(long this_arg);
12854         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
12855         public static native CreationError CreationError_clone(long orig);
12856         // enum LDKCreationError CreationError_description_too_long(void);
12857         public static native CreationError CreationError_description_too_long();
12858         // enum LDKCreationError CreationError_route_too_long(void);
12859         public static native CreationError CreationError_route_too_long();
12860         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
12861         public static native CreationError CreationError_timestamp_out_of_bounds();
12862         // enum LDKCreationError CreationError_invalid_amount(void);
12863         public static native CreationError CreationError_invalid_amount();
12864         // enum LDKCreationError CreationError_missing_route_hints(void);
12865         public static native CreationError CreationError_missing_route_hints();
12866         // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void);
12867         public static native CreationError CreationError_min_final_cltv_expiry_delta_too_short();
12868         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
12869         public static native boolean CreationError_eq(long a, long b);
12870         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
12871         public static native String CreationError_to_str(long o);
12872         // enum LDKBolt11SemanticError Bolt11SemanticError_clone(const enum LDKBolt11SemanticError *NONNULL_PTR orig);
12873         public static native Bolt11SemanticError Bolt11SemanticError_clone(long orig);
12874         // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_hash(void);
12875         public static native Bolt11SemanticError Bolt11SemanticError_no_payment_hash();
12876         // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_hashes(void);
12877         public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_hashes();
12878         // enum LDKBolt11SemanticError Bolt11SemanticError_no_description(void);
12879         public static native Bolt11SemanticError Bolt11SemanticError_no_description();
12880         // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_descriptions(void);
12881         public static native Bolt11SemanticError Bolt11SemanticError_multiple_descriptions();
12882         // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_secret(void);
12883         public static native Bolt11SemanticError Bolt11SemanticError_no_payment_secret();
12884         // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_secrets(void);
12885         public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_secrets();
12886         // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_features(void);
12887         public static native Bolt11SemanticError Bolt11SemanticError_invalid_features();
12888         // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_recovery_id(void);
12889         public static native Bolt11SemanticError Bolt11SemanticError_invalid_recovery_id();
12890         // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_signature(void);
12891         public static native Bolt11SemanticError Bolt11SemanticError_invalid_signature();
12892         // enum LDKBolt11SemanticError Bolt11SemanticError_imprecise_amount(void);
12893         public static native Bolt11SemanticError Bolt11SemanticError_imprecise_amount();
12894         // bool Bolt11SemanticError_eq(const enum LDKBolt11SemanticError *NONNULL_PTR a, const enum LDKBolt11SemanticError *NONNULL_PTR b);
12895         public static native boolean Bolt11SemanticError_eq(long a, long b);
12896         // struct LDKStr Bolt11SemanticError_to_str(const enum LDKBolt11SemanticError *NONNULL_PTR o);
12897         public static native String Bolt11SemanticError_to_str(long o);
12898         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
12899         public static native void SignOrCreationError_free(long this_ptr);
12900         // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
12901         public static native long SignOrCreationError_clone_ptr(long arg);
12902         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
12903         public static native long SignOrCreationError_clone(long orig);
12904         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
12905         public static native long SignOrCreationError_sign_error();
12906         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
12907         public static native long SignOrCreationError_creation_error(CreationError a);
12908         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
12909         public static native boolean SignOrCreationError_eq(long a, long b);
12910         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
12911         public static native String SignOrCreationError_to_str(long o);
12912         // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ pay_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
12913         public static native long pay_invoice(long invoice, long retry_strategy, long channelmanager);
12914         // struct LDKCResult_NonePaymentErrorZ pay_invoice_with_id(const struct LDKBolt11Invoice *NONNULL_PTR invoice, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
12915         public static native long pay_invoice_with_id(long invoice, byte[] payment_id, long retry_strategy, long channelmanager);
12916         // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ pay_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
12917         public static native long pay_zero_value_invoice(long invoice, long amount_msats, long retry_strategy, long channelmanager);
12918         // struct LDKCResult_NonePaymentErrorZ pay_zero_value_invoice_with_id(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
12919         public static native long pay_zero_value_invoice_with_id(long invoice, long amount_msats, byte[] payment_id, long retry_strategy, long channelmanager);
12920         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ preflight_probe_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKCOption_u64Z liquidity_limit_multiplier);
12921         public static native long preflight_probe_invoice(long invoice, long channelmanager, long liquidity_limit_multiplier);
12922         // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ preflight_probe_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msat, const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKCOption_u64Z liquidity_limit_multiplier);
12923         public static native long preflight_probe_zero_value_invoice(long invoice, long amount_msat, long channelmanager, long liquidity_limit_multiplier);
12924         // void PaymentError_free(struct LDKPaymentError this_ptr);
12925         public static native void PaymentError_free(long this_ptr);
12926         // uint64_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
12927         public static native long PaymentError_clone_ptr(long arg);
12928         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
12929         public static native long PaymentError_clone(long orig);
12930         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
12931         public static native long PaymentError_invoice(String a);
12932         // struct LDKPaymentError PaymentError_sending(enum LDKRetryableSendFailure a);
12933         public static native long PaymentError_sending(RetryableSendFailure a);
12934         // bool PaymentError_eq(const struct LDKPaymentError *NONNULL_PTR a, const struct LDKPaymentError *NONNULL_PTR b);
12935         public static native boolean PaymentError_eq(long a, long b);
12936         // void ProbingError_free(struct LDKProbingError this_ptr);
12937         public static native void ProbingError_free(long this_ptr);
12938         // uint64_t ProbingError_clone_ptr(LDKProbingError *NONNULL_PTR arg);
12939         public static native long ProbingError_clone_ptr(long arg);
12940         // struct LDKProbingError ProbingError_clone(const struct LDKProbingError *NONNULL_PTR orig);
12941         public static native long ProbingError_clone(long orig);
12942         // struct LDKProbingError ProbingError_invoice(struct LDKStr a);
12943         public static native long ProbingError_invoice(String a);
12944         // struct LDKProbingError ProbingError_sending(struct LDKProbeSendFailure a);
12945         public static native long ProbingError_sending(long a);
12946         // bool ProbingError_eq(const struct LDKProbingError *NONNULL_PTR a, const struct LDKProbingError *NONNULL_PTR b);
12947         public static native boolean ProbingError_eq(long a, long b);
12948         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
12949         public static native long create_phantom_invoice(long amt_msat, long payment_hash, String description, int invoice_expiry_delta_secs, long[] phantom_route_hints, long entropy_source, long node_signer, long logger, Currency network, long min_final_cltv_expiry_delta, long duration_since_epoch);
12950         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
12951         public static native long create_phantom_invoice_with_description_hash(long amt_msat, long payment_hash, int invoice_expiry_delta_secs, long description_hash, long[] phantom_route_hints, long entropy_source, long node_signer, long logger, Currency network, long min_final_cltv_expiry_delta, long duration_since_epoch);
12952         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
12953         public static native long create_invoice_from_channelmanager(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, String description, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
12954         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
12955         public static native long create_invoice_from_channelmanager_with_description_hash(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, long description_hash, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
12956         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
12957         public static native long create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, long description_hash, long duration_since_epoch, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
12958         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
12959         public static native long create_invoice_from_channelmanager_and_duration_since_epoch(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, String description, long duration_since_epoch, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
12960         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
12961         public static native long create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, String description, long duration_since_epoch, int invoice_expiry_delta_secs, byte[] payment_hash, long min_final_cltv_expiry_delta);
12962         // struct LDKCResult_SiPrefixBolt11ParseErrorZ SiPrefix_from_str(struct LDKStr s);
12963         public static native long SiPrefix_from_str(String s);
12964         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ Bolt11Invoice_from_str(struct LDKStr s);
12965         public static native long Bolt11Invoice_from_str(String s);
12966         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ SignedRawBolt11Invoice_from_str(struct LDKStr s);
12967         public static native long SignedRawBolt11Invoice_from_str(String s);
12968         // struct LDKStr Bolt11ParseError_to_str(const struct LDKBolt11ParseError *NONNULL_PTR o);
12969         public static native String Bolt11ParseError_to_str(long o);
12970         // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
12971         public static native String ParseOrSemanticError_to_str(long o);
12972         // struct LDKStr Bolt11Invoice_to_str(const struct LDKBolt11Invoice *NONNULL_PTR o);
12973         public static native String Bolt11Invoice_to_str(long o);
12974         // struct LDKStr SignedRawBolt11Invoice_to_str(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
12975         public static native String SignedRawBolt11Invoice_to_str(long o);
12976         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
12977         public static native String Currency_to_str(long o);
12978         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
12979         public static native String SiPrefix_to_str(long o);
12980         // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
12981         public static native void RapidGossipSync_free(long this_obj);
12982         // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
12983         public static native long RapidGossipSync_new(long network_graph, long logger);
12984         // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_sync_network_graph_with_file_path(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKStr sync_path);
12985         public static native long RapidGossipSync_sync_network_graph_with_file_path(long this_arg, String sync_path);
12986         // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
12987         public static native long RapidGossipSync_update_network_graph(long this_arg, byte[] update_data);
12988         // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph_no_std(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data, struct LDKCOption_u64Z current_time_unix);
12989         public static native long RapidGossipSync_update_network_graph_no_std(long this_arg, byte[] update_data, long current_time_unix);
12990         // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
12991         public static native boolean RapidGossipSync_is_initial_sync_complete(long this_arg);
12992         // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
12993         public static native void GraphSyncError_free(long this_ptr);
12994         // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
12995         public static native long GraphSyncError_clone_ptr(long arg);
12996         // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
12997         public static native long GraphSyncError_clone(long orig);
12998         // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
12999         public static native long GraphSyncError_decode_error(long a);
13000         // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
13001         public static native long GraphSyncError_lightning_error(long a);
13002 }