f3f601623bebbb769f6d5d8020a3308dc5e524bb
[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 { FailureCode.values(); /* Force enum statics to run */ }
57         static { HTLCClaim.values(); /* Force enum statics to run */ }
58         static { IOError.values(); /* Force enum statics to run */ }
59         static { Level.values(); /* Force enum statics to run */ }
60         static { Network.values(); /* Force enum statics to run */ }
61         static { PaymentFailureReason.values(); /* Force enum statics to run */ }
62         static { Recipient.values(); /* Force enum statics to run */ }
63         static { RetryableSendFailure.values(); /* Force enum statics to run */ }
64         static { Secp256k1Error.values(); /* Force enum statics to run */ }
65         static { SiPrefix.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_DurationZ {
115                 private LDKCOption_DurationZ() {}
116                 public final static class Some extends LDKCOption_DurationZ {
117                         public long some;
118                         Some(long some) { this.some = some; }
119                 }
120                 public final static class None extends LDKCOption_DurationZ {
121                         None() { }
122                 }
123                 static native void init();
124         }
125         static { LDKCOption_DurationZ.init(); }
126         public static native LDKCOption_DurationZ LDKCOption_DurationZ_ref_from_ptr(long ptr);
127         public static class LDKCOption_u64Z {
128                 private LDKCOption_u64Z() {}
129                 public final static class Some extends LDKCOption_u64Z {
130                         public long some;
131                         Some(long some) { this.some = some; }
132                 }
133                 public final static class None extends LDKCOption_u64Z {
134                         None() { }
135                 }
136                 static native void init();
137         }
138         static { LDKCOption_u64Z.init(); }
139         public static native LDKCOption_u64Z LDKCOption_u64Z_ref_from_ptr(long ptr);
140         // struct LDKRefund CResult_RefundBolt12ParseErrorZ_get_ok(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
141         public static native long CResult_RefundBolt12ParseErrorZ_get_ok(long owner);
142         // struct LDKBolt12ParseError CResult_RefundBolt12ParseErrorZ_get_err(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
143         public static native long CResult_RefundBolt12ParseErrorZ_get_err(long owner);
144         public static class LDKAPIError {
145                 private LDKAPIError() {}
146                 public final static class APIMisuseError extends LDKAPIError {
147                         public java.lang.String err;
148                         APIMisuseError(java.lang.String err) { this.err = err; }
149                 }
150                 public final static class FeeRateTooHigh extends LDKAPIError {
151                         public java.lang.String err;
152                         public int feerate;
153                         FeeRateTooHigh(java.lang.String err, int feerate) { this.err = err; this.feerate = feerate; }
154                 }
155                 public final static class InvalidRoute extends LDKAPIError {
156                         public java.lang.String err;
157                         InvalidRoute(java.lang.String err) { this.err = err; }
158                 }
159                 public final static class ChannelUnavailable extends LDKAPIError {
160                         public java.lang.String err;
161                         ChannelUnavailable(java.lang.String err) { this.err = err; }
162                 }
163                 public final static class MonitorUpdateInProgress extends LDKAPIError {
164                         MonitorUpdateInProgress() { }
165                 }
166                 public final static class IncompatibleShutdownScript extends LDKAPIError {
167                         public long script;
168                         IncompatibleShutdownScript(long script) { this.script = script; }
169                 }
170                 static native void init();
171         }
172         static { LDKAPIError.init(); }
173         public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
174         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
175         public static native void CResult_NoneAPIErrorZ_get_ok(long owner);
176         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
177         public static native long CResult_NoneAPIErrorZ_get_err(long owner);
178         public static class LDKCOption_PaymentSecretZ {
179                 private LDKCOption_PaymentSecretZ() {}
180                 public final static class Some extends LDKCOption_PaymentSecretZ {
181                         public byte[] some;
182                         Some(byte[] some) { this.some = some; }
183                 }
184                 public final static class None extends LDKCOption_PaymentSecretZ {
185                         None() { }
186                 }
187                 static native void init();
188         }
189         static { LDKCOption_PaymentSecretZ.init(); }
190         public static native LDKCOption_PaymentSecretZ LDKCOption_PaymentSecretZ_ref_from_ptr(long ptr);
191         public static class LDKCOption_CVec_u8ZZ {
192                 private LDKCOption_CVec_u8ZZ() {}
193                 public final static class Some extends LDKCOption_CVec_u8ZZ {
194                         public byte[] some;
195                         Some(byte[] some) { this.some = some; }
196                 }
197                 public final static class None extends LDKCOption_CVec_u8ZZ {
198                         None() { }
199                 }
200                 static native void init();
201         }
202         static { LDKCOption_CVec_u8ZZ.init(); }
203         public static native LDKCOption_CVec_u8ZZ LDKCOption_CVec_u8ZZ_ref_from_ptr(long ptr);
204         public static class LDKDecodeError {
205                 private LDKDecodeError() {}
206                 public final static class UnknownVersion extends LDKDecodeError {
207                         UnknownVersion() { }
208                 }
209                 public final static class UnknownRequiredFeature extends LDKDecodeError {
210                         UnknownRequiredFeature() { }
211                 }
212                 public final static class InvalidValue extends LDKDecodeError {
213                         InvalidValue() { }
214                 }
215                 public final static class ShortRead extends LDKDecodeError {
216                         ShortRead() { }
217                 }
218                 public final static class BadLengthDescriptor extends LDKDecodeError {
219                         BadLengthDescriptor() { }
220                 }
221                 public final static class Io extends LDKDecodeError {
222                         public org.ldk.enums.IOError io;
223                         Io(org.ldk.enums.IOError io) { this.io = io; }
224                 }
225                 public final static class UnsupportedCompression extends LDKDecodeError {
226                         UnsupportedCompression() { }
227                 }
228                 static native void init();
229         }
230         static { LDKDecodeError.init(); }
231         public static native LDKDecodeError LDKDecodeError_ref_from_ptr(long ptr);
232         // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
233         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(long owner);
234         // struct LDKDecodeError CResult_RecipientOnionFieldsDecodeErrorZ_get_err(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
235         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_err(long owner);
236         // struct LDKBlindedPayInfo CResult_BlindedPayInfoDecodeErrorZ_get_ok(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
237         public static native long CResult_BlindedPayInfoDecodeErrorZ_get_ok(long owner);
238         // struct LDKDecodeError CResult_BlindedPayInfoDecodeErrorZ_get_err(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
239         public static native long CResult_BlindedPayInfoDecodeErrorZ_get_err(long owner);
240         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
241         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
242         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
243         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
244         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
245         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
246         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
247         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
248         public static class LDKSpendableOutputDescriptor {
249                 private LDKSpendableOutputDescriptor() {}
250                 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
251                         public long outpoint;
252                         public long output;
253                         StaticOutput(long outpoint, long output) { this.outpoint = outpoint; this.output = output; }
254                 }
255                 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
256                         public long delayed_payment_output;
257                         DelayedPaymentOutput(long delayed_payment_output) { this.delayed_payment_output = delayed_payment_output; }
258                 }
259                 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
260                         public long static_payment_output;
261                         StaticPaymentOutput(long static_payment_output) { this.static_payment_output = static_payment_output; }
262                 }
263                 static native void init();
264         }
265         static { LDKSpendableOutputDescriptor.init(); }
266         public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
267         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
268         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long owner);
269         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
270         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long owner);
271         public static class LDKCOption_PackedLockTimeZ {
272                 private LDKCOption_PackedLockTimeZ() {}
273                 public final static class Some extends LDKCOption_PackedLockTimeZ {
274                         public int some;
275                         Some(int some) { this.some = some; }
276                 }
277                 public final static class None extends LDKCOption_PackedLockTimeZ {
278                         None() { }
279                 }
280                 static native void init();
281         }
282         static { LDKCOption_PackedLockTimeZ.init(); }
283         public static native LDKCOption_PackedLockTimeZ LDKCOption_PackedLockTimeZ_ref_from_ptr(long ptr);
284         // struct LDKCVec_u8Z C2Tuple_PartiallySignedTransactionusizeZ_get_a(LDKC2Tuple_PartiallySignedTransactionusizeZ *NONNULL_PTR owner);
285         public static native byte[] C2Tuple_PartiallySignedTransactionusizeZ_get_a(long owner);
286         // uintptr_t C2Tuple_PartiallySignedTransactionusizeZ_get_b(LDKC2Tuple_PartiallySignedTransactionusizeZ *NONNULL_PTR owner);
287         public static native long C2Tuple_PartiallySignedTransactionusizeZ_get_b(long owner);
288         // struct LDKC2Tuple_PartiallySignedTransactionusizeZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_get_ok(LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR owner);
289         public static native long CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_get_ok(long owner);
290         // void CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_get_err(LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR owner);
291         public static native void CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_get_err(long owner);
292         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
293         public static native void CResult_NoneNoneZ_get_ok(long owner);
294         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
295         public static native void CResult_NoneNoneZ_get_err(long owner);
296         // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
297         public static native byte[] C2Tuple_SignatureCVec_SignatureZZ_get_a(long owner);
298         // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
299         public static native byte[][] C2Tuple_SignatureCVec_SignatureZZ_get_b(long owner);
300         // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
301         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(long owner);
302         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
303         public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(long owner);
304         // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
305         public static native byte[] CResult_SignatureNoneZ_get_ok(long owner);
306         // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
307         public static native void CResult_SignatureNoneZ_get_err(long owner);
308         // struct LDKPublicKey CResult_PublicKeyNoneZ_get_ok(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
309         public static native byte[] CResult_PublicKeyNoneZ_get_ok(long owner);
310         // void CResult_PublicKeyNoneZ_get_err(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
311         public static native void CResult_PublicKeyNoneZ_get_err(long owner);
312         public static class LDKCOption_ScalarZ {
313                 private LDKCOption_ScalarZ() {}
314                 public final static class Some extends LDKCOption_ScalarZ {
315                         public long some;
316                         Some(long some) { this.some = some; }
317                 }
318                 public final static class None extends LDKCOption_ScalarZ {
319                         None() { }
320                 }
321                 static native void init();
322         }
323         static { LDKCOption_ScalarZ.init(); }
324         public static native LDKCOption_ScalarZ LDKCOption_ScalarZ_ref_from_ptr(long ptr);
325         // struct LDKThirtyTwoBytes CResult_SharedSecretNoneZ_get_ok(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
326         public static native byte[] CResult_SharedSecretNoneZ_get_ok(long owner);
327         // void CResult_SharedSecretNoneZ_get_err(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
328         public static native void CResult_SharedSecretNoneZ_get_err(long owner);
329         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
330         public static native byte[] CResult_RecoverableSignatureNoneZ_get_ok(long owner);
331         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
332         public static native void CResult_RecoverableSignatureNoneZ_get_err(long owner);
333         public interface LDKChannelSigner {
334                  byte[] get_per_commitment_point(long idx);
335                  byte[] release_commitment_secret(long idx);
336                  long validate_holder_commitment(long holder_tx, byte[][] preimages);
337                  byte[] channel_keys_id();
338                  void provide_channel_parameters(long channel_parameters);
339         }
340         public static native long LDKChannelSigner_new(LDKChannelSigner impl, long pubkeys);
341         // LDKPublicKey ChannelSigner_get_per_commitment_point LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
342         public static native byte[] ChannelSigner_get_per_commitment_point(long this_arg, long idx);
343         // LDKThirtyTwoBytes ChannelSigner_release_commitment_secret LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
344         public static native byte[] ChannelSigner_release_commitment_secret(long this_arg, long idx);
345         // LDKCResult_NoneNoneZ ChannelSigner_validate_holder_commitment LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
346         public static native long ChannelSigner_validate_holder_commitment(long this_arg, long holder_tx, byte[][] preimages);
347         // LDKThirtyTwoBytes ChannelSigner_channel_keys_id LDKChannelSigner *NONNULL_PTR this_arg
348         public static native byte[] ChannelSigner_channel_keys_id(long this_arg);
349         // void ChannelSigner_provide_channel_parameters LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
350         public static native void ChannelSigner_provide_channel_parameters(long this_arg, long channel_parameters);
351         // LDKChannelPublicKeys ChannelSigner_get_pubkeys LDKChannelSigner *NONNULL_PTR this_arg
352         public static native long ChannelSigner_get_pubkeys(long this_arg);
353         public interface LDKEcdsaChannelSigner {
354                  long sign_counterparty_commitment(long commitment_tx, byte[][] preimages);
355                  long validate_counterparty_revocation(long idx, byte[] secret);
356                  long sign_holder_commitment_and_htlcs(long commitment_tx);
357                  long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
358                  long sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
359                  long sign_holder_htlc_transaction(byte[] htlc_tx, long input, long htlc_descriptor);
360                  long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
361                  long sign_closing_transaction(long closing_tx);
362                  long sign_holder_anchor_input(byte[] anchor_tx, long input);
363                  long sign_channel_announcement_with_funding_key(long msg);
364         }
365         public static native long LDKEcdsaChannelSigner_new(LDKEcdsaChannelSigner impl, LDKChannelSigner ChannelSigner, long pubkeys);
366         public static native long LDKEcdsaChannelSigner_get_ChannelSigner(long arg);
367         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ EcdsaChannelSigner_sign_counterparty_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
368         public static native long EcdsaChannelSigner_sign_counterparty_commitment(long this_arg, long commitment_tx, byte[][] preimages);
369         // LDKCResult_NoneNoneZ EcdsaChannelSigner_validate_counterparty_revocation LDKEcdsaChannelSigner *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
370         public static native long EcdsaChannelSigner_validate_counterparty_revocation(long this_arg, long idx, byte[] secret);
371         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ EcdsaChannelSigner_sign_holder_commitment_and_htlcs LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
372         public static native long EcdsaChannelSigner_sign_holder_commitment_and_htlcs(long this_arg, long commitment_tx);
373         // LDKCResult_SignatureNoneZ 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]
374         public static native long EcdsaChannelSigner_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
375         // LDKCResult_SignatureNoneZ 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
376         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);
377         // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_holder_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor
378         public static native long EcdsaChannelSigner_sign_holder_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long htlc_descriptor);
379         // LDKCResult_SignatureNoneZ 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
380         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);
381         // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_closing_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
382         public static native long EcdsaChannelSigner_sign_closing_transaction(long this_arg, long closing_tx);
383         // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_holder_anchor_input LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction anchor_tx, uintptr_t input
384         public static native long EcdsaChannelSigner_sign_holder_anchor_input(long this_arg, byte[] anchor_tx, long input);
385         // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_channel_announcement_with_funding_key LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
386         public static native long EcdsaChannelSigner_sign_channel_announcement_with_funding_key(long this_arg, long msg);
387         public interface LDKWriteableEcdsaChannelSigner {
388                  byte[] write();
389         }
390         public static native long LDKWriteableEcdsaChannelSigner_new(LDKWriteableEcdsaChannelSigner impl, LDKEcdsaChannelSigner EcdsaChannelSigner, LDKChannelSigner ChannelSigner, long pubkeys);
391         public static native long LDKWriteableEcdsaChannelSigner_get_EcdsaChannelSigner(long arg);
392         public static native long LDKWriteableEcdsaChannelSigner_get_ChannelSigner(long arg);
393         // LDKCVec_u8Z WriteableEcdsaChannelSigner_write LDKWriteableEcdsaChannelSigner *NONNULL_PTR this_arg
394         public static native byte[] WriteableEcdsaChannelSigner_write(long this_arg);
395         // struct LDKWriteableEcdsaChannelSigner CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
396         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(long owner);
397         // struct LDKDecodeError CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
398         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(long owner);
399         // struct LDKCVec_u8Z CResult_ScriptNoneZ_get_ok(LDKCResult_ScriptNoneZ *NONNULL_PTR owner);
400         public static native byte[] CResult_ScriptNoneZ_get_ok(long owner);
401         // void CResult_ScriptNoneZ_get_err(LDKCResult_ScriptNoneZ *NONNULL_PTR owner);
402         public static native void CResult_ScriptNoneZ_get_err(long owner);
403         // struct LDKShutdownScript CResult_ShutdownScriptNoneZ_get_ok(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
404         public static native long CResult_ShutdownScriptNoneZ_get_ok(long owner);
405         // void CResult_ShutdownScriptNoneZ_get_err(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
406         public static native void CResult_ShutdownScriptNoneZ_get_err(long owner);
407         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
408         public static native byte[][] CResult_CVec_CVec_u8ZZNoneZ_get_ok(long owner);
409         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
410         public static native void CResult_CVec_CVec_u8ZZNoneZ_get_err(long owner);
411         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
412         public static native long CResult_InMemorySignerDecodeErrorZ_get_ok(long owner);
413         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
414         public static native long CResult_InMemorySignerDecodeErrorZ_get_err(long owner);
415         // struct LDKCVec_u8Z CResult_PartiallySignedTransactionNoneZ_get_ok(LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR owner);
416         public static native byte[] CResult_PartiallySignedTransactionNoneZ_get_ok(long owner);
417         // void CResult_PartiallySignedTransactionNoneZ_get_err(LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR owner);
418         public static native void CResult_PartiallySignedTransactionNoneZ_get_err(long owner);
419         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
420         public static native byte[] CResult_TransactionNoneZ_get_ok(long owner);
421         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
422         public static native void CResult_TransactionNoneZ_get_err(long owner);
423         public interface LDKScore {
424                  long channel_penalty_msat(long short_channel_id, long source, long target, long usage, long score_params);
425                  void payment_path_failed(long path, long short_channel_id);
426                  void payment_path_successful(long path);
427                  void probe_failed(long path, long short_channel_id);
428                  void probe_successful(long path);
429                  byte[] write();
430         }
431         public static native long LDKScore_new(LDKScore impl);
432         // uint64_t Score_channel_penalty_msat LDKScore *NONNULL_PTR this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params
433         public static native long Score_channel_penalty_msat(long this_arg, long short_channel_id, long source, long target, long usage, long score_params);
434         // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id
435         public static native void Score_payment_path_failed(long this_arg, long path, long short_channel_id);
436         // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path
437         public static native void Score_payment_path_successful(long this_arg, long path);
438         // void Score_probe_failed LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id
439         public static native void Score_probe_failed(long this_arg, long path, long short_channel_id);
440         // void Score_probe_successful LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path
441         public static native void Score_probe_successful(long this_arg, long path);
442         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
443         public static native byte[] Score_write(long this_arg);
444         public interface LDKLockableScore {
445                  long lock();
446         }
447         public static native long LDKLockableScore_new(LDKLockableScore impl);
448         // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
449         public static native long LockableScore_lock(long this_arg);
450         public interface LDKWriteableScore {
451                  byte[] write();
452         }
453         public static native long LDKWriteableScore_new(LDKWriteableScore impl, LDKLockableScore LockableScore);
454         public static native long LDKWriteableScore_get_LockableScore(long arg);
455         // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg
456         public static native byte[] WriteableScore_write(long this_arg);
457         public static class LDKCOption_WriteableScoreZ {
458                 private LDKCOption_WriteableScoreZ() {}
459                 public final static class Some extends LDKCOption_WriteableScoreZ {
460                         public long some;
461                         Some(long some) { this.some = some; }
462                 }
463                 public final static class None extends LDKCOption_WriteableScoreZ {
464                         None() { }
465                 }
466                 static native void init();
467         }
468         static { LDKCOption_WriteableScoreZ.init(); }
469         public static native LDKCOption_WriteableScoreZ LDKCOption_WriteableScoreZ_ref_from_ptr(long ptr);
470         // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
471         public static native void CResult_NoneErrorZ_get_ok(long owner);
472         // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
473         public static native IOError CResult_NoneErrorZ_get_err(long owner);
474         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
475         public static native long CResult_RouteLightningErrorZ_get_ok(long owner);
476         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
477         public static native long CResult_RouteLightningErrorZ_get_err(long owner);
478         // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
479         public static native long CResult_InFlightHtlcsDecodeErrorZ_get_ok(long owner);
480         // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
481         public static native long CResult_InFlightHtlcsDecodeErrorZ_get_err(long owner);
482         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
483         public static native long CResult_RouteHopDecodeErrorZ_get_ok(long owner);
484         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
485         public static native long CResult_RouteHopDecodeErrorZ_get_err(long owner);
486         // struct LDKBlindedTail CResult_BlindedTailDecodeErrorZ_get_ok(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
487         public static native long CResult_BlindedTailDecodeErrorZ_get_ok(long owner);
488         // struct LDKDecodeError CResult_BlindedTailDecodeErrorZ_get_err(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
489         public static native long CResult_BlindedTailDecodeErrorZ_get_err(long owner);
490         public static class LDKCOption_u32Z {
491                 private LDKCOption_u32Z() {}
492                 public final static class Some extends LDKCOption_u32Z {
493                         public int some;
494                         Some(int some) { this.some = some; }
495                 }
496                 public final static class None extends LDKCOption_u32Z {
497                         None() { }
498                 }
499                 static native void init();
500         }
501         static { LDKCOption_u32Z.init(); }
502         public static native LDKCOption_u32Z LDKCOption_u32Z_ref_from_ptr(long ptr);
503         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
504         public static native long CResult_RouteDecodeErrorZ_get_ok(long owner);
505         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
506         public static native long CResult_RouteDecodeErrorZ_get_err(long owner);
507         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
508         public static native long CResult_RouteParametersDecodeErrorZ_get_ok(long owner);
509         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
510         public static native long CResult_RouteParametersDecodeErrorZ_get_err(long owner);
511         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
512         public static native long CResult_PaymentParametersDecodeErrorZ_get_ok(long owner);
513         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
514         public static native long CResult_PaymentParametersDecodeErrorZ_get_err(long owner);
515         // struct LDKBlindedPayInfo C2Tuple_BlindedPayInfoBlindedPathZ_get_a(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
516         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_a(long owner);
517         // struct LDKBlindedPath C2Tuple_BlindedPayInfoBlindedPathZ_get_b(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
518         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_b(long owner);
519         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
520         public static native long CResult_RouteHintDecodeErrorZ_get_ok(long owner);
521         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
522         public static native long CResult_RouteHintDecodeErrorZ_get_err(long owner);
523         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
524         public static native long CResult_RouteHintHopDecodeErrorZ_get_ok(long owner);
525         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
526         public static native long CResult_RouteHintHopDecodeErrorZ_get_err(long owner);
527         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
528         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(long owner);
529         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
530         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_err(long owner);
531         // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
532         public static native long C2Tuple_u64u64Z_get_a(long owner);
533         // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
534         public static native long C2Tuple_u64u64Z_get_b(long owner);
535         public static class LDKCOption_C2Tuple_u64u64ZZ {
536                 private LDKCOption_C2Tuple_u64u64ZZ() {}
537                 public final static class Some extends LDKCOption_C2Tuple_u64u64ZZ {
538                         public long some;
539                         Some(long some) { this.some = some; }
540                 }
541                 public final static class None extends LDKCOption_C2Tuple_u64u64ZZ {
542                         None() { }
543                 }
544                 static native void init();
545         }
546         static { LDKCOption_C2Tuple_u64u64ZZ.init(); }
547         public static native LDKCOption_C2Tuple_u64u64ZZ LDKCOption_C2Tuple_u64u64ZZ_ref_from_ptr(long ptr);
548         // struct LDKEightU16s C2Tuple_Z_get_a(LDKC2Tuple_Z *NONNULL_PTR owner);
549         public static native short[] C2Tuple_Z_get_a(long owner);
550         // struct LDKEightU16s C2Tuple_Z_get_b(LDKC2Tuple_Z *NONNULL_PTR owner);
551         public static native short[] C2Tuple_Z_get_b(long owner);
552         // struct LDKEightU16s C2Tuple__u168_u168Z_get_a(LDKC2Tuple__u168_u168Z *NONNULL_PTR owner);
553         public static native short[] C2Tuple__u168_u168Z_get_a(long owner);
554         // struct LDKEightU16s C2Tuple__u168_u168Z_get_b(LDKC2Tuple__u168_u168Z *NONNULL_PTR owner);
555         public static native short[] C2Tuple__u168_u168Z_get_b(long owner);
556         public static class LDKCOption_C2Tuple_EightU16sEightU16sZZ {
557                 private LDKCOption_C2Tuple_EightU16sEightU16sZZ() {}
558                 public final static class Some extends LDKCOption_C2Tuple_EightU16sEightU16sZZ {
559                         public long some;
560                         Some(long some) { this.some = some; }
561                 }
562                 public final static class None extends LDKCOption_C2Tuple_EightU16sEightU16sZZ {
563                         None() { }
564                 }
565                 static native void init();
566         }
567         static { LDKCOption_C2Tuple_EightU16sEightU16sZZ.init(); }
568         public static native LDKCOption_C2Tuple_EightU16sEightU16sZZ LDKCOption_C2Tuple_EightU16sEightU16sZZ_ref_from_ptr(long ptr);
569         public interface LDKLogger {
570                  void log(long record);
571         }
572         public static native long LDKLogger_new(LDKLogger impl);
573         // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
574         public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_ok(long owner);
575         // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
576         public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_err(long owner);
577         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
578         public static native long C2Tuple_usizeTransactionZ_get_a(long owner);
579         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
580         public static native byte[] C2Tuple_usizeTransactionZ_get_b(long owner);
581         public static class LDKCOption_BlockHashZ {
582                 private LDKCOption_BlockHashZ() {}
583                 public final static class Some extends LDKCOption_BlockHashZ {
584                         public byte[] some;
585                         Some(byte[] some) { this.some = some; }
586                 }
587                 public final static class None extends LDKCOption_BlockHashZ {
588                         None() { }
589                 }
590                 static native void init();
591         }
592         static { LDKCOption_BlockHashZ.init(); }
593         public static native LDKCOption_BlockHashZ LDKCOption_BlockHashZ_ref_from_ptr(long ptr);
594         // struct LDKThirtyTwoBytes C2Tuple_TxidCOption_BlockHashZZ_get_a(LDKC2Tuple_TxidCOption_BlockHashZZ *NONNULL_PTR owner);
595         public static native byte[] C2Tuple_TxidCOption_BlockHashZZ_get_a(long owner);
596         // struct LDKCOption_BlockHashZ C2Tuple_TxidCOption_BlockHashZZ_get_b(LDKC2Tuple_TxidCOption_BlockHashZZ *NONNULL_PTR owner);
597         public static native long C2Tuple_TxidCOption_BlockHashZZ_get_b(long owner);
598         public static class LDKMonitorEvent {
599                 private LDKMonitorEvent() {}
600                 public final static class HTLCEvent extends LDKMonitorEvent {
601                         public long htlc_event;
602                         HTLCEvent(long htlc_event) { this.htlc_event = htlc_event; }
603                 }
604                 public final static class CommitmentTxConfirmed extends LDKMonitorEvent {
605                         public long commitment_tx_confirmed;
606                         CommitmentTxConfirmed(long commitment_tx_confirmed) { this.commitment_tx_confirmed = commitment_tx_confirmed; }
607                 }
608                 public final static class Completed extends LDKMonitorEvent {
609                         public long funding_txo;
610                         public long monitor_update_id;
611                         Completed(long funding_txo, long monitor_update_id) { this.funding_txo = funding_txo; this.monitor_update_id = monitor_update_id; }
612                 }
613                 public final static class UpdateFailed extends LDKMonitorEvent {
614                         public long update_failed;
615                         UpdateFailed(long update_failed) { this.update_failed = update_failed; }
616                 }
617                 static native void init();
618         }
619         static { LDKMonitorEvent.init(); }
620         public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
621         // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
622         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(long owner);
623         // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
624         public static native long[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(long owner);
625         // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
626         public static native byte[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(long owner);
627         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
628         public static native long CResult_InitFeaturesDecodeErrorZ_get_ok(long owner);
629         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
630         public static native long CResult_InitFeaturesDecodeErrorZ_get_err(long owner);
631         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
632         public static native long CResult_ChannelFeaturesDecodeErrorZ_get_ok(long owner);
633         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
634         public static native long CResult_ChannelFeaturesDecodeErrorZ_get_err(long owner);
635         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
636         public static native long CResult_NodeFeaturesDecodeErrorZ_get_ok(long owner);
637         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
638         public static native long CResult_NodeFeaturesDecodeErrorZ_get_err(long owner);
639         // struct LDKBolt11InvoiceFeatures CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
640         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
641         // struct LDKDecodeError CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
642         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(long owner);
643         // struct LDKBolt12InvoiceFeatures CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
644         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
645         // struct LDKDecodeError CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
646         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(long owner);
647         // struct LDKBlindedHopFeatures CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
648         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(long owner);
649         // struct LDKDecodeError CResult_BlindedHopFeaturesDecodeErrorZ_get_err(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
650         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_err(long owner);
651         // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
652         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(long owner);
653         // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
654         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(long owner);
655         // struct LDKOffer CResult_OfferBolt12ParseErrorZ_get_ok(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
656         public static native long CResult_OfferBolt12ParseErrorZ_get_ok(long owner);
657         // struct LDKBolt12ParseError CResult_OfferBolt12ParseErrorZ_get_err(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
658         public static native long CResult_OfferBolt12ParseErrorZ_get_err(long owner);
659         // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
660         public static native byte[] CResult_PublicKeyErrorZ_get_ok(long owner);
661         // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
662         public static native Secp256k1Error CResult_PublicKeyErrorZ_get_err(long owner);
663         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
664         public static native long CResult_NodeIdDecodeErrorZ_get_ok(long owner);
665         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
666         public static native long CResult_NodeIdDecodeErrorZ_get_err(long owner);
667         public static class LDKNetworkUpdate {
668                 private LDKNetworkUpdate() {}
669                 public final static class ChannelUpdateMessage extends LDKNetworkUpdate {
670                         public long msg;
671                         ChannelUpdateMessage(long msg) { this.msg = msg; }
672                 }
673                 public final static class ChannelFailure extends LDKNetworkUpdate {
674                         public long short_channel_id;
675                         public boolean is_permanent;
676                         ChannelFailure(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
677                 }
678                 public final static class NodeFailure extends LDKNetworkUpdate {
679                         public byte[] node_id;
680                         public boolean is_permanent;
681                         NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
682                 }
683                 static native void init();
684         }
685         static { LDKNetworkUpdate.init(); }
686         public static native LDKNetworkUpdate LDKNetworkUpdate_ref_from_ptr(long ptr);
687         public static class LDKCOption_NetworkUpdateZ {
688                 private LDKCOption_NetworkUpdateZ() {}
689                 public final static class Some extends LDKCOption_NetworkUpdateZ {
690                         public long some;
691                         Some(long some) { this.some = some; }
692                 }
693                 public final static class None extends LDKCOption_NetworkUpdateZ {
694                         None() { }
695                 }
696                 static native void init();
697         }
698         static { LDKCOption_NetworkUpdateZ.init(); }
699         public static native LDKCOption_NetworkUpdateZ LDKCOption_NetworkUpdateZ_ref_from_ptr(long ptr);
700         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
701         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(long owner);
702         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
703         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(long owner);
704         // struct LDKTxOut CResult_TxOutUtxoLookupErrorZ_get_ok(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
705         public static native long CResult_TxOutUtxoLookupErrorZ_get_ok(long owner);
706         // enum LDKUtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
707         public static native UtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(long owner);
708         public static class LDKUtxoResult {
709                 private LDKUtxoResult() {}
710                 public final static class Sync extends LDKUtxoResult {
711                         public long sync;
712                         Sync(long sync) { this.sync = sync; }
713                 }
714                 public final static class Async extends LDKUtxoResult {
715                         public long async;
716                         Async(long async) { this.async = async; }
717                 }
718                 static native void init();
719         }
720         static { LDKUtxoResult.init(); }
721         public static native LDKUtxoResult LDKUtxoResult_ref_from_ptr(long ptr);
722         public interface LDKUtxoLookup {
723                  long get_utxo(byte[] genesis_hash, long short_channel_id);
724         }
725         public static native long LDKUtxoLookup_new(LDKUtxoLookup impl);
726         // LDKUtxoResult UtxoLookup_get_utxo LDKUtxoLookup *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
727         public static native long UtxoLookup_get_utxo(long this_arg, byte[] genesis_hash, long short_channel_id);
728         public static class LDKCOption_UtxoLookupZ {
729                 private LDKCOption_UtxoLookupZ() {}
730                 public final static class Some extends LDKCOption_UtxoLookupZ {
731                         public long some;
732                         Some(long some) { this.some = some; }
733                 }
734                 public final static class None extends LDKCOption_UtxoLookupZ {
735                         None() { }
736                 }
737                 static native void init();
738         }
739         static { LDKCOption_UtxoLookupZ.init(); }
740         public static native LDKCOption_UtxoLookupZ LDKCOption_UtxoLookupZ_ref_from_ptr(long ptr);
741         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
742         public static native void CResult_NoneLightningErrorZ_get_ok(long owner);
743         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
744         public static native long CResult_NoneLightningErrorZ_get_err(long owner);
745         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
746         public static native boolean CResult_boolLightningErrorZ_get_ok(long owner);
747         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
748         public static native long CResult_boolLightningErrorZ_get_err(long owner);
749         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
750         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long owner);
751         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
752         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long owner);
753         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
754         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long owner);
755         public static class LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
756                 private LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ() {}
757                 public final static class Some extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
758                         public long some;
759                         Some(long some) { this.some = some; }
760                 }
761                 public final static class None extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
762                         None() { }
763                 }
764                 static native void init();
765         }
766         static { LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.init(); }
767         public static native LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ref_from_ptr(long ptr);
768         public static class LDKErrorAction {
769                 private LDKErrorAction() {}
770                 public final static class DisconnectPeer extends LDKErrorAction {
771                         public long msg;
772                         DisconnectPeer(long msg) { this.msg = msg; }
773                 }
774                 public final static class DisconnectPeerWithWarning extends LDKErrorAction {
775                         public long msg;
776                         DisconnectPeerWithWarning(long msg) { this.msg = msg; }
777                 }
778                 public final static class IgnoreError extends LDKErrorAction {
779                         IgnoreError() { }
780                 }
781                 public final static class IgnoreAndLog extends LDKErrorAction {
782                         public org.ldk.enums.Level ignore_and_log;
783                         IgnoreAndLog(org.ldk.enums.Level ignore_and_log) { this.ignore_and_log = ignore_and_log; }
784                 }
785                 public final static class IgnoreDuplicateGossip extends LDKErrorAction {
786                         IgnoreDuplicateGossip() { }
787                 }
788                 public final static class SendErrorMessage extends LDKErrorAction {
789                         public long msg;
790                         SendErrorMessage(long msg) { this.msg = msg; }
791                 }
792                 public final static class SendWarningMessage extends LDKErrorAction {
793                         public long msg;
794                         public org.ldk.enums.Level log_level;
795                         SendWarningMessage(long msg, org.ldk.enums.Level log_level) { this.msg = msg; this.log_level = log_level; }
796                 }
797                 static native void init();
798         }
799         static { LDKErrorAction.init(); }
800         public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
801         public static class LDKMessageSendEvent {
802                 private LDKMessageSendEvent() {}
803                 public final static class SendAcceptChannel extends LDKMessageSendEvent {
804                         public byte[] node_id;
805                         public long msg;
806                         SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
807                 }
808                 public final static class SendAcceptChannelV2 extends LDKMessageSendEvent {
809                         public byte[] node_id;
810                         public long msg;
811                         SendAcceptChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
812                 }
813                 public final static class SendOpenChannel extends LDKMessageSendEvent {
814                         public byte[] node_id;
815                         public long msg;
816                         SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
817                 }
818                 public final static class SendOpenChannelV2 extends LDKMessageSendEvent {
819                         public byte[] node_id;
820                         public long msg;
821                         SendOpenChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
822                 }
823                 public final static class SendFundingCreated extends LDKMessageSendEvent {
824                         public byte[] node_id;
825                         public long msg;
826                         SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
827                 }
828                 public final static class SendFundingSigned extends LDKMessageSendEvent {
829                         public byte[] node_id;
830                         public long msg;
831                         SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
832                 }
833                 public final static class SendTxAddInput extends LDKMessageSendEvent {
834                         public byte[] node_id;
835                         public long msg;
836                         SendTxAddInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
837                 }
838                 public final static class SendTxAddOutput extends LDKMessageSendEvent {
839                         public byte[] node_id;
840                         public long msg;
841                         SendTxAddOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
842                 }
843                 public final static class SendTxRemoveInput extends LDKMessageSendEvent {
844                         public byte[] node_id;
845                         public long msg;
846                         SendTxRemoveInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
847                 }
848                 public final static class SendTxRemoveOutput extends LDKMessageSendEvent {
849                         public byte[] node_id;
850                         public long msg;
851                         SendTxRemoveOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
852                 }
853                 public final static class SendTxComplete extends LDKMessageSendEvent {
854                         public byte[] node_id;
855                         public long msg;
856                         SendTxComplete(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
857                 }
858                 public final static class SendTxSignatures extends LDKMessageSendEvent {
859                         public byte[] node_id;
860                         public long msg;
861                         SendTxSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
862                 }
863                 public final static class SendTxInitRbf extends LDKMessageSendEvent {
864                         public byte[] node_id;
865                         public long msg;
866                         SendTxInitRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
867                 }
868                 public final static class SendTxAckRbf extends LDKMessageSendEvent {
869                         public byte[] node_id;
870                         public long msg;
871                         SendTxAckRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
872                 }
873                 public final static class SendTxAbort extends LDKMessageSendEvent {
874                         public byte[] node_id;
875                         public long msg;
876                         SendTxAbort(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
877                 }
878                 public final static class SendChannelReady extends LDKMessageSendEvent {
879                         public byte[] node_id;
880                         public long msg;
881                         SendChannelReady(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
882                 }
883                 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
884                         public byte[] node_id;
885                         public long msg;
886                         SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
887                 }
888                 public final static class UpdateHTLCs extends LDKMessageSendEvent {
889                         public byte[] node_id;
890                         public long updates;
891                         UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
892                 }
893                 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
894                         public byte[] node_id;
895                         public long msg;
896                         SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
897                 }
898                 public final static class SendClosingSigned extends LDKMessageSendEvent {
899                         public byte[] node_id;
900                         public long msg;
901                         SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
902                 }
903                 public final static class SendShutdown extends LDKMessageSendEvent {
904                         public byte[] node_id;
905                         public long msg;
906                         SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
907                 }
908                 public final static class SendChannelReestablish extends LDKMessageSendEvent {
909                         public byte[] node_id;
910                         public long msg;
911                         SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
912                 }
913                 public final static class SendChannelAnnouncement extends LDKMessageSendEvent {
914                         public byte[] node_id;
915                         public long msg;
916                         public long update_msg;
917                         SendChannelAnnouncement(byte[] node_id, long msg, long update_msg) { this.node_id = node_id; this.msg = msg; this.update_msg = update_msg; }
918                 }
919                 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
920                         public long msg;
921                         public long update_msg;
922                         BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
923                 }
924                 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
925                         public long msg;
926                         BroadcastChannelUpdate(long msg) { this.msg = msg; }
927                 }
928                 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
929                         public long msg;
930                         BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
931                 }
932                 public final static class SendChannelUpdate extends LDKMessageSendEvent {
933                         public byte[] node_id;
934                         public long msg;
935                         SendChannelUpdate(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
936                 }
937                 public final static class HandleError extends LDKMessageSendEvent {
938                         public byte[] node_id;
939                         public long action;
940                         HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
941                 }
942                 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
943                         public byte[] node_id;
944                         public long msg;
945                         SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
946                 }
947                 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
948                         public byte[] node_id;
949                         public long msg;
950                         SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
951                 }
952                 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
953                         public byte[] node_id;
954                         public long msg;
955                         SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
956                 }
957                 public final static class SendGossipTimestampFilter extends LDKMessageSendEvent {
958                         public byte[] node_id;
959                         public long msg;
960                         SendGossipTimestampFilter(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
961                 }
962                 static native void init();
963         }
964         static { LDKMessageSendEvent.init(); }
965         public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
966         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
967         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(long owner);
968         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
969         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_err(long owner);
970         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
971         public static native long CResult_ChannelInfoDecodeErrorZ_get_ok(long owner);
972         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
973         public static native long CResult_ChannelInfoDecodeErrorZ_get_err(long owner);
974         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
975         public static native long CResult_RoutingFeesDecodeErrorZ_get_ok(long owner);
976         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
977         public static native long CResult_RoutingFeesDecodeErrorZ_get_err(long owner);
978         public static class LDKNetAddress {
979                 private LDKNetAddress() {}
980                 public final static class IPv4 extends LDKNetAddress {
981                         public byte[] addr;
982                         public short port;
983                         IPv4(byte[] addr, short port) { this.addr = addr; this.port = port; }
984                 }
985                 public final static class IPv6 extends LDKNetAddress {
986                         public byte[] addr;
987                         public short port;
988                         IPv6(byte[] addr, short port) { this.addr = addr; this.port = port; }
989                 }
990                 public final static class OnionV2 extends LDKNetAddress {
991                         public byte[] onion_v2;
992                         OnionV2(byte[] onion_v2) { this.onion_v2 = onion_v2; }
993                 }
994                 public final static class OnionV3 extends LDKNetAddress {
995                         public byte[] ed25519_pubkey;
996                         public short checksum;
997                         public byte version;
998                         public short port;
999                         OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
1000                 }
1001                 public final static class Hostname extends LDKNetAddress {
1002                         public long hostname;
1003                         public short port;
1004                         Hostname(long hostname, short port) { this.hostname = hostname; this.port = port; }
1005                 }
1006                 static native void init();
1007         }
1008         static { LDKNetAddress.init(); }
1009         public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
1010         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1011         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long owner);
1012         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1013         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long owner);
1014         // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1015         public static native long CResult_NodeAliasDecodeErrorZ_get_ok(long owner);
1016         // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1017         public static native long CResult_NodeAliasDecodeErrorZ_get_err(long owner);
1018         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1019         public static native long CResult_NodeInfoDecodeErrorZ_get_ok(long owner);
1020         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1021         public static native long CResult_NodeInfoDecodeErrorZ_get_err(long owner);
1022         // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1023         public static native long CResult_NetworkGraphDecodeErrorZ_get_ok(long owner);
1024         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1025         public static native long CResult_NetworkGraphDecodeErrorZ_get_err(long owner);
1026         public static class LDKCOption_CVec_NetAddressZZ {
1027                 private LDKCOption_CVec_NetAddressZZ() {}
1028                 public final static class Some extends LDKCOption_CVec_NetAddressZZ {
1029                         public long[] some;
1030                         Some(long[] some) { this.some = some; }
1031                 }
1032                 public final static class None extends LDKCOption_CVec_NetAddressZZ {
1033                         None() { }
1034                 }
1035                 static native void init();
1036         }
1037         static { LDKCOption_CVec_NetAddressZZ.init(); }
1038         public static native LDKCOption_CVec_NetAddressZZ LDKCOption_CVec_NetAddressZZ_ref_from_ptr(long ptr);
1039         public static class LDKCOption_PaymentPreimageZ {
1040                 private LDKCOption_PaymentPreimageZ() {}
1041                 public final static class Some extends LDKCOption_PaymentPreimageZ {
1042                         public byte[] some;
1043                         Some(byte[] some) { this.some = some; }
1044                 }
1045                 public final static class None extends LDKCOption_PaymentPreimageZ {
1046                         None() { }
1047                 }
1048                 static native void init();
1049         }
1050         static { LDKCOption_PaymentPreimageZ.init(); }
1051         public static native LDKCOption_PaymentPreimageZ LDKCOption_PaymentPreimageZ_ref_from_ptr(long ptr);
1052         public static class LDKCOption_TxOutZ {
1053                 private LDKCOption_TxOutZ() {}
1054                 public final static class Some extends LDKCOption_TxOutZ {
1055                         public long some;
1056                         Some(long some) { this.some = some; }
1057                 }
1058                 public final static class None extends LDKCOption_TxOutZ {
1059                         None() { }
1060                 }
1061                 static native void init();
1062         }
1063         static { LDKCOption_TxOutZ.init(); }
1064         public static native LDKCOption_TxOutZ LDKCOption_TxOutZ_ref_from_ptr(long ptr);
1065         // struct LDKCoinSelection CResult_CoinSelectionNoneZ_get_ok(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1066         public static native long CResult_CoinSelectionNoneZ_get_ok(long owner);
1067         // void CResult_CoinSelectionNoneZ_get_err(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1068         public static native void CResult_CoinSelectionNoneZ_get_err(long owner);
1069         // struct LDKCVec_UtxoZ CResult_CVec_UtxoZNoneZ_get_ok(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1070         public static native long[] CResult_CVec_UtxoZNoneZ_get_ok(long owner);
1071         // void CResult_CVec_UtxoZNoneZ_get_err(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1072         public static native void CResult_CVec_UtxoZNoneZ_get_err(long owner);
1073         public static class LDKCOption_u16Z {
1074                 private LDKCOption_u16Z() {}
1075                 public final static class Some extends LDKCOption_u16Z {
1076                         public short some;
1077                         Some(short some) { this.some = some; }
1078                 }
1079                 public final static class None extends LDKCOption_u16Z {
1080                         None() { }
1081                 }
1082                 static native void init();
1083         }
1084         static { LDKCOption_u16Z.init(); }
1085         public static native LDKCOption_u16Z LDKCOption_u16Z_ref_from_ptr(long ptr);
1086         public static class LDKCOption_ChannelShutdownStateZ {
1087                 private LDKCOption_ChannelShutdownStateZ() {}
1088                 public final static class Some extends LDKCOption_ChannelShutdownStateZ {
1089                         public org.ldk.enums.ChannelShutdownState some;
1090                         Some(org.ldk.enums.ChannelShutdownState some) { this.some = some; }
1091                 }
1092                 public final static class None extends LDKCOption_ChannelShutdownStateZ {
1093                         None() { }
1094                 }
1095                 static native void init();
1096         }
1097         static { LDKCOption_ChannelShutdownStateZ.init(); }
1098         public static native LDKCOption_ChannelShutdownStateZ LDKCOption_ChannelShutdownStateZ_ref_from_ptr(long ptr);
1099         public static class LDKCOption_PaymentHashZ {
1100                 private LDKCOption_PaymentHashZ() {}
1101                 public final static class Some extends LDKCOption_PaymentHashZ {
1102                         public byte[] some;
1103                         Some(byte[] some) { this.some = some; }
1104                 }
1105                 public final static class None extends LDKCOption_PaymentHashZ {
1106                         None() { }
1107                 }
1108                 static native void init();
1109         }
1110         static { LDKCOption_PaymentHashZ.init(); }
1111         public static native LDKCOption_PaymentHashZ LDKCOption_PaymentHashZ_ref_from_ptr(long ptr);
1112         // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
1113         public static native byte[] CResult__u832APIErrorZ_get_ok(long owner);
1114         // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
1115         public static native long CResult__u832APIErrorZ_get_err(long owner);
1116         public static class LDKRecentPaymentDetails {
1117                 private LDKRecentPaymentDetails() {}
1118                 public final static class Pending extends LDKRecentPaymentDetails {
1119                         public byte[] payment_hash;
1120                         public long total_msat;
1121                         Pending(byte[] payment_hash, long total_msat) { this.payment_hash = payment_hash; this.total_msat = total_msat; }
1122                 }
1123                 public final static class Fulfilled extends LDKRecentPaymentDetails {
1124                         public long payment_hash;
1125                         Fulfilled(long payment_hash) { this.payment_hash = payment_hash; }
1126                 }
1127                 public final static class Abandoned extends LDKRecentPaymentDetails {
1128                         public byte[] payment_hash;
1129                         Abandoned(byte[] payment_hash) { this.payment_hash = payment_hash; }
1130                 }
1131                 static native void init();
1132         }
1133         static { LDKRecentPaymentDetails.init(); }
1134         public static native LDKRecentPaymentDetails LDKRecentPaymentDetails_ref_from_ptr(long ptr);
1135         public static class LDKPaymentSendFailure {
1136                 private LDKPaymentSendFailure() {}
1137                 public final static class ParameterError extends LDKPaymentSendFailure {
1138                         public long parameter_error;
1139                         ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
1140                 }
1141                 public final static class PathParameterError extends LDKPaymentSendFailure {
1142                         public long[] path_parameter_error;
1143                         PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
1144                 }
1145                 public final static class AllFailedResendSafe extends LDKPaymentSendFailure {
1146                         public long[] all_failed_resend_safe;
1147                         AllFailedResendSafe(long[] all_failed_resend_safe) { this.all_failed_resend_safe = all_failed_resend_safe; }
1148                 }
1149                 public final static class DuplicatePayment extends LDKPaymentSendFailure {
1150                         DuplicatePayment() { }
1151                 }
1152                 public final static class PartialFailure extends LDKPaymentSendFailure {
1153                         public long[] results;
1154                         public long failed_paths_retry;
1155                         public byte[] payment_id;
1156                         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; }
1157                 }
1158                 static native void init();
1159         }
1160         static { LDKPaymentSendFailure.init(); }
1161         public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
1162         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1163         public static native void CResult_NonePaymentSendFailureZ_get_ok(long owner);
1164         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1165         public static native long CResult_NonePaymentSendFailureZ_get_err(long owner);
1166         // void CResult_NoneRetryableSendFailureZ_get_ok(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1167         public static native void CResult_NoneRetryableSendFailureZ_get_ok(long owner);
1168         // enum LDKRetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1169         public static native RetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(long owner);
1170         // struct LDKThirtyTwoBytes CResult_PaymentHashPaymentSendFailureZ_get_ok(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR owner);
1171         public static native byte[] CResult_PaymentHashPaymentSendFailureZ_get_ok(long owner);
1172         // struct LDKPaymentSendFailure CResult_PaymentHashPaymentSendFailureZ_get_err(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR owner);
1173         public static native long CResult_PaymentHashPaymentSendFailureZ_get_err(long owner);
1174         // struct LDKThirtyTwoBytes CResult_PaymentHashRetryableSendFailureZ_get_ok(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR owner);
1175         public static native byte[] CResult_PaymentHashRetryableSendFailureZ_get_ok(long owner);
1176         // enum LDKRetryableSendFailure CResult_PaymentHashRetryableSendFailureZ_get_err(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR owner);
1177         public static native RetryableSendFailure CResult_PaymentHashRetryableSendFailureZ_get_err(long owner);
1178         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
1179         public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_a(long owner);
1180         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
1181         public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_b(long owner);
1182         // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
1183         public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(long owner);
1184         // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
1185         public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(long owner);
1186         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
1187         public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_a(long owner);
1188         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
1189         public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_b(long owner);
1190         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
1191         public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(long owner);
1192         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
1193         public static native void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(long owner);
1194         // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
1195         public static native byte[] CResult_PaymentSecretNoneZ_get_ok(long owner);
1196         // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
1197         public static native void CResult_PaymentSecretNoneZ_get_err(long owner);
1198         // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
1199         public static native byte[] CResult_PaymentPreimageAPIErrorZ_get_ok(long owner);
1200         // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
1201         public static native long CResult_PaymentPreimageAPIErrorZ_get_err(long owner);
1202         public static class LDKCOption_CVec_ChainHashZZ {
1203                 private LDKCOption_CVec_ChainHashZZ() {}
1204                 public final static class Some extends LDKCOption_CVec_ChainHashZZ {
1205                         public byte[][] some;
1206                         Some(byte[][] some) { this.some = some; }
1207                 }
1208                 public final static class None extends LDKCOption_CVec_ChainHashZZ {
1209                         None() { }
1210                 }
1211                 static native void init();
1212         }
1213         static { LDKCOption_CVec_ChainHashZZ.init(); }
1214         public static native LDKCOption_CVec_ChainHashZZ LDKCOption_CVec_ChainHashZZ_ref_from_ptr(long ptr);
1215         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1216         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(long owner);
1217         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1218         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(long owner);
1219         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1220         public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_ok(long owner);
1221         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1222         public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_err(long owner);
1223         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1224         public static native long CResult_ChannelDetailsDecodeErrorZ_get_ok(long owner);
1225         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1226         public static native long CResult_ChannelDetailsDecodeErrorZ_get_err(long owner);
1227         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1228         public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_ok(long owner);
1229         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1230         public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_err(long owner);
1231         // enum LDKChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
1232         public static native ChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(long owner);
1233         // struct LDKDecodeError CResult_ChannelShutdownStateDecodeErrorZ_get_err(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
1234         public static native long CResult_ChannelShutdownStateDecodeErrorZ_get_err(long owner);
1235         public interface LDKWatch {
1236                  ChannelMonitorUpdateStatus watch_channel(long funding_txo, long monitor);
1237                  ChannelMonitorUpdateStatus update_channel(long funding_txo, long update);
1238                  long[] release_pending_monitor_events();
1239         }
1240         public static native long LDKWatch_new(LDKWatch impl);
1241         // LDKChannelMonitorUpdateStatus Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
1242         public static native ChannelMonitorUpdateStatus Watch_watch_channel(long this_arg, long funding_txo, long monitor);
1243         // LDKChannelMonitorUpdateStatus Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update
1244         public static native ChannelMonitorUpdateStatus Watch_update_channel(long this_arg, long funding_txo, long update);
1245         // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
1246         public static native long[] Watch_release_pending_monitor_events(long this_arg);
1247         public interface LDKBroadcasterInterface {
1248                  void broadcast_transactions(byte[][] txs);
1249         }
1250         public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
1251         // void BroadcasterInterface_broadcast_transactions LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKCVec_TransactionZ txs
1252         public static native void BroadcasterInterface_broadcast_transactions(long this_arg, byte[][] txs);
1253         public interface LDKEntropySource {
1254                  byte[] get_secure_random_bytes();
1255         }
1256         public static native long LDKEntropySource_new(LDKEntropySource impl);
1257         // LDKThirtyTwoBytes EntropySource_get_secure_random_bytes LDKEntropySource *NONNULL_PTR this_arg
1258         public static native byte[] EntropySource_get_secure_random_bytes(long this_arg);
1259         public static class LDKUnsignedGossipMessage {
1260                 private LDKUnsignedGossipMessage() {}
1261                 public final static class ChannelAnnouncement extends LDKUnsignedGossipMessage {
1262                         public long channel_announcement;
1263                         ChannelAnnouncement(long channel_announcement) { this.channel_announcement = channel_announcement; }
1264                 }
1265                 public final static class ChannelUpdate extends LDKUnsignedGossipMessage {
1266                         public long channel_update;
1267                         ChannelUpdate(long channel_update) { this.channel_update = channel_update; }
1268                 }
1269                 public final static class NodeAnnouncement extends LDKUnsignedGossipMessage {
1270                         public long node_announcement;
1271                         NodeAnnouncement(long node_announcement) { this.node_announcement = node_announcement; }
1272                 }
1273                 static native void init();
1274         }
1275         static { LDKUnsignedGossipMessage.init(); }
1276         public static native LDKUnsignedGossipMessage LDKUnsignedGossipMessage_ref_from_ptr(long ptr);
1277         public interface LDKNodeSigner {
1278                  byte[] get_inbound_payment_key_material();
1279                  long get_node_id(Recipient recipient);
1280                  long ecdh(Recipient recipient, byte[] other_key, long tweak);
1281                  long sign_invoice(byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1282                  long sign_gossip_message(long msg);
1283         }
1284         public static native long LDKNodeSigner_new(LDKNodeSigner impl);
1285         // LDKThirtyTwoBytes NodeSigner_get_inbound_payment_key_material LDKNodeSigner *NONNULL_PTR this_arg
1286         public static native byte[] NodeSigner_get_inbound_payment_key_material(long this_arg);
1287         // LDKCResult_PublicKeyNoneZ NodeSigner_get_node_id LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient
1288         public static native long NodeSigner_get_node_id(long this_arg, Recipient recipient);
1289         // LDKCResult_SharedSecretNoneZ NodeSigner_ecdh LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_ScalarZ tweak
1290         public static native long NodeSigner_ecdh(long this_arg, Recipient recipient, byte[] other_key, long tweak);
1291         // LDKCResult_RecoverableSignatureNoneZ NodeSigner_sign_invoice LDKNodeSigner *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient
1292         public static native long NodeSigner_sign_invoice(long this_arg, byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1293         // LDKCResult_SignatureNoneZ NodeSigner_sign_gossip_message LDKNodeSigner *NONNULL_PTR this_arg, struct LDKUnsignedGossipMessage msg
1294         public static native long NodeSigner_sign_gossip_message(long this_arg, long msg);
1295         public interface LDKSignerProvider {
1296                  byte[] generate_channel_keys_id(boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1297                  long derive_channel_signer(long channel_value_satoshis, byte[] channel_keys_id);
1298                  long read_chan_signer(byte[] reader);
1299                  long get_destination_script();
1300                  long get_shutdown_scriptpubkey();
1301         }
1302         public static native long LDKSignerProvider_new(LDKSignerProvider impl);
1303         // LDKThirtyTwoBytes SignerProvider_generate_channel_keys_id LDKSignerProvider *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis, struct LDKU128 user_channel_id
1304         public static native byte[] SignerProvider_generate_channel_keys_id(long this_arg, boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1305         // LDKWriteableEcdsaChannelSigner SignerProvider_derive_channel_signer LDKSignerProvider *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id
1306         public static native long SignerProvider_derive_channel_signer(long this_arg, long channel_value_satoshis, byte[] channel_keys_id);
1307         // LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ SignerProvider_read_chan_signer LDKSignerProvider *NONNULL_PTR this_arg, struct LDKu8slice reader
1308         public static native long SignerProvider_read_chan_signer(long this_arg, byte[] reader);
1309         // LDKCResult_ScriptNoneZ SignerProvider_get_destination_script LDKSignerProvider *NONNULL_PTR this_arg
1310         public static native long SignerProvider_get_destination_script(long this_arg);
1311         // LDKCResult_ShutdownScriptNoneZ SignerProvider_get_shutdown_scriptpubkey LDKSignerProvider *NONNULL_PTR this_arg
1312         public static native long SignerProvider_get_shutdown_scriptpubkey(long this_arg);
1313         public interface LDKFeeEstimator {
1314                  int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target);
1315         }
1316         public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
1317         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
1318         public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, ConfirmationTarget confirmation_target);
1319         public interface LDKRouter {
1320                  long find_route(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1321                  long find_route_with_id(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs, byte[] _payment_hash, byte[] _payment_id);
1322         }
1323         public static native long LDKRouter_new(LDKRouter impl);
1324         // 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
1325         public static native long Router_find_route(long this_arg, byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1326         // 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
1327         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);
1328         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
1329         public static native byte[] C2Tuple_BlockHashChannelManagerZ_get_a(long owner);
1330         // struct LDKChannelManager C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
1331         public static native long C2Tuple_BlockHashChannelManagerZ_get_b(long owner);
1332         // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1333         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(long owner);
1334         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1335         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(long owner);
1336         public static class LDKMaxDustHTLCExposure {
1337                 private LDKMaxDustHTLCExposure() {}
1338                 public final static class FixedLimitMsat extends LDKMaxDustHTLCExposure {
1339                         public long fixed_limit_msat;
1340                         FixedLimitMsat(long fixed_limit_msat) { this.fixed_limit_msat = fixed_limit_msat; }
1341                 }
1342                 public final static class FeeRateMultiplier extends LDKMaxDustHTLCExposure {
1343                         public long fee_rate_multiplier;
1344                         FeeRateMultiplier(long fee_rate_multiplier) { this.fee_rate_multiplier = fee_rate_multiplier; }
1345                 }
1346                 static native void init();
1347         }
1348         static { LDKMaxDustHTLCExposure.init(); }
1349         public static native LDKMaxDustHTLCExposure LDKMaxDustHTLCExposure_ref_from_ptr(long ptr);
1350         // struct LDKMaxDustHTLCExposure CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1351         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(long owner);
1352         // struct LDKDecodeError CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1353         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(long owner);
1354         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1355         public static native long CResult_ChannelConfigDecodeErrorZ_get_ok(long owner);
1356         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1357         public static native long CResult_ChannelConfigDecodeErrorZ_get_err(long owner);
1358         public static class LDKCOption_MaxDustHTLCExposureZ {
1359                 private LDKCOption_MaxDustHTLCExposureZ() {}
1360                 public final static class Some extends LDKCOption_MaxDustHTLCExposureZ {
1361                         public long some;
1362                         Some(long some) { this.some = some; }
1363                 }
1364                 public final static class None extends LDKCOption_MaxDustHTLCExposureZ {
1365                         None() { }
1366                 }
1367                 static native void init();
1368         }
1369         static { LDKCOption_MaxDustHTLCExposureZ.init(); }
1370         public static native LDKCOption_MaxDustHTLCExposureZ LDKCOption_MaxDustHTLCExposureZ_ref_from_ptr(long ptr);
1371         public static class LDKCOption_APIErrorZ {
1372                 private LDKCOption_APIErrorZ() {}
1373                 public final static class Some extends LDKCOption_APIErrorZ {
1374                         public long some;
1375                         Some(long some) { this.some = some; }
1376                 }
1377                 public final static class None extends LDKCOption_APIErrorZ {
1378                         None() { }
1379                 }
1380                 static native void init();
1381         }
1382         static { LDKCOption_APIErrorZ.init(); }
1383         public static native LDKCOption_APIErrorZ LDKCOption_APIErrorZ_ref_from_ptr(long ptr);
1384         // struct LDKCOption_APIErrorZ CResult_COption_APIErrorZDecodeErrorZ_get_ok(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1385         public static native long CResult_COption_APIErrorZDecodeErrorZ_get_ok(long owner);
1386         // struct LDKDecodeError CResult_COption_APIErrorZDecodeErrorZ_get_err(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1387         public static native long CResult_COption_APIErrorZDecodeErrorZ_get_err(long owner);
1388         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1389         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long owner);
1390         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1391         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long owner);
1392         public static class LDKCOption_MonitorEventZ {
1393                 private LDKCOption_MonitorEventZ() {}
1394                 public final static class Some extends LDKCOption_MonitorEventZ {
1395                         public long some;
1396                         Some(long some) { this.some = some; }
1397                 }
1398                 public final static class None extends LDKCOption_MonitorEventZ {
1399                         None() { }
1400                 }
1401                 static native void init();
1402         }
1403         static { LDKCOption_MonitorEventZ.init(); }
1404         public static native LDKCOption_MonitorEventZ LDKCOption_MonitorEventZ_ref_from_ptr(long ptr);
1405         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1406         public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_ok(long owner);
1407         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1408         public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_err(long owner);
1409         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1410         public static native long CResult_HTLCUpdateDecodeErrorZ_get_ok(long owner);
1411         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1412         public static native long CResult_HTLCUpdateDecodeErrorZ_get_err(long owner);
1413         // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
1414         public static native long C2Tuple_OutPointScriptZ_get_a(long owner);
1415         // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
1416         public static native byte[] C2Tuple_OutPointScriptZ_get_b(long owner);
1417         // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
1418         public static native int C2Tuple_u32ScriptZ_get_a(long owner);
1419         // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
1420         public static native byte[] C2Tuple_u32ScriptZ_get_b(long owner);
1421         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
1422         public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(long owner);
1423         // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
1424         public static native long[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(long owner);
1425         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1426         public static native int C2Tuple_u32TxOutZ_get_a(long owner);
1427         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1428         public static native long C2Tuple_u32TxOutZ_get_b(long owner);
1429         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1430         public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long owner);
1431         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1432         public static native long[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long owner);
1433         public static class LDKBalance {
1434                 private LDKBalance() {}
1435                 public final static class ClaimableOnChannelClose extends LDKBalance {
1436                         public long amount_satoshis;
1437                         ClaimableOnChannelClose(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1438                 }
1439                 public final static class ClaimableAwaitingConfirmations extends LDKBalance {
1440                         public long amount_satoshis;
1441                         public int confirmation_height;
1442                         ClaimableAwaitingConfirmations(long amount_satoshis, int confirmation_height) { this.amount_satoshis = amount_satoshis; this.confirmation_height = confirmation_height; }
1443                 }
1444                 public final static class ContentiousClaimable extends LDKBalance {
1445                         public long amount_satoshis;
1446                         public int timeout_height;
1447                         public byte[] payment_hash;
1448                         public byte[] payment_preimage;
1449                         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; }
1450                 }
1451                 public final static class MaybeTimeoutClaimableHTLC extends LDKBalance {
1452                         public long amount_satoshis;
1453                         public int claimable_height;
1454                         public byte[] payment_hash;
1455                         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; }
1456                 }
1457                 public final static class MaybePreimageClaimableHTLC extends LDKBalance {
1458                         public long amount_satoshis;
1459                         public int expiry_height;
1460                         public byte[] payment_hash;
1461                         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; }
1462                 }
1463                 public final static class CounterpartyRevokedOutputClaimable extends LDKBalance {
1464                         public long amount_satoshis;
1465                         CounterpartyRevokedOutputClaimable(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1466                 }
1467                 static native void init();
1468         }
1469         static { LDKBalance.init(); }
1470         public static native LDKBalance LDKBalance_ref_from_ptr(long ptr);
1471         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
1472         public static native byte[] C2Tuple_BlockHashChannelMonitorZ_get_a(long owner);
1473         // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
1474         public static native long C2Tuple_BlockHashChannelMonitorZ_get_b(long owner);
1475         // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1476         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(long owner);
1477         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1478         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(long owner);
1479         public interface LDKType {
1480                  short type_id();
1481                  String debug_str();
1482                  byte[] write();
1483         }
1484         public static native long LDKType_new(LDKType impl);
1485         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
1486         public static native short Type_type_id(long this_arg);
1487         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
1488         public static native String Type_debug_str(long this_arg);
1489         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
1490         public static native byte[] Type_write(long this_arg);
1491         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1492         public static native byte[] C2Tuple_PublicKeyTypeZ_get_a(long owner);
1493         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1494         public static native long C2Tuple_PublicKeyTypeZ_get_b(long owner);
1495         public static class LDKOffersMessage {
1496                 private LDKOffersMessage() {}
1497                 public final static class InvoiceRequest extends LDKOffersMessage {
1498                         public long invoice_request;
1499                         InvoiceRequest(long invoice_request) { this.invoice_request = invoice_request; }
1500                 }
1501                 public final static class Invoice extends LDKOffersMessage {
1502                         public long invoice;
1503                         Invoice(long invoice) { this.invoice = invoice; }
1504                 }
1505                 public final static class InvoiceError extends LDKOffersMessage {
1506                         public long invoice_error;
1507                         InvoiceError(long invoice_error) { this.invoice_error = invoice_error; }
1508                 }
1509                 static native void init();
1510         }
1511         static { LDKOffersMessage.init(); }
1512         public static native LDKOffersMessage LDKOffersMessage_ref_from_ptr(long ptr);
1513         public static class LDKCOption_OffersMessageZ {
1514                 private LDKCOption_OffersMessageZ() {}
1515                 public final static class Some extends LDKCOption_OffersMessageZ {
1516                         public long some;
1517                         Some(long some) { this.some = some; }
1518                 }
1519                 public final static class None extends LDKCOption_OffersMessageZ {
1520                         None() { }
1521                 }
1522                 static native void init();
1523         }
1524         static { LDKCOption_OffersMessageZ.init(); }
1525         public static native LDKCOption_OffersMessageZ LDKCOption_OffersMessageZ_ref_from_ptr(long ptr);
1526         public interface LDKCustomOnionMessageContents {
1527                  long tlv_type();
1528                  byte[] write();
1529         }
1530         public static native long LDKCustomOnionMessageContents_new(LDKCustomOnionMessageContents impl);
1531         // uint64_t CustomOnionMessageContents_tlv_type LDKCustomOnionMessageContents *NONNULL_PTR this_arg
1532         public static native long CustomOnionMessageContents_tlv_type(long this_arg);
1533         // LDKCVec_u8Z CustomOnionMessageContents_write LDKCustomOnionMessageContents *NONNULL_PTR this_arg
1534         public static native byte[] CustomOnionMessageContents_write(long this_arg);
1535         public static class LDKCOption_CustomOnionMessageContentsZ {
1536                 private LDKCOption_CustomOnionMessageContentsZ() {}
1537                 public final static class Some extends LDKCOption_CustomOnionMessageContentsZ {
1538                         public long some;
1539                         Some(long some) { this.some = some; }
1540                 }
1541                 public final static class None extends LDKCOption_CustomOnionMessageContentsZ {
1542                         None() { }
1543                 }
1544                 static native void init();
1545         }
1546         static { LDKCOption_CustomOnionMessageContentsZ.init(); }
1547         public static native LDKCOption_CustomOnionMessageContentsZ LDKCOption_CustomOnionMessageContentsZ_ref_from_ptr(long ptr);
1548         // struct LDKCOption_CustomOnionMessageContentsZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_ok(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1549         public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_ok(long owner);
1550         // struct LDKDecodeError CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_err(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1551         public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_err(long owner);
1552         public static class LDKCOption_TypeZ {
1553                 private LDKCOption_TypeZ() {}
1554                 public final static class Some extends LDKCOption_TypeZ {
1555                         public long some;
1556                         Some(long some) { this.some = some; }
1557                 }
1558                 public final static class None extends LDKCOption_TypeZ {
1559                         None() { }
1560                 }
1561                 static native void init();
1562         }
1563         static { LDKCOption_TypeZ.init(); }
1564         public static native LDKCOption_TypeZ LDKCOption_TypeZ_ref_from_ptr(long ptr);
1565         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1566         public static native long CResult_COption_TypeZDecodeErrorZ_get_ok(long owner);
1567         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1568         public static native long CResult_COption_TypeZDecodeErrorZ_get_err(long owner);
1569         public static class LDKCOption_NetAddressZ {
1570                 private LDKCOption_NetAddressZ() {}
1571                 public final static class Some extends LDKCOption_NetAddressZ {
1572                         public long some;
1573                         Some(long some) { this.some = some; }
1574                 }
1575                 public final static class None extends LDKCOption_NetAddressZ {
1576                         None() { }
1577                 }
1578                 static native void init();
1579         }
1580         static { LDKCOption_NetAddressZ.init(); }
1581         public static native LDKCOption_NetAddressZ LDKCOption_NetAddressZ_ref_from_ptr(long ptr);
1582         // struct LDKPublicKey C2Tuple_PublicKeyCOption_NetAddressZZ_get_a(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR owner);
1583         public static native byte[] C2Tuple_PublicKeyCOption_NetAddressZZ_get_a(long owner);
1584         // struct LDKCOption_NetAddressZ C2Tuple_PublicKeyCOption_NetAddressZZ_get_b(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR owner);
1585         public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_get_b(long owner);
1586         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1587         public static native byte[] CResult_CVec_u8ZPeerHandleErrorZ_get_ok(long owner);
1588         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1589         public static native long CResult_CVec_u8ZPeerHandleErrorZ_get_err(long owner);
1590         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1591         public static native void CResult_NonePeerHandleErrorZ_get_ok(long owner);
1592         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1593         public static native long CResult_NonePeerHandleErrorZ_get_err(long owner);
1594         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1595         public static native boolean CResult_boolPeerHandleErrorZ_get_ok(long owner);
1596         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1597         public static native long CResult_boolPeerHandleErrorZ_get_err(long owner);
1598         public static class LDKGraphSyncError {
1599                 private LDKGraphSyncError() {}
1600                 public final static class DecodeError extends LDKGraphSyncError {
1601                         public long decode_error;
1602                         DecodeError(long decode_error) { this.decode_error = decode_error; }
1603                 }
1604                 public final static class LightningError extends LDKGraphSyncError {
1605                         public long lightning_error;
1606                         LightningError(long lightning_error) { this.lightning_error = lightning_error; }
1607                 }
1608                 static native void init();
1609         }
1610         static { LDKGraphSyncError.init(); }
1611         public static native LDKGraphSyncError LDKGraphSyncError_ref_from_ptr(long ptr);
1612         // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1613         public static native int CResult_u32GraphSyncErrorZ_get_ok(long owner);
1614         // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1615         public static native long CResult_u32GraphSyncErrorZ_get_err(long owner);
1616         public static class LDKCOption_KeyPairZ {
1617                 private LDKCOption_KeyPairZ() {}
1618                 public final static class Some extends LDKCOption_KeyPairZ {
1619                         public byte[] some;
1620                         Some(byte[] some) { this.some = some; }
1621                 }
1622                 public final static class None extends LDKCOption_KeyPairZ {
1623                         None() { }
1624                 }
1625                 static native void init();
1626         }
1627         static { LDKCOption_KeyPairZ.init(); }
1628         public static native LDKCOption_KeyPairZ LDKCOption_KeyPairZ_ref_from_ptr(long ptr);
1629         // struct LDKCOption_KeyPairZ CResult_COption_KeyPairZNoneZ_get_ok(LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR owner);
1630         public static native long CResult_COption_KeyPairZNoneZ_get_ok(long owner);
1631         // void CResult_COption_KeyPairZNoneZ_get_err(LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR owner);
1632         public static native void CResult_COption_KeyPairZNoneZ_get_err(long owner);
1633         public static class LDKCOption_ScriptZ {
1634                 private LDKCOption_ScriptZ() {}
1635                 public final static class Some extends LDKCOption_ScriptZ {
1636                         public byte[] some;
1637                         Some(byte[] some) { this.some = some; }
1638                 }
1639                 public final static class None extends LDKCOption_ScriptZ {
1640                         None() { }
1641                 }
1642                 static native void init();
1643         }
1644         static { LDKCOption_ScriptZ.init(); }
1645         public static native LDKCOption_ScriptZ LDKCOption_ScriptZ_ref_from_ptr(long ptr);
1646         public static class LDKCOption_i64Z {
1647                 private LDKCOption_i64Z() {}
1648                 public final static class Some extends LDKCOption_i64Z {
1649                         public long some;
1650                         Some(long some) { this.some = some; }
1651                 }
1652                 public final static class None extends LDKCOption_i64Z {
1653                         None() { }
1654                 }
1655                 static native void init();
1656         }
1657         static { LDKCOption_i64Z.init(); }
1658         public static native LDKCOption_i64Z LDKCOption_i64Z_ref_from_ptr(long ptr);
1659         public static class LDKCOption_TxidZ {
1660                 private LDKCOption_TxidZ() {}
1661                 public final static class Some extends LDKCOption_TxidZ {
1662                         public byte[] some;
1663                         Some(byte[] some) { this.some = some; }
1664                 }
1665                 public final static class None extends LDKCOption_TxidZ {
1666                         None() { }
1667                 }
1668                 static native void init();
1669         }
1670         static { LDKCOption_TxidZ.init(); }
1671         public static native LDKCOption_TxidZ LDKCOption_TxidZ_ref_from_ptr(long ptr);
1672         // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
1673         public static native long CResult_NetAddressDecodeErrorZ_get_ok(long owner);
1674         // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
1675         public static native long CResult_NetAddressDecodeErrorZ_get_err(long owner);
1676         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1677         public static native long CResult_AcceptChannelDecodeErrorZ_get_ok(long owner);
1678         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1679         public static native long CResult_AcceptChannelDecodeErrorZ_get_err(long owner);
1680         // struct LDKAcceptChannelV2 CResult_AcceptChannelV2DecodeErrorZ_get_ok(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
1681         public static native long CResult_AcceptChannelV2DecodeErrorZ_get_ok(long owner);
1682         // struct LDKDecodeError CResult_AcceptChannelV2DecodeErrorZ_get_err(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
1683         public static native long CResult_AcceptChannelV2DecodeErrorZ_get_err(long owner);
1684         // struct LDKTxAddInput CResult_TxAddInputDecodeErrorZ_get_ok(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
1685         public static native long CResult_TxAddInputDecodeErrorZ_get_ok(long owner);
1686         // struct LDKDecodeError CResult_TxAddInputDecodeErrorZ_get_err(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
1687         public static native long CResult_TxAddInputDecodeErrorZ_get_err(long owner);
1688         // struct LDKTxAddOutput CResult_TxAddOutputDecodeErrorZ_get_ok(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
1689         public static native long CResult_TxAddOutputDecodeErrorZ_get_ok(long owner);
1690         // struct LDKDecodeError CResult_TxAddOutputDecodeErrorZ_get_err(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
1691         public static native long CResult_TxAddOutputDecodeErrorZ_get_err(long owner);
1692         // struct LDKTxRemoveInput CResult_TxRemoveInputDecodeErrorZ_get_ok(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
1693         public static native long CResult_TxRemoveInputDecodeErrorZ_get_ok(long owner);
1694         // struct LDKDecodeError CResult_TxRemoveInputDecodeErrorZ_get_err(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
1695         public static native long CResult_TxRemoveInputDecodeErrorZ_get_err(long owner);
1696         // struct LDKTxRemoveOutput CResult_TxRemoveOutputDecodeErrorZ_get_ok(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
1697         public static native long CResult_TxRemoveOutputDecodeErrorZ_get_ok(long owner);
1698         // struct LDKDecodeError CResult_TxRemoveOutputDecodeErrorZ_get_err(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
1699         public static native long CResult_TxRemoveOutputDecodeErrorZ_get_err(long owner);
1700         // struct LDKTxComplete CResult_TxCompleteDecodeErrorZ_get_ok(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
1701         public static native long CResult_TxCompleteDecodeErrorZ_get_ok(long owner);
1702         // struct LDKDecodeError CResult_TxCompleteDecodeErrorZ_get_err(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
1703         public static native long CResult_TxCompleteDecodeErrorZ_get_err(long owner);
1704         // struct LDKTxSignatures CResult_TxSignaturesDecodeErrorZ_get_ok(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
1705         public static native long CResult_TxSignaturesDecodeErrorZ_get_ok(long owner);
1706         // struct LDKDecodeError CResult_TxSignaturesDecodeErrorZ_get_err(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
1707         public static native long CResult_TxSignaturesDecodeErrorZ_get_err(long owner);
1708         // struct LDKTxInitRbf CResult_TxInitRbfDecodeErrorZ_get_ok(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
1709         public static native long CResult_TxInitRbfDecodeErrorZ_get_ok(long owner);
1710         // struct LDKDecodeError CResult_TxInitRbfDecodeErrorZ_get_err(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
1711         public static native long CResult_TxInitRbfDecodeErrorZ_get_err(long owner);
1712         // struct LDKTxAckRbf CResult_TxAckRbfDecodeErrorZ_get_ok(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
1713         public static native long CResult_TxAckRbfDecodeErrorZ_get_ok(long owner);
1714         // struct LDKDecodeError CResult_TxAckRbfDecodeErrorZ_get_err(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
1715         public static native long CResult_TxAckRbfDecodeErrorZ_get_err(long owner);
1716         // struct LDKTxAbort CResult_TxAbortDecodeErrorZ_get_ok(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
1717         public static native long CResult_TxAbortDecodeErrorZ_get_ok(long owner);
1718         // struct LDKDecodeError CResult_TxAbortDecodeErrorZ_get_err(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
1719         public static native long CResult_TxAbortDecodeErrorZ_get_err(long owner);
1720         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1721         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long owner);
1722         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1723         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_err(long owner);
1724         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1725         public static native long CResult_ChannelReestablishDecodeErrorZ_get_ok(long owner);
1726         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1727         public static native long CResult_ChannelReestablishDecodeErrorZ_get_err(long owner);
1728         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1729         public static native long CResult_ClosingSignedDecodeErrorZ_get_ok(long owner);
1730         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1731         public static native long CResult_ClosingSignedDecodeErrorZ_get_err(long owner);
1732         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1733         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long owner);
1734         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1735         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(long owner);
1736         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1737         public static native long CResult_CommitmentSignedDecodeErrorZ_get_ok(long owner);
1738         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1739         public static native long CResult_CommitmentSignedDecodeErrorZ_get_err(long owner);
1740         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1741         public static native long CResult_FundingCreatedDecodeErrorZ_get_ok(long owner);
1742         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1743         public static native long CResult_FundingCreatedDecodeErrorZ_get_err(long owner);
1744         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1745         public static native long CResult_FundingSignedDecodeErrorZ_get_ok(long owner);
1746         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1747         public static native long CResult_FundingSignedDecodeErrorZ_get_err(long owner);
1748         // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1749         public static native long CResult_ChannelReadyDecodeErrorZ_get_ok(long owner);
1750         // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1751         public static native long CResult_ChannelReadyDecodeErrorZ_get_err(long owner);
1752         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1753         public static native long CResult_InitDecodeErrorZ_get_ok(long owner);
1754         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1755         public static native long CResult_InitDecodeErrorZ_get_err(long owner);
1756         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1757         public static native long CResult_OpenChannelDecodeErrorZ_get_ok(long owner);
1758         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1759         public static native long CResult_OpenChannelDecodeErrorZ_get_err(long owner);
1760         // struct LDKOpenChannelV2 CResult_OpenChannelV2DecodeErrorZ_get_ok(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
1761         public static native long CResult_OpenChannelV2DecodeErrorZ_get_ok(long owner);
1762         // struct LDKDecodeError CResult_OpenChannelV2DecodeErrorZ_get_err(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
1763         public static native long CResult_OpenChannelV2DecodeErrorZ_get_err(long owner);
1764         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1765         public static native long CResult_RevokeAndACKDecodeErrorZ_get_ok(long owner);
1766         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1767         public static native long CResult_RevokeAndACKDecodeErrorZ_get_err(long owner);
1768         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1769         public static native long CResult_ShutdownDecodeErrorZ_get_ok(long owner);
1770         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1771         public static native long CResult_ShutdownDecodeErrorZ_get_err(long owner);
1772         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1773         public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_ok(long owner);
1774         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1775         public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_err(long owner);
1776         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1777         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long owner);
1778         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1779         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long owner);
1780         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1781         public static native long CResult_UpdateFeeDecodeErrorZ_get_ok(long owner);
1782         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1783         public static native long CResult_UpdateFeeDecodeErrorZ_get_err(long owner);
1784         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1785         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long owner);
1786         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1787         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long owner);
1788         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1789         public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_ok(long owner);
1790         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1791         public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_err(long owner);
1792         // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
1793         public static native long CResult_OnionMessageDecodeErrorZ_get_ok(long owner);
1794         // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
1795         public static native long CResult_OnionMessageDecodeErrorZ_get_err(long owner);
1796         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1797         public static native long CResult_PingDecodeErrorZ_get_ok(long owner);
1798         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1799         public static native long CResult_PingDecodeErrorZ_get_err(long owner);
1800         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1801         public static native long CResult_PongDecodeErrorZ_get_ok(long owner);
1802         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1803         public static native long CResult_PongDecodeErrorZ_get_err(long owner);
1804         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1805         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1806         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1807         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long owner);
1808         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1809         public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1810         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1811         public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_err(long owner);
1812         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1813         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long owner);
1814         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1815         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long owner);
1816         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1817         public static native long CResult_ChannelUpdateDecodeErrorZ_get_ok(long owner);
1818         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1819         public static native long CResult_ChannelUpdateDecodeErrorZ_get_err(long owner);
1820         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1821         public static native long CResult_ErrorMessageDecodeErrorZ_get_ok(long owner);
1822         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1823         public static native long CResult_ErrorMessageDecodeErrorZ_get_err(long owner);
1824         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1825         public static native long CResult_WarningMessageDecodeErrorZ_get_ok(long owner);
1826         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1827         public static native long CResult_WarningMessageDecodeErrorZ_get_err(long owner);
1828         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1829         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long owner);
1830         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1831         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long owner);
1832         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1833         public static native long CResult_NodeAnnouncementDecodeErrorZ_get_ok(long owner);
1834         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1835         public static native long CResult_NodeAnnouncementDecodeErrorZ_get_err(long owner);
1836         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1837         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long owner);
1838         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1839         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_err(long owner);
1840         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1841         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long owner);
1842         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1843         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long owner);
1844         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1845         public static native long CResult_QueryChannelRangeDecodeErrorZ_get_ok(long owner);
1846         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1847         public static native long CResult_QueryChannelRangeDecodeErrorZ_get_err(long owner);
1848         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1849         public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_ok(long owner);
1850         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1851         public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_err(long owner);
1852         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1853         public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_ok(long owner);
1854         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1855         public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_err(long owner);
1856         public static class LDKSignOrCreationError {
1857                 private LDKSignOrCreationError() {}
1858                 public final static class SignError extends LDKSignOrCreationError {
1859                         SignError() { }
1860                 }
1861                 public final static class CreationError extends LDKSignOrCreationError {
1862                         public org.ldk.enums.CreationError creation_error;
1863                         CreationError(org.ldk.enums.CreationError creation_error) { this.creation_error = creation_error; }
1864                 }
1865                 static native void init();
1866         }
1867         static { LDKSignOrCreationError.init(); }
1868         public static native LDKSignOrCreationError LDKSignOrCreationError_ref_from_ptr(long ptr);
1869         // struct LDKBolt11Invoice CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
1870         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(long owner);
1871         // struct LDKSignOrCreationError CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
1872         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(long owner);
1873         // struct LDKOffersMessage CResult_OffersMessageDecodeErrorZ_get_ok(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
1874         public static native long CResult_OffersMessageDecodeErrorZ_get_ok(long owner);
1875         // struct LDKDecodeError CResult_OffersMessageDecodeErrorZ_get_err(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
1876         public static native long CResult_OffersMessageDecodeErrorZ_get_err(long owner);
1877         public static class LDKCOption_HTLCClaimZ {
1878                 private LDKCOption_HTLCClaimZ() {}
1879                 public final static class Some extends LDKCOption_HTLCClaimZ {
1880                         public org.ldk.enums.HTLCClaim some;
1881                         Some(org.ldk.enums.HTLCClaim some) { this.some = some; }
1882                 }
1883                 public final static class None extends LDKCOption_HTLCClaimZ {
1884                         None() { }
1885                 }
1886                 static native void init();
1887         }
1888         static { LDKCOption_HTLCClaimZ.init(); }
1889         public static native LDKCOption_HTLCClaimZ LDKCOption_HTLCClaimZ_ref_from_ptr(long ptr);
1890         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
1891         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(long owner);
1892         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
1893         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(long owner);
1894         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
1895         public static native long CResult_TxCreationKeysDecodeErrorZ_get_ok(long owner);
1896         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
1897         public static native long CResult_TxCreationKeysDecodeErrorZ_get_err(long owner);
1898         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
1899         public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_ok(long owner);
1900         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
1901         public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_err(long owner);
1902         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
1903         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long owner);
1904         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
1905         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long owner);
1906         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1907         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
1908         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1909         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long owner);
1910         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1911         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
1912         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1913         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_err(long owner);
1914         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1915         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long owner);
1916         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1917         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long owner);
1918         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1919         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long owner);
1920         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1921         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long owner);
1922         // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1923         public static native long CResult_TrustedClosingTransactionNoneZ_get_ok(long owner);
1924         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1925         public static native void CResult_TrustedClosingTransactionNoneZ_get_err(long owner);
1926         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1927         public static native long CResult_CommitmentTransactionDecodeErrorZ_get_ok(long owner);
1928         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1929         public static native long CResult_CommitmentTransactionDecodeErrorZ_get_err(long owner);
1930         // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
1931         public static native long CResult_TrustedCommitmentTransactionNoneZ_get_ok(long owner);
1932         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
1933         public static native void CResult_TrustedCommitmentTransactionNoneZ_get_err(long owner);
1934         // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
1935         public static native byte[][] CResult_CVec_SignatureZNoneZ_get_ok(long owner);
1936         // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
1937         public static native void CResult_CVec_SignatureZNoneZ_get_err(long owner);
1938         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
1939         public static native long CResult_ShutdownScriptDecodeErrorZ_get_ok(long owner);
1940         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
1941         public static native long CResult_ShutdownScriptDecodeErrorZ_get_err(long owner);
1942         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1943         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(long owner);
1944         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1945         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(long owner);
1946         public static class LDKPaymentPurpose {
1947                 private LDKPaymentPurpose() {}
1948                 public final static class InvoicePayment extends LDKPaymentPurpose {
1949                         public long payment_preimage;
1950                         public byte[] payment_secret;
1951                         InvoicePayment(long payment_preimage, byte[] payment_secret) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; }
1952                 }
1953                 public final static class SpontaneousPayment extends LDKPaymentPurpose {
1954                         public byte[] spontaneous_payment;
1955                         SpontaneousPayment(byte[] spontaneous_payment) { this.spontaneous_payment = spontaneous_payment; }
1956                 }
1957                 static native void init();
1958         }
1959         static { LDKPaymentPurpose.init(); }
1960         public static native LDKPaymentPurpose LDKPaymentPurpose_ref_from_ptr(long ptr);
1961         // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1962         public static native long CResult_PaymentPurposeDecodeErrorZ_get_ok(long owner);
1963         // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1964         public static native long CResult_PaymentPurposeDecodeErrorZ_get_err(long owner);
1965         public static class LDKPathFailure {
1966                 private LDKPathFailure() {}
1967                 public final static class InitialSend extends LDKPathFailure {
1968                         public long err;
1969                         InitialSend(long err) { this.err = err; }
1970                 }
1971                 public final static class OnPath extends LDKPathFailure {
1972                         public long network_update;
1973                         OnPath(long network_update) { this.network_update = network_update; }
1974                 }
1975                 static native void init();
1976         }
1977         static { LDKPathFailure.init(); }
1978         public static native LDKPathFailure LDKPathFailure_ref_from_ptr(long ptr);
1979         public static class LDKCOption_PathFailureZ {
1980                 private LDKCOption_PathFailureZ() {}
1981                 public final static class Some extends LDKCOption_PathFailureZ {
1982                         public long some;
1983                         Some(long some) { this.some = some; }
1984                 }
1985                 public final static class None extends LDKCOption_PathFailureZ {
1986                         None() { }
1987                 }
1988                 static native void init();
1989         }
1990         static { LDKCOption_PathFailureZ.init(); }
1991         public static native LDKCOption_PathFailureZ LDKCOption_PathFailureZ_ref_from_ptr(long ptr);
1992         // struct LDKCOption_PathFailureZ CResult_COption_PathFailureZDecodeErrorZ_get_ok(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
1993         public static native long CResult_COption_PathFailureZDecodeErrorZ_get_ok(long owner);
1994         // struct LDKDecodeError CResult_COption_PathFailureZDecodeErrorZ_get_err(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
1995         public static native long CResult_COption_PathFailureZDecodeErrorZ_get_err(long owner);
1996         public static class LDKClosureReason {
1997                 private LDKClosureReason() {}
1998                 public final static class CounterpartyForceClosed extends LDKClosureReason {
1999                         public long peer_msg;
2000                         CounterpartyForceClosed(long peer_msg) { this.peer_msg = peer_msg; }
2001                 }
2002                 public final static class HolderForceClosed extends LDKClosureReason {
2003                         HolderForceClosed() { }
2004                 }
2005                 public final static class CooperativeClosure extends LDKClosureReason {
2006                         CooperativeClosure() { }
2007                 }
2008                 public final static class CommitmentTxConfirmed extends LDKClosureReason {
2009                         CommitmentTxConfirmed() { }
2010                 }
2011                 public final static class FundingTimedOut extends LDKClosureReason {
2012                         FundingTimedOut() { }
2013                 }
2014                 public final static class ProcessingError extends LDKClosureReason {
2015                         public java.lang.String err;
2016                         ProcessingError(java.lang.String err) { this.err = err; }
2017                 }
2018                 public final static class DisconnectedPeer extends LDKClosureReason {
2019                         DisconnectedPeer() { }
2020                 }
2021                 public final static class OutdatedChannelManager extends LDKClosureReason {
2022                         OutdatedChannelManager() { }
2023                 }
2024                 public final static class CounterpartyCoopClosedUnfundedChannel extends LDKClosureReason {
2025                         CounterpartyCoopClosedUnfundedChannel() { }
2026                 }
2027                 static native void init();
2028         }
2029         static { LDKClosureReason.init(); }
2030         public static native LDKClosureReason LDKClosureReason_ref_from_ptr(long ptr);
2031         public static class LDKCOption_ClosureReasonZ {
2032                 private LDKCOption_ClosureReasonZ() {}
2033                 public final static class Some extends LDKCOption_ClosureReasonZ {
2034                         public long some;
2035                         Some(long some) { this.some = some; }
2036                 }
2037                 public final static class None extends LDKCOption_ClosureReasonZ {
2038                         None() { }
2039                 }
2040                 static native void init();
2041         }
2042         static { LDKCOption_ClosureReasonZ.init(); }
2043         public static native LDKCOption_ClosureReasonZ LDKCOption_ClosureReasonZ_ref_from_ptr(long ptr);
2044         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2045         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(long owner);
2046         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2047         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_err(long owner);
2048         public static class LDKHTLCDestination {
2049                 private LDKHTLCDestination() {}
2050                 public final static class NextHopChannel extends LDKHTLCDestination {
2051                         public byte[] node_id;
2052                         public byte[] channel_id;
2053                         NextHopChannel(byte[] node_id, byte[] channel_id) { this.node_id = node_id; this.channel_id = channel_id; }
2054                 }
2055                 public final static class UnknownNextHop extends LDKHTLCDestination {
2056                         public long requested_forward_scid;
2057                         UnknownNextHop(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2058                 }
2059                 public final static class InvalidForward extends LDKHTLCDestination {
2060                         public long requested_forward_scid;
2061                         InvalidForward(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2062                 }
2063                 public final static class FailedPayment extends LDKHTLCDestination {
2064                         public byte[] payment_hash;
2065                         FailedPayment(byte[] payment_hash) { this.payment_hash = payment_hash; }
2066                 }
2067                 static native void init();
2068         }
2069         static { LDKHTLCDestination.init(); }
2070         public static native LDKHTLCDestination LDKHTLCDestination_ref_from_ptr(long ptr);
2071         public static class LDKCOption_HTLCDestinationZ {
2072                 private LDKCOption_HTLCDestinationZ() {}
2073                 public final static class Some extends LDKCOption_HTLCDestinationZ {
2074                         public long some;
2075                         Some(long some) { this.some = some; }
2076                 }
2077                 public final static class None extends LDKCOption_HTLCDestinationZ {
2078                         None() { }
2079                 }
2080                 static native void init();
2081         }
2082         static { LDKCOption_HTLCDestinationZ.init(); }
2083         public static native LDKCOption_HTLCDestinationZ LDKCOption_HTLCDestinationZ_ref_from_ptr(long ptr);
2084         // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2085         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(long owner);
2086         // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2087         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(long owner);
2088         // enum LDKPaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2089         public static native PaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(long owner);
2090         // struct LDKDecodeError CResult_PaymentFailureReasonDecodeErrorZ_get_err(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2091         public static native long CResult_PaymentFailureReasonDecodeErrorZ_get_err(long owner);
2092         public static class LDKCOption_u128Z {
2093                 private LDKCOption_u128Z() {}
2094                 public final static class Some extends LDKCOption_u128Z {
2095                         public byte[] some;
2096                         Some(byte[] some) { this.some = some; }
2097                 }
2098                 public final static class None extends LDKCOption_u128Z {
2099                         None() { }
2100                 }
2101                 static native void init();
2102         }
2103         static { LDKCOption_u128Z.init(); }
2104         public static native LDKCOption_u128Z LDKCOption_u128Z_ref_from_ptr(long ptr);
2105         public static class LDKCOption_PaymentIdZ {
2106                 private LDKCOption_PaymentIdZ() {}
2107                 public final static class Some extends LDKCOption_PaymentIdZ {
2108                         public byte[] some;
2109                         Some(byte[] some) { this.some = some; }
2110                 }
2111                 public final static class None extends LDKCOption_PaymentIdZ {
2112                         None() { }
2113                 }
2114                 static native void init();
2115         }
2116         static { LDKCOption_PaymentIdZ.init(); }
2117         public static native LDKCOption_PaymentIdZ LDKCOption_PaymentIdZ_ref_from_ptr(long ptr);
2118         public static class LDKCOption_PaymentFailureReasonZ {
2119                 private LDKCOption_PaymentFailureReasonZ() {}
2120                 public final static class Some extends LDKCOption_PaymentFailureReasonZ {
2121                         public org.ldk.enums.PaymentFailureReason some;
2122                         Some(org.ldk.enums.PaymentFailureReason some) { this.some = some; }
2123                 }
2124                 public final static class None extends LDKCOption_PaymentFailureReasonZ {
2125                         None() { }
2126                 }
2127                 static native void init();
2128         }
2129         static { LDKCOption_PaymentFailureReasonZ.init(); }
2130         public static native LDKCOption_PaymentFailureReasonZ LDKCOption_PaymentFailureReasonZ_ref_from_ptr(long ptr);
2131         public static class LDKBumpTransactionEvent {
2132                 private LDKBumpTransactionEvent() {}
2133                 public final static class ChannelClose extends LDKBumpTransactionEvent {
2134                         public byte[] claim_id;
2135                         public int package_target_feerate_sat_per_1000_weight;
2136                         public byte[] commitment_tx;
2137                         public long commitment_tx_fee_satoshis;
2138                         public long anchor_descriptor;
2139                         public long[] pending_htlcs;
2140                         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; }
2141                 }
2142                 public final static class HTLCResolution extends LDKBumpTransactionEvent {
2143                         public byte[] claim_id;
2144                         public int target_feerate_sat_per_1000_weight;
2145                         public long[] htlc_descriptors;
2146                         public int tx_lock_time;
2147                         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; }
2148                 }
2149                 static native void init();
2150         }
2151         static { LDKBumpTransactionEvent.init(); }
2152         public static native LDKBumpTransactionEvent LDKBumpTransactionEvent_ref_from_ptr(long ptr);
2153         public static class LDKEvent {
2154                 private LDKEvent() {}
2155                 public final static class FundingGenerationReady extends LDKEvent {
2156                         public byte[] temporary_channel_id;
2157                         public byte[] counterparty_node_id;
2158                         public long channel_value_satoshis;
2159                         public byte[] output_script;
2160                         public byte[] user_channel_id;
2161                         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; }
2162                 }
2163                 public final static class PaymentClaimable extends LDKEvent {
2164                         public byte[] receiver_node_id;
2165                         public byte[] payment_hash;
2166                         public long onion_fields;
2167                         public long amount_msat;
2168                         public long counterparty_skimmed_fee_msat;
2169                         public long purpose;
2170                         public byte[] via_channel_id;
2171                         public long via_user_channel_id;
2172                         public long claim_deadline;
2173                         PaymentClaimable(byte[] receiver_node_id, byte[] payment_hash, long onion_fields, long amount_msat, long counterparty_skimmed_fee_msat, long purpose, byte[] 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; }
2174                 }
2175                 public final static class PaymentClaimed extends LDKEvent {
2176                         public byte[] receiver_node_id;
2177                         public byte[] payment_hash;
2178                         public long amount_msat;
2179                         public long purpose;
2180                         PaymentClaimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose) { this.receiver_node_id = receiver_node_id; this.payment_hash = payment_hash; this.amount_msat = amount_msat; this.purpose = purpose; }
2181                 }
2182                 public final static class PaymentSent extends LDKEvent {
2183                         public long payment_id;
2184                         public byte[] payment_preimage;
2185                         public byte[] payment_hash;
2186                         public long fee_paid_msat;
2187                         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; }
2188                 }
2189                 public final static class PaymentFailed extends LDKEvent {
2190                         public byte[] payment_id;
2191                         public byte[] payment_hash;
2192                         public long reason;
2193                         PaymentFailed(byte[] payment_id, byte[] payment_hash, long reason) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.reason = reason; }
2194                 }
2195                 public final static class PaymentPathSuccessful extends LDKEvent {
2196                         public byte[] payment_id;
2197                         public long payment_hash;
2198                         public long path;
2199                         PaymentPathSuccessful(byte[] payment_id, long payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2200                 }
2201                 public final static class PaymentPathFailed extends LDKEvent {
2202                         public long payment_id;
2203                         public byte[] payment_hash;
2204                         public boolean payment_failed_permanently;
2205                         public long failure;
2206                         public long path;
2207                         public long short_channel_id;
2208                         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; }
2209                 }
2210                 public final static class ProbeSuccessful extends LDKEvent {
2211                         public byte[] payment_id;
2212                         public byte[] payment_hash;
2213                         public long path;
2214                         ProbeSuccessful(byte[] payment_id, byte[] payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2215                 }
2216                 public final static class ProbeFailed extends LDKEvent {
2217                         public byte[] payment_id;
2218                         public byte[] payment_hash;
2219                         public long path;
2220                         public long short_channel_id;
2221                         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; }
2222                 }
2223                 public final static class PendingHTLCsForwardable extends LDKEvent {
2224                         public long time_forwardable;
2225                         PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
2226                 }
2227                 public final static class HTLCIntercepted extends LDKEvent {
2228                         public byte[] intercept_id;
2229                         public long requested_next_hop_scid;
2230                         public byte[] payment_hash;
2231                         public long inbound_amount_msat;
2232                         public long expected_outbound_amount_msat;
2233                         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; }
2234                 }
2235                 public final static class SpendableOutputs extends LDKEvent {
2236                         public long[] outputs;
2237                         SpendableOutputs(long[] outputs) { this.outputs = outputs; }
2238                 }
2239                 public final static class PaymentForwarded extends LDKEvent {
2240                         public byte[] prev_channel_id;
2241                         public byte[] next_channel_id;
2242                         public long fee_earned_msat;
2243                         public boolean claim_from_onchain_tx;
2244                         public long outbound_amount_forwarded_msat;
2245                         PaymentForwarded(byte[] prev_channel_id, byte[] 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; }
2246                 }
2247                 public final static class ChannelPending extends LDKEvent {
2248                         public byte[] channel_id;
2249                         public byte[] user_channel_id;
2250                         public byte[] former_temporary_channel_id;
2251                         public byte[] counterparty_node_id;
2252                         public long funding_txo;
2253                         ChannelPending(byte[] channel_id, byte[] user_channel_id, byte[] 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; }
2254                 }
2255                 public final static class ChannelReady extends LDKEvent {
2256                         public byte[] channel_id;
2257                         public byte[] user_channel_id;
2258                         public byte[] counterparty_node_id;
2259                         public long channel_type;
2260                         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; }
2261                 }
2262                 public final static class ChannelClosed extends LDKEvent {
2263                         public byte[] channel_id;
2264                         public byte[] user_channel_id;
2265                         public long reason;
2266                         ChannelClosed(byte[] channel_id, byte[] user_channel_id, long reason) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.reason = reason; }
2267                 }
2268                 public final static class DiscardFunding extends LDKEvent {
2269                         public byte[] channel_id;
2270                         public byte[] transaction;
2271                         DiscardFunding(byte[] channel_id, byte[] transaction) { this.channel_id = channel_id; this.transaction = transaction; }
2272                 }
2273                 public final static class OpenChannelRequest extends LDKEvent {
2274                         public byte[] temporary_channel_id;
2275                         public byte[] counterparty_node_id;
2276                         public long funding_satoshis;
2277                         public long push_msat;
2278                         public long channel_type;
2279                         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; }
2280                 }
2281                 public final static class HTLCHandlingFailed extends LDKEvent {
2282                         public byte[] prev_channel_id;
2283                         public long failed_next_destination;
2284                         HTLCHandlingFailed(byte[] prev_channel_id, long failed_next_destination) { this.prev_channel_id = prev_channel_id; this.failed_next_destination = failed_next_destination; }
2285                 }
2286                 public final static class BumpTransaction extends LDKEvent {
2287                         public long bump_transaction;
2288                         BumpTransaction(long bump_transaction) { this.bump_transaction = bump_transaction; }
2289                 }
2290                 static native void init();
2291         }
2292         static { LDKEvent.init(); }
2293         public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
2294         public static class LDKCOption_EventZ {
2295                 private LDKCOption_EventZ() {}
2296                 public final static class Some extends LDKCOption_EventZ {
2297                         public long some;
2298                         Some(long some) { this.some = some; }
2299                 }
2300                 public final static class None extends LDKCOption_EventZ {
2301                         None() { }
2302                 }
2303                 static native void init();
2304         }
2305         static { LDKCOption_EventZ.init(); }
2306         public static native LDKCOption_EventZ LDKCOption_EventZ_ref_from_ptr(long ptr);
2307         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2308         public static native long CResult_COption_EventZDecodeErrorZ_get_ok(long owner);
2309         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2310         public static native long CResult_COption_EventZDecodeErrorZ_get_err(long owner);
2311         // struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR owner);
2312         public static native long[] CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(long owner);
2313         // enum LDKIOError CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR owner);
2314         public static native IOError CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(long owner);
2315         public static class LDKBolt11ParseError {
2316                 private LDKBolt11ParseError() {}
2317                 public final static class Bech32Error extends LDKBolt11ParseError {
2318                         public long bech32_error;
2319                         Bech32Error(long bech32_error) { this.bech32_error = bech32_error; }
2320                 }
2321                 public final static class ParseAmountError extends LDKBolt11ParseError {
2322                         public int parse_amount_error;
2323                         ParseAmountError(int parse_amount_error) { this.parse_amount_error = parse_amount_error; }
2324                 }
2325                 public final static class MalformedSignature extends LDKBolt11ParseError {
2326                         public org.ldk.enums.Secp256k1Error malformed_signature;
2327                         MalformedSignature(org.ldk.enums.Secp256k1Error malformed_signature) { this.malformed_signature = malformed_signature; }
2328                 }
2329                 public final static class BadPrefix extends LDKBolt11ParseError {
2330                         BadPrefix() { }
2331                 }
2332                 public final static class UnknownCurrency extends LDKBolt11ParseError {
2333                         UnknownCurrency() { }
2334                 }
2335                 public final static class UnknownSiPrefix extends LDKBolt11ParseError {
2336                         UnknownSiPrefix() { }
2337                 }
2338                 public final static class MalformedHRP extends LDKBolt11ParseError {
2339                         MalformedHRP() { }
2340                 }
2341                 public final static class TooShortDataPart extends LDKBolt11ParseError {
2342                         TooShortDataPart() { }
2343                 }
2344                 public final static class UnexpectedEndOfTaggedFields extends LDKBolt11ParseError {
2345                         UnexpectedEndOfTaggedFields() { }
2346                 }
2347                 public final static class DescriptionDecodeError extends LDKBolt11ParseError {
2348                         public int description_decode_error;
2349                         DescriptionDecodeError(int description_decode_error) { this.description_decode_error = description_decode_error; }
2350                 }
2351                 public final static class PaddingError extends LDKBolt11ParseError {
2352                         PaddingError() { }
2353                 }
2354                 public final static class IntegerOverflowError extends LDKBolt11ParseError {
2355                         IntegerOverflowError() { }
2356                 }
2357                 public final static class InvalidSegWitProgramLength extends LDKBolt11ParseError {
2358                         InvalidSegWitProgramLength() { }
2359                 }
2360                 public final static class InvalidPubKeyHashLength extends LDKBolt11ParseError {
2361                         InvalidPubKeyHashLength() { }
2362                 }
2363                 public final static class InvalidScriptHashLength extends LDKBolt11ParseError {
2364                         InvalidScriptHashLength() { }
2365                 }
2366                 public final static class InvalidRecoveryId extends LDKBolt11ParseError {
2367                         InvalidRecoveryId() { }
2368                 }
2369                 public final static class InvalidSliceLength extends LDKBolt11ParseError {
2370                         public java.lang.String invalid_slice_length;
2371                         InvalidSliceLength(java.lang.String invalid_slice_length) { this.invalid_slice_length = invalid_slice_length; }
2372                 }
2373                 public final static class Skip extends LDKBolt11ParseError {
2374                         Skip() { }
2375                 }
2376                 static native void init();
2377         }
2378         static { LDKBolt11ParseError.init(); }
2379         public static native LDKBolt11ParseError LDKBolt11ParseError_ref_from_ptr(long ptr);
2380         // enum LDKSiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2381         public static native SiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(long owner);
2382         // struct LDKBolt11ParseError CResult_SiPrefixBolt11ParseErrorZ_get_err(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2383         public static native long CResult_SiPrefixBolt11ParseErrorZ_get_err(long owner);
2384         public static class LDKParseOrSemanticError {
2385                 private LDKParseOrSemanticError() {}
2386                 public final static class ParseError extends LDKParseOrSemanticError {
2387                         public long parse_error;
2388                         ParseError(long parse_error) { this.parse_error = parse_error; }
2389                 }
2390                 public final static class SemanticError extends LDKParseOrSemanticError {
2391                         public org.ldk.enums.Bolt11SemanticError semantic_error;
2392                         SemanticError(org.ldk.enums.Bolt11SemanticError semantic_error) { this.semantic_error = semantic_error; }
2393                 }
2394                 static native void init();
2395         }
2396         static { LDKParseOrSemanticError.init(); }
2397         public static native LDKParseOrSemanticError LDKParseOrSemanticError_ref_from_ptr(long ptr);
2398         // struct LDKBolt11Invoice CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2399         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(long owner);
2400         // struct LDKParseOrSemanticError CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2401         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(long owner);
2402         // struct LDKSignedRawBolt11Invoice CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2403         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(long owner);
2404         // struct LDKBolt11ParseError CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2405         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(long owner);
2406         // struct LDKRawBolt11Invoice C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2407         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(long owner);
2408         // struct LDKThirtyTwoBytes C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2409         public static native byte[] C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(long owner);
2410         // struct LDKBolt11InvoiceSignature C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2411         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(long owner);
2412         // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
2413         public static native long CResult_PayeePubKeyErrorZ_get_ok(long owner);
2414         // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
2415         public static native Secp256k1Error CResult_PayeePubKeyErrorZ_get_err(long owner);
2416         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2417         public static native long CResult_PositiveTimestampCreationErrorZ_get_ok(long owner);
2418         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2419         public static native CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long owner);
2420         // void CResult_NoneBolt11SemanticErrorZ_get_ok(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2421         public static native void CResult_NoneBolt11SemanticErrorZ_get_ok(long owner);
2422         // enum LDKBolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2423         public static native Bolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(long owner);
2424         // struct LDKBolt11Invoice CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2425         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(long owner);
2426         // enum LDKBolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2427         public static native Bolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(long owner);
2428         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2429         public static native long CResult_DescriptionCreationErrorZ_get_ok(long owner);
2430         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2431         public static native CreationError CResult_DescriptionCreationErrorZ_get_err(long owner);
2432         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2433         public static native long CResult_PrivateRouteCreationErrorZ_get_ok(long owner);
2434         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2435         public static native CreationError CResult_PrivateRouteCreationErrorZ_get_err(long owner);
2436         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2437         public static native long CResult_OutPointDecodeErrorZ_get_ok(long owner);
2438         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2439         public static native long CResult_OutPointDecodeErrorZ_get_err(long owner);
2440         // struct LDKBigSize CResult_BigSizeDecodeErrorZ_get_ok(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2441         public static native long CResult_BigSizeDecodeErrorZ_get_ok(long owner);
2442         // struct LDKDecodeError CResult_BigSizeDecodeErrorZ_get_err(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2443         public static native long CResult_BigSizeDecodeErrorZ_get_err(long owner);
2444         // struct LDKHostname CResult_HostnameDecodeErrorZ_get_ok(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2445         public static native long CResult_HostnameDecodeErrorZ_get_ok(long owner);
2446         // struct LDKDecodeError CResult_HostnameDecodeErrorZ_get_err(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2447         public static native long CResult_HostnameDecodeErrorZ_get_err(long owner);
2448         // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedNoneZ_get_ok(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2449         public static native long CResult_TransactionU16LenLimitedNoneZ_get_ok(long owner);
2450         // void CResult_TransactionU16LenLimitedNoneZ_get_err(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2451         public static native void CResult_TransactionU16LenLimitedNoneZ_get_err(long owner);
2452         // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2453         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(long owner);
2454         // struct LDKDecodeError CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2455         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(long owner);
2456         // struct LDKUntrustedString CResult_UntrustedStringDecodeErrorZ_get_ok(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2457         public static native long CResult_UntrustedStringDecodeErrorZ_get_ok(long owner);
2458         // struct LDKDecodeError CResult_UntrustedStringDecodeErrorZ_get_err(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2459         public static native long CResult_UntrustedStringDecodeErrorZ_get_err(long owner);
2460         public static class LDKPaymentError {
2461                 private LDKPaymentError() {}
2462                 public final static class Invoice extends LDKPaymentError {
2463                         public java.lang.String invoice;
2464                         Invoice(java.lang.String invoice) { this.invoice = invoice; }
2465                 }
2466                 public final static class Sending extends LDKPaymentError {
2467                         public org.ldk.enums.RetryableSendFailure sending;
2468                         Sending(org.ldk.enums.RetryableSendFailure sending) { this.sending = sending; }
2469                 }
2470                 static native void init();
2471         }
2472         static { LDKPaymentError.init(); }
2473         public static native LDKPaymentError LDKPaymentError_ref_from_ptr(long ptr);
2474         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
2475         public static native byte[] CResult_PaymentIdPaymentErrorZ_get_ok(long owner);
2476         // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
2477         public static native long CResult_PaymentIdPaymentErrorZ_get_err(long owner);
2478         // void CResult_NonePaymentErrorZ_get_ok(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
2479         public static native void CResult_NonePaymentErrorZ_get_ok(long owner);
2480         // struct LDKPaymentError CResult_NonePaymentErrorZ_get_err(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
2481         public static native long CResult_NonePaymentErrorZ_get_err(long owner);
2482         // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
2483         public static native String CResult_StringErrorZ_get_ok(long owner);
2484         // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
2485         public static native Secp256k1Error CResult_StringErrorZ_get_err(long owner);
2486         // struct LDKOnionMessagePath CResult_OnionMessagePathNoneZ_get_ok(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
2487         public static native long CResult_OnionMessagePathNoneZ_get_ok(long owner);
2488         // void CResult_OnionMessagePathNoneZ_get_err(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
2489         public static native void CResult_OnionMessagePathNoneZ_get_err(long owner);
2490         public static class LDKSendError {
2491                 private LDKSendError() {}
2492                 public final static class Secp256k1 extends LDKSendError {
2493                         public org.ldk.enums.Secp256k1Error secp256k1;
2494                         Secp256k1(org.ldk.enums.Secp256k1Error secp256k1) { this.secp256k1 = secp256k1; }
2495                 }
2496                 public final static class TooBigPacket extends LDKSendError {
2497                         TooBigPacket() { }
2498                 }
2499                 public final static class TooFewBlindedHops extends LDKSendError {
2500                         TooFewBlindedHops() { }
2501                 }
2502                 public final static class InvalidFirstHop extends LDKSendError {
2503                         InvalidFirstHop() { }
2504                 }
2505                 public final static class InvalidMessage extends LDKSendError {
2506                         InvalidMessage() { }
2507                 }
2508                 public final static class BufferFull extends LDKSendError {
2509                         BufferFull() { }
2510                 }
2511                 public final static class GetNodeIdFailed extends LDKSendError {
2512                         GetNodeIdFailed() { }
2513                 }
2514                 public final static class BlindedPathAdvanceFailed extends LDKSendError {
2515                         BlindedPathAdvanceFailed() { }
2516                 }
2517                 static native void init();
2518         }
2519         static { LDKSendError.init(); }
2520         public static native LDKSendError LDKSendError_ref_from_ptr(long ptr);
2521         // void CResult_NoneSendErrorZ_get_ok(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
2522         public static native void CResult_NoneSendErrorZ_get_ok(long owner);
2523         // struct LDKSendError CResult_NoneSendErrorZ_get_err(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
2524         public static native long CResult_NoneSendErrorZ_get_err(long owner);
2525         // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
2526         public static native long CResult_BlindedPathNoneZ_get_ok(long owner);
2527         // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
2528         public static native void CResult_BlindedPathNoneZ_get_err(long owner);
2529         // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
2530         public static native long CResult_BlindedPathDecodeErrorZ_get_ok(long owner);
2531         // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
2532         public static native long CResult_BlindedPathDecodeErrorZ_get_err(long owner);
2533         // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
2534         public static native long CResult_BlindedHopDecodeErrorZ_get_ok(long owner);
2535         // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
2536         public static native long CResult_BlindedHopDecodeErrorZ_get_err(long owner);
2537         // struct LDKInvoiceError CResult_InvoiceErrorDecodeErrorZ_get_ok(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
2538         public static native long CResult_InvoiceErrorDecodeErrorZ_get_ok(long owner);
2539         // struct LDKDecodeError CResult_InvoiceErrorDecodeErrorZ_get_err(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
2540         public static native long CResult_InvoiceErrorDecodeErrorZ_get_err(long owner);
2541         public interface LDKFilter {
2542                  void register_tx(byte[] txid, byte[] script_pubkey);
2543                  void register_output(long output);
2544         }
2545         public static native long LDKFilter_new(LDKFilter impl);
2546         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
2547         public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
2548         // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
2549         public static native void Filter_register_output(long this_arg, long output);
2550         public static class LDKCOption_FilterZ {
2551                 private LDKCOption_FilterZ() {}
2552                 public final static class Some extends LDKCOption_FilterZ {
2553                         public long some;
2554                         Some(long some) { this.some = some; }
2555                 }
2556                 public final static class None extends LDKCOption_FilterZ {
2557                         None() { }
2558                 }
2559                 static native void init();
2560         }
2561         static { LDKCOption_FilterZ.init(); }
2562         public static native LDKCOption_FilterZ LDKCOption_FilterZ_ref_from_ptr(long ptr);
2563         // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2564         public static native long CResult_LockedChannelMonitorNoneZ_get_ok(long owner);
2565         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2566         public static native void CResult_LockedChannelMonitorNoneZ_get_err(long owner);
2567         // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2568         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(long owner);
2569         // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2570         public static native long[] C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(long owner);
2571         public interface LDKPersister {
2572                  long persist_manager(long channel_manager);
2573                  long persist_graph(long network_graph);
2574                  long persist_scorer(long scorer);
2575         }
2576         public static native long LDKPersister_new(LDKPersister impl);
2577         // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
2578         public static native long Persister_persist_manager(long this_arg, long channel_manager);
2579         // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
2580         public static native long Persister_persist_graph(long this_arg, long network_graph);
2581         // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
2582         public static native long Persister_persist_scorer(long this_arg, long scorer);
2583         public interface LDKFutureCallback {
2584                  void call();
2585         }
2586         public static native long LDKFutureCallback_new(LDKFutureCallback impl);
2587         // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
2588         public static native void FutureCallback_call(long this_arg);
2589         public interface LDKListen {
2590                  void filtered_block_connected(byte[] header, long[] txdata, int height);
2591                  void block_connected(byte[] block, int height);
2592                  void block_disconnected(byte[] header, int height);
2593         }
2594         public static native long LDKListen_new(LDKListen impl);
2595         // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2596         public static native void Listen_filtered_block_connected(long this_arg, byte[] header, long[] txdata, int height);
2597         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
2598         public static native void Listen_block_connected(long this_arg, byte[] block, int height);
2599         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2600         public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
2601         public interface LDKConfirm {
2602                  void transactions_confirmed(byte[] header, long[] txdata, int height);
2603                  void transaction_unconfirmed(byte[] txid);
2604                  void best_block_updated(byte[] header, int height);
2605                  long[] get_relevant_txids();
2606         }
2607         public static native long LDKConfirm_new(LDKConfirm impl);
2608         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2609         public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
2610         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
2611         public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
2612         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2613         public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
2614         // LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
2615         public static native long[] Confirm_get_relevant_txids(long this_arg);
2616         public interface LDKPersist {
2617                  ChannelMonitorUpdateStatus persist_new_channel(long channel_id, long data, long update_id);
2618                  ChannelMonitorUpdateStatus update_persisted_channel(long channel_id, long update, long data, long update_id);
2619         }
2620         public static native long LDKPersist_new(LDKPersist impl);
2621         // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
2622         public static native ChannelMonitorUpdateStatus Persist_persist_new_channel(long this_arg, long channel_id, long data, long update_id);
2623         // 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
2624         public static native ChannelMonitorUpdateStatus Persist_update_persisted_channel(long this_arg, long channel_id, long update, long data, long update_id);
2625         public interface LDKEventHandler {
2626                  void handle_event(long event);
2627         }
2628         public static native long LDKEventHandler_new(LDKEventHandler impl);
2629         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
2630         public static native void EventHandler_handle_event(long this_arg, long event);
2631         public interface LDKEventsProvider {
2632                  void process_pending_events(long handler);
2633         }
2634         public static native long LDKEventsProvider_new(LDKEventsProvider impl);
2635         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
2636         public static native void EventsProvider_process_pending_events(long this_arg, long handler);
2637         public static class LDKRetry {
2638                 private LDKRetry() {}
2639                 public final static class Attempts extends LDKRetry {
2640                         public long attempts;
2641                         Attempts(long attempts) { this.attempts = attempts; }
2642                 }
2643                 public final static class Timeout extends LDKRetry {
2644                         public long timeout;
2645                         Timeout(long timeout) { this.timeout = timeout; }
2646                 }
2647                 static native void init();
2648         }
2649         static { LDKRetry.init(); }
2650         public static native LDKRetry LDKRetry_ref_from_ptr(long ptr);
2651         public interface LDKMessageSendEventsProvider {
2652                  long[] get_and_clear_pending_msg_events();
2653         }
2654         public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
2655         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
2656         public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
2657         public interface LDKChannelMessageHandler {
2658                  void handle_open_channel(byte[] their_node_id, long msg);
2659                  void handle_open_channel_v2(byte[] their_node_id, long msg);
2660                  void handle_accept_channel(byte[] their_node_id, long msg);
2661                  void handle_accept_channel_v2(byte[] their_node_id, long msg);
2662                  void handle_funding_created(byte[] their_node_id, long msg);
2663                  void handle_funding_signed(byte[] their_node_id, long msg);
2664                  void handle_channel_ready(byte[] their_node_id, long msg);
2665                  void handle_shutdown(byte[] their_node_id, long msg);
2666                  void handle_closing_signed(byte[] their_node_id, long msg);
2667                  void handle_tx_add_input(byte[] their_node_id, long msg);
2668                  void handle_tx_add_output(byte[] their_node_id, long msg);
2669                  void handle_tx_remove_input(byte[] their_node_id, long msg);
2670                  void handle_tx_remove_output(byte[] their_node_id, long msg);
2671                  void handle_tx_complete(byte[] their_node_id, long msg);
2672                  void handle_tx_signatures(byte[] their_node_id, long msg);
2673                  void handle_tx_init_rbf(byte[] their_node_id, long msg);
2674                  void handle_tx_ack_rbf(byte[] their_node_id, long msg);
2675                  void handle_tx_abort(byte[] their_node_id, long msg);
2676                  void handle_update_add_htlc(byte[] their_node_id, long msg);
2677                  void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
2678                  void handle_update_fail_htlc(byte[] their_node_id, long msg);
2679                  void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
2680                  void handle_commitment_signed(byte[] their_node_id, long msg);
2681                  void handle_revoke_and_ack(byte[] their_node_id, long msg);
2682                  void handle_update_fee(byte[] their_node_id, long msg);
2683                  void handle_announcement_signatures(byte[] their_node_id, long msg);
2684                  void peer_disconnected(byte[] their_node_id);
2685                  long peer_connected(byte[] their_node_id, long msg, boolean inbound);
2686                  void handle_channel_reestablish(byte[] their_node_id, long msg);
2687                  void handle_channel_update(byte[] their_node_id, long msg);
2688                  void handle_error(byte[] their_node_id, long msg);
2689                  long provided_node_features();
2690                  long provided_init_features(byte[] their_node_id);
2691                  long get_genesis_hashes();
2692         }
2693         public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
2694         public static native long LDKChannelMessageHandler_get_MessageSendEventsProvider(long arg);
2695         // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg
2696         public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long msg);
2697         // void ChannelMessageHandler_handle_open_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannelV2 *NONNULL_PTR msg
2698         public static native void ChannelMessageHandler_handle_open_channel_v2(long this_arg, byte[] their_node_id, long msg);
2699         // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg
2700         public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long msg);
2701         // void ChannelMessageHandler_handle_accept_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannelV2 *NONNULL_PTR msg
2702         public static native void ChannelMessageHandler_handle_accept_channel_v2(long this_arg, byte[] their_node_id, long msg);
2703         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
2704         public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
2705         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
2706         public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
2707         // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
2708         public static native void ChannelMessageHandler_handle_channel_ready(long this_arg, byte[] their_node_id, long msg);
2709         // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
2710         public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long msg);
2711         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
2712         public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
2713         // void ChannelMessageHandler_handle_tx_add_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddInput *NONNULL_PTR msg
2714         public static native void ChannelMessageHandler_handle_tx_add_input(long this_arg, byte[] their_node_id, long msg);
2715         // void ChannelMessageHandler_handle_tx_add_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddOutput *NONNULL_PTR msg
2716         public static native void ChannelMessageHandler_handle_tx_add_output(long this_arg, byte[] their_node_id, long msg);
2717         // void ChannelMessageHandler_handle_tx_remove_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveInput *NONNULL_PTR msg
2718         public static native void ChannelMessageHandler_handle_tx_remove_input(long this_arg, byte[] their_node_id, long msg);
2719         // void ChannelMessageHandler_handle_tx_remove_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveOutput *NONNULL_PTR msg
2720         public static native void ChannelMessageHandler_handle_tx_remove_output(long this_arg, byte[] their_node_id, long msg);
2721         // void ChannelMessageHandler_handle_tx_complete LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxComplete *NONNULL_PTR msg
2722         public static native void ChannelMessageHandler_handle_tx_complete(long this_arg, byte[] their_node_id, long msg);
2723         // void ChannelMessageHandler_handle_tx_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxSignatures *NONNULL_PTR msg
2724         public static native void ChannelMessageHandler_handle_tx_signatures(long this_arg, byte[] their_node_id, long msg);
2725         // void ChannelMessageHandler_handle_tx_init_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxInitRbf *NONNULL_PTR msg
2726         public static native void ChannelMessageHandler_handle_tx_init_rbf(long this_arg, byte[] their_node_id, long msg);
2727         // void ChannelMessageHandler_handle_tx_ack_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAckRbf *NONNULL_PTR msg
2728         public static native void ChannelMessageHandler_handle_tx_ack_rbf(long this_arg, byte[] their_node_id, long msg);
2729         // void ChannelMessageHandler_handle_tx_abort LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAbort *NONNULL_PTR msg
2730         public static native void ChannelMessageHandler_handle_tx_abort(long this_arg, byte[] their_node_id, long msg);
2731         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
2732         public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
2733         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
2734         public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
2735         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
2736         public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
2737         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
2738         public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
2739         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
2740         public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
2741         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
2742         public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
2743         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
2744         public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
2745         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
2746         public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
2747         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2748         public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
2749         // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound
2750         public static native long ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg, boolean inbound);
2751         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
2752         public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
2753         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
2754         public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
2755         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
2756         public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
2757         // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
2758         public static native long ChannelMessageHandler_provided_node_features(long this_arg);
2759         // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2760         public static native long ChannelMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2761         // LDKCOption_CVec_ChainHashZZ ChannelMessageHandler_get_genesis_hashes LDKChannelMessageHandler *NONNULL_PTR this_arg
2762         public static native long ChannelMessageHandler_get_genesis_hashes(long this_arg);
2763         public interface LDKRoutingMessageHandler {
2764                  long handle_node_announcement(long msg);
2765                  long handle_channel_announcement(long msg);
2766                  long handle_channel_update(long msg);
2767                  long get_next_channel_announcement(long starting_point);
2768                  long get_next_node_announcement(long starting_point);
2769                  long peer_connected(byte[] their_node_id, long init, boolean inbound);
2770                  long handle_reply_channel_range(byte[] their_node_id, long msg);
2771                  long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
2772                  long handle_query_channel_range(byte[] their_node_id, long msg);
2773                  long handle_query_short_channel_ids(byte[] their_node_id, long msg);
2774                  boolean processing_queue_high();
2775                  long provided_node_features();
2776                  long provided_init_features(byte[] their_node_id);
2777         }
2778         public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
2779         public static native long LDKRoutingMessageHandler_get_MessageSendEventsProvider(long arg);
2780         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
2781         public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
2782         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
2783         public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
2784         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
2785         public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
2786         // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
2787         public static native long RoutingMessageHandler_get_next_channel_announcement(long this_arg, long starting_point);
2788         // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point
2789         public static native long RoutingMessageHandler_get_next_node_announcement(long this_arg, long starting_point);
2790         // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
2791         public static native long RoutingMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
2792         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
2793         public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
2794         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
2795         public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
2796         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
2797         public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
2798         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
2799         public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
2800         // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg
2801         public static native boolean RoutingMessageHandler_processing_queue_high(long this_arg);
2802         // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
2803         public static native long RoutingMessageHandler_provided_node_features(long this_arg);
2804         // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2805         public static native long RoutingMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2806         public interface LDKOnionMessageProvider {
2807                  long next_onion_message_for_peer(byte[] peer_node_id);
2808         }
2809         public static native long LDKOnionMessageProvider_new(LDKOnionMessageProvider impl);
2810         // LDKOnionMessage OnionMessageProvider_next_onion_message_for_peer LDKOnionMessageProvider *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
2811         public static native long OnionMessageProvider_next_onion_message_for_peer(long this_arg, byte[] peer_node_id);
2812         public interface LDKOnionMessageHandler {
2813                  void handle_onion_message(byte[] peer_node_id, long msg);
2814                  long peer_connected(byte[] their_node_id, long init, boolean inbound);
2815                  void peer_disconnected(byte[] their_node_id);
2816                  long provided_node_features();
2817                  long provided_init_features(byte[] their_node_id);
2818         }
2819         public static native long LDKOnionMessageHandler_new(LDKOnionMessageHandler impl, LDKOnionMessageProvider OnionMessageProvider);
2820         public static native long LDKOnionMessageHandler_get_OnionMessageProvider(long arg);
2821         // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
2822         public static native void OnionMessageHandler_handle_onion_message(long this_arg, byte[] peer_node_id, long msg);
2823         // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
2824         public static native long OnionMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
2825         // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2826         public static native void OnionMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
2827         // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
2828         public static native long OnionMessageHandler_provided_node_features(long this_arg);
2829         // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2830         public static native long OnionMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2831         public interface LDKCustomMessageReader {
2832                  long read(short message_type, byte[] buffer);
2833         }
2834         public static native long LDKCustomMessageReader_new(LDKCustomMessageReader impl);
2835         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
2836         public static native long CustomMessageReader_read(long this_arg, short message_type, byte[] buffer);
2837         public interface LDKCustomMessageHandler {
2838                  long handle_custom_message(long msg, byte[] sender_node_id);
2839                  long[] get_and_clear_pending_msg();
2840                  long provided_node_features();
2841                  long provided_init_features(byte[] their_node_id);
2842         }
2843         public static native long LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, LDKCustomMessageReader CustomMessageReader);
2844         public static native long LDKCustomMessageHandler_get_CustomMessageReader(long arg);
2845         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
2846         public static native long CustomMessageHandler_handle_custom_message(long this_arg, long msg, byte[] sender_node_id);
2847         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
2848         public static native long[] CustomMessageHandler_get_and_clear_pending_msg(long this_arg);
2849         // LDKNodeFeatures CustomMessageHandler_provided_node_features LDKCustomMessageHandler *NONNULL_PTR this_arg
2850         public static native long CustomMessageHandler_provided_node_features(long this_arg);
2851         // LDKInitFeatures CustomMessageHandler_provided_init_features LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2852         public static native long CustomMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2853         public interface LDKOffersMessageHandler {
2854                  long handle_message(long message);
2855         }
2856         public static native long LDKOffersMessageHandler_new(LDKOffersMessageHandler impl);
2857         // LDKCOption_OffersMessageZ OffersMessageHandler_handle_message LDKOffersMessageHandler *NONNULL_PTR this_arg, struct LDKOffersMessage message
2858         public static native long OffersMessageHandler_handle_message(long this_arg, long message);
2859         public interface LDKCustomOnionMessageHandler {
2860                  long handle_custom_message(long msg);
2861                  long read_custom_message(long message_type, byte[] buffer);
2862         }
2863         public static native long LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandler impl);
2864         // LDKCOption_CustomOnionMessageContentsZ CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKCustomOnionMessageContents msg
2865         public static native long CustomOnionMessageHandler_handle_custom_message(long this_arg, long msg);
2866         // LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer
2867         public static native long CustomOnionMessageHandler_read_custom_message(long this_arg, long message_type, byte[] buffer);
2868         public interface LDKSocketDescriptor {
2869                  long send_data(byte[] data, boolean resume_read);
2870                  void disconnect_socket();
2871                  boolean eq(long other_arg);
2872                  long hash();
2873         }
2874         public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
2875         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
2876         public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
2877         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
2878         public static native void SocketDescriptor_disconnect_socket(long this_arg);
2879         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
2880         public static native long SocketDescriptor_hash(long this_arg);
2881         public static class LDKEffectiveCapacity {
2882                 private LDKEffectiveCapacity() {}
2883                 public final static class ExactLiquidity extends LDKEffectiveCapacity {
2884                         public long liquidity_msat;
2885                         ExactLiquidity(long liquidity_msat) { this.liquidity_msat = liquidity_msat; }
2886                 }
2887                 public final static class AdvertisedMaxHTLC extends LDKEffectiveCapacity {
2888                         public long amount_msat;
2889                         AdvertisedMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
2890                 }
2891                 public final static class Total extends LDKEffectiveCapacity {
2892                         public long capacity_msat;
2893                         public long htlc_maximum_msat;
2894                         Total(long capacity_msat, long htlc_maximum_msat) { this.capacity_msat = capacity_msat; this.htlc_maximum_msat = htlc_maximum_msat; }
2895                 }
2896                 public final static class Infinite extends LDKEffectiveCapacity {
2897                         Infinite() { }
2898                 }
2899                 public final static class HintMaxHTLC extends LDKEffectiveCapacity {
2900                         public long amount_msat;
2901                         HintMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
2902                 }
2903                 public final static class Unknown extends LDKEffectiveCapacity {
2904                         Unknown() { }
2905                 }
2906                 static native void init();
2907         }
2908         static { LDKEffectiveCapacity.init(); }
2909         public static native LDKEffectiveCapacity LDKEffectiveCapacity_ref_from_ptr(long ptr);
2910         public static class LDKPayee {
2911                 private LDKPayee() {}
2912                 public final static class Blinded extends LDKPayee {
2913                         public long[] route_hints;
2914                         public long features;
2915                         Blinded(long[] route_hints, long features) { this.route_hints = route_hints; this.features = features; }
2916                 }
2917                 public final static class Clear extends LDKPayee {
2918                         public byte[] node_id;
2919                         public long[] route_hints;
2920                         public long features;
2921                         public int final_cltv_expiry_delta;
2922                         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; }
2923                 }
2924                 static native void init();
2925         }
2926         static { LDKPayee.init(); }
2927         public static native LDKPayee LDKPayee_ref_from_ptr(long ptr);
2928         public static class LDKDestination {
2929                 private LDKDestination() {}
2930                 public final static class Node extends LDKDestination {
2931                         public byte[] node;
2932                         Node(byte[] node) { this.node = node; }
2933                 }
2934                 public final static class BlindedPath extends LDKDestination {
2935                         public long blinded_path;
2936                         BlindedPath(long blinded_path) { this.blinded_path = blinded_path; }
2937                 }
2938                 static native void init();
2939         }
2940         static { LDKDestination.init(); }
2941         public static native LDKDestination LDKDestination_ref_from_ptr(long ptr);
2942         public interface LDKMessageRouter {
2943                  long find_path(byte[] sender, byte[][] peers, long destination);
2944         }
2945         public static native long LDKMessageRouter_new(LDKMessageRouter impl);
2946         // LDKCResult_OnionMessagePathNoneZ MessageRouter_find_path LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey sender, struct LDKCVec_PublicKeyZ peers, struct LDKDestination destination
2947         public static native long MessageRouter_find_path(long this_arg, byte[] sender, byte[][] peers, long destination);
2948         public static class LDKOnionMessageContents {
2949                 private LDKOnionMessageContents() {}
2950                 public final static class Offers extends LDKOnionMessageContents {
2951                         public long offers;
2952                         Offers(long offers) { this.offers = offers; }
2953                 }
2954                 public final static class Custom extends LDKOnionMessageContents {
2955                         public long custom;
2956                         Custom(long custom) { this.custom = custom; }
2957                 }
2958                 static native void init();
2959         }
2960         static { LDKOnionMessageContents.init(); }
2961         public static native LDKOnionMessageContents LDKOnionMessageContents_ref_from_ptr(long ptr);
2962         public interface LDKCoinSelectionSource {
2963                  long select_confirmed_utxos(byte[] claim_id, long[] must_spend, long[] must_pay_to, int target_feerate_sat_per_1000_weight);
2964                  long sign_tx(byte[] tx);
2965         }
2966         public static native long LDKCoinSelectionSource_new(LDKCoinSelectionSource impl);
2967         // 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
2968         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);
2969         // LDKCResult_TransactionNoneZ CoinSelectionSource_sign_tx LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKTransaction tx
2970         public static native long CoinSelectionSource_sign_tx(long this_arg, byte[] tx);
2971         public interface LDKWalletSource {
2972                  long list_confirmed_utxos();
2973                  long get_change_script();
2974                  long sign_tx(byte[] tx);
2975         }
2976         public static native long LDKWalletSource_new(LDKWalletSource impl);
2977         // LDKCResult_CVec_UtxoZNoneZ WalletSource_list_confirmed_utxos LDKWalletSource *NONNULL_PTR this_arg
2978         public static native long WalletSource_list_confirmed_utxos(long this_arg);
2979         // LDKCResult_ScriptNoneZ WalletSource_get_change_script LDKWalletSource *NONNULL_PTR this_arg
2980         public static native long WalletSource_get_change_script(long this_arg);
2981         // LDKCResult_TransactionNoneZ WalletSource_sign_tx LDKWalletSource *NONNULL_PTR this_arg, struct LDKTransaction tx
2982         public static native long WalletSource_sign_tx(long this_arg, byte[] tx);
2983         public static class LDKGossipSync {
2984                 private LDKGossipSync() {}
2985                 public final static class P2P extends LDKGossipSync {
2986                         public long p2p;
2987                         P2P(long p2p) { this.p2p = p2p; }
2988                 }
2989                 public final static class Rapid extends LDKGossipSync {
2990                         public long rapid;
2991                         Rapid(long rapid) { this.rapid = rapid; }
2992                 }
2993                 public final static class None extends LDKGossipSync {
2994                         None() { }
2995                 }
2996                 static native void init();
2997         }
2998         static { LDKGossipSync.init(); }
2999         public static native LDKGossipSync LDKGossipSync_ref_from_ptr(long ptr);
3000         public static class LDKFallback {
3001                 private LDKFallback() {}
3002                 public final static class SegWitProgram extends LDKFallback {
3003                         public byte version;
3004                         public byte[] program;
3005                         SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
3006                 }
3007                 public final static class PubKeyHash extends LDKFallback {
3008                         public byte[] pub_key_hash;
3009                         PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
3010                 }
3011                 public final static class ScriptHash extends LDKFallback {
3012                         public byte[] script_hash;
3013                         ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
3014                 }
3015                 static native void init();
3016         }
3017         static { LDKFallback.init(); }
3018         public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
3019         // struct LDKStr _ldk_get_compiled_version(void);
3020         public static native String _ldk_get_compiled_version();
3021         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
3022         public static native String _ldk_c_bindings_get_compiled_version();
3023         // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
3024         public static native byte[] U128_le_bytes(byte[] val);
3025         // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
3026         public static native byte[] U128_new(byte[] le_bytes);
3027         // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
3028         public static native long BigEndianScalar_new(byte[] big_endian_bytes);
3029         // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
3030         public static native long Bech32Error_clone_ptr(long arg);
3031         // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
3032         public static native long Bech32Error_clone(long orig);
3033         // void Bech32Error_free(struct LDKBech32Error o);
3034         public static native void Bech32Error_free(long o);
3035         // void Transaction_free(struct LDKTransaction _res);
3036         public static native void Transaction_free(byte[] _res);
3037         // void Witness_free(struct LDKWitness _res);
3038         public static native void Witness_free(byte[] _res);
3039         // void TxIn_free(struct LDKTxIn _res);
3040         public static native void TxIn_free(long _res);
3041         // struct LDKTxIn TxIn_new(struct LDKWitness witness, struct LDKCVec_u8Z script_sig, uint32_t sequence, struct LDKThirtyTwoBytes previous_txid, uint32_t previous_vout);
3042         public static native long TxIn_new(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout);
3043         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
3044         public static native long TxOut_new(byte[] script_pubkey, long value);
3045         // void TxOut_free(struct LDKTxOut _res);
3046         public static native void TxOut_free(long _res);
3047         // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
3048         public static native long TxOut_clone_ptr(long arg);
3049         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
3050         public static native long TxOut_clone(long orig);
3051         // void Str_free(struct LDKStr _res);
3052         public static native void Str_free(String _res);
3053         // struct LDKCOption_DurationZ COption_DurationZ_some(uint64_t o);
3054         public static native long COption_DurationZ_some(long o);
3055         // struct LDKCOption_DurationZ COption_DurationZ_none(void);
3056         public static native long COption_DurationZ_none();
3057         // void COption_DurationZ_free(struct LDKCOption_DurationZ _res);
3058         public static native void COption_DurationZ_free(long _res);
3059         // uint64_t COption_DurationZ_clone_ptr(LDKCOption_DurationZ *NONNULL_PTR arg);
3060         public static native long COption_DurationZ_clone_ptr(long arg);
3061         // struct LDKCOption_DurationZ COption_DurationZ_clone(const struct LDKCOption_DurationZ *NONNULL_PTR orig);
3062         public static native long COption_DurationZ_clone(long orig);
3063         // void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res);
3064         public static native void CVec_BlindedPathZ_free(long[] _res);
3065         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
3066         public static native long COption_u64Z_some(long o);
3067         // struct LDKCOption_u64Z COption_u64Z_none(void);
3068         public static native long COption_u64Z_none();
3069         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
3070         public static native void COption_u64Z_free(long _res);
3071         // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
3072         public static native long COption_u64Z_clone_ptr(long arg);
3073         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
3074         public static native long COption_u64Z_clone(long orig);
3075         // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o);
3076         public static native long CResult_RefundBolt12ParseErrorZ_ok(long o);
3077         // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
3078         public static native long CResult_RefundBolt12ParseErrorZ_err(long e);
3079         // bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o);
3080         public static native boolean CResult_RefundBolt12ParseErrorZ_is_ok(long o);
3081         // void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res);
3082         public static native void CResult_RefundBolt12ParseErrorZ_free(long _res);
3083         // uint64_t CResult_RefundBolt12ParseErrorZ_clone_ptr(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR arg);
3084         public static native long CResult_RefundBolt12ParseErrorZ_clone_ptr(long arg);
3085         // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig);
3086         public static native long CResult_RefundBolt12ParseErrorZ_clone(long orig);
3087         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
3088         public static native long CResult_NoneAPIErrorZ_ok();
3089         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
3090         public static native long CResult_NoneAPIErrorZ_err(long e);
3091         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
3092         public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
3093         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
3094         public static native void CResult_NoneAPIErrorZ_free(long _res);
3095         // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
3096         public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
3097         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
3098         public static native long CResult_NoneAPIErrorZ_clone(long orig);
3099         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
3100         public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
3101         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
3102         public static native void CVec_APIErrorZ_free(long[] _res);
3103         // struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_some(struct LDKThirtyTwoBytes o);
3104         public static native long COption_PaymentSecretZ_some(byte[] o);
3105         // struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_none(void);
3106         public static native long COption_PaymentSecretZ_none();
3107         // void COption_PaymentSecretZ_free(struct LDKCOption_PaymentSecretZ _res);
3108         public static native void COption_PaymentSecretZ_free(long _res);
3109         // uint64_t COption_PaymentSecretZ_clone_ptr(LDKCOption_PaymentSecretZ *NONNULL_PTR arg);
3110         public static native long COption_PaymentSecretZ_clone_ptr(long arg);
3111         // struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_clone(const struct LDKCOption_PaymentSecretZ *NONNULL_PTR orig);
3112         public static native long COption_PaymentSecretZ_clone(long orig);
3113         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
3114         public static native void CVec_u8Z_free(byte[] _res);
3115         // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o);
3116         public static native long COption_CVec_u8ZZ_some(byte[] o);
3117         // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_none(void);
3118         public static native long COption_CVec_u8ZZ_none();
3119         // void COption_CVec_u8ZZ_free(struct LDKCOption_CVec_u8ZZ _res);
3120         public static native void COption_CVec_u8ZZ_free(long _res);
3121         // uint64_t COption_CVec_u8ZZ_clone_ptr(LDKCOption_CVec_u8ZZ *NONNULL_PTR arg);
3122         public static native long COption_CVec_u8ZZ_clone_ptr(long arg);
3123         // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_clone(const struct LDKCOption_CVec_u8ZZ *NONNULL_PTR orig);
3124         public static native long COption_CVec_u8ZZ_clone(long orig);
3125         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_ok(struct LDKRecipientOnionFields o);
3126         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_ok(long o);
3127         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_err(struct LDKDecodeError e);
3128         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_err(long e);
3129         // bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR o);
3130         public static native boolean CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(long o);
3131         // void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOnionFieldsDecodeErrorZ _res);
3132         public static native void CResult_RecipientOnionFieldsDecodeErrorZ_free(long _res);
3133         // uint64_t CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR arg);
3134         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(long arg);
3135         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig);
3136         public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone(long orig);
3137         // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_ok(struct LDKBlindedPayInfo o);
3138         public static native long CResult_BlindedPayInfoDecodeErrorZ_ok(long o);
3139         // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_err(struct LDKDecodeError e);
3140         public static native long CResult_BlindedPayInfoDecodeErrorZ_err(long e);
3141         // bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR o);
3142         public static native boolean CResult_BlindedPayInfoDecodeErrorZ_is_ok(long o);
3143         // void CResult_BlindedPayInfoDecodeErrorZ_free(struct LDKCResult_BlindedPayInfoDecodeErrorZ _res);
3144         public static native void CResult_BlindedPayInfoDecodeErrorZ_free(long _res);
3145         // uint64_t CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR arg);
3146         public static native long CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(long arg);
3147         // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_clone(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR orig);
3148         public static native long CResult_BlindedPayInfoDecodeErrorZ_clone(long orig);
3149         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
3150         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3151         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3152         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
3153         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3154         public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3155         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
3156         public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3157         // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3158         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3159         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3160         public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3161         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
3162         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3163         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3164         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
3165         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3166         public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3167         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
3168         public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3169         // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3170         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3171         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3172         public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3173         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
3174         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
3175         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3176         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
3177         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3178         public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
3179         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
3180         public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
3181         // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3182         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3183         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3184         public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
3185         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
3186         public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
3187         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
3188         public static native void CVec_TxOutZ_free(long[] _res);
3189         // struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_some(uint32_t o);
3190         public static native long COption_PackedLockTimeZ_some(int o);
3191         // struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_none(void);
3192         public static native long COption_PackedLockTimeZ_none();
3193         // void COption_PackedLockTimeZ_free(struct LDKCOption_PackedLockTimeZ _res);
3194         public static native void COption_PackedLockTimeZ_free(long _res);
3195         // uint64_t COption_PackedLockTimeZ_clone_ptr(LDKCOption_PackedLockTimeZ *NONNULL_PTR arg);
3196         public static native long COption_PackedLockTimeZ_clone_ptr(long arg);
3197         // struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_clone(const struct LDKCOption_PackedLockTimeZ *NONNULL_PTR orig);
3198         public static native long COption_PackedLockTimeZ_clone(long orig);
3199         // uint64_t C2Tuple_PartiallySignedTransactionusizeZ_clone_ptr(LDKC2Tuple_PartiallySignedTransactionusizeZ *NONNULL_PTR arg);
3200         public static native long C2Tuple_PartiallySignedTransactionusizeZ_clone_ptr(long arg);
3201         // struct LDKC2Tuple_PartiallySignedTransactionusizeZ C2Tuple_PartiallySignedTransactionusizeZ_clone(const struct LDKC2Tuple_PartiallySignedTransactionusizeZ *NONNULL_PTR orig);
3202         public static native long C2Tuple_PartiallySignedTransactionusizeZ_clone(long orig);
3203         // struct LDKC2Tuple_PartiallySignedTransactionusizeZ C2Tuple_PartiallySignedTransactionusizeZ_new(struct LDKCVec_u8Z a, uintptr_t b);
3204         public static native long C2Tuple_PartiallySignedTransactionusizeZ_new(byte[] a, long b);
3205         // void C2Tuple_PartiallySignedTransactionusizeZ_free(struct LDKC2Tuple_PartiallySignedTransactionusizeZ _res);
3206         public static native void C2Tuple_PartiallySignedTransactionusizeZ_free(long _res);
3207         // struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_ok(struct LDKC2Tuple_PartiallySignedTransactionusizeZ o);
3208         public static native long CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_ok(long o);
3209         // struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_err(void);
3210         public static native long CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_err();
3211         // bool CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR o);
3212         public static native boolean CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_is_ok(long o);
3213         // void CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_free(struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ _res);
3214         public static native void CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_free(long _res);
3215         // uint64_t CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_clone_ptr(LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR arg);
3216         public static native long CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_clone_ptr(long arg);
3217         // struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_clone(const struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR orig);
3218         public static native long CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_clone(long orig);
3219         // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
3220         public static native void CVec_PaymentPreimageZ_free(byte[][] _res);
3221         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
3222         public static native long CResult_NoneNoneZ_ok();
3223         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
3224         public static native long CResult_NoneNoneZ_err();
3225         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
3226         public static native boolean CResult_NoneNoneZ_is_ok(long o);
3227         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
3228         public static native void CResult_NoneNoneZ_free(long _res);
3229         // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
3230         public static native long CResult_NoneNoneZ_clone_ptr(long arg);
3231         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
3232         public static native long CResult_NoneNoneZ_clone(long orig);
3233         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
3234         public static native void CVec_SignatureZ_free(byte[][] _res);
3235         // uint64_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
3236         public static native long C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(long arg);
3237         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
3238         public static native long C2Tuple_SignatureCVec_SignatureZZ_clone(long orig);
3239         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
3240         public static native long C2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
3241         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
3242         public static native void C2Tuple_SignatureCVec_SignatureZZ_free(long _res);
3243         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
3244         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(long o);
3245         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
3246         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
3247         // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
3248         public static native boolean CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(long o);
3249         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
3250         public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(long _res);
3251         // uint64_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
3252         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(long arg);
3253         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
3254         public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(long orig);
3255         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
3256         public static native long CResult_SignatureNoneZ_ok(byte[] o);
3257         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
3258         public static native long CResult_SignatureNoneZ_err();
3259         // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
3260         public static native boolean CResult_SignatureNoneZ_is_ok(long o);
3261         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
3262         public static native void CResult_SignatureNoneZ_free(long _res);
3263         // uint64_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
3264         public static native long CResult_SignatureNoneZ_clone_ptr(long arg);
3265         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
3266         public static native long CResult_SignatureNoneZ_clone(long orig);
3267         // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
3268         public static native long CResult_PublicKeyNoneZ_ok(byte[] o);
3269         // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
3270         public static native long CResult_PublicKeyNoneZ_err();
3271         // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
3272         public static native boolean CResult_PublicKeyNoneZ_is_ok(long o);
3273         // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
3274         public static native void CResult_PublicKeyNoneZ_free(long _res);
3275         // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
3276         public static native long CResult_PublicKeyNoneZ_clone_ptr(long arg);
3277         // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
3278         public static native long CResult_PublicKeyNoneZ_clone(long orig);
3279         // struct LDKCOption_ScalarZ COption_ScalarZ_some(struct LDKBigEndianScalar o);
3280         public static native long COption_ScalarZ_some(long o);
3281         // struct LDKCOption_ScalarZ COption_ScalarZ_none(void);
3282         public static native long COption_ScalarZ_none();
3283         // void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res);
3284         public static native void COption_ScalarZ_free(long _res);
3285         // uint64_t COption_ScalarZ_clone_ptr(LDKCOption_ScalarZ *NONNULL_PTR arg);
3286         public static native long COption_ScalarZ_clone_ptr(long arg);
3287         // struct LDKCOption_ScalarZ COption_ScalarZ_clone(const struct LDKCOption_ScalarZ *NONNULL_PTR orig);
3288         public static native long COption_ScalarZ_clone(long orig);
3289         // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
3290         public static native long CResult_SharedSecretNoneZ_ok(byte[] o);
3291         // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_err(void);
3292         public static native long CResult_SharedSecretNoneZ_err();
3293         // bool CResult_SharedSecretNoneZ_is_ok(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR o);
3294         public static native boolean CResult_SharedSecretNoneZ_is_ok(long o);
3295         // void CResult_SharedSecretNoneZ_free(struct LDKCResult_SharedSecretNoneZ _res);
3296         public static native void CResult_SharedSecretNoneZ_free(long _res);
3297         // uint64_t CResult_SharedSecretNoneZ_clone_ptr(LDKCResult_SharedSecretNoneZ *NONNULL_PTR arg);
3298         public static native long CResult_SharedSecretNoneZ_clone_ptr(long arg);
3299         // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_clone(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR orig);
3300         public static native long CResult_SharedSecretNoneZ_clone(long orig);
3301         // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
3302         public static native void CVec_U5Z_free(byte[] _res);
3303         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
3304         public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
3305         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
3306         public static native long CResult_RecoverableSignatureNoneZ_err();
3307         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
3308         public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
3309         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
3310         public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
3311         // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
3312         public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
3313         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
3314         public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
3315         // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
3316         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long o);
3317         // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
3318         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long e);
3319         // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
3320         public static native boolean CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long o);
3321         // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
3322         public static native void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long _res);
3323         // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
3324         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long arg);
3325         // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
3326         public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long orig);
3327         // struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_ok(struct LDKCVec_u8Z o);
3328         public static native long CResult_ScriptNoneZ_ok(byte[] o);
3329         // struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_err(void);
3330         public static native long CResult_ScriptNoneZ_err();
3331         // bool CResult_ScriptNoneZ_is_ok(const struct LDKCResult_ScriptNoneZ *NONNULL_PTR o);
3332         public static native boolean CResult_ScriptNoneZ_is_ok(long o);
3333         // void CResult_ScriptNoneZ_free(struct LDKCResult_ScriptNoneZ _res);
3334         public static native void CResult_ScriptNoneZ_free(long _res);
3335         // uint64_t CResult_ScriptNoneZ_clone_ptr(LDKCResult_ScriptNoneZ *NONNULL_PTR arg);
3336         public static native long CResult_ScriptNoneZ_clone_ptr(long arg);
3337         // struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_clone(const struct LDKCResult_ScriptNoneZ *NONNULL_PTR orig);
3338         public static native long CResult_ScriptNoneZ_clone(long orig);
3339         // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_ok(struct LDKShutdownScript o);
3340         public static native long CResult_ShutdownScriptNoneZ_ok(long o);
3341         // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_err(void);
3342         public static native long CResult_ShutdownScriptNoneZ_err();
3343         // bool CResult_ShutdownScriptNoneZ_is_ok(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR o);
3344         public static native boolean CResult_ShutdownScriptNoneZ_is_ok(long o);
3345         // void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res);
3346         public static native void CResult_ShutdownScriptNoneZ_free(long _res);
3347         // uint64_t CResult_ShutdownScriptNoneZ_clone_ptr(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR arg);
3348         public static native long CResult_ShutdownScriptNoneZ_clone_ptr(long arg);
3349         // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig);
3350         public static native long CResult_ShutdownScriptNoneZ_clone(long orig);
3351         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
3352         public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
3353         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
3354         public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
3355         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
3356         public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
3357         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
3358         public static native boolean CResult_CVec_CVec_u8ZZNoneZ_is_ok(long o);
3359         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
3360         public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
3361         // uint64_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
3362         public static native long CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(long arg);
3363         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
3364         public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
3365         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
3366         public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
3367         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
3368         public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
3369         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
3370         public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
3371         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
3372         public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
3373         // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
3374         public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
3375         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
3376         public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
3377         // struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_ok(struct LDKCVec_u8Z o);
3378         public static native long CResult_PartiallySignedTransactionNoneZ_ok(byte[] o);
3379         // struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_err(void);
3380         public static native long CResult_PartiallySignedTransactionNoneZ_err();
3381         // bool CResult_PartiallySignedTransactionNoneZ_is_ok(const struct LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR o);
3382         public static native boolean CResult_PartiallySignedTransactionNoneZ_is_ok(long o);
3383         // void CResult_PartiallySignedTransactionNoneZ_free(struct LDKCResult_PartiallySignedTransactionNoneZ _res);
3384         public static native void CResult_PartiallySignedTransactionNoneZ_free(long _res);
3385         // uint64_t CResult_PartiallySignedTransactionNoneZ_clone_ptr(LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR arg);
3386         public static native long CResult_PartiallySignedTransactionNoneZ_clone_ptr(long arg);
3387         // struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_clone(const struct LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR orig);
3388         public static native long CResult_PartiallySignedTransactionNoneZ_clone(long orig);
3389         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
3390         public static native long CResult_TransactionNoneZ_ok(byte[] o);
3391         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
3392         public static native long CResult_TransactionNoneZ_err();
3393         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
3394         public static native boolean CResult_TransactionNoneZ_is_ok(long o);
3395         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
3396         public static native void CResult_TransactionNoneZ_free(long _res);
3397         // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
3398         public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
3399         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
3400         public static native long CResult_TransactionNoneZ_clone(long orig);
3401         // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o);
3402         public static native long COption_WriteableScoreZ_some(long o);
3403         // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void);
3404         public static native long COption_WriteableScoreZ_none();
3405         // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res);
3406         public static native void COption_WriteableScoreZ_free(long _res);
3407         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
3408         public static native long CResult_NoneErrorZ_ok();
3409         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
3410         public static native long CResult_NoneErrorZ_err(IOError e);
3411         // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
3412         public static native boolean CResult_NoneErrorZ_is_ok(long o);
3413         // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
3414         public static native void CResult_NoneErrorZ_free(long _res);
3415         // uint64_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
3416         public static native long CResult_NoneErrorZ_clone_ptr(long arg);
3417         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
3418         public static native long CResult_NoneErrorZ_clone(long orig);
3419         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
3420         public static native void CVec_ChannelDetailsZ_free(long[] _res);
3421         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
3422         public static native long CResult_RouteLightningErrorZ_ok(long o);
3423         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
3424         public static native long CResult_RouteLightningErrorZ_err(long e);
3425         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
3426         public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
3427         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
3428         public static native void CResult_RouteLightningErrorZ_free(long _res);
3429         // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
3430         public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
3431         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
3432         public static native long CResult_RouteLightningErrorZ_clone(long orig);
3433         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
3434         public static native long CResult_InFlightHtlcsDecodeErrorZ_ok(long o);
3435         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
3436         public static native long CResult_InFlightHtlcsDecodeErrorZ_err(long e);
3437         // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
3438         public static native boolean CResult_InFlightHtlcsDecodeErrorZ_is_ok(long o);
3439         // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
3440         public static native void CResult_InFlightHtlcsDecodeErrorZ_free(long _res);
3441         // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
3442         public static native long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long arg);
3443         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
3444         public static native long CResult_InFlightHtlcsDecodeErrorZ_clone(long orig);
3445         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
3446         public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
3447         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
3448         public static native long CResult_RouteHopDecodeErrorZ_err(long e);
3449         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
3450         public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
3451         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
3452         public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
3453         // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
3454         public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
3455         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
3456         public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
3457         // void CVec_BlindedHopZ_free(struct LDKCVec_BlindedHopZ _res);
3458         public static native void CVec_BlindedHopZ_free(long[] _res);
3459         // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_ok(struct LDKBlindedTail o);
3460         public static native long CResult_BlindedTailDecodeErrorZ_ok(long o);
3461         // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_err(struct LDKDecodeError e);
3462         public static native long CResult_BlindedTailDecodeErrorZ_err(long e);
3463         // bool CResult_BlindedTailDecodeErrorZ_is_ok(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR o);
3464         public static native boolean CResult_BlindedTailDecodeErrorZ_is_ok(long o);
3465         // void CResult_BlindedTailDecodeErrorZ_free(struct LDKCResult_BlindedTailDecodeErrorZ _res);
3466         public static native void CResult_BlindedTailDecodeErrorZ_free(long _res);
3467         // uint64_t CResult_BlindedTailDecodeErrorZ_clone_ptr(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR arg);
3468         public static native long CResult_BlindedTailDecodeErrorZ_clone_ptr(long arg);
3469         // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR orig);
3470         public static native long CResult_BlindedTailDecodeErrorZ_clone(long orig);
3471         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
3472         public static native void CVec_RouteHopZ_free(long[] _res);
3473         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
3474         public static native long COption_u32Z_some(int o);
3475         // struct LDKCOption_u32Z COption_u32Z_none(void);
3476         public static native long COption_u32Z_none();
3477         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
3478         public static native void COption_u32Z_free(long _res);
3479         // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
3480         public static native long COption_u32Z_clone_ptr(long arg);
3481         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
3482         public static native long COption_u32Z_clone(long orig);
3483         // void CVec_PathZ_free(struct LDKCVec_PathZ _res);
3484         public static native void CVec_PathZ_free(long[] _res);
3485         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
3486         public static native long CResult_RouteDecodeErrorZ_ok(long o);
3487         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
3488         public static native long CResult_RouteDecodeErrorZ_err(long e);
3489         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
3490         public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
3491         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
3492         public static native void CResult_RouteDecodeErrorZ_free(long _res);
3493         // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
3494         public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
3495         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
3496         public static native long CResult_RouteDecodeErrorZ_clone(long orig);
3497         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
3498         public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
3499         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
3500         public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
3501         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
3502         public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
3503         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
3504         public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
3505         // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
3506         public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
3507         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
3508         public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
3509         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
3510         public static native void CVec_u64Z_free(long[] _res);
3511         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
3512         public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
3513         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
3514         public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
3515         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
3516         public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
3517         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
3518         public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
3519         // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
3520         public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
3521         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
3522         public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
3523         // uint64_t C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR arg);
3524         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(long arg);
3525         // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_clone(const struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR orig);
3526         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone(long orig);
3527         // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_new(struct LDKBlindedPayInfo a, struct LDKBlindedPath b);
3528         public static native long C2Tuple_BlindedPayInfoBlindedPathZ_new(long a, long b);
3529         // void C2Tuple_BlindedPayInfoBlindedPathZ_free(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ _res);
3530         public static native void C2Tuple_BlindedPayInfoBlindedPathZ_free(long _res);
3531         // void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ _res);
3532         public static native void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(long[] _res);
3533         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
3534         public static native void CVec_RouteHintZ_free(long[] _res);
3535         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
3536         public static native void CVec_RouteHintHopZ_free(long[] _res);
3537         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
3538         public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
3539         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
3540         public static native long CResult_RouteHintDecodeErrorZ_err(long e);
3541         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
3542         public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
3543         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
3544         public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
3545         // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
3546         public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
3547         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
3548         public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
3549         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
3550         public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
3551         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
3552         public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
3553         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
3554         public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
3555         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
3556         public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
3557         // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
3558         public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
3559         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
3560         public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
3561         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
3562         public static native void CVec_PublicKeyZ_free(byte[][] _res);
3563         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
3564         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
3565         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
3566         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
3567         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
3568         public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
3569         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
3570         public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
3571         // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
3572         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
3573         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
3574         public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
3575         // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
3576         public static native void CVec_NodeIdZ_free(long[] _res);
3577         // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
3578         public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
3579         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
3580         public static native long C2Tuple_u64u64Z_clone(long orig);
3581         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
3582         public static native long C2Tuple_u64u64Z_new(long a, long b);
3583         // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
3584         public static native void C2Tuple_u64u64Z_free(long _res);
3585         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
3586         public static native long COption_C2Tuple_u64u64ZZ_some(long o);
3587         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
3588         public static native long COption_C2Tuple_u64u64ZZ_none();
3589         // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
3590         public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
3591         // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
3592         public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
3593         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
3594         public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
3595         // uint64_t C2Tuple_Z_clone_ptr(LDKC2Tuple_Z *NONNULL_PTR arg);
3596         public static native long C2Tuple_Z_clone_ptr(long arg);
3597         // struct LDKC2Tuple_Z C2Tuple_Z_clone(const struct LDKC2Tuple_Z *NONNULL_PTR orig);
3598         public static native long C2Tuple_Z_clone(long orig);
3599         // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
3600         public static native long C2Tuple_Z_new(short[] a, short[] b);
3601         // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
3602         public static native void C2Tuple_Z_free(long _res);
3603         // uint64_t C2Tuple__u168_u168Z_clone_ptr(LDKC2Tuple__u168_u168Z *NONNULL_PTR arg);
3604         public static native long C2Tuple__u168_u168Z_clone_ptr(long arg);
3605         // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_clone(const struct LDKC2Tuple__u168_u168Z *NONNULL_PTR orig);
3606         public static native long C2Tuple__u168_u168Z_clone(long orig);
3607         // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
3608         public static native long C2Tuple__u168_u168Z_new(short[] a, short[] b);
3609         // void C2Tuple__u168_u168Z_free(struct LDKC2Tuple__u168_u168Z _res);
3610         public static native void C2Tuple__u168_u168Z_free(long _res);
3611         // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_some(struct LDKC2Tuple__u168_u168Z o);
3612         public static native long COption_C2Tuple_EightU16sEightU16sZZ_some(long o);
3613         // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_none(void);
3614         public static native long COption_C2Tuple_EightU16sEightU16sZZ_none();
3615         // void COption_C2Tuple_EightU16sEightU16sZZ_free(struct LDKCOption_C2Tuple_EightU16sEightU16sZZ _res);
3616         public static native void COption_C2Tuple_EightU16sEightU16sZZ_free(long _res);
3617         // uint64_t COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR arg);
3618         public static native long COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(long arg);
3619         // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_clone(const struct LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR orig);
3620         public static native long COption_C2Tuple_EightU16sEightU16sZZ_clone(long orig);
3621         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
3622         public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
3623         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
3624         public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
3625         // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
3626         public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
3627         // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
3628         public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
3629         // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
3630         public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
3631         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
3632         public static native long C2Tuple_usizeTransactionZ_clone(long orig);
3633         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
3634         public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
3635         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
3636         public static native void C2Tuple_usizeTransactionZ_free(long _res);
3637         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
3638         public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
3639         // struct LDKCOption_BlockHashZ COption_BlockHashZ_some(struct LDKThirtyTwoBytes o);
3640         public static native long COption_BlockHashZ_some(byte[] o);
3641         // struct LDKCOption_BlockHashZ COption_BlockHashZ_none(void);
3642         public static native long COption_BlockHashZ_none();
3643         // void COption_BlockHashZ_free(struct LDKCOption_BlockHashZ _res);
3644         public static native void COption_BlockHashZ_free(long _res);
3645         // uint64_t COption_BlockHashZ_clone_ptr(LDKCOption_BlockHashZ *NONNULL_PTR arg);
3646         public static native long COption_BlockHashZ_clone_ptr(long arg);
3647         // struct LDKCOption_BlockHashZ COption_BlockHashZ_clone(const struct LDKCOption_BlockHashZ *NONNULL_PTR orig);
3648         public static native long COption_BlockHashZ_clone(long orig);
3649         // uint64_t C2Tuple_TxidCOption_BlockHashZZ_clone_ptr(LDKC2Tuple_TxidCOption_BlockHashZZ *NONNULL_PTR arg);
3650         public static native long C2Tuple_TxidCOption_BlockHashZZ_clone_ptr(long arg);
3651         // struct LDKC2Tuple_TxidCOption_BlockHashZZ C2Tuple_TxidCOption_BlockHashZZ_clone(const struct LDKC2Tuple_TxidCOption_BlockHashZZ *NONNULL_PTR orig);
3652         public static native long C2Tuple_TxidCOption_BlockHashZZ_clone(long orig);
3653         // struct LDKC2Tuple_TxidCOption_BlockHashZZ C2Tuple_TxidCOption_BlockHashZZ_new(struct LDKThirtyTwoBytes a, struct LDKCOption_BlockHashZ b);
3654         public static native long C2Tuple_TxidCOption_BlockHashZZ_new(byte[] a, long b);
3655         // void C2Tuple_TxidCOption_BlockHashZZ_free(struct LDKC2Tuple_TxidCOption_BlockHashZZ _res);
3656         public static native void C2Tuple_TxidCOption_BlockHashZZ_free(long _res);
3657         // void CVec_C2Tuple_TxidCOption_BlockHashZZZ_free(struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ _res);
3658         public static native void CVec_C2Tuple_TxidCOption_BlockHashZZZ_free(long[] _res);
3659         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
3660         public static native void CVec_MonitorEventZ_free(long[] _res);
3661         // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
3662         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(long arg);
3663         // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
3664         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(long orig);
3665         // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
3666         public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(long a, long[] b, byte[] c);
3667         // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
3668         public static native void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(long _res);
3669         // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
3670         public static native void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(long[] _res);
3671         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
3672         public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
3673         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3674         public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
3675         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
3676         public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
3677         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
3678         public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
3679         // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
3680         public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
3681         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
3682         public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
3683         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
3684         public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
3685         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3686         public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
3687         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
3688         public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
3689         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
3690         public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
3691         // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
3692         public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
3693         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
3694         public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
3695         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
3696         public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
3697         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3698         public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
3699         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
3700         public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
3701         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
3702         public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
3703         // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
3704         public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
3705         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
3706         public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
3707         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt11InvoiceFeatures o);
3708         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(long o);
3709         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3710         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(long e);
3711         // bool CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
3712         public static native boolean CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(long o);
3713         // void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ _res);
3714         public static native void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(long _res);
3715         // uint64_t CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
3716         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
3717         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
3718         public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(long orig);
3719         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt12InvoiceFeatures o);
3720         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(long o);
3721         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3722         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(long e);
3723         // bool CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
3724         public static native boolean CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(long o);
3725         // void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ _res);
3726         public static native void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(long _res);
3727         // uint64_t CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
3728         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
3729         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
3730         public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(long orig);
3731         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
3732         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long o);
3733         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3734         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_err(long e);
3735         // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
3736         public static native boolean CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long o);
3737         // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
3738         public static native void CResult_BlindedHopFeaturesDecodeErrorZ_free(long _res);
3739         // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
3740         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long arg);
3741         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
3742         public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long orig);
3743         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
3744         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
3745         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3746         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
3747         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
3748         public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
3749         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
3750         public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
3751         // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
3752         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
3753         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
3754         public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
3755         // void CVec_ChainHashZ_free(struct LDKCVec_ChainHashZ _res);
3756         public static native void CVec_ChainHashZ_free(byte[][] _res);
3757         // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_ok(struct LDKOffer o);
3758         public static native long CResult_OfferBolt12ParseErrorZ_ok(long o);
3759         // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
3760         public static native long CResult_OfferBolt12ParseErrorZ_err(long e);
3761         // bool CResult_OfferBolt12ParseErrorZ_is_ok(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR o);
3762         public static native boolean CResult_OfferBolt12ParseErrorZ_is_ok(long o);
3763         // void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseErrorZ _res);
3764         public static native void CResult_OfferBolt12ParseErrorZ_free(long _res);
3765         // uint64_t CResult_OfferBolt12ParseErrorZ_clone_ptr(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR arg);
3766         public static native long CResult_OfferBolt12ParseErrorZ_clone_ptr(long arg);
3767         // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig);
3768         public static native long CResult_OfferBolt12ParseErrorZ_clone(long orig);
3769         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
3770         public static native long CResult_PublicKeyErrorZ_ok(byte[] o);
3771         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
3772         public static native long CResult_PublicKeyErrorZ_err(Secp256k1Error e);
3773         // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
3774         public static native boolean CResult_PublicKeyErrorZ_is_ok(long o);
3775         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
3776         public static native void CResult_PublicKeyErrorZ_free(long _res);
3777         // uint64_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
3778         public static native long CResult_PublicKeyErrorZ_clone_ptr(long arg);
3779         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
3780         public static native long CResult_PublicKeyErrorZ_clone(long orig);
3781         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
3782         public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
3783         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
3784         public static native long CResult_NodeIdDecodeErrorZ_err(long e);
3785         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
3786         public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
3787         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
3788         public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
3789         // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
3790         public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
3791         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
3792         public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
3793         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
3794         public static native long COption_NetworkUpdateZ_some(long o);
3795         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
3796         public static native long COption_NetworkUpdateZ_none();
3797         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
3798         public static native void COption_NetworkUpdateZ_free(long _res);
3799         // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
3800         public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
3801         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
3802         public static native long COption_NetworkUpdateZ_clone(long orig);
3803         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
3804         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
3805         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
3806         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
3807         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
3808         public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
3809         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
3810         public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
3811         // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
3812         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
3813         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
3814         public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
3815         // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
3816         public static native long COption_UtxoLookupZ_some(long o);
3817         // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
3818         public static native long COption_UtxoLookupZ_none();
3819         // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
3820         public static native void COption_UtxoLookupZ_free(long _res);
3821         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
3822         public static native long CResult_NoneLightningErrorZ_ok();
3823         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
3824         public static native long CResult_NoneLightningErrorZ_err(long e);
3825         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
3826         public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
3827         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
3828         public static native void CResult_NoneLightningErrorZ_free(long _res);
3829         // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
3830         public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
3831         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
3832         public static native long CResult_NoneLightningErrorZ_clone(long orig);
3833         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
3834         public static native long CResult_boolLightningErrorZ_ok(boolean o);
3835         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
3836         public static native long CResult_boolLightningErrorZ_err(long e);
3837         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
3838         public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
3839         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
3840         public static native void CResult_boolLightningErrorZ_free(long _res);
3841         // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
3842         public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
3843         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
3844         public static native long CResult_boolLightningErrorZ_clone(long orig);
3845         // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
3846         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
3847         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
3848         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
3849         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
3850         public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
3851         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
3852         public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
3853         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
3854         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long o);
3855         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
3856         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
3857         // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
3858         public static native void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long _res);
3859         // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
3860         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long arg);
3861         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
3862         public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long orig);
3863         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
3864         public static native void CVec_MessageSendEventZ_free(long[] _res);
3865         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
3866         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
3867         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
3868         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
3869         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
3870         public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
3871         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
3872         public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
3873         // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
3874         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
3875         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
3876         public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
3877         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
3878         public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
3879         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
3880         public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
3881         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
3882         public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
3883         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
3884         public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
3885         // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
3886         public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
3887         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
3888         public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
3889         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
3890         public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
3891         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
3892         public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
3893         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
3894         public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
3895         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
3896         public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
3897         // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
3898         public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
3899         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
3900         public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
3901         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
3902         public static native void CVec_NetAddressZ_free(long[] _res);
3903         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
3904         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
3905         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
3906         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
3907         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
3908         public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
3909         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
3910         public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
3911         // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
3912         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
3913         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
3914         public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
3915         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
3916         public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
3917         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
3918         public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
3919         // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
3920         public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
3921         // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
3922         public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
3923         // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
3924         public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
3925         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
3926         public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
3927         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
3928         public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
3929         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
3930         public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
3931         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
3932         public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
3933         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
3934         public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
3935         // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
3936         public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
3937         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
3938         public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
3939         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
3940         public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
3941         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
3942         public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
3943         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
3944         public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
3945         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
3946         public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
3947         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
3948         public static native long COption_CVec_NetAddressZZ_some(long[] o);
3949         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
3950         public static native long COption_CVec_NetAddressZZ_none();
3951         // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
3952         public static native void COption_CVec_NetAddressZZ_free(long _res);
3953         // uint64_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
3954         public static native long COption_CVec_NetAddressZZ_clone_ptr(long arg);
3955         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
3956         public static native long COption_CVec_NetAddressZZ_clone(long orig);
3957         // struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_some(struct LDKThirtyTwoBytes o);
3958         public static native long COption_PaymentPreimageZ_some(byte[] o);
3959         // struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_none(void);
3960         public static native long COption_PaymentPreimageZ_none();
3961         // void COption_PaymentPreimageZ_free(struct LDKCOption_PaymentPreimageZ _res);
3962         public static native void COption_PaymentPreimageZ_free(long _res);
3963         // uint64_t COption_PaymentPreimageZ_clone_ptr(LDKCOption_PaymentPreimageZ *NONNULL_PTR arg);
3964         public static native long COption_PaymentPreimageZ_clone_ptr(long arg);
3965         // struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_clone(const struct LDKCOption_PaymentPreimageZ *NONNULL_PTR orig);
3966         public static native long COption_PaymentPreimageZ_clone(long orig);
3967         // void CVec_HTLCOutputInCommitmentZ_free(struct LDKCVec_HTLCOutputInCommitmentZ _res);
3968         public static native void CVec_HTLCOutputInCommitmentZ_free(long[] _res);
3969         // void CVec_HTLCDescriptorZ_free(struct LDKCVec_HTLCDescriptorZ _res);
3970         public static native void CVec_HTLCDescriptorZ_free(long[] _res);
3971         // void CVec_UtxoZ_free(struct LDKCVec_UtxoZ _res);
3972         public static native void CVec_UtxoZ_free(long[] _res);
3973         // struct LDKCOption_TxOutZ COption_TxOutZ_some(struct LDKTxOut o);
3974         public static native long COption_TxOutZ_some(long o);
3975         // struct LDKCOption_TxOutZ COption_TxOutZ_none(void);
3976         public static native long COption_TxOutZ_none();
3977         // void COption_TxOutZ_free(struct LDKCOption_TxOutZ _res);
3978         public static native void COption_TxOutZ_free(long _res);
3979         // uint64_t COption_TxOutZ_clone_ptr(LDKCOption_TxOutZ *NONNULL_PTR arg);
3980         public static native long COption_TxOutZ_clone_ptr(long arg);
3981         // struct LDKCOption_TxOutZ COption_TxOutZ_clone(const struct LDKCOption_TxOutZ *NONNULL_PTR orig);
3982         public static native long COption_TxOutZ_clone(long orig);
3983         // void CVec_InputZ_free(struct LDKCVec_InputZ _res);
3984         public static native void CVec_InputZ_free(long[] _res);
3985         // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_ok(struct LDKCoinSelection o);
3986         public static native long CResult_CoinSelectionNoneZ_ok(long o);
3987         // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_err(void);
3988         public static native long CResult_CoinSelectionNoneZ_err();
3989         // bool CResult_CoinSelectionNoneZ_is_ok(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR o);
3990         public static native boolean CResult_CoinSelectionNoneZ_is_ok(long o);
3991         // void CResult_CoinSelectionNoneZ_free(struct LDKCResult_CoinSelectionNoneZ _res);
3992         public static native void CResult_CoinSelectionNoneZ_free(long _res);
3993         // uint64_t CResult_CoinSelectionNoneZ_clone_ptr(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR arg);
3994         public static native long CResult_CoinSelectionNoneZ_clone_ptr(long arg);
3995         // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_clone(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR orig);
3996         public static native long CResult_CoinSelectionNoneZ_clone(long orig);
3997         // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_ok(struct LDKCVec_UtxoZ o);
3998         public static native long CResult_CVec_UtxoZNoneZ_ok(long[] o);
3999         // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_err(void);
4000         public static native long CResult_CVec_UtxoZNoneZ_err();
4001         // bool CResult_CVec_UtxoZNoneZ_is_ok(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR o);
4002         public static native boolean CResult_CVec_UtxoZNoneZ_is_ok(long o);
4003         // void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res);
4004         public static native void CResult_CVec_UtxoZNoneZ_free(long _res);
4005         // uint64_t CResult_CVec_UtxoZNoneZ_clone_ptr(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR arg);
4006         public static native long CResult_CVec_UtxoZNoneZ_clone_ptr(long arg);
4007         // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig);
4008         public static native long CResult_CVec_UtxoZNoneZ_clone(long orig);
4009         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
4010         public static native long COption_u16Z_some(short o);
4011         // struct LDKCOption_u16Z COption_u16Z_none(void);
4012         public static native long COption_u16Z_none();
4013         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
4014         public static native void COption_u16Z_free(long _res);
4015         // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
4016         public static native long COption_u16Z_clone_ptr(long arg);
4017         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
4018         public static native long COption_u16Z_clone(long orig);
4019         // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o);
4020         public static native long COption_ChannelShutdownStateZ_some(ChannelShutdownState o);
4021         // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void);
4022         public static native long COption_ChannelShutdownStateZ_none();
4023         // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res);
4024         public static native void COption_ChannelShutdownStateZ_free(long _res);
4025         // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg);
4026         public static native long COption_ChannelShutdownStateZ_clone_ptr(long arg);
4027         // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig);
4028         public static native long COption_ChannelShutdownStateZ_clone(long orig);
4029         // struct LDKCOption_PaymentHashZ COption_PaymentHashZ_some(struct LDKThirtyTwoBytes o);
4030         public static native long COption_PaymentHashZ_some(byte[] o);
4031         // struct LDKCOption_PaymentHashZ COption_PaymentHashZ_none(void);
4032         public static native long COption_PaymentHashZ_none();
4033         // void COption_PaymentHashZ_free(struct LDKCOption_PaymentHashZ _res);
4034         public static native void COption_PaymentHashZ_free(long _res);
4035         // uint64_t COption_PaymentHashZ_clone_ptr(LDKCOption_PaymentHashZ *NONNULL_PTR arg);
4036         public static native long COption_PaymentHashZ_clone_ptr(long arg);
4037         // struct LDKCOption_PaymentHashZ COption_PaymentHashZ_clone(const struct LDKCOption_PaymentHashZ *NONNULL_PTR orig);
4038         public static native long COption_PaymentHashZ_clone(long orig);
4039         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
4040         public static native long CResult__u832APIErrorZ_ok(byte[] o);
4041         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
4042         public static native long CResult__u832APIErrorZ_err(long e);
4043         // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
4044         public static native boolean CResult__u832APIErrorZ_is_ok(long o);
4045         // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
4046         public static native void CResult__u832APIErrorZ_free(long _res);
4047         // uint64_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
4048         public static native long CResult__u832APIErrorZ_clone_ptr(long arg);
4049         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
4050         public static native long CResult__u832APIErrorZ_clone(long orig);
4051         // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
4052         public static native void CVec_RecentPaymentDetailsZ_free(long[] _res);
4053         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
4054         public static native long CResult_NonePaymentSendFailureZ_ok();
4055         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4056         public static native long CResult_NonePaymentSendFailureZ_err(long e);
4057         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
4058         public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
4059         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
4060         public static native void CResult_NonePaymentSendFailureZ_free(long _res);
4061         // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
4062         public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
4063         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
4064         public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
4065         // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
4066         public static native long CResult_NoneRetryableSendFailureZ_ok();
4067         // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
4068         public static native long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure e);
4069         // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
4070         public static native boolean CResult_NoneRetryableSendFailureZ_is_ok(long o);
4071         // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
4072         public static native void CResult_NoneRetryableSendFailureZ_free(long _res);
4073         // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
4074         public static native long CResult_NoneRetryableSendFailureZ_clone_ptr(long arg);
4075         // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
4076         public static native long CResult_NoneRetryableSendFailureZ_clone(long orig);
4077         // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
4078         public static native long CResult_PaymentHashPaymentSendFailureZ_ok(byte[] o);
4079         // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4080         public static native long CResult_PaymentHashPaymentSendFailureZ_err(long e);
4081         // bool CResult_PaymentHashPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR o);
4082         public static native boolean CResult_PaymentHashPaymentSendFailureZ_is_ok(long o);
4083         // void CResult_PaymentHashPaymentSendFailureZ_free(struct LDKCResult_PaymentHashPaymentSendFailureZ _res);
4084         public static native void CResult_PaymentHashPaymentSendFailureZ_free(long _res);
4085         // uint64_t CResult_PaymentHashPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR arg);
4086         public static native long CResult_PaymentHashPaymentSendFailureZ_clone_ptr(long arg);
4087         // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_clone(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR orig);
4088         public static native long CResult_PaymentHashPaymentSendFailureZ_clone(long orig);
4089         // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
4090         public static native long CResult_PaymentHashRetryableSendFailureZ_ok(byte[] o);
4091         // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
4092         public static native long CResult_PaymentHashRetryableSendFailureZ_err(RetryableSendFailure e);
4093         // bool CResult_PaymentHashRetryableSendFailureZ_is_ok(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR o);
4094         public static native boolean CResult_PaymentHashRetryableSendFailureZ_is_ok(long o);
4095         // void CResult_PaymentHashRetryableSendFailureZ_free(struct LDKCResult_PaymentHashRetryableSendFailureZ _res);
4096         public static native void CResult_PaymentHashRetryableSendFailureZ_free(long _res);
4097         // uint64_t CResult_PaymentHashRetryableSendFailureZ_clone_ptr(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR arg);
4098         public static native long CResult_PaymentHashRetryableSendFailureZ_clone_ptr(long arg);
4099         // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_clone(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR orig);
4100         public static native long CResult_PaymentHashRetryableSendFailureZ_clone(long orig);
4101         // uint64_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
4102         public static native long C2Tuple_PaymentHashPaymentIdZ_clone_ptr(long arg);
4103         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
4104         public static native long C2Tuple_PaymentHashPaymentIdZ_clone(long orig);
4105         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
4106         public static native long C2Tuple_PaymentHashPaymentIdZ_new(byte[] a, byte[] b);
4107         // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
4108         public static native void C2Tuple_PaymentHashPaymentIdZ_free(long _res);
4109         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
4110         public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(long o);
4111         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4112         public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(long e);
4113         // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
4114         public static native boolean CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(long o);
4115         // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
4116         public static native void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(long _res);
4117         // uint64_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
4118         public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(long arg);
4119         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
4120         public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(long orig);
4121         // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
4122         public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
4123         // uint64_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
4124         public static native long C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(long arg);
4125         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
4126         public static native long C2Tuple_PaymentHashPaymentSecretZ_clone(long orig);
4127         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
4128         public static native long C2Tuple_PaymentHashPaymentSecretZ_new(byte[] a, byte[] b);
4129         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
4130         public static native void C2Tuple_PaymentHashPaymentSecretZ_free(long _res);
4131         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
4132         public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(long o);
4133         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
4134         public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
4135         // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
4136         public static native boolean CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(long o);
4137         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
4138         public static native void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(long _res);
4139         // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
4140         public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(long arg);
4141         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
4142         public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(long orig);
4143         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
4144         public static native long CResult_PaymentSecretNoneZ_ok(byte[] o);
4145         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
4146         public static native long CResult_PaymentSecretNoneZ_err();
4147         // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
4148         public static native boolean CResult_PaymentSecretNoneZ_is_ok(long o);
4149         // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
4150         public static native void CResult_PaymentSecretNoneZ_free(long _res);
4151         // uint64_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
4152         public static native long CResult_PaymentSecretNoneZ_clone_ptr(long arg);
4153         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
4154         public static native long CResult_PaymentSecretNoneZ_clone(long orig);
4155         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
4156         public static native long CResult_PaymentPreimageAPIErrorZ_ok(byte[] o);
4157         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
4158         public static native long CResult_PaymentPreimageAPIErrorZ_err(long e);
4159         // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
4160         public static native boolean CResult_PaymentPreimageAPIErrorZ_is_ok(long o);
4161         // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
4162         public static native void CResult_PaymentPreimageAPIErrorZ_free(long _res);
4163         // uint64_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
4164         public static native long CResult_PaymentPreimageAPIErrorZ_clone_ptr(long arg);
4165         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
4166         public static native long CResult_PaymentPreimageAPIErrorZ_clone(long orig);
4167         // struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_some(struct LDKCVec_ChainHashZ o);
4168         public static native long COption_CVec_ChainHashZZ_some(byte[][] o);
4169         // struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_none(void);
4170         public static native long COption_CVec_ChainHashZZ_none();
4171         // void COption_CVec_ChainHashZZ_free(struct LDKCOption_CVec_ChainHashZZ _res);
4172         public static native void COption_CVec_ChainHashZZ_free(long _res);
4173         // uint64_t COption_CVec_ChainHashZZ_clone_ptr(LDKCOption_CVec_ChainHashZZ *NONNULL_PTR arg);
4174         public static native long COption_CVec_ChainHashZZ_clone_ptr(long arg);
4175         // struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_clone(const struct LDKCOption_CVec_ChainHashZZ *NONNULL_PTR orig);
4176         public static native long COption_CVec_ChainHashZZ_clone(long orig);
4177         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
4178         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
4179         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
4180         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
4181         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
4182         public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
4183         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
4184         public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
4185         // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
4186         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
4187         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
4188         public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
4189         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
4190         public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
4191         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
4192         public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
4193         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
4194         public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
4195         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
4196         public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
4197         // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
4198         public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
4199         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
4200         public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
4201         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
4202         public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
4203         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
4204         public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
4205         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
4206         public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
4207         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
4208         public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
4209         // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
4210         public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
4211         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
4212         public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
4213         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
4214         public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
4215         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
4216         public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
4217         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
4218         public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
4219         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
4220         public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
4221         // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
4222         public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
4223         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
4224         public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
4225         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o);
4226         public static native long CResult_ChannelShutdownStateDecodeErrorZ_ok(ChannelShutdownState o);
4227         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e);
4228         public static native long CResult_ChannelShutdownStateDecodeErrorZ_err(long e);
4229         // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o);
4230         public static native boolean CResult_ChannelShutdownStateDecodeErrorZ_is_ok(long o);
4231         // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res);
4232         public static native void CResult_ChannelShutdownStateDecodeErrorZ_free(long _res);
4233         // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg);
4234         public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(long arg);
4235         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig);
4236         public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone(long orig);
4237         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
4238         public static native void CVec_ChannelMonitorZ_free(long[] _res);
4239         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
4240         public static native long C2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
4241         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
4242         public static native void C2Tuple_BlockHashChannelManagerZ_free(long _res);
4243         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
4244         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(long o);
4245         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
4246         public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(long e);
4247         // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
4248         public static native boolean CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(long o);
4249         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
4250         public static native void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(long _res);
4251         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_ok(struct LDKMaxDustHTLCExposure o);
4252         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_ok(long o);
4253         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_err(struct LDKDecodeError e);
4254         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_err(long e);
4255         // bool CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR o);
4256         public static native boolean CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(long o);
4257         // void CResult_MaxDustHTLCExposureDecodeErrorZ_free(struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ _res);
4258         public static native void CResult_MaxDustHTLCExposureDecodeErrorZ_free(long _res);
4259         // uint64_t CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR arg);
4260         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(long arg);
4261         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_clone(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR orig);
4262         public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone(long orig);
4263         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
4264         public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
4265         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
4266         public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
4267         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
4268         public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
4269         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
4270         public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
4271         // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
4272         public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
4273         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
4274         public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
4275         // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_some(struct LDKMaxDustHTLCExposure o);
4276         public static native long COption_MaxDustHTLCExposureZ_some(long o);
4277         // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_none(void);
4278         public static native long COption_MaxDustHTLCExposureZ_none();
4279         // void COption_MaxDustHTLCExposureZ_free(struct LDKCOption_MaxDustHTLCExposureZ _res);
4280         public static native void COption_MaxDustHTLCExposureZ_free(long _res);
4281         // uint64_t COption_MaxDustHTLCExposureZ_clone_ptr(LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR arg);
4282         public static native long COption_MaxDustHTLCExposureZ_clone_ptr(long arg);
4283         // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_clone(const struct LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR orig);
4284         public static native long COption_MaxDustHTLCExposureZ_clone(long orig);
4285         // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
4286         public static native long COption_APIErrorZ_some(long o);
4287         // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
4288         public static native long COption_APIErrorZ_none();
4289         // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
4290         public static native void COption_APIErrorZ_free(long _res);
4291         // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
4292         public static native long COption_APIErrorZ_clone_ptr(long arg);
4293         // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
4294         public static native long COption_APIErrorZ_clone(long orig);
4295         // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
4296         public static native long CResult_COption_APIErrorZDecodeErrorZ_ok(long o);
4297         // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
4298         public static native long CResult_COption_APIErrorZDecodeErrorZ_err(long e);
4299         // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
4300         public static native boolean CResult_COption_APIErrorZDecodeErrorZ_is_ok(long o);
4301         // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
4302         public static native void CResult_COption_APIErrorZDecodeErrorZ_free(long _res);
4303         // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
4304         public static native long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long arg);
4305         // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
4306         public static native long CResult_COption_APIErrorZDecodeErrorZ_clone(long orig);
4307         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
4308         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
4309         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4310         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
4311         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
4312         public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
4313         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
4314         public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
4315         // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
4316         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
4317         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
4318         public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
4319         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
4320         public static native long COption_MonitorEventZ_some(long o);
4321         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
4322         public static native long COption_MonitorEventZ_none();
4323         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
4324         public static native void COption_MonitorEventZ_free(long _res);
4325         // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
4326         public static native long COption_MonitorEventZ_clone_ptr(long arg);
4327         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
4328         public static native long COption_MonitorEventZ_clone(long orig);
4329         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
4330         public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
4331         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
4332         public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
4333         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
4334         public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
4335         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
4336         public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
4337         // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
4338         public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
4339         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
4340         public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
4341         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
4342         public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
4343         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4344         public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
4345         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
4346         public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
4347         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
4348         public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
4349         // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
4350         public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
4351         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
4352         public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
4353         // uint64_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
4354         public static native long C2Tuple_OutPointScriptZ_clone_ptr(long arg);
4355         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
4356         public static native long C2Tuple_OutPointScriptZ_clone(long orig);
4357         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
4358         public static native long C2Tuple_OutPointScriptZ_new(long a, byte[] b);
4359         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
4360         public static native void C2Tuple_OutPointScriptZ_free(long _res);
4361         // uint64_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
4362         public static native long C2Tuple_u32ScriptZ_clone_ptr(long arg);
4363         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
4364         public static native long C2Tuple_u32ScriptZ_clone(long orig);
4365         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
4366         public static native long C2Tuple_u32ScriptZ_new(int a, byte[] b);
4367         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
4368         public static native void C2Tuple_u32ScriptZ_free(long _res);
4369         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
4370         public static native void CVec_C2Tuple_u32ScriptZZ_free(long[] _res);
4371         // uint64_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
4372         public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(long arg);
4373         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
4374         public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(long orig);
4375         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
4376         public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
4377         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
4378         public static native void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(long _res);
4379         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
4380         public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(long[] _res);
4381         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
4382         public static native void CVec_TransactionZ_free(byte[][] _res);
4383         // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
4384         public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
4385         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
4386         public static native long C2Tuple_u32TxOutZ_clone(long orig);
4387         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
4388         public static native long C2Tuple_u32TxOutZ_new(int a, long b);
4389         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
4390         public static native void C2Tuple_u32TxOutZ_free(long _res);
4391         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
4392         public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
4393         // uint64_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
4394         public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
4395         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
4396         public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
4397         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
4398         public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
4399         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
4400         public static native void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(long _res);
4401         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
4402         public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
4403         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
4404         public static native void CVec_BalanceZ_free(long[] _res);
4405         // uint64_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
4406         public static native long C2Tuple_BlockHashChannelMonitorZ_clone_ptr(long arg);
4407         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
4408         public static native long C2Tuple_BlockHashChannelMonitorZ_clone(long orig);
4409         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
4410         public static native long C2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
4411         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
4412         public static native void C2Tuple_BlockHashChannelMonitorZ_free(long _res);
4413         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
4414         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(long o);
4415         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
4416         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(long e);
4417         // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
4418         public static native boolean CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(long o);
4419         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
4420         public static native void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(long _res);
4421         // uint64_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
4422         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
4423         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
4424         public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(long orig);
4425         // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
4426         public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
4427         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
4428         public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
4429         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
4430         public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
4431         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
4432         public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
4433         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
4434         public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
4435         // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o);
4436         public static native long COption_OffersMessageZ_some(long o);
4437         // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void);
4438         public static native long COption_OffersMessageZ_none();
4439         // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res);
4440         public static native void COption_OffersMessageZ_free(long _res);
4441         // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg);
4442         public static native long COption_OffersMessageZ_clone_ptr(long arg);
4443         // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig);
4444         public static native long COption_OffersMessageZ_clone(long orig);
4445         // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_some(struct LDKCustomOnionMessageContents o);
4446         public static native long COption_CustomOnionMessageContentsZ_some(long o);
4447         // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_none(void);
4448         public static native long COption_CustomOnionMessageContentsZ_none();
4449         // void COption_CustomOnionMessageContentsZ_free(struct LDKCOption_CustomOnionMessageContentsZ _res);
4450         public static native void COption_CustomOnionMessageContentsZ_free(long _res);
4451         // uint64_t COption_CustomOnionMessageContentsZ_clone_ptr(LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR arg);
4452         public static native long COption_CustomOnionMessageContentsZ_clone_ptr(long arg);
4453         // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_clone(const struct LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR orig);
4454         public static native long COption_CustomOnionMessageContentsZ_clone(long orig);
4455         // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_CustomOnionMessageContentsZ o);
4456         public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(long o);
4457         // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
4458         public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(long e);
4459         // bool CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
4460         public static native boolean CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(long o);
4461         // void CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ _res);
4462         public static native void CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(long _res);
4463         // uint64_t CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
4464         public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(long arg);
4465         // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
4466         public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(long orig);
4467         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
4468         public static native long COption_TypeZ_some(long o);
4469         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
4470         public static native long COption_TypeZ_none();
4471         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
4472         public static native void COption_TypeZ_free(long _res);
4473         // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
4474         public static native long COption_TypeZ_clone_ptr(long arg);
4475         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
4476         public static native long COption_TypeZ_clone(long orig);
4477         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
4478         public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
4479         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
4480         public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
4481         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
4482         public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
4483         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
4484         public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
4485         // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
4486         public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
4487         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
4488         public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
4489         // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
4490         public static native long COption_NetAddressZ_some(long o);
4491         // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
4492         public static native long COption_NetAddressZ_none();
4493         // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
4494         public static native void COption_NetAddressZ_free(long _res);
4495         // uint64_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
4496         public static native long COption_NetAddressZ_clone_ptr(long arg);
4497         // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
4498         public static native long COption_NetAddressZ_clone(long orig);
4499         // uint64_t C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR arg);
4500         public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(long arg);
4501         // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR orig);
4502         public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_clone(long orig);
4503         // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_NetAddressZ b);
4504         public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_new(byte[] a, long b);
4505         // void C2Tuple_PublicKeyCOption_NetAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ _res);
4506         public static native void C2Tuple_PublicKeyCOption_NetAddressZZ_free(long _res);
4507         // void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ _res);
4508         public static native void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(long[] _res);
4509         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
4510         public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
4511         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
4512         public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
4513         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
4514         public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
4515         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
4516         public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
4517         // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
4518         public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
4519         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
4520         public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
4521         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
4522         public static native long CResult_NonePeerHandleErrorZ_ok();
4523         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
4524         public static native long CResult_NonePeerHandleErrorZ_err(long e);
4525         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
4526         public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
4527         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
4528         public static native void CResult_NonePeerHandleErrorZ_free(long _res);
4529         // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
4530         public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
4531         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
4532         public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
4533         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
4534         public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
4535         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
4536         public static native long CResult_boolPeerHandleErrorZ_err(long e);
4537         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
4538         public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
4539         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
4540         public static native void CResult_boolPeerHandleErrorZ_free(long _res);
4541         // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
4542         public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
4543         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
4544         public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
4545         // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
4546         public static native long CResult_u32GraphSyncErrorZ_ok(int o);
4547         // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
4548         public static native long CResult_u32GraphSyncErrorZ_err(long e);
4549         // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
4550         public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
4551         // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
4552         public static native void CResult_u32GraphSyncErrorZ_free(long _res);
4553         // struct LDKCOption_KeyPairZ COption_KeyPairZ_some(struct LDKSecretKey o);
4554         public static native long COption_KeyPairZ_some(byte[] o);
4555         // struct LDKCOption_KeyPairZ COption_KeyPairZ_none(void);
4556         public static native long COption_KeyPairZ_none();
4557         // void COption_KeyPairZ_free(struct LDKCOption_KeyPairZ _res);
4558         public static native void COption_KeyPairZ_free(long _res);
4559         // uint64_t COption_KeyPairZ_clone_ptr(LDKCOption_KeyPairZ *NONNULL_PTR arg);
4560         public static native long COption_KeyPairZ_clone_ptr(long arg);
4561         // struct LDKCOption_KeyPairZ COption_KeyPairZ_clone(const struct LDKCOption_KeyPairZ *NONNULL_PTR orig);
4562         public static native long COption_KeyPairZ_clone(long orig);
4563         // struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_ok(struct LDKCOption_KeyPairZ o);
4564         public static native long CResult_COption_KeyPairZNoneZ_ok(long o);
4565         // struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_err(void);
4566         public static native long CResult_COption_KeyPairZNoneZ_err();
4567         // bool CResult_COption_KeyPairZNoneZ_is_ok(const struct LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR o);
4568         public static native boolean CResult_COption_KeyPairZNoneZ_is_ok(long o);
4569         // void CResult_COption_KeyPairZNoneZ_free(struct LDKCResult_COption_KeyPairZNoneZ _res);
4570         public static native void CResult_COption_KeyPairZNoneZ_free(long _res);
4571         // uint64_t CResult_COption_KeyPairZNoneZ_clone_ptr(LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR arg);
4572         public static native long CResult_COption_KeyPairZNoneZ_clone_ptr(long arg);
4573         // struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_clone(const struct LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR orig);
4574         public static native long CResult_COption_KeyPairZNoneZ_clone(long orig);
4575         // struct LDKCOption_ScriptZ COption_ScriptZ_some(struct LDKCVec_u8Z o);
4576         public static native long COption_ScriptZ_some(byte[] o);
4577         // struct LDKCOption_ScriptZ COption_ScriptZ_none(void);
4578         public static native long COption_ScriptZ_none();
4579         // void COption_ScriptZ_free(struct LDKCOption_ScriptZ _res);
4580         public static native void COption_ScriptZ_free(long _res);
4581         // uint64_t COption_ScriptZ_clone_ptr(LDKCOption_ScriptZ *NONNULL_PTR arg);
4582         public static native long COption_ScriptZ_clone_ptr(long arg);
4583         // struct LDKCOption_ScriptZ COption_ScriptZ_clone(const struct LDKCOption_ScriptZ *NONNULL_PTR orig);
4584         public static native long COption_ScriptZ_clone(long orig);
4585         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
4586         public static native COption_NoneZ COption_NoneZ_some();
4587         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
4588         public static native COption_NoneZ COption_NoneZ_none();
4589         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
4590         public static native void COption_NoneZ_free(COption_NoneZ _res);
4591         // void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res);
4592         public static native void CVec_WitnessZ_free(byte[][] _res);
4593         // struct LDKCOption_i64Z COption_i64Z_some(int64_t o);
4594         public static native long COption_i64Z_some(long o);
4595         // struct LDKCOption_i64Z COption_i64Z_none(void);
4596         public static native long COption_i64Z_none();
4597         // void COption_i64Z_free(struct LDKCOption_i64Z _res);
4598         public static native void COption_i64Z_free(long _res);
4599         // uint64_t COption_i64Z_clone_ptr(LDKCOption_i64Z *NONNULL_PTR arg);
4600         public static native long COption_i64Z_clone_ptr(long arg);
4601         // struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig);
4602         public static native long COption_i64Z_clone(long orig);
4603         // struct LDKCOption_TxidZ COption_TxidZ_some(struct LDKThirtyTwoBytes o);
4604         public static native long COption_TxidZ_some(byte[] o);
4605         // struct LDKCOption_TxidZ COption_TxidZ_none(void);
4606         public static native long COption_TxidZ_none();
4607         // void COption_TxidZ_free(struct LDKCOption_TxidZ _res);
4608         public static native void COption_TxidZ_free(long _res);
4609         // uint64_t COption_TxidZ_clone_ptr(LDKCOption_TxidZ *NONNULL_PTR arg);
4610         public static native long COption_TxidZ_clone_ptr(long arg);
4611         // struct LDKCOption_TxidZ COption_TxidZ_clone(const struct LDKCOption_TxidZ *NONNULL_PTR orig);
4612         public static native long COption_TxidZ_clone(long orig);
4613         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
4614         public static native long CResult_NetAddressDecodeErrorZ_ok(long o);
4615         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
4616         public static native long CResult_NetAddressDecodeErrorZ_err(long e);
4617         // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
4618         public static native boolean CResult_NetAddressDecodeErrorZ_is_ok(long o);
4619         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
4620         public static native void CResult_NetAddressDecodeErrorZ_free(long _res);
4621         // uint64_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
4622         public static native long CResult_NetAddressDecodeErrorZ_clone_ptr(long arg);
4623         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
4624         public static native long CResult_NetAddressDecodeErrorZ_clone(long orig);
4625         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
4626         public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
4627         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
4628         public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
4629         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
4630         public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
4631         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
4632         public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
4633         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
4634         public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
4635         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
4636         public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
4637         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
4638         public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
4639         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
4640         public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
4641         // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
4642         public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
4643         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
4644         public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
4645         // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_ok(struct LDKAcceptChannelV2 o);
4646         public static native long CResult_AcceptChannelV2DecodeErrorZ_ok(long o);
4647         // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
4648         public static native long CResult_AcceptChannelV2DecodeErrorZ_err(long e);
4649         // bool CResult_AcceptChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR o);
4650         public static native boolean CResult_AcceptChannelV2DecodeErrorZ_is_ok(long o);
4651         // void CResult_AcceptChannelV2DecodeErrorZ_free(struct LDKCResult_AcceptChannelV2DecodeErrorZ _res);
4652         public static native void CResult_AcceptChannelV2DecodeErrorZ_free(long _res);
4653         // uint64_t CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR arg);
4654         public static native long CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(long arg);
4655         // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_clone(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR orig);
4656         public static native long CResult_AcceptChannelV2DecodeErrorZ_clone(long orig);
4657         // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_ok(struct LDKTxAddInput o);
4658         public static native long CResult_TxAddInputDecodeErrorZ_ok(long o);
4659         // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_err(struct LDKDecodeError e);
4660         public static native long CResult_TxAddInputDecodeErrorZ_err(long e);
4661         // bool CResult_TxAddInputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR o);
4662         public static native boolean CResult_TxAddInputDecodeErrorZ_is_ok(long o);
4663         // void CResult_TxAddInputDecodeErrorZ_free(struct LDKCResult_TxAddInputDecodeErrorZ _res);
4664         public static native void CResult_TxAddInputDecodeErrorZ_free(long _res);
4665         // uint64_t CResult_TxAddInputDecodeErrorZ_clone_ptr(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR arg);
4666         public static native long CResult_TxAddInputDecodeErrorZ_clone_ptr(long arg);
4667         // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_clone(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR orig);
4668         public static native long CResult_TxAddInputDecodeErrorZ_clone(long orig);
4669         // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_ok(struct LDKTxAddOutput o);
4670         public static native long CResult_TxAddOutputDecodeErrorZ_ok(long o);
4671         // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_err(struct LDKDecodeError e);
4672         public static native long CResult_TxAddOutputDecodeErrorZ_err(long e);
4673         // bool CResult_TxAddOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR o);
4674         public static native boolean CResult_TxAddOutputDecodeErrorZ_is_ok(long o);
4675         // void CResult_TxAddOutputDecodeErrorZ_free(struct LDKCResult_TxAddOutputDecodeErrorZ _res);
4676         public static native void CResult_TxAddOutputDecodeErrorZ_free(long _res);
4677         // uint64_t CResult_TxAddOutputDecodeErrorZ_clone_ptr(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR arg);
4678         public static native long CResult_TxAddOutputDecodeErrorZ_clone_ptr(long arg);
4679         // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_clone(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR orig);
4680         public static native long CResult_TxAddOutputDecodeErrorZ_clone(long orig);
4681         // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_ok(struct LDKTxRemoveInput o);
4682         public static native long CResult_TxRemoveInputDecodeErrorZ_ok(long o);
4683         // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_err(struct LDKDecodeError e);
4684         public static native long CResult_TxRemoveInputDecodeErrorZ_err(long e);
4685         // bool CResult_TxRemoveInputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR o);
4686         public static native boolean CResult_TxRemoveInputDecodeErrorZ_is_ok(long o);
4687         // void CResult_TxRemoveInputDecodeErrorZ_free(struct LDKCResult_TxRemoveInputDecodeErrorZ _res);
4688         public static native void CResult_TxRemoveInputDecodeErrorZ_free(long _res);
4689         // uint64_t CResult_TxRemoveInputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR arg);
4690         public static native long CResult_TxRemoveInputDecodeErrorZ_clone_ptr(long arg);
4691         // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR orig);
4692         public static native long CResult_TxRemoveInputDecodeErrorZ_clone(long orig);
4693         // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_ok(struct LDKTxRemoveOutput o);
4694         public static native long CResult_TxRemoveOutputDecodeErrorZ_ok(long o);
4695         // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_err(struct LDKDecodeError e);
4696         public static native long CResult_TxRemoveOutputDecodeErrorZ_err(long e);
4697         // bool CResult_TxRemoveOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR o);
4698         public static native boolean CResult_TxRemoveOutputDecodeErrorZ_is_ok(long o);
4699         // void CResult_TxRemoveOutputDecodeErrorZ_free(struct LDKCResult_TxRemoveOutputDecodeErrorZ _res);
4700         public static native void CResult_TxRemoveOutputDecodeErrorZ_free(long _res);
4701         // uint64_t CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR arg);
4702         public static native long CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(long arg);
4703         // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR orig);
4704         public static native long CResult_TxRemoveOutputDecodeErrorZ_clone(long orig);
4705         // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_ok(struct LDKTxComplete o);
4706         public static native long CResult_TxCompleteDecodeErrorZ_ok(long o);
4707         // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_err(struct LDKDecodeError e);
4708         public static native long CResult_TxCompleteDecodeErrorZ_err(long e);
4709         // bool CResult_TxCompleteDecodeErrorZ_is_ok(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR o);
4710         public static native boolean CResult_TxCompleteDecodeErrorZ_is_ok(long o);
4711         // void CResult_TxCompleteDecodeErrorZ_free(struct LDKCResult_TxCompleteDecodeErrorZ _res);
4712         public static native void CResult_TxCompleteDecodeErrorZ_free(long _res);
4713         // uint64_t CResult_TxCompleteDecodeErrorZ_clone_ptr(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR arg);
4714         public static native long CResult_TxCompleteDecodeErrorZ_clone_ptr(long arg);
4715         // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_clone(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR orig);
4716         public static native long CResult_TxCompleteDecodeErrorZ_clone(long orig);
4717         // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_ok(struct LDKTxSignatures o);
4718         public static native long CResult_TxSignaturesDecodeErrorZ_ok(long o);
4719         // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
4720         public static native long CResult_TxSignaturesDecodeErrorZ_err(long e);
4721         // bool CResult_TxSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR o);
4722         public static native boolean CResult_TxSignaturesDecodeErrorZ_is_ok(long o);
4723         // void CResult_TxSignaturesDecodeErrorZ_free(struct LDKCResult_TxSignaturesDecodeErrorZ _res);
4724         public static native void CResult_TxSignaturesDecodeErrorZ_free(long _res);
4725         // uint64_t CResult_TxSignaturesDecodeErrorZ_clone_ptr(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR arg);
4726         public static native long CResult_TxSignaturesDecodeErrorZ_clone_ptr(long arg);
4727         // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_clone(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR orig);
4728         public static native long CResult_TxSignaturesDecodeErrorZ_clone(long orig);
4729         // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_ok(struct LDKTxInitRbf o);
4730         public static native long CResult_TxInitRbfDecodeErrorZ_ok(long o);
4731         // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_err(struct LDKDecodeError e);
4732         public static native long CResult_TxInitRbfDecodeErrorZ_err(long e);
4733         // bool CResult_TxInitRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR o);
4734         public static native boolean CResult_TxInitRbfDecodeErrorZ_is_ok(long o);
4735         // void CResult_TxInitRbfDecodeErrorZ_free(struct LDKCResult_TxInitRbfDecodeErrorZ _res);
4736         public static native void CResult_TxInitRbfDecodeErrorZ_free(long _res);
4737         // uint64_t CResult_TxInitRbfDecodeErrorZ_clone_ptr(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR arg);
4738         public static native long CResult_TxInitRbfDecodeErrorZ_clone_ptr(long arg);
4739         // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_clone(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR orig);
4740         public static native long CResult_TxInitRbfDecodeErrorZ_clone(long orig);
4741         // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_ok(struct LDKTxAckRbf o);
4742         public static native long CResult_TxAckRbfDecodeErrorZ_ok(long o);
4743         // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_err(struct LDKDecodeError e);
4744         public static native long CResult_TxAckRbfDecodeErrorZ_err(long e);
4745         // bool CResult_TxAckRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR o);
4746         public static native boolean CResult_TxAckRbfDecodeErrorZ_is_ok(long o);
4747         // void CResult_TxAckRbfDecodeErrorZ_free(struct LDKCResult_TxAckRbfDecodeErrorZ _res);
4748         public static native void CResult_TxAckRbfDecodeErrorZ_free(long _res);
4749         // uint64_t CResult_TxAckRbfDecodeErrorZ_clone_ptr(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR arg);
4750         public static native long CResult_TxAckRbfDecodeErrorZ_clone_ptr(long arg);
4751         // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_clone(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR orig);
4752         public static native long CResult_TxAckRbfDecodeErrorZ_clone(long orig);
4753         // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_ok(struct LDKTxAbort o);
4754         public static native long CResult_TxAbortDecodeErrorZ_ok(long o);
4755         // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_err(struct LDKDecodeError e);
4756         public static native long CResult_TxAbortDecodeErrorZ_err(long e);
4757         // bool CResult_TxAbortDecodeErrorZ_is_ok(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR o);
4758         public static native boolean CResult_TxAbortDecodeErrorZ_is_ok(long o);
4759         // void CResult_TxAbortDecodeErrorZ_free(struct LDKCResult_TxAbortDecodeErrorZ _res);
4760         public static native void CResult_TxAbortDecodeErrorZ_free(long _res);
4761         // uint64_t CResult_TxAbortDecodeErrorZ_clone_ptr(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR arg);
4762         public static native long CResult_TxAbortDecodeErrorZ_clone_ptr(long arg);
4763         // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_clone(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR orig);
4764         public static native long CResult_TxAbortDecodeErrorZ_clone(long orig);
4765         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
4766         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
4767         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
4768         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
4769         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
4770         public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
4771         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
4772         public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
4773         // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
4774         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
4775         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
4776         public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
4777         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
4778         public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
4779         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
4780         public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
4781         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
4782         public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
4783         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
4784         public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
4785         // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
4786         public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
4787         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
4788         public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
4789         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
4790         public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
4791         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
4792         public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
4793         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
4794         public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
4795         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
4796         public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
4797         // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
4798         public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
4799         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
4800         public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
4801         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
4802         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
4803         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
4804         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
4805         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
4806         public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
4807         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
4808         public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
4809         // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
4810         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
4811         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
4812         public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
4813         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
4814         public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
4815         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
4816         public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
4817         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
4818         public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
4819         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
4820         public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
4821         // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
4822         public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
4823         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
4824         public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
4825         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
4826         public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
4827         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
4828         public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
4829         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
4830         public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
4831         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
4832         public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
4833         // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
4834         public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
4835         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
4836         public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
4837         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
4838         public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
4839         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
4840         public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
4841         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
4842         public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
4843         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
4844         public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
4845         // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
4846         public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
4847         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
4848         public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
4849         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
4850         public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
4851         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
4852         public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
4853         // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
4854         public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
4855         // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
4856         public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
4857         // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
4858         public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
4859         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
4860         public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
4861         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
4862         public static native long CResult_InitDecodeErrorZ_ok(long o);
4863         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
4864         public static native long CResult_InitDecodeErrorZ_err(long e);
4865         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
4866         public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
4867         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
4868         public static native void CResult_InitDecodeErrorZ_free(long _res);
4869         // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
4870         public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
4871         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
4872         public static native long CResult_InitDecodeErrorZ_clone(long orig);
4873         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
4874         public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
4875         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
4876         public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
4877         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
4878         public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
4879         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
4880         public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
4881         // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
4882         public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
4883         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
4884         public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
4885         // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_ok(struct LDKOpenChannelV2 o);
4886         public static native long CResult_OpenChannelV2DecodeErrorZ_ok(long o);
4887         // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
4888         public static native long CResult_OpenChannelV2DecodeErrorZ_err(long e);
4889         // bool CResult_OpenChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR o);
4890         public static native boolean CResult_OpenChannelV2DecodeErrorZ_is_ok(long o);
4891         // void CResult_OpenChannelV2DecodeErrorZ_free(struct LDKCResult_OpenChannelV2DecodeErrorZ _res);
4892         public static native void CResult_OpenChannelV2DecodeErrorZ_free(long _res);
4893         // uint64_t CResult_OpenChannelV2DecodeErrorZ_clone_ptr(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR arg);
4894         public static native long CResult_OpenChannelV2DecodeErrorZ_clone_ptr(long arg);
4895         // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_clone(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR orig);
4896         public static native long CResult_OpenChannelV2DecodeErrorZ_clone(long orig);
4897         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
4898         public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
4899         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
4900         public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
4901         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
4902         public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
4903         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
4904         public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
4905         // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
4906         public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
4907         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
4908         public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
4909         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
4910         public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
4911         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
4912         public static native long CResult_ShutdownDecodeErrorZ_err(long e);
4913         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
4914         public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
4915         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
4916         public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
4917         // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
4918         public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
4919         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
4920         public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
4921         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
4922         public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
4923         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4924         public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
4925         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
4926         public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
4927         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
4928         public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
4929         // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
4930         public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
4931         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
4932         public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
4933         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
4934         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
4935         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4936         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
4937         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
4938         public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
4939         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
4940         public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
4941         // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
4942         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
4943         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
4944         public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
4945         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
4946         public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
4947         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
4948         public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
4949         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
4950         public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
4951         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
4952         public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
4953         // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
4954         public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
4955         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
4956         public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
4957         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
4958         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
4959         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4960         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
4961         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
4962         public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
4963         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
4964         public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
4965         // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
4966         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
4967         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
4968         public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
4969         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
4970         public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
4971         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4972         public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
4973         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
4974         public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
4975         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
4976         public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
4977         // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
4978         public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
4979         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
4980         public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
4981         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
4982         public static native long CResult_OnionMessageDecodeErrorZ_ok(long o);
4983         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
4984         public static native long CResult_OnionMessageDecodeErrorZ_err(long e);
4985         // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
4986         public static native boolean CResult_OnionMessageDecodeErrorZ_is_ok(long o);
4987         // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
4988         public static native void CResult_OnionMessageDecodeErrorZ_free(long _res);
4989         // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
4990         public static native long CResult_OnionMessageDecodeErrorZ_clone_ptr(long arg);
4991         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
4992         public static native long CResult_OnionMessageDecodeErrorZ_clone(long orig);
4993         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
4994         public static native long CResult_PingDecodeErrorZ_ok(long o);
4995         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
4996         public static native long CResult_PingDecodeErrorZ_err(long e);
4997         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
4998         public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
4999         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
5000         public static native void CResult_PingDecodeErrorZ_free(long _res);
5001         // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
5002         public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
5003         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
5004         public static native long CResult_PingDecodeErrorZ_clone(long orig);
5005         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
5006         public static native long CResult_PongDecodeErrorZ_ok(long o);
5007         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
5008         public static native long CResult_PongDecodeErrorZ_err(long e);
5009         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
5010         public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
5011         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
5012         public static native void CResult_PongDecodeErrorZ_free(long _res);
5013         // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
5014         public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
5015         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
5016         public static native long CResult_PongDecodeErrorZ_clone(long orig);
5017         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
5018         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
5019         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5020         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
5021         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
5022         public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
5023         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
5024         public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
5025         // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5026         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
5027         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5028         public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
5029         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
5030         public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
5031         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5032         public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
5033         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
5034         public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
5035         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
5036         public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
5037         // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5038         public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
5039         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5040         public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
5041         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
5042         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
5043         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5044         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
5045         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
5046         public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
5047         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
5048         public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
5049         // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
5050         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
5051         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
5052         public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
5053         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
5054         public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
5055         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5056         public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
5057         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
5058         public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
5059         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
5060         public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
5061         // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
5062         public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
5063         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
5064         public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
5065         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
5066         public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
5067         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
5068         public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
5069         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
5070         public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
5071         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
5072         public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
5073         // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
5074         public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
5075         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
5076         public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
5077         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
5078         public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
5079         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
5080         public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
5081         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
5082         public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
5083         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
5084         public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
5085         // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
5086         public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
5087         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
5088         public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
5089         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
5090         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
5091         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5092         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
5093         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
5094         public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
5095         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
5096         public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
5097         // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5098         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
5099         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5100         public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
5101         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
5102         public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
5103         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5104         public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
5105         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
5106         public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
5107         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
5108         public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
5109         // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5110         public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
5111         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5112         public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
5113         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
5114         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
5115         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
5116         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
5117         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
5118         public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
5119         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
5120         public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
5121         // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
5122         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
5123         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
5124         public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
5125         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
5126         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
5127         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
5128         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
5129         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
5130         public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
5131         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
5132         public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
5133         // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
5134         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
5135         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
5136         public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
5137         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
5138         public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
5139         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
5140         public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
5141         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
5142         public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
5143         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
5144         public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
5145         // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
5146         public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
5147         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
5148         public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
5149         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
5150         public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
5151         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
5152         public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
5153         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
5154         public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
5155         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
5156         public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
5157         // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
5158         public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
5159         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
5160         public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
5161         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
5162         public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
5163         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
5164         public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
5165         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
5166         public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
5167         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
5168         public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
5169         // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
5170         public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
5171         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
5172         public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
5173         // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
5174         public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
5175         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(struct LDKBolt11Invoice o);
5176         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(long o);
5177         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
5178         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_err(long e);
5179         // bool CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
5180         public static native boolean CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(long o);
5181         // void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ _res);
5182         public static native void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(long _res);
5183         // uint64_t CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
5184         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
5185         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
5186         public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(long orig);
5187         // void CVec_FutureZ_free(struct LDKCVec_FutureZ _res);
5188         public static native void CVec_FutureZ_free(long[] _res);
5189         // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o);
5190         public static native long CResult_OffersMessageDecodeErrorZ_ok(long o);
5191         // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e);
5192         public static native long CResult_OffersMessageDecodeErrorZ_err(long e);
5193         // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o);
5194         public static native boolean CResult_OffersMessageDecodeErrorZ_is_ok(long o);
5195         // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res);
5196         public static native void CResult_OffersMessageDecodeErrorZ_free(long _res);
5197         // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg);
5198         public static native long CResult_OffersMessageDecodeErrorZ_clone_ptr(long arg);
5199         // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig);
5200         public static native long CResult_OffersMessageDecodeErrorZ_clone(long orig);
5201         // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
5202         public static native long COption_HTLCClaimZ_some(HTLCClaim o);
5203         // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
5204         public static native long COption_HTLCClaimZ_none();
5205         // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
5206         public static native void COption_HTLCClaimZ_free(long _res);
5207         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
5208         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
5209         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
5210         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
5211         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
5212         public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
5213         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
5214         public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
5215         // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
5216         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
5217         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
5218         public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
5219         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
5220         public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
5221         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
5222         public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
5223         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
5224         public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
5225         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
5226         public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
5227         // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
5228         public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
5229         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
5230         public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
5231         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
5232         public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
5233         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
5234         public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
5235         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
5236         public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
5237         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
5238         public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
5239         // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
5240         public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
5241         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
5242         public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
5243         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
5244         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
5245         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
5246         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
5247         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
5248         public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
5249         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
5250         public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
5251         // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
5252         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
5253         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
5254         public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
5255         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
5256         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
5257         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
5258         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
5259         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
5260         public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
5261         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
5262         public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
5263         // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
5264         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
5265         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
5266         public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
5267         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
5268         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
5269         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
5270         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
5271         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
5272         public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
5273         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
5274         public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
5275         // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
5276         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
5277         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
5278         public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
5279         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
5280         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
5281         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5282         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
5283         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5284         public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
5285         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
5286         public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
5287         // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5288         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5289         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5290         public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
5291         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
5292         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
5293         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5294         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
5295         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5296         public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
5297         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
5298         public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
5299         // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5300         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5301         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5302         public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
5303         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
5304         public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
5305         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
5306         public static native long CResult_TrustedClosingTransactionNoneZ_err();
5307         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
5308         public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
5309         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
5310         public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
5311         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
5312         public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
5313         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5314         public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
5315         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5316         public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
5317         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
5318         public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
5319         // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5320         public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5321         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5322         public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
5323         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
5324         public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
5325         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
5326         public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
5327         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
5328         public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
5329         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
5330         public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
5331         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
5332         public static native long CResult_CVec_SignatureZNoneZ_ok(byte[][] o);
5333         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
5334         public static native long CResult_CVec_SignatureZNoneZ_err();
5335         // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
5336         public static native boolean CResult_CVec_SignatureZNoneZ_is_ok(long o);
5337         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
5338         public static native void CResult_CVec_SignatureZNoneZ_free(long _res);
5339         // uint64_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
5340         public static native long CResult_CVec_SignatureZNoneZ_clone_ptr(long arg);
5341         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
5342         public static native long CResult_CVec_SignatureZNoneZ_clone(long orig);
5343         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
5344         public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
5345         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
5346         public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
5347         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
5348         public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
5349         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
5350         public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
5351         // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
5352         public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
5353         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
5354         public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
5355         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
5356         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
5357         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
5358         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
5359         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
5360         public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
5361         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
5362         public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
5363         // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
5364         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
5365         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
5366         public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
5367         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
5368         public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
5369         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
5370         public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
5371         // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
5372         public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
5373         // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
5374         public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
5375         // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
5376         public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
5377         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
5378         public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
5379         // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
5380         public static native long COption_PathFailureZ_some(long o);
5381         // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
5382         public static native long COption_PathFailureZ_none();
5383         // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
5384         public static native void COption_PathFailureZ_free(long _res);
5385         // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
5386         public static native long COption_PathFailureZ_clone_ptr(long arg);
5387         // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
5388         public static native long COption_PathFailureZ_clone(long orig);
5389         // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
5390         public static native long CResult_COption_PathFailureZDecodeErrorZ_ok(long o);
5391         // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
5392         public static native long CResult_COption_PathFailureZDecodeErrorZ_err(long e);
5393         // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
5394         public static native boolean CResult_COption_PathFailureZDecodeErrorZ_is_ok(long o);
5395         // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
5396         public static native void CResult_COption_PathFailureZDecodeErrorZ_free(long _res);
5397         // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
5398         public static native long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long arg);
5399         // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
5400         public static native long CResult_COption_PathFailureZDecodeErrorZ_clone(long orig);
5401         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
5402         public static native long COption_ClosureReasonZ_some(long o);
5403         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
5404         public static native long COption_ClosureReasonZ_none();
5405         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
5406         public static native void COption_ClosureReasonZ_free(long _res);
5407         // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
5408         public static native long COption_ClosureReasonZ_clone_ptr(long arg);
5409         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
5410         public static native long COption_ClosureReasonZ_clone(long orig);
5411         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
5412         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
5413         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
5414         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
5415         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
5416         public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
5417         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
5418         public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
5419         // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
5420         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
5421         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
5422         public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
5423         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
5424         public static native long COption_HTLCDestinationZ_some(long o);
5425         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
5426         public static native long COption_HTLCDestinationZ_none();
5427         // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
5428         public static native void COption_HTLCDestinationZ_free(long _res);
5429         // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
5430         public static native long COption_HTLCDestinationZ_clone_ptr(long arg);
5431         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
5432         public static native long COption_HTLCDestinationZ_clone(long orig);
5433         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
5434         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long o);
5435         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
5436         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long e);
5437         // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
5438         public static native boolean CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long o);
5439         // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
5440         public static native void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long _res);
5441         // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
5442         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long arg);
5443         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
5444         public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long orig);
5445         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o);
5446         public static native long CResult_PaymentFailureReasonDecodeErrorZ_ok(PaymentFailureReason o);
5447         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e);
5448         public static native long CResult_PaymentFailureReasonDecodeErrorZ_err(long e);
5449         // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o);
5450         public static native boolean CResult_PaymentFailureReasonDecodeErrorZ_is_ok(long o);
5451         // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res);
5452         public static native void CResult_PaymentFailureReasonDecodeErrorZ_free(long _res);
5453         // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg);
5454         public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(long arg);
5455         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig);
5456         public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone(long orig);
5457         // struct LDKCOption_u128Z COption_u128Z_some(struct LDKU128 o);
5458         public static native long COption_u128Z_some(byte[] o);
5459         // struct LDKCOption_u128Z COption_u128Z_none(void);
5460         public static native long COption_u128Z_none();
5461         // void COption_u128Z_free(struct LDKCOption_u128Z _res);
5462         public static native void COption_u128Z_free(long _res);
5463         // uint64_t COption_u128Z_clone_ptr(LDKCOption_u128Z *NONNULL_PTR arg);
5464         public static native long COption_u128Z_clone_ptr(long arg);
5465         // struct LDKCOption_u128Z COption_u128Z_clone(const struct LDKCOption_u128Z *NONNULL_PTR orig);
5466         public static native long COption_u128Z_clone(long orig);
5467         // struct LDKCOption_PaymentIdZ COption_PaymentIdZ_some(struct LDKThirtyTwoBytes o);
5468         public static native long COption_PaymentIdZ_some(byte[] o);
5469         // struct LDKCOption_PaymentIdZ COption_PaymentIdZ_none(void);
5470         public static native long COption_PaymentIdZ_none();
5471         // void COption_PaymentIdZ_free(struct LDKCOption_PaymentIdZ _res);
5472         public static native void COption_PaymentIdZ_free(long _res);
5473         // uint64_t COption_PaymentIdZ_clone_ptr(LDKCOption_PaymentIdZ *NONNULL_PTR arg);
5474         public static native long COption_PaymentIdZ_clone_ptr(long arg);
5475         // struct LDKCOption_PaymentIdZ COption_PaymentIdZ_clone(const struct LDKCOption_PaymentIdZ *NONNULL_PTR orig);
5476         public static native long COption_PaymentIdZ_clone(long orig);
5477         // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o);
5478         public static native long COption_PaymentFailureReasonZ_some(PaymentFailureReason o);
5479         // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void);
5480         public static native long COption_PaymentFailureReasonZ_none();
5481         // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res);
5482         public static native void COption_PaymentFailureReasonZ_free(long _res);
5483         // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg);
5484         public static native long COption_PaymentFailureReasonZ_clone_ptr(long arg);
5485         // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig);
5486         public static native long COption_PaymentFailureReasonZ_clone(long orig);
5487         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
5488         public static native long COption_EventZ_some(long o);
5489         // struct LDKCOption_EventZ COption_EventZ_none(void);
5490         public static native long COption_EventZ_none();
5491         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
5492         public static native void COption_EventZ_free(long _res);
5493         // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
5494         public static native long COption_EventZ_clone_ptr(long arg);
5495         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
5496         public static native long COption_EventZ_clone(long orig);
5497         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
5498         public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
5499         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
5500         public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
5501         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
5502         public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
5503         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
5504         public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
5505         // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
5506         public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
5507         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
5508         public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
5509         // void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ _res);
5510         public static native void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(long[] _res);
5511         // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ o);
5512         public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(long[] o);
5513         // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(enum LDKIOError e);
5514         public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(IOError e);
5515         // bool CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR o);
5516         public static native boolean CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(long o);
5517         // void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ _res);
5518         public static native void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(long _res);
5519         // uint64_t CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR arg);
5520         public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(long arg);
5521         // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR orig);
5522         public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(long orig);
5523         // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o);
5524         public static native long CResult_SiPrefixBolt11ParseErrorZ_ok(SiPrefix o);
5525         // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
5526         public static native long CResult_SiPrefixBolt11ParseErrorZ_err(long e);
5527         // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o);
5528         public static native boolean CResult_SiPrefixBolt11ParseErrorZ_is_ok(long o);
5529         // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res);
5530         public static native void CResult_SiPrefixBolt11ParseErrorZ_free(long _res);
5531         // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg);
5532         public static native long CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(long arg);
5533         // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig);
5534         public static native long CResult_SiPrefixBolt11ParseErrorZ_clone(long orig);
5535         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o);
5536         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(long o);
5537         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
5538         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(long e);
5539         // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
5540         public static native boolean CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(long o);
5541         // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res);
5542         public static native void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(long _res);
5543         // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
5544         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
5545         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
5546         public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(long orig);
5547         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o);
5548         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(long o);
5549         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
5550         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(long e);
5551         // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o);
5552         public static native boolean CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(long o);
5553         // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res);
5554         public static native void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(long _res);
5555         // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg);
5556         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(long arg);
5557         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig);
5558         public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(long orig);
5559         // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg);
5560         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(long arg);
5561         // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig);
5562         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(long orig);
5563         // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c);
5564         public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(long a, byte[] b, long c);
5565         // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res);
5566         public static native void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(long _res);
5567         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
5568         public static native long CResult_PayeePubKeyErrorZ_ok(long o);
5569         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
5570         public static native long CResult_PayeePubKeyErrorZ_err(Secp256k1Error e);
5571         // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
5572         public static native boolean CResult_PayeePubKeyErrorZ_is_ok(long o);
5573         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
5574         public static native void CResult_PayeePubKeyErrorZ_free(long _res);
5575         // uint64_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
5576         public static native long CResult_PayeePubKeyErrorZ_clone_ptr(long arg);
5577         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
5578         public static native long CResult_PayeePubKeyErrorZ_clone(long orig);
5579         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
5580         public static native void CVec_PrivateRouteZ_free(long[] _res);
5581         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
5582         public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
5583         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
5584         public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
5585         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
5586         public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
5587         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
5588         public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
5589         // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
5590         public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
5591         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
5592         public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
5593         // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void);
5594         public static native long CResult_NoneBolt11SemanticErrorZ_ok();
5595         // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
5596         public static native long CResult_NoneBolt11SemanticErrorZ_err(Bolt11SemanticError e);
5597         // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o);
5598         public static native boolean CResult_NoneBolt11SemanticErrorZ_is_ok(long o);
5599         // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res);
5600         public static native void CResult_NoneBolt11SemanticErrorZ_free(long _res);
5601         // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg);
5602         public static native long CResult_NoneBolt11SemanticErrorZ_clone_ptr(long arg);
5603         // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig);
5604         public static native long CResult_NoneBolt11SemanticErrorZ_clone(long orig);
5605         // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o);
5606         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(long o);
5607         // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
5608         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(Bolt11SemanticError e);
5609         // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o);
5610         public static native boolean CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(long o);
5611         // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res);
5612         public static native void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(long _res);
5613         // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg);
5614         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(long arg);
5615         // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig);
5616         public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(long orig);
5617         // void CVec_AddressZ_free(struct LDKCVec_AddressZ _res);
5618         public static native void CVec_AddressZ_free(String[] _res);
5619         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
5620         public static native long CResult_DescriptionCreationErrorZ_ok(long o);
5621         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
5622         public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
5623         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
5624         public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
5625         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
5626         public static native void CResult_DescriptionCreationErrorZ_free(long _res);
5627         // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
5628         public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
5629         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
5630         public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
5631         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
5632         public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
5633         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
5634         public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
5635         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
5636         public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
5637         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
5638         public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
5639         // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
5640         public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
5641         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
5642         public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
5643         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
5644         public static native long CResult_OutPointDecodeErrorZ_ok(long o);
5645         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
5646         public static native long CResult_OutPointDecodeErrorZ_err(long e);
5647         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
5648         public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
5649         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
5650         public static native void CResult_OutPointDecodeErrorZ_free(long _res);
5651         // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
5652         public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
5653         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
5654         public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
5655         // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o);
5656         public static native long CResult_BigSizeDecodeErrorZ_ok(long o);
5657         // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e);
5658         public static native long CResult_BigSizeDecodeErrorZ_err(long e);
5659         // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o);
5660         public static native boolean CResult_BigSizeDecodeErrorZ_is_ok(long o);
5661         // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res);
5662         public static native void CResult_BigSizeDecodeErrorZ_free(long _res);
5663         // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg);
5664         public static native long CResult_BigSizeDecodeErrorZ_clone_ptr(long arg);
5665         // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig);
5666         public static native long CResult_BigSizeDecodeErrorZ_clone(long orig);
5667         // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o);
5668         public static native long CResult_HostnameDecodeErrorZ_ok(long o);
5669         // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e);
5670         public static native long CResult_HostnameDecodeErrorZ_err(long e);
5671         // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o);
5672         public static native boolean CResult_HostnameDecodeErrorZ_is_ok(long o);
5673         // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res);
5674         public static native void CResult_HostnameDecodeErrorZ_free(long _res);
5675         // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg);
5676         public static native long CResult_HostnameDecodeErrorZ_clone_ptr(long arg);
5677         // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig);
5678         public static native long CResult_HostnameDecodeErrorZ_clone(long orig);
5679         // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o);
5680         public static native long CResult_TransactionU16LenLimitedNoneZ_ok(long o);
5681         // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void);
5682         public static native long CResult_TransactionU16LenLimitedNoneZ_err();
5683         // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o);
5684         public static native boolean CResult_TransactionU16LenLimitedNoneZ_is_ok(long o);
5685         // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res);
5686         public static native void CResult_TransactionU16LenLimitedNoneZ_free(long _res);
5687         // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg);
5688         public static native long CResult_TransactionU16LenLimitedNoneZ_clone_ptr(long arg);
5689         // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig);
5690         public static native long CResult_TransactionU16LenLimitedNoneZ_clone(long orig);
5691         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o);
5692         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_ok(long o);
5693         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e);
5694         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_err(long e);
5695         // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o);
5696         public static native boolean CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(long o);
5697         // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res);
5698         public static native void CResult_TransactionU16LenLimitedDecodeErrorZ_free(long _res);
5699         // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg);
5700         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(long arg);
5701         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig);
5702         public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone(long orig);
5703         // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o);
5704         public static native long CResult_UntrustedStringDecodeErrorZ_ok(long o);
5705         // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e);
5706         public static native long CResult_UntrustedStringDecodeErrorZ_err(long e);
5707         // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o);
5708         public static native boolean CResult_UntrustedStringDecodeErrorZ_is_ok(long o);
5709         // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res);
5710         public static native void CResult_UntrustedStringDecodeErrorZ_free(long _res);
5711         // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg);
5712         public static native long CResult_UntrustedStringDecodeErrorZ_clone_ptr(long arg);
5713         // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig);
5714         public static native long CResult_UntrustedStringDecodeErrorZ_clone(long orig);
5715         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
5716         public static native long CResult_PaymentIdPaymentErrorZ_ok(byte[] o);
5717         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
5718         public static native long CResult_PaymentIdPaymentErrorZ_err(long e);
5719         // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
5720         public static native boolean CResult_PaymentIdPaymentErrorZ_is_ok(long o);
5721         // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
5722         public static native void CResult_PaymentIdPaymentErrorZ_free(long _res);
5723         // uint64_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
5724         public static native long CResult_PaymentIdPaymentErrorZ_clone_ptr(long arg);
5725         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
5726         public static native long CResult_PaymentIdPaymentErrorZ_clone(long orig);
5727         // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_ok(void);
5728         public static native long CResult_NonePaymentErrorZ_ok();
5729         // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_err(struct LDKPaymentError e);
5730         public static native long CResult_NonePaymentErrorZ_err(long e);
5731         // bool CResult_NonePaymentErrorZ_is_ok(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR o);
5732         public static native boolean CResult_NonePaymentErrorZ_is_ok(long o);
5733         // void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res);
5734         public static native void CResult_NonePaymentErrorZ_free(long _res);
5735         // uint64_t CResult_NonePaymentErrorZ_clone_ptr(LDKCResult_NonePaymentErrorZ *NONNULL_PTR arg);
5736         public static native long CResult_NonePaymentErrorZ_clone_ptr(long arg);
5737         // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig);
5738         public static native long CResult_NonePaymentErrorZ_clone(long orig);
5739         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
5740         public static native long CResult_StringErrorZ_ok(String o);
5741         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
5742         public static native long CResult_StringErrorZ_err(Secp256k1Error e);
5743         // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
5744         public static native boolean CResult_StringErrorZ_is_ok(long o);
5745         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
5746         public static native void CResult_StringErrorZ_free(long _res);
5747         // uint64_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
5748         public static native long CResult_StringErrorZ_clone_ptr(long arg);
5749         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
5750         public static native long CResult_StringErrorZ_clone(long orig);
5751         // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
5752         public static native long CResult_TxOutUtxoLookupErrorZ_ok(long o);
5753         // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
5754         public static native long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError e);
5755         // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
5756         public static native boolean CResult_TxOutUtxoLookupErrorZ_is_ok(long o);
5757         // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
5758         public static native void CResult_TxOutUtxoLookupErrorZ_free(long _res);
5759         // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
5760         public static native long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long arg);
5761         // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
5762         public static native long CResult_TxOutUtxoLookupErrorZ_clone(long orig);
5763         // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_ok(struct LDKOnionMessagePath o);
5764         public static native long CResult_OnionMessagePathNoneZ_ok(long o);
5765         // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_err(void);
5766         public static native long CResult_OnionMessagePathNoneZ_err();
5767         // bool CResult_OnionMessagePathNoneZ_is_ok(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR o);
5768         public static native boolean CResult_OnionMessagePathNoneZ_is_ok(long o);
5769         // void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ _res);
5770         public static native void CResult_OnionMessagePathNoneZ_free(long _res);
5771         // uint64_t CResult_OnionMessagePathNoneZ_clone_ptr(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR arg);
5772         public static native long CResult_OnionMessagePathNoneZ_clone_ptr(long arg);
5773         // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig);
5774         public static native long CResult_OnionMessagePathNoneZ_clone(long orig);
5775         // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_ok(void);
5776         public static native long CResult_NoneSendErrorZ_ok();
5777         // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_err(struct LDKSendError e);
5778         public static native long CResult_NoneSendErrorZ_err(long e);
5779         // bool CResult_NoneSendErrorZ_is_ok(const struct LDKCResult_NoneSendErrorZ *NONNULL_PTR o);
5780         public static native boolean CResult_NoneSendErrorZ_is_ok(long o);
5781         // void CResult_NoneSendErrorZ_free(struct LDKCResult_NoneSendErrorZ _res);
5782         public static native void CResult_NoneSendErrorZ_free(long _res);
5783         // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
5784         public static native long CResult_BlindedPathNoneZ_ok(long o);
5785         // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
5786         public static native long CResult_BlindedPathNoneZ_err();
5787         // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
5788         public static native boolean CResult_BlindedPathNoneZ_is_ok(long o);
5789         // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
5790         public static native void CResult_BlindedPathNoneZ_free(long _res);
5791         // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
5792         public static native long CResult_BlindedPathNoneZ_clone_ptr(long arg);
5793         // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
5794         public static native long CResult_BlindedPathNoneZ_clone(long orig);
5795         // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
5796         public static native long CResult_BlindedPathDecodeErrorZ_ok(long o);
5797         // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
5798         public static native long CResult_BlindedPathDecodeErrorZ_err(long e);
5799         // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
5800         public static native boolean CResult_BlindedPathDecodeErrorZ_is_ok(long o);
5801         // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
5802         public static native void CResult_BlindedPathDecodeErrorZ_free(long _res);
5803         // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
5804         public static native long CResult_BlindedPathDecodeErrorZ_clone_ptr(long arg);
5805         // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
5806         public static native long CResult_BlindedPathDecodeErrorZ_clone(long orig);
5807         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
5808         public static native long CResult_BlindedHopDecodeErrorZ_ok(long o);
5809         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
5810         public static native long CResult_BlindedHopDecodeErrorZ_err(long e);
5811         // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
5812         public static native boolean CResult_BlindedHopDecodeErrorZ_is_ok(long o);
5813         // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
5814         public static native void CResult_BlindedHopDecodeErrorZ_free(long _res);
5815         // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
5816         public static native long CResult_BlindedHopDecodeErrorZ_clone_ptr(long arg);
5817         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
5818         public static native long CResult_BlindedHopDecodeErrorZ_clone(long orig);
5819         // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o);
5820         public static native long CResult_InvoiceErrorDecodeErrorZ_ok(long o);
5821         // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e);
5822         public static native long CResult_InvoiceErrorDecodeErrorZ_err(long e);
5823         // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o);
5824         public static native boolean CResult_InvoiceErrorDecodeErrorZ_is_ok(long o);
5825         // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res);
5826         public static native void CResult_InvoiceErrorDecodeErrorZ_free(long _res);
5827         // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg);
5828         public static native long CResult_InvoiceErrorDecodeErrorZ_clone_ptr(long arg);
5829         // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig);
5830         public static native long CResult_InvoiceErrorDecodeErrorZ_clone(long orig);
5831         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
5832         public static native long COption_FilterZ_some(long o);
5833         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
5834         public static native long COption_FilterZ_none();
5835         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
5836         public static native void COption_FilterZ_free(long _res);
5837         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
5838         public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
5839         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
5840         public static native long CResult_LockedChannelMonitorNoneZ_err();
5841         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
5842         public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
5843         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
5844         public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
5845         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
5846         public static native void CVec_OutPointZ_free(long[] _res);
5847         // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
5848         public static native void CVec_MonitorUpdateIdZ_free(long[] _res);
5849         // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
5850         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long arg);
5851         // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
5852         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long orig);
5853         // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
5854         public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long a, long[] b);
5855         // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
5856         public static native void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long _res);
5857         // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
5858         public static native void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long[] _res);
5859         // void APIError_free(struct LDKAPIError this_ptr);
5860         public static native void APIError_free(long this_ptr);
5861         // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
5862         public static native long APIError_clone_ptr(long arg);
5863         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
5864         public static native long APIError_clone(long orig);
5865         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
5866         public static native long APIError_apimisuse_error(String err);
5867         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
5868         public static native long APIError_fee_rate_too_high(String err, int feerate);
5869         // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
5870         public static native long APIError_invalid_route(String err);
5871         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
5872         public static native long APIError_channel_unavailable(String err);
5873         // struct LDKAPIError APIError_monitor_update_in_progress(void);
5874         public static native long APIError_monitor_update_in_progress();
5875         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
5876         public static native long APIError_incompatible_shutdown_script(long script);
5877         // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
5878         public static native boolean APIError_eq(long a, long b);
5879         // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
5880         public static native byte[] APIError_write(long obj);
5881         // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
5882         public static native long APIError_read(byte[] ser);
5883         // void BigSize_free(struct LDKBigSize this_obj);
5884         public static native void BigSize_free(long this_obj);
5885         // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
5886         public static native long BigSize_get_a(long this_ptr);
5887         // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
5888         public static native void BigSize_set_a(long this_ptr, long val);
5889         // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
5890         public static native long BigSize_new(long a_arg);
5891         // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg);
5892         public static native long BigSize_clone_ptr(long arg);
5893         // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig);
5894         public static native long BigSize_clone(long orig);
5895         // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o);
5896         public static native long BigSize_hash(long o);
5897         // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b);
5898         public static native boolean BigSize_eq(long a, long b);
5899         // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj);
5900         public static native byte[] BigSize_write(long obj);
5901         // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser);
5902         public static native long BigSize_read(byte[] ser);
5903         // void Hostname_free(struct LDKHostname this_obj);
5904         public static native void Hostname_free(long this_obj);
5905         // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
5906         public static native long Hostname_clone_ptr(long arg);
5907         // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
5908         public static native long Hostname_clone(long orig);
5909         // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
5910         public static native boolean Hostname_eq(long a, long b);
5911         // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
5912         public static native byte Hostname_len(long this_arg);
5913         // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj);
5914         public static native byte[] Hostname_write(long obj);
5915         // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser);
5916         public static native long Hostname_read(byte[] ser);
5917         // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj);
5918         public static native void TransactionU16LenLimited_free(long this_obj);
5919         // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg);
5920         public static native long TransactionU16LenLimited_clone_ptr(long arg);
5921         // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig);
5922         public static native long TransactionU16LenLimited_clone(long orig);
5923         // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b);
5924         public static native boolean TransactionU16LenLimited_eq(long a, long b);
5925         // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction);
5926         public static native long TransactionU16LenLimited_new(byte[] transaction);
5927         // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg);
5928         public static native byte[] TransactionU16LenLimited_into_transaction(long this_arg);
5929         // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj);
5930         public static native byte[] TransactionU16LenLimited_write(long obj);
5931         // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser);
5932         public static native long TransactionU16LenLimited_read(byte[] ser);
5933         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
5934         public static native long sign(byte[] msg, byte[] sk);
5935         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
5936         public static native long recover_pk(byte[] msg, String sig);
5937         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
5938         public static native boolean verify(byte[] msg, String sig, byte[] pk);
5939         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
5940         public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
5941         // void Persister_free(struct LDKPersister this_ptr);
5942         public static native void Persister_free(long this_ptr);
5943         // void UntrustedString_free(struct LDKUntrustedString this_obj);
5944         public static native void UntrustedString_free(long this_obj);
5945         // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr);
5946         public static native String UntrustedString_get_a(long this_ptr);
5947         // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val);
5948         public static native void UntrustedString_set_a(long this_ptr, String val);
5949         // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg);
5950         public static native long UntrustedString_new(String a_arg);
5951         // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg);
5952         public static native long UntrustedString_clone_ptr(long arg);
5953         // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig);
5954         public static native long UntrustedString_clone(long orig);
5955         // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b);
5956         public static native boolean UntrustedString_eq(long a, long b);
5957         // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj);
5958         public static native byte[] UntrustedString_write(long obj);
5959         // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser);
5960         public static native long UntrustedString_read(byte[] ser);
5961         // void PrintableString_free(struct LDKPrintableString this_obj);
5962         public static native void PrintableString_free(long this_obj);
5963         // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
5964         public static native String PrintableString_get_a(long this_ptr);
5965         // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
5966         public static native void PrintableString_set_a(long this_ptr, String val);
5967         // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
5968         public static native long PrintableString_new(String a_arg);
5969         // void FutureCallback_free(struct LDKFutureCallback this_ptr);
5970         public static native void FutureCallback_free(long this_ptr);
5971         // void Future_free(struct LDKFuture this_obj);
5972         public static native void Future_free(long this_obj);
5973         // uint64_t Future_clone_ptr(LDKFuture *NONNULL_PTR arg);
5974         public static native long Future_clone_ptr(long arg);
5975         // struct LDKFuture Future_clone(const struct LDKFuture *NONNULL_PTR orig);
5976         public static native long Future_clone(long orig);
5977         // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
5978         public static native void Future_register_callback_fn(long this_arg, long callback);
5979         // void Future_wait(struct LDKFuture this_arg);
5980         public static native void Future_wait(long this_arg);
5981         // MUST_USE_RES bool Future_wait_timeout(struct LDKFuture this_arg, uint64_t max_wait);
5982         public static native boolean Future_wait_timeout(long this_arg, long max_wait);
5983         // void Sleeper_free(struct LDKSleeper this_obj);
5984         public static native void Sleeper_free(long this_obj);
5985         // MUST_USE_RES struct LDKSleeper Sleeper_from_single_future(struct LDKFuture future);
5986         public static native long Sleeper_from_single_future(long future);
5987         // MUST_USE_RES struct LDKSleeper Sleeper_from_two_futures(struct LDKFuture fut_a, struct LDKFuture fut_b);
5988         public static native long Sleeper_from_two_futures(long fut_a, long fut_b);
5989         // MUST_USE_RES struct LDKSleeper Sleeper_new(struct LDKCVec_FutureZ futures);
5990         public static native long Sleeper_new(long[] futures);
5991         // void Sleeper_wait(const struct LDKSleeper *NONNULL_PTR this_arg);
5992         public static native void Sleeper_wait(long this_arg);
5993         // MUST_USE_RES bool Sleeper_wait_timeout(const struct LDKSleeper *NONNULL_PTR this_arg, uint64_t max_wait);
5994         public static native boolean Sleeper_wait_timeout(long this_arg, long max_wait);
5995         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
5996         public static native Level Level_clone(long orig);
5997         // enum LDKLevel Level_gossip(void);
5998         public static native Level Level_gossip();
5999         // enum LDKLevel Level_trace(void);
6000         public static native Level Level_trace();
6001         // enum LDKLevel Level_debug(void);
6002         public static native Level Level_debug();
6003         // enum LDKLevel Level_info(void);
6004         public static native Level Level_info();
6005         // enum LDKLevel Level_warn(void);
6006         public static native Level Level_warn();
6007         // enum LDKLevel Level_error(void);
6008         public static native Level Level_error();
6009         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
6010         public static native boolean Level_eq(long a, long b);
6011         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
6012         public static native long Level_hash(long o);
6013         // MUST_USE_RES enum LDKLevel Level_max(void);
6014         public static native Level Level_max();
6015         // void Record_free(struct LDKRecord this_obj);
6016         public static native void Record_free(long this_obj);
6017         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
6018         public static native Level Record_get_level(long this_ptr);
6019         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
6020         public static native void Record_set_level(long this_ptr, Level val);
6021         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
6022         public static native String Record_get_args(long this_ptr);
6023         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6024         public static native void Record_set_args(long this_ptr, String val);
6025         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
6026         public static native String Record_get_module_path(long this_ptr);
6027         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6028         public static native void Record_set_module_path(long this_ptr, String val);
6029         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
6030         public static native String Record_get_file(long this_ptr);
6031         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6032         public static native void Record_set_file(long this_ptr, String val);
6033         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
6034         public static native int Record_get_line(long this_ptr);
6035         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
6036         public static native void Record_set_line(long this_ptr, int val);
6037         // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
6038         public static native long Record_clone_ptr(long arg);
6039         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
6040         public static native long Record_clone(long orig);
6041         // void Logger_free(struct LDKLogger this_ptr);
6042         public static native void Logger_free(long this_ptr);
6043         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
6044         public static native void ChannelHandshakeConfig_free(long this_obj);
6045         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6046         public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
6047         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
6048         public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
6049         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6050         public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
6051         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
6052         public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
6053         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6054         public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
6055         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
6056         public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
6057         // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6058         public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
6059         // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
6060         public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
6061         // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6062         public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
6063         // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6064         public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
6065         // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6066         public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
6067         // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6068         public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
6069         // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6070         public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
6071         // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6072         public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
6073         // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6074         public static native int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long this_ptr);
6075         // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
6076         public static native void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long this_ptr, int val);
6077         // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6078         public static native boolean ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(long this_ptr);
6079         // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6080         public static native void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(long this_ptr, boolean val);
6081         // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6082         public static native short ChannelHandshakeConfig_get_our_max_accepted_htlcs(long this_ptr);
6083         // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
6084         public static native void ChannelHandshakeConfig_set_our_max_accepted_htlcs(long this_ptr, short val);
6085         // 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);
6086         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);
6087         // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
6088         public static native long ChannelHandshakeConfig_clone_ptr(long arg);
6089         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
6090         public static native long ChannelHandshakeConfig_clone(long orig);
6091         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
6092         public static native long ChannelHandshakeConfig_default();
6093         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
6094         public static native void ChannelHandshakeLimits_free(long this_obj);
6095         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6096         public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
6097         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6098         public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
6099         // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6100         public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
6101         // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6102         public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
6103         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6104         public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
6105         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6106         public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
6107         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6108         public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
6109         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6110         public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
6111         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6112         public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
6113         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6114         public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
6115         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6116         public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
6117         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
6118         public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
6119         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6120         public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
6121         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
6122         public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
6123         // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6124         public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
6125         // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
6126         public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
6127         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6128         public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
6129         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
6130         public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
6131         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6132         public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
6133         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
6134         public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
6135         // 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);
6136         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);
6137         // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
6138         public static native long ChannelHandshakeLimits_clone_ptr(long arg);
6139         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
6140         public static native long ChannelHandshakeLimits_clone(long orig);
6141         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
6142         public static native long ChannelHandshakeLimits_default();
6143         // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr);
6144         public static native void MaxDustHTLCExposure_free(long this_ptr);
6145         // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg);
6146         public static native long MaxDustHTLCExposure_clone_ptr(long arg);
6147         // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig);
6148         public static native long MaxDustHTLCExposure_clone(long orig);
6149         // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a);
6150         public static native long MaxDustHTLCExposure_fixed_limit_msat(long a);
6151         // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a);
6152         public static native long MaxDustHTLCExposure_fee_rate_multiplier(long a);
6153         // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b);
6154         public static native boolean MaxDustHTLCExposure_eq(long a, long b);
6155         // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj);
6156         public static native byte[] MaxDustHTLCExposure_write(long obj);
6157         // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser);
6158         public static native long MaxDustHTLCExposure_read(byte[] ser);
6159         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
6160         public static native void ChannelConfig_free(long this_obj);
6161         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6162         public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
6163         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
6164         public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
6165         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6166         public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
6167         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
6168         public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
6169         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6170         public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
6171         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
6172         public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
6173         // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6174         public static native long ChannelConfig_get_max_dust_htlc_exposure(long this_ptr);
6175         // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val);
6176         public static native void ChannelConfig_set_max_dust_htlc_exposure(long this_ptr, long val);
6177         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6178         public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
6179         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
6180         public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
6181         // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6182         public static native boolean ChannelConfig_get_accept_underpaying_htlcs(long this_ptr);
6183         // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
6184         public static native void ChannelConfig_set_accept_underpaying_htlcs(long this_ptr, boolean val);
6185         // 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);
6186         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);
6187         // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
6188         public static native long ChannelConfig_clone_ptr(long arg);
6189         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
6190         public static native long ChannelConfig_clone(long orig);
6191         // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
6192         public static native boolean ChannelConfig_eq(long a, long b);
6193         // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update);
6194         public static native void ChannelConfig_apply(long this_arg, long update);
6195         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
6196         public static native long ChannelConfig_default();
6197         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
6198         public static native byte[] ChannelConfig_write(long obj);
6199         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
6200         public static native long ChannelConfig_read(byte[] ser);
6201         // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj);
6202         public static native void ChannelConfigUpdate_free(long this_obj);
6203         // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6204         public static native long ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(long this_ptr);
6205         // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6206         public static native void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(long this_ptr, long val);
6207         // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6208         public static native long ChannelConfigUpdate_get_forwarding_fee_base_msat(long this_ptr);
6209         // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6210         public static native void ChannelConfigUpdate_set_forwarding_fee_base_msat(long this_ptr, long val);
6211         // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6212         public static native long ChannelConfigUpdate_get_cltv_expiry_delta(long this_ptr);
6213         // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
6214         public static native void ChannelConfigUpdate_set_cltv_expiry_delta(long this_ptr, long val);
6215         // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6216         public static native long ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(long this_ptr);
6217         // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val);
6218         public static native void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
6219         // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
6220         public static native long ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
6221         // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6222         public static native void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
6223         // 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);
6224         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);
6225         // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void);
6226         public static native long ChannelConfigUpdate_default();
6227         // void UserConfig_free(struct LDKUserConfig this_obj);
6228         public static native void UserConfig_free(long this_obj);
6229         // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6230         public static native long UserConfig_get_channel_handshake_config(long this_ptr);
6231         // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
6232         public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
6233         // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6234         public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
6235         // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
6236         public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
6237         // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6238         public static native long UserConfig_get_channel_config(long this_ptr);
6239         // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
6240         public static native void UserConfig_set_channel_config(long this_ptr, long val);
6241         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6242         public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
6243         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6244         public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
6245         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6246         public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
6247         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6248         public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
6249         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6250         public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
6251         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6252         public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
6253         // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6254         public static native boolean UserConfig_get_accept_intercept_htlcs(long this_ptr);
6255         // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6256         public static native void UserConfig_set_accept_intercept_htlcs(long this_ptr, boolean val);
6257         // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr);
6258         public static native boolean UserConfig_get_accept_mpp_keysend(long this_ptr);
6259         // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
6260         public static native void UserConfig_set_accept_mpp_keysend(long this_ptr, boolean val);
6261         // 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);
6262         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);
6263         // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
6264         public static native long UserConfig_clone_ptr(long arg);
6265         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
6266         public static native long UserConfig_clone(long orig);
6267         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
6268         public static native long UserConfig_default();
6269         // void BestBlock_free(struct LDKBestBlock this_obj);
6270         public static native void BestBlock_free(long this_obj);
6271         // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
6272         public static native long BestBlock_clone_ptr(long arg);
6273         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
6274         public static native long BestBlock_clone(long orig);
6275         // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
6276         public static native boolean BestBlock_eq(long a, long b);
6277         // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
6278         public static native long BestBlock_from_network(Network network);
6279         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
6280         public static native long BestBlock_new(byte[] block_hash, int height);
6281         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
6282         public static native byte[] BestBlock_block_hash(long this_arg);
6283         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
6284         public static native int BestBlock_height(long this_arg);
6285         // void Listen_free(struct LDKListen this_ptr);
6286         public static native void Listen_free(long this_ptr);
6287         // void Confirm_free(struct LDKConfirm this_ptr);
6288         public static native void Confirm_free(long this_ptr);
6289         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
6290         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long orig);
6291         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
6292         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed();
6293         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
6294         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress();
6295         // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure(void);
6296         public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure();
6297         // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
6298         public static native boolean ChannelMonitorUpdateStatus_eq(long a, long b);
6299         // void Watch_free(struct LDKWatch this_ptr);
6300         public static native void Watch_free(long this_ptr);
6301         // void Filter_free(struct LDKFilter this_ptr);
6302         public static native void Filter_free(long this_ptr);
6303         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
6304         public static native void WatchedOutput_free(long this_obj);
6305         // struct LDKCOption_BlockHashZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
6306         public static native long WatchedOutput_get_block_hash(long this_ptr);
6307         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_BlockHashZ val);
6308         public static native void WatchedOutput_set_block_hash(long this_ptr, long val);
6309         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
6310         public static native long WatchedOutput_get_outpoint(long this_ptr);
6311         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
6312         public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
6313         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
6314         public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
6315         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
6316         public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
6317         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_BlockHashZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
6318         public static native long WatchedOutput_new(long block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
6319         // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
6320         public static native long WatchedOutput_clone_ptr(long arg);
6321         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
6322         public static native long WatchedOutput_clone(long orig);
6323         // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
6324         public static native boolean WatchedOutput_eq(long a, long b);
6325         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
6326         public static native long WatchedOutput_hash(long o);
6327         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
6328         public static native void BroadcasterInterface_free(long this_ptr);
6329         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
6330         public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
6331         // enum LDKConfirmationTarget ConfirmationTarget_mempool_minimum(void);
6332         public static native ConfirmationTarget ConfirmationTarget_mempool_minimum();
6333         // enum LDKConfirmationTarget ConfirmationTarget_background(void);
6334         public static native ConfirmationTarget ConfirmationTarget_background();
6335         // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
6336         public static native ConfirmationTarget ConfirmationTarget_normal();
6337         // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
6338         public static native ConfirmationTarget ConfirmationTarget_high_priority();
6339         // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
6340         public static native long ConfirmationTarget_hash(long o);
6341         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
6342         public static native boolean ConfirmationTarget_eq(long a, long b);
6343         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
6344         public static native void FeeEstimator_free(long this_ptr);
6345         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
6346         public static native void MonitorUpdateId_free(long this_obj);
6347         // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
6348         public static native long MonitorUpdateId_clone_ptr(long arg);
6349         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
6350         public static native long MonitorUpdateId_clone(long orig);
6351         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
6352         public static native long MonitorUpdateId_hash(long o);
6353         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
6354         public static native boolean MonitorUpdateId_eq(long a, long b);
6355         // void Persist_free(struct LDKPersist this_ptr);
6356         public static native void Persist_free(long this_ptr);
6357         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
6358         public static native void LockedChannelMonitor_free(long this_obj);
6359         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
6360         public static native void ChainMonitor_free(long this_obj);
6361         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
6362         public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
6363         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
6364         public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
6365         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
6366         public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
6367         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6368         public static native long[] ChainMonitor_list_monitors(long this_arg);
6369         // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6370         public static native long[] ChainMonitor_list_pending_monitor_updates(long this_arg);
6371         // 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);
6372         public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
6373         // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6374         public static native long ChainMonitor_get_update_future(long this_arg);
6375         // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6376         public static native void ChainMonitor_rebroadcast_pending_claims(long this_arg);
6377         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6378         public static native long ChainMonitor_as_Listen(long this_arg);
6379         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6380         public static native long ChainMonitor_as_Confirm(long this_arg);
6381         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6382         public static native long ChainMonitor_as_Watch(long this_arg);
6383         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
6384         public static native long ChainMonitor_as_EventsProvider(long this_arg);
6385         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
6386         public static native void ChannelMonitorUpdate_free(long this_obj);
6387         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
6388         public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
6389         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
6390         public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
6391         // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
6392         public static native long ChannelMonitorUpdate_clone_ptr(long arg);
6393         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
6394         public static native long ChannelMonitorUpdate_clone(long orig);
6395         // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b);
6396         public static native boolean ChannelMonitorUpdate_eq(long a, long b);
6397         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
6398         public static native byte[] ChannelMonitorUpdate_write(long obj);
6399         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
6400         public static native long ChannelMonitorUpdate_read(byte[] ser);
6401         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
6402         public static native void MonitorEvent_free(long this_ptr);
6403         // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
6404         public static native long MonitorEvent_clone_ptr(long arg);
6405         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
6406         public static native long MonitorEvent_clone(long orig);
6407         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
6408         public static native long MonitorEvent_htlcevent(long a);
6409         // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
6410         public static native long MonitorEvent_commitment_tx_confirmed(long a);
6411         // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
6412         public static native long MonitorEvent_completed(long funding_txo, long monitor_update_id);
6413         // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
6414         public static native long MonitorEvent_update_failed(long a);
6415         // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
6416         public static native boolean MonitorEvent_eq(long a, long b);
6417         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
6418         public static native byte[] MonitorEvent_write(long obj);
6419         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
6420         public static native long MonitorEvent_read(byte[] ser);
6421         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
6422         public static native void HTLCUpdate_free(long this_obj);
6423         // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
6424         public static native long HTLCUpdate_clone_ptr(long arg);
6425         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
6426         public static native long HTLCUpdate_clone(long orig);
6427         // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
6428         public static native boolean HTLCUpdate_eq(long a, long b);
6429         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
6430         public static native byte[] HTLCUpdate_write(long obj);
6431         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
6432         public static native long HTLCUpdate_read(byte[] ser);
6433         // void Balance_free(struct LDKBalance this_ptr);
6434         public static native void Balance_free(long this_ptr);
6435         // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
6436         public static native long Balance_clone_ptr(long arg);
6437         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
6438         public static native long Balance_clone(long orig);
6439         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis);
6440         public static native long Balance_claimable_on_channel_close(long amount_satoshis);
6441         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height);
6442         public static native long Balance_claimable_awaiting_confirmations(long amount_satoshis, int confirmation_height);
6443         // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage);
6444         public static native long Balance_contentious_claimable(long amount_satoshis, int timeout_height, byte[] payment_hash, byte[] payment_preimage);
6445         // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash);
6446         public static native long Balance_maybe_timeout_claimable_htlc(long amount_satoshis, int claimable_height, byte[] payment_hash);
6447         // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash);
6448         public static native long Balance_maybe_preimage_claimable_htlc(long amount_satoshis, int expiry_height, byte[] payment_hash);
6449         // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis);
6450         public static native long Balance_counterparty_revoked_output_claimable(long amount_satoshis);
6451         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
6452         public static native boolean Balance_eq(long a, long b);
6453         // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg);
6454         public static native long Balance_claimable_amount_satoshis(long this_arg);
6455         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
6456         public static native void ChannelMonitor_free(long this_obj);
6457         // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
6458         public static native long ChannelMonitor_clone_ptr(long arg);
6459         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
6460         public static native long ChannelMonitor_clone(long orig);
6461         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
6462         public static native byte[] ChannelMonitor_write(long obj);
6463         // 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, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
6464         public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
6465         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6466         public static native long ChannelMonitor_get_latest_update_id(long this_arg);
6467         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6468         public static native long ChannelMonitor_get_funding_txo(long this_arg);
6469         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6470         public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
6471         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
6472         public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
6473         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6474         public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
6475         // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler);
6476         public static native void ChannelMonitor_process_pending_events(long this_arg, long handler);
6477         // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6478         public static native byte[] ChannelMonitor_get_counterparty_node_id(long this_arg);
6479         // 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);
6480         public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
6481         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
6482         public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
6483         // 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);
6484         public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
6485         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
6486         public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
6487         // 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);
6488         public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
6489         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
6490         public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
6491         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6492         public static native long[] ChannelMonitor_get_relevant_txids(long this_arg);
6493         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6494         public static native long ChannelMonitor_current_best_block(long this_arg);
6495         // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
6496         public static native void ChannelMonitor_rebroadcast_pending_claims(long this_arg, long broadcaster, long fee_estimator, long logger);
6497         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
6498         public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
6499         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
6500         public static native long C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser, long arg_a, long arg_b);
6501         // void OutPoint_free(struct LDKOutPoint this_obj);
6502         public static native void OutPoint_free(long this_obj);
6503         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
6504         public static native byte[] OutPoint_get_txid(long this_ptr);
6505         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6506         public static native void OutPoint_set_txid(long this_ptr, byte[] val);
6507         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
6508         public static native short OutPoint_get_index(long this_ptr);
6509         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
6510         public static native void OutPoint_set_index(long this_ptr, short val);
6511         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
6512         public static native long OutPoint_new(byte[] txid_arg, short index_arg);
6513         // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
6514         public static native long OutPoint_clone_ptr(long arg);
6515         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
6516         public static native long OutPoint_clone(long orig);
6517         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
6518         public static native boolean OutPoint_eq(long a, long b);
6519         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
6520         public static native long OutPoint_hash(long o);
6521         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
6522         public static native byte[] OutPoint_to_channel_id(long this_arg);
6523         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
6524         public static native byte[] OutPoint_write(long obj);
6525         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
6526         public static native long OutPoint_read(byte[] ser);
6527         // enum LDKFailureCode FailureCode_clone(const enum LDKFailureCode *NONNULL_PTR orig);
6528         public static native FailureCode FailureCode_clone(long orig);
6529         // enum LDKFailureCode FailureCode_temporary_node_failure(void);
6530         public static native FailureCode FailureCode_temporary_node_failure();
6531         // enum LDKFailureCode FailureCode_required_node_feature_missing(void);
6532         public static native FailureCode FailureCode_required_node_feature_missing();
6533         // enum LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
6534         public static native FailureCode FailureCode_incorrect_or_unknown_payment_details();
6535         // void ChannelManager_free(struct LDKChannelManager this_obj);
6536         public static native void ChannelManager_free(long this_obj);
6537         // void ChainParameters_free(struct LDKChainParameters this_obj);
6538         public static native void ChainParameters_free(long this_obj);
6539         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
6540         public static native Network ChainParameters_get_network(long this_ptr);
6541         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
6542         public static native void ChainParameters_set_network(long this_ptr, Network val);
6543         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
6544         public static native long ChainParameters_get_best_block(long this_ptr);
6545         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
6546         public static native void ChainParameters_set_best_block(long this_ptr, long val);
6547         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
6548         public static native long ChainParameters_new(Network network_arg, long best_block_arg);
6549         // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
6550         public static native long ChainParameters_clone_ptr(long arg);
6551         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
6552         public static native long ChainParameters_clone(long orig);
6553         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
6554         public static native void CounterpartyForwardingInfo_free(long this_obj);
6555         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
6556         public static native int CounterpartyForwardingInfo_get_fee_base_msat(long this_ptr);
6557         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
6558         public static native void CounterpartyForwardingInfo_set_fee_base_msat(long this_ptr, int val);
6559         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
6560         public static native int CounterpartyForwardingInfo_get_fee_proportional_millionths(long this_ptr);
6561         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
6562         public static native void CounterpartyForwardingInfo_set_fee_proportional_millionths(long this_ptr, int val);
6563         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
6564         public static native short CounterpartyForwardingInfo_get_cltv_expiry_delta(long this_ptr);
6565         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
6566         public static native void CounterpartyForwardingInfo_set_cltv_expiry_delta(long this_ptr, short val);
6567         // 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);
6568         public static native long CounterpartyForwardingInfo_new(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg);
6569         // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
6570         public static native long CounterpartyForwardingInfo_clone_ptr(long arg);
6571         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
6572         public static native long CounterpartyForwardingInfo_clone(long orig);
6573         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
6574         public static native void ChannelCounterparty_free(long this_obj);
6575         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6576         public static native byte[] ChannelCounterparty_get_node_id(long this_ptr);
6577         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6578         public static native void ChannelCounterparty_set_node_id(long this_ptr, byte[] val);
6579         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6580         public static native long ChannelCounterparty_get_features(long this_ptr);
6581         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
6582         public static native void ChannelCounterparty_set_features(long this_ptr, long val);
6583         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6584         public static native long ChannelCounterparty_get_unspendable_punishment_reserve(long this_ptr);
6585         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
6586         public static native void ChannelCounterparty_set_unspendable_punishment_reserve(long this_ptr, long val);
6587         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6588         public static native long ChannelCounterparty_get_forwarding_info(long this_ptr);
6589         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
6590         public static native void ChannelCounterparty_set_forwarding_info(long this_ptr, long val);
6591         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6592         public static native long ChannelCounterparty_get_outbound_htlc_minimum_msat(long this_ptr);
6593         // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6594         public static native void ChannelCounterparty_set_outbound_htlc_minimum_msat(long this_ptr, long val);
6595         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
6596         public static native long ChannelCounterparty_get_outbound_htlc_maximum_msat(long this_ptr);
6597         // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6598         public static native void ChannelCounterparty_set_outbound_htlc_maximum_msat(long this_ptr, long val);
6599         // 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);
6600         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);
6601         // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
6602         public static native long ChannelCounterparty_clone_ptr(long arg);
6603         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
6604         public static native long ChannelCounterparty_clone(long orig);
6605         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
6606         public static native void ChannelDetails_free(long this_obj);
6607         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
6608         public static native byte[] ChannelDetails_get_channel_id(long this_ptr);
6609         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6610         public static native void ChannelDetails_set_channel_id(long this_ptr, byte[] val);
6611         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6612         public static native long ChannelDetails_get_counterparty(long this_ptr);
6613         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
6614         public static native void ChannelDetails_set_counterparty(long this_ptr, long val);
6615         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6616         public static native long ChannelDetails_get_funding_txo(long this_ptr);
6617         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
6618         public static native void ChannelDetails_set_funding_txo(long this_ptr, long val);
6619         // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6620         public static native long ChannelDetails_get_channel_type(long this_ptr);
6621         // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
6622         public static native void ChannelDetails_set_channel_type(long this_ptr, long val);
6623         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6624         public static native long ChannelDetails_get_short_channel_id(long this_ptr);
6625         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6626         public static native void ChannelDetails_set_short_channel_id(long this_ptr, long val);
6627         // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6628         public static native long ChannelDetails_get_outbound_scid_alias(long this_ptr);
6629         // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6630         public static native void ChannelDetails_set_outbound_scid_alias(long this_ptr, long val);
6631         // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6632         public static native long ChannelDetails_get_inbound_scid_alias(long this_ptr);
6633         // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6634         public static native void ChannelDetails_set_inbound_scid_alias(long this_ptr, long val);
6635         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6636         public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
6637         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
6638         public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
6639         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6640         public static native long ChannelDetails_get_unspendable_punishment_reserve(long this_ptr);
6641         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6642         public static native void ChannelDetails_set_unspendable_punishment_reserve(long this_ptr, long val);
6643         // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6644         public static native byte[] ChannelDetails_get_user_channel_id(long this_ptr);
6645         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val);
6646         public static native void ChannelDetails_set_user_channel_id(long this_ptr, byte[] val);
6647         // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6648         public static native long ChannelDetails_get_feerate_sat_per_1000_weight(long this_ptr);
6649         // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6650         public static native void ChannelDetails_set_feerate_sat_per_1000_weight(long this_ptr, long val);
6651         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6652         public static native long ChannelDetails_get_balance_msat(long this_ptr);
6653         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
6654         public static native void ChannelDetails_set_balance_msat(long this_ptr, long val);
6655         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6656         public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
6657         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
6658         public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
6659         // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6660         public static native long ChannelDetails_get_next_outbound_htlc_limit_msat(long this_ptr);
6661         // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
6662         public static native void ChannelDetails_set_next_outbound_htlc_limit_msat(long this_ptr, long val);
6663         // uint64_t ChannelDetails_get_next_outbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6664         public static native long ChannelDetails_get_next_outbound_htlc_minimum_msat(long this_ptr);
6665         // void ChannelDetails_set_next_outbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
6666         public static native void ChannelDetails_set_next_outbound_htlc_minimum_msat(long this_ptr, long val);
6667         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6668         public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
6669         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
6670         public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
6671         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6672         public static native long ChannelDetails_get_confirmations_required(long this_ptr);
6673         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6674         public static native void ChannelDetails_set_confirmations_required(long this_ptr, long val);
6675         // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6676         public static native long ChannelDetails_get_confirmations(long this_ptr);
6677         // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
6678         public static native void ChannelDetails_set_confirmations(long this_ptr, long val);
6679         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6680         public static native long ChannelDetails_get_force_close_spend_delay(long this_ptr);
6681         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
6682         public static native void ChannelDetails_set_force_close_spend_delay(long this_ptr, long val);
6683         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6684         public static native boolean ChannelDetails_get_is_outbound(long this_ptr);
6685         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
6686         public static native void ChannelDetails_set_is_outbound(long this_ptr, boolean val);
6687         // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6688         public static native boolean ChannelDetails_get_is_channel_ready(long this_ptr);
6689         // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
6690         public static native void ChannelDetails_set_is_channel_ready(long this_ptr, boolean val);
6691         // struct LDKCOption_ChannelShutdownStateZ ChannelDetails_get_channel_shutdown_state(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6692         public static native long ChannelDetails_get_channel_shutdown_state(long this_ptr);
6693         // void ChannelDetails_set_channel_shutdown_state(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_ChannelShutdownStateZ val);
6694         public static native void ChannelDetails_set_channel_shutdown_state(long this_ptr, long val);
6695         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6696         public static native boolean ChannelDetails_get_is_usable(long this_ptr);
6697         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
6698         public static native void ChannelDetails_set_is_usable(long this_ptr, boolean val);
6699         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6700         public static native boolean ChannelDetails_get_is_public(long this_ptr);
6701         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
6702         public static native void ChannelDetails_set_is_public(long this_ptr, boolean val);
6703         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6704         public static native long ChannelDetails_get_inbound_htlc_minimum_msat(long this_ptr);
6705         // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6706         public static native void ChannelDetails_set_inbound_htlc_minimum_msat(long this_ptr, long val);
6707         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6708         public static native long ChannelDetails_get_inbound_htlc_maximum_msat(long this_ptr);
6709         // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6710         public static native void ChannelDetails_set_inbound_htlc_maximum_msat(long this_ptr, long val);
6711         // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
6712         public static native long ChannelDetails_get_config(long this_ptr);
6713         // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
6714         public static native void ChannelDetails_set_config(long this_ptr, long val);
6715         // 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);
6716         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);
6717         // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
6718         public static native long ChannelDetails_clone_ptr(long arg);
6719         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
6720         public static native long ChannelDetails_clone(long orig);
6721         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
6722         public static native long ChannelDetails_get_inbound_payment_scid(long this_arg);
6723         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
6724         public static native long ChannelDetails_get_outbound_payment_scid(long this_arg);
6725         // enum LDKChannelShutdownState ChannelShutdownState_clone(const enum LDKChannelShutdownState *NONNULL_PTR orig);
6726         public static native ChannelShutdownState ChannelShutdownState_clone(long orig);
6727         // enum LDKChannelShutdownState ChannelShutdownState_not_shutting_down(void);
6728         public static native ChannelShutdownState ChannelShutdownState_not_shutting_down();
6729         // enum LDKChannelShutdownState ChannelShutdownState_shutdown_initiated(void);
6730         public static native ChannelShutdownState ChannelShutdownState_shutdown_initiated();
6731         // enum LDKChannelShutdownState ChannelShutdownState_resolving_htlcs(void);
6732         public static native ChannelShutdownState ChannelShutdownState_resolving_htlcs();
6733         // enum LDKChannelShutdownState ChannelShutdownState_negotiating_closing_fee(void);
6734         public static native ChannelShutdownState ChannelShutdownState_negotiating_closing_fee();
6735         // enum LDKChannelShutdownState ChannelShutdownState_shutdown_complete(void);
6736         public static native ChannelShutdownState ChannelShutdownState_shutdown_complete();
6737         // bool ChannelShutdownState_eq(const enum LDKChannelShutdownState *NONNULL_PTR a, const enum LDKChannelShutdownState *NONNULL_PTR b);
6738         public static native boolean ChannelShutdownState_eq(long a, long b);
6739         // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr);
6740         public static native void RecentPaymentDetails_free(long this_ptr);
6741         // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg);
6742         public static native long RecentPaymentDetails_clone_ptr(long arg);
6743         // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig);
6744         public static native long RecentPaymentDetails_clone(long orig);
6745         // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat);
6746         public static native long RecentPaymentDetails_pending(byte[] payment_hash, long total_msat);
6747         // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKCOption_PaymentHashZ payment_hash);
6748         public static native long RecentPaymentDetails_fulfilled(long payment_hash);
6749         // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_hash);
6750         public static native long RecentPaymentDetails_abandoned(byte[] payment_hash);
6751         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
6752         public static native void PhantomRouteHints_free(long this_obj);
6753         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
6754         public static native long[] PhantomRouteHints_get_channels(long this_ptr);
6755         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
6756         public static native void PhantomRouteHints_set_channels(long this_ptr, long[] val);
6757         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
6758         public static native long PhantomRouteHints_get_phantom_scid(long this_ptr);
6759         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
6760         public static native void PhantomRouteHints_set_phantom_scid(long this_ptr, long val);
6761         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
6762         public static native byte[] PhantomRouteHints_get_real_node_pubkey(long this_ptr);
6763         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6764         public static native void PhantomRouteHints_set_real_node_pubkey(long this_ptr, byte[] val);
6765         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
6766         public static native long PhantomRouteHints_new(long[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg);
6767         // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
6768         public static native long PhantomRouteHints_clone_ptr(long arg);
6769         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
6770         public static native long PhantomRouteHints_clone(long orig);
6771         // 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);
6772         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);
6773         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
6774         public static native long ChannelManager_get_current_default_configuration(long this_arg);
6775         // MUST_USE_RES struct LDKCResult__u832APIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKUserConfig override_config);
6776         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);
6777         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
6778         public static native long[] ChannelManager_list_channels(long this_arg);
6779         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
6780         public static native long[] ChannelManager_list_usable_channels(long this_arg);
6781         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id);
6782         public static native long[] ChannelManager_list_channels_with_counterparty(long this_arg, byte[] counterparty_node_id);
6783         // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg);
6784         public static native long[] ChannelManager_list_recent_payments(long this_arg);
6785         // 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);
6786         public static native long ChannelManager_close_channel(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
6787         // 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);
6788         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);
6789         // 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);
6790         public static native long ChannelManager_force_close_broadcasting_latest_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
6791         // 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);
6792         public static native long ChannelManager_force_close_without_broadcasting_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
6793         // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
6794         public static native void ChannelManager_force_close_all_channels_broadcasting_latest_txn(long this_arg);
6795         // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
6796         public static native void ChannelManager_force_close_all_channels_without_broadcasting_txn(long this_arg);
6797         // 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);
6798         public static native long ChannelManager_send_payment_with_route(long this_arg, long route, byte[] payment_hash, long recipient_onion, byte[] payment_id);
6799         // 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);
6800         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);
6801         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
6802         public static native void ChannelManager_abandon_payment(long this_arg, byte[] payment_id);
6803         // MUST_USE_RES struct LDKCResult_PaymentHashPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id);
6804         public static native long ChannelManager_send_spontaneous_payment(long this_arg, long route, long payment_preimage, long recipient_onion, byte[] payment_id);
6805         // MUST_USE_RES struct LDKCResult_PaymentHashRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy);
6806         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);
6807         // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path);
6808         public static native long ChannelManager_send_probe(long this_arg, long path);
6809         // 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);
6810         public static native long ChannelManager_funding_transaction_generated(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] funding_transaction);
6811         // 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);
6812         public static native long ChannelManager_update_partial_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config_update);
6813         // 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);
6814         public static native long ChannelManager_update_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config);
6815         // 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);
6816         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);
6817         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id);
6818         public static native long ChannelManager_fail_intercepted_htlc(long this_arg, byte[] intercept_id);
6819         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
6820         public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
6821         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
6822         public static native void ChannelManager_timer_tick_occurred(long this_arg);
6823         // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
6824         public static native void ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash);
6825         // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], enum LDKFailureCode failure_code);
6826         public static native void ChannelManager_fail_htlc_backwards_with_reason(long this_arg, byte[] payment_hash, FailureCode failure_code);
6827         // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
6828         public static native void ChannelManager_claim_funds(long this_arg, byte[] payment_preimage);
6829         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
6830         public static native byte[] ChannelManager_get_our_node_id(long this_arg);
6831         // 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);
6832         public static native long ChannelManager_accept_inbound_channel(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
6833         // 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);
6834         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);
6835         // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
6836         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);
6837         // MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry);
6838         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);
6839         // MUST_USE_RES struct LDKCResult_PaymentPreimageAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
6840         public static native long ChannelManager_get_payment_preimage(long this_arg, byte[] payment_hash, byte[] payment_secret);
6841         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
6842         public static native long ChannelManager_get_phantom_scid(long this_arg);
6843         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
6844         public static native long ChannelManager_get_phantom_route_hints(long this_arg);
6845         // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
6846         public static native long ChannelManager_get_intercept_scid(long this_arg);
6847         // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg);
6848         public static native long ChannelManager_compute_inflight_htlcs(long this_arg);
6849         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
6850         public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
6851         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
6852         public static native long ChannelManager_as_EventsProvider(long this_arg);
6853         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
6854         public static native long ChannelManager_as_Listen(long this_arg);
6855         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
6856         public static native long ChannelManager_as_Confirm(long this_arg);
6857         // MUST_USE_RES struct LDKFuture ChannelManager_get_persistable_update_future(const struct LDKChannelManager *NONNULL_PTR this_arg);
6858         public static native long ChannelManager_get_persistable_update_future(long this_arg);
6859         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
6860         public static native long ChannelManager_current_best_block(long this_arg);
6861         // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
6862         public static native long ChannelManager_node_features(long this_arg);
6863         // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
6864         public static native long ChannelManager_channel_features(long this_arg);
6865         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
6866         public static native long ChannelManager_channel_type_features(long this_arg);
6867         // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
6868         public static native long ChannelManager_init_features(long this_arg);
6869         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
6870         public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
6871         // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR config);
6872         public static native long provided_init_features(long config);
6873         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
6874         public static native byte[] CounterpartyForwardingInfo_write(long obj);
6875         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
6876         public static native long CounterpartyForwardingInfo_read(byte[] ser);
6877         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
6878         public static native byte[] ChannelCounterparty_write(long obj);
6879         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
6880         public static native long ChannelCounterparty_read(byte[] ser);
6881         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
6882         public static native byte[] ChannelDetails_write(long obj);
6883         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
6884         public static native long ChannelDetails_read(byte[] ser);
6885         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
6886         public static native byte[] PhantomRouteHints_write(long obj);
6887         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
6888         public static native long PhantomRouteHints_read(byte[] ser);
6889         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
6890         public static native byte[] ChannelManager_write(long obj);
6891         // struct LDKCVec_u8Z ChannelShutdownState_write(const enum LDKChannelShutdownState *NONNULL_PTR obj);
6892         public static native byte[] ChannelShutdownState_write(long obj);
6893         // struct LDKCResult_ChannelShutdownStateDecodeErrorZ ChannelShutdownState_read(struct LDKu8slice ser);
6894         public static native long ChannelShutdownState_read(byte[] ser);
6895         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
6896         public static native void ChannelManagerReadArgs_free(long this_obj);
6897         // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6898         public static native long ChannelManagerReadArgs_get_entropy_source(long this_ptr);
6899         // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val);
6900         public static native void ChannelManagerReadArgs_set_entropy_source(long this_ptr, long val);
6901         // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6902         public static native long ChannelManagerReadArgs_get_node_signer(long this_ptr);
6903         // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val);
6904         public static native void ChannelManagerReadArgs_set_node_signer(long this_ptr, long val);
6905         // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6906         public static native long ChannelManagerReadArgs_get_signer_provider(long this_ptr);
6907         // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val);
6908         public static native void ChannelManagerReadArgs_set_signer_provider(long this_ptr, long val);
6909         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6910         public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
6911         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
6912         public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
6913         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6914         public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
6915         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
6916         public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
6917         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6918         public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
6919         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
6920         public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
6921         // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6922         public static native long ChannelManagerReadArgs_get_router(long this_ptr);
6923         // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val);
6924         public static native void ChannelManagerReadArgs_set_router(long this_ptr, long val);
6925         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6926         public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
6927         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
6928         public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
6929         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
6930         public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
6931         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
6932         public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
6933         // 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);
6934         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);
6935         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
6936         public static native long C2Tuple_BlockHashChannelManagerZ_read(byte[] ser, long arg);
6937         // void ExpandedKey_free(struct LDKExpandedKey this_obj);
6938         public static native void ExpandedKey_free(long this_obj);
6939         // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
6940         public static native long ExpandedKey_new(byte[] key_material);
6941         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
6942         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);
6943         // struct LDKCResult_PaymentSecretNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
6944         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);
6945         // void DecodeError_free(struct LDKDecodeError this_ptr);
6946         public static native void DecodeError_free(long this_ptr);
6947         // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
6948         public static native long DecodeError_clone_ptr(long arg);
6949         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
6950         public static native long DecodeError_clone(long orig);
6951         // struct LDKDecodeError DecodeError_unknown_version(void);
6952         public static native long DecodeError_unknown_version();
6953         // struct LDKDecodeError DecodeError_unknown_required_feature(void);
6954         public static native long DecodeError_unknown_required_feature();
6955         // struct LDKDecodeError DecodeError_invalid_value(void);
6956         public static native long DecodeError_invalid_value();
6957         // struct LDKDecodeError DecodeError_short_read(void);
6958         public static native long DecodeError_short_read();
6959         // struct LDKDecodeError DecodeError_bad_length_descriptor(void);
6960         public static native long DecodeError_bad_length_descriptor();
6961         // struct LDKDecodeError DecodeError_io(enum LDKIOError a);
6962         public static native long DecodeError_io(IOError a);
6963         // struct LDKDecodeError DecodeError_unsupported_compression(void);
6964         public static native long DecodeError_unsupported_compression();
6965         // bool DecodeError_eq(const struct LDKDecodeError *NONNULL_PTR a, const struct LDKDecodeError *NONNULL_PTR b);
6966         public static native boolean DecodeError_eq(long a, long b);
6967         // void Init_free(struct LDKInit this_obj);
6968         public static native void Init_free(long this_obj);
6969         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
6970         public static native long Init_get_features(long this_ptr);
6971         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
6972         public static native void Init_set_features(long this_ptr, long val);
6973         // struct LDKCOption_CVec_ChainHashZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr);
6974         public static native long Init_get_networks(long this_ptr);
6975         // void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ChainHashZZ val);
6976         public static native void Init_set_networks(long this_ptr, long val);
6977         // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
6978         public static native long Init_get_remote_network_address(long this_ptr);
6979         // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
6980         public static native void Init_set_remote_network_address(long this_ptr, long val);
6981         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ChainHashZZ networks_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
6982         public static native long Init_new(long features_arg, long networks_arg, long remote_network_address_arg);
6983         // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
6984         public static native long Init_clone_ptr(long arg);
6985         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
6986         public static native long Init_clone(long orig);
6987         // bool Init_eq(const struct LDKInit *NONNULL_PTR a, const struct LDKInit *NONNULL_PTR b);
6988         public static native boolean Init_eq(long a, long b);
6989         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
6990         public static native void ErrorMessage_free(long this_obj);
6991         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
6992         public static native byte[] ErrorMessage_get_channel_id(long this_ptr);
6993         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6994         public static native void ErrorMessage_set_channel_id(long this_ptr, byte[] val);
6995         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
6996         public static native String ErrorMessage_get_data(long this_ptr);
6997         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
6998         public static native void ErrorMessage_set_data(long this_ptr, String val);
6999         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
7000         public static native long ErrorMessage_new(byte[] channel_id_arg, String data_arg);
7001         // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
7002         public static native long ErrorMessage_clone_ptr(long arg);
7003         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
7004         public static native long ErrorMessage_clone(long orig);
7005         // bool ErrorMessage_eq(const struct LDKErrorMessage *NONNULL_PTR a, const struct LDKErrorMessage *NONNULL_PTR b);
7006         public static native boolean ErrorMessage_eq(long a, long b);
7007         // void WarningMessage_free(struct LDKWarningMessage this_obj);
7008         public static native void WarningMessage_free(long this_obj);
7009         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
7010         public static native byte[] WarningMessage_get_channel_id(long this_ptr);
7011         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7012         public static native void WarningMessage_set_channel_id(long this_ptr, byte[] val);
7013         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
7014         public static native String WarningMessage_get_data(long this_ptr);
7015         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
7016         public static native void WarningMessage_set_data(long this_ptr, String val);
7017         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
7018         public static native long WarningMessage_new(byte[] channel_id_arg, String data_arg);
7019         // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
7020         public static native long WarningMessage_clone_ptr(long arg);
7021         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
7022         public static native long WarningMessage_clone(long orig);
7023         // bool WarningMessage_eq(const struct LDKWarningMessage *NONNULL_PTR a, const struct LDKWarningMessage *NONNULL_PTR b);
7024         public static native boolean WarningMessage_eq(long a, long b);
7025         // void Ping_free(struct LDKPing this_obj);
7026         public static native void Ping_free(long this_obj);
7027         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
7028         public static native short Ping_get_ponglen(long this_ptr);
7029         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
7030         public static native void Ping_set_ponglen(long this_ptr, short val);
7031         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
7032         public static native short Ping_get_byteslen(long this_ptr);
7033         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
7034         public static native void Ping_set_byteslen(long this_ptr, short val);
7035         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
7036         public static native long Ping_new(short ponglen_arg, short byteslen_arg);
7037         // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
7038         public static native long Ping_clone_ptr(long arg);
7039         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
7040         public static native long Ping_clone(long orig);
7041         // bool Ping_eq(const struct LDKPing *NONNULL_PTR a, const struct LDKPing *NONNULL_PTR b);
7042         public static native boolean Ping_eq(long a, long b);
7043         // void Pong_free(struct LDKPong this_obj);
7044         public static native void Pong_free(long this_obj);
7045         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
7046         public static native short Pong_get_byteslen(long this_ptr);
7047         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
7048         public static native void Pong_set_byteslen(long this_ptr, short val);
7049         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
7050         public static native long Pong_new(short byteslen_arg);
7051         // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
7052         public static native long Pong_clone_ptr(long arg);
7053         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
7054         public static native long Pong_clone(long orig);
7055         // bool Pong_eq(const struct LDKPong *NONNULL_PTR a, const struct LDKPong *NONNULL_PTR b);
7056         public static native boolean Pong_eq(long a, long b);
7057         // void OpenChannel_free(struct LDKOpenChannel this_obj);
7058         public static native void OpenChannel_free(long this_obj);
7059         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
7060         public static native byte[] OpenChannel_get_chain_hash(long this_ptr);
7061         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7062         public static native void OpenChannel_set_chain_hash(long this_ptr, byte[] val);
7063         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
7064         public static native byte[] OpenChannel_get_temporary_channel_id(long this_ptr);
7065         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7066         public static native void OpenChannel_set_temporary_channel_id(long this_ptr, byte[] val);
7067         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7068         public static native long OpenChannel_get_funding_satoshis(long this_ptr);
7069         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7070         public static native void OpenChannel_set_funding_satoshis(long this_ptr, long val);
7071         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7072         public static native long OpenChannel_get_push_msat(long this_ptr);
7073         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7074         public static native void OpenChannel_set_push_msat(long this_ptr, long val);
7075         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7076         public static native long OpenChannel_get_dust_limit_satoshis(long this_ptr);
7077         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7078         public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);
7079         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7080         public static native long OpenChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
7081         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7082         public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7083         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7084         public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
7085         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7086         public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
7087         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7088         public static native long OpenChannel_get_htlc_minimum_msat(long this_ptr);
7089         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
7090         public static native void OpenChannel_set_htlc_minimum_msat(long this_ptr, long val);
7091         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7092         public static native int OpenChannel_get_feerate_per_kw(long this_ptr);
7093         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
7094         public static native void OpenChannel_set_feerate_per_kw(long this_ptr, int val);
7095         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7096         public static native short OpenChannel_get_to_self_delay(long this_ptr);
7097         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
7098         public static native void OpenChannel_set_to_self_delay(long this_ptr, short val);
7099         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7100         public static native short OpenChannel_get_max_accepted_htlcs(long this_ptr);
7101         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
7102         public static native void OpenChannel_set_max_accepted_htlcs(long this_ptr, short val);
7103         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7104         public static native byte[] OpenChannel_get_funding_pubkey(long this_ptr);
7105         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7106         public static native void OpenChannel_set_funding_pubkey(long this_ptr, byte[] val);
7107         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7108         public static native byte[] OpenChannel_get_revocation_basepoint(long this_ptr);
7109         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7110         public static native void OpenChannel_set_revocation_basepoint(long this_ptr, byte[] val);
7111         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7112         public static native byte[] OpenChannel_get_payment_point(long this_ptr);
7113         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7114         public static native void OpenChannel_set_payment_point(long this_ptr, byte[] val);
7115         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7116         public static native byte[] OpenChannel_get_delayed_payment_basepoint(long this_ptr);
7117         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7118         public static native void OpenChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7119         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7120         public static native byte[] OpenChannel_get_htlc_basepoint(long this_ptr);
7121         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7122         public static native void OpenChannel_set_htlc_basepoint(long this_ptr, byte[] val);
7123         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7124         public static native byte[] OpenChannel_get_first_per_commitment_point(long this_ptr);
7125         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7126         public static native void OpenChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
7127         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7128         public static native byte OpenChannel_get_channel_flags(long this_ptr);
7129         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
7130         public static native void OpenChannel_set_channel_flags(long this_ptr, byte val);
7131         // struct LDKCOption_ScriptZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7132         public static native long OpenChannel_get_shutdown_scriptpubkey(long this_ptr);
7133         // void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val);
7134         public static native void OpenChannel_set_shutdown_scriptpubkey(long this_ptr, long val);
7135         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
7136         public static native long OpenChannel_get_channel_type(long this_ptr);
7137         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7138         public static native void OpenChannel_set_channel_type(long this_ptr, long val);
7139         // 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_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
7140         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);
7141         // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
7142         public static native long OpenChannel_clone_ptr(long arg);
7143         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
7144         public static native long OpenChannel_clone(long orig);
7145         // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b);
7146         public static native boolean OpenChannel_eq(long a, long b);
7147         // void OpenChannelV2_free(struct LDKOpenChannelV2 this_obj);
7148         public static native void OpenChannelV2_free(long this_obj);
7149         // const uint8_t (*OpenChannelV2_get_chain_hash(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32];
7150         public static native byte[] OpenChannelV2_get_chain_hash(long this_ptr);
7151         // void OpenChannelV2_set_chain_hash(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7152         public static native void OpenChannelV2_set_chain_hash(long this_ptr, byte[] val);
7153         // const uint8_t (*OpenChannelV2_get_temporary_channel_id(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32];
7154         public static native byte[] OpenChannelV2_get_temporary_channel_id(long this_ptr);
7155         // void OpenChannelV2_set_temporary_channel_id(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7156         public static native void OpenChannelV2_set_temporary_channel_id(long this_ptr, byte[] val);
7157         // uint32_t OpenChannelV2_get_funding_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7158         public static native int OpenChannelV2_get_funding_feerate_sat_per_1000_weight(long this_ptr);
7159         // void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7160         public static native void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(long this_ptr, int val);
7161         // uint32_t OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7162         public static native int OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(long this_ptr);
7163         // void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7164         public static native void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(long this_ptr, int val);
7165         // uint64_t OpenChannelV2_get_funding_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7166         public static native long OpenChannelV2_get_funding_satoshis(long this_ptr);
7167         // void OpenChannelV2_set_funding_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7168         public static native void OpenChannelV2_set_funding_satoshis(long this_ptr, long val);
7169         // uint64_t OpenChannelV2_get_dust_limit_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7170         public static native long OpenChannelV2_get_dust_limit_satoshis(long this_ptr);
7171         // void OpenChannelV2_set_dust_limit_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7172         public static native void OpenChannelV2_set_dust_limit_satoshis(long this_ptr, long val);
7173         // uint64_t OpenChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7174         public static native long OpenChannelV2_get_max_htlc_value_in_flight_msat(long this_ptr);
7175         // void OpenChannelV2_set_max_htlc_value_in_flight_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7176         public static native void OpenChannelV2_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7177         // uint64_t OpenChannelV2_get_htlc_minimum_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7178         public static native long OpenChannelV2_get_htlc_minimum_msat(long this_ptr);
7179         // void OpenChannelV2_set_htlc_minimum_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7180         public static native void OpenChannelV2_set_htlc_minimum_msat(long this_ptr, long val);
7181         // uint16_t OpenChannelV2_get_to_self_delay(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7182         public static native short OpenChannelV2_get_to_self_delay(long this_ptr);
7183         // void OpenChannelV2_set_to_self_delay(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7184         public static native void OpenChannelV2_set_to_self_delay(long this_ptr, short val);
7185         // uint16_t OpenChannelV2_get_max_accepted_htlcs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7186         public static native short OpenChannelV2_get_max_accepted_htlcs(long this_ptr);
7187         // void OpenChannelV2_set_max_accepted_htlcs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7188         public static native void OpenChannelV2_set_max_accepted_htlcs(long this_ptr, short val);
7189         // uint32_t OpenChannelV2_get_locktime(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7190         public static native int OpenChannelV2_get_locktime(long this_ptr);
7191         // void OpenChannelV2_set_locktime(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7192         public static native void OpenChannelV2_set_locktime(long this_ptr, int val);
7193         // struct LDKPublicKey OpenChannelV2_get_funding_pubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7194         public static native byte[] OpenChannelV2_get_funding_pubkey(long this_ptr);
7195         // void OpenChannelV2_set_funding_pubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7196         public static native void OpenChannelV2_set_funding_pubkey(long this_ptr, byte[] val);
7197         // struct LDKPublicKey OpenChannelV2_get_revocation_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7198         public static native byte[] OpenChannelV2_get_revocation_basepoint(long this_ptr);
7199         // void OpenChannelV2_set_revocation_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7200         public static native void OpenChannelV2_set_revocation_basepoint(long this_ptr, byte[] val);
7201         // struct LDKPublicKey OpenChannelV2_get_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7202         public static native byte[] OpenChannelV2_get_payment_basepoint(long this_ptr);
7203         // void OpenChannelV2_set_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7204         public static native void OpenChannelV2_set_payment_basepoint(long this_ptr, byte[] val);
7205         // struct LDKPublicKey OpenChannelV2_get_delayed_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7206         public static native byte[] OpenChannelV2_get_delayed_payment_basepoint(long this_ptr);
7207         // void OpenChannelV2_set_delayed_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7208         public static native void OpenChannelV2_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7209         // struct LDKPublicKey OpenChannelV2_get_htlc_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7210         public static native byte[] OpenChannelV2_get_htlc_basepoint(long this_ptr);
7211         // void OpenChannelV2_set_htlc_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7212         public static native void OpenChannelV2_set_htlc_basepoint(long this_ptr, byte[] val);
7213         // struct LDKPublicKey OpenChannelV2_get_first_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7214         public static native byte[] OpenChannelV2_get_first_per_commitment_point(long this_ptr);
7215         // void OpenChannelV2_set_first_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7216         public static native void OpenChannelV2_set_first_per_commitment_point(long this_ptr, byte[] val);
7217         // struct LDKPublicKey OpenChannelV2_get_second_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7218         public static native byte[] OpenChannelV2_get_second_per_commitment_point(long this_ptr);
7219         // void OpenChannelV2_set_second_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7220         public static native void OpenChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
7221         // uint8_t OpenChannelV2_get_channel_flags(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7222         public static native byte OpenChannelV2_get_channel_flags(long this_ptr);
7223         // void OpenChannelV2_set_channel_flags(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint8_t val);
7224         public static native void OpenChannelV2_set_channel_flags(long this_ptr, byte val);
7225         // struct LDKCOption_ScriptZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7226         public static native long OpenChannelV2_get_shutdown_scriptpubkey(long this_ptr);
7227         // void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val);
7228         public static native void OpenChannelV2_set_shutdown_scriptpubkey(long this_ptr, long val);
7229         // struct LDKChannelTypeFeatures OpenChannelV2_get_channel_type(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7230         public static native long OpenChannelV2_get_channel_type(long this_ptr);
7231         // void OpenChannelV2_set_channel_type(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7232         public static native void OpenChannelV2_set_channel_type(long this_ptr, long val);
7233         // enum LDKCOption_NoneZ OpenChannelV2_get_require_confirmed_inputs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
7234         public static native COption_NoneZ OpenChannelV2_get_require_confirmed_inputs(long this_ptr);
7235         // void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
7236         public static native void OpenChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
7237         // 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_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
7238         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);
7239         // uint64_t OpenChannelV2_clone_ptr(LDKOpenChannelV2 *NONNULL_PTR arg);
7240         public static native long OpenChannelV2_clone_ptr(long arg);
7241         // struct LDKOpenChannelV2 OpenChannelV2_clone(const struct LDKOpenChannelV2 *NONNULL_PTR orig);
7242         public static native long OpenChannelV2_clone(long orig);
7243         // bool OpenChannelV2_eq(const struct LDKOpenChannelV2 *NONNULL_PTR a, const struct LDKOpenChannelV2 *NONNULL_PTR b);
7244         public static native boolean OpenChannelV2_eq(long a, long b);
7245         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
7246         public static native void AcceptChannel_free(long this_obj);
7247         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
7248         public static native byte[] AcceptChannel_get_temporary_channel_id(long this_ptr);
7249         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7250         public static native void AcceptChannel_set_temporary_channel_id(long this_ptr, byte[] val);
7251         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7252         public static native long AcceptChannel_get_dust_limit_satoshis(long this_ptr);
7253         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7254         public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);
7255         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7256         public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
7257         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7258         public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7259         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7260         public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
7261         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7262         public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
7263         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7264         public static native long AcceptChannel_get_htlc_minimum_msat(long this_ptr);
7265         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
7266         public static native void AcceptChannel_set_htlc_minimum_msat(long this_ptr, long val);
7267         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7268         public static native int AcceptChannel_get_minimum_depth(long this_ptr);
7269         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
7270         public static native void AcceptChannel_set_minimum_depth(long this_ptr, int val);
7271         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7272         public static native short AcceptChannel_get_to_self_delay(long this_ptr);
7273         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
7274         public static native void AcceptChannel_set_to_self_delay(long this_ptr, short val);
7275         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7276         public static native short AcceptChannel_get_max_accepted_htlcs(long this_ptr);
7277         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
7278         public static native void AcceptChannel_set_max_accepted_htlcs(long this_ptr, short val);
7279         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7280         public static native byte[] AcceptChannel_get_funding_pubkey(long this_ptr);
7281         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7282         public static native void AcceptChannel_set_funding_pubkey(long this_ptr, byte[] val);
7283         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7284         public static native byte[] AcceptChannel_get_revocation_basepoint(long this_ptr);
7285         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7286         public static native void AcceptChannel_set_revocation_basepoint(long this_ptr, byte[] val);
7287         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7288         public static native byte[] AcceptChannel_get_payment_point(long this_ptr);
7289         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7290         public static native void AcceptChannel_set_payment_point(long this_ptr, byte[] val);
7291         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7292         public static native byte[] AcceptChannel_get_delayed_payment_basepoint(long this_ptr);
7293         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7294         public static native void AcceptChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7295         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7296         public static native byte[] AcceptChannel_get_htlc_basepoint(long this_ptr);
7297         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7298         public static native void AcceptChannel_set_htlc_basepoint(long this_ptr, byte[] val);
7299         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7300         public static native byte[] AcceptChannel_get_first_per_commitment_point(long this_ptr);
7301         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7302         public static native void AcceptChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
7303         // struct LDKCOption_ScriptZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7304         public static native long AcceptChannel_get_shutdown_scriptpubkey(long this_ptr);
7305         // void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val);
7306         public static native void AcceptChannel_set_shutdown_scriptpubkey(long this_ptr, long val);
7307         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
7308         public static native long AcceptChannel_get_channel_type(long this_ptr);
7309         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7310         public static native void AcceptChannel_set_channel_type(long this_ptr, long val);
7311         // 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_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
7312         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);
7313         // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
7314         public static native long AcceptChannel_clone_ptr(long arg);
7315         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
7316         public static native long AcceptChannel_clone(long orig);
7317         // bool AcceptChannel_eq(const struct LDKAcceptChannel *NONNULL_PTR a, const struct LDKAcceptChannel *NONNULL_PTR b);
7318         public static native boolean AcceptChannel_eq(long a, long b);
7319         // void AcceptChannelV2_free(struct LDKAcceptChannelV2 this_obj);
7320         public static native void AcceptChannelV2_free(long this_obj);
7321         // const uint8_t (*AcceptChannelV2_get_temporary_channel_id(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr))[32];
7322         public static native byte[] AcceptChannelV2_get_temporary_channel_id(long this_ptr);
7323         // void AcceptChannelV2_set_temporary_channel_id(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7324         public static native void AcceptChannelV2_set_temporary_channel_id(long this_ptr, byte[] val);
7325         // uint64_t AcceptChannelV2_get_funding_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7326         public static native long AcceptChannelV2_get_funding_satoshis(long this_ptr);
7327         // void AcceptChannelV2_set_funding_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7328         public static native void AcceptChannelV2_set_funding_satoshis(long this_ptr, long val);
7329         // uint64_t AcceptChannelV2_get_dust_limit_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7330         public static native long AcceptChannelV2_get_dust_limit_satoshis(long this_ptr);
7331         // void AcceptChannelV2_set_dust_limit_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7332         public static native void AcceptChannelV2_set_dust_limit_satoshis(long this_ptr, long val);
7333         // uint64_t AcceptChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7334         public static native long AcceptChannelV2_get_max_htlc_value_in_flight_msat(long this_ptr);
7335         // void AcceptChannelV2_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7336         public static native void AcceptChannelV2_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
7337         // uint64_t AcceptChannelV2_get_htlc_minimum_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7338         public static native long AcceptChannelV2_get_htlc_minimum_msat(long this_ptr);
7339         // void AcceptChannelV2_set_htlc_minimum_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
7340         public static native void AcceptChannelV2_set_htlc_minimum_msat(long this_ptr, long val);
7341         // uint32_t AcceptChannelV2_get_minimum_depth(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7342         public static native int AcceptChannelV2_get_minimum_depth(long this_ptr);
7343         // void AcceptChannelV2_set_minimum_depth(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
7344         public static native void AcceptChannelV2_set_minimum_depth(long this_ptr, int val);
7345         // uint16_t AcceptChannelV2_get_to_self_delay(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7346         public static native short AcceptChannelV2_get_to_self_delay(long this_ptr);
7347         // void AcceptChannelV2_set_to_self_delay(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7348         public static native void AcceptChannelV2_set_to_self_delay(long this_ptr, short val);
7349         // uint16_t AcceptChannelV2_get_max_accepted_htlcs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7350         public static native short AcceptChannelV2_get_max_accepted_htlcs(long this_ptr);
7351         // void AcceptChannelV2_set_max_accepted_htlcs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
7352         public static native void AcceptChannelV2_set_max_accepted_htlcs(long this_ptr, short val);
7353         // struct LDKPublicKey AcceptChannelV2_get_funding_pubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7354         public static native byte[] AcceptChannelV2_get_funding_pubkey(long this_ptr);
7355         // void AcceptChannelV2_set_funding_pubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7356         public static native void AcceptChannelV2_set_funding_pubkey(long this_ptr, byte[] val);
7357         // struct LDKPublicKey AcceptChannelV2_get_revocation_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7358         public static native byte[] AcceptChannelV2_get_revocation_basepoint(long this_ptr);
7359         // void AcceptChannelV2_set_revocation_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7360         public static native void AcceptChannelV2_set_revocation_basepoint(long this_ptr, byte[] val);
7361         // struct LDKPublicKey AcceptChannelV2_get_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7362         public static native byte[] AcceptChannelV2_get_payment_basepoint(long this_ptr);
7363         // void AcceptChannelV2_set_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7364         public static native void AcceptChannelV2_set_payment_basepoint(long this_ptr, byte[] val);
7365         // struct LDKPublicKey AcceptChannelV2_get_delayed_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7366         public static native byte[] AcceptChannelV2_get_delayed_payment_basepoint(long this_ptr);
7367         // void AcceptChannelV2_set_delayed_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7368         public static native void AcceptChannelV2_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7369         // struct LDKPublicKey AcceptChannelV2_get_htlc_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7370         public static native byte[] AcceptChannelV2_get_htlc_basepoint(long this_ptr);
7371         // void AcceptChannelV2_set_htlc_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7372         public static native void AcceptChannelV2_set_htlc_basepoint(long this_ptr, byte[] val);
7373         // struct LDKPublicKey AcceptChannelV2_get_first_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7374         public static native byte[] AcceptChannelV2_get_first_per_commitment_point(long this_ptr);
7375         // void AcceptChannelV2_set_first_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7376         public static native void AcceptChannelV2_set_first_per_commitment_point(long this_ptr, byte[] val);
7377         // struct LDKPublicKey AcceptChannelV2_get_second_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7378         public static native byte[] AcceptChannelV2_get_second_per_commitment_point(long this_ptr);
7379         // void AcceptChannelV2_set_second_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7380         public static native void AcceptChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
7381         // struct LDKCOption_ScriptZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7382         public static native long AcceptChannelV2_get_shutdown_scriptpubkey(long this_ptr);
7383         // void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val);
7384         public static native void AcceptChannelV2_set_shutdown_scriptpubkey(long this_ptr, long val);
7385         // struct LDKChannelTypeFeatures AcceptChannelV2_get_channel_type(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7386         public static native long AcceptChannelV2_get_channel_type(long this_ptr);
7387         // void AcceptChannelV2_set_channel_type(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7388         public static native void AcceptChannelV2_set_channel_type(long this_ptr, long val);
7389         // enum LDKCOption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
7390         public static native COption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(long this_ptr);
7391         // void AcceptChannelV2_set_require_confirmed_inputs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
7392         public static native void AcceptChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
7393         // 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_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
7394         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);
7395         // uint64_t AcceptChannelV2_clone_ptr(LDKAcceptChannelV2 *NONNULL_PTR arg);
7396         public static native long AcceptChannelV2_clone_ptr(long arg);
7397         // struct LDKAcceptChannelV2 AcceptChannelV2_clone(const struct LDKAcceptChannelV2 *NONNULL_PTR orig);
7398         public static native long AcceptChannelV2_clone(long orig);
7399         // bool AcceptChannelV2_eq(const struct LDKAcceptChannelV2 *NONNULL_PTR a, const struct LDKAcceptChannelV2 *NONNULL_PTR b);
7400         public static native boolean AcceptChannelV2_eq(long a, long b);
7401         // void FundingCreated_free(struct LDKFundingCreated this_obj);
7402         public static native void FundingCreated_free(long this_obj);
7403         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
7404         public static native byte[] FundingCreated_get_temporary_channel_id(long this_ptr);
7405         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7406         public static native void FundingCreated_set_temporary_channel_id(long this_ptr, byte[] val);
7407         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
7408         public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
7409         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7410         public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
7411         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
7412         public static native short FundingCreated_get_funding_output_index(long this_ptr);
7413         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
7414         public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
7415         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
7416         public static native byte[] FundingCreated_get_signature(long this_ptr);
7417         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
7418         public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
7419         // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKSignature signature_arg);
7420         public static native long FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
7421         // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
7422         public static native long FundingCreated_clone_ptr(long arg);
7423         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
7424         public static native long FundingCreated_clone(long orig);
7425         // bool FundingCreated_eq(const struct LDKFundingCreated *NONNULL_PTR a, const struct LDKFundingCreated *NONNULL_PTR b);
7426         public static native boolean FundingCreated_eq(long a, long b);
7427         // void FundingSigned_free(struct LDKFundingSigned this_obj);
7428         public static native void FundingSigned_free(long this_obj);
7429         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
7430         public static native byte[] FundingSigned_get_channel_id(long this_ptr);
7431         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7432         public static native void FundingSigned_set_channel_id(long this_ptr, byte[] val);
7433         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
7434         public static native byte[] FundingSigned_get_signature(long this_ptr);
7435         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
7436         public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
7437         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
7438         public static native long FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
7439         // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
7440         public static native long FundingSigned_clone_ptr(long arg);
7441         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
7442         public static native long FundingSigned_clone(long orig);
7443         // bool FundingSigned_eq(const struct LDKFundingSigned *NONNULL_PTR a, const struct LDKFundingSigned *NONNULL_PTR b);
7444         public static native boolean FundingSigned_eq(long a, long b);
7445         // void ChannelReady_free(struct LDKChannelReady this_obj);
7446         public static native void ChannelReady_free(long this_obj);
7447         // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
7448         public static native byte[] ChannelReady_get_channel_id(long this_ptr);
7449         // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7450         public static native void ChannelReady_set_channel_id(long this_ptr, byte[] val);
7451         // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
7452         public static native byte[] ChannelReady_get_next_per_commitment_point(long this_ptr);
7453         // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7454         public static native void ChannelReady_set_next_per_commitment_point(long this_ptr, byte[] val);
7455         // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
7456         public static native long ChannelReady_get_short_channel_id_alias(long this_ptr);
7457         // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7458         public static native void ChannelReady_set_short_channel_id_alias(long this_ptr, long val);
7459         // 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);
7460         public static native long ChannelReady_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, long short_channel_id_alias_arg);
7461         // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
7462         public static native long ChannelReady_clone_ptr(long arg);
7463         // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
7464         public static native long ChannelReady_clone(long orig);
7465         // bool ChannelReady_eq(const struct LDKChannelReady *NONNULL_PTR a, const struct LDKChannelReady *NONNULL_PTR b);
7466         public static native boolean ChannelReady_eq(long a, long b);
7467         // void TxAddInput_free(struct LDKTxAddInput this_obj);
7468         public static native void TxAddInput_free(long this_obj);
7469         // const uint8_t (*TxAddInput_get_channel_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr))[32];
7470         public static native byte[] TxAddInput_get_channel_id(long this_ptr);
7471         // void TxAddInput_set_channel_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7472         public static native void TxAddInput_set_channel_id(long this_ptr, byte[] val);
7473         // uint64_t TxAddInput_get_serial_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7474         public static native long TxAddInput_get_serial_id(long this_ptr);
7475         // void TxAddInput_set_serial_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint64_t val);
7476         public static native void TxAddInput_set_serial_id(long this_ptr, long val);
7477         // struct LDKTransactionU16LenLimited TxAddInput_get_prevtx(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7478         public static native long TxAddInput_get_prevtx(long this_ptr);
7479         // void TxAddInput_set_prevtx(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKTransactionU16LenLimited val);
7480         public static native void TxAddInput_set_prevtx(long this_ptr, long val);
7481         // uint32_t TxAddInput_get_prevtx_out(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7482         public static native int TxAddInput_get_prevtx_out(long this_ptr);
7483         // void TxAddInput_set_prevtx_out(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
7484         public static native void TxAddInput_set_prevtx_out(long this_ptr, int val);
7485         // uint32_t TxAddInput_get_sequence(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
7486         public static native int TxAddInput_get_sequence(long this_ptr);
7487         // void TxAddInput_set_sequence(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
7488         public static native void TxAddInput_set_sequence(long this_ptr, int val);
7489         // 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);
7490         public static native long TxAddInput_new(byte[] channel_id_arg, long serial_id_arg, long prevtx_arg, int prevtx_out_arg, int sequence_arg);
7491         // uint64_t TxAddInput_clone_ptr(LDKTxAddInput *NONNULL_PTR arg);
7492         public static native long TxAddInput_clone_ptr(long arg);
7493         // struct LDKTxAddInput TxAddInput_clone(const struct LDKTxAddInput *NONNULL_PTR orig);
7494         public static native long TxAddInput_clone(long orig);
7495         // bool TxAddInput_eq(const struct LDKTxAddInput *NONNULL_PTR a, const struct LDKTxAddInput *NONNULL_PTR b);
7496         public static native boolean TxAddInput_eq(long a, long b);
7497         // void TxAddOutput_free(struct LDKTxAddOutput this_obj);
7498         public static native void TxAddOutput_free(long this_obj);
7499         // const uint8_t (*TxAddOutput_get_channel_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr))[32];
7500         public static native byte[] TxAddOutput_get_channel_id(long this_ptr);
7501         // void TxAddOutput_set_channel_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7502         public static native void TxAddOutput_set_channel_id(long this_ptr, byte[] val);
7503         // uint64_t TxAddOutput_get_serial_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
7504         public static native long TxAddOutput_get_serial_id(long this_ptr);
7505         // void TxAddOutput_set_serial_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
7506         public static native void TxAddOutput_set_serial_id(long this_ptr, long val);
7507         // uint64_t TxAddOutput_get_sats(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
7508         public static native long TxAddOutput_get_sats(long this_ptr);
7509         // void TxAddOutput_set_sats(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
7510         public static native void TxAddOutput_set_sats(long this_ptr, long val);
7511         // struct LDKu8slice TxAddOutput_get_script(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
7512         public static native byte[] TxAddOutput_get_script(long this_ptr);
7513         // void TxAddOutput_set_script(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
7514         public static native void TxAddOutput_set_script(long this_ptr, byte[] val);
7515         // 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);
7516         public static native long TxAddOutput_new(byte[] channel_id_arg, long serial_id_arg, long sats_arg, byte[] script_arg);
7517         // uint64_t TxAddOutput_clone_ptr(LDKTxAddOutput *NONNULL_PTR arg);
7518         public static native long TxAddOutput_clone_ptr(long arg);
7519         // struct LDKTxAddOutput TxAddOutput_clone(const struct LDKTxAddOutput *NONNULL_PTR orig);
7520         public static native long TxAddOutput_clone(long orig);
7521         // bool TxAddOutput_eq(const struct LDKTxAddOutput *NONNULL_PTR a, const struct LDKTxAddOutput *NONNULL_PTR b);
7522         public static native boolean TxAddOutput_eq(long a, long b);
7523         // void TxRemoveInput_free(struct LDKTxRemoveInput this_obj);
7524         public static native void TxRemoveInput_free(long this_obj);
7525         // const uint8_t (*TxRemoveInput_get_channel_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr))[32];
7526         public static native byte[] TxRemoveInput_get_channel_id(long this_ptr);
7527         // void TxRemoveInput_set_channel_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7528         public static native void TxRemoveInput_set_channel_id(long this_ptr, byte[] val);
7529         // uint64_t TxRemoveInput_get_serial_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr);
7530         public static native long TxRemoveInput_get_serial_id(long this_ptr);
7531         // void TxRemoveInput_set_serial_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, uint64_t val);
7532         public static native void TxRemoveInput_set_serial_id(long this_ptr, long val);
7533         // MUST_USE_RES struct LDKTxRemoveInput TxRemoveInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg);
7534         public static native long TxRemoveInput_new(byte[] channel_id_arg, long serial_id_arg);
7535         // uint64_t TxRemoveInput_clone_ptr(LDKTxRemoveInput *NONNULL_PTR arg);
7536         public static native long TxRemoveInput_clone_ptr(long arg);
7537         // struct LDKTxRemoveInput TxRemoveInput_clone(const struct LDKTxRemoveInput *NONNULL_PTR orig);
7538         public static native long TxRemoveInput_clone(long orig);
7539         // bool TxRemoveInput_eq(const struct LDKTxRemoveInput *NONNULL_PTR a, const struct LDKTxRemoveInput *NONNULL_PTR b);
7540         public static native boolean TxRemoveInput_eq(long a, long b);
7541         // void TxRemoveOutput_free(struct LDKTxRemoveOutput this_obj);
7542         public static native void TxRemoveOutput_free(long this_obj);
7543         // const uint8_t (*TxRemoveOutput_get_channel_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr))[32];
7544         public static native byte[] TxRemoveOutput_get_channel_id(long this_ptr);
7545         // void TxRemoveOutput_set_channel_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7546         public static native void TxRemoveOutput_set_channel_id(long this_ptr, byte[] val);
7547         // uint64_t TxRemoveOutput_get_serial_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr);
7548         public static native long TxRemoveOutput_get_serial_id(long this_ptr);
7549         // void TxRemoveOutput_set_serial_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, uint64_t val);
7550         public static native void TxRemoveOutput_set_serial_id(long this_ptr, long val);
7551         // MUST_USE_RES struct LDKTxRemoveOutput TxRemoveOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg);
7552         public static native long TxRemoveOutput_new(byte[] channel_id_arg, long serial_id_arg);
7553         // uint64_t TxRemoveOutput_clone_ptr(LDKTxRemoveOutput *NONNULL_PTR arg);
7554         public static native long TxRemoveOutput_clone_ptr(long arg);
7555         // struct LDKTxRemoveOutput TxRemoveOutput_clone(const struct LDKTxRemoveOutput *NONNULL_PTR orig);
7556         public static native long TxRemoveOutput_clone(long orig);
7557         // bool TxRemoveOutput_eq(const struct LDKTxRemoveOutput *NONNULL_PTR a, const struct LDKTxRemoveOutput *NONNULL_PTR b);
7558         public static native boolean TxRemoveOutput_eq(long a, long b);
7559         // void TxComplete_free(struct LDKTxComplete this_obj);
7560         public static native void TxComplete_free(long this_obj);
7561         // const uint8_t (*TxComplete_get_channel_id(const struct LDKTxComplete *NONNULL_PTR this_ptr))[32];
7562         public static native byte[] TxComplete_get_channel_id(long this_ptr);
7563         // void TxComplete_set_channel_id(struct LDKTxComplete *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7564         public static native void TxComplete_set_channel_id(long this_ptr, byte[] val);
7565         // MUST_USE_RES struct LDKTxComplete TxComplete_new(struct LDKThirtyTwoBytes channel_id_arg);
7566         public static native long TxComplete_new(byte[] channel_id_arg);
7567         // uint64_t TxComplete_clone_ptr(LDKTxComplete *NONNULL_PTR arg);
7568         public static native long TxComplete_clone_ptr(long arg);
7569         // struct LDKTxComplete TxComplete_clone(const struct LDKTxComplete *NONNULL_PTR orig);
7570         public static native long TxComplete_clone(long orig);
7571         // bool TxComplete_eq(const struct LDKTxComplete *NONNULL_PTR a, const struct LDKTxComplete *NONNULL_PTR b);
7572         public static native boolean TxComplete_eq(long a, long b);
7573         // void TxSignatures_free(struct LDKTxSignatures this_obj);
7574         public static native void TxSignatures_free(long this_obj);
7575         // const uint8_t (*TxSignatures_get_channel_id(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32];
7576         public static native byte[] TxSignatures_get_channel_id(long this_ptr);
7577         // void TxSignatures_set_channel_id(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7578         public static native void TxSignatures_set_channel_id(long this_ptr, byte[] val);
7579         // const uint8_t (*TxSignatures_get_tx_hash(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32];
7580         public static native byte[] TxSignatures_get_tx_hash(long this_ptr);
7581         // void TxSignatures_set_tx_hash(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7582         public static native void TxSignatures_set_tx_hash(long this_ptr, byte[] val);
7583         // struct LDKCVec_WitnessZ TxSignatures_get_witnesses(const struct LDKTxSignatures *NONNULL_PTR this_ptr);
7584         public static native byte[][] TxSignatures_get_witnesses(long this_ptr);
7585         // void TxSignatures_set_witnesses(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKCVec_WitnessZ val);
7586         public static native void TxSignatures_set_witnesses(long this_ptr, byte[][] val);
7587         // MUST_USE_RES struct LDKTxSignatures TxSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes tx_hash_arg, struct LDKCVec_WitnessZ witnesses_arg);
7588         public static native long TxSignatures_new(byte[] channel_id_arg, byte[] tx_hash_arg, byte[][] witnesses_arg);
7589         // uint64_t TxSignatures_clone_ptr(LDKTxSignatures *NONNULL_PTR arg);
7590         public static native long TxSignatures_clone_ptr(long arg);
7591         // struct LDKTxSignatures TxSignatures_clone(const struct LDKTxSignatures *NONNULL_PTR orig);
7592         public static native long TxSignatures_clone(long orig);
7593         // bool TxSignatures_eq(const struct LDKTxSignatures *NONNULL_PTR a, const struct LDKTxSignatures *NONNULL_PTR b);
7594         public static native boolean TxSignatures_eq(long a, long b);
7595         // void TxInitRbf_free(struct LDKTxInitRbf this_obj);
7596         public static native void TxInitRbf_free(long this_obj);
7597         // const uint8_t (*TxInitRbf_get_channel_id(const struct LDKTxInitRbf *NONNULL_PTR this_ptr))[32];
7598         public static native byte[] TxInitRbf_get_channel_id(long this_ptr);
7599         // void TxInitRbf_set_channel_id(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7600         public static native void TxInitRbf_set_channel_id(long this_ptr, byte[] val);
7601         // uint32_t TxInitRbf_get_locktime(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
7602         public static native int TxInitRbf_get_locktime(long this_ptr);
7603         // void TxInitRbf_set_locktime(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
7604         public static native void TxInitRbf_set_locktime(long this_ptr, int val);
7605         // uint32_t TxInitRbf_get_feerate_sat_per_1000_weight(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
7606         public static native int TxInitRbf_get_feerate_sat_per_1000_weight(long this_ptr);
7607         // void TxInitRbf_set_feerate_sat_per_1000_weight(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
7608         public static native void TxInitRbf_set_feerate_sat_per_1000_weight(long this_ptr, int val);
7609         // struct LDKCOption_i64Z TxInitRbf_get_funding_output_contribution(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
7610         public static native long TxInitRbf_get_funding_output_contribution(long this_ptr);
7611         // void TxInitRbf_set_funding_output_contribution(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
7612         public static native void TxInitRbf_set_funding_output_contribution(long this_ptr, long val);
7613         // 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);
7614         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);
7615         // uint64_t TxInitRbf_clone_ptr(LDKTxInitRbf *NONNULL_PTR arg);
7616         public static native long TxInitRbf_clone_ptr(long arg);
7617         // struct LDKTxInitRbf TxInitRbf_clone(const struct LDKTxInitRbf *NONNULL_PTR orig);
7618         public static native long TxInitRbf_clone(long orig);
7619         // bool TxInitRbf_eq(const struct LDKTxInitRbf *NONNULL_PTR a, const struct LDKTxInitRbf *NONNULL_PTR b);
7620         public static native boolean TxInitRbf_eq(long a, long b);
7621         // void TxAckRbf_free(struct LDKTxAckRbf this_obj);
7622         public static native void TxAckRbf_free(long this_obj);
7623         // const uint8_t (*TxAckRbf_get_channel_id(const struct LDKTxAckRbf *NONNULL_PTR this_ptr))[32];
7624         public static native byte[] TxAckRbf_get_channel_id(long this_ptr);
7625         // void TxAckRbf_set_channel_id(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7626         public static native void TxAckRbf_set_channel_id(long this_ptr, byte[] val);
7627         // struct LDKCOption_i64Z TxAckRbf_get_funding_output_contribution(const struct LDKTxAckRbf *NONNULL_PTR this_ptr);
7628         public static native long TxAckRbf_get_funding_output_contribution(long this_ptr);
7629         // void TxAckRbf_set_funding_output_contribution(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
7630         public static native void TxAckRbf_set_funding_output_contribution(long this_ptr, long val);
7631         // MUST_USE_RES struct LDKTxAckRbf TxAckRbf_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCOption_i64Z funding_output_contribution_arg);
7632         public static native long TxAckRbf_new(byte[] channel_id_arg, long funding_output_contribution_arg);
7633         // uint64_t TxAckRbf_clone_ptr(LDKTxAckRbf *NONNULL_PTR arg);
7634         public static native long TxAckRbf_clone_ptr(long arg);
7635         // struct LDKTxAckRbf TxAckRbf_clone(const struct LDKTxAckRbf *NONNULL_PTR orig);
7636         public static native long TxAckRbf_clone(long orig);
7637         // bool TxAckRbf_eq(const struct LDKTxAckRbf *NONNULL_PTR a, const struct LDKTxAckRbf *NONNULL_PTR b);
7638         public static native boolean TxAckRbf_eq(long a, long b);
7639         // void TxAbort_free(struct LDKTxAbort this_obj);
7640         public static native void TxAbort_free(long this_obj);
7641         // const uint8_t (*TxAbort_get_channel_id(const struct LDKTxAbort *NONNULL_PTR this_ptr))[32];
7642         public static native byte[] TxAbort_get_channel_id(long this_ptr);
7643         // void TxAbort_set_channel_id(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7644         public static native void TxAbort_set_channel_id(long this_ptr, byte[] val);
7645         // struct LDKCVec_u8Z TxAbort_get_data(const struct LDKTxAbort *NONNULL_PTR this_ptr);
7646         public static native byte[] TxAbort_get_data(long this_ptr);
7647         // void TxAbort_set_data(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
7648         public static native void TxAbort_set_data(long this_ptr, byte[] val);
7649         // MUST_USE_RES struct LDKTxAbort TxAbort_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z data_arg);
7650         public static native long TxAbort_new(byte[] channel_id_arg, byte[] data_arg);
7651         // uint64_t TxAbort_clone_ptr(LDKTxAbort *NONNULL_PTR arg);
7652         public static native long TxAbort_clone_ptr(long arg);
7653         // struct LDKTxAbort TxAbort_clone(const struct LDKTxAbort *NONNULL_PTR orig);
7654         public static native long TxAbort_clone(long orig);
7655         // bool TxAbort_eq(const struct LDKTxAbort *NONNULL_PTR a, const struct LDKTxAbort *NONNULL_PTR b);
7656         public static native boolean TxAbort_eq(long a, long b);
7657         // void Shutdown_free(struct LDKShutdown this_obj);
7658         public static native void Shutdown_free(long this_obj);
7659         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
7660         public static native byte[] Shutdown_get_channel_id(long this_ptr);
7661         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7662         public static native void Shutdown_set_channel_id(long this_ptr, byte[] val);
7663         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
7664         public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
7665         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
7666         public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
7667         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
7668         public static native long Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
7669         // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
7670         public static native long Shutdown_clone_ptr(long arg);
7671         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
7672         public static native long Shutdown_clone(long orig);
7673         // bool Shutdown_eq(const struct LDKShutdown *NONNULL_PTR a, const struct LDKShutdown *NONNULL_PTR b);
7674         public static native boolean Shutdown_eq(long a, long b);
7675         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
7676         public static native void ClosingSignedFeeRange_free(long this_obj);
7677         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
7678         public static native long ClosingSignedFeeRange_get_min_fee_satoshis(long this_ptr);
7679         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
7680         public static native void ClosingSignedFeeRange_set_min_fee_satoshis(long this_ptr, long val);
7681         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
7682         public static native long ClosingSignedFeeRange_get_max_fee_satoshis(long this_ptr);
7683         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
7684         public static native void ClosingSignedFeeRange_set_max_fee_satoshis(long this_ptr, long val);
7685         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
7686         public static native long ClosingSignedFeeRange_new(long min_fee_satoshis_arg, long max_fee_satoshis_arg);
7687         // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
7688         public static native long ClosingSignedFeeRange_clone_ptr(long arg);
7689         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
7690         public static native long ClosingSignedFeeRange_clone(long orig);
7691         // bool ClosingSignedFeeRange_eq(const struct LDKClosingSignedFeeRange *NONNULL_PTR a, const struct LDKClosingSignedFeeRange *NONNULL_PTR b);
7692         public static native boolean ClosingSignedFeeRange_eq(long a, long b);
7693         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
7694         public static native void ClosingSigned_free(long this_obj);
7695         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
7696         public static native byte[] ClosingSigned_get_channel_id(long this_ptr);
7697         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7698         public static native void ClosingSigned_set_channel_id(long this_ptr, byte[] val);
7699         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
7700         public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
7701         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
7702         public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
7703         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
7704         public static native byte[] ClosingSigned_get_signature(long this_ptr);
7705         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
7706         public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
7707         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
7708         public static native long ClosingSigned_get_fee_range(long this_ptr);
7709         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
7710         public static native void ClosingSigned_set_fee_range(long this_ptr, long val);
7711         // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
7712         public static native long ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, long fee_range_arg);
7713         // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
7714         public static native long ClosingSigned_clone_ptr(long arg);
7715         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
7716         public static native long ClosingSigned_clone(long orig);
7717         // bool ClosingSigned_eq(const struct LDKClosingSigned *NONNULL_PTR a, const struct LDKClosingSigned *NONNULL_PTR b);
7718         public static native boolean ClosingSigned_eq(long a, long b);
7719         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
7720         public static native void UpdateAddHTLC_free(long this_obj);
7721         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
7722         public static native byte[] UpdateAddHTLC_get_channel_id(long this_ptr);
7723         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7724         public static native void UpdateAddHTLC_set_channel_id(long this_ptr, byte[] val);
7725         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
7726         public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
7727         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
7728         public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
7729         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
7730         public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
7731         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
7732         public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
7733         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
7734         public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
7735         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7736         public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
7737         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
7738         public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
7739         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
7740         public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
7741         // struct LDKCOption_u64Z UpdateAddHTLC_get_skimmed_fee_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
7742         public static native long UpdateAddHTLC_get_skimmed_fee_msat(long this_ptr);
7743         // void UpdateAddHTLC_set_skimmed_fee_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7744         public static native void UpdateAddHTLC_set_skimmed_fee_msat(long this_ptr, long val);
7745         // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
7746         public static native long UpdateAddHTLC_clone_ptr(long arg);
7747         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
7748         public static native long UpdateAddHTLC_clone(long orig);
7749         // bool UpdateAddHTLC_eq(const struct LDKUpdateAddHTLC *NONNULL_PTR a, const struct LDKUpdateAddHTLC *NONNULL_PTR b);
7750         public static native boolean UpdateAddHTLC_eq(long a, long b);
7751         // void OnionMessage_free(struct LDKOnionMessage this_obj);
7752         public static native void OnionMessage_free(long this_obj);
7753         // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
7754         public static native byte[] OnionMessage_get_blinding_point(long this_ptr);
7755         // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7756         public static native void OnionMessage_set_blinding_point(long this_ptr, byte[] val);
7757         // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg);
7758         public static native long OnionMessage_clone_ptr(long arg);
7759         // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig);
7760         public static native long OnionMessage_clone(long orig);
7761         // bool OnionMessage_eq(const struct LDKOnionMessage *NONNULL_PTR a, const struct LDKOnionMessage *NONNULL_PTR b);
7762         public static native boolean OnionMessage_eq(long a, long b);
7763         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
7764         public static native void UpdateFulfillHTLC_free(long this_obj);
7765         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
7766         public static native byte[] UpdateFulfillHTLC_get_channel_id(long this_ptr);
7767         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7768         public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, byte[] val);
7769         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
7770         public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
7771         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
7772         public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
7773         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
7774         public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
7775         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7776         public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
7777         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
7778         public static native long UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
7779         // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
7780         public static native long UpdateFulfillHTLC_clone_ptr(long arg);
7781         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
7782         public static native long UpdateFulfillHTLC_clone(long orig);
7783         // bool UpdateFulfillHTLC_eq(const struct LDKUpdateFulfillHTLC *NONNULL_PTR a, const struct LDKUpdateFulfillHTLC *NONNULL_PTR b);
7784         public static native boolean UpdateFulfillHTLC_eq(long a, long b);
7785         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
7786         public static native void UpdateFailHTLC_free(long this_obj);
7787         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
7788         public static native byte[] UpdateFailHTLC_get_channel_id(long this_ptr);
7789         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7790         public static native void UpdateFailHTLC_set_channel_id(long this_ptr, byte[] val);
7791         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
7792         public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
7793         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
7794         public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
7795         // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
7796         public static native long UpdateFailHTLC_clone_ptr(long arg);
7797         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
7798         public static native long UpdateFailHTLC_clone(long orig);
7799         // bool UpdateFailHTLC_eq(const struct LDKUpdateFailHTLC *NONNULL_PTR a, const struct LDKUpdateFailHTLC *NONNULL_PTR b);
7800         public static native boolean UpdateFailHTLC_eq(long a, long b);
7801         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
7802         public static native void UpdateFailMalformedHTLC_free(long this_obj);
7803         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
7804         public static native byte[] UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
7805         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7806         public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, byte[] val);
7807         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
7808         public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
7809         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
7810         public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
7811         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
7812         public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
7813         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
7814         public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
7815         // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
7816         public static native long UpdateFailMalformedHTLC_clone_ptr(long arg);
7817         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
7818         public static native long UpdateFailMalformedHTLC_clone(long orig);
7819         // bool UpdateFailMalformedHTLC_eq(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR a, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR b);
7820         public static native boolean UpdateFailMalformedHTLC_eq(long a, long b);
7821         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
7822         public static native void CommitmentSigned_free(long this_obj);
7823         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
7824         public static native byte[] CommitmentSigned_get_channel_id(long this_ptr);
7825         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7826         public static native void CommitmentSigned_set_channel_id(long this_ptr, byte[] val);
7827         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
7828         public static native byte[] CommitmentSigned_get_signature(long this_ptr);
7829         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
7830         public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
7831         // struct LDKCVec_SignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
7832         public static native byte[][] CommitmentSigned_get_htlc_signatures(long this_ptr);
7833         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
7834         public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
7835         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
7836         public static native long CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
7837         // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
7838         public static native long CommitmentSigned_clone_ptr(long arg);
7839         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
7840         public static native long CommitmentSigned_clone(long orig);
7841         // bool CommitmentSigned_eq(const struct LDKCommitmentSigned *NONNULL_PTR a, const struct LDKCommitmentSigned *NONNULL_PTR b);
7842         public static native boolean CommitmentSigned_eq(long a, long b);
7843         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
7844         public static native void RevokeAndACK_free(long this_obj);
7845         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
7846         public static native byte[] RevokeAndACK_get_channel_id(long this_ptr);
7847         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7848         public static native void RevokeAndACK_set_channel_id(long this_ptr, byte[] val);
7849         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
7850         public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
7851         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7852         public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
7853         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
7854         public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
7855         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7856         public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
7857         // 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);
7858         public static native long RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
7859         // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
7860         public static native long RevokeAndACK_clone_ptr(long arg);
7861         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
7862         public static native long RevokeAndACK_clone(long orig);
7863         // bool RevokeAndACK_eq(const struct LDKRevokeAndACK *NONNULL_PTR a, const struct LDKRevokeAndACK *NONNULL_PTR b);
7864         public static native boolean RevokeAndACK_eq(long a, long b);
7865         // void UpdateFee_free(struct LDKUpdateFee this_obj);
7866         public static native void UpdateFee_free(long this_obj);
7867         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
7868         public static native byte[] UpdateFee_get_channel_id(long this_ptr);
7869         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7870         public static native void UpdateFee_set_channel_id(long this_ptr, byte[] val);
7871         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
7872         public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
7873         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
7874         public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
7875         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
7876         public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
7877         // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
7878         public static native long UpdateFee_clone_ptr(long arg);
7879         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
7880         public static native long UpdateFee_clone(long orig);
7881         // bool UpdateFee_eq(const struct LDKUpdateFee *NONNULL_PTR a, const struct LDKUpdateFee *NONNULL_PTR b);
7882         public static native boolean UpdateFee_eq(long a, long b);
7883         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
7884         public static native void ChannelReestablish_free(long this_obj);
7885         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
7886         public static native byte[] ChannelReestablish_get_channel_id(long this_ptr);
7887         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7888         public static native void ChannelReestablish_set_channel_id(long this_ptr, byte[] val);
7889         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
7890         public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
7891         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
7892         public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
7893         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
7894         public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
7895         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
7896         public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
7897         // const uint8_t (*ChannelReestablish_get_your_last_per_commitment_secret(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
7898         public static native byte[] ChannelReestablish_get_your_last_per_commitment_secret(long this_ptr);
7899         // void ChannelReestablish_set_your_last_per_commitment_secret(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7900         public static native void ChannelReestablish_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
7901         // struct LDKPublicKey ChannelReestablish_get_my_current_per_commitment_point(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
7902         public static native byte[] ChannelReestablish_get_my_current_per_commitment_point(long this_ptr);
7903         // void ChannelReestablish_set_my_current_per_commitment_point(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7904         public static native void ChannelReestablish_set_my_current_per_commitment_point(long this_ptr, byte[] val);
7905         // struct LDKCOption_TxidZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
7906         public static native long ChannelReestablish_get_next_funding_txid(long this_ptr);
7907         // void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_TxidZ val);
7908         public static native void ChannelReestablish_set_next_funding_txid(long this_ptr, long val);
7909         // 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_TxidZ next_funding_txid_arg);
7910         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);
7911         // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
7912         public static native long ChannelReestablish_clone_ptr(long arg);
7913         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
7914         public static native long ChannelReestablish_clone(long orig);
7915         // bool ChannelReestablish_eq(const struct LDKChannelReestablish *NONNULL_PTR a, const struct LDKChannelReestablish *NONNULL_PTR b);
7916         public static native boolean ChannelReestablish_eq(long a, long b);
7917         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
7918         public static native void AnnouncementSignatures_free(long this_obj);
7919         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
7920         public static native byte[] AnnouncementSignatures_get_channel_id(long this_ptr);
7921         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7922         public static native void AnnouncementSignatures_set_channel_id(long this_ptr, byte[] val);
7923         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
7924         public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
7925         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
7926         public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
7927         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
7928         public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
7929         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
7930         public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
7931         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
7932         public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
7933         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
7934         public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
7935         // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKSignature node_signature_arg, struct LDKSignature bitcoin_signature_arg);
7936         public static native long AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
7937         // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
7938         public static native long AnnouncementSignatures_clone_ptr(long arg);
7939         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
7940         public static native long AnnouncementSignatures_clone(long orig);
7941         // bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b);
7942         public static native boolean AnnouncementSignatures_eq(long a, long b);
7943         // void NetAddress_free(struct LDKNetAddress this_ptr);
7944         public static native void NetAddress_free(long this_ptr);
7945         // uint64_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
7946         public static native long NetAddress_clone_ptr(long arg);
7947         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
7948         public static native long NetAddress_clone(long orig);
7949         // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
7950         public static native long NetAddress_ipv4(byte[] addr, short port);
7951         // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
7952         public static native long NetAddress_ipv6(byte[] addr, short port);
7953         // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
7954         public static native long NetAddress_onion_v2(byte[] a);
7955         // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
7956         public static native long NetAddress_onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port);
7957         // struct LDKNetAddress NetAddress_hostname(struct LDKHostname hostname, uint16_t port);
7958         public static native long NetAddress_hostname(long hostname, short port);
7959         // bool NetAddress_eq(const struct LDKNetAddress *NONNULL_PTR a, const struct LDKNetAddress *NONNULL_PTR b);
7960         public static native boolean NetAddress_eq(long a, long b);
7961         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
7962         public static native byte[] NetAddress_write(long obj);
7963         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
7964         public static native long NetAddress_read(byte[] ser);
7965         // void UnsignedGossipMessage_free(struct LDKUnsignedGossipMessage this_ptr);
7966         public static native void UnsignedGossipMessage_free(long this_ptr);
7967         // uint64_t UnsignedGossipMessage_clone_ptr(LDKUnsignedGossipMessage *NONNULL_PTR arg);
7968         public static native long UnsignedGossipMessage_clone_ptr(long arg);
7969         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_clone(const struct LDKUnsignedGossipMessage *NONNULL_PTR orig);
7970         public static native long UnsignedGossipMessage_clone(long orig);
7971         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_announcement(struct LDKUnsignedChannelAnnouncement a);
7972         public static native long UnsignedGossipMessage_channel_announcement(long a);
7973         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_update(struct LDKUnsignedChannelUpdate a);
7974         public static native long UnsignedGossipMessage_channel_update(long a);
7975         // struct LDKUnsignedGossipMessage UnsignedGossipMessage_node_announcement(struct LDKUnsignedNodeAnnouncement a);
7976         public static native long UnsignedGossipMessage_node_announcement(long a);
7977         // struct LDKCVec_u8Z UnsignedGossipMessage_write(const struct LDKUnsignedGossipMessage *NONNULL_PTR obj);
7978         public static native byte[] UnsignedGossipMessage_write(long obj);
7979         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
7980         public static native void UnsignedNodeAnnouncement_free(long this_obj);
7981         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
7982         public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
7983         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
7984         public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
7985         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
7986         public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
7987         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
7988         public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
7989         // struct LDKNodeId UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
7990         public static native long UnsignedNodeAnnouncement_get_node_id(long this_ptr);
7991         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
7992         public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, long val);
7993         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
7994         public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
7995         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
7996         public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
7997         // struct LDKNodeAlias UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
7998         public static native long UnsignedNodeAnnouncement_get_alias(long this_ptr);
7999         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
8000         public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, long val);
8001         // struct LDKCVec_NetAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
8002         public static native long[] UnsignedNodeAnnouncement_get_addresses(long this_ptr);
8003         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
8004         public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
8005         // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
8006         public static native long UnsignedNodeAnnouncement_clone_ptr(long arg);
8007         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
8008         public static native long UnsignedNodeAnnouncement_clone(long orig);
8009         // bool UnsignedNodeAnnouncement_eq(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR a, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR b);
8010         public static native boolean UnsignedNodeAnnouncement_eq(long a, long b);
8011         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
8012         public static native void NodeAnnouncement_free(long this_obj);
8013         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
8014         public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
8015         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
8016         public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
8017         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
8018         public static native long NodeAnnouncement_get_contents(long this_ptr);
8019         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
8020         public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
8021         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
8022         public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
8023         // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
8024         public static native long NodeAnnouncement_clone_ptr(long arg);
8025         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
8026         public static native long NodeAnnouncement_clone(long orig);
8027         // bool NodeAnnouncement_eq(const struct LDKNodeAnnouncement *NONNULL_PTR a, const struct LDKNodeAnnouncement *NONNULL_PTR b);
8028         public static native boolean NodeAnnouncement_eq(long a, long b);
8029         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
8030         public static native void UnsignedChannelAnnouncement_free(long this_obj);
8031         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8032         public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
8033         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
8034         public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
8035         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
8036         public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
8037         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8038         public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
8039         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8040         public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
8041         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
8042         public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
8043         // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8044         public static native long UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
8045         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8046         public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, long val);
8047         // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8048         public static native long UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
8049         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8050         public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, long val);
8051         // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8052         public static native long UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
8053         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8054         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, long val);
8055         // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
8056         public static native long UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
8057         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
8058         public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, long val);
8059         // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
8060         public static native long UnsignedChannelAnnouncement_clone_ptr(long arg);
8061         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
8062         public static native long UnsignedChannelAnnouncement_clone(long orig);
8063         // bool UnsignedChannelAnnouncement_eq(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR a, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR b);
8064         public static native boolean UnsignedChannelAnnouncement_eq(long a, long b);
8065         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
8066         public static native void ChannelAnnouncement_free(long this_obj);
8067         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8068         public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
8069         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
8070         public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
8071         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8072         public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
8073         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
8074         public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
8075         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8076         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
8077         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
8078         public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
8079         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8080         public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
8081         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
8082         public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
8083         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
8084         public static native long ChannelAnnouncement_get_contents(long this_ptr);
8085         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
8086         public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
8087         // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKSignature node_signature_1_arg, struct LDKSignature node_signature_2_arg, struct LDKSignature bitcoin_signature_1_arg, struct LDKSignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg);
8088         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);
8089         // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
8090         public static native long ChannelAnnouncement_clone_ptr(long arg);
8091         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
8092         public static native long ChannelAnnouncement_clone(long orig);
8093         // bool ChannelAnnouncement_eq(const struct LDKChannelAnnouncement *NONNULL_PTR a, const struct LDKChannelAnnouncement *NONNULL_PTR b);
8094         public static native boolean ChannelAnnouncement_eq(long a, long b);
8095         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
8096         public static native void UnsignedChannelUpdate_free(long this_obj);
8097         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
8098         public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
8099         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8100         public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
8101         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8102         public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
8103         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
8104         public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
8105         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8106         public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
8107         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
8108         public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
8109         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8110         public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
8111         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
8112         public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
8113         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8114         public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
8115         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
8116         public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
8117         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8118         public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
8119         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
8120         public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
8121         // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8122         public static native long UnsignedChannelUpdate_get_htlc_maximum_msat(long this_ptr);
8123         // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
8124         public static native void UnsignedChannelUpdate_set_htlc_maximum_msat(long this_ptr, long val);
8125         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8126         public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
8127         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
8128         public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
8129         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8130         public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
8131         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
8132         public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
8133         // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
8134         public static native byte[] UnsignedChannelUpdate_get_excess_data(long this_ptr);
8135         // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8136         public static native void UnsignedChannelUpdate_set_excess_data(long this_ptr, byte[] val);
8137         // 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);
8138         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);
8139         // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
8140         public static native long UnsignedChannelUpdate_clone_ptr(long arg);
8141         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
8142         public static native long UnsignedChannelUpdate_clone(long orig);
8143         // bool UnsignedChannelUpdate_eq(const struct LDKUnsignedChannelUpdate *NONNULL_PTR a, const struct LDKUnsignedChannelUpdate *NONNULL_PTR b);
8144         public static native boolean UnsignedChannelUpdate_eq(long a, long b);
8145         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
8146         public static native void ChannelUpdate_free(long this_obj);
8147         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
8148         public static native byte[] ChannelUpdate_get_signature(long this_ptr);
8149         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
8150         public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
8151         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
8152         public static native long ChannelUpdate_get_contents(long this_ptr);
8153         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
8154         public static native void ChannelUpdate_set_contents(long this_ptr, long val);
8155         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
8156         public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
8157         // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
8158         public static native long ChannelUpdate_clone_ptr(long arg);
8159         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
8160         public static native long ChannelUpdate_clone(long orig);
8161         // bool ChannelUpdate_eq(const struct LDKChannelUpdate *NONNULL_PTR a, const struct LDKChannelUpdate *NONNULL_PTR b);
8162         public static native boolean ChannelUpdate_eq(long a, long b);
8163         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
8164         public static native void QueryChannelRange_free(long this_obj);
8165         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
8166         public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
8167         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8168         public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
8169         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
8170         public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
8171         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8172         public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
8173         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
8174         public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
8175         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8176         public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
8177         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
8178         public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
8179         // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
8180         public static native long QueryChannelRange_clone_ptr(long arg);
8181         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
8182         public static native long QueryChannelRange_clone(long orig);
8183         // bool QueryChannelRange_eq(const struct LDKQueryChannelRange *NONNULL_PTR a, const struct LDKQueryChannelRange *NONNULL_PTR b);
8184         public static native boolean QueryChannelRange_eq(long a, long b);
8185         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
8186         public static native void ReplyChannelRange_free(long this_obj);
8187         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
8188         public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
8189         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8190         public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
8191         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8192         public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
8193         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8194         public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
8195         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8196         public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
8197         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
8198         public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
8199         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8200         public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
8201         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
8202         public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
8203         // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
8204         public static native long[] ReplyChannelRange_get_short_channel_ids(long this_ptr);
8205         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
8206         public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
8207         // 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);
8208         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);
8209         // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
8210         public static native long ReplyChannelRange_clone_ptr(long arg);
8211         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
8212         public static native long ReplyChannelRange_clone(long orig);
8213         // bool ReplyChannelRange_eq(const struct LDKReplyChannelRange *NONNULL_PTR a, const struct LDKReplyChannelRange *NONNULL_PTR b);
8214         public static native boolean ReplyChannelRange_eq(long a, long b);
8215         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
8216         public static native void QueryShortChannelIds_free(long this_obj);
8217         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
8218         public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
8219         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8220         public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
8221         // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr);
8222         public static native long[] QueryShortChannelIds_get_short_channel_ids(long this_ptr);
8223         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
8224         public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
8225         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
8226         public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
8227         // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
8228         public static native long QueryShortChannelIds_clone_ptr(long arg);
8229         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
8230         public static native long QueryShortChannelIds_clone(long orig);
8231         // bool QueryShortChannelIds_eq(const struct LDKQueryShortChannelIds *NONNULL_PTR a, const struct LDKQueryShortChannelIds *NONNULL_PTR b);
8232         public static native boolean QueryShortChannelIds_eq(long a, long b);
8233         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
8234         public static native void ReplyShortChannelIdsEnd_free(long this_obj);
8235         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
8236         public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
8237         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8238         public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
8239         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
8240         public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
8241         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
8242         public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
8243         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
8244         public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
8245         // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
8246         public static native long ReplyShortChannelIdsEnd_clone_ptr(long arg);
8247         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
8248         public static native long ReplyShortChannelIdsEnd_clone(long orig);
8249         // bool ReplyShortChannelIdsEnd_eq(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR a, const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR b);
8250         public static native boolean ReplyShortChannelIdsEnd_eq(long a, long b);
8251         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
8252         public static native void GossipTimestampFilter_free(long this_obj);
8253         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
8254         public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
8255         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8256         public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
8257         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
8258         public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
8259         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
8260         public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
8261         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
8262         public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
8263         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
8264         public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
8265         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
8266         public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
8267         // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
8268         public static native long GossipTimestampFilter_clone_ptr(long arg);
8269         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
8270         public static native long GossipTimestampFilter_clone(long orig);
8271         // bool GossipTimestampFilter_eq(const struct LDKGossipTimestampFilter *NONNULL_PTR a, const struct LDKGossipTimestampFilter *NONNULL_PTR b);
8272         public static native boolean GossipTimestampFilter_eq(long a, long b);
8273         // void ErrorAction_free(struct LDKErrorAction this_ptr);
8274         public static native void ErrorAction_free(long this_ptr);
8275         // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
8276         public static native long ErrorAction_clone_ptr(long arg);
8277         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
8278         public static native long ErrorAction_clone(long orig);
8279         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
8280         public static native long ErrorAction_disconnect_peer(long msg);
8281         // struct LDKErrorAction ErrorAction_disconnect_peer_with_warning(struct LDKWarningMessage msg);
8282         public static native long ErrorAction_disconnect_peer_with_warning(long msg);
8283         // struct LDKErrorAction ErrorAction_ignore_error(void);
8284         public static native long ErrorAction_ignore_error();
8285         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
8286         public static native long ErrorAction_ignore_and_log(Level a);
8287         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
8288         public static native long ErrorAction_ignore_duplicate_gossip();
8289         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
8290         public static native long ErrorAction_send_error_message(long msg);
8291         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
8292         public static native long ErrorAction_send_warning_message(long msg, Level log_level);
8293         // void LightningError_free(struct LDKLightningError this_obj);
8294         public static native void LightningError_free(long this_obj);
8295         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
8296         public static native String LightningError_get_err(long this_ptr);
8297         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
8298         public static native void LightningError_set_err(long this_ptr, String val);
8299         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
8300         public static native long LightningError_get_action(long this_ptr);
8301         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
8302         public static native void LightningError_set_action(long this_ptr, long val);
8303         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
8304         public static native long LightningError_new(String err_arg, long action_arg);
8305         // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
8306         public static native long LightningError_clone_ptr(long arg);
8307         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
8308         public static native long LightningError_clone(long orig);
8309         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
8310         public static native void CommitmentUpdate_free(long this_obj);
8311         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8312         public static native long[] CommitmentUpdate_get_update_add_htlcs(long this_ptr);
8313         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
8314         public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
8315         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8316         public static native long[] CommitmentUpdate_get_update_fulfill_htlcs(long this_ptr);
8317         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
8318         public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
8319         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8320         public static native long[] CommitmentUpdate_get_update_fail_htlcs(long this_ptr);
8321         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
8322         public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
8323         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8324         public static native long[] CommitmentUpdate_get_update_fail_malformed_htlcs(long this_ptr);
8325         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
8326         public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
8327         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8328         public static native long CommitmentUpdate_get_update_fee(long this_ptr);
8329         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
8330         public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
8331         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
8332         public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
8333         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
8334         public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
8335         // 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);
8336         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);
8337         // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
8338         public static native long CommitmentUpdate_clone_ptr(long arg);
8339         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
8340         public static native long CommitmentUpdate_clone(long orig);
8341         // bool CommitmentUpdate_eq(const struct LDKCommitmentUpdate *NONNULL_PTR a, const struct LDKCommitmentUpdate *NONNULL_PTR b);
8342         public static native boolean CommitmentUpdate_eq(long a, long b);
8343         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
8344         public static native void ChannelMessageHandler_free(long this_ptr);
8345         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
8346         public static native void RoutingMessageHandler_free(long this_ptr);
8347         // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr);
8348         public static native void OnionMessageHandler_free(long this_ptr);
8349         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
8350         public static native byte[] AcceptChannel_write(long obj);
8351         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
8352         public static native long AcceptChannel_read(byte[] ser);
8353         // struct LDKCVec_u8Z AcceptChannelV2_write(const struct LDKAcceptChannelV2 *NONNULL_PTR obj);
8354         public static native byte[] AcceptChannelV2_write(long obj);
8355         // struct LDKCResult_AcceptChannelV2DecodeErrorZ AcceptChannelV2_read(struct LDKu8slice ser);
8356         public static native long AcceptChannelV2_read(byte[] ser);
8357         // struct LDKCVec_u8Z TxAddInput_write(const struct LDKTxAddInput *NONNULL_PTR obj);
8358         public static native byte[] TxAddInput_write(long obj);
8359         // struct LDKCResult_TxAddInputDecodeErrorZ TxAddInput_read(struct LDKu8slice ser);
8360         public static native long TxAddInput_read(byte[] ser);
8361         // struct LDKCVec_u8Z TxAddOutput_write(const struct LDKTxAddOutput *NONNULL_PTR obj);
8362         public static native byte[] TxAddOutput_write(long obj);
8363         // struct LDKCResult_TxAddOutputDecodeErrorZ TxAddOutput_read(struct LDKu8slice ser);
8364         public static native long TxAddOutput_read(byte[] ser);
8365         // struct LDKCVec_u8Z TxRemoveInput_write(const struct LDKTxRemoveInput *NONNULL_PTR obj);
8366         public static native byte[] TxRemoveInput_write(long obj);
8367         // struct LDKCResult_TxRemoveInputDecodeErrorZ TxRemoveInput_read(struct LDKu8slice ser);
8368         public static native long TxRemoveInput_read(byte[] ser);
8369         // struct LDKCVec_u8Z TxRemoveOutput_write(const struct LDKTxRemoveOutput *NONNULL_PTR obj);
8370         public static native byte[] TxRemoveOutput_write(long obj);
8371         // struct LDKCResult_TxRemoveOutputDecodeErrorZ TxRemoveOutput_read(struct LDKu8slice ser);
8372         public static native long TxRemoveOutput_read(byte[] ser);
8373         // struct LDKCVec_u8Z TxComplete_write(const struct LDKTxComplete *NONNULL_PTR obj);
8374         public static native byte[] TxComplete_write(long obj);
8375         // struct LDKCResult_TxCompleteDecodeErrorZ TxComplete_read(struct LDKu8slice ser);
8376         public static native long TxComplete_read(byte[] ser);
8377         // struct LDKCVec_u8Z TxSignatures_write(const struct LDKTxSignatures *NONNULL_PTR obj);
8378         public static native byte[] TxSignatures_write(long obj);
8379         // struct LDKCResult_TxSignaturesDecodeErrorZ TxSignatures_read(struct LDKu8slice ser);
8380         public static native long TxSignatures_read(byte[] ser);
8381         // struct LDKCVec_u8Z TxInitRbf_write(const struct LDKTxInitRbf *NONNULL_PTR obj);
8382         public static native byte[] TxInitRbf_write(long obj);
8383         // struct LDKCResult_TxInitRbfDecodeErrorZ TxInitRbf_read(struct LDKu8slice ser);
8384         public static native long TxInitRbf_read(byte[] ser);
8385         // struct LDKCVec_u8Z TxAckRbf_write(const struct LDKTxAckRbf *NONNULL_PTR obj);
8386         public static native byte[] TxAckRbf_write(long obj);
8387         // struct LDKCResult_TxAckRbfDecodeErrorZ TxAckRbf_read(struct LDKu8slice ser);
8388         public static native long TxAckRbf_read(byte[] ser);
8389         // struct LDKCVec_u8Z TxAbort_write(const struct LDKTxAbort *NONNULL_PTR obj);
8390         public static native byte[] TxAbort_write(long obj);
8391         // struct LDKCResult_TxAbortDecodeErrorZ TxAbort_read(struct LDKu8slice ser);
8392         public static native long TxAbort_read(byte[] ser);
8393         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
8394         public static native byte[] AnnouncementSignatures_write(long obj);
8395         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
8396         public static native long AnnouncementSignatures_read(byte[] ser);
8397         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
8398         public static native byte[] ChannelReestablish_write(long obj);
8399         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
8400         public static native long ChannelReestablish_read(byte[] ser);
8401         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
8402         public static native byte[] ClosingSigned_write(long obj);
8403         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
8404         public static native long ClosingSigned_read(byte[] ser);
8405         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
8406         public static native byte[] ClosingSignedFeeRange_write(long obj);
8407         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
8408         public static native long ClosingSignedFeeRange_read(byte[] ser);
8409         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
8410         public static native byte[] CommitmentSigned_write(long obj);
8411         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
8412         public static native long CommitmentSigned_read(byte[] ser);
8413         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
8414         public static native byte[] FundingCreated_write(long obj);
8415         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
8416         public static native long FundingCreated_read(byte[] ser);
8417         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
8418         public static native byte[] FundingSigned_write(long obj);
8419         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
8420         public static native long FundingSigned_read(byte[] ser);
8421         // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
8422         public static native byte[] ChannelReady_write(long obj);
8423         // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
8424         public static native long ChannelReady_read(byte[] ser);
8425         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
8426         public static native byte[] Init_write(long obj);
8427         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
8428         public static native long Init_read(byte[] ser);
8429         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
8430         public static native byte[] OpenChannel_write(long obj);
8431         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
8432         public static native long OpenChannel_read(byte[] ser);
8433         // struct LDKCVec_u8Z OpenChannelV2_write(const struct LDKOpenChannelV2 *NONNULL_PTR obj);
8434         public static native byte[] OpenChannelV2_write(long obj);
8435         // struct LDKCResult_OpenChannelV2DecodeErrorZ OpenChannelV2_read(struct LDKu8slice ser);
8436         public static native long OpenChannelV2_read(byte[] ser);
8437         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
8438         public static native byte[] RevokeAndACK_write(long obj);
8439         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
8440         public static native long RevokeAndACK_read(byte[] ser);
8441         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
8442         public static native byte[] Shutdown_write(long obj);
8443         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
8444         public static native long Shutdown_read(byte[] ser);
8445         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
8446         public static native byte[] UpdateFailHTLC_write(long obj);
8447         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
8448         public static native long UpdateFailHTLC_read(byte[] ser);
8449         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
8450         public static native byte[] UpdateFailMalformedHTLC_write(long obj);
8451         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
8452         public static native long UpdateFailMalformedHTLC_read(byte[] ser);
8453         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
8454         public static native byte[] UpdateFee_write(long obj);
8455         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
8456         public static native long UpdateFee_read(byte[] ser);
8457         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
8458         public static native byte[] UpdateFulfillHTLC_write(long obj);
8459         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
8460         public static native long UpdateFulfillHTLC_read(byte[] ser);
8461         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
8462         public static native byte[] UpdateAddHTLC_write(long obj);
8463         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
8464         public static native long UpdateAddHTLC_read(byte[] ser);
8465         // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser);
8466         public static native long OnionMessage_read(byte[] ser);
8467         // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj);
8468         public static native byte[] OnionMessage_write(long obj);
8469         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
8470         public static native byte[] Ping_write(long obj);
8471         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
8472         public static native long Ping_read(byte[] ser);
8473         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
8474         public static native byte[] Pong_write(long obj);
8475         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
8476         public static native long Pong_read(byte[] ser);
8477         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
8478         public static native byte[] UnsignedChannelAnnouncement_write(long obj);
8479         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
8480         public static native long UnsignedChannelAnnouncement_read(byte[] ser);
8481         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
8482         public static native byte[] ChannelAnnouncement_write(long obj);
8483         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
8484         public static native long ChannelAnnouncement_read(byte[] ser);
8485         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
8486         public static native byte[] UnsignedChannelUpdate_write(long obj);
8487         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
8488         public static native long UnsignedChannelUpdate_read(byte[] ser);
8489         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
8490         public static native byte[] ChannelUpdate_write(long obj);
8491         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
8492         public static native long ChannelUpdate_read(byte[] ser);
8493         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
8494         public static native byte[] ErrorMessage_write(long obj);
8495         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
8496         public static native long ErrorMessage_read(byte[] ser);
8497         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
8498         public static native byte[] WarningMessage_write(long obj);
8499         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
8500         public static native long WarningMessage_read(byte[] ser);
8501         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
8502         public static native byte[] UnsignedNodeAnnouncement_write(long obj);
8503         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
8504         public static native long UnsignedNodeAnnouncement_read(byte[] ser);
8505         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
8506         public static native byte[] NodeAnnouncement_write(long obj);
8507         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
8508         public static native long NodeAnnouncement_read(byte[] ser);
8509         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
8510         public static native long QueryShortChannelIds_read(byte[] ser);
8511         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
8512         public static native byte[] QueryShortChannelIds_write(long obj);
8513         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
8514         public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
8515         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
8516         public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
8517         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
8518         public static native int QueryChannelRange_end_blocknum(long this_arg);
8519         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
8520         public static native byte[] QueryChannelRange_write(long obj);
8521         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
8522         public static native long QueryChannelRange_read(byte[] ser);
8523         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
8524         public static native long ReplyChannelRange_read(byte[] ser);
8525         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
8526         public static native byte[] ReplyChannelRange_write(long obj);
8527         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
8528         public static native byte[] GossipTimestampFilter_write(long obj);
8529         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
8530         public static native long GossipTimestampFilter_read(byte[] ser);
8531         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
8532         public static native void CustomMessageHandler_free(long this_ptr);
8533         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
8534         public static native void IgnoringMessageHandler_free(long this_obj);
8535         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
8536         public static native long IgnoringMessageHandler_new();
8537         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8538         public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
8539         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8540         public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
8541         // struct LDKOnionMessageProvider IgnoringMessageHandler_as_OnionMessageProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8542         public static native long IgnoringMessageHandler_as_OnionMessageProvider(long this_arg);
8543         // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8544         public static native long IgnoringMessageHandler_as_OnionMessageHandler(long this_arg);
8545         // struct LDKOffersMessageHandler IgnoringMessageHandler_as_OffersMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8546         public static native long IgnoringMessageHandler_as_OffersMessageHandler(long this_arg);
8547         // struct LDKCustomOnionMessageHandler IgnoringMessageHandler_as_CustomOnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8548         public static native long IgnoringMessageHandler_as_CustomOnionMessageHandler(long this_arg);
8549         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8550         public static native long IgnoringMessageHandler_as_CustomMessageReader(long this_arg);
8551         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
8552         public static native long IgnoringMessageHandler_as_CustomMessageHandler(long this_arg);
8553         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
8554         public static native void ErroringMessageHandler_free(long this_obj);
8555         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
8556         public static native long ErroringMessageHandler_new();
8557         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
8558         public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
8559         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
8560         public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
8561         // void MessageHandler_free(struct LDKMessageHandler this_obj);
8562         public static native void MessageHandler_free(long this_obj);
8563         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
8564         public static native long MessageHandler_get_chan_handler(long this_ptr);
8565         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
8566         public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
8567         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
8568         public static native long MessageHandler_get_route_handler(long this_ptr);
8569         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
8570         public static native void MessageHandler_set_route_handler(long this_ptr, long val);
8571         // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
8572         public static native long MessageHandler_get_onion_message_handler(long this_ptr);
8573         // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val);
8574         public static native void MessageHandler_set_onion_message_handler(long this_ptr, long val);
8575         // const struct LDKCustomMessageHandler *MessageHandler_get_custom_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
8576         public static native long MessageHandler_get_custom_message_handler(long this_ptr);
8577         // void MessageHandler_set_custom_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKCustomMessageHandler val);
8578         public static native void MessageHandler_set_custom_message_handler(long this_ptr, long val);
8579         // 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);
8580         public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg, long onion_message_handler_arg, long custom_message_handler_arg);
8581         // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
8582         public static native long SocketDescriptor_clone_ptr(long arg);
8583         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
8584         public static native long SocketDescriptor_clone(long orig);
8585         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
8586         public static native void SocketDescriptor_free(long this_ptr);
8587         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
8588         public static native void PeerHandleError_free(long this_obj);
8589         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(void);
8590         public static native long PeerHandleError_new();
8591         // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
8592         public static native long PeerHandleError_clone_ptr(long arg);
8593         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
8594         public static native long PeerHandleError_clone(long orig);
8595         // void PeerManager_free(struct LDKPeerManager this_obj);
8596         public static native void PeerManager_free(long this_obj);
8597         // 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);
8598         public static native long PeerManager_new(long message_handler, int current_time, byte[] ephemeral_random_data, long logger, long node_signer);
8599         // MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
8600         public static native long[] PeerManager_get_peer_node_ids(long this_arg);
8601         // MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address);
8602         public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor, long remote_network_address);
8603         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address);
8604         public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor, long remote_network_address);
8605         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
8606         public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
8607         // 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);
8608         public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
8609         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
8610         public static native void PeerManager_process_events(long this_arg);
8611         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
8612         public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
8613         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
8614         public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id);
8615         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
8616         public static native void PeerManager_disconnect_all_peers(long this_arg);
8617         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
8618         public static native void PeerManager_timer_tick_occurred(long this_arg);
8619         // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
8620         public static native void PeerManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
8621         // uint64_t htlc_success_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
8622         public static native long htlc_success_tx_weight(long channel_type_features);
8623         // uint64_t htlc_timeout_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
8624         public static native long htlc_timeout_tx_weight(long channel_type_features);
8625         // enum LDKHTLCClaim HTLCClaim_clone(const enum LDKHTLCClaim *NONNULL_PTR orig);
8626         public static native HTLCClaim HTLCClaim_clone(long orig);
8627         // enum LDKHTLCClaim HTLCClaim_offered_timeout(void);
8628         public static native HTLCClaim HTLCClaim_offered_timeout();
8629         // enum LDKHTLCClaim HTLCClaim_offered_preimage(void);
8630         public static native HTLCClaim HTLCClaim_offered_preimage();
8631         // enum LDKHTLCClaim HTLCClaim_accepted_timeout(void);
8632         public static native HTLCClaim HTLCClaim_accepted_timeout();
8633         // enum LDKHTLCClaim HTLCClaim_accepted_preimage(void);
8634         public static native HTLCClaim HTLCClaim_accepted_preimage();
8635         // enum LDKHTLCClaim HTLCClaim_revocation(void);
8636         public static native HTLCClaim HTLCClaim_revocation();
8637         // bool HTLCClaim_eq(const enum LDKHTLCClaim *NONNULL_PTR a, const enum LDKHTLCClaim *NONNULL_PTR b);
8638         public static native boolean HTLCClaim_eq(long a, long b);
8639         // MUST_USE_RES struct LDKCOption_HTLCClaimZ HTLCClaim_from_witness(struct LDKWitness witness);
8640         public static native long HTLCClaim_from_witness(byte[] witness);
8641         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
8642         public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
8643         // 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);
8644         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);
8645         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
8646         public static native void CounterpartyCommitmentSecrets_free(long this_obj);
8647         // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
8648         public static native long CounterpartyCommitmentSecrets_clone_ptr(long arg);
8649         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
8650         public static native long CounterpartyCommitmentSecrets_clone(long orig);
8651         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
8652         public static native long CounterpartyCommitmentSecrets_new();
8653         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
8654         public static native long CounterpartyCommitmentSecrets_get_min_seen_secret(long this_arg);
8655         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
8656         public static native long CounterpartyCommitmentSecrets_provide_secret(long this_arg, long idx, byte[] secret);
8657         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
8658         public static native byte[] CounterpartyCommitmentSecrets_get_secret(long this_arg, long idx);
8659         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
8660         public static native byte[] CounterpartyCommitmentSecrets_write(long obj);
8661         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
8662         public static native long CounterpartyCommitmentSecrets_read(byte[] ser);
8663         // struct LDKSecretKey derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
8664         public static native byte[] derive_private_key(byte[] per_commitment_point, byte[] base_secret);
8665         // struct LDKPublicKey derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
8666         public static native byte[] derive_public_key(byte[] per_commitment_point, byte[] base_point);
8667         // struct LDKSecretKey derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
8668         public static native byte[] derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
8669         // struct LDKPublicKey derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
8670         public static native byte[] derive_public_revocation_key(byte[] per_commitment_point, byte[] countersignatory_revocation_base_point);
8671         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
8672         public static native void TxCreationKeys_free(long this_obj);
8673         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
8674         public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
8675         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8676         public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
8677         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
8678         public static native byte[] TxCreationKeys_get_revocation_key(long this_ptr);
8679         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8680         public static native void TxCreationKeys_set_revocation_key(long this_ptr, byte[] val);
8681         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
8682         public static native byte[] TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
8683         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8684         public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, byte[] val);
8685         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
8686         public static native byte[] TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
8687         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8688         public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, byte[] val);
8689         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
8690         public static native byte[] TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
8691         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8692         public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, byte[] val);
8693         // 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);
8694         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);
8695         // bool TxCreationKeys_eq(const struct LDKTxCreationKeys *NONNULL_PTR a, const struct LDKTxCreationKeys *NONNULL_PTR b);
8696         public static native boolean TxCreationKeys_eq(long a, long b);
8697         // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
8698         public static native long TxCreationKeys_clone_ptr(long arg);
8699         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
8700         public static native long TxCreationKeys_clone(long orig);
8701         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
8702         public static native byte[] TxCreationKeys_write(long obj);
8703         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
8704         public static native long TxCreationKeys_read(byte[] ser);
8705         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
8706         public static native void ChannelPublicKeys_free(long this_obj);
8707         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
8708         public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
8709         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8710         public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
8711         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
8712         public static native byte[] ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
8713         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8714         public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, byte[] val);
8715         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
8716         public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
8717         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8718         public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
8719         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
8720         public static native byte[] ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
8721         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8722         public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, byte[] val);
8723         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
8724         public static native byte[] ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
8725         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8726         public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, byte[] val);
8727         // 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);
8728         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);
8729         // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
8730         public static native long ChannelPublicKeys_clone_ptr(long arg);
8731         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
8732         public static native long ChannelPublicKeys_clone(long orig);
8733         // bool ChannelPublicKeys_eq(const struct LDKChannelPublicKeys *NONNULL_PTR a, const struct LDKChannelPublicKeys *NONNULL_PTR b);
8734         public static native boolean ChannelPublicKeys_eq(long a, long b);
8735         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
8736         public static native byte[] ChannelPublicKeys_write(long obj);
8737         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
8738         public static native long ChannelPublicKeys_read(byte[] ser);
8739         // 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);
8740         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);
8741         // 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);
8742         public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
8743         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
8744         public static native byte[] get_revokeable_redeemscript(byte[] revocation_key, short contest_delay, byte[] broadcaster_delayed_payment_key);
8745         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
8746         public static native void HTLCOutputInCommitment_free(long this_obj);
8747         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
8748         public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
8749         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
8750         public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
8751         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
8752         public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
8753         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
8754         public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
8755         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
8756         public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
8757         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
8758         public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
8759         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
8760         public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
8761         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8762         public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
8763         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
8764         public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);
8765         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
8766         public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);
8767         // 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);
8768         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);
8769         // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
8770         public static native long HTLCOutputInCommitment_clone_ptr(long arg);
8771         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
8772         public static native long HTLCOutputInCommitment_clone(long orig);
8773         // bool HTLCOutputInCommitment_eq(const struct LDKHTLCOutputInCommitment *NONNULL_PTR a, const struct LDKHTLCOutputInCommitment *NONNULL_PTR b);
8774         public static native boolean HTLCOutputInCommitment_eq(long a, long b);
8775         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
8776         public static native byte[] HTLCOutputInCommitment_write(long obj);
8777         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
8778         public static native long HTLCOutputInCommitment_read(byte[] ser);
8779         // 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);
8780         public static native byte[] get_htlc_redeemscript(long htlc, long channel_type_features, long keys);
8781         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
8782         public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
8783         // 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);
8784         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);
8785         // struct LDKWitness build_htlc_input_witness(struct LDKSignature local_sig, struct LDKSignature remote_sig, struct LDKCOption_PaymentPreimageZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
8786         public static native byte[] build_htlc_input_witness(byte[] local_sig, byte[] remote_sig, long preimage, byte[] redeem_script, long channel_type_features);
8787         // struct LDKCVec_u8Z get_to_countersignatory_with_anchors_redeemscript(struct LDKPublicKey payment_point);
8788         public static native byte[] get_to_countersignatory_with_anchors_redeemscript(byte[] payment_point);
8789         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
8790         public static native byte[] get_anchor_redeemscript(byte[] funding_pubkey);
8791         // struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKSignature funding_sig);
8792         public static native byte[] build_anchor_input_witness(byte[] funding_key, byte[] funding_sig);
8793         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
8794         public static native void ChannelTransactionParameters_free(long this_obj);
8795         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
8796         public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
8797         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
8798         public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
8799         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
8800         public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
8801         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
8802         public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
8803         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
8804         public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
8805         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
8806         public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
8807         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
8808         public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
8809         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
8810         public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
8811         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
8812         public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
8813         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
8814         public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
8815         // struct LDKChannelTypeFeatures ChannelTransactionParameters_get_channel_type_features(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
8816         public static native long ChannelTransactionParameters_get_channel_type_features(long this_ptr);
8817         // void ChannelTransactionParameters_set_channel_type_features(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
8818         public static native void ChannelTransactionParameters_set_channel_type_features(long this_ptr, long val);
8819         // 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);
8820         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);
8821         // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
8822         public static native long ChannelTransactionParameters_clone_ptr(long arg);
8823         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
8824         public static native long ChannelTransactionParameters_clone(long orig);
8825         // bool ChannelTransactionParameters_eq(const struct LDKChannelTransactionParameters *NONNULL_PTR a, const struct LDKChannelTransactionParameters *NONNULL_PTR b);
8826         public static native boolean ChannelTransactionParameters_eq(long a, long b);
8827         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
8828         public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
8829         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
8830         public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
8831         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
8832         public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
8833         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
8834         public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
8835         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
8836         public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
8837         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
8838         public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
8839         // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
8840         public static native long CounterpartyChannelTransactionParameters_clone_ptr(long arg);
8841         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
8842         public static native long CounterpartyChannelTransactionParameters_clone(long orig);
8843         // bool CounterpartyChannelTransactionParameters_eq(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR a, const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR b);
8844         public static native boolean CounterpartyChannelTransactionParameters_eq(long a, long b);
8845         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
8846         public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
8847         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
8848         public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
8849         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
8850         public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
8851         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
8852         public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
8853         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
8854         public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
8855         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
8856         public static native byte[] ChannelTransactionParameters_write(long obj);
8857         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
8858         public static native long ChannelTransactionParameters_read(byte[] ser);
8859         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
8860         public static native void DirectedChannelTransactionParameters_free(long this_obj);
8861         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
8862         public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
8863         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
8864         public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
8865         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
8866         public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
8867         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
8868         public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
8869         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
8870         public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
8871         // MUST_USE_RES struct LDKChannelTypeFeatures DirectedChannelTransactionParameters_channel_type_features(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
8872         public static native long DirectedChannelTransactionParameters_channel_type_features(long this_arg);
8873         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
8874         public static native void HolderCommitmentTransaction_free(long this_obj);
8875         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
8876         public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
8877         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
8878         public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
8879         // struct LDKCVec_SignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
8880         public static native byte[][] HolderCommitmentTransaction_get_counterparty_htlc_sigs(long this_ptr);
8881         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
8882         public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
8883         // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
8884         public static native long HolderCommitmentTransaction_clone_ptr(long arg);
8885         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
8886         public static native long HolderCommitmentTransaction_clone(long orig);
8887         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
8888         public static native byte[] HolderCommitmentTransaction_write(long obj);
8889         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
8890         public static native long HolderCommitmentTransaction_read(byte[] ser);
8891         // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
8892         public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
8893         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
8894         public static native void BuiltCommitmentTransaction_free(long this_obj);
8895         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
8896         public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
8897         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
8898         public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
8899         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
8900         public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
8901         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8902         public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
8903         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
8904         public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
8905         // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
8906         public static native long BuiltCommitmentTransaction_clone_ptr(long arg);
8907         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
8908         public static native long BuiltCommitmentTransaction_clone(long orig);
8909         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
8910         public static native byte[] BuiltCommitmentTransaction_write(long obj);
8911         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
8912         public static native long BuiltCommitmentTransaction_read(byte[] ser);
8913         // 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);
8914         public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
8915         // MUST_USE_RES struct LDKSignature 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);
8916         public static native byte[] BuiltCommitmentTransaction_sign_counterparty_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
8917         // MUST_USE_RES struct LDKSignature 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);
8918         public static native byte[] BuiltCommitmentTransaction_sign_holder_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis, long entropy_source);
8919         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
8920         public static native void ClosingTransaction_free(long this_obj);
8921         // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
8922         public static native long ClosingTransaction_clone_ptr(long arg);
8923         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
8924         public static native long ClosingTransaction_clone(long orig);
8925         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
8926         public static native long ClosingTransaction_hash(long o);
8927         // bool ClosingTransaction_eq(const struct LDKClosingTransaction *NONNULL_PTR a, const struct LDKClosingTransaction *NONNULL_PTR b);
8928         public static native boolean ClosingTransaction_eq(long a, long b);
8929         // 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);
8930         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);
8931         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
8932         public static native long ClosingTransaction_trust(long this_arg);
8933         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
8934         public static native long ClosingTransaction_verify(long this_arg, long funding_outpoint);
8935         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
8936         public static native long ClosingTransaction_to_holder_value_sat(long this_arg);
8937         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
8938         public static native long ClosingTransaction_to_counterparty_value_sat(long this_arg);
8939         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
8940         public static native byte[] ClosingTransaction_to_holder_script(long this_arg);
8941         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
8942         public static native byte[] ClosingTransaction_to_counterparty_script(long this_arg);
8943         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
8944         public static native void TrustedClosingTransaction_free(long this_obj);
8945         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
8946         public static native byte[] TrustedClosingTransaction_built_transaction(long this_arg);
8947         // 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);
8948         public static native byte[] TrustedClosingTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
8949         // MUST_USE_RES struct LDKSignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
8950         public static native byte[] TrustedClosingTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
8951         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
8952         public static native void CommitmentTransaction_free(long this_obj);
8953         // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
8954         public static native long CommitmentTransaction_clone_ptr(long arg);
8955         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
8956         public static native long CommitmentTransaction_clone(long orig);
8957         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
8958         public static native byte[] CommitmentTransaction_write(long obj);
8959         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
8960         public static native long CommitmentTransaction_read(byte[] ser);
8961         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
8962         public static native long CommitmentTransaction_commitment_number(long this_arg);
8963         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
8964         public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
8965         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
8966         public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
8967         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
8968         public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
8969         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
8970         public static native long CommitmentTransaction_trust(long this_arg);
8971         // 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);
8972         public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
8973         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
8974         public static native void TrustedCommitmentTransaction_free(long this_obj);
8975         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
8976         public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
8977         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
8978         public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
8979         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
8980         public static native long TrustedCommitmentTransaction_keys(long this_arg);
8981         // MUST_USE_RES struct LDKChannelTypeFeatures TrustedCommitmentTransaction_channel_type_features(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
8982         public static native long TrustedCommitmentTransaction_channel_type_features(long this_arg);
8983         // MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source);
8984         public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters, long entropy_source);
8985         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
8986         public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
8987         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
8988         public static native boolean InitFeatures_eq(long a, long b);
8989         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
8990         public static native boolean NodeFeatures_eq(long a, long b);
8991         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
8992         public static native boolean ChannelFeatures_eq(long a, long b);
8993         // bool Bolt11InvoiceFeatures_eq(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR b);
8994         public static native boolean Bolt11InvoiceFeatures_eq(long a, long b);
8995         // bool OfferFeatures_eq(const struct LDKOfferFeatures *NONNULL_PTR a, const struct LDKOfferFeatures *NONNULL_PTR b);
8996         public static native boolean OfferFeatures_eq(long a, long b);
8997         // bool InvoiceRequestFeatures_eq(const struct LDKInvoiceRequestFeatures *NONNULL_PTR a, const struct LDKInvoiceRequestFeatures *NONNULL_PTR b);
8998         public static native boolean InvoiceRequestFeatures_eq(long a, long b);
8999         // bool Bolt12InvoiceFeatures_eq(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR b);
9000         public static native boolean Bolt12InvoiceFeatures_eq(long a, long b);
9001         // bool BlindedHopFeatures_eq(const struct LDKBlindedHopFeatures *NONNULL_PTR a, const struct LDKBlindedHopFeatures *NONNULL_PTR b);
9002         public static native boolean BlindedHopFeatures_eq(long a, long b);
9003         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
9004         public static native boolean ChannelTypeFeatures_eq(long a, long b);
9005         // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
9006         public static native long InitFeatures_clone_ptr(long arg);
9007         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
9008         public static native long InitFeatures_clone(long orig);
9009         // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
9010         public static native long NodeFeatures_clone_ptr(long arg);
9011         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
9012         public static native long NodeFeatures_clone(long orig);
9013         // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
9014         public static native long ChannelFeatures_clone_ptr(long arg);
9015         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
9016         public static native long ChannelFeatures_clone(long orig);
9017         // uint64_t Bolt11InvoiceFeatures_clone_ptr(LDKBolt11InvoiceFeatures *NONNULL_PTR arg);
9018         public static native long Bolt11InvoiceFeatures_clone_ptr(long arg);
9019         // struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_clone(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR orig);
9020         public static native long Bolt11InvoiceFeatures_clone(long orig);
9021         // uint64_t OfferFeatures_clone_ptr(LDKOfferFeatures *NONNULL_PTR arg);
9022         public static native long OfferFeatures_clone_ptr(long arg);
9023         // struct LDKOfferFeatures OfferFeatures_clone(const struct LDKOfferFeatures *NONNULL_PTR orig);
9024         public static native long OfferFeatures_clone(long orig);
9025         // uint64_t InvoiceRequestFeatures_clone_ptr(LDKInvoiceRequestFeatures *NONNULL_PTR arg);
9026         public static native long InvoiceRequestFeatures_clone_ptr(long arg);
9027         // struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_clone(const struct LDKInvoiceRequestFeatures *NONNULL_PTR orig);
9028         public static native long InvoiceRequestFeatures_clone(long orig);
9029         // uint64_t Bolt12InvoiceFeatures_clone_ptr(LDKBolt12InvoiceFeatures *NONNULL_PTR arg);
9030         public static native long Bolt12InvoiceFeatures_clone_ptr(long arg);
9031         // struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_clone(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR orig);
9032         public static native long Bolt12InvoiceFeatures_clone(long orig);
9033         // uint64_t BlindedHopFeatures_clone_ptr(LDKBlindedHopFeatures *NONNULL_PTR arg);
9034         public static native long BlindedHopFeatures_clone_ptr(long arg);
9035         // struct LDKBlindedHopFeatures BlindedHopFeatures_clone(const struct LDKBlindedHopFeatures *NONNULL_PTR orig);
9036         public static native long BlindedHopFeatures_clone(long orig);
9037         // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
9038         public static native long ChannelTypeFeatures_clone_ptr(long arg);
9039         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
9040         public static native long ChannelTypeFeatures_clone(long orig);
9041         // void InitFeatures_free(struct LDKInitFeatures this_obj);
9042         public static native void InitFeatures_free(long this_obj);
9043         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
9044         public static native void NodeFeatures_free(long this_obj);
9045         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
9046         public static native void ChannelFeatures_free(long this_obj);
9047         // void Bolt11InvoiceFeatures_free(struct LDKBolt11InvoiceFeatures this_obj);
9048         public static native void Bolt11InvoiceFeatures_free(long this_obj);
9049         // void OfferFeatures_free(struct LDKOfferFeatures this_obj);
9050         public static native void OfferFeatures_free(long this_obj);
9051         // void InvoiceRequestFeatures_free(struct LDKInvoiceRequestFeatures this_obj);
9052         public static native void InvoiceRequestFeatures_free(long this_obj);
9053         // void Bolt12InvoiceFeatures_free(struct LDKBolt12InvoiceFeatures this_obj);
9054         public static native void Bolt12InvoiceFeatures_free(long this_obj);
9055         // void BlindedHopFeatures_free(struct LDKBlindedHopFeatures this_obj);
9056         public static native void BlindedHopFeatures_free(long this_obj);
9057         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
9058         public static native void ChannelTypeFeatures_free(long this_obj);
9059         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
9060         public static native long InitFeatures_empty();
9061         // MUST_USE_RES bool InitFeatures_requires_unknown_bits_from(const struct LDKInitFeatures *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR other);
9062         public static native boolean InitFeatures_requires_unknown_bits_from(long this_arg, long other);
9063         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9064         public static native boolean InitFeatures_requires_unknown_bits(long this_arg);
9065         // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9066         public static native long InitFeatures_set_required_custom_bit(long this_arg, long bit);
9067         // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9068         public static native long InitFeatures_set_optional_custom_bit(long this_arg, long bit);
9069         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
9070         public static native long NodeFeatures_empty();
9071         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits_from(const struct LDKNodeFeatures *NONNULL_PTR this_arg, const struct LDKNodeFeatures *NONNULL_PTR other);
9072         public static native boolean NodeFeatures_requires_unknown_bits_from(long this_arg, long other);
9073         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9074         public static native boolean NodeFeatures_requires_unknown_bits(long this_arg);
9075         // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9076         public static native long NodeFeatures_set_required_custom_bit(long this_arg, long bit);
9077         // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9078         public static native long NodeFeatures_set_optional_custom_bit(long this_arg, long bit);
9079         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
9080         public static native long ChannelFeatures_empty();
9081         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits_from(const struct LDKChannelFeatures *NONNULL_PTR this_arg, const struct LDKChannelFeatures *NONNULL_PTR other);
9082         public static native boolean ChannelFeatures_requires_unknown_bits_from(long this_arg, long other);
9083         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
9084         public static native boolean ChannelFeatures_requires_unknown_bits(long this_arg);
9085         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9086         public static native long ChannelFeatures_set_required_custom_bit(long this_arg, long bit);
9087         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9088         public static native long ChannelFeatures_set_optional_custom_bit(long this_arg, long bit);
9089         // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_empty(void);
9090         public static native long Bolt11InvoiceFeatures_empty();
9091         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR other);
9092         public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
9093         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9094         public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits(long this_arg);
9095         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9096         public static native long Bolt11InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
9097         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9098         public static native long Bolt11InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
9099         // MUST_USE_RES struct LDKOfferFeatures OfferFeatures_empty(void);
9100         public static native long OfferFeatures_empty();
9101         // MUST_USE_RES bool OfferFeatures_requires_unknown_bits_from(const struct LDKOfferFeatures *NONNULL_PTR this_arg, const struct LDKOfferFeatures *NONNULL_PTR other);
9102         public static native boolean OfferFeatures_requires_unknown_bits_from(long this_arg, long other);
9103         // MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg);
9104         public static native boolean OfferFeatures_requires_unknown_bits(long this_arg);
9105         // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9106         public static native long OfferFeatures_set_required_custom_bit(long this_arg, long bit);
9107         // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9108         public static native long OfferFeatures_set_optional_custom_bit(long this_arg, long bit);
9109         // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_empty(void);
9110         public static native long InvoiceRequestFeatures_empty();
9111         // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits_from(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, const struct LDKInvoiceRequestFeatures *NONNULL_PTR other);
9112         public static native boolean InvoiceRequestFeatures_requires_unknown_bits_from(long this_arg, long other);
9113         // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg);
9114         public static native boolean InvoiceRequestFeatures_requires_unknown_bits(long this_arg);
9115         // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9116         public static native long InvoiceRequestFeatures_set_required_custom_bit(long this_arg, long bit);
9117         // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9118         public static native long InvoiceRequestFeatures_set_optional_custom_bit(long this_arg, long bit);
9119         // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_empty(void);
9120         public static native long Bolt12InvoiceFeatures_empty();
9121         // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR other);
9122         public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
9123         // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9124         public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits(long this_arg);
9125         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9126         public static native long Bolt12InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
9127         // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9128         public static native long Bolt12InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
9129         // MUST_USE_RES struct LDKBlindedHopFeatures BlindedHopFeatures_empty(void);
9130         public static native long BlindedHopFeatures_empty();
9131         // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits_from(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, const struct LDKBlindedHopFeatures *NONNULL_PTR other);
9132         public static native boolean BlindedHopFeatures_requires_unknown_bits_from(long this_arg, long other);
9133         // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg);
9134         public static native boolean BlindedHopFeatures_requires_unknown_bits(long this_arg);
9135         // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9136         public static native long BlindedHopFeatures_set_required_custom_bit(long this_arg, long bit);
9137         // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9138         public static native long BlindedHopFeatures_set_optional_custom_bit(long this_arg, long bit);
9139         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
9140         public static native long ChannelTypeFeatures_empty();
9141         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits_from(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, const struct LDKChannelTypeFeatures *NONNULL_PTR other);
9142         public static native boolean ChannelTypeFeatures_requires_unknown_bits_from(long this_arg, long other);
9143         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9144         public static native boolean ChannelTypeFeatures_requires_unknown_bits(long this_arg);
9145         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9146         public static native long ChannelTypeFeatures_set_required_custom_bit(long this_arg, long bit);
9147         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
9148         public static native long ChannelTypeFeatures_set_optional_custom_bit(long this_arg, long bit);
9149         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
9150         public static native byte[] InitFeatures_write(long obj);
9151         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
9152         public static native long InitFeatures_read(byte[] ser);
9153         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
9154         public static native byte[] ChannelFeatures_write(long obj);
9155         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
9156         public static native long ChannelFeatures_read(byte[] ser);
9157         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
9158         public static native byte[] NodeFeatures_write(long obj);
9159         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
9160         public static native long NodeFeatures_read(byte[] ser);
9161         // struct LDKCVec_u8Z Bolt11InvoiceFeatures_write(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR obj);
9162         public static native byte[] Bolt11InvoiceFeatures_write(long obj);
9163         // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ Bolt11InvoiceFeatures_read(struct LDKu8slice ser);
9164         public static native long Bolt11InvoiceFeatures_read(byte[] ser);
9165         // struct LDKCVec_u8Z Bolt12InvoiceFeatures_write(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR obj);
9166         public static native byte[] Bolt12InvoiceFeatures_write(long obj);
9167         // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ Bolt12InvoiceFeatures_read(struct LDKu8slice ser);
9168         public static native long Bolt12InvoiceFeatures_read(byte[] ser);
9169         // struct LDKCVec_u8Z BlindedHopFeatures_write(const struct LDKBlindedHopFeatures *NONNULL_PTR obj);
9170         public static native byte[] BlindedHopFeatures_write(long obj);
9171         // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ BlindedHopFeatures_read(struct LDKu8slice ser);
9172         public static native long BlindedHopFeatures_read(byte[] ser);
9173         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
9174         public static native byte[] ChannelTypeFeatures_write(long obj);
9175         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
9176         public static native long ChannelTypeFeatures_read(byte[] ser);
9177         // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9178         public static native void InitFeatures_set_data_loss_protect_optional(long this_arg);
9179         // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9180         public static native void InitFeatures_set_data_loss_protect_required(long this_arg);
9181         // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9182         public static native boolean InitFeatures_supports_data_loss_protect(long this_arg);
9183         // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9184         public static native void NodeFeatures_set_data_loss_protect_optional(long this_arg);
9185         // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9186         public static native void NodeFeatures_set_data_loss_protect_required(long this_arg);
9187         // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9188         public static native boolean NodeFeatures_supports_data_loss_protect(long this_arg);
9189         // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9190         public static native boolean InitFeatures_requires_data_loss_protect(long this_arg);
9191         // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9192         public static native boolean NodeFeatures_requires_data_loss_protect(long this_arg);
9193         // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9194         public static native void InitFeatures_set_initial_routing_sync_optional(long this_arg);
9195         // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9196         public static native void InitFeatures_set_initial_routing_sync_required(long this_arg);
9197         // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9198         public static native boolean InitFeatures_initial_routing_sync(long this_arg);
9199         // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9200         public static native void InitFeatures_set_upfront_shutdown_script_optional(long this_arg);
9201         // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9202         public static native void InitFeatures_set_upfront_shutdown_script_required(long this_arg);
9203         // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9204         public static native boolean InitFeatures_supports_upfront_shutdown_script(long this_arg);
9205         // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9206         public static native void NodeFeatures_set_upfront_shutdown_script_optional(long this_arg);
9207         // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9208         public static native void NodeFeatures_set_upfront_shutdown_script_required(long this_arg);
9209         // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9210         public static native boolean NodeFeatures_supports_upfront_shutdown_script(long this_arg);
9211         // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9212         public static native boolean InitFeatures_requires_upfront_shutdown_script(long this_arg);
9213         // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9214         public static native boolean NodeFeatures_requires_upfront_shutdown_script(long this_arg);
9215         // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9216         public static native void InitFeatures_set_gossip_queries_optional(long this_arg);
9217         // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9218         public static native void InitFeatures_set_gossip_queries_required(long this_arg);
9219         // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9220         public static native boolean InitFeatures_supports_gossip_queries(long this_arg);
9221         // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9222         public static native void NodeFeatures_set_gossip_queries_optional(long this_arg);
9223         // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9224         public static native void NodeFeatures_set_gossip_queries_required(long this_arg);
9225         // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9226         public static native boolean NodeFeatures_supports_gossip_queries(long this_arg);
9227         // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9228         public static native boolean InitFeatures_requires_gossip_queries(long this_arg);
9229         // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9230         public static native boolean NodeFeatures_requires_gossip_queries(long this_arg);
9231         // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9232         public static native void InitFeatures_set_variable_length_onion_optional(long this_arg);
9233         // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9234         public static native void InitFeatures_set_variable_length_onion_required(long this_arg);
9235         // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9236         public static native boolean InitFeatures_supports_variable_length_onion(long this_arg);
9237         // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9238         public static native void NodeFeatures_set_variable_length_onion_optional(long this_arg);
9239         // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9240         public static native void NodeFeatures_set_variable_length_onion_required(long this_arg);
9241         // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9242         public static native boolean NodeFeatures_supports_variable_length_onion(long this_arg);
9243         // void Bolt11InvoiceFeatures_set_variable_length_onion_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9244         public static native void Bolt11InvoiceFeatures_set_variable_length_onion_optional(long this_arg);
9245         // void Bolt11InvoiceFeatures_set_variable_length_onion_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9246         public static native void Bolt11InvoiceFeatures_set_variable_length_onion_required(long this_arg);
9247         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9248         public static native boolean Bolt11InvoiceFeatures_supports_variable_length_onion(long this_arg);
9249         // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9250         public static native boolean InitFeatures_requires_variable_length_onion(long this_arg);
9251         // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9252         public static native boolean NodeFeatures_requires_variable_length_onion(long this_arg);
9253         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9254         public static native boolean Bolt11InvoiceFeatures_requires_variable_length_onion(long this_arg);
9255         // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9256         public static native void InitFeatures_set_static_remote_key_optional(long this_arg);
9257         // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9258         public static native void InitFeatures_set_static_remote_key_required(long this_arg);
9259         // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9260         public static native boolean InitFeatures_supports_static_remote_key(long this_arg);
9261         // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9262         public static native void NodeFeatures_set_static_remote_key_optional(long this_arg);
9263         // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9264         public static native void NodeFeatures_set_static_remote_key_required(long this_arg);
9265         // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9266         public static native boolean NodeFeatures_supports_static_remote_key(long this_arg);
9267         // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9268         public static native void ChannelTypeFeatures_set_static_remote_key_optional(long this_arg);
9269         // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9270         public static native void ChannelTypeFeatures_set_static_remote_key_required(long this_arg);
9271         // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9272         public static native boolean ChannelTypeFeatures_supports_static_remote_key(long this_arg);
9273         // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9274         public static native boolean InitFeatures_requires_static_remote_key(long this_arg);
9275         // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9276         public static native boolean NodeFeatures_requires_static_remote_key(long this_arg);
9277         // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9278         public static native boolean ChannelTypeFeatures_requires_static_remote_key(long this_arg);
9279         // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9280         public static native void InitFeatures_set_payment_secret_optional(long this_arg);
9281         // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9282         public static native void InitFeatures_set_payment_secret_required(long this_arg);
9283         // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9284         public static native boolean InitFeatures_supports_payment_secret(long this_arg);
9285         // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9286         public static native void NodeFeatures_set_payment_secret_optional(long this_arg);
9287         // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9288         public static native void NodeFeatures_set_payment_secret_required(long this_arg);
9289         // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9290         public static native boolean NodeFeatures_supports_payment_secret(long this_arg);
9291         // void Bolt11InvoiceFeatures_set_payment_secret_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9292         public static native void Bolt11InvoiceFeatures_set_payment_secret_optional(long this_arg);
9293         // void Bolt11InvoiceFeatures_set_payment_secret_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9294         public static native void Bolt11InvoiceFeatures_set_payment_secret_required(long this_arg);
9295         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9296         public static native boolean Bolt11InvoiceFeatures_supports_payment_secret(long this_arg);
9297         // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9298         public static native boolean InitFeatures_requires_payment_secret(long this_arg);
9299         // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9300         public static native boolean NodeFeatures_requires_payment_secret(long this_arg);
9301         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9302         public static native boolean Bolt11InvoiceFeatures_requires_payment_secret(long this_arg);
9303         // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9304         public static native void InitFeatures_set_basic_mpp_optional(long this_arg);
9305         // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9306         public static native void InitFeatures_set_basic_mpp_required(long this_arg);
9307         // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9308         public static native boolean InitFeatures_supports_basic_mpp(long this_arg);
9309         // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9310         public static native void NodeFeatures_set_basic_mpp_optional(long this_arg);
9311         // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9312         public static native void NodeFeatures_set_basic_mpp_required(long this_arg);
9313         // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9314         public static native boolean NodeFeatures_supports_basic_mpp(long this_arg);
9315         // void Bolt11InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9316         public static native void Bolt11InvoiceFeatures_set_basic_mpp_optional(long this_arg);
9317         // void Bolt11InvoiceFeatures_set_basic_mpp_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9318         public static native void Bolt11InvoiceFeatures_set_basic_mpp_required(long this_arg);
9319         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9320         public static native boolean Bolt11InvoiceFeatures_supports_basic_mpp(long this_arg);
9321         // void Bolt12InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9322         public static native void Bolt12InvoiceFeatures_set_basic_mpp_optional(long this_arg);
9323         // void Bolt12InvoiceFeatures_set_basic_mpp_required(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9324         public static native void Bolt12InvoiceFeatures_set_basic_mpp_required(long this_arg);
9325         // MUST_USE_RES bool Bolt12InvoiceFeatures_supports_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9326         public static native boolean Bolt12InvoiceFeatures_supports_basic_mpp(long this_arg);
9327         // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9328         public static native boolean InitFeatures_requires_basic_mpp(long this_arg);
9329         // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9330         public static native boolean NodeFeatures_requires_basic_mpp(long this_arg);
9331         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9332         public static native boolean Bolt11InvoiceFeatures_requires_basic_mpp(long this_arg);
9333         // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
9334         public static native boolean Bolt12InvoiceFeatures_requires_basic_mpp(long this_arg);
9335         // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9336         public static native void InitFeatures_set_wumbo_optional(long this_arg);
9337         // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9338         public static native void InitFeatures_set_wumbo_required(long this_arg);
9339         // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9340         public static native boolean InitFeatures_supports_wumbo(long this_arg);
9341         // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9342         public static native void NodeFeatures_set_wumbo_optional(long this_arg);
9343         // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9344         public static native void NodeFeatures_set_wumbo_required(long this_arg);
9345         // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9346         public static native boolean NodeFeatures_supports_wumbo(long this_arg);
9347         // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9348         public static native boolean InitFeatures_requires_wumbo(long this_arg);
9349         // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9350         public static native boolean NodeFeatures_requires_wumbo(long this_arg);
9351         // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9352         public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
9353         // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9354         public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
9355         // MUST_USE_RES bool InitFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9356         public static native boolean InitFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
9357         // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9358         public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
9359         // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9360         public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
9361         // MUST_USE_RES bool NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9362         public static native boolean NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
9363         // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9364         public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
9365         // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9366         public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
9367         // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9368         public static native boolean ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
9369         // MUST_USE_RES bool InitFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9370         public static native boolean InitFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
9371         // MUST_USE_RES bool NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9372         public static native boolean NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
9373         // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9374         public static native boolean ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
9375         // void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9376         public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
9377         // void InitFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9378         public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
9379         // MUST_USE_RES bool InitFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9380         public static native boolean InitFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
9381         // void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9382         public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
9383         // void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9384         public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
9385         // MUST_USE_RES bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9386         public static native boolean NodeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
9387         // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9388         public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
9389         // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9390         public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
9391         // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9392         public static native boolean ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
9393         // MUST_USE_RES bool InitFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9394         public static native boolean InitFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
9395         // MUST_USE_RES bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9396         public static native boolean NodeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
9397         // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9398         public static native boolean ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
9399         // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9400         public static native void InitFeatures_set_shutdown_any_segwit_optional(long this_arg);
9401         // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9402         public static native void InitFeatures_set_shutdown_any_segwit_required(long this_arg);
9403         // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9404         public static native boolean InitFeatures_supports_shutdown_anysegwit(long this_arg);
9405         // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9406         public static native void NodeFeatures_set_shutdown_any_segwit_optional(long this_arg);
9407         // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9408         public static native void NodeFeatures_set_shutdown_any_segwit_required(long this_arg);
9409         // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9410         public static native boolean NodeFeatures_supports_shutdown_anysegwit(long this_arg);
9411         // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9412         public static native boolean InitFeatures_requires_shutdown_anysegwit(long this_arg);
9413         // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9414         public static native boolean NodeFeatures_requires_shutdown_anysegwit(long this_arg);
9415         // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9416         public static native void InitFeatures_set_onion_messages_optional(long this_arg);
9417         // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9418         public static native void InitFeatures_set_onion_messages_required(long this_arg);
9419         // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9420         public static native boolean InitFeatures_supports_onion_messages(long this_arg);
9421         // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9422         public static native void NodeFeatures_set_onion_messages_optional(long this_arg);
9423         // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9424         public static native void NodeFeatures_set_onion_messages_required(long this_arg);
9425         // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9426         public static native boolean NodeFeatures_supports_onion_messages(long this_arg);
9427         // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9428         public static native boolean InitFeatures_requires_onion_messages(long this_arg);
9429         // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9430         public static native boolean NodeFeatures_requires_onion_messages(long this_arg);
9431         // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9432         public static native void InitFeatures_set_channel_type_optional(long this_arg);
9433         // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9434         public static native void InitFeatures_set_channel_type_required(long this_arg);
9435         // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9436         public static native boolean InitFeatures_supports_channel_type(long this_arg);
9437         // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9438         public static native void NodeFeatures_set_channel_type_optional(long this_arg);
9439         // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9440         public static native void NodeFeatures_set_channel_type_required(long this_arg);
9441         // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9442         public static native boolean NodeFeatures_supports_channel_type(long this_arg);
9443         // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9444         public static native boolean InitFeatures_requires_channel_type(long this_arg);
9445         // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9446         public static native boolean NodeFeatures_requires_channel_type(long this_arg);
9447         // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9448         public static native void InitFeatures_set_scid_privacy_optional(long this_arg);
9449         // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9450         public static native void InitFeatures_set_scid_privacy_required(long this_arg);
9451         // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9452         public static native boolean InitFeatures_supports_scid_privacy(long this_arg);
9453         // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9454         public static native void NodeFeatures_set_scid_privacy_optional(long this_arg);
9455         // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9456         public static native void NodeFeatures_set_scid_privacy_required(long this_arg);
9457         // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9458         public static native boolean NodeFeatures_supports_scid_privacy(long this_arg);
9459         // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9460         public static native void ChannelTypeFeatures_set_scid_privacy_optional(long this_arg);
9461         // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9462         public static native void ChannelTypeFeatures_set_scid_privacy_required(long this_arg);
9463         // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9464         public static native boolean ChannelTypeFeatures_supports_scid_privacy(long this_arg);
9465         // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9466         public static native boolean InitFeatures_requires_scid_privacy(long this_arg);
9467         // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9468         public static native boolean NodeFeatures_requires_scid_privacy(long this_arg);
9469         // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9470         public static native boolean ChannelTypeFeatures_requires_scid_privacy(long this_arg);
9471         // void Bolt11InvoiceFeatures_set_payment_metadata_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9472         public static native void Bolt11InvoiceFeatures_set_payment_metadata_optional(long this_arg);
9473         // void Bolt11InvoiceFeatures_set_payment_metadata_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9474         public static native void Bolt11InvoiceFeatures_set_payment_metadata_required(long this_arg);
9475         // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9476         public static native boolean Bolt11InvoiceFeatures_supports_payment_metadata(long this_arg);
9477         // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
9478         public static native boolean Bolt11InvoiceFeatures_requires_payment_metadata(long this_arg);
9479         // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
9480         public static native void InitFeatures_set_zero_conf_optional(long this_arg);
9481         // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
9482         public static native void InitFeatures_set_zero_conf_required(long this_arg);
9483         // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9484         public static native boolean InitFeatures_supports_zero_conf(long this_arg);
9485         // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9486         public static native void NodeFeatures_set_zero_conf_optional(long this_arg);
9487         // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9488         public static native void NodeFeatures_set_zero_conf_required(long this_arg);
9489         // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9490         public static native boolean NodeFeatures_supports_zero_conf(long this_arg);
9491         // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9492         public static native void ChannelTypeFeatures_set_zero_conf_optional(long this_arg);
9493         // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9494         public static native void ChannelTypeFeatures_set_zero_conf_required(long this_arg);
9495         // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9496         public static native boolean ChannelTypeFeatures_supports_zero_conf(long this_arg);
9497         // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
9498         public static native boolean InitFeatures_requires_zero_conf(long this_arg);
9499         // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9500         public static native boolean NodeFeatures_requires_zero_conf(long this_arg);
9501         // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
9502         public static native boolean ChannelTypeFeatures_requires_zero_conf(long this_arg);
9503         // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9504         public static native void NodeFeatures_set_keysend_optional(long this_arg);
9505         // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
9506         public static native void NodeFeatures_set_keysend_required(long this_arg);
9507         // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9508         public static native boolean NodeFeatures_supports_keysend(long this_arg);
9509         // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
9510         public static native boolean NodeFeatures_requires_keysend(long this_arg);
9511         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
9512         public static native void ShutdownScript_free(long this_obj);
9513         // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
9514         public static native long ShutdownScript_clone_ptr(long arg);
9515         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
9516         public static native long ShutdownScript_clone(long orig);
9517         // bool ShutdownScript_eq(const struct LDKShutdownScript *NONNULL_PTR a, const struct LDKShutdownScript *NONNULL_PTR b);
9518         public static native boolean ShutdownScript_eq(long a, long b);
9519         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
9520         public static native void InvalidShutdownScript_free(long this_obj);
9521         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
9522         public static native byte[] InvalidShutdownScript_get_script(long this_ptr);
9523         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
9524         public static native void InvalidShutdownScript_set_script(long this_ptr, byte[] val);
9525         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
9526         public static native long InvalidShutdownScript_new(byte[] script_arg);
9527         // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
9528         public static native long InvalidShutdownScript_clone_ptr(long arg);
9529         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
9530         public static native long InvalidShutdownScript_clone(long orig);
9531         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
9532         public static native byte[] ShutdownScript_write(long obj);
9533         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
9534         public static native long ShutdownScript_read(byte[] ser);
9535         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
9536         public static native long ShutdownScript_new_p2wpkh(byte[] pubkey_hash);
9537         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
9538         public static native long ShutdownScript_new_p2wsh(byte[] script_hash);
9539         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
9540         public static native long ShutdownScript_new_witness_program(byte version, byte[] program);
9541         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
9542         public static native byte[] ShutdownScript_into_inner(long this_arg);
9543         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
9544         public static native byte[] ShutdownScript_as_legacy_pubkey(long this_arg);
9545         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
9546         public static native boolean ShutdownScript_is_compatible(long this_arg, long features);
9547         // void Retry_free(struct LDKRetry this_ptr);
9548         public static native void Retry_free(long this_ptr);
9549         // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
9550         public static native long Retry_clone_ptr(long arg);
9551         // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
9552         public static native long Retry_clone(long orig);
9553         // struct LDKRetry Retry_attempts(uintptr_t a);
9554         public static native long Retry_attempts(long a);
9555         // struct LDKRetry Retry_timeout(uint64_t a);
9556         public static native long Retry_timeout(long a);
9557         // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
9558         public static native boolean Retry_eq(long a, long b);
9559         // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
9560         public static native long Retry_hash(long o);
9561         // enum LDKRetryableSendFailure RetryableSendFailure_clone(const enum LDKRetryableSendFailure *NONNULL_PTR orig);
9562         public static native RetryableSendFailure RetryableSendFailure_clone(long orig);
9563         // enum LDKRetryableSendFailure RetryableSendFailure_payment_expired(void);
9564         public static native RetryableSendFailure RetryableSendFailure_payment_expired();
9565         // enum LDKRetryableSendFailure RetryableSendFailure_route_not_found(void);
9566         public static native RetryableSendFailure RetryableSendFailure_route_not_found();
9567         // enum LDKRetryableSendFailure RetryableSendFailure_duplicate_payment(void);
9568         public static native RetryableSendFailure RetryableSendFailure_duplicate_payment();
9569         // bool RetryableSendFailure_eq(const enum LDKRetryableSendFailure *NONNULL_PTR a, const enum LDKRetryableSendFailure *NONNULL_PTR b);
9570         public static native boolean RetryableSendFailure_eq(long a, long b);
9571         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
9572         public static native void PaymentSendFailure_free(long this_ptr);
9573         // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
9574         public static native long PaymentSendFailure_clone_ptr(long arg);
9575         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
9576         public static native long PaymentSendFailure_clone(long orig);
9577         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
9578         public static native long PaymentSendFailure_parameter_error(long a);
9579         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
9580         public static native long PaymentSendFailure_path_parameter_error(long[] a);
9581         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_resend_safe(struct LDKCVec_APIErrorZ a);
9582         public static native long PaymentSendFailure_all_failed_resend_safe(long[] a);
9583         // struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void);
9584         public static native long PaymentSendFailure_duplicate_payment();
9585         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
9586         public static native long PaymentSendFailure_partial_failure(long[] results, long failed_paths_retry, byte[] payment_id);
9587         // void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj);
9588         public static native void RecipientOnionFields_free(long this_obj);
9589         // struct LDKCOption_PaymentSecretZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
9590         public static native long RecipientOnionFields_get_payment_secret(long this_ptr);
9591         // void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_PaymentSecretZ val);
9592         public static native void RecipientOnionFields_set_payment_secret(long this_ptr, long val);
9593         // struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
9594         public static native long RecipientOnionFields_get_payment_metadata(long this_ptr);
9595         // void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
9596         public static native void RecipientOnionFields_set_payment_metadata(long this_ptr, long val);
9597         // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_new(struct LDKCOption_PaymentSecretZ payment_secret_arg, struct LDKCOption_CVec_u8ZZ payment_metadata_arg);
9598         public static native long RecipientOnionFields_new(long payment_secret_arg, long payment_metadata_arg);
9599         // uint64_t RecipientOnionFields_clone_ptr(LDKRecipientOnionFields *NONNULL_PTR arg);
9600         public static native long RecipientOnionFields_clone_ptr(long arg);
9601         // struct LDKRecipientOnionFields RecipientOnionFields_clone(const struct LDKRecipientOnionFields *NONNULL_PTR orig);
9602         public static native long RecipientOnionFields_clone(long orig);
9603         // bool RecipientOnionFields_eq(const struct LDKRecipientOnionFields *NONNULL_PTR a, const struct LDKRecipientOnionFields *NONNULL_PTR b);
9604         public static native boolean RecipientOnionFields_eq(long a, long b);
9605         // struct LDKCVec_u8Z RecipientOnionFields_write(const struct LDKRecipientOnionFields *NONNULL_PTR obj);
9606         public static native byte[] RecipientOnionFields_write(long obj);
9607         // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ RecipientOnionFields_read(struct LDKu8slice ser);
9608         public static native long RecipientOnionFields_read(byte[] ser);
9609         // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(struct LDKThirtyTwoBytes payment_secret);
9610         public static native long RecipientOnionFields_secret_only(byte[] payment_secret);
9611         // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void);
9612         public static native long RecipientOnionFields_spontaneous_empty();
9613         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
9614         public static native void CustomMessageReader_free(long this_ptr);
9615         // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
9616         public static native long Type_clone_ptr(long arg);
9617         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
9618         public static native long Type_clone(long orig);
9619         // void Type_free(struct LDKType this_ptr);
9620         public static native void Type_free(long this_ptr);
9621         // void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj);
9622         public static native void UnsignedBolt12Invoice_free(long this_obj);
9623         // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
9624         public static native byte[] UnsignedBolt12Invoice_signing_pubkey(long this_arg);
9625         // void Bolt12Invoice_free(struct LDKBolt12Invoice this_obj);
9626         public static native void Bolt12Invoice_free(long this_obj);
9627         // uint64_t Bolt12Invoice_clone_ptr(LDKBolt12Invoice *NONNULL_PTR arg);
9628         public static native long Bolt12Invoice_clone_ptr(long arg);
9629         // struct LDKBolt12Invoice Bolt12Invoice_clone(const struct LDKBolt12Invoice *NONNULL_PTR orig);
9630         public static native long Bolt12Invoice_clone(long orig);
9631         // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_description(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9632         public static native long Bolt12Invoice_description(long this_arg);
9633         // MUST_USE_RES uint64_t Bolt12Invoice_created_at(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9634         public static native long Bolt12Invoice_created_at(long this_arg);
9635         // MUST_USE_RES uint64_t Bolt12Invoice_relative_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9636         public static native long Bolt12Invoice_relative_expiry(long this_arg);
9637         // MUST_USE_RES bool Bolt12Invoice_is_expired(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9638         public static native boolean Bolt12Invoice_is_expired(long this_arg);
9639         // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_payment_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9640         public static native byte[] Bolt12Invoice_payment_hash(long this_arg);
9641         // MUST_USE_RES uint64_t Bolt12Invoice_amount_msats(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9642         public static native long Bolt12Invoice_amount_msats(long this_arg);
9643         // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9644         public static native long Bolt12Invoice_features(long this_arg);
9645         // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_signing_pubkey(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9646         public static native byte[] Bolt12Invoice_signing_pubkey(long this_arg);
9647         // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_signable_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
9648         public static native byte[] Bolt12Invoice_signable_hash(long this_arg);
9649         // MUST_USE_RES bool Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
9650         public static native boolean Bolt12Invoice_verify(long this_arg, long key);
9651         // struct LDKCVec_u8Z Bolt12Invoice_write(const struct LDKBolt12Invoice *NONNULL_PTR obj);
9652         public static native byte[] Bolt12Invoice_write(long obj);
9653         // void BlindedPayInfo_free(struct LDKBlindedPayInfo this_obj);
9654         public static native void BlindedPayInfo_free(long this_obj);
9655         // uint32_t BlindedPayInfo_get_fee_base_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
9656         public static native int BlindedPayInfo_get_fee_base_msat(long this_ptr);
9657         // void BlindedPayInfo_set_fee_base_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
9658         public static native void BlindedPayInfo_set_fee_base_msat(long this_ptr, int val);
9659         // uint32_t BlindedPayInfo_get_fee_proportional_millionths(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
9660         public static native int BlindedPayInfo_get_fee_proportional_millionths(long this_ptr);
9661         // void BlindedPayInfo_set_fee_proportional_millionths(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
9662         public static native void BlindedPayInfo_set_fee_proportional_millionths(long this_ptr, int val);
9663         // uint16_t BlindedPayInfo_get_cltv_expiry_delta(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
9664         public static native short BlindedPayInfo_get_cltv_expiry_delta(long this_ptr);
9665         // void BlindedPayInfo_set_cltv_expiry_delta(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint16_t val);
9666         public static native void BlindedPayInfo_set_cltv_expiry_delta(long this_ptr, short val);
9667         // uint64_t BlindedPayInfo_get_htlc_minimum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
9668         public static native long BlindedPayInfo_get_htlc_minimum_msat(long this_ptr);
9669         // void BlindedPayInfo_set_htlc_minimum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
9670         public static native void BlindedPayInfo_set_htlc_minimum_msat(long this_ptr, long val);
9671         // uint64_t BlindedPayInfo_get_htlc_maximum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
9672         public static native long BlindedPayInfo_get_htlc_maximum_msat(long this_ptr);
9673         // void BlindedPayInfo_set_htlc_maximum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
9674         public static native void BlindedPayInfo_set_htlc_maximum_msat(long this_ptr, long val);
9675         // struct LDKBlindedHopFeatures BlindedPayInfo_get_features(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
9676         public static native long BlindedPayInfo_get_features(long this_ptr);
9677         // void BlindedPayInfo_set_features(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
9678         public static native void BlindedPayInfo_set_features(long this_ptr, long val);
9679         // 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);
9680         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);
9681         // uint64_t BlindedPayInfo_clone_ptr(LDKBlindedPayInfo *NONNULL_PTR arg);
9682         public static native long BlindedPayInfo_clone_ptr(long arg);
9683         // struct LDKBlindedPayInfo BlindedPayInfo_clone(const struct LDKBlindedPayInfo *NONNULL_PTR orig);
9684         public static native long BlindedPayInfo_clone(long orig);
9685         // uint64_t BlindedPayInfo_hash(const struct LDKBlindedPayInfo *NONNULL_PTR o);
9686         public static native long BlindedPayInfo_hash(long o);
9687         // bool BlindedPayInfo_eq(const struct LDKBlindedPayInfo *NONNULL_PTR a, const struct LDKBlindedPayInfo *NONNULL_PTR b);
9688         public static native boolean BlindedPayInfo_eq(long a, long b);
9689         // struct LDKCVec_u8Z BlindedPayInfo_write(const struct LDKBlindedPayInfo *NONNULL_PTR obj);
9690         public static native byte[] BlindedPayInfo_write(long obj);
9691         // struct LDKCResult_BlindedPayInfoDecodeErrorZ BlindedPayInfo_read(struct LDKu8slice ser);
9692         public static native long BlindedPayInfo_read(byte[] ser);
9693         // void InvoiceError_free(struct LDKInvoiceError this_obj);
9694         public static native void InvoiceError_free(long this_obj);
9695         // struct LDKErroneousField InvoiceError_get_erroneous_field(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
9696         public static native long InvoiceError_get_erroneous_field(long this_ptr);
9697         // void InvoiceError_set_erroneous_field(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKErroneousField val);
9698         public static native void InvoiceError_set_erroneous_field(long this_ptr, long val);
9699         // struct LDKUntrustedString InvoiceError_get_message(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
9700         public static native long InvoiceError_get_message(long this_ptr);
9701         // void InvoiceError_set_message(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKUntrustedString val);
9702         public static native void InvoiceError_set_message(long this_ptr, long val);
9703         // MUST_USE_RES struct LDKInvoiceError InvoiceError_new(struct LDKErroneousField erroneous_field_arg, struct LDKUntrustedString message_arg);
9704         public static native long InvoiceError_new(long erroneous_field_arg, long message_arg);
9705         // uint64_t InvoiceError_clone_ptr(LDKInvoiceError *NONNULL_PTR arg);
9706         public static native long InvoiceError_clone_ptr(long arg);
9707         // struct LDKInvoiceError InvoiceError_clone(const struct LDKInvoiceError *NONNULL_PTR orig);
9708         public static native long InvoiceError_clone(long orig);
9709         // void ErroneousField_free(struct LDKErroneousField this_obj);
9710         public static native void ErroneousField_free(long this_obj);
9711         // uint64_t ErroneousField_get_tlv_fieldnum(const struct LDKErroneousField *NONNULL_PTR this_ptr);
9712         public static native long ErroneousField_get_tlv_fieldnum(long this_ptr);
9713         // void ErroneousField_set_tlv_fieldnum(struct LDKErroneousField *NONNULL_PTR this_ptr, uint64_t val);
9714         public static native void ErroneousField_set_tlv_fieldnum(long this_ptr, long val);
9715         // struct LDKCOption_CVec_u8ZZ ErroneousField_get_suggested_value(const struct LDKErroneousField *NONNULL_PTR this_ptr);
9716         public static native long ErroneousField_get_suggested_value(long this_ptr);
9717         // void ErroneousField_set_suggested_value(struct LDKErroneousField *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
9718         public static native void ErroneousField_set_suggested_value(long this_ptr, long val);
9719         // MUST_USE_RES struct LDKErroneousField ErroneousField_new(uint64_t tlv_fieldnum_arg, struct LDKCOption_CVec_u8ZZ suggested_value_arg);
9720         public static native long ErroneousField_new(long tlv_fieldnum_arg, long suggested_value_arg);
9721         // uint64_t ErroneousField_clone_ptr(LDKErroneousField *NONNULL_PTR arg);
9722         public static native long ErroneousField_clone_ptr(long arg);
9723         // struct LDKErroneousField ErroneousField_clone(const struct LDKErroneousField *NONNULL_PTR orig);
9724         public static native long ErroneousField_clone(long orig);
9725         // struct LDKCVec_u8Z InvoiceError_write(const struct LDKInvoiceError *NONNULL_PTR obj);
9726         public static native byte[] InvoiceError_write(long obj);
9727         // struct LDKCResult_InvoiceErrorDecodeErrorZ InvoiceError_read(struct LDKu8slice ser);
9728         public static native long InvoiceError_read(byte[] ser);
9729         // void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj);
9730         public static native void UnsignedInvoiceRequest_free(long this_obj);
9731         // void InvoiceRequest_free(struct LDKInvoiceRequest this_obj);
9732         public static native void InvoiceRequest_free(long this_obj);
9733         // uint64_t InvoiceRequest_clone_ptr(LDKInvoiceRequest *NONNULL_PTR arg);
9734         public static native long InvoiceRequest_clone_ptr(long arg);
9735         // struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig);
9736         public static native long InvoiceRequest_clone(long orig);
9737         // MUST_USE_RES struct LDKu8slice InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
9738         public static native byte[] InvoiceRequest_metadata(long this_arg);
9739         // MUST_USE_RES struct LDKThirtyTwoBytes InvoiceRequest_chain(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
9740         public static native byte[] InvoiceRequest_chain(long this_arg);
9741         // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
9742         public static native long InvoiceRequest_amount_msats(long this_arg);
9743         // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
9744         public static native long InvoiceRequest_features(long this_arg);
9745         // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
9746         public static native long InvoiceRequest_quantity(long this_arg);
9747         // MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
9748         public static native byte[] InvoiceRequest_payer_id(long this_arg);
9749         // MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
9750         public static native long InvoiceRequest_payer_note(long this_arg);
9751         // MUST_USE_RES struct LDKCResult_COption_KeyPairZNoneZ InvoiceRequest_verify(const struct LDKInvoiceRequest *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
9752         public static native long InvoiceRequest_verify(long this_arg, long key);
9753         // struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj);
9754         public static native byte[] InvoiceRequest_write(long obj);
9755         // void Offer_free(struct LDKOffer this_obj);
9756         public static native void Offer_free(long this_obj);
9757         // uint64_t Offer_clone_ptr(LDKOffer *NONNULL_PTR arg);
9758         public static native long Offer_clone_ptr(long arg);
9759         // struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig);
9760         public static native long Offer_clone(long orig);
9761         // MUST_USE_RES struct LDKCVec_ChainHashZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg);
9762         public static native byte[][] Offer_chains(long this_arg);
9763         // MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain);
9764         public static native boolean Offer_supports_chain(long this_arg, byte[] chain);
9765         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg);
9766         public static native long Offer_metadata(long this_arg);
9767         // MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg);
9768         public static native long Offer_amount(long this_arg);
9769         // MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg);
9770         public static native long Offer_description(long this_arg);
9771         // MUST_USE_RES struct LDKOfferFeatures Offer_features(const struct LDKOffer *NONNULL_PTR this_arg);
9772         public static native long Offer_features(long this_arg);
9773         // MUST_USE_RES struct LDKCOption_DurationZ Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg);
9774         public static native long Offer_absolute_expiry(long this_arg);
9775         // MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg);
9776         public static native boolean Offer_is_expired(long this_arg);
9777         // MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg);
9778         public static native long Offer_issuer(long this_arg);
9779         // MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg);
9780         public static native long[] Offer_paths(long this_arg);
9781         // MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
9782         public static native long Offer_supported_quantity(long this_arg);
9783         // MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity);
9784         public static native boolean Offer_is_valid_quantity(long this_arg, long quantity);
9785         // MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
9786         public static native boolean Offer_expects_quantity(long this_arg);
9787         // MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg);
9788         public static native byte[] Offer_signing_pubkey(long this_arg);
9789         // struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj);
9790         public static native byte[] Offer_write(long obj);
9791         // void Amount_free(struct LDKAmount this_obj);
9792         public static native void Amount_free(long this_obj);
9793         // uint64_t Amount_clone_ptr(LDKAmount *NONNULL_PTR arg);
9794         public static native long Amount_clone_ptr(long arg);
9795         // struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig);
9796         public static native long Amount_clone(long orig);
9797         // void Quantity_free(struct LDKQuantity this_obj);
9798         public static native void Quantity_free(long this_obj);
9799         // uint64_t Quantity_clone_ptr(LDKQuantity *NONNULL_PTR arg);
9800         public static native long Quantity_clone_ptr(long arg);
9801         // struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig);
9802         public static native long Quantity_clone(long orig);
9803         // struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s);
9804         public static native long Offer_from_str(String s);
9805         // void Bolt12ParseError_free(struct LDKBolt12ParseError this_obj);
9806         public static native void Bolt12ParseError_free(long this_obj);
9807         // uint64_t Bolt12ParseError_clone_ptr(LDKBolt12ParseError *NONNULL_PTR arg);
9808         public static native long Bolt12ParseError_clone_ptr(long arg);
9809         // struct LDKBolt12ParseError Bolt12ParseError_clone(const struct LDKBolt12ParseError *NONNULL_PTR orig);
9810         public static native long Bolt12ParseError_clone(long orig);
9811         // enum LDKBolt12SemanticError Bolt12SemanticError_clone(const enum LDKBolt12SemanticError *NONNULL_PTR orig);
9812         public static native Bolt12SemanticError Bolt12SemanticError_clone(long orig);
9813         // enum LDKBolt12SemanticError Bolt12SemanticError_already_expired(void);
9814         public static native Bolt12SemanticError Bolt12SemanticError_already_expired();
9815         // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_chain(void);
9816         public static native Bolt12SemanticError Bolt12SemanticError_unsupported_chain();
9817         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_chain(void);
9818         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_chain();
9819         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_amount(void);
9820         public static native Bolt12SemanticError Bolt12SemanticError_missing_amount();
9821         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_amount(void);
9822         public static native Bolt12SemanticError Bolt12SemanticError_invalid_amount();
9823         // enum LDKBolt12SemanticError Bolt12SemanticError_insufficient_amount(void);
9824         public static native Bolt12SemanticError Bolt12SemanticError_insufficient_amount();
9825         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_amount(void);
9826         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_amount();
9827         // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_currency(void);
9828         public static native Bolt12SemanticError Bolt12SemanticError_unsupported_currency();
9829         // enum LDKBolt12SemanticError Bolt12SemanticError_unknown_required_features(void);
9830         public static native Bolt12SemanticError Bolt12SemanticError_unknown_required_features();
9831         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_features(void);
9832         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_features();
9833         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_description(void);
9834         public static native Bolt12SemanticError Bolt12SemanticError_missing_description();
9835         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signing_pubkey(void);
9836         public static native Bolt12SemanticError Bolt12SemanticError_missing_signing_pubkey();
9837         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey(void);
9838         public static native Bolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey();
9839         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey(void);
9840         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey();
9841         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_quantity(void);
9842         public static native Bolt12SemanticError Bolt12SemanticError_missing_quantity();
9843         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_quantity(void);
9844         public static native Bolt12SemanticError Bolt12SemanticError_invalid_quantity();
9845         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_quantity(void);
9846         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_quantity();
9847         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_metadata(void);
9848         public static native Bolt12SemanticError Bolt12SemanticError_invalid_metadata();
9849         // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_metadata(void);
9850         public static native Bolt12SemanticError Bolt12SemanticError_unexpected_metadata();
9851         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_metadata(void);
9852         public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_metadata();
9853         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_id(void);
9854         public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_id();
9855         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_paths(void);
9856         public static native Bolt12SemanticError Bolt12SemanticError_missing_paths();
9857         // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_pay_info(void);
9858         public static native Bolt12SemanticError Bolt12SemanticError_invalid_pay_info();
9859         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_creation_time(void);
9860         public static native Bolt12SemanticError Bolt12SemanticError_missing_creation_time();
9861         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payment_hash(void);
9862         public static native Bolt12SemanticError Bolt12SemanticError_missing_payment_hash();
9863         // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signature(void);
9864         public static native Bolt12SemanticError Bolt12SemanticError_missing_signature();
9865         // void Refund_free(struct LDKRefund this_obj);
9866         public static native void Refund_free(long this_obj);
9867         // uint64_t Refund_clone_ptr(LDKRefund *NONNULL_PTR arg);
9868         public static native long Refund_clone_ptr(long arg);
9869         // struct LDKRefund Refund_clone(const struct LDKRefund *NONNULL_PTR orig);
9870         public static native long Refund_clone(long orig);
9871         // MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund *NONNULL_PTR this_arg);
9872         public static native long Refund_description(long this_arg);
9873         // MUST_USE_RES struct LDKCOption_DurationZ Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg);
9874         public static native long Refund_absolute_expiry(long this_arg);
9875         // MUST_USE_RES bool Refund_is_expired(const struct LDKRefund *NONNULL_PTR this_arg);
9876         public static native boolean Refund_is_expired(long this_arg);
9877         // MUST_USE_RES struct LDKPrintableString Refund_issuer(const struct LDKRefund *NONNULL_PTR this_arg);
9878         public static native long Refund_issuer(long this_arg);
9879         // MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NONNULL_PTR this_arg);
9880         public static native long[] Refund_paths(long this_arg);
9881         // MUST_USE_RES struct LDKu8slice Refund_metadata(const struct LDKRefund *NONNULL_PTR this_arg);
9882         public static native byte[] Refund_metadata(long this_arg);
9883         // MUST_USE_RES struct LDKThirtyTwoBytes Refund_chain(const struct LDKRefund *NONNULL_PTR this_arg);
9884         public static native byte[] Refund_chain(long this_arg);
9885         // MUST_USE_RES uint64_t Refund_amount_msats(const struct LDKRefund *NONNULL_PTR this_arg);
9886         public static native long Refund_amount_msats(long this_arg);
9887         // MUST_USE_RES struct LDKInvoiceRequestFeatures Refund_features(const struct LDKRefund *NONNULL_PTR this_arg);
9888         public static native long Refund_features(long this_arg);
9889         // MUST_USE_RES struct LDKCOption_u64Z Refund_quantity(const struct LDKRefund *NONNULL_PTR this_arg);
9890         public static native long Refund_quantity(long this_arg);
9891         // MUST_USE_RES struct LDKPublicKey Refund_payer_id(const struct LDKRefund *NONNULL_PTR this_arg);
9892         public static native byte[] Refund_payer_id(long this_arg);
9893         // MUST_USE_RES struct LDKPrintableString Refund_payer_note(const struct LDKRefund *NONNULL_PTR this_arg);
9894         public static native long Refund_payer_note(long this_arg);
9895         // struct LDKCVec_u8Z Refund_write(const struct LDKRefund *NONNULL_PTR obj);
9896         public static native byte[] Refund_write(long obj);
9897         // struct LDKCResult_RefundBolt12ParseErrorZ Refund_from_str(struct LDKStr s);
9898         public static native long Refund_from_str(String s);
9899         // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig);
9900         public static native UtxoLookupError UtxoLookupError_clone(long orig);
9901         // enum LDKUtxoLookupError UtxoLookupError_unknown_chain(void);
9902         public static native UtxoLookupError UtxoLookupError_unknown_chain();
9903         // enum LDKUtxoLookupError UtxoLookupError_unknown_tx(void);
9904         public static native UtxoLookupError UtxoLookupError_unknown_tx();
9905         // void UtxoResult_free(struct LDKUtxoResult this_ptr);
9906         public static native void UtxoResult_free(long this_ptr);
9907         // uint64_t UtxoResult_clone_ptr(LDKUtxoResult *NONNULL_PTR arg);
9908         public static native long UtxoResult_clone_ptr(long arg);
9909         // struct LDKUtxoResult UtxoResult_clone(const struct LDKUtxoResult *NONNULL_PTR orig);
9910         public static native long UtxoResult_clone(long orig);
9911         // struct LDKUtxoResult UtxoResult_sync(struct LDKCResult_TxOutUtxoLookupErrorZ a);
9912         public static native long UtxoResult_sync(long a);
9913         // struct LDKUtxoResult UtxoResult_async(struct LDKUtxoFuture a);
9914         public static native long UtxoResult_async(long a);
9915         // void UtxoLookup_free(struct LDKUtxoLookup this_ptr);
9916         public static native void UtxoLookup_free(long this_ptr);
9917         // void UtxoFuture_free(struct LDKUtxoFuture this_obj);
9918         public static native void UtxoFuture_free(long this_obj);
9919         // uint64_t UtxoFuture_clone_ptr(LDKUtxoFuture *NONNULL_PTR arg);
9920         public static native long UtxoFuture_clone_ptr(long arg);
9921         // struct LDKUtxoFuture UtxoFuture_clone(const struct LDKUtxoFuture *NONNULL_PTR orig);
9922         public static native long UtxoFuture_clone(long orig);
9923         // MUST_USE_RES struct LDKUtxoFuture UtxoFuture_new(void);
9924         public static native long UtxoFuture_new();
9925         // void UtxoFuture_resolve_without_forwarding(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, struct LDKCResult_TxOutUtxoLookupErrorZ result);
9926         public static native void UtxoFuture_resolve_without_forwarding(long this_arg, long graph, long result);
9927         // 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);
9928         public static native void UtxoFuture_resolve(long this_arg, long graph, long gossip, long result);
9929         // void NodeId_free(struct LDKNodeId this_obj);
9930         public static native void NodeId_free(long this_obj);
9931         // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
9932         public static native long NodeId_clone_ptr(long arg);
9933         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
9934         public static native long NodeId_clone(long orig);
9935         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
9936         public static native long NodeId_from_pubkey(byte[] pubkey);
9937         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
9938         public static native byte[] NodeId_as_slice(long this_arg);
9939         // MUST_USE_RES struct LDKCResult_PublicKeyErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg);
9940         public static native long NodeId_as_pubkey(long this_arg);
9941         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
9942         public static native long NodeId_hash(long o);
9943         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
9944         public static native byte[] NodeId_write(long obj);
9945         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
9946         public static native long NodeId_read(byte[] ser);
9947         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
9948         public static native void NetworkGraph_free(long this_obj);
9949         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
9950         public static native void ReadOnlyNetworkGraph_free(long this_obj);
9951         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
9952         public static native void NetworkUpdate_free(long this_ptr);
9953         // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
9954         public static native long NetworkUpdate_clone_ptr(long arg);
9955         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
9956         public static native long NetworkUpdate_clone(long orig);
9957         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
9958         public static native long NetworkUpdate_channel_update_message(long msg);
9959         // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
9960         public static native long NetworkUpdate_channel_failure(long short_channel_id, boolean is_permanent);
9961         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
9962         public static native long NetworkUpdate_node_failure(byte[] node_id, boolean is_permanent);
9963         // bool NetworkUpdate_eq(const struct LDKNetworkUpdate *NONNULL_PTR a, const struct LDKNetworkUpdate *NONNULL_PTR b);
9964         public static native boolean NetworkUpdate_eq(long a, long b);
9965         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
9966         public static native byte[] NetworkUpdate_write(long obj);
9967         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
9968         public static native long NetworkUpdate_read(byte[] ser);
9969         // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
9970         public static native void P2PGossipSync_free(long this_obj);
9971         // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_UtxoLookupZ utxo_lookup, struct LDKLogger logger);
9972         public static native long P2PGossipSync_new(long network_graph, long utxo_lookup, long logger);
9973         // void P2PGossipSync_add_utxo_lookup(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup);
9974         public static native void P2PGossipSync_add_utxo_lookup(long this_arg, long utxo_lookup);
9975         // void NetworkGraph_handle_network_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNetworkUpdate *NONNULL_PTR network_update);
9976         public static native void NetworkGraph_handle_network_update(long this_arg, long network_update);
9977         // MUST_USE_RES struct LDKThirtyTwoBytes NetworkGraph_get_genesis_hash(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
9978         public static native byte[] NetworkGraph_get_genesis_hash(long this_arg);
9979         // struct LDKCResult_NoneLightningErrorZ verify_node_announcement(const struct LDKNodeAnnouncement *NONNULL_PTR msg);
9980         public static native long verify_node_announcement(long msg);
9981         // struct LDKCResult_NoneLightningErrorZ verify_channel_announcement(const struct LDKChannelAnnouncement *NONNULL_PTR msg);
9982         public static native long verify_channel_announcement(long msg);
9983         // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
9984         public static native long P2PGossipSync_as_RoutingMessageHandler(long this_arg);
9985         // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
9986         public static native long P2PGossipSync_as_MessageSendEventsProvider(long this_arg);
9987         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
9988         public static native void ChannelUpdateInfo_free(long this_obj);
9989         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
9990         public static native int ChannelUpdateInfo_get_last_update(long this_ptr);
9991         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
9992         public static native void ChannelUpdateInfo_set_last_update(long this_ptr, int val);
9993         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
9994         public static native boolean ChannelUpdateInfo_get_enabled(long this_ptr);
9995         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
9996         public static native void ChannelUpdateInfo_set_enabled(long this_ptr, boolean val);
9997         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
9998         public static native short ChannelUpdateInfo_get_cltv_expiry_delta(long this_ptr);
9999         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
10000         public static native void ChannelUpdateInfo_set_cltv_expiry_delta(long this_ptr, short val);
10001         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10002         public static native long ChannelUpdateInfo_get_htlc_minimum_msat(long this_ptr);
10003         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
10004         public static native void ChannelUpdateInfo_set_htlc_minimum_msat(long this_ptr, long val);
10005         // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10006         public static native long ChannelUpdateInfo_get_htlc_maximum_msat(long this_ptr);
10007         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
10008         public static native void ChannelUpdateInfo_set_htlc_maximum_msat(long this_ptr, long val);
10009         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10010         public static native long ChannelUpdateInfo_get_fees(long this_ptr);
10011         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
10012         public static native void ChannelUpdateInfo_set_fees(long this_ptr, long val);
10013         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
10014         public static native long ChannelUpdateInfo_get_last_update_message(long this_ptr);
10015         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
10016         public static native void ChannelUpdateInfo_set_last_update_message(long this_ptr, long val);
10017         // 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);
10018         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);
10019         // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
10020         public static native long ChannelUpdateInfo_clone_ptr(long arg);
10021         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
10022         public static native long ChannelUpdateInfo_clone(long orig);
10023         // bool ChannelUpdateInfo_eq(const struct LDKChannelUpdateInfo *NONNULL_PTR a, const struct LDKChannelUpdateInfo *NONNULL_PTR b);
10024         public static native boolean ChannelUpdateInfo_eq(long a, long b);
10025         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
10026         public static native byte[] ChannelUpdateInfo_write(long obj);
10027         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
10028         public static native long ChannelUpdateInfo_read(byte[] ser);
10029         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
10030         public static native void ChannelInfo_free(long this_obj);
10031         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10032         public static native long ChannelInfo_get_features(long this_ptr);
10033         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
10034         public static native void ChannelInfo_set_features(long this_ptr, long val);
10035         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10036         public static native long ChannelInfo_get_node_one(long this_ptr);
10037         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
10038         public static native void ChannelInfo_set_node_one(long this_ptr, long val);
10039         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10040         public static native long ChannelInfo_get_one_to_two(long this_ptr);
10041         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
10042         public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
10043         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10044         public static native long ChannelInfo_get_node_two(long this_ptr);
10045         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
10046         public static native void ChannelInfo_set_node_two(long this_ptr, long val);
10047         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10048         public static native long ChannelInfo_get_two_to_one(long this_ptr);
10049         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
10050         public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
10051         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10052         public static native long ChannelInfo_get_capacity_sats(long this_ptr);
10053         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
10054         public static native void ChannelInfo_set_capacity_sats(long this_ptr, long val);
10055         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
10056         public static native long ChannelInfo_get_announcement_message(long this_ptr);
10057         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
10058         public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
10059         // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
10060         public static native long ChannelInfo_clone_ptr(long arg);
10061         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
10062         public static native long ChannelInfo_clone(long orig);
10063         // bool ChannelInfo_eq(const struct LDKChannelInfo *NONNULL_PTR a, const struct LDKChannelInfo *NONNULL_PTR b);
10064         public static native boolean ChannelInfo_eq(long a, long b);
10065         // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
10066         public static native long ChannelInfo_get_directional_info(long this_arg, byte channel_flags);
10067         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
10068         public static native byte[] ChannelInfo_write(long obj);
10069         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
10070         public static native long ChannelInfo_read(byte[] ser);
10071         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
10072         public static native void DirectedChannelInfo_free(long this_obj);
10073         // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
10074         public static native long DirectedChannelInfo_clone_ptr(long arg);
10075         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
10076         public static native long DirectedChannelInfo_clone(long orig);
10077         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
10078         public static native long DirectedChannelInfo_channel(long this_arg);
10079         // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
10080         public static native long DirectedChannelInfo_htlc_maximum_msat(long this_arg);
10081         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
10082         public static native long DirectedChannelInfo_effective_capacity(long this_arg);
10083         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
10084         public static native void EffectiveCapacity_free(long this_ptr);
10085         // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
10086         public static native long EffectiveCapacity_clone_ptr(long arg);
10087         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
10088         public static native long EffectiveCapacity_clone(long orig);
10089         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
10090         public static native long EffectiveCapacity_exact_liquidity(long liquidity_msat);
10091         // struct LDKEffectiveCapacity EffectiveCapacity_advertised_max_htlc(uint64_t amount_msat);
10092         public static native long EffectiveCapacity_advertised_max_htlc(long amount_msat);
10093         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, uint64_t htlc_maximum_msat);
10094         public static native long EffectiveCapacity_total(long capacity_msat, long htlc_maximum_msat);
10095         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
10096         public static native long EffectiveCapacity_infinite();
10097         // struct LDKEffectiveCapacity EffectiveCapacity_hint_max_htlc(uint64_t amount_msat);
10098         public static native long EffectiveCapacity_hint_max_htlc(long amount_msat);
10099         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
10100         public static native long EffectiveCapacity_unknown();
10101         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
10102         public static native long EffectiveCapacity_as_msat(long this_arg);
10103         // void RoutingFees_free(struct LDKRoutingFees this_obj);
10104         public static native void RoutingFees_free(long this_obj);
10105         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
10106         public static native int RoutingFees_get_base_msat(long this_ptr);
10107         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
10108         public static native void RoutingFees_set_base_msat(long this_ptr, int val);
10109         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
10110         public static native int RoutingFees_get_proportional_millionths(long this_ptr);
10111         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
10112         public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
10113         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
10114         public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
10115         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
10116         public static native boolean RoutingFees_eq(long a, long b);
10117         // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
10118         public static native long RoutingFees_clone_ptr(long arg);
10119         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
10120         public static native long RoutingFees_clone(long orig);
10121         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
10122         public static native long RoutingFees_hash(long o);
10123         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
10124         public static native byte[] RoutingFees_write(long obj);
10125         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
10126         public static native long RoutingFees_read(byte[] ser);
10127         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
10128         public static native void NodeAnnouncementInfo_free(long this_obj);
10129         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10130         public static native long NodeAnnouncementInfo_get_features(long this_ptr);
10131         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
10132         public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
10133         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10134         public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
10135         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
10136         public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
10137         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
10138         public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
10139         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
10140         public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
10141         // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10142         public static native long NodeAnnouncementInfo_get_alias(long this_ptr);
10143         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
10144         public static native void NodeAnnouncementInfo_set_alias(long this_ptr, long val);
10145         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
10146         public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
10147         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
10148         public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
10149         // 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);
10150         public static native long NodeAnnouncementInfo_new(long features_arg, int last_update_arg, byte[] rgb_arg, long alias_arg, long announcement_message_arg);
10151         // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
10152         public static native long NodeAnnouncementInfo_clone_ptr(long arg);
10153         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
10154         public static native long NodeAnnouncementInfo_clone(long orig);
10155         // bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a, const struct LDKNodeAnnouncementInfo *NONNULL_PTR b);
10156         public static native boolean NodeAnnouncementInfo_eq(long a, long b);
10157         // MUST_USE_RES struct LDKCVec_NetAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg);
10158         public static native long[] NodeAnnouncementInfo_addresses(long this_arg);
10159         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
10160         public static native byte[] NodeAnnouncementInfo_write(long obj);
10161         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
10162         public static native long NodeAnnouncementInfo_read(byte[] ser);
10163         // void NodeAlias_free(struct LDKNodeAlias this_obj);
10164         public static native void NodeAlias_free(long this_obj);
10165         // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
10166         public static native byte[] NodeAlias_get_a(long this_ptr);
10167         // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10168         public static native void NodeAlias_set_a(long this_ptr, byte[] val);
10169         // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
10170         public static native long NodeAlias_new(byte[] a_arg);
10171         // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
10172         public static native long NodeAlias_clone_ptr(long arg);
10173         // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
10174         public static native long NodeAlias_clone(long orig);
10175         // bool NodeAlias_eq(const struct LDKNodeAlias *NONNULL_PTR a, const struct LDKNodeAlias *NONNULL_PTR b);
10176         public static native boolean NodeAlias_eq(long a, long b);
10177         // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
10178         public static native byte[] NodeAlias_write(long obj);
10179         // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
10180         public static native long NodeAlias_read(byte[] ser);
10181         // void NodeInfo_free(struct LDKNodeInfo this_obj);
10182         public static native void NodeInfo_free(long this_obj);
10183         // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
10184         public static native long[] NodeInfo_get_channels(long this_ptr);
10185         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
10186         public static native void NodeInfo_set_channels(long this_ptr, long[] val);
10187         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
10188         public static native long NodeInfo_get_announcement_info(long this_ptr);
10189         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
10190         public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
10191         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
10192         public static native long NodeInfo_new(long[] channels_arg, long announcement_info_arg);
10193         // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
10194         public static native long NodeInfo_clone_ptr(long arg);
10195         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
10196         public static native long NodeInfo_clone(long orig);
10197         // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b);
10198         public static native boolean NodeInfo_eq(long a, long b);
10199         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
10200         public static native byte[] NodeInfo_write(long obj);
10201         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
10202         public static native long NodeInfo_read(byte[] ser);
10203         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
10204         public static native byte[] NetworkGraph_write(long obj);
10205         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
10206         public static native long NetworkGraph_read(byte[] ser, long arg);
10207         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger);
10208         public static native long NetworkGraph_new(Network network, long logger);
10209         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
10210         public static native long NetworkGraph_read_only(long this_arg);
10211         // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
10212         public static native long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long this_arg);
10213         // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
10214         public static native void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long this_arg, int last_rapid_gossip_sync_timestamp);
10215         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
10216         public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
10217         // 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);
10218         public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
10219         // 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);
10220         public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long utxo_lookup);
10221         // 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);
10222         public static native long NetworkGraph_update_channel_from_announcement_no_lookup(long this_arg, long msg);
10223         // 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);
10224         public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long utxo_lookup);
10225         // 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);
10226         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);
10227         // void NetworkGraph_channel_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
10228         public static native void NetworkGraph_channel_failed_permanent(long this_arg, long short_channel_id);
10229         // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
10230         public static native void NetworkGraph_node_failed_permanent(long this_arg, byte[] node_id);
10231         // void NetworkGraph_remove_stale_channels_and_tracking(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
10232         public static native void NetworkGraph_remove_stale_channels_and_tracking(long this_arg);
10233         // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
10234         public static native void NetworkGraph_remove_stale_channels_and_tracking_with_time(long this_arg, long current_time_unix);
10235         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
10236         public static native long NetworkGraph_update_channel(long this_arg, long msg);
10237         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
10238         public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
10239         // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
10240         public static native long ReadOnlyNetworkGraph_channel(long this_arg, long short_channel_id);
10241         // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
10242         public static native long[] ReadOnlyNetworkGraph_list_channels(long this_arg);
10243         // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
10244         public static native long ReadOnlyNetworkGraph_node(long this_arg, long node_id);
10245         // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
10246         public static native long[] ReadOnlyNetworkGraph_list_nodes(long this_arg);
10247         // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
10248         public static native long ReadOnlyNetworkGraph_get_addresses(long this_arg, byte[] pubkey);
10249         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
10250         public static native void DefaultRouter_free(long this_obj);
10251         // 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);
10252         public static native long DefaultRouter_new(long network_graph, long logger, byte[] random_seed_bytes, long scorer, long score_params);
10253         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
10254         public static native long DefaultRouter_as_Router(long this_arg);
10255         // void Router_free(struct LDKRouter this_ptr);
10256         public static native void Router_free(long this_ptr);
10257         // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj);
10258         public static native void ScorerAccountingForInFlightHtlcs_free(long this_obj);
10259         // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScore scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs);
10260         public static native long ScorerAccountingForInFlightHtlcs_new(long scorer, long inflight_htlcs);
10261         // struct LDKCVec_u8Z ScorerAccountingForInFlightHtlcs_write(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR obj);
10262         public static native byte[] ScorerAccountingForInFlightHtlcs_write(long obj);
10263         // struct LDKScore ScorerAccountingForInFlightHtlcs_as_Score(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg);
10264         public static native long ScorerAccountingForInFlightHtlcs_as_Score(long this_arg);
10265         // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
10266         public static native void InFlightHtlcs_free(long this_obj);
10267         // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg);
10268         public static native long InFlightHtlcs_clone_ptr(long arg);
10269         // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig);
10270         public static native long InFlightHtlcs_clone(long orig);
10271         // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void);
10272         public static native long InFlightHtlcs_new();
10273         // void InFlightHtlcs_process_path(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, struct LDKPublicKey payer_node_id);
10274         public static native void InFlightHtlcs_process_path(long this_arg, long path, byte[] payer_node_id);
10275         // 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);
10276         public static native void InFlightHtlcs_add_inflight_htlc(long this_arg, long source, long target, long channel_scid, long used_msat);
10277         // 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);
10278         public static native long InFlightHtlcs_used_liquidity_msat(long this_arg, long source, long target, long channel_scid);
10279         // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
10280         public static native byte[] InFlightHtlcs_write(long obj);
10281         // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
10282         public static native long InFlightHtlcs_read(byte[] ser);
10283         // void RouteHop_free(struct LDKRouteHop this_obj);
10284         public static native void RouteHop_free(long this_obj);
10285         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
10286         public static native byte[] RouteHop_get_pubkey(long this_ptr);
10287         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10288         public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
10289         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
10290         public static native long RouteHop_get_node_features(long this_ptr);
10291         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
10292         public static native void RouteHop_set_node_features(long this_ptr, long val);
10293         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
10294         public static native long RouteHop_get_short_channel_id(long this_ptr);
10295         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
10296         public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
10297         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
10298         public static native long RouteHop_get_channel_features(long this_ptr);
10299         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
10300         public static native void RouteHop_set_channel_features(long this_ptr, long val);
10301         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
10302         public static native long RouteHop_get_fee_msat(long this_ptr);
10303         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
10304         public static native void RouteHop_set_fee_msat(long this_ptr, long val);
10305         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
10306         public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
10307         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
10308         public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
10309         // 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);
10310         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);
10311         // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
10312         public static native long RouteHop_clone_ptr(long arg);
10313         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
10314         public static native long RouteHop_clone(long orig);
10315         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
10316         public static native long RouteHop_hash(long o);
10317         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
10318         public static native boolean RouteHop_eq(long a, long b);
10319         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
10320         public static native byte[] RouteHop_write(long obj);
10321         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
10322         public static native long RouteHop_read(byte[] ser);
10323         // void BlindedTail_free(struct LDKBlindedTail this_obj);
10324         public static native void BlindedTail_free(long this_obj);
10325         // struct LDKCVec_BlindedHopZ BlindedTail_get_hops(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
10326         public static native long[] BlindedTail_get_hops(long this_ptr);
10327         // void BlindedTail_set_hops(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
10328         public static native void BlindedTail_set_hops(long this_ptr, long[] val);
10329         // struct LDKPublicKey BlindedTail_get_blinding_point(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
10330         public static native byte[] BlindedTail_get_blinding_point(long this_ptr);
10331         // void BlindedTail_set_blinding_point(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10332         public static native void BlindedTail_set_blinding_point(long this_ptr, byte[] val);
10333         // uint32_t BlindedTail_get_excess_final_cltv_expiry_delta(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
10334         public static native int BlindedTail_get_excess_final_cltv_expiry_delta(long this_ptr);
10335         // void BlindedTail_set_excess_final_cltv_expiry_delta(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint32_t val);
10336         public static native void BlindedTail_set_excess_final_cltv_expiry_delta(long this_ptr, int val);
10337         // uint64_t BlindedTail_get_final_value_msat(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
10338         public static native long BlindedTail_get_final_value_msat(long this_ptr);
10339         // void BlindedTail_set_final_value_msat(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint64_t val);
10340         public static native void BlindedTail_set_final_value_msat(long this_ptr, long val);
10341         // 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);
10342         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);
10343         // uint64_t BlindedTail_clone_ptr(LDKBlindedTail *NONNULL_PTR arg);
10344         public static native long BlindedTail_clone_ptr(long arg);
10345         // struct LDKBlindedTail BlindedTail_clone(const struct LDKBlindedTail *NONNULL_PTR orig);
10346         public static native long BlindedTail_clone(long orig);
10347         // uint64_t BlindedTail_hash(const struct LDKBlindedTail *NONNULL_PTR o);
10348         public static native long BlindedTail_hash(long o);
10349         // bool BlindedTail_eq(const struct LDKBlindedTail *NONNULL_PTR a, const struct LDKBlindedTail *NONNULL_PTR b);
10350         public static native boolean BlindedTail_eq(long a, long b);
10351         // struct LDKCVec_u8Z BlindedTail_write(const struct LDKBlindedTail *NONNULL_PTR obj);
10352         public static native byte[] BlindedTail_write(long obj);
10353         // struct LDKCResult_BlindedTailDecodeErrorZ BlindedTail_read(struct LDKu8slice ser);
10354         public static native long BlindedTail_read(byte[] ser);
10355         // void Path_free(struct LDKPath this_obj);
10356         public static native void Path_free(long this_obj);
10357         // struct LDKCVec_RouteHopZ Path_get_hops(const struct LDKPath *NONNULL_PTR this_ptr);
10358         public static native long[] Path_get_hops(long this_ptr);
10359         // void Path_set_hops(struct LDKPath *NONNULL_PTR this_ptr, struct LDKCVec_RouteHopZ val);
10360         public static native void Path_set_hops(long this_ptr, long[] val);
10361         // struct LDKBlindedTail Path_get_blinded_tail(const struct LDKPath *NONNULL_PTR this_ptr);
10362         public static native long Path_get_blinded_tail(long this_ptr);
10363         // void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlindedTail val);
10364         public static native void Path_set_blinded_tail(long this_ptr, long val);
10365         // MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg);
10366         public static native long Path_new(long[] hops_arg, long blinded_tail_arg);
10367         // uint64_t Path_clone_ptr(LDKPath *NONNULL_PTR arg);
10368         public static native long Path_clone_ptr(long arg);
10369         // struct LDKPath Path_clone(const struct LDKPath *NONNULL_PTR orig);
10370         public static native long Path_clone(long orig);
10371         // uint64_t Path_hash(const struct LDKPath *NONNULL_PTR o);
10372         public static native long Path_hash(long o);
10373         // bool Path_eq(const struct LDKPath *NONNULL_PTR a, const struct LDKPath *NONNULL_PTR b);
10374         public static native boolean Path_eq(long a, long b);
10375         // MUST_USE_RES uint64_t Path_fee_msat(const struct LDKPath *NONNULL_PTR this_arg);
10376         public static native long Path_fee_msat(long this_arg);
10377         // MUST_USE_RES uint64_t Path_final_value_msat(const struct LDKPath *NONNULL_PTR this_arg);
10378         public static native long Path_final_value_msat(long this_arg);
10379         // MUST_USE_RES struct LDKCOption_u32Z Path_final_cltv_expiry_delta(const struct LDKPath *NONNULL_PTR this_arg);
10380         public static native long Path_final_cltv_expiry_delta(long this_arg);
10381         // void Route_free(struct LDKRoute this_obj);
10382         public static native void Route_free(long this_obj);
10383         // struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
10384         public static native long[] Route_get_paths(long this_ptr);
10385         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val);
10386         public static native void Route_set_paths(long this_ptr, long[] val);
10387         // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
10388         public static native long Route_get_payment_params(long this_ptr);
10389         // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
10390         public static native void Route_set_payment_params(long this_ptr, long val);
10391         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKPaymentParameters payment_params_arg);
10392         public static native long Route_new(long[] paths_arg, long payment_params_arg);
10393         // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
10394         public static native long Route_clone_ptr(long arg);
10395         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
10396         public static native long Route_clone(long orig);
10397         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
10398         public static native long Route_hash(long o);
10399         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
10400         public static native boolean Route_eq(long a, long b);
10401         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
10402         public static native long Route_get_total_fees(long this_arg);
10403         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
10404         public static native long Route_get_total_amount(long this_arg);
10405         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
10406         public static native byte[] Route_write(long obj);
10407         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
10408         public static native long Route_read(byte[] ser);
10409         // void RouteParameters_free(struct LDKRouteParameters this_obj);
10410         public static native void RouteParameters_free(long this_obj);
10411         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
10412         public static native long RouteParameters_get_payment_params(long this_ptr);
10413         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
10414         public static native void RouteParameters_set_payment_params(long this_ptr, long val);
10415         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
10416         public static native long RouteParameters_get_final_value_msat(long this_ptr);
10417         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
10418         public static native void RouteParameters_set_final_value_msat(long this_ptr, long val);
10419         // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg);
10420         public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg);
10421         // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
10422         public static native long RouteParameters_clone_ptr(long arg);
10423         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
10424         public static native long RouteParameters_clone(long orig);
10425         // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b);
10426         public static native boolean RouteParameters_eq(long a, long b);
10427         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
10428         public static native byte[] RouteParameters_write(long obj);
10429         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
10430         public static native long RouteParameters_read(byte[] ser);
10431         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
10432         public static native void PaymentParameters_free(long this_obj);
10433         // struct LDKPayee PaymentParameters_get_payee(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
10434         public static native long PaymentParameters_get_payee(long this_ptr);
10435         // void PaymentParameters_set_payee(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPayee val);
10436         public static native void PaymentParameters_set_payee(long this_ptr, long val);
10437         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
10438         public static native long PaymentParameters_get_expiry_time(long this_ptr);
10439         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
10440         public static native void PaymentParameters_set_expiry_time(long this_ptr, long val);
10441         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
10442         public static native int PaymentParameters_get_max_total_cltv_expiry_delta(long this_ptr);
10443         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
10444         public static native void PaymentParameters_set_max_total_cltv_expiry_delta(long this_ptr, int val);
10445         // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
10446         public static native byte PaymentParameters_get_max_path_count(long this_ptr);
10447         // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
10448         public static native void PaymentParameters_set_max_path_count(long this_ptr, byte val);
10449         // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
10450         public static native byte PaymentParameters_get_max_channel_saturation_power_of_half(long this_ptr);
10451         // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
10452         public static native void PaymentParameters_set_max_channel_saturation_power_of_half(long this_ptr, byte val);
10453         // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
10454         public static native long[] PaymentParameters_get_previously_failed_channels(long this_ptr);
10455         // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
10456         public static native void PaymentParameters_set_previously_failed_channels(long this_ptr, long[] val);
10457         // 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);
10458         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);
10459         // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
10460         public static native long PaymentParameters_clone_ptr(long arg);
10461         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
10462         public static native long PaymentParameters_clone(long orig);
10463         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
10464         public static native long PaymentParameters_hash(long o);
10465         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
10466         public static native boolean PaymentParameters_eq(long a, long b);
10467         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
10468         public static native byte[] PaymentParameters_write(long obj);
10469         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg);
10470         public static native long PaymentParameters_read(byte[] ser, int arg);
10471         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
10472         public static native long PaymentParameters_from_node_id(byte[] payee_pubkey, int final_cltv_expiry_delta);
10473         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta, bool allow_mpp);
10474         public static native long PaymentParameters_for_keysend(byte[] payee_pubkey, int final_cltv_expiry_delta, boolean allow_mpp);
10475         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_bolt12_invoice(const struct LDKBolt12Invoice *NONNULL_PTR invoice);
10476         public static native long PaymentParameters_from_bolt12_invoice(long invoice);
10477         // void Payee_free(struct LDKPayee this_ptr);
10478         public static native void Payee_free(long this_ptr);
10479         // uint64_t Payee_clone_ptr(LDKPayee *NONNULL_PTR arg);
10480         public static native long Payee_clone_ptr(long arg);
10481         // struct LDKPayee Payee_clone(const struct LDKPayee *NONNULL_PTR orig);
10482         public static native long Payee_clone(long orig);
10483         // struct LDKPayee Payee_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ route_hints, struct LDKBolt12InvoiceFeatures features);
10484         public static native long Payee_blinded(long[] route_hints, long features);
10485         // struct LDKPayee Payee_clear(struct LDKPublicKey node_id, struct LDKCVec_RouteHintZ route_hints, struct LDKBolt11InvoiceFeatures features, uint32_t final_cltv_expiry_delta);
10486         public static native long Payee_clear(byte[] node_id, long[] route_hints, long features, int final_cltv_expiry_delta);
10487         // uint64_t Payee_hash(const struct LDKPayee *NONNULL_PTR o);
10488         public static native long Payee_hash(long o);
10489         // bool Payee_eq(const struct LDKPayee *NONNULL_PTR a, const struct LDKPayee *NONNULL_PTR b);
10490         public static native boolean Payee_eq(long a, long b);
10491         // void RouteHint_free(struct LDKRouteHint this_obj);
10492         public static native void RouteHint_free(long this_obj);
10493         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
10494         public static native long[] RouteHint_get_a(long this_ptr);
10495         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
10496         public static native void RouteHint_set_a(long this_ptr, long[] val);
10497         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
10498         public static native long RouteHint_new(long[] a_arg);
10499         // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
10500         public static native long RouteHint_clone_ptr(long arg);
10501         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
10502         public static native long RouteHint_clone(long orig);
10503         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
10504         public static native long RouteHint_hash(long o);
10505         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
10506         public static native boolean RouteHint_eq(long a, long b);
10507         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
10508         public static native byte[] RouteHint_write(long obj);
10509         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
10510         public static native long RouteHint_read(byte[] ser);
10511         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
10512         public static native void RouteHintHop_free(long this_obj);
10513         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
10514         public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
10515         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10516         public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
10517         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
10518         public static native long RouteHintHop_get_short_channel_id(long this_ptr);
10519         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
10520         public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
10521         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
10522         public static native long RouteHintHop_get_fees(long this_ptr);
10523         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
10524         public static native void RouteHintHop_set_fees(long this_ptr, long val);
10525         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
10526         public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
10527         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
10528         public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
10529         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
10530         public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
10531         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
10532         public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
10533         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
10534         public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
10535         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
10536         public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
10537         // 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);
10538         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);
10539         // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
10540         public static native long RouteHintHop_clone_ptr(long arg);
10541         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
10542         public static native long RouteHintHop_clone(long orig);
10543         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
10544         public static native long RouteHintHop_hash(long o);
10545         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
10546         public static native boolean RouteHintHop_eq(long a, long b);
10547         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
10548         public static native byte[] RouteHintHop_write(long obj);
10549         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
10550         public static native long RouteHintHop_read(byte[] ser);
10551         // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]);
10552         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);
10553         // 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]);
10554         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);
10555         // void Score_free(struct LDKScore this_ptr);
10556         public static native void Score_free(long this_ptr);
10557         // void LockableScore_free(struct LDKLockableScore this_ptr);
10558         public static native void LockableScore_free(long this_ptr);
10559         // void WriteableScore_free(struct LDKWriteableScore this_ptr);
10560         public static native void WriteableScore_free(long this_ptr);
10561         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
10562         public static native void MultiThreadedLockableScore_free(long this_obj);
10563         // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
10564         public static native long MultiThreadedLockableScore_as_LockableScore(long this_arg);
10565         // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
10566         public static native byte[] MultiThreadedLockableScore_write(long obj);
10567         // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
10568         public static native long MultiThreadedLockableScore_as_WriteableScore(long this_arg);
10569         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
10570         public static native long MultiThreadedLockableScore_new(long score);
10571         // void MultiThreadedScoreLock_free(struct LDKMultiThreadedScoreLock this_obj);
10572         public static native void MultiThreadedScoreLock_free(long this_obj);
10573         // struct LDKCVec_u8Z MultiThreadedScoreLock_write(const struct LDKMultiThreadedScoreLock *NONNULL_PTR obj);
10574         public static native byte[] MultiThreadedScoreLock_write(long obj);
10575         // struct LDKScore MultiThreadedScoreLock_as_Score(const struct LDKMultiThreadedScoreLock *NONNULL_PTR this_arg);
10576         public static native long MultiThreadedScoreLock_as_Score(long this_arg);
10577         // void ChannelUsage_free(struct LDKChannelUsage this_obj);
10578         public static native void ChannelUsage_free(long this_obj);
10579         // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
10580         public static native long ChannelUsage_get_amount_msat(long this_ptr);
10581         // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
10582         public static native void ChannelUsage_set_amount_msat(long this_ptr, long val);
10583         // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
10584         public static native long ChannelUsage_get_inflight_htlc_msat(long this_ptr);
10585         // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
10586         public static native void ChannelUsage_set_inflight_htlc_msat(long this_ptr, long val);
10587         // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
10588         public static native long ChannelUsage_get_effective_capacity(long this_ptr);
10589         // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
10590         public static native void ChannelUsage_set_effective_capacity(long this_ptr, long val);
10591         // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
10592         public static native long ChannelUsage_new(long amount_msat_arg, long inflight_htlc_msat_arg, long effective_capacity_arg);
10593         // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
10594         public static native long ChannelUsage_clone_ptr(long arg);
10595         // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
10596         public static native long ChannelUsage_clone(long orig);
10597         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
10598         public static native void FixedPenaltyScorer_free(long this_obj);
10599         // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
10600         public static native long FixedPenaltyScorer_clone_ptr(long arg);
10601         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
10602         public static native long FixedPenaltyScorer_clone(long orig);
10603         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
10604         public static native long FixedPenaltyScorer_with_penalty(long penalty_msat);
10605         // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
10606         public static native long FixedPenaltyScorer_as_Score(long this_arg);
10607         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
10608         public static native byte[] FixedPenaltyScorer_write(long obj);
10609         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
10610         public static native long FixedPenaltyScorer_read(byte[] ser, long arg);
10611         // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
10612         public static native void ProbabilisticScorer_free(long this_obj);
10613         // void ProbabilisticScoringFeeParameters_free(struct LDKProbabilisticScoringFeeParameters this_obj);
10614         public static native void ProbabilisticScoringFeeParameters_free(long this_obj);
10615         // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10616         public static native long ProbabilisticScoringFeeParameters_get_base_penalty_msat(long this_ptr);
10617         // void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10618         public static native void ProbabilisticScoringFeeParameters_set_base_penalty_msat(long this_ptr, long val);
10619         // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10620         public static native long ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(long this_ptr);
10621         // void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10622         public static native void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(long this_ptr, long val);
10623         // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10624         public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(long this_ptr);
10625         // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10626         public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(long this_ptr, long val);
10627         // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10628         public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(long this_ptr);
10629         // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10630         public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
10631         // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10632         public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(long this_ptr);
10633         // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10634         public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(long this_ptr, long val);
10635         // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10636         public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr);
10637         // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10638         public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
10639         // uint64_t ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10640         public static native long ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(long this_ptr);
10641         // void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10642         public static native void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(long this_ptr, long val);
10643         // uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
10644         public static native long ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(long this_ptr);
10645         // void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
10646         public static native void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(long this_ptr, long val);
10647         // uint64_t ProbabilisticScoringFeeParameters_clone_ptr(LDKProbabilisticScoringFeeParameters *NONNULL_PTR arg);
10648         public static native long ProbabilisticScoringFeeParameters_clone_ptr(long arg);
10649         // struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_clone(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR orig);
10650         public static native long ProbabilisticScoringFeeParameters_clone(long orig);
10651         // MUST_USE_RES struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_default(void);
10652         public static native long ProbabilisticScoringFeeParameters_default();
10653         // void ProbabilisticScoringFeeParameters_add_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
10654         public static native void ProbabilisticScoringFeeParameters_add_banned(long this_arg, long node_id);
10655         // void ProbabilisticScoringFeeParameters_add_banned_from_list(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
10656         public static native void ProbabilisticScoringFeeParameters_add_banned_from_list(long this_arg, long[] node_ids);
10657         // void ProbabilisticScoringFeeParameters_remove_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
10658         public static native void ProbabilisticScoringFeeParameters_remove_banned(long this_arg, long node_id);
10659         // void ProbabilisticScoringFeeParameters_set_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
10660         public static native void ProbabilisticScoringFeeParameters_set_manual_penalty(long this_arg, long node_id, long penalty);
10661         // void ProbabilisticScoringFeeParameters_remove_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
10662         public static native void ProbabilisticScoringFeeParameters_remove_manual_penalty(long this_arg, long node_id);
10663         // void ProbabilisticScoringFeeParameters_clear_manual_penalties(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg);
10664         public static native void ProbabilisticScoringFeeParameters_clear_manual_penalties(long this_arg);
10665         // void ProbabilisticScoringDecayParameters_free(struct LDKProbabilisticScoringDecayParameters this_obj);
10666         public static native void ProbabilisticScoringDecayParameters_free(long this_obj);
10667         // uint64_t ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
10668         public static native long ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(long this_ptr);
10669         // void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
10670         public static native void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(long this_ptr, long val);
10671         // uint64_t ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
10672         public static native long ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(long this_ptr);
10673         // void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
10674         public static native void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(long this_ptr, long val);
10675         // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_new(uint64_t historical_no_updates_half_life_arg, uint64_t liquidity_offset_half_life_arg);
10676         public static native long ProbabilisticScoringDecayParameters_new(long historical_no_updates_half_life_arg, long liquidity_offset_half_life_arg);
10677         // uint64_t ProbabilisticScoringDecayParameters_clone_ptr(LDKProbabilisticScoringDecayParameters *NONNULL_PTR arg);
10678         public static native long ProbabilisticScoringDecayParameters_clone_ptr(long arg);
10679         // struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_clone(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR orig);
10680         public static native long ProbabilisticScoringDecayParameters_clone(long orig);
10681         // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_default(void);
10682         public static native long ProbabilisticScoringDecayParameters_default();
10683         // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringDecayParameters decay_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
10684         public static native long ProbabilisticScorer_new(long decay_params, long network_graph, long logger);
10685         // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
10686         public static native void ProbabilisticScorer_debug_log_liquidity_stats(long this_arg);
10687         // 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);
10688         public static native long ProbabilisticScorer_estimated_channel_liquidity_range(long this_arg, long scid, long target);
10689         // MUST_USE_RES struct LDKCOption_C2Tuple_EightU16sEightU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
10690         public static native long ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(long this_arg, long scid, long target);
10691         // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
10692         public static native long ProbabilisticScorer_as_Score(long this_arg);
10693         // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
10694         public static native byte[] ProbabilisticScorer_write(long obj);
10695         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringDecayParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
10696         public static native long ProbabilisticScorer_read(byte[] ser, long arg_a, long arg_b, long arg_c);
10697         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
10698         public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
10699         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10700         public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
10701         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
10702         public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
10703         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10704         public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
10705         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10706         public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
10707         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10708         public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
10709         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
10710         public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
10711         // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10712         public static native long DelayedPaymentOutputDescriptor_get_output(long this_ptr);
10713         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
10714         public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
10715         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10716         public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
10717         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10718         public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
10719         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
10720         public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
10721         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10722         public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
10723         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10724         public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
10725         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
10726         public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
10727         // 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);
10728         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);
10729         // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
10730         public static native long DelayedPaymentOutputDescriptor_clone_ptr(long arg);
10731         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
10732         public static native long DelayedPaymentOutputDescriptor_clone(long orig);
10733         // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b);
10734         public static native boolean DelayedPaymentOutputDescriptor_eq(long a, long b);
10735         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
10736         public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
10737         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
10738         public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
10739         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
10740         public static native void StaticPaymentOutputDescriptor_free(long this_obj);
10741         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10742         public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
10743         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
10744         public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
10745         // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10746         public static native long StaticPaymentOutputDescriptor_get_output(long this_ptr);
10747         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
10748         public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
10749         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
10750         public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
10751         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10752         public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
10753         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
10754         public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
10755         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
10756         public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
10757         // 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);
10758         public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
10759         // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
10760         public static native long StaticPaymentOutputDescriptor_clone_ptr(long arg);
10761         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
10762         public static native long StaticPaymentOutputDescriptor_clone(long orig);
10763         // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b);
10764         public static native boolean StaticPaymentOutputDescriptor_eq(long a, long b);
10765         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
10766         public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
10767         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
10768         public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
10769         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
10770         public static native void SpendableOutputDescriptor_free(long this_ptr);
10771         // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
10772         public static native long SpendableOutputDescriptor_clone_ptr(long arg);
10773         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
10774         public static native long SpendableOutputDescriptor_clone(long orig);
10775         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
10776         public static native long SpendableOutputDescriptor_static_output(long outpoint, long output);
10777         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
10778         public static native long SpendableOutputDescriptor_delayed_payment_output(long a);
10779         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
10780         public static native long SpendableOutputDescriptor_static_payment_output(long a);
10781         // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b);
10782         public static native boolean SpendableOutputDescriptor_eq(long a, long b);
10783         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
10784         public static native byte[] SpendableOutputDescriptor_write(long obj);
10785         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
10786         public static native long SpendableOutputDescriptor_read(byte[] ser);
10787         // MUST_USE_RES struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ 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_PackedLockTimeZ locktime);
10788         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);
10789         // void ChannelSigner_free(struct LDKChannelSigner this_ptr);
10790         public static native void ChannelSigner_free(long this_ptr);
10791         // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr);
10792         public static native void EcdsaChannelSigner_free(long this_ptr);
10793         // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg);
10794         public static native long WriteableEcdsaChannelSigner_clone_ptr(long arg);
10795         // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig);
10796         public static native long WriteableEcdsaChannelSigner_clone(long orig);
10797         // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr);
10798         public static native void WriteableEcdsaChannelSigner_free(long this_ptr);
10799         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
10800         public static native Recipient Recipient_clone(long orig);
10801         // enum LDKRecipient Recipient_node(void);
10802         public static native Recipient Recipient_node();
10803         // enum LDKRecipient Recipient_phantom_node(void);
10804         public static native Recipient Recipient_phantom_node();
10805         // void EntropySource_free(struct LDKEntropySource this_ptr);
10806         public static native void EntropySource_free(long this_ptr);
10807         // void NodeSigner_free(struct LDKNodeSigner this_ptr);
10808         public static native void NodeSigner_free(long this_ptr);
10809         // void SignerProvider_free(struct LDKSignerProvider this_ptr);
10810         public static native void SignerProvider_free(long this_ptr);
10811         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
10812         public static native void InMemorySigner_free(long this_obj);
10813         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
10814         public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
10815         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
10816         public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
10817         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
10818         public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
10819         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
10820         public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
10821         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
10822         public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
10823         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
10824         public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
10825         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
10826         public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
10827         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
10828         public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
10829         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
10830         public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
10831         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
10832         public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
10833         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
10834         public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
10835         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10836         public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
10837         // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
10838         public static native long InMemorySigner_clone_ptr(long arg);
10839         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
10840         public static native long InMemorySigner_clone(long orig);
10841         // 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);
10842         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);
10843         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10844         public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
10845         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10846         public static native short InMemorySigner_counterparty_selected_contest_delay(long this_arg);
10847         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10848         public static native short InMemorySigner_holder_selected_contest_delay(long this_arg);
10849         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10850         public static native boolean InMemorySigner_is_outbound(long this_arg);
10851         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10852         public static native long InMemorySigner_funding_outpoint(long this_arg);
10853         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10854         public static native long InMemorySigner_get_channel_parameters(long this_arg);
10855         // MUST_USE_RES struct LDKChannelTypeFeatures InMemorySigner_channel_type_features(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10856         public static native long InMemorySigner_channel_type_features(long this_arg);
10857         // 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);
10858         public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
10859         // 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);
10860         public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
10861         // struct LDKEntropySource InMemorySigner_as_EntropySource(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10862         public static native long InMemorySigner_as_EntropySource(long this_arg);
10863         // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10864         public static native long InMemorySigner_as_ChannelSigner(long this_arg);
10865         // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10866         public static native long InMemorySigner_as_EcdsaChannelSigner(long this_arg);
10867         // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
10868         public static native long InMemorySigner_as_WriteableEcdsaChannelSigner(long this_arg);
10869         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
10870         public static native byte[] InMemorySigner_write(long obj);
10871         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKEntropySource arg);
10872         public static native long InMemorySigner_read(byte[] ser, long arg);
10873         // void KeysManager_free(struct LDKKeysManager this_obj);
10874         public static native void KeysManager_free(long this_obj);
10875         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
10876         public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
10877         // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg);
10878         public static native byte[] KeysManager_get_node_secret_key(long this_arg);
10879         // 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]);
10880         public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
10881         // MUST_USE_RES struct LDKCResult_PartiallySignedTransactionNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt);
10882         public static native long KeysManager_sign_spendable_outputs_psbt(long this_arg, long[] descriptors, byte[] psbt);
10883         // 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_PackedLockTimeZ locktime);
10884         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);
10885         // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg);
10886         public static native long KeysManager_as_EntropySource(long this_arg);
10887         // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg);
10888         public static native long KeysManager_as_NodeSigner(long this_arg);
10889         // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg);
10890         public static native long KeysManager_as_SignerProvider(long this_arg);
10891         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
10892         public static native void PhantomKeysManager_free(long this_obj);
10893         // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
10894         public static native long PhantomKeysManager_as_EntropySource(long this_arg);
10895         // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
10896         public static native long PhantomKeysManager_as_NodeSigner(long this_arg);
10897         // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
10898         public static native long PhantomKeysManager_as_SignerProvider(long this_arg);
10899         // 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]);
10900         public static native long PhantomKeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed);
10901         // 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_PackedLockTimeZ locktime);
10902         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);
10903         // 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]);
10904         public static native long PhantomKeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
10905         // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
10906         public static native byte[] PhantomKeysManager_get_node_secret_key(long this_arg);
10907         // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
10908         public static native byte[] PhantomKeysManager_get_phantom_node_secret_key(long this_arg);
10909         // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
10910         public static native void OnionMessenger_free(long this_obj);
10911         // void MessageRouter_free(struct LDKMessageRouter this_ptr);
10912         public static native void MessageRouter_free(long this_ptr);
10913         // void DefaultMessageRouter_free(struct LDKDefaultMessageRouter this_obj);
10914         public static native void DefaultMessageRouter_free(long this_obj);
10915         // MUST_USE_RES struct LDKDefaultMessageRouter DefaultMessageRouter_new(void);
10916         public static native long DefaultMessageRouter_new();
10917         // struct LDKMessageRouter DefaultMessageRouter_as_MessageRouter(const struct LDKDefaultMessageRouter *NONNULL_PTR this_arg);
10918         public static native long DefaultMessageRouter_as_MessageRouter(long this_arg);
10919         // void OnionMessagePath_free(struct LDKOnionMessagePath this_obj);
10920         public static native void OnionMessagePath_free(long this_obj);
10921         // struct LDKCVec_PublicKeyZ OnionMessagePath_get_intermediate_nodes(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
10922         public static native byte[][] OnionMessagePath_get_intermediate_nodes(long this_ptr);
10923         // void OnionMessagePath_set_intermediate_nodes(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCVec_PublicKeyZ val);
10924         public static native void OnionMessagePath_set_intermediate_nodes(long this_ptr, byte[][] val);
10925         // struct LDKDestination OnionMessagePath_get_destination(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
10926         public static native long OnionMessagePath_get_destination(long this_ptr);
10927         // void OnionMessagePath_set_destination(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKDestination val);
10928         public static native void OnionMessagePath_set_destination(long this_ptr, long val);
10929         // MUST_USE_RES struct LDKOnionMessagePath OnionMessagePath_new(struct LDKCVec_PublicKeyZ intermediate_nodes_arg, struct LDKDestination destination_arg);
10930         public static native long OnionMessagePath_new(byte[][] intermediate_nodes_arg, long destination_arg);
10931         // uint64_t OnionMessagePath_clone_ptr(LDKOnionMessagePath *NONNULL_PTR arg);
10932         public static native long OnionMessagePath_clone_ptr(long arg);
10933         // struct LDKOnionMessagePath OnionMessagePath_clone(const struct LDKOnionMessagePath *NONNULL_PTR orig);
10934         public static native long OnionMessagePath_clone(long orig);
10935         // void Destination_free(struct LDKDestination this_ptr);
10936         public static native void Destination_free(long this_ptr);
10937         // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg);
10938         public static native long Destination_clone_ptr(long arg);
10939         // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig);
10940         public static native long Destination_clone(long orig);
10941         // struct LDKDestination Destination_node(struct LDKPublicKey a);
10942         public static native long Destination_node(byte[] a);
10943         // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a);
10944         public static native long Destination_blinded_path(long a);
10945         // void SendError_free(struct LDKSendError this_ptr);
10946         public static native void SendError_free(long this_ptr);
10947         // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
10948         public static native long SendError_clone_ptr(long arg);
10949         // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
10950         public static native long SendError_clone(long orig);
10951         // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
10952         public static native long SendError_secp256k1(Secp256k1Error a);
10953         // struct LDKSendError SendError_too_big_packet(void);
10954         public static native long SendError_too_big_packet();
10955         // struct LDKSendError SendError_too_few_blinded_hops(void);
10956         public static native long SendError_too_few_blinded_hops();
10957         // struct LDKSendError SendError_invalid_first_hop(void);
10958         public static native long SendError_invalid_first_hop();
10959         // struct LDKSendError SendError_invalid_message(void);
10960         public static native long SendError_invalid_message();
10961         // struct LDKSendError SendError_buffer_full(void);
10962         public static native long SendError_buffer_full();
10963         // struct LDKSendError SendError_get_node_id_failed(void);
10964         public static native long SendError_get_node_id_failed();
10965         // struct LDKSendError SendError_blinded_path_advance_failed(void);
10966         public static native long SendError_blinded_path_advance_failed();
10967         // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b);
10968         public static native boolean SendError_eq(long a, long b);
10969         // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr);
10970         public static native void CustomOnionMessageHandler_free(long this_ptr);
10971         // 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);
10972         public static native long OnionMessenger_new(long entropy_source, long node_signer, long logger, long message_router, long offers_handler, long custom_handler);
10973         // MUST_USE_RES struct LDKCResult_NoneSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKOnionMessagePath path, struct LDKOnionMessageContents message, struct LDKBlindedPath reply_path);
10974         public static native long OnionMessenger_send_onion_message(long this_arg, long path, long message, long reply_path);
10975         // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
10976         public static native long OnionMessenger_as_OnionMessageHandler(long this_arg);
10977         // struct LDKOnionMessageProvider OnionMessenger_as_OnionMessageProvider(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
10978         public static native long OnionMessenger_as_OnionMessageProvider(long this_arg);
10979         // void OffersMessageHandler_free(struct LDKOffersMessageHandler this_ptr);
10980         public static native void OffersMessageHandler_free(long this_ptr);
10981         // void OffersMessage_free(struct LDKOffersMessage this_ptr);
10982         public static native void OffersMessage_free(long this_ptr);
10983         // uint64_t OffersMessage_clone_ptr(LDKOffersMessage *NONNULL_PTR arg);
10984         public static native long OffersMessage_clone_ptr(long arg);
10985         // struct LDKOffersMessage OffersMessage_clone(const struct LDKOffersMessage *NONNULL_PTR orig);
10986         public static native long OffersMessage_clone(long orig);
10987         // struct LDKOffersMessage OffersMessage_invoice_request(struct LDKInvoiceRequest a);
10988         public static native long OffersMessage_invoice_request(long a);
10989         // struct LDKOffersMessage OffersMessage_invoice(struct LDKBolt12Invoice a);
10990         public static native long OffersMessage_invoice(long a);
10991         // struct LDKOffersMessage OffersMessage_invoice_error(struct LDKInvoiceError a);
10992         public static native long OffersMessage_invoice_error(long a);
10993         // MUST_USE_RES bool OffersMessage_is_known_type(uint64_t tlv_type);
10994         public static native boolean OffersMessage_is_known_type(long tlv_type);
10995         // MUST_USE_RES uint64_t OffersMessage_tlv_type(const struct LDKOffersMessage *NONNULL_PTR this_arg);
10996         public static native long OffersMessage_tlv_type(long this_arg);
10997         // struct LDKCVec_u8Z OffersMessage_write(const struct LDKOffersMessage *NONNULL_PTR obj);
10998         public static native byte[] OffersMessage_write(long obj);
10999         // struct LDKCResult_OffersMessageDecodeErrorZ OffersMessage_read(struct LDKu8slice ser, uint64_t arg_a, const struct LDKLogger *NONNULL_PTR arg_b);
11000         public static native long OffersMessage_read(byte[] ser, long arg_a, long arg_b);
11001         // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr);
11002         public static native void OnionMessageContents_free(long this_ptr);
11003         // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg);
11004         public static native long OnionMessageContents_clone_ptr(long arg);
11005         // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig);
11006         public static native long OnionMessageContents_clone(long orig);
11007         // struct LDKOnionMessageContents OnionMessageContents_offers(struct LDKOffersMessage a);
11008         public static native long OnionMessageContents_offers(long a);
11009         // struct LDKOnionMessageContents OnionMessageContents_custom(struct LDKCustomOnionMessageContents a);
11010         public static native long OnionMessageContents_custom(long a);
11011         // uint64_t CustomOnionMessageContents_clone_ptr(LDKCustomOnionMessageContents *NONNULL_PTR arg);
11012         public static native long CustomOnionMessageContents_clone_ptr(long arg);
11013         // struct LDKCustomOnionMessageContents CustomOnionMessageContents_clone(const struct LDKCustomOnionMessageContents *NONNULL_PTR orig);
11014         public static native long CustomOnionMessageContents_clone(long orig);
11015         // void CustomOnionMessageContents_free(struct LDKCustomOnionMessageContents this_ptr);
11016         public static native void CustomOnionMessageContents_free(long this_ptr);
11017         // void BlindedPath_free(struct LDKBlindedPath this_obj);
11018         public static native void BlindedPath_free(long this_obj);
11019         // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg);
11020         public static native long BlindedPath_clone_ptr(long arg);
11021         // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig);
11022         public static native long BlindedPath_clone(long orig);
11023         // uint64_t BlindedPath_hash(const struct LDKBlindedPath *NONNULL_PTR o);
11024         public static native long BlindedPath_hash(long o);
11025         // bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDKBlindedPath *NONNULL_PTR b);
11026         public static native boolean BlindedPath_eq(long a, long b);
11027         // void BlindedHop_free(struct LDKBlindedHop this_obj);
11028         public static native void BlindedHop_free(long this_obj);
11029         // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg);
11030         public static native long BlindedHop_clone_ptr(long arg);
11031         // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig);
11032         public static native long BlindedHop_clone(long orig);
11033         // uint64_t BlindedHop_hash(const struct LDKBlindedHop *NONNULL_PTR o);
11034         public static native long BlindedHop_hash(long o);
11035         // bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBlindedHop *NONNULL_PTR b);
11036         public static native boolean BlindedHop_eq(long a, long b);
11037         // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source);
11038         public static native long BlindedPath_new_for_message(byte[][] node_pks, long entropy_source);
11039         // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj);
11040         public static native byte[] BlindedPath_write(long obj);
11041         // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser);
11042         public static native long BlindedPath_read(byte[] ser);
11043         // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
11044         public static native byte[] BlindedHop_write(long obj);
11045         // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
11046         public static native long BlindedHop_read(byte[] ser);
11047         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
11048         public static native void PaymentPurpose_free(long this_ptr);
11049         // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
11050         public static native long PaymentPurpose_clone_ptr(long arg);
11051         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
11052         public static native long PaymentPurpose_clone(long orig);
11053         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKThirtyTwoBytes payment_secret);
11054         public static native long PaymentPurpose_invoice_payment(long payment_preimage, byte[] payment_secret);
11055         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
11056         public static native long PaymentPurpose_spontaneous_payment(byte[] a);
11057         // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
11058         public static native boolean PaymentPurpose_eq(long a, long b);
11059         // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
11060         public static native byte[] PaymentPurpose_write(long obj);
11061         // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
11062         public static native long PaymentPurpose_read(byte[] ser);
11063         // void PathFailure_free(struct LDKPathFailure this_ptr);
11064         public static native void PathFailure_free(long this_ptr);
11065         // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
11066         public static native long PathFailure_clone_ptr(long arg);
11067         // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
11068         public static native long PathFailure_clone(long orig);
11069         // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
11070         public static native long PathFailure_initial_send(long err);
11071         // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
11072         public static native long PathFailure_on_path(long network_update);
11073         // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
11074         public static native boolean PathFailure_eq(long a, long b);
11075         // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
11076         public static native byte[] PathFailure_write(long obj);
11077         // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
11078         public static native long PathFailure_read(byte[] ser);
11079         // void ClosureReason_free(struct LDKClosureReason this_ptr);
11080         public static native void ClosureReason_free(long this_ptr);
11081         // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
11082         public static native long ClosureReason_clone_ptr(long arg);
11083         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
11084         public static native long ClosureReason_clone(long orig);
11085         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKUntrustedString peer_msg);
11086         public static native long ClosureReason_counterparty_force_closed(long peer_msg);
11087         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
11088         public static native long ClosureReason_holder_force_closed();
11089         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
11090         public static native long ClosureReason_cooperative_closure();
11091         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
11092         public static native long ClosureReason_commitment_tx_confirmed();
11093         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
11094         public static native long ClosureReason_funding_timed_out();
11095         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
11096         public static native long ClosureReason_processing_error(String err);
11097         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
11098         public static native long ClosureReason_disconnected_peer();
11099         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
11100         public static native long ClosureReason_outdated_channel_manager();
11101         // struct LDKClosureReason ClosureReason_counterparty_coop_closed_unfunded_channel(void);
11102         public static native long ClosureReason_counterparty_coop_closed_unfunded_channel();
11103         // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
11104         public static native boolean ClosureReason_eq(long a, long b);
11105         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
11106         public static native byte[] ClosureReason_write(long obj);
11107         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
11108         public static native long ClosureReason_read(byte[] ser);
11109         // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
11110         public static native void HTLCDestination_free(long this_ptr);
11111         // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
11112         public static native long HTLCDestination_clone_ptr(long arg);
11113         // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
11114         public static native long HTLCDestination_clone(long orig);
11115         // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
11116         public static native long HTLCDestination_next_hop_channel(byte[] node_id, byte[] channel_id);
11117         // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
11118         public static native long HTLCDestination_unknown_next_hop(long requested_forward_scid);
11119         // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
11120         public static native long HTLCDestination_invalid_forward(long requested_forward_scid);
11121         // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
11122         public static native long HTLCDestination_failed_payment(byte[] payment_hash);
11123         // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
11124         public static native boolean HTLCDestination_eq(long a, long b);
11125         // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
11126         public static native byte[] HTLCDestination_write(long obj);
11127         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
11128         public static native long HTLCDestination_read(byte[] ser);
11129         // enum LDKPaymentFailureReason PaymentFailureReason_clone(const enum LDKPaymentFailureReason *NONNULL_PTR orig);
11130         public static native PaymentFailureReason PaymentFailureReason_clone(long orig);
11131         // enum LDKPaymentFailureReason PaymentFailureReason_recipient_rejected(void);
11132         public static native PaymentFailureReason PaymentFailureReason_recipient_rejected();
11133         // enum LDKPaymentFailureReason PaymentFailureReason_user_abandoned(void);
11134         public static native PaymentFailureReason PaymentFailureReason_user_abandoned();
11135         // enum LDKPaymentFailureReason PaymentFailureReason_retries_exhausted(void);
11136         public static native PaymentFailureReason PaymentFailureReason_retries_exhausted();
11137         // enum LDKPaymentFailureReason PaymentFailureReason_payment_expired(void);
11138         public static native PaymentFailureReason PaymentFailureReason_payment_expired();
11139         // enum LDKPaymentFailureReason PaymentFailureReason_route_not_found(void);
11140         public static native PaymentFailureReason PaymentFailureReason_route_not_found();
11141         // enum LDKPaymentFailureReason PaymentFailureReason_unexpected_error(void);
11142         public static native PaymentFailureReason PaymentFailureReason_unexpected_error();
11143         // bool PaymentFailureReason_eq(const enum LDKPaymentFailureReason *NONNULL_PTR a, const enum LDKPaymentFailureReason *NONNULL_PTR b);
11144         public static native boolean PaymentFailureReason_eq(long a, long b);
11145         // struct LDKCVec_u8Z PaymentFailureReason_write(const enum LDKPaymentFailureReason *NONNULL_PTR obj);
11146         public static native byte[] PaymentFailureReason_write(long obj);
11147         // struct LDKCResult_PaymentFailureReasonDecodeErrorZ PaymentFailureReason_read(struct LDKu8slice ser);
11148         public static native long PaymentFailureReason_read(byte[] ser);
11149         // void Event_free(struct LDKEvent this_ptr);
11150         public static native void Event_free(long this_ptr);
11151         // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
11152         public static native long Event_clone_ptr(long arg);
11153         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
11154         public static native long Event_clone(long orig);
11155         // 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);
11156         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);
11157         // 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 LDKThirtyTwoBytes via_channel_id, struct LDKCOption_u128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline);
11158         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, byte[] via_channel_id, long via_user_channel_id, long claim_deadline);
11159         // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
11160         public static native long Event_payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose);
11161         // struct LDKEvent Event_payment_sent(struct LDKCOption_PaymentIdZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
11162         public static native long Event_payment_sent(long payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
11163         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_PaymentFailureReasonZ reason);
11164         public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash, long reason);
11165         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_PaymentHashZ payment_hash, struct LDKPath path);
11166         public static native long Event_payment_path_successful(byte[] payment_id, long payment_hash, long path);
11167         // struct LDKEvent Event_payment_path_failed(struct LDKCOption_PaymentIdZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
11168         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);
11169         // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
11170         public static native long Event_probe_successful(byte[] payment_id, byte[] payment_hash, long path);
11171         // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
11172         public static native long Event_probe_failed(byte[] payment_id, byte[] payment_hash, long path, long short_channel_id);
11173         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
11174         public static native long Event_pending_htlcs_forwardable(long time_forwardable);
11175         // 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);
11176         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);
11177         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
11178         public static native long Event_spendable_outputs(long[] outputs);
11179         // struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat);
11180         public static native long Event_payment_forwarded(byte[] prev_channel_id, byte[] next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx, long outbound_amount_forwarded_msat);
11181         // struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKThirtyTwoBytes former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo);
11182         public static native long Event_channel_pending(byte[] channel_id, byte[] user_channel_id, byte[] former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo);
11183         // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
11184         public static native long Event_channel_ready(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type);
11185         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason);
11186         public static native long Event_channel_closed(byte[] channel_id, byte[] user_channel_id, long reason);
11187         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
11188         public static native long Event_discard_funding(byte[] channel_id, byte[] transaction);
11189         // 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);
11190         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);
11191         // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
11192         public static native long Event_htlchandling_failed(byte[] prev_channel_id, long failed_next_destination);
11193         // struct LDKEvent Event_bump_transaction(struct LDKBumpTransactionEvent a);
11194         public static native long Event_bump_transaction(long a);
11195         // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
11196         public static native boolean Event_eq(long a, long b);
11197         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
11198         public static native byte[] Event_write(long obj);
11199         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
11200         public static native long Event_read(byte[] ser);
11201         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
11202         public static native void MessageSendEvent_free(long this_ptr);
11203         // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
11204         public static native long MessageSendEvent_clone_ptr(long arg);
11205         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
11206         public static native long MessageSendEvent_clone(long orig);
11207         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
11208         public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
11209         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel_v2(struct LDKPublicKey node_id, struct LDKAcceptChannelV2 msg);
11210         public static native long MessageSendEvent_send_accept_channel_v2(byte[] node_id, long msg);
11211         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
11212         public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
11213         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel_v2(struct LDKPublicKey node_id, struct LDKOpenChannelV2 msg);
11214         public static native long MessageSendEvent_send_open_channel_v2(byte[] node_id, long msg);
11215         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
11216         public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
11217         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
11218         public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
11219         // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_input(struct LDKPublicKey node_id, struct LDKTxAddInput msg);
11220         public static native long MessageSendEvent_send_tx_add_input(byte[] node_id, long msg);
11221         // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_output(struct LDKPublicKey node_id, struct LDKTxAddOutput msg);
11222         public static native long MessageSendEvent_send_tx_add_output(byte[] node_id, long msg);
11223         // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_input(struct LDKPublicKey node_id, struct LDKTxRemoveInput msg);
11224         public static native long MessageSendEvent_send_tx_remove_input(byte[] node_id, long msg);
11225         // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_output(struct LDKPublicKey node_id, struct LDKTxRemoveOutput msg);
11226         public static native long MessageSendEvent_send_tx_remove_output(byte[] node_id, long msg);
11227         // struct LDKMessageSendEvent MessageSendEvent_send_tx_complete(struct LDKPublicKey node_id, struct LDKTxComplete msg);
11228         public static native long MessageSendEvent_send_tx_complete(byte[] node_id, long msg);
11229         // struct LDKMessageSendEvent MessageSendEvent_send_tx_signatures(struct LDKPublicKey node_id, struct LDKTxSignatures msg);
11230         public static native long MessageSendEvent_send_tx_signatures(byte[] node_id, long msg);
11231         // struct LDKMessageSendEvent MessageSendEvent_send_tx_init_rbf(struct LDKPublicKey node_id, struct LDKTxInitRbf msg);
11232         public static native long MessageSendEvent_send_tx_init_rbf(byte[] node_id, long msg);
11233         // struct LDKMessageSendEvent MessageSendEvent_send_tx_ack_rbf(struct LDKPublicKey node_id, struct LDKTxAckRbf msg);
11234         public static native long MessageSendEvent_send_tx_ack_rbf(byte[] node_id, long msg);
11235         // struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAddInput msg);
11236         public static native long MessageSendEvent_send_tx_abort(byte[] node_id, long msg);
11237         // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
11238         public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
11239         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
11240         public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
11241         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
11242         public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
11243         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
11244         public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
11245         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
11246         public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
11247         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
11248         public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
11249         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
11250         public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
11251         // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
11252         public static native long MessageSendEvent_send_channel_announcement(byte[] node_id, long msg, long update_msg);
11253         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
11254         public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
11255         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
11256         public static native long MessageSendEvent_broadcast_channel_update(long msg);
11257         // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
11258         public static native long MessageSendEvent_broadcast_node_announcement(long msg);
11259         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
11260         public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
11261         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
11262         public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
11263         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
11264         public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
11265         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
11266         public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
11267         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
11268         public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
11269         // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
11270         public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
11271         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
11272         public static native void MessageSendEventsProvider_free(long this_ptr);
11273         // void OnionMessageProvider_free(struct LDKOnionMessageProvider this_ptr);
11274         public static native void OnionMessageProvider_free(long this_ptr);
11275         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
11276         public static native void EventsProvider_free(long this_ptr);
11277         // void EventHandler_free(struct LDKEventHandler this_ptr);
11278         public static native void EventHandler_free(long this_ptr);
11279         // void ChannelDerivationParameters_free(struct LDKChannelDerivationParameters this_obj);
11280         public static native void ChannelDerivationParameters_free(long this_obj);
11281         // uint64_t ChannelDerivationParameters_get_value_satoshis(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
11282         public static native long ChannelDerivationParameters_get_value_satoshis(long this_ptr);
11283         // void ChannelDerivationParameters_set_value_satoshis(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, uint64_t val);
11284         public static native void ChannelDerivationParameters_set_value_satoshis(long this_ptr, long val);
11285         // const uint8_t (*ChannelDerivationParameters_get_keys_id(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr))[32];
11286         public static native byte[] ChannelDerivationParameters_get_keys_id(long this_ptr);
11287         // void ChannelDerivationParameters_set_keys_id(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11288         public static native void ChannelDerivationParameters_set_keys_id(long this_ptr, byte[] val);
11289         // struct LDKChannelTransactionParameters ChannelDerivationParameters_get_transaction_parameters(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
11290         public static native long ChannelDerivationParameters_get_transaction_parameters(long this_ptr);
11291         // void ChannelDerivationParameters_set_transaction_parameters(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
11292         public static native void ChannelDerivationParameters_set_transaction_parameters(long this_ptr, long val);
11293         // MUST_USE_RES struct LDKChannelDerivationParameters ChannelDerivationParameters_new(uint64_t value_satoshis_arg, struct LDKThirtyTwoBytes keys_id_arg, struct LDKChannelTransactionParameters transaction_parameters_arg);
11294         public static native long ChannelDerivationParameters_new(long value_satoshis_arg, byte[] keys_id_arg, long transaction_parameters_arg);
11295         // uint64_t ChannelDerivationParameters_clone_ptr(LDKChannelDerivationParameters *NONNULL_PTR arg);
11296         public static native long ChannelDerivationParameters_clone_ptr(long arg);
11297         // struct LDKChannelDerivationParameters ChannelDerivationParameters_clone(const struct LDKChannelDerivationParameters *NONNULL_PTR orig);
11298         public static native long ChannelDerivationParameters_clone(long orig);
11299         // bool ChannelDerivationParameters_eq(const struct LDKChannelDerivationParameters *NONNULL_PTR a, const struct LDKChannelDerivationParameters *NONNULL_PTR b);
11300         public static native boolean ChannelDerivationParameters_eq(long a, long b);
11301         // void AnchorDescriptor_free(struct LDKAnchorDescriptor this_obj);
11302         public static native void AnchorDescriptor_free(long this_obj);
11303         // struct LDKChannelDerivationParameters AnchorDescriptor_get_channel_derivation_parameters(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
11304         public static native long AnchorDescriptor_get_channel_derivation_parameters(long this_ptr);
11305         // void AnchorDescriptor_set_channel_derivation_parameters(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
11306         public static native void AnchorDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
11307         // struct LDKOutPoint AnchorDescriptor_get_outpoint(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
11308         public static native long AnchorDescriptor_get_outpoint(long this_ptr);
11309         // void AnchorDescriptor_set_outpoint(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
11310         public static native void AnchorDescriptor_set_outpoint(long this_ptr, long val);
11311         // MUST_USE_RES struct LDKAnchorDescriptor AnchorDescriptor_new(struct LDKChannelDerivationParameters channel_derivation_parameters_arg, struct LDKOutPoint outpoint_arg);
11312         public static native long AnchorDescriptor_new(long channel_derivation_parameters_arg, long outpoint_arg);
11313         // uint64_t AnchorDescriptor_clone_ptr(LDKAnchorDescriptor *NONNULL_PTR arg);
11314         public static native long AnchorDescriptor_clone_ptr(long arg);
11315         // struct LDKAnchorDescriptor AnchorDescriptor_clone(const struct LDKAnchorDescriptor *NONNULL_PTR orig);
11316         public static native long AnchorDescriptor_clone(long orig);
11317         // bool AnchorDescriptor_eq(const struct LDKAnchorDescriptor *NONNULL_PTR a, const struct LDKAnchorDescriptor *NONNULL_PTR b);
11318         public static native boolean AnchorDescriptor_eq(long a, long b);
11319         // MUST_USE_RES struct LDKTxOut AnchorDescriptor_previous_utxo(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
11320         public static native long AnchorDescriptor_previous_utxo(long this_arg);
11321         // MUST_USE_RES struct LDKTxIn AnchorDescriptor_unsigned_tx_input(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
11322         public static native long AnchorDescriptor_unsigned_tx_input(long this_arg);
11323         // MUST_USE_RES struct LDKCVec_u8Z AnchorDescriptor_witness_script(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
11324         public static native byte[] AnchorDescriptor_witness_script(long this_arg);
11325         // MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKSignature signature);
11326         public static native byte[] AnchorDescriptor_tx_input_witness(long this_arg, byte[] signature);
11327         // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner AnchorDescriptor_derive_channel_signer(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
11328         public static native long AnchorDescriptor_derive_channel_signer(long this_arg, long signer_provider);
11329         // void HTLCDescriptor_free(struct LDKHTLCDescriptor this_obj);
11330         public static native void HTLCDescriptor_free(long this_obj);
11331         // struct LDKChannelDerivationParameters HTLCDescriptor_get_channel_derivation_parameters(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11332         public static native long HTLCDescriptor_get_channel_derivation_parameters(long this_ptr);
11333         // void HTLCDescriptor_set_channel_derivation_parameters(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
11334         public static native void HTLCDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
11335         // uint64_t HTLCDescriptor_get_per_commitment_number(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11336         public static native long HTLCDescriptor_get_per_commitment_number(long this_ptr);
11337         // void HTLCDescriptor_set_per_commitment_number(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint64_t val);
11338         public static native void HTLCDescriptor_set_per_commitment_number(long this_ptr, long val);
11339         // struct LDKPublicKey HTLCDescriptor_get_per_commitment_point(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11340         public static native byte[] HTLCDescriptor_get_per_commitment_point(long this_ptr);
11341         // void HTLCDescriptor_set_per_commitment_point(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11342         public static native void HTLCDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
11343         // struct LDKHTLCOutputInCommitment HTLCDescriptor_get_htlc(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11344         public static native long HTLCDescriptor_get_htlc(long this_ptr);
11345         // void HTLCDescriptor_set_htlc(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKHTLCOutputInCommitment val);
11346         public static native void HTLCDescriptor_set_htlc(long this_ptr, long val);
11347         // struct LDKCOption_PaymentPreimageZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11348         public static native long HTLCDescriptor_get_preimage(long this_ptr);
11349         // void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_PaymentPreimageZ val);
11350         public static native void HTLCDescriptor_set_preimage(long this_ptr, long val);
11351         // struct LDKSignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
11352         public static native byte[] HTLCDescriptor_get_counterparty_sig(long this_ptr);
11353         // void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKSignature val);
11354         public static native void HTLCDescriptor_set_counterparty_sig(long this_ptr, byte[] val);
11355         // uint64_t HTLCDescriptor_clone_ptr(LDKHTLCDescriptor *NONNULL_PTR arg);
11356         public static native long HTLCDescriptor_clone_ptr(long arg);
11357         // struct LDKHTLCDescriptor HTLCDescriptor_clone(const struct LDKHTLCDescriptor *NONNULL_PTR orig);
11358         public static native long HTLCDescriptor_clone(long orig);
11359         // bool HTLCDescriptor_eq(const struct LDKHTLCDescriptor *NONNULL_PTR a, const struct LDKHTLCDescriptor *NONNULL_PTR b);
11360         public static native boolean HTLCDescriptor_eq(long a, long b);
11361         // MUST_USE_RES struct LDKOutPoint HTLCDescriptor_outpoint(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11362         public static native long HTLCDescriptor_outpoint(long this_arg);
11363         // MUST_USE_RES struct LDKTxOut HTLCDescriptor_previous_utxo(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11364         public static native long HTLCDescriptor_previous_utxo(long this_arg);
11365         // MUST_USE_RES struct LDKTxIn HTLCDescriptor_unsigned_tx_input(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11366         public static native long HTLCDescriptor_unsigned_tx_input(long this_arg);
11367         // MUST_USE_RES struct LDKTxOut HTLCDescriptor_tx_output(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11368         public static native long HTLCDescriptor_tx_output(long this_arg);
11369         // MUST_USE_RES struct LDKCVec_u8Z HTLCDescriptor_witness_script(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
11370         public static native byte[] HTLCDescriptor_witness_script(long this_arg);
11371         // MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKSignature signature, struct LDKu8slice witness_script);
11372         public static native byte[] HTLCDescriptor_tx_input_witness(long this_arg, byte[] signature, byte[] witness_script);
11373         // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner HTLCDescriptor_derive_channel_signer(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
11374         public static native long HTLCDescriptor_derive_channel_signer(long this_arg, long signer_provider);
11375         // void BumpTransactionEvent_free(struct LDKBumpTransactionEvent this_ptr);
11376         public static native void BumpTransactionEvent_free(long this_ptr);
11377         // uint64_t BumpTransactionEvent_clone_ptr(LDKBumpTransactionEvent *NONNULL_PTR arg);
11378         public static native long BumpTransactionEvent_clone_ptr(long arg);
11379         // struct LDKBumpTransactionEvent BumpTransactionEvent_clone(const struct LDKBumpTransactionEvent *NONNULL_PTR orig);
11380         public static native long BumpTransactionEvent_clone(long orig);
11381         // 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);
11382         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);
11383         // 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);
11384         public static native long BumpTransactionEvent_htlcresolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, long[] htlc_descriptors, int tx_lock_time);
11385         // bool BumpTransactionEvent_eq(const struct LDKBumpTransactionEvent *NONNULL_PTR a, const struct LDKBumpTransactionEvent *NONNULL_PTR b);
11386         public static native boolean BumpTransactionEvent_eq(long a, long b);
11387         // void Input_free(struct LDKInput this_obj);
11388         public static native void Input_free(long this_obj);
11389         // struct LDKOutPoint Input_get_outpoint(const struct LDKInput *NONNULL_PTR this_ptr);
11390         public static native long Input_get_outpoint(long this_ptr);
11391         // void Input_set_outpoint(struct LDKInput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
11392         public static native void Input_set_outpoint(long this_ptr, long val);
11393         // struct LDKTxOut Input_get_previous_utxo(const struct LDKInput *NONNULL_PTR this_ptr);
11394         public static native long Input_get_previous_utxo(long this_ptr);
11395         // void Input_set_previous_utxo(struct LDKInput *NONNULL_PTR this_ptr, struct LDKTxOut val);
11396         public static native void Input_set_previous_utxo(long this_ptr, long val);
11397         // uint64_t Input_get_satisfaction_weight(const struct LDKInput *NONNULL_PTR this_ptr);
11398         public static native long Input_get_satisfaction_weight(long this_ptr);
11399         // void Input_set_satisfaction_weight(struct LDKInput *NONNULL_PTR this_ptr, uint64_t val);
11400         public static native void Input_set_satisfaction_weight(long this_ptr, long val);
11401         // MUST_USE_RES struct LDKInput Input_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut previous_utxo_arg, uint64_t satisfaction_weight_arg);
11402         public static native long Input_new(long outpoint_arg, long previous_utxo_arg, long satisfaction_weight_arg);
11403         // uint64_t Input_clone_ptr(LDKInput *NONNULL_PTR arg);
11404         public static native long Input_clone_ptr(long arg);
11405         // struct LDKInput Input_clone(const struct LDKInput *NONNULL_PTR orig);
11406         public static native long Input_clone(long orig);
11407         // uint64_t Input_hash(const struct LDKInput *NONNULL_PTR o);
11408         public static native long Input_hash(long o);
11409         // bool Input_eq(const struct LDKInput *NONNULL_PTR a, const struct LDKInput *NONNULL_PTR b);
11410         public static native boolean Input_eq(long a, long b);
11411         // void Utxo_free(struct LDKUtxo this_obj);
11412         public static native void Utxo_free(long this_obj);
11413         // struct LDKOutPoint Utxo_get_outpoint(const struct LDKUtxo *NONNULL_PTR this_ptr);
11414         public static native long Utxo_get_outpoint(long this_ptr);
11415         // void Utxo_set_outpoint(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKOutPoint val);
11416         public static native void Utxo_set_outpoint(long this_ptr, long val);
11417         // struct LDKTxOut Utxo_get_output(const struct LDKUtxo *NONNULL_PTR this_ptr);
11418         public static native long Utxo_get_output(long this_ptr);
11419         // void Utxo_set_output(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKTxOut val);
11420         public static native void Utxo_set_output(long this_ptr, long val);
11421         // uint64_t Utxo_get_satisfaction_weight(const struct LDKUtxo *NONNULL_PTR this_ptr);
11422         public static native long Utxo_get_satisfaction_weight(long this_ptr);
11423         // void Utxo_set_satisfaction_weight(struct LDKUtxo *NONNULL_PTR this_ptr, uint64_t val);
11424         public static native void Utxo_set_satisfaction_weight(long this_ptr, long val);
11425         // MUST_USE_RES struct LDKUtxo Utxo_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, uint64_t satisfaction_weight_arg);
11426         public static native long Utxo_new(long outpoint_arg, long output_arg, long satisfaction_weight_arg);
11427         // uint64_t Utxo_clone_ptr(LDKUtxo *NONNULL_PTR arg);
11428         public static native long Utxo_clone_ptr(long arg);
11429         // struct LDKUtxo Utxo_clone(const struct LDKUtxo *NONNULL_PTR orig);
11430         public static native long Utxo_clone(long orig);
11431         // uint64_t Utxo_hash(const struct LDKUtxo *NONNULL_PTR o);
11432         public static native long Utxo_hash(long o);
11433         // bool Utxo_eq(const struct LDKUtxo *NONNULL_PTR a, const struct LDKUtxo *NONNULL_PTR b);
11434         public static native boolean Utxo_eq(long a, long b);
11435         // MUST_USE_RES struct LDKUtxo Utxo_new_p2pkh(struct LDKOutPoint outpoint, uint64_t value, const uint8_t (*pubkey_hash)[20]);
11436         public static native long Utxo_new_p2pkh(long outpoint, long value, byte[] pubkey_hash);
11437         // void CoinSelection_free(struct LDKCoinSelection this_obj);
11438         public static native void CoinSelection_free(long this_obj);
11439         // struct LDKCVec_UtxoZ CoinSelection_get_confirmed_utxos(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
11440         public static native long[] CoinSelection_get_confirmed_utxos(long this_ptr);
11441         // void CoinSelection_set_confirmed_utxos(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCVec_UtxoZ val);
11442         public static native void CoinSelection_set_confirmed_utxos(long this_ptr, long[] val);
11443         // struct LDKCOption_TxOutZ CoinSelection_get_change_output(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
11444         public static native long CoinSelection_get_change_output(long this_ptr);
11445         // void CoinSelection_set_change_output(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCOption_TxOutZ val);
11446         public static native void CoinSelection_set_change_output(long this_ptr, long val);
11447         // MUST_USE_RES struct LDKCoinSelection CoinSelection_new(struct LDKCVec_UtxoZ confirmed_utxos_arg, struct LDKCOption_TxOutZ change_output_arg);
11448         public static native long CoinSelection_new(long[] confirmed_utxos_arg, long change_output_arg);
11449         // uint64_t CoinSelection_clone_ptr(LDKCoinSelection *NONNULL_PTR arg);
11450         public static native long CoinSelection_clone_ptr(long arg);
11451         // struct LDKCoinSelection CoinSelection_clone(const struct LDKCoinSelection *NONNULL_PTR orig);
11452         public static native long CoinSelection_clone(long orig);
11453         // void CoinSelectionSource_free(struct LDKCoinSelectionSource this_ptr);
11454         public static native void CoinSelectionSource_free(long this_ptr);
11455         // void WalletSource_free(struct LDKWalletSource this_ptr);
11456         public static native void WalletSource_free(long this_ptr);
11457         // void Wallet_free(struct LDKWallet this_obj);
11458         public static native void Wallet_free(long this_obj);
11459         // MUST_USE_RES struct LDKWallet Wallet_new(struct LDKWalletSource source, struct LDKLogger logger);
11460         public static native long Wallet_new(long source, long logger);
11461         // struct LDKCoinSelectionSource Wallet_as_CoinSelectionSource(const struct LDKWallet *NONNULL_PTR this_arg);
11462         public static native long Wallet_as_CoinSelectionSource(long this_arg);
11463         // void BumpTransactionEventHandler_free(struct LDKBumpTransactionEventHandler this_obj);
11464         public static native void BumpTransactionEventHandler_free(long this_obj);
11465         // MUST_USE_RES struct LDKBumpTransactionEventHandler BumpTransactionEventHandler_new(struct LDKBroadcasterInterface broadcaster, struct LDKCoinSelectionSource utxo_source, struct LDKSignerProvider signer_provider, struct LDKLogger logger);
11466         public static native long BumpTransactionEventHandler_new(long broadcaster, long utxo_source, long signer_provider, long logger);
11467         // void BumpTransactionEventHandler_handle_event(const struct LDKBumpTransactionEventHandler *NONNULL_PTR this_arg, const struct LDKBumpTransactionEvent *NONNULL_PTR event);
11468         public static native void BumpTransactionEventHandler_handle_event(long this_arg, long event);
11469         // void FilesystemPersister_free(struct LDKFilesystemPersister this_obj);
11470         public static native void FilesystemPersister_free(long this_obj);
11471         // MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data);
11472         public static native long FilesystemPersister_new(String path_to_channel_data);
11473         // MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
11474         public static native String FilesystemPersister_get_data_dir(long this_arg);
11475         // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKEntropySource entropy_source, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
11476         public static native long FilesystemPersister_read_channelmonitors(long this_arg, long entropy_source, long signer_provider);
11477         // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
11478         public static native void BackgroundProcessor_free(long this_obj);
11479         // void GossipSync_free(struct LDKGossipSync this_ptr);
11480         public static native void GossipSync_free(long this_ptr);
11481         // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
11482         public static native long GossipSync_p2_p(long a);
11483         // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
11484         public static native long GossipSync_rapid(long a);
11485         // struct LDKGossipSync GossipSync_none(void);
11486         public static native long GossipSync_none();
11487         // 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);
11488         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);
11489         // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
11490         public static native long BackgroundProcessor_join(long this_arg);
11491         // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
11492         public static native long BackgroundProcessor_stop(long this_arg);
11493         // void Bolt11ParseError_free(struct LDKBolt11ParseError this_ptr);
11494         public static native void Bolt11ParseError_free(long this_ptr);
11495         // uint64_t Bolt11ParseError_clone_ptr(LDKBolt11ParseError *NONNULL_PTR arg);
11496         public static native long Bolt11ParseError_clone_ptr(long arg);
11497         // struct LDKBolt11ParseError Bolt11ParseError_clone(const struct LDKBolt11ParseError *NONNULL_PTR orig);
11498         public static native long Bolt11ParseError_clone(long orig);
11499         // struct LDKBolt11ParseError Bolt11ParseError_bech32_error(struct LDKBech32Error a);
11500         public static native long Bolt11ParseError_bech32_error(long a);
11501         // struct LDKBolt11ParseError Bolt11ParseError_parse_amount_error(struct LDKError a);
11502         public static native long Bolt11ParseError_parse_amount_error(int a);
11503         // struct LDKBolt11ParseError Bolt11ParseError_malformed_signature(enum LDKSecp256k1Error a);
11504         public static native long Bolt11ParseError_malformed_signature(Secp256k1Error a);
11505         // struct LDKBolt11ParseError Bolt11ParseError_bad_prefix(void);
11506         public static native long Bolt11ParseError_bad_prefix();
11507         // struct LDKBolt11ParseError Bolt11ParseError_unknown_currency(void);
11508         public static native long Bolt11ParseError_unknown_currency();
11509         // struct LDKBolt11ParseError Bolt11ParseError_unknown_si_prefix(void);
11510         public static native long Bolt11ParseError_unknown_si_prefix();
11511         // struct LDKBolt11ParseError Bolt11ParseError_malformed_hrp(void);
11512         public static native long Bolt11ParseError_malformed_hrp();
11513         // struct LDKBolt11ParseError Bolt11ParseError_too_short_data_part(void);
11514         public static native long Bolt11ParseError_too_short_data_part();
11515         // struct LDKBolt11ParseError Bolt11ParseError_unexpected_end_of_tagged_fields(void);
11516         public static native long Bolt11ParseError_unexpected_end_of_tagged_fields();
11517         // struct LDKBolt11ParseError Bolt11ParseError_description_decode_error(struct LDKError a);
11518         public static native long Bolt11ParseError_description_decode_error(int a);
11519         // struct LDKBolt11ParseError Bolt11ParseError_padding_error(void);
11520         public static native long Bolt11ParseError_padding_error();
11521         // struct LDKBolt11ParseError Bolt11ParseError_integer_overflow_error(void);
11522         public static native long Bolt11ParseError_integer_overflow_error();
11523         // struct LDKBolt11ParseError Bolt11ParseError_invalid_seg_wit_program_length(void);
11524         public static native long Bolt11ParseError_invalid_seg_wit_program_length();
11525         // struct LDKBolt11ParseError Bolt11ParseError_invalid_pub_key_hash_length(void);
11526         public static native long Bolt11ParseError_invalid_pub_key_hash_length();
11527         // struct LDKBolt11ParseError Bolt11ParseError_invalid_script_hash_length(void);
11528         public static native long Bolt11ParseError_invalid_script_hash_length();
11529         // struct LDKBolt11ParseError Bolt11ParseError_invalid_recovery_id(void);
11530         public static native long Bolt11ParseError_invalid_recovery_id();
11531         // struct LDKBolt11ParseError Bolt11ParseError_invalid_slice_length(struct LDKStr a);
11532         public static native long Bolt11ParseError_invalid_slice_length(String a);
11533         // struct LDKBolt11ParseError Bolt11ParseError_skip(void);
11534         public static native long Bolt11ParseError_skip();
11535         // bool Bolt11ParseError_eq(const struct LDKBolt11ParseError *NONNULL_PTR a, const struct LDKBolt11ParseError *NONNULL_PTR b);
11536         public static native boolean Bolt11ParseError_eq(long a, long b);
11537         // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
11538         public static native void ParseOrSemanticError_free(long this_ptr);
11539         // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
11540         public static native long ParseOrSemanticError_clone_ptr(long arg);
11541         // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
11542         public static native long ParseOrSemanticError_clone(long orig);
11543         // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKBolt11ParseError a);
11544         public static native long ParseOrSemanticError_parse_error(long a);
11545         // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKBolt11SemanticError a);
11546         public static native long ParseOrSemanticError_semantic_error(Bolt11SemanticError a);
11547         // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b);
11548         public static native boolean ParseOrSemanticError_eq(long a, long b);
11549         // void Bolt11Invoice_free(struct LDKBolt11Invoice this_obj);
11550         public static native void Bolt11Invoice_free(long this_obj);
11551         // bool Bolt11Invoice_eq(const struct LDKBolt11Invoice *NONNULL_PTR a, const struct LDKBolt11Invoice *NONNULL_PTR b);
11552         public static native boolean Bolt11Invoice_eq(long a, long b);
11553         // uint64_t Bolt11Invoice_clone_ptr(LDKBolt11Invoice *NONNULL_PTR arg);
11554         public static native long Bolt11Invoice_clone_ptr(long arg);
11555         // struct LDKBolt11Invoice Bolt11Invoice_clone(const struct LDKBolt11Invoice *NONNULL_PTR orig);
11556         public static native long Bolt11Invoice_clone(long orig);
11557         // uint64_t Bolt11Invoice_hash(const struct LDKBolt11Invoice *NONNULL_PTR o);
11558         public static native long Bolt11Invoice_hash(long o);
11559         // void SignedRawBolt11Invoice_free(struct LDKSignedRawBolt11Invoice this_obj);
11560         public static native void SignedRawBolt11Invoice_free(long this_obj);
11561         // bool SignedRawBolt11Invoice_eq(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR a, const struct LDKSignedRawBolt11Invoice *NONNULL_PTR b);
11562         public static native boolean SignedRawBolt11Invoice_eq(long a, long b);
11563         // uint64_t SignedRawBolt11Invoice_clone_ptr(LDKSignedRawBolt11Invoice *NONNULL_PTR arg);
11564         public static native long SignedRawBolt11Invoice_clone_ptr(long arg);
11565         // struct LDKSignedRawBolt11Invoice SignedRawBolt11Invoice_clone(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR orig);
11566         public static native long SignedRawBolt11Invoice_clone(long orig);
11567         // uint64_t SignedRawBolt11Invoice_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
11568         public static native long SignedRawBolt11Invoice_hash(long o);
11569         // void RawBolt11Invoice_free(struct LDKRawBolt11Invoice this_obj);
11570         public static native void RawBolt11Invoice_free(long this_obj);
11571         // struct LDKRawDataPart RawBolt11Invoice_get_data(const struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr);
11572         public static native long RawBolt11Invoice_get_data(long this_ptr);
11573         // void RawBolt11Invoice_set_data(struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
11574         public static native void RawBolt11Invoice_set_data(long this_ptr, long val);
11575         // bool RawBolt11Invoice_eq(const struct LDKRawBolt11Invoice *NONNULL_PTR a, const struct LDKRawBolt11Invoice *NONNULL_PTR b);
11576         public static native boolean RawBolt11Invoice_eq(long a, long b);
11577         // uint64_t RawBolt11Invoice_clone_ptr(LDKRawBolt11Invoice *NONNULL_PTR arg);
11578         public static native long RawBolt11Invoice_clone_ptr(long arg);
11579         // struct LDKRawBolt11Invoice RawBolt11Invoice_clone(const struct LDKRawBolt11Invoice *NONNULL_PTR orig);
11580         public static native long RawBolt11Invoice_clone(long orig);
11581         // uint64_t RawBolt11Invoice_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR o);
11582         public static native long RawBolt11Invoice_hash(long o);
11583         // void RawDataPart_free(struct LDKRawDataPart this_obj);
11584         public static native void RawDataPart_free(long this_obj);
11585         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
11586         public static native long RawDataPart_get_timestamp(long this_ptr);
11587         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
11588         public static native void RawDataPart_set_timestamp(long this_ptr, long val);
11589         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
11590         public static native boolean RawDataPart_eq(long a, long b);
11591         // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
11592         public static native long RawDataPart_clone_ptr(long arg);
11593         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
11594         public static native long RawDataPart_clone(long orig);
11595         // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
11596         public static native long RawDataPart_hash(long o);
11597         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
11598         public static native void PositiveTimestamp_free(long this_obj);
11599         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
11600         public static native boolean PositiveTimestamp_eq(long a, long b);
11601         // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
11602         public static native long PositiveTimestamp_clone_ptr(long arg);
11603         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
11604         public static native long PositiveTimestamp_clone(long orig);
11605         // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
11606         public static native long PositiveTimestamp_hash(long o);
11607         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
11608         public static native SiPrefix SiPrefix_clone(long orig);
11609         // enum LDKSiPrefix SiPrefix_milli(void);
11610         public static native SiPrefix SiPrefix_milli();
11611         // enum LDKSiPrefix SiPrefix_micro(void);
11612         public static native SiPrefix SiPrefix_micro();
11613         // enum LDKSiPrefix SiPrefix_nano(void);
11614         public static native SiPrefix SiPrefix_nano();
11615         // enum LDKSiPrefix SiPrefix_pico(void);
11616         public static native SiPrefix SiPrefix_pico();
11617         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
11618         public static native boolean SiPrefix_eq(long a, long b);
11619         // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
11620         public static native long SiPrefix_hash(long o);
11621         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
11622         public static native long SiPrefix_multiplier(long this_arg);
11623         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
11624         public static native Currency Currency_clone(long orig);
11625         // enum LDKCurrency Currency_bitcoin(void);
11626         public static native Currency Currency_bitcoin();
11627         // enum LDKCurrency Currency_bitcoin_testnet(void);
11628         public static native Currency Currency_bitcoin_testnet();
11629         // enum LDKCurrency Currency_regtest(void);
11630         public static native Currency Currency_regtest();
11631         // enum LDKCurrency Currency_simnet(void);
11632         public static native Currency Currency_simnet();
11633         // enum LDKCurrency Currency_signet(void);
11634         public static native Currency Currency_signet();
11635         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
11636         public static native long Currency_hash(long o);
11637         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
11638         public static native boolean Currency_eq(long a, long b);
11639         // void Sha256_free(struct LDKSha256 this_obj);
11640         public static native void Sha256_free(long this_obj);
11641         // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
11642         public static native long Sha256_clone_ptr(long arg);
11643         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
11644         public static native long Sha256_clone(long orig);
11645         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
11646         public static native long Sha256_hash(long o);
11647         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
11648         public static native boolean Sha256_eq(long a, long b);
11649         // MUST_USE_RES struct LDKSha256 Sha256_from_bytes(const uint8_t (*bytes)[32]);
11650         public static native long Sha256_from_bytes(byte[] bytes);
11651         // void Description_free(struct LDKDescription this_obj);
11652         public static native void Description_free(long this_obj);
11653         // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
11654         public static native long Description_clone_ptr(long arg);
11655         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
11656         public static native long Description_clone(long orig);
11657         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
11658         public static native long Description_hash(long o);
11659         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
11660         public static native boolean Description_eq(long a, long b);
11661         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
11662         public static native void PayeePubKey_free(long this_obj);
11663         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
11664         public static native byte[] PayeePubKey_get_a(long this_ptr);
11665         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11666         public static native void PayeePubKey_set_a(long this_ptr, byte[] val);
11667         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
11668         public static native long PayeePubKey_new(byte[] a_arg);
11669         // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
11670         public static native long PayeePubKey_clone_ptr(long arg);
11671         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
11672         public static native long PayeePubKey_clone(long orig);
11673         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
11674         public static native long PayeePubKey_hash(long o);
11675         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
11676         public static native boolean PayeePubKey_eq(long a, long b);
11677         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
11678         public static native void ExpiryTime_free(long this_obj);
11679         // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
11680         public static native long ExpiryTime_clone_ptr(long arg);
11681         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
11682         public static native long ExpiryTime_clone(long orig);
11683         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
11684         public static native long ExpiryTime_hash(long o);
11685         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
11686         public static native boolean ExpiryTime_eq(long a, long b);
11687         // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj);
11688         public static native void MinFinalCltvExpiryDelta_free(long this_obj);
11689         // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr);
11690         public static native long MinFinalCltvExpiryDelta_get_a(long this_ptr);
11691         // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val);
11692         public static native void MinFinalCltvExpiryDelta_set_a(long this_ptr, long val);
11693         // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg);
11694         public static native long MinFinalCltvExpiryDelta_new(long a_arg);
11695         // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg);
11696         public static native long MinFinalCltvExpiryDelta_clone_ptr(long arg);
11697         // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig);
11698         public static native long MinFinalCltvExpiryDelta_clone(long orig);
11699         // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o);
11700         public static native long MinFinalCltvExpiryDelta_hash(long o);
11701         // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b);
11702         public static native boolean MinFinalCltvExpiryDelta_eq(long a, long b);
11703         // void Fallback_free(struct LDKFallback this_ptr);
11704         public static native void Fallback_free(long this_ptr);
11705         // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
11706         public static native long Fallback_clone_ptr(long arg);
11707         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
11708         public static native long Fallback_clone(long orig);
11709         // struct LDKFallback Fallback_seg_wit_program(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
11710         public static native long Fallback_seg_wit_program(byte version, byte[] program);
11711         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
11712         public static native long Fallback_pub_key_hash(byte[] a);
11713         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
11714         public static native long Fallback_script_hash(byte[] a);
11715         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
11716         public static native long Fallback_hash(long o);
11717         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
11718         public static native boolean Fallback_eq(long a, long b);
11719         // void Bolt11InvoiceSignature_free(struct LDKBolt11InvoiceSignature this_obj);
11720         public static native void Bolt11InvoiceSignature_free(long this_obj);
11721         // uint64_t Bolt11InvoiceSignature_clone_ptr(LDKBolt11InvoiceSignature *NONNULL_PTR arg);
11722         public static native long Bolt11InvoiceSignature_clone_ptr(long arg);
11723         // struct LDKBolt11InvoiceSignature Bolt11InvoiceSignature_clone(const struct LDKBolt11InvoiceSignature *NONNULL_PTR orig);
11724         public static native long Bolt11InvoiceSignature_clone(long orig);
11725         // uint64_t Bolt11InvoiceSignature_hash(const struct LDKBolt11InvoiceSignature *NONNULL_PTR o);
11726         public static native long Bolt11InvoiceSignature_hash(long o);
11727         // bool Bolt11InvoiceSignature_eq(const struct LDKBolt11InvoiceSignature *NONNULL_PTR a, const struct LDKBolt11InvoiceSignature *NONNULL_PTR b);
11728         public static native boolean Bolt11InvoiceSignature_eq(long a, long b);
11729         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
11730         public static native void PrivateRoute_free(long this_obj);
11731         // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
11732         public static native long PrivateRoute_clone_ptr(long arg);
11733         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
11734         public static native long PrivateRoute_clone(long orig);
11735         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
11736         public static native long PrivateRoute_hash(long o);
11737         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
11738         public static native boolean PrivateRoute_eq(long a, long b);
11739         // MUST_USE_RES struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ SignedRawBolt11Invoice_into_parts(struct LDKSignedRawBolt11Invoice this_arg);
11740         public static native long SignedRawBolt11Invoice_into_parts(long this_arg);
11741         // MUST_USE_RES struct LDKRawBolt11Invoice SignedRawBolt11Invoice_raw_invoice(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
11742         public static native long SignedRawBolt11Invoice_raw_invoice(long this_arg);
11743         // MUST_USE_RES const uint8_t (*SignedRawBolt11Invoice_signable_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg))[32];
11744         public static native byte[] SignedRawBolt11Invoice_signable_hash(long this_arg);
11745         // MUST_USE_RES struct LDKBolt11InvoiceSignature SignedRawBolt11Invoice_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
11746         public static native long SignedRawBolt11Invoice_signature(long this_arg);
11747         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
11748         public static native long SignedRawBolt11Invoice_recover_payee_pub_key(long this_arg);
11749         // MUST_USE_RES bool SignedRawBolt11Invoice_check_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
11750         public static native boolean SignedRawBolt11Invoice_check_signature(long this_arg);
11751         // MUST_USE_RES struct LDKThirtyTwoBytes RawBolt11Invoice_signable_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11752         public static native byte[] RawBolt11Invoice_signable_hash(long this_arg);
11753         // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_payment_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11754         public static native long RawBolt11Invoice_payment_hash(long this_arg);
11755         // MUST_USE_RES struct LDKDescription RawBolt11Invoice_description(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11756         public static native long RawBolt11Invoice_description(long this_arg);
11757         // MUST_USE_RES struct LDKPayeePubKey RawBolt11Invoice_payee_pub_key(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11758         public static native long RawBolt11Invoice_payee_pub_key(long this_arg);
11759         // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_description_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11760         public static native long RawBolt11Invoice_description_hash(long this_arg);
11761         // MUST_USE_RES struct LDKExpiryTime RawBolt11Invoice_expiry_time(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11762         public static native long RawBolt11Invoice_expiry_time(long this_arg);
11763         // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawBolt11Invoice_min_final_cltv_expiry_delta(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11764         public static native long RawBolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
11765         // MUST_USE_RES struct LDKCOption_PaymentSecretZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11766         public static native long RawBolt11Invoice_payment_secret(long this_arg);
11767         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawBolt11Invoice_payment_metadata(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11768         public static native long RawBolt11Invoice_payment_metadata(long this_arg);
11769         // MUST_USE_RES struct LDKBolt11InvoiceFeatures RawBolt11Invoice_features(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11770         public static native long RawBolt11Invoice_features(long this_arg);
11771         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawBolt11Invoice_private_routes(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11772         public static native long[] RawBolt11Invoice_private_routes(long this_arg);
11773         // MUST_USE_RES struct LDKCOption_u64Z RawBolt11Invoice_amount_pico_btc(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11774         public static native long RawBolt11Invoice_amount_pico_btc(long this_arg);
11775         // MUST_USE_RES enum LDKCurrency RawBolt11Invoice_currency(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
11776         public static native Currency RawBolt11Invoice_currency(long this_arg);
11777         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
11778         public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
11779         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
11780         public static native long PositiveTimestamp_from_system_time(long time);
11781         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
11782         public static native long PositiveTimestamp_from_duration_since_epoch(long duration);
11783         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
11784         public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
11785         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
11786         public static native long PositiveTimestamp_as_duration_since_epoch(long this_arg);
11787         // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
11788         public static native long PositiveTimestamp_as_time(long this_arg);
11789         // MUST_USE_RES struct LDKThirtyTwoBytes Bolt11Invoice_signable_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11790         public static native byte[] Bolt11Invoice_signable_hash(long this_arg);
11791         // MUST_USE_RES struct LDKSignedRawBolt11Invoice Bolt11Invoice_into_signed_raw(struct LDKBolt11Invoice this_arg);
11792         public static native long Bolt11Invoice_into_signed_raw(long this_arg);
11793         // MUST_USE_RES struct LDKCResult_NoneBolt11SemanticErrorZ Bolt11Invoice_check_signature(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11794         public static native long Bolt11Invoice_check_signature(long this_arg);
11795         // MUST_USE_RES struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ Bolt11Invoice_from_signed(struct LDKSignedRawBolt11Invoice signed_invoice);
11796         public static native long Bolt11Invoice_from_signed(long signed_invoice);
11797         // MUST_USE_RES uint64_t Bolt11Invoice_timestamp(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11798         public static native long Bolt11Invoice_timestamp(long this_arg);
11799         // MUST_USE_RES uint64_t Bolt11Invoice_duration_since_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11800         public static native long Bolt11Invoice_duration_since_epoch(long this_arg);
11801         // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
11802         public static native byte[] Bolt11Invoice_payment_hash(long this_arg);
11803         // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11804         public static native byte[] Bolt11Invoice_payee_pub_key(long this_arg);
11805         // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_secret(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
11806         public static native byte[] Bolt11Invoice_payment_secret(long this_arg);
11807         // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt11Invoice_payment_metadata(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11808         public static native long Bolt11Invoice_payment_metadata(long this_arg);
11809         // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11Invoice_features(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11810         public static native long Bolt11Invoice_features(long this_arg);
11811         // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_recover_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11812         public static native byte[] Bolt11Invoice_recover_payee_pub_key(long this_arg);
11813         // MUST_USE_RES struct LDKCOption_DurationZ Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11814         public static native long Bolt11Invoice_expires_at(long this_arg);
11815         // MUST_USE_RES uint64_t Bolt11Invoice_expiry_time(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11816         public static native long Bolt11Invoice_expiry_time(long this_arg);
11817         // MUST_USE_RES bool Bolt11Invoice_is_expired(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11818         public static native boolean Bolt11Invoice_is_expired(long this_arg);
11819         // MUST_USE_RES uint64_t Bolt11Invoice_duration_until_expiry(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11820         public static native long Bolt11Invoice_duration_until_expiry(long this_arg);
11821         // MUST_USE_RES uint64_t Bolt11Invoice_expiration_remaining_from_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t time);
11822         public static native long Bolt11Invoice_expiration_remaining_from_epoch(long this_arg, long time);
11823         // MUST_USE_RES bool Bolt11Invoice_would_expire(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t at_time);
11824         public static native boolean Bolt11Invoice_would_expire(long this_arg, long at_time);
11825         // MUST_USE_RES uint64_t Bolt11Invoice_min_final_cltv_expiry_delta(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11826         public static native long Bolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
11827         // MUST_USE_RES struct LDKCVec_AddressZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11828         public static native String[] Bolt11Invoice_fallback_addresses(long this_arg);
11829         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Bolt11Invoice_private_routes(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11830         public static native long[] Bolt11Invoice_private_routes(long this_arg);
11831         // MUST_USE_RES struct LDKCVec_RouteHintZ Bolt11Invoice_route_hints(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11832         public static native long[] Bolt11Invoice_route_hints(long this_arg);
11833         // MUST_USE_RES enum LDKCurrency Bolt11Invoice_currency(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11834         public static native Currency Bolt11Invoice_currency(long this_arg);
11835         // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_amount_milli_satoshis(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
11836         public static native long Bolt11Invoice_amount_milli_satoshis(long this_arg);
11837         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
11838         public static native long Description_new(String description);
11839         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
11840         public static native String Description_into_inner(long this_arg);
11841         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
11842         public static native long ExpiryTime_from_seconds(long seconds);
11843         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
11844         public static native long ExpiryTime_from_duration(long duration);
11845         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
11846         public static native long ExpiryTime_as_seconds(long this_arg);
11847         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
11848         public static native long ExpiryTime_as_duration(long this_arg);
11849         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
11850         public static native long PrivateRoute_new(long hops);
11851         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
11852         public static native long PrivateRoute_into_inner(long this_arg);
11853         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
11854         public static native CreationError CreationError_clone(long orig);
11855         // enum LDKCreationError CreationError_description_too_long(void);
11856         public static native CreationError CreationError_description_too_long();
11857         // enum LDKCreationError CreationError_route_too_long(void);
11858         public static native CreationError CreationError_route_too_long();
11859         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
11860         public static native CreationError CreationError_timestamp_out_of_bounds();
11861         // enum LDKCreationError CreationError_invalid_amount(void);
11862         public static native CreationError CreationError_invalid_amount();
11863         // enum LDKCreationError CreationError_missing_route_hints(void);
11864         public static native CreationError CreationError_missing_route_hints();
11865         // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void);
11866         public static native CreationError CreationError_min_final_cltv_expiry_delta_too_short();
11867         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
11868         public static native boolean CreationError_eq(long a, long b);
11869         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
11870         public static native String CreationError_to_str(long o);
11871         // enum LDKBolt11SemanticError Bolt11SemanticError_clone(const enum LDKBolt11SemanticError *NONNULL_PTR orig);
11872         public static native Bolt11SemanticError Bolt11SemanticError_clone(long orig);
11873         // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_hash(void);
11874         public static native Bolt11SemanticError Bolt11SemanticError_no_payment_hash();
11875         // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_hashes(void);
11876         public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_hashes();
11877         // enum LDKBolt11SemanticError Bolt11SemanticError_no_description(void);
11878         public static native Bolt11SemanticError Bolt11SemanticError_no_description();
11879         // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_descriptions(void);
11880         public static native Bolt11SemanticError Bolt11SemanticError_multiple_descriptions();
11881         // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_secret(void);
11882         public static native Bolt11SemanticError Bolt11SemanticError_no_payment_secret();
11883         // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_secrets(void);
11884         public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_secrets();
11885         // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_features(void);
11886         public static native Bolt11SemanticError Bolt11SemanticError_invalid_features();
11887         // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_recovery_id(void);
11888         public static native Bolt11SemanticError Bolt11SemanticError_invalid_recovery_id();
11889         // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_signature(void);
11890         public static native Bolt11SemanticError Bolt11SemanticError_invalid_signature();
11891         // enum LDKBolt11SemanticError Bolt11SemanticError_imprecise_amount(void);
11892         public static native Bolt11SemanticError Bolt11SemanticError_imprecise_amount();
11893         // bool Bolt11SemanticError_eq(const enum LDKBolt11SemanticError *NONNULL_PTR a, const enum LDKBolt11SemanticError *NONNULL_PTR b);
11894         public static native boolean Bolt11SemanticError_eq(long a, long b);
11895         // struct LDKStr Bolt11SemanticError_to_str(const enum LDKBolt11SemanticError *NONNULL_PTR o);
11896         public static native String Bolt11SemanticError_to_str(long o);
11897         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
11898         public static native void SignOrCreationError_free(long this_ptr);
11899         // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
11900         public static native long SignOrCreationError_clone_ptr(long arg);
11901         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
11902         public static native long SignOrCreationError_clone(long orig);
11903         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
11904         public static native long SignOrCreationError_sign_error();
11905         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
11906         public static native long SignOrCreationError_creation_error(CreationError a);
11907         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
11908         public static native boolean SignOrCreationError_eq(long a, long b);
11909         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
11910         public static native String SignOrCreationError_to_str(long o);
11911         // struct LDKCResult_PaymentIdPaymentErrorZ pay_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
11912         public static native long pay_invoice(long invoice, long retry_strategy, long channelmanager);
11913         // 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);
11914         public static native long pay_invoice_with_id(long invoice, byte[] payment_id, long retry_strategy, long channelmanager);
11915         // struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
11916         public static native long pay_zero_value_invoice(long invoice, long amount_msats, long retry_strategy, long channelmanager);
11917         // 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);
11918         public static native long pay_zero_value_invoice_with_id(long invoice, long amount_msats, byte[] payment_id, long retry_strategy, long channelmanager);
11919         // void PaymentError_free(struct LDKPaymentError this_ptr);
11920         public static native void PaymentError_free(long this_ptr);
11921         // uint64_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
11922         public static native long PaymentError_clone_ptr(long arg);
11923         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
11924         public static native long PaymentError_clone(long orig);
11925         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
11926         public static native long PaymentError_invoice(String a);
11927         // struct LDKPaymentError PaymentError_sending(enum LDKRetryableSendFailure a);
11928         public static native long PaymentError_sending(RetryableSendFailure a);
11929         // bool PaymentError_eq(const struct LDKPaymentError *NONNULL_PTR a, const struct LDKPaymentError *NONNULL_PTR b);
11930         public static native boolean PaymentError_eq(long a, long b);
11931         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_PaymentHashZ 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);
11932         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);
11933         // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_PaymentHashZ 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);
11934         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);
11935         // 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);
11936         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);
11937         // 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);
11938         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);
11939         // 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);
11940         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);
11941         // 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);
11942         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);
11943         // 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);
11944         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);
11945         // struct LDKCResult_SiPrefixBolt11ParseErrorZ SiPrefix_from_str(struct LDKStr s);
11946         public static native long SiPrefix_from_str(String s);
11947         // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ Bolt11Invoice_from_str(struct LDKStr s);
11948         public static native long Bolt11Invoice_from_str(String s);
11949         // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ SignedRawBolt11Invoice_from_str(struct LDKStr s);
11950         public static native long SignedRawBolt11Invoice_from_str(String s);
11951         // struct LDKStr Bolt11ParseError_to_str(const struct LDKBolt11ParseError *NONNULL_PTR o);
11952         public static native String Bolt11ParseError_to_str(long o);
11953         // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
11954         public static native String ParseOrSemanticError_to_str(long o);
11955         // struct LDKStr Bolt11Invoice_to_str(const struct LDKBolt11Invoice *NONNULL_PTR o);
11956         public static native String Bolt11Invoice_to_str(long o);
11957         // struct LDKStr SignedRawBolt11Invoice_to_str(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
11958         public static native String SignedRawBolt11Invoice_to_str(long o);
11959         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
11960         public static native String Currency_to_str(long o);
11961         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
11962         public static native String SiPrefix_to_str(long o);
11963         // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
11964         public static native void RapidGossipSync_free(long this_obj);
11965         // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
11966         public static native long RapidGossipSync_new(long network_graph, long logger);
11967         // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_sync_network_graph_with_file_path(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKStr sync_path);
11968         public static native long RapidGossipSync_sync_network_graph_with_file_path(long this_arg, String sync_path);
11969         // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
11970         public static native long RapidGossipSync_update_network_graph(long this_arg, byte[] update_data);
11971         // 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);
11972         public static native long RapidGossipSync_update_network_graph_no_std(long this_arg, byte[] update_data, long current_time_unix);
11973         // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
11974         public static native boolean RapidGossipSync_is_initial_sync_complete(long this_arg);
11975         // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
11976         public static native void GraphSyncError_free(long this_ptr);
11977         // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
11978         public static native long GraphSyncError_clone_ptr(long arg);
11979         // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
11980         public static native long GraphSyncError_clone(long orig);
11981         // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
11982         public static native long GraphSyncError_decode_error(long a);
11983         // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
11984         public static native long GraphSyncError_lightning_error(long a);
11985 }