2 import org.ldk.enums.*;
3 import org.ldk.impl.version;
5 import java.io.InputStream;
6 import java.io.IOException;
7 import java.nio.file.Files;
8 import java.nio.file.Path;
9 import java.nio.file.StandardCopyOption;
11 public class bindings {
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);
34 init(java.lang.Enum.class);
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());
41 public static void run_statics() { /* Useful to force the statics to run */ }
42 static native void init(java.lang.Class c);
43 static native void init_class_cache();
44 static native String get_lib_version_string();
46 public static native String get_ldk_c_bindings_version();
47 public static native String get_ldk_version();
49 static { BlindedFailure.values(); /* Force enum statics to run */ }
50 static { Bolt11SemanticError.values(); /* Force enum statics to run */ }
51 static { Bolt12SemanticError.values(); /* Force enum statics to run */ }
52 static { COption_NoneZ.values(); /* Force enum statics to run */ }
53 static { ChannelMonitorUpdateStatus.values(); /* Force enum statics to run */ }
54 static { ChannelShutdownState.values(); /* Force enum statics to run */ }
55 static { ConfirmationTarget.values(); /* Force enum statics to run */ }
56 static { CreationError.values(); /* Force enum statics to run */ }
57 static { Currency.values(); /* Force enum statics to run */ }
58 static { Direction.values(); /* Force enum statics to run */ }
59 static { HTLCClaim.values(); /* Force enum statics to run */ }
60 static { IOError.values(); /* Force enum statics to run */ }
61 static { InboundHTLCStateDetails.values(); /* Force enum statics to run */ }
62 static { Level.values(); /* Force enum statics to run */ }
63 static { Network.values(); /* Force enum statics to run */ }
64 static { OutboundHTLCStateDetails.values(); /* Force enum statics to run */ }
65 static { PaymentFailureReason.values(); /* Force enum statics to run */ }
66 static { Recipient.values(); /* Force enum statics to run */ }
67 static { RetryableSendFailure.values(); /* Force enum statics to run */ }
68 static { Secp256k1Error.values(); /* Force enum statics to run */ }
69 static { ShortChannelIdError.values(); /* Force enum statics to run */ }
70 static { SiPrefix.values(); /* Force enum statics to run */ }
71 static { SocketAddressParseError.values(); /* Force enum statics to run */ }
72 static { UtxoLookupError.values(); /* Force enum statics to run */ }
73 // struct LDKThirtyTwoBytes BigEndianScalar_get_bytes (struct LDKBigEndianScalar* thing)
74 public static native byte[] BigEndianScalar_get_bytes(long thing);
75 // static void BigEndianScalar_free (struct LDKBigEndianScalar thing)
76 public static native void BigEndianScalar_free(long thing);
77 public static class LDKBech32Error {
78 private LDKBech32Error() {}
79 public final static class MissingSeparator extends LDKBech32Error {
80 MissingSeparator() { }
82 public final static class InvalidChecksum extends LDKBech32Error {
85 public final static class InvalidLength extends LDKBech32Error {
88 public final static class InvalidChar extends LDKBech32Error {
89 public int invalid_char;
90 InvalidChar(int invalid_char) { this.invalid_char = invalid_char; }
92 public final static class InvalidData extends LDKBech32Error {
93 public byte invalid_data;
94 InvalidData(byte invalid_data) { this.invalid_data = invalid_data; }
96 public final static class InvalidPadding extends LDKBech32Error {
99 public final static class MixedCase extends LDKBech32Error {
102 static native void init();
104 static { LDKBech32Error.init(); }
105 public static native LDKBech32Error LDKBech32Error_ref_from_ptr(long ptr);
106 // struct LDKRefundMaybeWithDerivedMetadataBuilder CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
107 public static native long CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(long owner);
108 // enum LDKBolt12SemanticError CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
109 public static native Bolt12SemanticError CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(long owner);
110 // struct LDKRefund CResult_RefundBolt12SemanticErrorZ_get_ok(LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR owner);
111 public static native long CResult_RefundBolt12SemanticErrorZ_get_ok(long owner);
112 // enum LDKBolt12SemanticError CResult_RefundBolt12SemanticErrorZ_get_err(LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR owner);
113 public static native Bolt12SemanticError CResult_RefundBolt12SemanticErrorZ_get_err(long owner);
114 public static class LDKCOption_u64Z {
115 private LDKCOption_u64Z() {}
116 public final static class Some extends LDKCOption_u64Z {
118 Some(long some) { this.some = some; }
120 public final static class None extends LDKCOption_u64Z {
123 static native void init();
125 static { LDKCOption_u64Z.init(); }
126 public static native LDKCOption_u64Z LDKCOption_u64Z_ref_from_ptr(long ptr);
127 // struct LDKRefund CResult_RefundBolt12ParseErrorZ_get_ok(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
128 public static native long CResult_RefundBolt12ParseErrorZ_get_ok(long owner);
129 // struct LDKBolt12ParseError CResult_RefundBolt12ParseErrorZ_get_err(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
130 public static native long CResult_RefundBolt12ParseErrorZ_get_err(long owner);
131 public static class LDKRetry {
132 private LDKRetry() {}
133 public final static class Attempts extends LDKRetry {
135 Attempts(int attempts) { this.attempts = attempts; }
137 public final static class Timeout extends LDKRetry {
139 Timeout(long timeout) { this.timeout = timeout; }
141 static native void init();
143 static { LDKRetry.init(); }
144 public static native LDKRetry LDKRetry_ref_from_ptr(long ptr);
145 public static class LDKDecodeError {
146 private LDKDecodeError() {}
147 public final static class UnknownVersion extends LDKDecodeError {
150 public final static class UnknownRequiredFeature extends LDKDecodeError {
151 UnknownRequiredFeature() { }
153 public final static class InvalidValue extends LDKDecodeError {
156 public final static class ShortRead extends LDKDecodeError {
159 public final static class BadLengthDescriptor extends LDKDecodeError {
160 BadLengthDescriptor() { }
162 public final static class Io extends LDKDecodeError {
163 public org.ldk.enums.IOError io;
164 Io(org.ldk.enums.IOError io) { this.io = io; }
166 public final static class UnsupportedCompression extends LDKDecodeError {
167 UnsupportedCompression() { }
169 public final static class DangerousValue extends LDKDecodeError {
172 static native void init();
174 static { LDKDecodeError.init(); }
175 public static native LDKDecodeError LDKDecodeError_ref_from_ptr(long ptr);
176 // struct LDKRetry CResult_RetryDecodeErrorZ_get_ok(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner);
177 public static native long CResult_RetryDecodeErrorZ_get_ok(long owner);
178 // struct LDKDecodeError CResult_RetryDecodeErrorZ_get_err(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner);
179 public static native long CResult_RetryDecodeErrorZ_get_err(long owner);
180 public static class LDKAPIError {
181 private LDKAPIError() {}
182 public final static class APIMisuseError extends LDKAPIError {
183 public java.lang.String err;
184 APIMisuseError(java.lang.String err) { this.err = err; }
186 public final static class FeeRateTooHigh extends LDKAPIError {
187 public java.lang.String err;
189 FeeRateTooHigh(java.lang.String err, int feerate) { this.err = err; this.feerate = feerate; }
191 public final static class InvalidRoute extends LDKAPIError {
192 public java.lang.String err;
193 InvalidRoute(java.lang.String err) { this.err = err; }
195 public final static class ChannelUnavailable extends LDKAPIError {
196 public java.lang.String err;
197 ChannelUnavailable(java.lang.String err) { this.err = err; }
199 public final static class MonitorUpdateInProgress extends LDKAPIError {
200 MonitorUpdateInProgress() { }
202 public final static class IncompatibleShutdownScript extends LDKAPIError {
204 IncompatibleShutdownScript(long script) { this.script = script; }
206 static native void init();
208 static { LDKAPIError.init(); }
209 public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
210 // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
211 public static native void CResult_NoneAPIErrorZ_get_ok(long owner);
212 // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
213 public static native long CResult_NoneAPIErrorZ_get_err(long owner);
214 public static class LDKCOption_ThirtyTwoBytesZ {
215 private LDKCOption_ThirtyTwoBytesZ() {}
216 public final static class Some extends LDKCOption_ThirtyTwoBytesZ {
218 Some(byte[] some) { this.some = some; }
220 public final static class None extends LDKCOption_ThirtyTwoBytesZ {
223 static native void init();
225 static { LDKCOption_ThirtyTwoBytesZ.init(); }
226 public static native LDKCOption_ThirtyTwoBytesZ LDKCOption_ThirtyTwoBytesZ_ref_from_ptr(long ptr);
227 public static class LDKCOption_CVec_u8ZZ {
228 private LDKCOption_CVec_u8ZZ() {}
229 public final static class Some extends LDKCOption_CVec_u8ZZ {
231 Some(byte[] some) { this.some = some; }
233 public final static class None extends LDKCOption_CVec_u8ZZ {
236 static native void init();
238 static { LDKCOption_CVec_u8ZZ.init(); }
239 public static native LDKCOption_CVec_u8ZZ LDKCOption_CVec_u8ZZ_ref_from_ptr(long ptr);
240 // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
241 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(long owner);
242 // struct LDKDecodeError CResult_RecipientOnionFieldsDecodeErrorZ_get_err(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
243 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_err(long owner);
244 // uint64_t C2Tuple_u64CVec_u8ZZ_get_a(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner);
245 public static native long C2Tuple_u64CVec_u8ZZ_get_a(long owner);
246 // struct LDKCVec_u8Z C2Tuple_u64CVec_u8ZZ_get_b(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner);
247 public static native byte[] C2Tuple_u64CVec_u8ZZ_get_b(long owner);
248 // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsNoneZ_get_ok(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner);
249 public static native long CResult_RecipientOnionFieldsNoneZ_get_ok(long owner);
250 // void CResult_RecipientOnionFieldsNoneZ_get_err(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner);
251 public static native void CResult_RecipientOnionFieldsNoneZ_get_err(long owner);
252 // struct LDKUnsignedBolt12Invoice CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_ok(LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner);
253 public static native long CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_ok(long owner);
254 // enum LDKBolt12SemanticError CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_err(LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner);
255 public static native Bolt12SemanticError CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_err(long owner);
256 // struct LDKBolt12Invoice CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_ok(LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner);
257 public static native long CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_ok(long owner);
258 // enum LDKBolt12SemanticError CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_err(LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner);
259 public static native Bolt12SemanticError CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_err(long owner);
260 // struct LDKSchnorrSignature CResult_SchnorrSignatureNoneZ_get_ok(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner);
261 public static native byte[] CResult_SchnorrSignatureNoneZ_get_ok(long owner);
262 // void CResult_SchnorrSignatureNoneZ_get_err(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner);
263 public static native void CResult_SchnorrSignatureNoneZ_get_err(long owner);
264 public static class LDKCOption_CVec_ThirtyTwoBytesZZ {
265 private LDKCOption_CVec_ThirtyTwoBytesZZ() {}
266 public final static class Some extends LDKCOption_CVec_ThirtyTwoBytesZZ {
267 public byte[][] some;
268 Some(byte[][] some) { this.some = some; }
270 public final static class None extends LDKCOption_CVec_ThirtyTwoBytesZZ {
273 static native void init();
275 static { LDKCOption_CVec_ThirtyTwoBytesZZ.init(); }
276 public static native LDKCOption_CVec_ThirtyTwoBytesZZ LDKCOption_CVec_ThirtyTwoBytesZZ_ref_from_ptr(long ptr);
277 public static class LDKAmount {
278 private LDKAmount() {}
279 public final static class Bitcoin extends LDKAmount {
280 public long amount_msats;
281 Bitcoin(long amount_msats) { this.amount_msats = amount_msats; }
283 public final static class Currency extends LDKAmount {
284 public byte[] iso4217_code;
286 Currency(byte[] iso4217_code, long amount) { this.iso4217_code = iso4217_code; this.amount = amount; }
288 static native void init();
290 static { LDKAmount.init(); }
291 public static native LDKAmount LDKAmount_ref_from_ptr(long ptr);
292 public static class LDKCOption_AmountZ {
293 private LDKCOption_AmountZ() {}
294 public final static class Some extends LDKCOption_AmountZ {
296 Some(long some) { this.some = some; }
298 public final static class None extends LDKCOption_AmountZ {
301 static native void init();
303 static { LDKCOption_AmountZ.init(); }
304 public static native LDKCOption_AmountZ LDKCOption_AmountZ_ref_from_ptr(long ptr);
305 public static class LDKQuantity {
306 private LDKQuantity() {}
307 public final static class Bounded extends LDKQuantity {
309 Bounded(long bounded) { this.bounded = bounded; }
311 public final static class Unbounded extends LDKQuantity {
314 public final static class One extends LDKQuantity {
317 static native void init();
319 static { LDKQuantity.init(); }
320 public static native LDKQuantity LDKQuantity_ref_from_ptr(long ptr);
321 public static class LDKCOption_QuantityZ {
322 private LDKCOption_QuantityZ() {}
323 public final static class Some extends LDKCOption_QuantityZ {
325 Some(long some) { this.some = some; }
327 public final static class None extends LDKCOption_QuantityZ {
330 static native void init();
332 static { LDKCOption_QuantityZ.init(); }
333 public static native LDKCOption_QuantityZ LDKCOption_QuantityZ_ref_from_ptr(long ptr);
334 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesNoneZ_get_ok(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner);
335 public static native byte[] CResult_ThirtyTwoBytesNoneZ_get_ok(long owner);
336 // void CResult_ThirtyTwoBytesNoneZ_get_err(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner);
337 public static native void CResult_ThirtyTwoBytesNoneZ_get_err(long owner);
338 // struct LDKBlindedPayInfo CResult_BlindedPayInfoDecodeErrorZ_get_ok(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
339 public static native long CResult_BlindedPayInfoDecodeErrorZ_get_ok(long owner);
340 // struct LDKDecodeError CResult_BlindedPayInfoDecodeErrorZ_get_err(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
341 public static native long CResult_BlindedPayInfoDecodeErrorZ_get_err(long owner);
342 // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
343 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
344 // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
345 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
346 // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
347 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
348 // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
349 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
350 public static class LDKSpendableOutputDescriptor {
351 private LDKSpendableOutputDescriptor() {}
352 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
353 public long outpoint;
355 public byte[] channel_keys_id;
356 StaticOutput(long outpoint, long output, byte[] channel_keys_id) { this.outpoint = outpoint; this.output = output; this.channel_keys_id = channel_keys_id; }
358 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
359 public long delayed_payment_output;
360 DelayedPaymentOutput(long delayed_payment_output) { this.delayed_payment_output = delayed_payment_output; }
362 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
363 public long static_payment_output;
364 StaticPaymentOutput(long static_payment_output) { this.static_payment_output = static_payment_output; }
366 static native void init();
368 static { LDKSpendableOutputDescriptor.init(); }
369 public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
370 // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
371 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long owner);
372 // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
373 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long owner);
374 public static class LDKCOption_u32Z {
375 private LDKCOption_u32Z() {}
376 public final static class Some extends LDKCOption_u32Z {
378 Some(int some) { this.some = some; }
380 public final static class None extends LDKCOption_u32Z {
383 static native void init();
385 static { LDKCOption_u32Z.init(); }
386 public static native LDKCOption_u32Z LDKCOption_u32Z_ref_from_ptr(long ptr);
387 // struct LDKCVec_u8Z C2Tuple_CVec_u8Zu64Z_get_a(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR owner);
388 public static native byte[] C2Tuple_CVec_u8Zu64Z_get_a(long owner);
389 // uint64_t C2Tuple_CVec_u8Zu64Z_get_b(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR owner);
390 public static native long C2Tuple_CVec_u8Zu64Z_get_b(long owner);
391 // struct LDKC2Tuple_CVec_u8Zu64Z CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR owner);
392 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok(long owner);
393 // void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR owner);
394 public static native void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err(long owner);
395 // struct LDKChannelDerivationParameters CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner);
396 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(long owner);
397 // struct LDKDecodeError CResult_ChannelDerivationParametersDecodeErrorZ_get_err(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner);
398 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_get_err(long owner);
399 // struct LDKHTLCDescriptor CResult_HTLCDescriptorDecodeErrorZ_get_ok(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner);
400 public static native long CResult_HTLCDescriptorDecodeErrorZ_get_ok(long owner);
401 // struct LDKDecodeError CResult_HTLCDescriptorDecodeErrorZ_get_err(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner);
402 public static native long CResult_HTLCDescriptorDecodeErrorZ_get_err(long owner);
403 // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
404 public static native void CResult_NoneNoneZ_get_ok(long owner);
405 // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
406 public static native void CResult_NoneNoneZ_get_err(long owner);
407 // struct LDKPublicKey CResult_PublicKeyNoneZ_get_ok(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
408 public static native byte[] CResult_PublicKeyNoneZ_get_ok(long owner);
409 // void CResult_PublicKeyNoneZ_get_err(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
410 public static native void CResult_PublicKeyNoneZ_get_err(long owner);
411 public static class LDKCOption_BigEndianScalarZ {
412 private LDKCOption_BigEndianScalarZ() {}
413 public final static class Some extends LDKCOption_BigEndianScalarZ {
415 Some(long some) { this.some = some; }
417 public final static class None extends LDKCOption_BigEndianScalarZ {
420 static native void init();
422 static { LDKCOption_BigEndianScalarZ.init(); }
423 public static native LDKCOption_BigEndianScalarZ LDKCOption_BigEndianScalarZ_ref_from_ptr(long ptr);
424 // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
425 public static native byte[] CResult_RecoverableSignatureNoneZ_get_ok(long owner);
426 // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
427 public static native void CResult_RecoverableSignatureNoneZ_get_err(long owner);
428 // struct LDKECDSASignature CResult_ECDSASignatureNoneZ_get_ok(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner);
429 public static native byte[] CResult_ECDSASignatureNoneZ_get_ok(long owner);
430 // void CResult_ECDSASignatureNoneZ_get_err(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner);
431 public static native void CResult_ECDSASignatureNoneZ_get_err(long owner);
432 // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
433 public static native byte[] CResult_TransactionNoneZ_get_ok(long owner);
434 // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
435 public static native void CResult_TransactionNoneZ_get_err(long owner);
436 // struct LDKECDSASignature C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner);
437 public static native byte[] C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(long owner);
438 // struct LDKCVec_ECDSASignatureZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner);
439 public static native byte[][] C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(long owner);
440 // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner);
441 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(long owner);
442 // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner);
443 public static native void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(long owner);
444 public interface LDKChannelSigner {
445 byte[] get_per_commitment_point(long idx);
446 byte[] release_commitment_secret(long idx);
447 long validate_holder_commitment(long holder_tx, byte[][] outbound_htlc_preimages);
448 long validate_counterparty_revocation(long idx, byte[] secret);
449 byte[] channel_keys_id();
450 void provide_channel_parameters(long channel_parameters);
452 public static native long LDKChannelSigner_new(LDKChannelSigner impl, long pubkeys);
453 // LDKPublicKey ChannelSigner_get_per_commitment_point LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
454 public static native byte[] ChannelSigner_get_per_commitment_point(long this_arg, long idx);
455 // LDKThirtyTwoBytes ChannelSigner_release_commitment_secret LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
456 public static native byte[] ChannelSigner_release_commitment_secret(long this_arg, long idx);
457 // LDKCResult_NoneNoneZ ChannelSigner_validate_holder_commitment LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_ThirtyTwoBytesZ outbound_htlc_preimages
458 public static native long ChannelSigner_validate_holder_commitment(long this_arg, long holder_tx, byte[][] outbound_htlc_preimages);
459 // LDKCResult_NoneNoneZ ChannelSigner_validate_counterparty_revocation LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
460 public static native long ChannelSigner_validate_counterparty_revocation(long this_arg, long idx, byte[] secret);
461 // LDKThirtyTwoBytes ChannelSigner_channel_keys_id LDKChannelSigner *NONNULL_PTR this_arg
462 public static native byte[] ChannelSigner_channel_keys_id(long this_arg);
463 // void ChannelSigner_provide_channel_parameters LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
464 public static native void ChannelSigner_provide_channel_parameters(long this_arg, long channel_parameters);
465 // LDKChannelPublicKeys ChannelSigner_get_pubkeys LDKChannelSigner *NONNULL_PTR this_arg
466 public static native long ChannelSigner_get_pubkeys(long this_arg);
467 public interface LDKEcdsaChannelSigner {
468 long sign_counterparty_commitment(long commitment_tx, byte[][] inbound_htlc_preimages, byte[][] outbound_htlc_preimages);
469 long sign_holder_commitment(long commitment_tx);
470 long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
471 long sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
472 long sign_holder_htlc_transaction(byte[] htlc_tx, long input, long htlc_descriptor);
473 long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
474 long sign_closing_transaction(long closing_tx);
475 long sign_holder_anchor_input(byte[] anchor_tx, long input);
476 long sign_channel_announcement_with_funding_key(long msg);
478 public static native long LDKEcdsaChannelSigner_new(LDKEcdsaChannelSigner impl, LDKChannelSigner ChannelSigner, long pubkeys);
479 public static native long LDKEcdsaChannelSigner_get_ChannelSigner(long arg);
480 // LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ EcdsaChannelSigner_sign_counterparty_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_ThirtyTwoBytesZ inbound_htlc_preimages, struct LDKCVec_ThirtyTwoBytesZ outbound_htlc_preimages
481 public static native long EcdsaChannelSigner_sign_counterparty_commitment(long this_arg, long commitment_tx, byte[][] inbound_htlc_preimages, byte[][] outbound_htlc_preimages);
482 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
483 public static native long EcdsaChannelSigner_sign_holder_commitment(long this_arg, long commitment_tx);
484 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_output LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
485 public static native long EcdsaChannelSigner_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
486 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_htlc LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
487 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);
488 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor
489 public static native long EcdsaChannelSigner_sign_holder_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long htlc_descriptor);
490 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_counterparty_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
491 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);
492 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_closing_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
493 public static native long EcdsaChannelSigner_sign_closing_transaction(long this_arg, long closing_tx);
494 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_anchor_input LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction anchor_tx, uintptr_t input
495 public static native long EcdsaChannelSigner_sign_holder_anchor_input(long this_arg, byte[] anchor_tx, long input);
496 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_channel_announcement_with_funding_key LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
497 public static native long EcdsaChannelSigner_sign_channel_announcement_with_funding_key(long this_arg, long msg);
498 public interface LDKWriteableEcdsaChannelSigner {
501 public static native long LDKWriteableEcdsaChannelSigner_new(LDKWriteableEcdsaChannelSigner impl, LDKEcdsaChannelSigner EcdsaChannelSigner, LDKChannelSigner ChannelSigner, long pubkeys);
502 public static native long LDKWriteableEcdsaChannelSigner_get_EcdsaChannelSigner(long arg);
503 public static native long LDKWriteableEcdsaChannelSigner_get_ChannelSigner(long arg);
504 // LDKCVec_u8Z WriteableEcdsaChannelSigner_write LDKWriteableEcdsaChannelSigner *NONNULL_PTR this_arg
505 public static native byte[] WriteableEcdsaChannelSigner_write(long this_arg);
506 // struct LDKWriteableEcdsaChannelSigner CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
507 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(long owner);
508 // struct LDKDecodeError CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
509 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(long owner);
510 // struct LDKCVec_u8Z CResult_CVec_u8ZNoneZ_get_ok(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner);
511 public static native byte[] CResult_CVec_u8ZNoneZ_get_ok(long owner);
512 // void CResult_CVec_u8ZNoneZ_get_err(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner);
513 public static native void CResult_CVec_u8ZNoneZ_get_err(long owner);
514 // struct LDKShutdownScript CResult_ShutdownScriptNoneZ_get_ok(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
515 public static native long CResult_ShutdownScriptNoneZ_get_ok(long owner);
516 // void CResult_ShutdownScriptNoneZ_get_err(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
517 public static native void CResult_ShutdownScriptNoneZ_get_err(long owner);
518 public static class LDKCOption_u16Z {
519 private LDKCOption_u16Z() {}
520 public final static class Some extends LDKCOption_u16Z {
522 Some(short some) { this.some = some; }
524 public final static class None extends LDKCOption_u16Z {
527 static native void init();
529 static { LDKCOption_u16Z.init(); }
530 public static native LDKCOption_u16Z LDKCOption_u16Z_ref_from_ptr(long ptr);
531 public static class LDKCOption_boolZ {
532 private LDKCOption_boolZ() {}
533 public final static class Some extends LDKCOption_boolZ {
535 Some(boolean some) { this.some = some; }
537 public final static class None extends LDKCOption_boolZ {
540 static native void init();
542 static { LDKCOption_boolZ.init(); }
543 public static native LDKCOption_boolZ LDKCOption_boolZ_ref_from_ptr(long ptr);
544 // struct LDKWitness CResult_WitnessNoneZ_get_ok(LDKCResult_WitnessNoneZ *NONNULL_PTR owner);
545 public static native byte[] CResult_WitnessNoneZ_get_ok(long owner);
546 // void CResult_WitnessNoneZ_get_err(LDKCResult_WitnessNoneZ *NONNULL_PTR owner);
547 public static native void CResult_WitnessNoneZ_get_err(long owner);
548 // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
549 public static native long CResult_InMemorySignerDecodeErrorZ_get_ok(long owner);
550 // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
551 public static native long CResult_InMemorySignerDecodeErrorZ_get_err(long owner);
552 public static class LDKCandidateRouteHop {
553 private LDKCandidateRouteHop() {}
554 public final static class FirstHop extends LDKCandidateRouteHop {
555 public long first_hop;
556 FirstHop(long first_hop) { this.first_hop = first_hop; }
558 public final static class PublicHop extends LDKCandidateRouteHop {
559 public long public_hop;
560 PublicHop(long public_hop) { this.public_hop = public_hop; }
562 public final static class PrivateHop extends LDKCandidateRouteHop {
563 public long private_hop;
564 PrivateHop(long private_hop) { this.private_hop = private_hop; }
566 public final static class Blinded extends LDKCandidateRouteHop {
568 Blinded(long blinded) { this.blinded = blinded; }
570 public final static class OneHopBlinded extends LDKCandidateRouteHop {
571 public long one_hop_blinded;
572 OneHopBlinded(long one_hop_blinded) { this.one_hop_blinded = one_hop_blinded; }
574 static native void init();
576 static { LDKCandidateRouteHop.init(); }
577 public static native LDKCandidateRouteHop LDKCandidateRouteHop_ref_from_ptr(long ptr);
578 public interface LDKScoreLookUp {
579 long channel_penalty_msat(long candidate, long usage, long score_params);
581 public static native long LDKScoreLookUp_new(LDKScoreLookUp impl);
582 // uint64_t ScoreLookUp_channel_penalty_msat LDKScoreLookUp *NONNULL_PTR this_arg, const struct LDKCandidateRouteHop *NONNULL_PTR candidate, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params
583 public static native long ScoreLookUp_channel_penalty_msat(long this_arg, long candidate, long usage, long score_params);
584 public interface LDKScoreUpdate {
585 void payment_path_failed(long path, long short_channel_id, long duration_since_epoch);
586 void payment_path_successful(long path, long duration_since_epoch);
587 void probe_failed(long path, long short_channel_id, long duration_since_epoch);
588 void probe_successful(long path, long duration_since_epoch);
589 void time_passed(long duration_since_epoch);
591 public static native long LDKScoreUpdate_new(LDKScoreUpdate impl);
592 // void ScoreUpdate_payment_path_failed LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id, uint64_t duration_since_epoch
593 public static native void ScoreUpdate_payment_path_failed(long this_arg, long path, long short_channel_id, long duration_since_epoch);
594 // void ScoreUpdate_payment_path_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t duration_since_epoch
595 public static native void ScoreUpdate_payment_path_successful(long this_arg, long path, long duration_since_epoch);
596 // void ScoreUpdate_probe_failed LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id, uint64_t duration_since_epoch
597 public static native void ScoreUpdate_probe_failed(long this_arg, long path, long short_channel_id, long duration_since_epoch);
598 // void ScoreUpdate_probe_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t duration_since_epoch
599 public static native void ScoreUpdate_probe_successful(long this_arg, long path, long duration_since_epoch);
600 // void ScoreUpdate_time_passed LDKScoreUpdate *NONNULL_PTR this_arg, uint64_t duration_since_epoch
601 public static native void ScoreUpdate_time_passed(long this_arg, long duration_since_epoch);
602 public interface LDKLockableScore {
606 public static native long LDKLockableScore_new(LDKLockableScore impl);
607 // LDKScoreLookUp LockableScore_read_lock LDKLockableScore *NONNULL_PTR this_arg
608 public static native long LockableScore_read_lock(long this_arg);
609 // LDKScoreUpdate LockableScore_write_lock LDKLockableScore *NONNULL_PTR this_arg
610 public static native long LockableScore_write_lock(long this_arg);
611 public interface LDKWriteableScore {
614 public static native long LDKWriteableScore_new(LDKWriteableScore impl, LDKLockableScore LockableScore);
615 public static native long LDKWriteableScore_get_LockableScore(long arg);
616 // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg
617 public static native byte[] WriteableScore_write(long this_arg);
618 public static class LDKCOption_WriteableScoreZ {
619 private LDKCOption_WriteableScoreZ() {}
620 public final static class Some extends LDKCOption_WriteableScoreZ {
622 Some(long some) { this.some = some; }
624 public final static class None extends LDKCOption_WriteableScoreZ {
627 static native void init();
629 static { LDKCOption_WriteableScoreZ.init(); }
630 public static native LDKCOption_WriteableScoreZ LDKCOption_WriteableScoreZ_ref_from_ptr(long ptr);
631 // void CResult_NoneIOErrorZ_get_ok(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner);
632 public static native void CResult_NoneIOErrorZ_get_ok(long owner);
633 // enum LDKIOError CResult_NoneIOErrorZ_get_err(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner);
634 public static native IOError CResult_NoneIOErrorZ_get_err(long owner);
635 // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
636 public static native long CResult_RouteLightningErrorZ_get_ok(long owner);
637 // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
638 public static native long CResult_RouteLightningErrorZ_get_err(long owner);
639 // struct LDKBlindedPayInfo C2Tuple_BlindedPayInfoBlindedPathZ_get_a(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
640 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_a(long owner);
641 // struct LDKBlindedPath C2Tuple_BlindedPayInfoBlindedPathZ_get_b(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
642 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_b(long owner);
643 // struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR owner);
644 public static native long[] CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok(long owner);
645 // void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR owner);
646 public static native void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err(long owner);
647 // struct LDKOnionMessagePath CResult_OnionMessagePathNoneZ_get_ok(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
648 public static native long CResult_OnionMessagePathNoneZ_get_ok(long owner);
649 // void CResult_OnionMessagePathNoneZ_get_err(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
650 public static native void CResult_OnionMessagePathNoneZ_get_err(long owner);
651 // struct LDKCVec_BlindedPathZ CResult_CVec_BlindedPathZNoneZ_get_ok(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR owner);
652 public static native long[] CResult_CVec_BlindedPathZNoneZ_get_ok(long owner);
653 // void CResult_CVec_BlindedPathZNoneZ_get_err(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR owner);
654 public static native void CResult_CVec_BlindedPathZNoneZ_get_err(long owner);
655 // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
656 public static native long CResult_InFlightHtlcsDecodeErrorZ_get_ok(long owner);
657 // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
658 public static native long CResult_InFlightHtlcsDecodeErrorZ_get_err(long owner);
659 // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
660 public static native long CResult_RouteHopDecodeErrorZ_get_ok(long owner);
661 // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
662 public static native long CResult_RouteHopDecodeErrorZ_get_err(long owner);
663 // struct LDKBlindedTail CResult_BlindedTailDecodeErrorZ_get_ok(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
664 public static native long CResult_BlindedTailDecodeErrorZ_get_ok(long owner);
665 // struct LDKDecodeError CResult_BlindedTailDecodeErrorZ_get_err(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
666 public static native long CResult_BlindedTailDecodeErrorZ_get_err(long owner);
667 // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
668 public static native long CResult_RouteDecodeErrorZ_get_ok(long owner);
669 // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
670 public static native long CResult_RouteDecodeErrorZ_get_err(long owner);
671 // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
672 public static native long CResult_RouteParametersDecodeErrorZ_get_ok(long owner);
673 // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
674 public static native long CResult_RouteParametersDecodeErrorZ_get_err(long owner);
675 // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
676 public static native long CResult_PaymentParametersDecodeErrorZ_get_ok(long owner);
677 // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
678 public static native long CResult_PaymentParametersDecodeErrorZ_get_err(long owner);
679 // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
680 public static native long CResult_RouteHintDecodeErrorZ_get_ok(long owner);
681 // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
682 public static native long CResult_RouteHintDecodeErrorZ_get_err(long owner);
683 // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
684 public static native long CResult_RouteHintHopDecodeErrorZ_get_ok(long owner);
685 // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
686 public static native long CResult_RouteHintHopDecodeErrorZ_get_err(long owner);
687 // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
688 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(long owner);
689 // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
690 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_err(long owner);
691 // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
692 public static native long C2Tuple_u64u64Z_get_a(long owner);
693 // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
694 public static native long C2Tuple_u64u64Z_get_b(long owner);
695 public static class LDKCOption_C2Tuple_u64u64ZZ {
696 private LDKCOption_C2Tuple_u64u64ZZ() {}
697 public final static class Some extends LDKCOption_C2Tuple_u64u64ZZ {
699 Some(long some) { this.some = some; }
701 public final static class None extends LDKCOption_C2Tuple_u64u64ZZ {
704 static native void init();
706 static { LDKCOption_C2Tuple_u64u64ZZ.init(); }
707 public static native LDKCOption_C2Tuple_u64u64ZZ LDKCOption_C2Tuple_u64u64ZZ_ref_from_ptr(long ptr);
708 // struct LDKThirtyTwoU16s C2Tuple_Z_get_a(LDKC2Tuple_Z *NONNULL_PTR owner);
709 public static native short[] C2Tuple_Z_get_a(long owner);
710 // struct LDKThirtyTwoU16s C2Tuple_Z_get_b(LDKC2Tuple_Z *NONNULL_PTR owner);
711 public static native short[] C2Tuple_Z_get_b(long owner);
712 // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_a(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner);
713 public static native short[] C2Tuple__u1632_u1632Z_get_a(long owner);
714 // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_b(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner);
715 public static native short[] C2Tuple__u1632_u1632Z_get_b(long owner);
716 public static class LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
717 private LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ() {}
718 public final static class Some extends LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
720 Some(long some) { this.some = some; }
722 public final static class None extends LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
725 static native void init();
727 static { LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.init(); }
728 public static native LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_ref_from_ptr(long ptr);
729 public static class LDKCOption_f64Z {
730 private LDKCOption_f64Z() {}
731 public final static class Some extends LDKCOption_f64Z {
733 Some(double some) { this.some = some; }
735 public final static class None extends LDKCOption_f64Z {
738 static native void init();
740 static { LDKCOption_f64Z.init(); }
741 public static native LDKCOption_f64Z LDKCOption_f64Z_ref_from_ptr(long ptr);
742 public interface LDKLogger {
743 void log(long record);
745 public static native long LDKLogger_new(LDKLogger impl);
746 // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
747 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_ok(long owner);
748 // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
749 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_err(long owner);
750 // struct LDKBestBlock CResult_BestBlockDecodeErrorZ_get_ok(LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR owner);
751 public static native long CResult_BestBlockDecodeErrorZ_get_ok(long owner);
752 // struct LDKDecodeError CResult_BestBlockDecodeErrorZ_get_err(LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR owner);
753 public static native long CResult_BestBlockDecodeErrorZ_get_err(long owner);
754 // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
755 public static native long C2Tuple_usizeTransactionZ_get_a(long owner);
756 // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
757 public static native byte[] C2Tuple_usizeTransactionZ_get_b(long owner);
758 // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
759 public static native byte[] C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a(long owner);
760 // uint32_t C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
761 public static native int C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b(long owner);
762 // struct LDKCOption_ThirtyTwoBytesZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
763 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c(long owner);
764 // enum LDKChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner);
765 public static native ChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(long owner);
766 // void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner);
767 public static native void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(long owner);
768 public static class LDKClosureReason {
769 private LDKClosureReason() {}
770 public final static class CounterpartyForceClosed extends LDKClosureReason {
771 public long peer_msg;
772 CounterpartyForceClosed(long peer_msg) { this.peer_msg = peer_msg; }
774 public final static class HolderForceClosed extends LDKClosureReason {
775 HolderForceClosed() { }
777 public final static class LegacyCooperativeClosure extends LDKClosureReason {
778 LegacyCooperativeClosure() { }
780 public final static class CounterpartyInitiatedCooperativeClosure extends LDKClosureReason {
781 CounterpartyInitiatedCooperativeClosure() { }
783 public final static class LocallyInitiatedCooperativeClosure extends LDKClosureReason {
784 LocallyInitiatedCooperativeClosure() { }
786 public final static class CommitmentTxConfirmed extends LDKClosureReason {
787 CommitmentTxConfirmed() { }
789 public final static class FundingTimedOut extends LDKClosureReason {
790 FundingTimedOut() { }
792 public final static class ProcessingError extends LDKClosureReason {
793 public java.lang.String err;
794 ProcessingError(java.lang.String err) { this.err = err; }
796 public final static class DisconnectedPeer extends LDKClosureReason {
797 DisconnectedPeer() { }
799 public final static class OutdatedChannelManager extends LDKClosureReason {
800 OutdatedChannelManager() { }
802 public final static class CounterpartyCoopClosedUnfundedChannel extends LDKClosureReason {
803 CounterpartyCoopClosedUnfundedChannel() { }
805 public final static class FundingBatchClosure extends LDKClosureReason {
806 FundingBatchClosure() { }
808 public final static class HTLCsTimedOut extends LDKClosureReason {
811 static native void init();
813 static { LDKClosureReason.init(); }
814 public static native LDKClosureReason LDKClosureReason_ref_from_ptr(long ptr);
815 public static class LDKMonitorEvent {
816 private LDKMonitorEvent() {}
817 public final static class HTLCEvent extends LDKMonitorEvent {
818 public long htlc_event;
819 HTLCEvent(long htlc_event) { this.htlc_event = htlc_event; }
821 public final static class HolderForceClosedWithInfo extends LDKMonitorEvent {
823 public long outpoint;
824 public long channel_id;
825 HolderForceClosedWithInfo(long reason, long outpoint, long channel_id) { this.reason = reason; this.outpoint = outpoint; this.channel_id = channel_id; }
827 public final static class HolderForceClosed extends LDKMonitorEvent {
828 public long holder_force_closed;
829 HolderForceClosed(long holder_force_closed) { this.holder_force_closed = holder_force_closed; }
831 public final static class Completed extends LDKMonitorEvent {
832 public long funding_txo;
833 public long channel_id;
834 public long monitor_update_id;
835 Completed(long funding_txo, long channel_id, long monitor_update_id) { this.funding_txo = funding_txo; this.channel_id = channel_id; this.monitor_update_id = monitor_update_id; }
837 static native void init();
839 static { LDKMonitorEvent.init(); }
840 public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
841 // struct LDKOutPoint C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_a(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
842 public static native long C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_a(long owner);
843 // struct LDKChannelId C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_b(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
844 public static native long C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_b(long owner);
845 // struct LDKCVec_MonitorEventZ C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_c(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
846 public static native long[] C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_c(long owner);
847 // struct LDKPublicKey C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_d(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
848 public static native byte[] C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_d(long owner);
849 // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
850 public static native long CResult_InitFeaturesDecodeErrorZ_get_ok(long owner);
851 // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
852 public static native long CResult_InitFeaturesDecodeErrorZ_get_err(long owner);
853 // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
854 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_ok(long owner);
855 // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
856 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_err(long owner);
857 // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
858 public static native long CResult_NodeFeaturesDecodeErrorZ_get_ok(long owner);
859 // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
860 public static native long CResult_NodeFeaturesDecodeErrorZ_get_err(long owner);
861 // struct LDKBolt11InvoiceFeatures CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
862 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
863 // struct LDKDecodeError CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
864 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(long owner);
865 // struct LDKBolt12InvoiceFeatures CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
866 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
867 // struct LDKDecodeError CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
868 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(long owner);
869 // struct LDKBlindedHopFeatures CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
870 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(long owner);
871 // struct LDKDecodeError CResult_BlindedHopFeaturesDecodeErrorZ_get_err(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
872 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_err(long owner);
873 // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
874 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(long owner);
875 // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
876 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(long owner);
877 // struct LDKOfferId CResult_OfferIdDecodeErrorZ_get_ok(LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR owner);
878 public static native long CResult_OfferIdDecodeErrorZ_get_ok(long owner);
879 // struct LDKDecodeError CResult_OfferIdDecodeErrorZ_get_err(LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR owner);
880 public static native long CResult_OfferIdDecodeErrorZ_get_err(long owner);
881 // void CResult_NoneBolt12SemanticErrorZ_get_ok(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner);
882 public static native void CResult_NoneBolt12SemanticErrorZ_get_ok(long owner);
883 // enum LDKBolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner);
884 public static native Bolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(long owner);
885 // struct LDKOffer CResult_OfferBolt12SemanticErrorZ_get_ok(LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR owner);
886 public static native long CResult_OfferBolt12SemanticErrorZ_get_ok(long owner);
887 // enum LDKBolt12SemanticError CResult_OfferBolt12SemanticErrorZ_get_err(LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR owner);
888 public static native Bolt12SemanticError CResult_OfferBolt12SemanticErrorZ_get_err(long owner);
889 // struct LDKInvoiceRequestWithDerivedPayerIdBuilder CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
890 public static native long CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_ok(long owner);
891 // enum LDKBolt12SemanticError CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
892 public static native Bolt12SemanticError CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_err(long owner);
893 // struct LDKInvoiceRequestWithExplicitPayerIdBuilder CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
894 public static native long CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_ok(long owner);
895 // enum LDKBolt12SemanticError CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
896 public static native Bolt12SemanticError CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_err(long owner);
897 // struct LDKOffer CResult_OfferBolt12ParseErrorZ_get_ok(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
898 public static native long CResult_OfferBolt12ParseErrorZ_get_ok(long owner);
899 // struct LDKBolt12ParseError CResult_OfferBolt12ParseErrorZ_get_err(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
900 public static native long CResult_OfferBolt12ParseErrorZ_get_err(long owner);
901 // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
902 public static native long CResult_NodeIdDecodeErrorZ_get_ok(long owner);
903 // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
904 public static native long CResult_NodeIdDecodeErrorZ_get_err(long owner);
905 // struct LDKPublicKey CResult_PublicKeySecp256k1ErrorZ_get_ok(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner);
906 public static native byte[] CResult_PublicKeySecp256k1ErrorZ_get_ok(long owner);
907 // enum LDKSecp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner);
908 public static native Secp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(long owner);
909 public static class LDKNetworkUpdate {
910 private LDKNetworkUpdate() {}
911 public final static class ChannelUpdateMessage extends LDKNetworkUpdate {
913 ChannelUpdateMessage(long msg) { this.msg = msg; }
915 public final static class ChannelFailure extends LDKNetworkUpdate {
916 public long short_channel_id;
917 public boolean is_permanent;
918 ChannelFailure(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
920 public final static class NodeFailure extends LDKNetworkUpdate {
921 public byte[] node_id;
922 public boolean is_permanent;
923 NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
925 static native void init();
927 static { LDKNetworkUpdate.init(); }
928 public static native LDKNetworkUpdate LDKNetworkUpdate_ref_from_ptr(long ptr);
929 public static class LDKCOption_NetworkUpdateZ {
930 private LDKCOption_NetworkUpdateZ() {}
931 public final static class Some extends LDKCOption_NetworkUpdateZ {
933 Some(long some) { this.some = some; }
935 public final static class None extends LDKCOption_NetworkUpdateZ {
938 static native void init();
940 static { LDKCOption_NetworkUpdateZ.init(); }
941 public static native LDKCOption_NetworkUpdateZ LDKCOption_NetworkUpdateZ_ref_from_ptr(long ptr);
942 // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
943 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(long owner);
944 // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
945 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(long owner);
946 // struct LDKTxOut CResult_TxOutUtxoLookupErrorZ_get_ok(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
947 public static native long CResult_TxOutUtxoLookupErrorZ_get_ok(long owner);
948 // enum LDKUtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
949 public static native UtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(long owner);
950 public static class LDKUtxoResult {
951 private LDKUtxoResult() {}
952 public final static class Sync extends LDKUtxoResult {
954 Sync(long sync) { this.sync = sync; }
956 public final static class Async extends LDKUtxoResult {
958 Async(long async) { this.async = async; }
960 static native void init();
962 static { LDKUtxoResult.init(); }
963 public static native LDKUtxoResult LDKUtxoResult_ref_from_ptr(long ptr);
964 public interface LDKUtxoLookup {
965 long get_utxo(byte[] chain_hash, long short_channel_id);
967 public static native long LDKUtxoLookup_new(LDKUtxoLookup impl);
968 // LDKUtxoResult UtxoLookup_get_utxo LDKUtxoLookup *NONNULL_PTR this_arg, const uint8_t (*chain_hash)[32], uint64_t short_channel_id
969 public static native long UtxoLookup_get_utxo(long this_arg, byte[] chain_hash, long short_channel_id);
970 public static class LDKCOption_UtxoLookupZ {
971 private LDKCOption_UtxoLookupZ() {}
972 public final static class Some extends LDKCOption_UtxoLookupZ {
974 Some(long some) { this.some = some; }
976 public final static class None extends LDKCOption_UtxoLookupZ {
979 static native void init();
981 static { LDKCOption_UtxoLookupZ.init(); }
982 public static native LDKCOption_UtxoLookupZ LDKCOption_UtxoLookupZ_ref_from_ptr(long ptr);
983 // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
984 public static native void CResult_NoneLightningErrorZ_get_ok(long owner);
985 // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
986 public static native long CResult_NoneLightningErrorZ_get_err(long owner);
987 // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
988 public static native boolean CResult_boolLightningErrorZ_get_ok(long owner);
989 // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
990 public static native long CResult_boolLightningErrorZ_get_err(long owner);
991 // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
992 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long owner);
993 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
994 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long owner);
995 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
996 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long owner);
997 public static class LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
998 private LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ() {}
999 public final static class Some extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
1001 Some(long some) { this.some = some; }
1003 public final static class None extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
1006 static native void init();
1008 static { LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.init(); }
1009 public static native LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ref_from_ptr(long ptr);
1010 public static class LDKErrorAction {
1011 private LDKErrorAction() {}
1012 public final static class DisconnectPeer extends LDKErrorAction {
1014 DisconnectPeer(long msg) { this.msg = msg; }
1016 public final static class DisconnectPeerWithWarning extends LDKErrorAction {
1018 DisconnectPeerWithWarning(long msg) { this.msg = msg; }
1020 public final static class IgnoreError extends LDKErrorAction {
1023 public final static class IgnoreAndLog extends LDKErrorAction {
1024 public org.ldk.enums.Level ignore_and_log;
1025 IgnoreAndLog(org.ldk.enums.Level ignore_and_log) { this.ignore_and_log = ignore_and_log; }
1027 public final static class IgnoreDuplicateGossip extends LDKErrorAction {
1028 IgnoreDuplicateGossip() { }
1030 public final static class SendErrorMessage extends LDKErrorAction {
1032 SendErrorMessage(long msg) { this.msg = msg; }
1034 public final static class SendWarningMessage extends LDKErrorAction {
1036 public org.ldk.enums.Level log_level;
1037 SendWarningMessage(long msg, org.ldk.enums.Level log_level) { this.msg = msg; this.log_level = log_level; }
1039 static native void init();
1041 static { LDKErrorAction.init(); }
1042 public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
1043 public static class LDKMessageSendEvent {
1044 private LDKMessageSendEvent() {}
1045 public final static class SendAcceptChannel extends LDKMessageSendEvent {
1046 public byte[] node_id;
1048 SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1050 public final static class SendAcceptChannelV2 extends LDKMessageSendEvent {
1051 public byte[] node_id;
1053 SendAcceptChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1055 public final static class SendOpenChannel extends LDKMessageSendEvent {
1056 public byte[] node_id;
1058 SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1060 public final static class SendOpenChannelV2 extends LDKMessageSendEvent {
1061 public byte[] node_id;
1063 SendOpenChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1065 public final static class SendFundingCreated extends LDKMessageSendEvent {
1066 public byte[] node_id;
1068 SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1070 public final static class SendFundingSigned extends LDKMessageSendEvent {
1071 public byte[] node_id;
1073 SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1075 public final static class SendStfu extends LDKMessageSendEvent {
1076 public byte[] node_id;
1078 SendStfu(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1080 public final static class SendSplice extends LDKMessageSendEvent {
1081 public byte[] node_id;
1083 SendSplice(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1085 public final static class SendSpliceAck extends LDKMessageSendEvent {
1086 public byte[] node_id;
1088 SendSpliceAck(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1090 public final static class SendSpliceLocked extends LDKMessageSendEvent {
1091 public byte[] node_id;
1093 SendSpliceLocked(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1095 public final static class SendTxAddInput extends LDKMessageSendEvent {
1096 public byte[] node_id;
1098 SendTxAddInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1100 public final static class SendTxAddOutput extends LDKMessageSendEvent {
1101 public byte[] node_id;
1103 SendTxAddOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1105 public final static class SendTxRemoveInput extends LDKMessageSendEvent {
1106 public byte[] node_id;
1108 SendTxRemoveInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1110 public final static class SendTxRemoveOutput extends LDKMessageSendEvent {
1111 public byte[] node_id;
1113 SendTxRemoveOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1115 public final static class SendTxComplete extends LDKMessageSendEvent {
1116 public byte[] node_id;
1118 SendTxComplete(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1120 public final static class SendTxSignatures extends LDKMessageSendEvent {
1121 public byte[] node_id;
1123 SendTxSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1125 public final static class SendTxInitRbf extends LDKMessageSendEvent {
1126 public byte[] node_id;
1128 SendTxInitRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1130 public final static class SendTxAckRbf extends LDKMessageSendEvent {
1131 public byte[] node_id;
1133 SendTxAckRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1135 public final static class SendTxAbort extends LDKMessageSendEvent {
1136 public byte[] node_id;
1138 SendTxAbort(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1140 public final static class SendChannelReady extends LDKMessageSendEvent {
1141 public byte[] node_id;
1143 SendChannelReady(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1145 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
1146 public byte[] node_id;
1148 SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1150 public final static class UpdateHTLCs extends LDKMessageSendEvent {
1151 public byte[] node_id;
1152 public long updates;
1153 UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
1155 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
1156 public byte[] node_id;
1158 SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1160 public final static class SendClosingSigned extends LDKMessageSendEvent {
1161 public byte[] node_id;
1163 SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1165 public final static class SendShutdown extends LDKMessageSendEvent {
1166 public byte[] node_id;
1168 SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1170 public final static class SendChannelReestablish extends LDKMessageSendEvent {
1171 public byte[] node_id;
1173 SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1175 public final static class SendChannelAnnouncement extends LDKMessageSendEvent {
1176 public byte[] node_id;
1178 public long update_msg;
1179 SendChannelAnnouncement(byte[] node_id, long msg, long update_msg) { this.node_id = node_id; this.msg = msg; this.update_msg = update_msg; }
1181 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
1183 public long update_msg;
1184 BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
1186 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
1188 BroadcastChannelUpdate(long msg) { this.msg = msg; }
1190 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
1192 BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
1194 public final static class SendChannelUpdate extends LDKMessageSendEvent {
1195 public byte[] node_id;
1197 SendChannelUpdate(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1199 public final static class HandleError extends LDKMessageSendEvent {
1200 public byte[] node_id;
1202 HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
1204 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
1205 public byte[] node_id;
1207 SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1209 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
1210 public byte[] node_id;
1212 SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1214 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
1215 public byte[] node_id;
1217 SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1219 public final static class SendGossipTimestampFilter extends LDKMessageSendEvent {
1220 public byte[] node_id;
1222 SendGossipTimestampFilter(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1224 static native void init();
1226 static { LDKMessageSendEvent.init(); }
1227 public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
1228 // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1229 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(long owner);
1230 // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1231 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_err(long owner);
1232 // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1233 public static native long CResult_ChannelInfoDecodeErrorZ_get_ok(long owner);
1234 // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1235 public static native long CResult_ChannelInfoDecodeErrorZ_get_err(long owner);
1236 // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1237 public static native long CResult_RoutingFeesDecodeErrorZ_get_ok(long owner);
1238 // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1239 public static native long CResult_RoutingFeesDecodeErrorZ_get_err(long owner);
1240 public static class LDKSocketAddress {
1241 private LDKSocketAddress() {}
1242 public final static class TcpIpV4 extends LDKSocketAddress {
1245 TcpIpV4(byte[] addr, short port) { this.addr = addr; this.port = port; }
1247 public final static class TcpIpV6 extends LDKSocketAddress {
1250 TcpIpV6(byte[] addr, short port) { this.addr = addr; this.port = port; }
1252 public final static class OnionV2 extends LDKSocketAddress {
1253 public byte[] onion_v2;
1254 OnionV2(byte[] onion_v2) { this.onion_v2 = onion_v2; }
1256 public final static class OnionV3 extends LDKSocketAddress {
1257 public byte[] ed25519_pubkey;
1258 public short checksum;
1259 public byte version;
1261 OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
1263 public final static class Hostname extends LDKSocketAddress {
1264 public long hostname;
1266 Hostname(long hostname, short port) { this.hostname = hostname; this.port = port; }
1268 static native void init();
1270 static { LDKSocketAddress.init(); }
1271 public static native LDKSocketAddress LDKSocketAddress_ref_from_ptr(long ptr);
1272 // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1273 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long owner);
1274 // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1275 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long owner);
1276 // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1277 public static native long CResult_NodeAliasDecodeErrorZ_get_ok(long owner);
1278 // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1279 public static native long CResult_NodeAliasDecodeErrorZ_get_err(long owner);
1280 // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1281 public static native long CResult_NodeInfoDecodeErrorZ_get_ok(long owner);
1282 // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1283 public static native long CResult_NodeInfoDecodeErrorZ_get_err(long owner);
1284 // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1285 public static native long CResult_NetworkGraphDecodeErrorZ_get_ok(long owner);
1286 // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1287 public static native long CResult_NetworkGraphDecodeErrorZ_get_err(long owner);
1288 public static class LDKCOption_CVec_SocketAddressZZ {
1289 private LDKCOption_CVec_SocketAddressZZ() {}
1290 public final static class Some extends LDKCOption_CVec_SocketAddressZZ {
1292 Some(long[] some) { this.some = some; }
1294 public final static class None extends LDKCOption_CVec_SocketAddressZZ {
1297 static native void init();
1299 static { LDKCOption_CVec_SocketAddressZZ.init(); }
1300 public static native LDKCOption_CVec_SocketAddressZZ LDKCOption_CVec_SocketAddressZZ_ref_from_ptr(long ptr);
1301 // uint64_t CResult_u64ShortChannelIdErrorZ_get_ok(LDKCResult_u64ShortChannelIdErrorZ *NONNULL_PTR owner);
1302 public static native long CResult_u64ShortChannelIdErrorZ_get_ok(long owner);
1303 // enum LDKShortChannelIdError CResult_u64ShortChannelIdErrorZ_get_err(LDKCResult_u64ShortChannelIdErrorZ *NONNULL_PTR owner);
1304 public static native ShortChannelIdError CResult_u64ShortChannelIdErrorZ_get_err(long owner);
1305 // struct LDKPendingHTLCInfo CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR owner);
1306 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(long owner);
1307 // struct LDKInboundHTLCErr CResult_PendingHTLCInfoInboundHTLCErrZ_get_err(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR owner);
1308 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_get_err(long owner);
1309 public static class LDKCOption_TxOutZ {
1310 private LDKCOption_TxOutZ() {}
1311 public final static class Some extends LDKCOption_TxOutZ {
1313 Some(long some) { this.some = some; }
1315 public final static class None extends LDKCOption_TxOutZ {
1318 static native void init();
1320 static { LDKCOption_TxOutZ.init(); }
1321 public static native LDKCOption_TxOutZ LDKCOption_TxOutZ_ref_from_ptr(long ptr);
1322 // struct LDKCoinSelection CResult_CoinSelectionNoneZ_get_ok(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1323 public static native long CResult_CoinSelectionNoneZ_get_ok(long owner);
1324 // void CResult_CoinSelectionNoneZ_get_err(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1325 public static native void CResult_CoinSelectionNoneZ_get_err(long owner);
1326 // struct LDKCVec_UtxoZ CResult_CVec_UtxoZNoneZ_get_ok(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1327 public static native long[] CResult_CVec_UtxoZNoneZ_get_ok(long owner);
1328 // void CResult_CVec_UtxoZNoneZ_get_err(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1329 public static native void CResult_CVec_UtxoZNoneZ_get_err(long owner);
1330 public static class LDKPaymentContext {
1331 private LDKPaymentContext() {}
1332 public final static class Unknown extends LDKPaymentContext {
1333 public long unknown;
1334 Unknown(long unknown) { this.unknown = unknown; }
1336 public final static class Bolt12Offer extends LDKPaymentContext {
1337 public long bolt12_offer;
1338 Bolt12Offer(long bolt12_offer) { this.bolt12_offer = bolt12_offer; }
1340 public final static class Bolt12Refund extends LDKPaymentContext {
1341 public long bolt12_refund;
1342 Bolt12Refund(long bolt12_refund) { this.bolt12_refund = bolt12_refund; }
1344 static native void init();
1346 static { LDKPaymentContext.init(); }
1347 public static native LDKPaymentContext LDKPaymentContext_ref_from_ptr(long ptr);
1348 public static class LDKCOption_PaymentContextZ {
1349 private LDKCOption_PaymentContextZ() {}
1350 public final static class Some extends LDKCOption_PaymentContextZ {
1352 Some(long some) { this.some = some; }
1354 public final static class None extends LDKCOption_PaymentContextZ {
1357 static native void init();
1359 static { LDKCOption_PaymentContextZ.init(); }
1360 public static native LDKCOption_PaymentContextZ LDKCOption_PaymentContextZ_ref_from_ptr(long ptr);
1361 // uint64_t C2Tuple_u64u16Z_get_a(LDKC2Tuple_u64u16Z *NONNULL_PTR owner);
1362 public static native long C2Tuple_u64u16Z_get_a(long owner);
1363 // uint16_t C2Tuple_u64u16Z_get_b(LDKC2Tuple_u64u16Z *NONNULL_PTR owner);
1364 public static native short C2Tuple_u64u16Z_get_b(long owner);
1365 public static class LDKCOption_C2Tuple_u64u16ZZ {
1366 private LDKCOption_C2Tuple_u64u16ZZ() {}
1367 public final static class Some extends LDKCOption_C2Tuple_u64u16ZZ {
1369 Some(long some) { this.some = some; }
1371 public final static class None extends LDKCOption_C2Tuple_u64u16ZZ {
1374 static native void init();
1376 static { LDKCOption_C2Tuple_u64u16ZZ.init(); }
1377 public static native LDKCOption_C2Tuple_u64u16ZZ LDKCOption_C2Tuple_u64u16ZZ_ref_from_ptr(long ptr);
1378 // struct LDKChannelId CResult_ChannelIdAPIErrorZ_get_ok(LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR owner);
1379 public static native long CResult_ChannelIdAPIErrorZ_get_ok(long owner);
1380 // struct LDKAPIError CResult_ChannelIdAPIErrorZ_get_err(LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR owner);
1381 public static native long CResult_ChannelIdAPIErrorZ_get_err(long owner);
1382 public static class LDKRecentPaymentDetails {
1383 private LDKRecentPaymentDetails() {}
1384 public final static class AwaitingInvoice extends LDKRecentPaymentDetails {
1385 public byte[] payment_id;
1386 AwaitingInvoice(byte[] payment_id) { this.payment_id = payment_id; }
1388 public final static class Pending extends LDKRecentPaymentDetails {
1389 public byte[] payment_id;
1390 public byte[] payment_hash;
1391 public long total_msat;
1392 Pending(byte[] payment_id, byte[] payment_hash, long total_msat) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.total_msat = total_msat; }
1394 public final static class Fulfilled extends LDKRecentPaymentDetails {
1395 public byte[] payment_id;
1396 public long payment_hash;
1397 Fulfilled(byte[] payment_id, long payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
1399 public final static class Abandoned extends LDKRecentPaymentDetails {
1400 public byte[] payment_id;
1401 public byte[] payment_hash;
1402 Abandoned(byte[] payment_id, byte[] payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
1404 static native void init();
1406 static { LDKRecentPaymentDetails.init(); }
1407 public static native LDKRecentPaymentDetails LDKRecentPaymentDetails_ref_from_ptr(long ptr);
1408 public static class LDKPaymentSendFailure {
1409 private LDKPaymentSendFailure() {}
1410 public final static class ParameterError extends LDKPaymentSendFailure {
1411 public long parameter_error;
1412 ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
1414 public final static class PathParameterError extends LDKPaymentSendFailure {
1415 public long[] path_parameter_error;
1416 PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
1418 public final static class AllFailedResendSafe extends LDKPaymentSendFailure {
1419 public long[] all_failed_resend_safe;
1420 AllFailedResendSafe(long[] all_failed_resend_safe) { this.all_failed_resend_safe = all_failed_resend_safe; }
1422 public final static class DuplicatePayment extends LDKPaymentSendFailure {
1423 DuplicatePayment() { }
1425 public final static class PartialFailure extends LDKPaymentSendFailure {
1426 public long[] results;
1427 public long failed_paths_retry;
1428 public byte[] payment_id;
1429 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; }
1431 static native void init();
1433 static { LDKPaymentSendFailure.init(); }
1434 public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
1435 // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1436 public static native void CResult_NonePaymentSendFailureZ_get_ok(long owner);
1437 // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1438 public static native long CResult_NonePaymentSendFailureZ_get_err(long owner);
1439 // void CResult_NoneRetryableSendFailureZ_get_ok(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1440 public static native void CResult_NoneRetryableSendFailureZ_get_ok(long owner);
1441 // enum LDKRetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1442 public static native RetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(long owner);
1443 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner);
1444 public static native byte[] CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(long owner);
1445 // struct LDKPaymentSendFailure CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner);
1446 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(long owner);
1447 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner);
1448 public static native byte[] CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(long owner);
1449 // enum LDKRetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner);
1450 public static native RetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(long owner);
1451 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner);
1452 public static native byte[] C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(long owner);
1453 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner);
1454 public static native byte[] C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(long owner);
1455 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner);
1456 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(long owner);
1457 // struct LDKPaymentSendFailure CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner);
1458 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(long owner);
1459 public static class LDKProbeSendFailure {
1460 private LDKProbeSendFailure() {}
1461 public final static class RouteNotFound extends LDKProbeSendFailure {
1464 public final static class SendingFailed extends LDKProbeSendFailure {
1465 public long sending_failed;
1466 SendingFailed(long sending_failed) { this.sending_failed = sending_failed; }
1468 static native void init();
1470 static { LDKProbeSendFailure.init(); }
1471 public static native LDKProbeSendFailure LDKProbeSendFailure_ref_from_ptr(long ptr);
1472 // struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner);
1473 public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(long owner);
1474 // struct LDKProbeSendFailure CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner);
1475 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(long owner);
1476 // struct LDKChannelId C2Tuple_ChannelIdPublicKeyZ_get_a(LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR owner);
1477 public static native long C2Tuple_ChannelIdPublicKeyZ_get_a(long owner);
1478 // struct LDKPublicKey C2Tuple_ChannelIdPublicKeyZ_get_b(LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR owner);
1479 public static native byte[] C2Tuple_ChannelIdPublicKeyZ_get_b(long owner);
1480 // struct LDKOfferWithDerivedMetadataBuilder CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
1481 public static native long CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(long owner);
1482 // enum LDKBolt12SemanticError CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
1483 public static native Bolt12SemanticError CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(long owner);
1484 public static class LDKCOption_StrZ {
1485 private LDKCOption_StrZ() {}
1486 public final static class Some extends LDKCOption_StrZ {
1487 public java.lang.String some;
1488 Some(java.lang.String some) { this.some = some; }
1490 public final static class None extends LDKCOption_StrZ {
1493 static native void init();
1495 static { LDKCOption_StrZ.init(); }
1496 public static native LDKCOption_StrZ LDKCOption_StrZ_ref_from_ptr(long ptr);
1497 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner);
1498 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(long owner);
1499 // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner);
1500 public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(long owner);
1501 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesAPIErrorZ_get_ok(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner);
1502 public static native byte[] CResult_ThirtyTwoBytesAPIErrorZ_get_ok(long owner);
1503 // struct LDKAPIError CResult_ThirtyTwoBytesAPIErrorZ_get_err(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner);
1504 public static native long CResult_ThirtyTwoBytesAPIErrorZ_get_err(long owner);
1505 public static class LDKOffersMessage {
1506 private LDKOffersMessage() {}
1507 public final static class InvoiceRequest extends LDKOffersMessage {
1508 public long invoice_request;
1509 InvoiceRequest(long invoice_request) { this.invoice_request = invoice_request; }
1511 public final static class Invoice extends LDKOffersMessage {
1512 public long invoice;
1513 Invoice(long invoice) { this.invoice = invoice; }
1515 public final static class InvoiceError extends LDKOffersMessage {
1516 public long invoice_error;
1517 InvoiceError(long invoice_error) { this.invoice_error = invoice_error; }
1519 static native void init();
1521 static { LDKOffersMessage.init(); }
1522 public static native LDKOffersMessage LDKOffersMessage_ref_from_ptr(long ptr);
1523 public static class LDKCOption_OffersMessageZ {
1524 private LDKCOption_OffersMessageZ() {}
1525 public final static class Some extends LDKCOption_OffersMessageZ {
1527 Some(long some) { this.some = some; }
1529 public final static class None extends LDKCOption_OffersMessageZ {
1532 static native void init();
1534 static { LDKCOption_OffersMessageZ.init(); }
1535 public static native LDKCOption_OffersMessageZ LDKCOption_OffersMessageZ_ref_from_ptr(long ptr);
1536 public static class LDKDestination {
1537 private LDKDestination() {}
1538 public final static class Node extends LDKDestination {
1540 Node(byte[] node) { this.node = node; }
1542 public final static class BlindedPath extends LDKDestination {
1543 public long blinded_path;
1544 BlindedPath(long blinded_path) { this.blinded_path = blinded_path; }
1546 static native void init();
1548 static { LDKDestination.init(); }
1549 public static native LDKDestination LDKDestination_ref_from_ptr(long ptr);
1550 // struct LDKOffersMessage C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1551 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(long owner);
1552 // struct LDKDestination C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1553 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(long owner);
1554 // struct LDKBlindedPath C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1555 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(long owner);
1556 // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1557 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_ok(long owner);
1558 // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1559 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_err(long owner);
1560 // struct LDKBlindedForward CResult_BlindedForwardDecodeErrorZ_get_ok(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR owner);
1561 public static native long CResult_BlindedForwardDecodeErrorZ_get_ok(long owner);
1562 // struct LDKDecodeError CResult_BlindedForwardDecodeErrorZ_get_err(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR owner);
1563 public static native long CResult_BlindedForwardDecodeErrorZ_get_err(long owner);
1564 public static class LDKPendingHTLCRouting {
1565 private LDKPendingHTLCRouting() {}
1566 public final static class Forward extends LDKPendingHTLCRouting {
1567 public long onion_packet;
1568 public long short_channel_id;
1569 public long blinded;
1570 Forward(long onion_packet, long short_channel_id, long blinded) { this.onion_packet = onion_packet; this.short_channel_id = short_channel_id; this.blinded = blinded; }
1572 public final static class Receive extends LDKPendingHTLCRouting {
1573 public long payment_data;
1574 public long payment_metadata;
1575 public long payment_context;
1576 public int incoming_cltv_expiry;
1577 public byte[] phantom_shared_secret;
1578 public long[] custom_tlvs;
1579 public boolean requires_blinded_error;
1580 Receive(long payment_data, long payment_metadata, long payment_context, int incoming_cltv_expiry, byte[] phantom_shared_secret, long[] custom_tlvs, boolean requires_blinded_error) { this.payment_data = payment_data; this.payment_metadata = payment_metadata; this.payment_context = payment_context; this.incoming_cltv_expiry = incoming_cltv_expiry; this.phantom_shared_secret = phantom_shared_secret; this.custom_tlvs = custom_tlvs; this.requires_blinded_error = requires_blinded_error; }
1582 public final static class ReceiveKeysend extends LDKPendingHTLCRouting {
1583 public long payment_data;
1584 public byte[] payment_preimage;
1585 public long payment_metadata;
1586 public int incoming_cltv_expiry;
1587 public long[] custom_tlvs;
1588 public boolean requires_blinded_error;
1589 ReceiveKeysend(long payment_data, byte[] payment_preimage, long payment_metadata, int incoming_cltv_expiry, long[] custom_tlvs, boolean requires_blinded_error) { this.payment_data = payment_data; this.payment_preimage = payment_preimage; this.payment_metadata = payment_metadata; this.incoming_cltv_expiry = incoming_cltv_expiry; this.custom_tlvs = custom_tlvs; this.requires_blinded_error = requires_blinded_error; }
1591 static native void init();
1593 static { LDKPendingHTLCRouting.init(); }
1594 public static native LDKPendingHTLCRouting LDKPendingHTLCRouting_ref_from_ptr(long ptr);
1595 // struct LDKPendingHTLCRouting CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR owner);
1596 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(long owner);
1597 // struct LDKDecodeError CResult_PendingHTLCRoutingDecodeErrorZ_get_err(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR owner);
1598 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_get_err(long owner);
1599 // struct LDKPendingHTLCInfo CResult_PendingHTLCInfoDecodeErrorZ_get_ok(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR owner);
1600 public static native long CResult_PendingHTLCInfoDecodeErrorZ_get_ok(long owner);
1601 // struct LDKDecodeError CResult_PendingHTLCInfoDecodeErrorZ_get_err(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR owner);
1602 public static native long CResult_PendingHTLCInfoDecodeErrorZ_get_err(long owner);
1603 // enum LDKBlindedFailure CResult_BlindedFailureDecodeErrorZ_get_ok(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR owner);
1604 public static native BlindedFailure CResult_BlindedFailureDecodeErrorZ_get_ok(long owner);
1605 // struct LDKDecodeError CResult_BlindedFailureDecodeErrorZ_get_err(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR owner);
1606 public static native long CResult_BlindedFailureDecodeErrorZ_get_err(long owner);
1607 public interface LDKWatch {
1608 long watch_channel(long funding_txo, long monitor);
1609 ChannelMonitorUpdateStatus update_channel(long funding_txo, long update);
1610 long[] release_pending_monitor_events();
1612 public static native long LDKWatch_new(LDKWatch impl);
1613 // LDKCResult_ChannelMonitorUpdateStatusNoneZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
1614 public static native long Watch_watch_channel(long this_arg, long funding_txo, long monitor);
1615 // LDKChannelMonitorUpdateStatus Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update
1616 public static native ChannelMonitorUpdateStatus Watch_update_channel(long this_arg, long funding_txo, long update);
1617 // LDKCVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
1618 public static native long[] Watch_release_pending_monitor_events(long this_arg);
1619 public interface LDKBroadcasterInterface {
1620 void broadcast_transactions(byte[][] txs);
1622 public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
1623 // void BroadcasterInterface_broadcast_transactions LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKCVec_TransactionZ txs
1624 public static native void BroadcasterInterface_broadcast_transactions(long this_arg, byte[][] txs);
1625 public interface LDKEntropySource {
1626 byte[] get_secure_random_bytes();
1628 public static native long LDKEntropySource_new(LDKEntropySource impl);
1629 // LDKThirtyTwoBytes EntropySource_get_secure_random_bytes LDKEntropySource *NONNULL_PTR this_arg
1630 public static native byte[] EntropySource_get_secure_random_bytes(long this_arg);
1631 public static class LDKUnsignedGossipMessage {
1632 private LDKUnsignedGossipMessage() {}
1633 public final static class ChannelAnnouncement extends LDKUnsignedGossipMessage {
1634 public long channel_announcement;
1635 ChannelAnnouncement(long channel_announcement) { this.channel_announcement = channel_announcement; }
1637 public final static class ChannelUpdate extends LDKUnsignedGossipMessage {
1638 public long channel_update;
1639 ChannelUpdate(long channel_update) { this.channel_update = channel_update; }
1641 public final static class NodeAnnouncement extends LDKUnsignedGossipMessage {
1642 public long node_announcement;
1643 NodeAnnouncement(long node_announcement) { this.node_announcement = node_announcement; }
1645 static native void init();
1647 static { LDKUnsignedGossipMessage.init(); }
1648 public static native LDKUnsignedGossipMessage LDKUnsignedGossipMessage_ref_from_ptr(long ptr);
1649 public interface LDKNodeSigner {
1650 byte[] get_inbound_payment_key_material();
1651 long get_node_id(Recipient recipient);
1652 long ecdh(Recipient recipient, byte[] other_key, long tweak);
1653 long sign_invoice(byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1654 long sign_bolt12_invoice_request(long invoice_request);
1655 long sign_bolt12_invoice(long invoice);
1656 long sign_gossip_message(long msg);
1658 public static native long LDKNodeSigner_new(LDKNodeSigner impl);
1659 // LDKThirtyTwoBytes NodeSigner_get_inbound_payment_key_material LDKNodeSigner *NONNULL_PTR this_arg
1660 public static native byte[] NodeSigner_get_inbound_payment_key_material(long this_arg);
1661 // LDKCResult_PublicKeyNoneZ NodeSigner_get_node_id LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient
1662 public static native long NodeSigner_get_node_id(long this_arg, Recipient recipient);
1663 // LDKCResult_ThirtyTwoBytesNoneZ NodeSigner_ecdh LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_BigEndianScalarZ tweak
1664 public static native long NodeSigner_ecdh(long this_arg, Recipient recipient, byte[] other_key, long tweak);
1665 // LDKCResult_RecoverableSignatureNoneZ NodeSigner_sign_invoice LDKNodeSigner *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient
1666 public static native long NodeSigner_sign_invoice(long this_arg, byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1667 // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice_request LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR invoice_request
1668 public static native long NodeSigner_sign_bolt12_invoice_request(long this_arg, long invoice_request);
1669 // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR invoice
1670 public static native long NodeSigner_sign_bolt12_invoice(long this_arg, long invoice);
1671 // LDKCResult_ECDSASignatureNoneZ NodeSigner_sign_gossip_message LDKNodeSigner *NONNULL_PTR this_arg, struct LDKUnsignedGossipMessage msg
1672 public static native long NodeSigner_sign_gossip_message(long this_arg, long msg);
1673 public interface LDKSignerProvider {
1674 byte[] generate_channel_keys_id(boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1675 long derive_channel_signer(long channel_value_satoshis, byte[] channel_keys_id);
1676 long read_chan_signer(byte[] reader);
1677 long get_destination_script(byte[] channel_keys_id);
1678 long get_shutdown_scriptpubkey();
1680 public static native long LDKSignerProvider_new(LDKSignerProvider impl);
1681 // LDKThirtyTwoBytes SignerProvider_generate_channel_keys_id LDKSignerProvider *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis, struct LDKU128 user_channel_id
1682 public static native byte[] SignerProvider_generate_channel_keys_id(long this_arg, boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1683 // LDKWriteableEcdsaChannelSigner SignerProvider_derive_channel_signer LDKSignerProvider *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id
1684 public static native long SignerProvider_derive_channel_signer(long this_arg, long channel_value_satoshis, byte[] channel_keys_id);
1685 // LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ SignerProvider_read_chan_signer LDKSignerProvider *NONNULL_PTR this_arg, struct LDKu8slice reader
1686 public static native long SignerProvider_read_chan_signer(long this_arg, byte[] reader);
1687 // LDKCResult_CVec_u8ZNoneZ SignerProvider_get_destination_script LDKSignerProvider *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes channel_keys_id
1688 public static native long SignerProvider_get_destination_script(long this_arg, byte[] channel_keys_id);
1689 // LDKCResult_ShutdownScriptNoneZ SignerProvider_get_shutdown_scriptpubkey LDKSignerProvider *NONNULL_PTR this_arg
1690 public static native long SignerProvider_get_shutdown_scriptpubkey(long this_arg);
1691 public interface LDKFeeEstimator {
1692 int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target);
1694 public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
1695 // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
1696 public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, ConfirmationTarget confirmation_target);
1697 public interface LDKMessageRouter {
1698 long find_path(byte[] sender, byte[][] peers, long destination);
1699 long create_blinded_paths(byte[] recipient, byte[][] peers);
1701 public static native long LDKMessageRouter_new(LDKMessageRouter impl);
1702 // LDKCResult_OnionMessagePathNoneZ MessageRouter_find_path LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey sender, struct LDKCVec_PublicKeyZ peers, struct LDKDestination destination
1703 public static native long MessageRouter_find_path(long this_arg, byte[] sender, byte[][] peers, long destination);
1704 // LDKCResult_CVec_BlindedPathZNoneZ MessageRouter_create_blinded_paths LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey recipient, struct LDKCVec_PublicKeyZ peers
1705 public static native long MessageRouter_create_blinded_paths(long this_arg, byte[] recipient, byte[][] peers);
1706 public interface LDKRouter {
1707 long find_route(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1708 long find_route_with_id(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs, byte[] _payment_hash, byte[] _payment_id);
1709 long create_blinded_payment_paths(byte[] recipient, long[] first_hops, long tlvs, long amount_msats);
1711 public static native long LDKRouter_new(LDKRouter impl, LDKMessageRouter MessageRouter);
1712 public static native long LDKRouter_get_MessageRouter(long arg);
1713 // 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
1714 public static native long Router_find_route(long this_arg, byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1715 // 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
1716 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);
1717 // LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ Router_create_blinded_payment_paths LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey recipient, struct LDKCVec_ChannelDetailsZ first_hops, struct LDKReceiveTlvs tlvs, uint64_t amount_msats
1718 public static native long Router_create_blinded_payment_paths(long this_arg, byte[] recipient, long[] first_hops, long tlvs, long amount_msats);
1719 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner);
1720 public static native byte[] C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(long owner);
1721 // struct LDKChannelManager C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner);
1722 public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(long owner);
1723 // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1724 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(long owner);
1725 // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1726 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(long owner);
1727 public static class LDKMaxDustHTLCExposure {
1728 private LDKMaxDustHTLCExposure() {}
1729 public final static class FixedLimitMsat extends LDKMaxDustHTLCExposure {
1730 public long fixed_limit_msat;
1731 FixedLimitMsat(long fixed_limit_msat) { this.fixed_limit_msat = fixed_limit_msat; }
1733 public final static class FeeRateMultiplier extends LDKMaxDustHTLCExposure {
1734 public long fee_rate_multiplier;
1735 FeeRateMultiplier(long fee_rate_multiplier) { this.fee_rate_multiplier = fee_rate_multiplier; }
1737 static native void init();
1739 static { LDKMaxDustHTLCExposure.init(); }
1740 public static native LDKMaxDustHTLCExposure LDKMaxDustHTLCExposure_ref_from_ptr(long ptr);
1741 // struct LDKMaxDustHTLCExposure CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1742 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(long owner);
1743 // struct LDKDecodeError CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1744 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(long owner);
1745 // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1746 public static native long CResult_ChannelConfigDecodeErrorZ_get_ok(long owner);
1747 // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1748 public static native long CResult_ChannelConfigDecodeErrorZ_get_err(long owner);
1749 public static class LDKCOption_MaxDustHTLCExposureZ {
1750 private LDKCOption_MaxDustHTLCExposureZ() {}
1751 public final static class Some extends LDKCOption_MaxDustHTLCExposureZ {
1753 Some(long some) { this.some = some; }
1755 public final static class None extends LDKCOption_MaxDustHTLCExposureZ {
1758 static native void init();
1760 static { LDKCOption_MaxDustHTLCExposureZ.init(); }
1761 public static native LDKCOption_MaxDustHTLCExposureZ LDKCOption_MaxDustHTLCExposureZ_ref_from_ptr(long ptr);
1762 public static class LDKCOption_APIErrorZ {
1763 private LDKCOption_APIErrorZ() {}
1764 public final static class Some extends LDKCOption_APIErrorZ {
1766 Some(long some) { this.some = some; }
1768 public final static class None extends LDKCOption_APIErrorZ {
1771 static native void init();
1773 static { LDKCOption_APIErrorZ.init(); }
1774 public static native LDKCOption_APIErrorZ LDKCOption_APIErrorZ_ref_from_ptr(long ptr);
1775 // struct LDKCOption_APIErrorZ CResult_COption_APIErrorZDecodeErrorZ_get_ok(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1776 public static native long CResult_COption_APIErrorZDecodeErrorZ_get_ok(long owner);
1777 // struct LDKDecodeError CResult_COption_APIErrorZDecodeErrorZ_get_err(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1778 public static native long CResult_COption_APIErrorZDecodeErrorZ_get_err(long owner);
1779 // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1780 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long owner);
1781 // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1782 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long owner);
1783 public static class LDKCOption_MonitorEventZ {
1784 private LDKCOption_MonitorEventZ() {}
1785 public final static class Some extends LDKCOption_MonitorEventZ {
1787 Some(long some) { this.some = some; }
1789 public final static class None extends LDKCOption_MonitorEventZ {
1792 static native void init();
1794 static { LDKCOption_MonitorEventZ.init(); }
1795 public static native LDKCOption_MonitorEventZ LDKCOption_MonitorEventZ_ref_from_ptr(long ptr);
1796 // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1797 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_ok(long owner);
1798 // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1799 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_err(long owner);
1800 // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1801 public static native long CResult_HTLCUpdateDecodeErrorZ_get_ok(long owner);
1802 // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1803 public static native long CResult_HTLCUpdateDecodeErrorZ_get_err(long owner);
1804 // struct LDKOutPoint C2Tuple_OutPointCVec_u8ZZ_get_a(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner);
1805 public static native long C2Tuple_OutPointCVec_u8ZZ_get_a(long owner);
1806 // struct LDKCVec_u8Z C2Tuple_OutPointCVec_u8ZZ_get_b(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner);
1807 public static native byte[] C2Tuple_OutPointCVec_u8ZZ_get_b(long owner);
1808 // uint32_t C2Tuple_u32CVec_u8ZZ_get_a(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner);
1809 public static native int C2Tuple_u32CVec_u8ZZ_get_a(long owner);
1810 // struct LDKCVec_u8Z C2Tuple_u32CVec_u8ZZ_get_b(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner);
1811 public static native byte[] C2Tuple_u32CVec_u8ZZ_get_b(long owner);
1812 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner);
1813 public static native byte[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(long owner);
1814 // struct LDKCVec_C2Tuple_u32CVec_u8ZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner);
1815 public static native long[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(long owner);
1816 // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1817 public static native int C2Tuple_u32TxOutZ_get_a(long owner);
1818 // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1819 public static native long C2Tuple_u32TxOutZ_get_b(long owner);
1820 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1821 public static native byte[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(long owner);
1822 // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1823 public static native long[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(long owner);
1824 public static class LDKBalance {
1825 private LDKBalance() {}
1826 public final static class ClaimableOnChannelClose extends LDKBalance {
1827 public long amount_satoshis;
1828 ClaimableOnChannelClose(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1830 public final static class ClaimableAwaitingConfirmations extends LDKBalance {
1831 public long amount_satoshis;
1832 public int confirmation_height;
1833 ClaimableAwaitingConfirmations(long amount_satoshis, int confirmation_height) { this.amount_satoshis = amount_satoshis; this.confirmation_height = confirmation_height; }
1835 public final static class ContentiousClaimable extends LDKBalance {
1836 public long amount_satoshis;
1837 public int timeout_height;
1838 public byte[] payment_hash;
1839 public byte[] payment_preimage;
1840 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; }
1842 public final static class MaybeTimeoutClaimableHTLC extends LDKBalance {
1843 public long amount_satoshis;
1844 public int claimable_height;
1845 public byte[] payment_hash;
1846 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; }
1848 public final static class MaybePreimageClaimableHTLC extends LDKBalance {
1849 public long amount_satoshis;
1850 public int expiry_height;
1851 public byte[] payment_hash;
1852 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; }
1854 public final static class CounterpartyRevokedOutputClaimable extends LDKBalance {
1855 public long amount_satoshis;
1856 CounterpartyRevokedOutputClaimable(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1858 static native void init();
1860 static { LDKBalance.init(); }
1861 public static native LDKBalance LDKBalance_ref_from_ptr(long ptr);
1862 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner);
1863 public static native byte[] C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(long owner);
1864 // struct LDKChannelMonitor C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner);
1865 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(long owner);
1866 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1867 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(long owner);
1868 // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1869 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(long owner);
1870 public interface LDKType {
1875 public static native long LDKType_new(LDKType impl);
1876 // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
1877 public static native short Type_type_id(long this_arg);
1878 // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
1879 public static native String Type_debug_str(long this_arg);
1880 // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
1881 public static native byte[] Type_write(long this_arg);
1882 // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1883 public static native byte[] C2Tuple_PublicKeyTypeZ_get_a(long owner);
1884 // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1885 public static native long C2Tuple_PublicKeyTypeZ_get_b(long owner);
1886 // struct LDKPublicKey C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR owner);
1887 public static native byte[] C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a(long owner);
1888 // struct LDKCVec_SocketAddressZ C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR owner);
1889 public static native long[] C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b(long owner);
1890 public interface LDKOnionMessageContents {
1895 public static native long LDKOnionMessageContents_new(LDKOnionMessageContents impl);
1896 // uint64_t OnionMessageContents_tlv_type LDKOnionMessageContents *NONNULL_PTR this_arg
1897 public static native long OnionMessageContents_tlv_type(long this_arg);
1898 // LDKCVec_u8Z OnionMessageContents_write LDKOnionMessageContents *NONNULL_PTR this_arg
1899 public static native byte[] OnionMessageContents_write(long this_arg);
1900 // LDKStr OnionMessageContents_debug_str LDKOnionMessageContents *NONNULL_PTR this_arg
1901 public static native String OnionMessageContents_debug_str(long this_arg);
1902 public static class LDKCOption_OnionMessageContentsZ {
1903 private LDKCOption_OnionMessageContentsZ() {}
1904 public final static class Some extends LDKCOption_OnionMessageContentsZ {
1906 Some(long some) { this.some = some; }
1908 public final static class None extends LDKCOption_OnionMessageContentsZ {
1911 static native void init();
1913 static { LDKCOption_OnionMessageContentsZ.init(); }
1914 public static native LDKCOption_OnionMessageContentsZ LDKCOption_OnionMessageContentsZ_ref_from_ptr(long ptr);
1915 // struct LDKCOption_OnionMessageContentsZ CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1916 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(long owner);
1917 // struct LDKDecodeError CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1918 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(long owner);
1919 // struct LDKOnionMessageContents C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1920 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(long owner);
1921 // struct LDKDestination C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1922 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(long owner);
1923 // struct LDKBlindedPath C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1924 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(long owner);
1925 public static class LDKCOption_TypeZ {
1926 private LDKCOption_TypeZ() {}
1927 public final static class Some extends LDKCOption_TypeZ {
1929 Some(long some) { this.some = some; }
1931 public final static class None extends LDKCOption_TypeZ {
1934 static native void init();
1936 static { LDKCOption_TypeZ.init(); }
1937 public static native LDKCOption_TypeZ LDKCOption_TypeZ_ref_from_ptr(long ptr);
1938 // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1939 public static native long CResult_COption_TypeZDecodeErrorZ_get_ok(long owner);
1940 // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1941 public static native long CResult_COption_TypeZDecodeErrorZ_get_err(long owner);
1942 public static class LDKCOption_SocketAddressZ {
1943 private LDKCOption_SocketAddressZ() {}
1944 public final static class Some extends LDKCOption_SocketAddressZ {
1946 Some(long some) { this.some = some; }
1948 public final static class None extends LDKCOption_SocketAddressZ {
1951 static native void init();
1953 static { LDKCOption_SocketAddressZ.init(); }
1954 public static native LDKCOption_SocketAddressZ LDKCOption_SocketAddressZ_ref_from_ptr(long ptr);
1955 // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1956 public static native byte[] CResult_CVec_u8ZPeerHandleErrorZ_get_ok(long owner);
1957 // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1958 public static native long CResult_CVec_u8ZPeerHandleErrorZ_get_err(long owner);
1959 // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1960 public static native void CResult_NonePeerHandleErrorZ_get_ok(long owner);
1961 // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1962 public static native long CResult_NonePeerHandleErrorZ_get_err(long owner);
1963 // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1964 public static native boolean CResult_boolPeerHandleErrorZ_get_ok(long owner);
1965 // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1966 public static native long CResult_boolPeerHandleErrorZ_get_err(long owner);
1967 public static class LDKGraphSyncError {
1968 private LDKGraphSyncError() {}
1969 public final static class DecodeError extends LDKGraphSyncError {
1970 public long decode_error;
1971 DecodeError(long decode_error) { this.decode_error = decode_error; }
1973 public final static class LightningError extends LDKGraphSyncError {
1974 public long lightning_error;
1975 LightningError(long lightning_error) { this.lightning_error = lightning_error; }
1977 static native void init();
1979 static { LDKGraphSyncError.init(); }
1980 public static native LDKGraphSyncError LDKGraphSyncError_ref_from_ptr(long ptr);
1981 // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1982 public static native int CResult_u32GraphSyncErrorZ_get_ok(long owner);
1983 // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1984 public static native long CResult_u32GraphSyncErrorZ_get_err(long owner);
1985 // struct LDKCVec_u8Z CResult_CVec_u8ZIOErrorZ_get_ok(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner);
1986 public static native byte[] CResult_CVec_u8ZIOErrorZ_get_ok(long owner);
1987 // enum LDKIOError CResult_CVec_u8ZIOErrorZ_get_err(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner);
1988 public static native IOError CResult_CVec_u8ZIOErrorZ_get_err(long owner);
1989 // struct LDKCVec_StrZ CResult_CVec_StrZIOErrorZ_get_ok(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner);
1990 public static native String[] CResult_CVec_StrZIOErrorZ_get_ok(long owner);
1991 // enum LDKIOError CResult_CVec_StrZIOErrorZ_get_err(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner);
1992 public static native IOError CResult_CVec_StrZIOErrorZ_get_err(long owner);
1993 // struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner);
1994 public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(long owner);
1995 // enum LDKIOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner);
1996 public static native IOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(long owner);
1997 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner);
1998 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(long owner);
1999 // enum LDKIOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner);
2000 public static native IOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(long owner);
2001 // struct LDKUnsignedInvoiceRequest CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_ok(LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner);
2002 public static native long CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_ok(long owner);
2003 // enum LDKBolt12SemanticError CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_err(LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner);
2004 public static native Bolt12SemanticError CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_err(long owner);
2005 // struct LDKInvoiceRequest CResult_InvoiceRequestBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner);
2006 public static native long CResult_InvoiceRequestBolt12SemanticErrorZ_get_ok(long owner);
2007 // enum LDKBolt12SemanticError CResult_InvoiceRequestBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner);
2008 public static native Bolt12SemanticError CResult_InvoiceRequestBolt12SemanticErrorZ_get_err(long owner);
2009 public static class LDKCOption_SecretKeyZ {
2010 private LDKCOption_SecretKeyZ() {}
2011 public final static class Some extends LDKCOption_SecretKeyZ {
2013 Some(byte[] some) { this.some = some; }
2015 public final static class None extends LDKCOption_SecretKeyZ {
2018 static native void init();
2020 static { LDKCOption_SecretKeyZ.init(); }
2021 public static native LDKCOption_SecretKeyZ LDKCOption_SecretKeyZ_ref_from_ptr(long ptr);
2022 // struct LDKInvoiceWithExplicitSigningPubkeyBuilder CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
2023 public static native long CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(long owner);
2024 // enum LDKBolt12SemanticError CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
2025 public static native Bolt12SemanticError CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(long owner);
2026 // struct LDKVerifiedInvoiceRequest CResult_VerifiedInvoiceRequestNoneZ_get_ok(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner);
2027 public static native long CResult_VerifiedInvoiceRequestNoneZ_get_ok(long owner);
2028 // void CResult_VerifiedInvoiceRequestNoneZ_get_err(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner);
2029 public static native void CResult_VerifiedInvoiceRequestNoneZ_get_err(long owner);
2030 // struct LDKInvoiceWithDerivedSigningPubkeyBuilder CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
2031 public static native long CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(long owner);
2032 // enum LDKBolt12SemanticError CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner);
2033 public static native Bolt12SemanticError CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(long owner);
2034 // struct LDKInvoiceRequestFields CResult_InvoiceRequestFieldsDecodeErrorZ_get_ok(LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR owner);
2035 public static native long CResult_InvoiceRequestFieldsDecodeErrorZ_get_ok(long owner);
2036 // struct LDKDecodeError CResult_InvoiceRequestFieldsDecodeErrorZ_get_err(LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR owner);
2037 public static native long CResult_InvoiceRequestFieldsDecodeErrorZ_get_err(long owner);
2038 public static class LDKCOption_ECDSASignatureZ {
2039 private LDKCOption_ECDSASignatureZ() {}
2040 public final static class Some extends LDKCOption_ECDSASignatureZ {
2042 Some(byte[] some) { this.some = some; }
2044 public final static class None extends LDKCOption_ECDSASignatureZ {
2047 static native void init();
2049 static { LDKCOption_ECDSASignatureZ.init(); }
2050 public static native LDKCOption_ECDSASignatureZ LDKCOption_ECDSASignatureZ_ref_from_ptr(long ptr);
2051 public static class LDKCOption_i64Z {
2052 private LDKCOption_i64Z() {}
2053 public final static class Some extends LDKCOption_i64Z {
2055 Some(long some) { this.some = some; }
2057 public final static class None extends LDKCOption_i64Z {
2060 static native void init();
2062 static { LDKCOption_i64Z.init(); }
2063 public static native LDKCOption_i64Z LDKCOption_i64Z_ref_from_ptr(long ptr);
2064 // struct LDKSocketAddress CResult_SocketAddressDecodeErrorZ_get_ok(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner);
2065 public static native long CResult_SocketAddressDecodeErrorZ_get_ok(long owner);
2066 // struct LDKDecodeError CResult_SocketAddressDecodeErrorZ_get_err(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner);
2067 public static native long CResult_SocketAddressDecodeErrorZ_get_err(long owner);
2068 // struct LDKSocketAddress CResult_SocketAddressSocketAddressParseErrorZ_get_ok(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner);
2069 public static native long CResult_SocketAddressSocketAddressParseErrorZ_get_ok(long owner);
2070 // enum LDKSocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner);
2071 public static native SocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(long owner);
2072 // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
2073 public static native long CResult_AcceptChannelDecodeErrorZ_get_ok(long owner);
2074 // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
2075 public static native long CResult_AcceptChannelDecodeErrorZ_get_err(long owner);
2076 // struct LDKAcceptChannelV2 CResult_AcceptChannelV2DecodeErrorZ_get_ok(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
2077 public static native long CResult_AcceptChannelV2DecodeErrorZ_get_ok(long owner);
2078 // struct LDKDecodeError CResult_AcceptChannelV2DecodeErrorZ_get_err(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
2079 public static native long CResult_AcceptChannelV2DecodeErrorZ_get_err(long owner);
2080 // struct LDKStfu CResult_StfuDecodeErrorZ_get_ok(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR owner);
2081 public static native long CResult_StfuDecodeErrorZ_get_ok(long owner);
2082 // struct LDKDecodeError CResult_StfuDecodeErrorZ_get_err(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR owner);
2083 public static native long CResult_StfuDecodeErrorZ_get_err(long owner);
2084 // struct LDKSplice CResult_SpliceDecodeErrorZ_get_ok(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR owner);
2085 public static native long CResult_SpliceDecodeErrorZ_get_ok(long owner);
2086 // struct LDKDecodeError CResult_SpliceDecodeErrorZ_get_err(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR owner);
2087 public static native long CResult_SpliceDecodeErrorZ_get_err(long owner);
2088 // struct LDKSpliceAck CResult_SpliceAckDecodeErrorZ_get_ok(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR owner);
2089 public static native long CResult_SpliceAckDecodeErrorZ_get_ok(long owner);
2090 // struct LDKDecodeError CResult_SpliceAckDecodeErrorZ_get_err(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR owner);
2091 public static native long CResult_SpliceAckDecodeErrorZ_get_err(long owner);
2092 // struct LDKSpliceLocked CResult_SpliceLockedDecodeErrorZ_get_ok(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR owner);
2093 public static native long CResult_SpliceLockedDecodeErrorZ_get_ok(long owner);
2094 // struct LDKDecodeError CResult_SpliceLockedDecodeErrorZ_get_err(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR owner);
2095 public static native long CResult_SpliceLockedDecodeErrorZ_get_err(long owner);
2096 // struct LDKTxAddInput CResult_TxAddInputDecodeErrorZ_get_ok(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
2097 public static native long CResult_TxAddInputDecodeErrorZ_get_ok(long owner);
2098 // struct LDKDecodeError CResult_TxAddInputDecodeErrorZ_get_err(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
2099 public static native long CResult_TxAddInputDecodeErrorZ_get_err(long owner);
2100 // struct LDKTxAddOutput CResult_TxAddOutputDecodeErrorZ_get_ok(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
2101 public static native long CResult_TxAddOutputDecodeErrorZ_get_ok(long owner);
2102 // struct LDKDecodeError CResult_TxAddOutputDecodeErrorZ_get_err(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
2103 public static native long CResult_TxAddOutputDecodeErrorZ_get_err(long owner);
2104 // struct LDKTxRemoveInput CResult_TxRemoveInputDecodeErrorZ_get_ok(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
2105 public static native long CResult_TxRemoveInputDecodeErrorZ_get_ok(long owner);
2106 // struct LDKDecodeError CResult_TxRemoveInputDecodeErrorZ_get_err(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
2107 public static native long CResult_TxRemoveInputDecodeErrorZ_get_err(long owner);
2108 // struct LDKTxRemoveOutput CResult_TxRemoveOutputDecodeErrorZ_get_ok(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
2109 public static native long CResult_TxRemoveOutputDecodeErrorZ_get_ok(long owner);
2110 // struct LDKDecodeError CResult_TxRemoveOutputDecodeErrorZ_get_err(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
2111 public static native long CResult_TxRemoveOutputDecodeErrorZ_get_err(long owner);
2112 // struct LDKTxComplete CResult_TxCompleteDecodeErrorZ_get_ok(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
2113 public static native long CResult_TxCompleteDecodeErrorZ_get_ok(long owner);
2114 // struct LDKDecodeError CResult_TxCompleteDecodeErrorZ_get_err(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
2115 public static native long CResult_TxCompleteDecodeErrorZ_get_err(long owner);
2116 // struct LDKTxSignatures CResult_TxSignaturesDecodeErrorZ_get_ok(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
2117 public static native long CResult_TxSignaturesDecodeErrorZ_get_ok(long owner);
2118 // struct LDKDecodeError CResult_TxSignaturesDecodeErrorZ_get_err(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
2119 public static native long CResult_TxSignaturesDecodeErrorZ_get_err(long owner);
2120 // struct LDKTxInitRbf CResult_TxInitRbfDecodeErrorZ_get_ok(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
2121 public static native long CResult_TxInitRbfDecodeErrorZ_get_ok(long owner);
2122 // struct LDKDecodeError CResult_TxInitRbfDecodeErrorZ_get_err(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
2123 public static native long CResult_TxInitRbfDecodeErrorZ_get_err(long owner);
2124 // struct LDKTxAckRbf CResult_TxAckRbfDecodeErrorZ_get_ok(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
2125 public static native long CResult_TxAckRbfDecodeErrorZ_get_ok(long owner);
2126 // struct LDKDecodeError CResult_TxAckRbfDecodeErrorZ_get_err(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
2127 public static native long CResult_TxAckRbfDecodeErrorZ_get_err(long owner);
2128 // struct LDKTxAbort CResult_TxAbortDecodeErrorZ_get_ok(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
2129 public static native long CResult_TxAbortDecodeErrorZ_get_ok(long owner);
2130 // struct LDKDecodeError CResult_TxAbortDecodeErrorZ_get_err(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
2131 public static native long CResult_TxAbortDecodeErrorZ_get_err(long owner);
2132 // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
2133 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long owner);
2134 // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
2135 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_err(long owner);
2136 // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
2137 public static native long CResult_ChannelReestablishDecodeErrorZ_get_ok(long owner);
2138 // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
2139 public static native long CResult_ChannelReestablishDecodeErrorZ_get_err(long owner);
2140 // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
2141 public static native long CResult_ClosingSignedDecodeErrorZ_get_ok(long owner);
2142 // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
2143 public static native long CResult_ClosingSignedDecodeErrorZ_get_err(long owner);
2144 // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
2145 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long owner);
2146 // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
2147 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(long owner);
2148 // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
2149 public static native long CResult_CommitmentSignedDecodeErrorZ_get_ok(long owner);
2150 // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
2151 public static native long CResult_CommitmentSignedDecodeErrorZ_get_err(long owner);
2152 // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
2153 public static native long CResult_FundingCreatedDecodeErrorZ_get_ok(long owner);
2154 // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
2155 public static native long CResult_FundingCreatedDecodeErrorZ_get_err(long owner);
2156 // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
2157 public static native long CResult_FundingSignedDecodeErrorZ_get_ok(long owner);
2158 // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
2159 public static native long CResult_FundingSignedDecodeErrorZ_get_err(long owner);
2160 // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
2161 public static native long CResult_ChannelReadyDecodeErrorZ_get_ok(long owner);
2162 // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
2163 public static native long CResult_ChannelReadyDecodeErrorZ_get_err(long owner);
2164 // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
2165 public static native long CResult_InitDecodeErrorZ_get_ok(long owner);
2166 // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
2167 public static native long CResult_InitDecodeErrorZ_get_err(long owner);
2168 // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
2169 public static native long CResult_OpenChannelDecodeErrorZ_get_ok(long owner);
2170 // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
2171 public static native long CResult_OpenChannelDecodeErrorZ_get_err(long owner);
2172 // struct LDKOpenChannelV2 CResult_OpenChannelV2DecodeErrorZ_get_ok(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
2173 public static native long CResult_OpenChannelV2DecodeErrorZ_get_ok(long owner);
2174 // struct LDKDecodeError CResult_OpenChannelV2DecodeErrorZ_get_err(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
2175 public static native long CResult_OpenChannelV2DecodeErrorZ_get_err(long owner);
2176 // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
2177 public static native long CResult_RevokeAndACKDecodeErrorZ_get_ok(long owner);
2178 // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
2179 public static native long CResult_RevokeAndACKDecodeErrorZ_get_err(long owner);
2180 // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
2181 public static native long CResult_ShutdownDecodeErrorZ_get_ok(long owner);
2182 // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
2183 public static native long CResult_ShutdownDecodeErrorZ_get_err(long owner);
2184 // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
2185 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_ok(long owner);
2186 // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
2187 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_err(long owner);
2188 // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
2189 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long owner);
2190 // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
2191 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long owner);
2192 // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
2193 public static native long CResult_UpdateFeeDecodeErrorZ_get_ok(long owner);
2194 // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
2195 public static native long CResult_UpdateFeeDecodeErrorZ_get_err(long owner);
2196 // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
2197 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long owner);
2198 // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
2199 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long owner);
2200 // struct LDKOnionPacket CResult_OnionPacketDecodeErrorZ_get_ok(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR owner);
2201 public static native long CResult_OnionPacketDecodeErrorZ_get_ok(long owner);
2202 // struct LDKDecodeError CResult_OnionPacketDecodeErrorZ_get_err(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR owner);
2203 public static native long CResult_OnionPacketDecodeErrorZ_get_err(long owner);
2204 // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
2205 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_ok(long owner);
2206 // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
2207 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_err(long owner);
2208 // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
2209 public static native long CResult_OnionMessageDecodeErrorZ_get_ok(long owner);
2210 // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
2211 public static native long CResult_OnionMessageDecodeErrorZ_get_err(long owner);
2212 // struct LDKFinalOnionHopData CResult_FinalOnionHopDataDecodeErrorZ_get_ok(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR owner);
2213 public static native long CResult_FinalOnionHopDataDecodeErrorZ_get_ok(long owner);
2214 // struct LDKDecodeError CResult_FinalOnionHopDataDecodeErrorZ_get_err(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR owner);
2215 public static native long CResult_FinalOnionHopDataDecodeErrorZ_get_err(long owner);
2216 // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
2217 public static native long CResult_PingDecodeErrorZ_get_ok(long owner);
2218 // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
2219 public static native long CResult_PingDecodeErrorZ_get_err(long owner);
2220 // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
2221 public static native long CResult_PongDecodeErrorZ_get_ok(long owner);
2222 // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
2223 public static native long CResult_PongDecodeErrorZ_get_err(long owner);
2224 // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2225 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long owner);
2226 // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2227 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long owner);
2228 // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2229 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_ok(long owner);
2230 // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2231 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_err(long owner);
2232 // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2233 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long owner);
2234 // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2235 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long owner);
2236 // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2237 public static native long CResult_ChannelUpdateDecodeErrorZ_get_ok(long owner);
2238 // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2239 public static native long CResult_ChannelUpdateDecodeErrorZ_get_err(long owner);
2240 // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
2241 public static native long CResult_ErrorMessageDecodeErrorZ_get_ok(long owner);
2242 // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
2243 public static native long CResult_ErrorMessageDecodeErrorZ_get_err(long owner);
2244 // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
2245 public static native long CResult_WarningMessageDecodeErrorZ_get_ok(long owner);
2246 // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
2247 public static native long CResult_WarningMessageDecodeErrorZ_get_err(long owner);
2248 // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2249 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long owner);
2250 // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2251 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long owner);
2252 // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2253 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_ok(long owner);
2254 // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2255 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_err(long owner);
2256 // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
2257 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long owner);
2258 // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
2259 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_err(long owner);
2260 // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
2261 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long owner);
2262 // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
2263 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long owner);
2264 // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2265 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_ok(long owner);
2266 // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2267 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_err(long owner);
2268 // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2269 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_ok(long owner);
2270 // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2271 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_err(long owner);
2272 // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
2273 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_ok(long owner);
2274 // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
2275 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_err(long owner);
2276 public static class LDKSignOrCreationError {
2277 private LDKSignOrCreationError() {}
2278 public final static class SignError extends LDKSignOrCreationError {
2281 public final static class CreationError extends LDKSignOrCreationError {
2282 public org.ldk.enums.CreationError creation_error;
2283 CreationError(org.ldk.enums.CreationError creation_error) { this.creation_error = creation_error; }
2285 static native void init();
2287 static { LDKSignOrCreationError.init(); }
2288 public static native LDKSignOrCreationError LDKSignOrCreationError_ref_from_ptr(long ptr);
2289 // struct LDKBolt11Invoice CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
2290 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(long owner);
2291 // struct LDKSignOrCreationError CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
2292 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(long owner);
2293 public static class LDKCOption_InboundHTLCStateDetailsZ {
2294 private LDKCOption_InboundHTLCStateDetailsZ() {}
2295 public final static class Some extends LDKCOption_InboundHTLCStateDetailsZ {
2296 public org.ldk.enums.InboundHTLCStateDetails some;
2297 Some(org.ldk.enums.InboundHTLCStateDetails some) { this.some = some; }
2299 public final static class None extends LDKCOption_InboundHTLCStateDetailsZ {
2302 static native void init();
2304 static { LDKCOption_InboundHTLCStateDetailsZ.init(); }
2305 public static native LDKCOption_InboundHTLCStateDetailsZ LDKCOption_InboundHTLCStateDetailsZ_ref_from_ptr(long ptr);
2306 // struct LDKCOption_InboundHTLCStateDetailsZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_ok(LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner);
2307 public static native long CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_ok(long owner);
2308 // struct LDKDecodeError CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_err(LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner);
2309 public static native long CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_err(long owner);
2310 // struct LDKInboundHTLCDetails CResult_InboundHTLCDetailsDecodeErrorZ_get_ok(LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner);
2311 public static native long CResult_InboundHTLCDetailsDecodeErrorZ_get_ok(long owner);
2312 // struct LDKDecodeError CResult_InboundHTLCDetailsDecodeErrorZ_get_err(LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner);
2313 public static native long CResult_InboundHTLCDetailsDecodeErrorZ_get_err(long owner);
2314 public static class LDKCOption_OutboundHTLCStateDetailsZ {
2315 private LDKCOption_OutboundHTLCStateDetailsZ() {}
2316 public final static class Some extends LDKCOption_OutboundHTLCStateDetailsZ {
2317 public org.ldk.enums.OutboundHTLCStateDetails some;
2318 Some(org.ldk.enums.OutboundHTLCStateDetails some) { this.some = some; }
2320 public final static class None extends LDKCOption_OutboundHTLCStateDetailsZ {
2323 static native void init();
2325 static { LDKCOption_OutboundHTLCStateDetailsZ.init(); }
2326 public static native LDKCOption_OutboundHTLCStateDetailsZ LDKCOption_OutboundHTLCStateDetailsZ_ref_from_ptr(long ptr);
2327 // struct LDKCOption_OutboundHTLCStateDetailsZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_ok(LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner);
2328 public static native long CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_ok(long owner);
2329 // struct LDKDecodeError CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_err(LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner);
2330 public static native long CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_err(long owner);
2331 // struct LDKOutboundHTLCDetails CResult_OutboundHTLCDetailsDecodeErrorZ_get_ok(LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner);
2332 public static native long CResult_OutboundHTLCDetailsDecodeErrorZ_get_ok(long owner);
2333 // struct LDKDecodeError CResult_OutboundHTLCDetailsDecodeErrorZ_get_err(LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner);
2334 public static native long CResult_OutboundHTLCDetailsDecodeErrorZ_get_err(long owner);
2335 // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
2336 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(long owner);
2337 // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
2338 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(long owner);
2339 // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
2340 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_ok(long owner);
2341 // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
2342 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_err(long owner);
2343 public static class LDKCOption_ChannelShutdownStateZ {
2344 private LDKCOption_ChannelShutdownStateZ() {}
2345 public final static class Some extends LDKCOption_ChannelShutdownStateZ {
2346 public org.ldk.enums.ChannelShutdownState some;
2347 Some(org.ldk.enums.ChannelShutdownState some) { this.some = some; }
2349 public final static class None extends LDKCOption_ChannelShutdownStateZ {
2352 static native void init();
2354 static { LDKCOption_ChannelShutdownStateZ.init(); }
2355 public static native LDKCOption_ChannelShutdownStateZ LDKCOption_ChannelShutdownStateZ_ref_from_ptr(long ptr);
2356 // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
2357 public static native long CResult_ChannelDetailsDecodeErrorZ_get_ok(long owner);
2358 // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
2359 public static native long CResult_ChannelDetailsDecodeErrorZ_get_err(long owner);
2360 // enum LDKChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
2361 public static native ChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(long owner);
2362 // struct LDKDecodeError CResult_ChannelShutdownStateDecodeErrorZ_get_err(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
2363 public static native long CResult_ChannelShutdownStateDecodeErrorZ_get_err(long owner);
2364 // struct LDKOffersMessage CResult_OffersMessageDecodeErrorZ_get_ok(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
2365 public static native long CResult_OffersMessageDecodeErrorZ_get_ok(long owner);
2366 // struct LDKDecodeError CResult_OffersMessageDecodeErrorZ_get_err(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
2367 public static native long CResult_OffersMessageDecodeErrorZ_get_err(long owner);
2368 public static class LDKCOption_HTLCClaimZ {
2369 private LDKCOption_HTLCClaimZ() {}
2370 public final static class Some extends LDKCOption_HTLCClaimZ {
2371 public org.ldk.enums.HTLCClaim some;
2372 Some(org.ldk.enums.HTLCClaim some) { this.some = some; }
2374 public final static class None extends LDKCOption_HTLCClaimZ {
2377 static native void init();
2379 static { LDKCOption_HTLCClaimZ.init(); }
2380 public static native LDKCOption_HTLCClaimZ LDKCOption_HTLCClaimZ_ref_from_ptr(long ptr);
2381 // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
2382 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(long owner);
2383 // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
2384 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(long owner);
2385 // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
2386 public static native long CResult_TxCreationKeysDecodeErrorZ_get_ok(long owner);
2387 // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
2388 public static native long CResult_TxCreationKeysDecodeErrorZ_get_err(long owner);
2389 // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
2390 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_ok(long owner);
2391 // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
2392 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_err(long owner);
2393 // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
2394 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long owner);
2395 // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
2396 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long owner);
2397 // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2398 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
2399 // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2400 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long owner);
2401 // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2402 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
2403 // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2404 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_err(long owner);
2405 // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2406 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long owner);
2407 // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2408 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long owner);
2409 // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2410 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long owner);
2411 // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2412 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long owner);
2413 // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
2414 public static native long CResult_TrustedClosingTransactionNoneZ_get_ok(long owner);
2415 // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
2416 public static native void CResult_TrustedClosingTransactionNoneZ_get_err(long owner);
2417 // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2418 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_ok(long owner);
2419 // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2420 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_err(long owner);
2421 // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
2422 public static native long CResult_TrustedCommitmentTransactionNoneZ_get_ok(long owner);
2423 // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
2424 public static native void CResult_TrustedCommitmentTransactionNoneZ_get_err(long owner);
2425 // struct LDKCVec_ECDSASignatureZ CResult_CVec_ECDSASignatureZNoneZ_get_ok(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner);
2426 public static native byte[][] CResult_CVec_ECDSASignatureZNoneZ_get_ok(long owner);
2427 // void CResult_CVec_ECDSASignatureZNoneZ_get_err(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner);
2428 public static native void CResult_CVec_ECDSASignatureZNoneZ_get_err(long owner);
2429 public static class LDKCOption_usizeZ {
2430 private LDKCOption_usizeZ() {}
2431 public final static class Some extends LDKCOption_usizeZ {
2433 Some(long some) { this.some = some; }
2435 public final static class None extends LDKCOption_usizeZ {
2438 static native void init();
2440 static { LDKCOption_usizeZ.init(); }
2441 public static native LDKCOption_usizeZ LDKCOption_usizeZ_ref_from_ptr(long ptr);
2442 // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
2443 public static native long CResult_ShutdownScriptDecodeErrorZ_get_ok(long owner);
2444 // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
2445 public static native long CResult_ShutdownScriptDecodeErrorZ_get_err(long owner);
2446 // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
2447 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(long owner);
2448 // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
2449 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(long owner);
2450 public static class LDKPaymentPurpose {
2451 private LDKPaymentPurpose() {}
2452 public final static class Bolt11InvoicePayment extends LDKPaymentPurpose {
2453 public long payment_preimage;
2454 public byte[] payment_secret;
2455 Bolt11InvoicePayment(long payment_preimage, byte[] payment_secret) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; }
2457 public final static class Bolt12OfferPayment extends LDKPaymentPurpose {
2458 public long payment_preimage;
2459 public byte[] payment_secret;
2460 public long payment_context;
2461 Bolt12OfferPayment(long payment_preimage, byte[] payment_secret, long payment_context) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; this.payment_context = payment_context; }
2463 public final static class Bolt12RefundPayment extends LDKPaymentPurpose {
2464 public long payment_preimage;
2465 public byte[] payment_secret;
2466 public long payment_context;
2467 Bolt12RefundPayment(long payment_preimage, byte[] payment_secret, long payment_context) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; this.payment_context = payment_context; }
2469 public final static class SpontaneousPayment extends LDKPaymentPurpose {
2470 public byte[] spontaneous_payment;
2471 SpontaneousPayment(byte[] spontaneous_payment) { this.spontaneous_payment = spontaneous_payment; }
2473 static native void init();
2475 static { LDKPaymentPurpose.init(); }
2476 public static native LDKPaymentPurpose LDKPaymentPurpose_ref_from_ptr(long ptr);
2477 // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2478 public static native long CResult_PaymentPurposeDecodeErrorZ_get_ok(long owner);
2479 // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2480 public static native long CResult_PaymentPurposeDecodeErrorZ_get_err(long owner);
2481 // struct LDKClaimedHTLC CResult_ClaimedHTLCDecodeErrorZ_get_ok(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner);
2482 public static native long CResult_ClaimedHTLCDecodeErrorZ_get_ok(long owner);
2483 // struct LDKDecodeError CResult_ClaimedHTLCDecodeErrorZ_get_err(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner);
2484 public static native long CResult_ClaimedHTLCDecodeErrorZ_get_err(long owner);
2485 public static class LDKPathFailure {
2486 private LDKPathFailure() {}
2487 public final static class InitialSend extends LDKPathFailure {
2489 InitialSend(long err) { this.err = err; }
2491 public final static class OnPath extends LDKPathFailure {
2492 public long network_update;
2493 OnPath(long network_update) { this.network_update = network_update; }
2495 static native void init();
2497 static { LDKPathFailure.init(); }
2498 public static native LDKPathFailure LDKPathFailure_ref_from_ptr(long ptr);
2499 public static class LDKCOption_PathFailureZ {
2500 private LDKCOption_PathFailureZ() {}
2501 public final static class Some extends LDKCOption_PathFailureZ {
2503 Some(long some) { this.some = some; }
2505 public final static class None extends LDKCOption_PathFailureZ {
2508 static native void init();
2510 static { LDKCOption_PathFailureZ.init(); }
2511 public static native LDKCOption_PathFailureZ LDKCOption_PathFailureZ_ref_from_ptr(long ptr);
2512 // struct LDKCOption_PathFailureZ CResult_COption_PathFailureZDecodeErrorZ_get_ok(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2513 public static native long CResult_COption_PathFailureZDecodeErrorZ_get_ok(long owner);
2514 // struct LDKDecodeError CResult_COption_PathFailureZDecodeErrorZ_get_err(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2515 public static native long CResult_COption_PathFailureZDecodeErrorZ_get_err(long owner);
2516 public static class LDKCOption_ClosureReasonZ {
2517 private LDKCOption_ClosureReasonZ() {}
2518 public final static class Some extends LDKCOption_ClosureReasonZ {
2520 Some(long some) { this.some = some; }
2522 public final static class None extends LDKCOption_ClosureReasonZ {
2525 static native void init();
2527 static { LDKCOption_ClosureReasonZ.init(); }
2528 public static native LDKCOption_ClosureReasonZ LDKCOption_ClosureReasonZ_ref_from_ptr(long ptr);
2529 // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2530 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(long owner);
2531 // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2532 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_err(long owner);
2533 public static class LDKHTLCDestination {
2534 private LDKHTLCDestination() {}
2535 public final static class NextHopChannel extends LDKHTLCDestination {
2536 public byte[] node_id;
2537 public long channel_id;
2538 NextHopChannel(byte[] node_id, long channel_id) { this.node_id = node_id; this.channel_id = channel_id; }
2540 public final static class UnknownNextHop extends LDKHTLCDestination {
2541 public long requested_forward_scid;
2542 UnknownNextHop(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2544 public final static class InvalidForward extends LDKHTLCDestination {
2545 public long requested_forward_scid;
2546 InvalidForward(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2548 public final static class InvalidOnion extends LDKHTLCDestination {
2551 public final static class FailedPayment extends LDKHTLCDestination {
2552 public byte[] payment_hash;
2553 FailedPayment(byte[] payment_hash) { this.payment_hash = payment_hash; }
2555 static native void init();
2557 static { LDKHTLCDestination.init(); }
2558 public static native LDKHTLCDestination LDKHTLCDestination_ref_from_ptr(long ptr);
2559 public static class LDKCOption_HTLCDestinationZ {
2560 private LDKCOption_HTLCDestinationZ() {}
2561 public final static class Some extends LDKCOption_HTLCDestinationZ {
2563 Some(long some) { this.some = some; }
2565 public final static class None extends LDKCOption_HTLCDestinationZ {
2568 static native void init();
2570 static { LDKCOption_HTLCDestinationZ.init(); }
2571 public static native LDKCOption_HTLCDestinationZ LDKCOption_HTLCDestinationZ_ref_from_ptr(long ptr);
2572 // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2573 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(long owner);
2574 // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2575 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(long owner);
2576 // enum LDKPaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2577 public static native PaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(long owner);
2578 // struct LDKDecodeError CResult_PaymentFailureReasonDecodeErrorZ_get_err(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2579 public static native long CResult_PaymentFailureReasonDecodeErrorZ_get_err(long owner);
2580 public static class LDKCOption_U128Z {
2581 private LDKCOption_U128Z() {}
2582 public final static class Some extends LDKCOption_U128Z {
2584 Some(byte[] some) { this.some = some; }
2586 public final static class None extends LDKCOption_U128Z {
2589 static native void init();
2591 static { LDKCOption_U128Z.init(); }
2592 public static native LDKCOption_U128Z LDKCOption_U128Z_ref_from_ptr(long ptr);
2593 public static class LDKCOption_PaymentFailureReasonZ {
2594 private LDKCOption_PaymentFailureReasonZ() {}
2595 public final static class Some extends LDKCOption_PaymentFailureReasonZ {
2596 public org.ldk.enums.PaymentFailureReason some;
2597 Some(org.ldk.enums.PaymentFailureReason some) { this.some = some; }
2599 public final static class None extends LDKCOption_PaymentFailureReasonZ {
2602 static native void init();
2604 static { LDKCOption_PaymentFailureReasonZ.init(); }
2605 public static native LDKCOption_PaymentFailureReasonZ LDKCOption_PaymentFailureReasonZ_ref_from_ptr(long ptr);
2606 public static class LDKBumpTransactionEvent {
2607 private LDKBumpTransactionEvent() {}
2608 public final static class ChannelClose extends LDKBumpTransactionEvent {
2609 public long channel_id;
2610 public byte[] counterparty_node_id;
2611 public byte[] claim_id;
2612 public int package_target_feerate_sat_per_1000_weight;
2613 public byte[] commitment_tx;
2614 public long commitment_tx_fee_satoshis;
2615 public long anchor_descriptor;
2616 public long[] pending_htlcs;
2617 ChannelClose(long channel_id, byte[] counterparty_node_id, 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.channel_id = channel_id; this.counterparty_node_id = counterparty_node_id; 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; }
2619 public final static class HTLCResolution extends LDKBumpTransactionEvent {
2620 public long channel_id;
2621 public byte[] counterparty_node_id;
2622 public byte[] claim_id;
2623 public int target_feerate_sat_per_1000_weight;
2624 public long[] htlc_descriptors;
2625 public int tx_lock_time;
2626 HTLCResolution(long channel_id, byte[] counterparty_node_id, byte[] claim_id, int target_feerate_sat_per_1000_weight, long[] htlc_descriptors, int tx_lock_time) { this.channel_id = channel_id; this.counterparty_node_id = counterparty_node_id; 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; }
2628 static native void init();
2630 static { LDKBumpTransactionEvent.init(); }
2631 public static native LDKBumpTransactionEvent LDKBumpTransactionEvent_ref_from_ptr(long ptr);
2632 public static class LDKEvent {
2633 private LDKEvent() {}
2634 public final static class FundingGenerationReady extends LDKEvent {
2635 public long temporary_channel_id;
2636 public byte[] counterparty_node_id;
2637 public long channel_value_satoshis;
2638 public byte[] output_script;
2639 public byte[] user_channel_id;
2640 FundingGenerationReady(long 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; }
2642 public final static class PaymentClaimable extends LDKEvent {
2643 public byte[] receiver_node_id;
2644 public byte[] payment_hash;
2645 public long onion_fields;
2646 public long amount_msat;
2647 public long counterparty_skimmed_fee_msat;
2648 public long purpose;
2649 public long via_channel_id;
2650 public long via_user_channel_id;
2651 public long claim_deadline;
2652 PaymentClaimable(byte[] receiver_node_id, byte[] payment_hash, long onion_fields, long amount_msat, long counterparty_skimmed_fee_msat, long purpose, long via_channel_id, long via_user_channel_id, long claim_deadline) { this.receiver_node_id = receiver_node_id; this.payment_hash = payment_hash; this.onion_fields = onion_fields; this.amount_msat = amount_msat; this.counterparty_skimmed_fee_msat = counterparty_skimmed_fee_msat; this.purpose = purpose; this.via_channel_id = via_channel_id; this.via_user_channel_id = via_user_channel_id; this.claim_deadline = claim_deadline; }
2654 public final static class PaymentClaimed extends LDKEvent {
2655 public byte[] receiver_node_id;
2656 public byte[] payment_hash;
2657 public long amount_msat;
2658 public long purpose;
2659 public long[] htlcs;
2660 public long sender_intended_total_msat;
2661 PaymentClaimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose, long[] htlcs, long sender_intended_total_msat) { this.receiver_node_id = receiver_node_id; this.payment_hash = payment_hash; this.amount_msat = amount_msat; this.purpose = purpose; this.htlcs = htlcs; this.sender_intended_total_msat = sender_intended_total_msat; }
2663 public final static class ConnectionNeeded extends LDKEvent {
2664 public byte[] node_id;
2665 public long[] addresses;
2666 ConnectionNeeded(byte[] node_id, long[] addresses) { this.node_id = node_id; this.addresses = addresses; }
2668 public final static class InvoiceRequestFailed extends LDKEvent {
2669 public byte[] payment_id;
2670 InvoiceRequestFailed(byte[] payment_id) { this.payment_id = payment_id; }
2672 public final static class PaymentSent extends LDKEvent {
2673 public long payment_id;
2674 public byte[] payment_preimage;
2675 public byte[] payment_hash;
2676 public long fee_paid_msat;
2677 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; }
2679 public final static class PaymentFailed extends LDKEvent {
2680 public byte[] payment_id;
2681 public byte[] payment_hash;
2683 PaymentFailed(byte[] payment_id, byte[] payment_hash, long reason) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.reason = reason; }
2685 public final static class PaymentPathSuccessful extends LDKEvent {
2686 public byte[] payment_id;
2687 public long payment_hash;
2689 PaymentPathSuccessful(byte[] payment_id, long payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2691 public final static class PaymentPathFailed extends LDKEvent {
2692 public long payment_id;
2693 public byte[] payment_hash;
2694 public boolean payment_failed_permanently;
2695 public long failure;
2697 public long short_channel_id;
2698 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; }
2700 public final static class ProbeSuccessful extends LDKEvent {
2701 public byte[] payment_id;
2702 public byte[] payment_hash;
2704 ProbeSuccessful(byte[] payment_id, byte[] payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2706 public final static class ProbeFailed extends LDKEvent {
2707 public byte[] payment_id;
2708 public byte[] payment_hash;
2710 public long short_channel_id;
2711 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; }
2713 public final static class PendingHTLCsForwardable extends LDKEvent {
2714 public long time_forwardable;
2715 PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
2717 public final static class HTLCIntercepted extends LDKEvent {
2718 public byte[] intercept_id;
2719 public long requested_next_hop_scid;
2720 public byte[] payment_hash;
2721 public long inbound_amount_msat;
2722 public long expected_outbound_amount_msat;
2723 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; }
2725 public final static class SpendableOutputs extends LDKEvent {
2726 public long[] outputs;
2727 public long channel_id;
2728 SpendableOutputs(long[] outputs, long channel_id) { this.outputs = outputs; this.channel_id = channel_id; }
2730 public final static class PaymentForwarded extends LDKEvent {
2731 public long prev_channel_id;
2732 public long next_channel_id;
2733 public long prev_user_channel_id;
2734 public long next_user_channel_id;
2735 public long total_fee_earned_msat;
2736 public long skimmed_fee_msat;
2737 public boolean claim_from_onchain_tx;
2738 public long outbound_amount_forwarded_msat;
2739 PaymentForwarded(long prev_channel_id, long next_channel_id, long prev_user_channel_id, long next_user_channel_id, long total_fee_earned_msat, long skimmed_fee_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.prev_user_channel_id = prev_user_channel_id; this.next_user_channel_id = next_user_channel_id; this.total_fee_earned_msat = total_fee_earned_msat; this.skimmed_fee_msat = skimmed_fee_msat; this.claim_from_onchain_tx = claim_from_onchain_tx; this.outbound_amount_forwarded_msat = outbound_amount_forwarded_msat; }
2741 public final static class ChannelPending extends LDKEvent {
2742 public long channel_id;
2743 public byte[] user_channel_id;
2744 public long former_temporary_channel_id;
2745 public byte[] counterparty_node_id;
2746 public long funding_txo;
2747 public long channel_type;
2748 ChannelPending(long channel_id, byte[] user_channel_id, long former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo, long channel_type) { 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; this.channel_type = channel_type; }
2750 public final static class ChannelReady extends LDKEvent {
2751 public long channel_id;
2752 public byte[] user_channel_id;
2753 public byte[] counterparty_node_id;
2754 public long channel_type;
2755 ChannelReady(long 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; }
2757 public final static class ChannelClosed extends LDKEvent {
2758 public long channel_id;
2759 public byte[] user_channel_id;
2761 public byte[] counterparty_node_id;
2762 public long channel_capacity_sats;
2763 public long channel_funding_txo;
2764 ChannelClosed(long channel_id, byte[] user_channel_id, long reason, byte[] counterparty_node_id, long channel_capacity_sats, long channel_funding_txo) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.reason = reason; this.counterparty_node_id = counterparty_node_id; this.channel_capacity_sats = channel_capacity_sats; this.channel_funding_txo = channel_funding_txo; }
2766 public final static class DiscardFunding extends LDKEvent {
2767 public long channel_id;
2768 public byte[] transaction;
2769 DiscardFunding(long channel_id, byte[] transaction) { this.channel_id = channel_id; this.transaction = transaction; }
2771 public final static class OpenChannelRequest extends LDKEvent {
2772 public long temporary_channel_id;
2773 public byte[] counterparty_node_id;
2774 public long funding_satoshis;
2775 public long push_msat;
2776 public long channel_type;
2777 OpenChannelRequest(long 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; }
2779 public final static class HTLCHandlingFailed extends LDKEvent {
2780 public long prev_channel_id;
2781 public long failed_next_destination;
2782 HTLCHandlingFailed(long prev_channel_id, long failed_next_destination) { this.prev_channel_id = prev_channel_id; this.failed_next_destination = failed_next_destination; }
2784 public final static class BumpTransaction extends LDKEvent {
2785 public long bump_transaction;
2786 BumpTransaction(long bump_transaction) { this.bump_transaction = bump_transaction; }
2788 static native void init();
2790 static { LDKEvent.init(); }
2791 public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
2792 public static class LDKCOption_EventZ {
2793 private LDKCOption_EventZ() {}
2794 public final static class Some extends LDKCOption_EventZ {
2796 Some(long some) { this.some = some; }
2798 public final static class None extends LDKCOption_EventZ {
2801 static native void init();
2803 static { LDKCOption_EventZ.init(); }
2804 public static native LDKCOption_EventZ LDKCOption_EventZ_ref_from_ptr(long ptr);
2805 // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2806 public static native long CResult_COption_EventZDecodeErrorZ_get_ok(long owner);
2807 // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2808 public static native long CResult_COption_EventZDecodeErrorZ_get_err(long owner);
2809 public static class LDKBolt11ParseError {
2810 private LDKBolt11ParseError() {}
2811 public final static class Bech32Error extends LDKBolt11ParseError {
2812 public long bech32_error;
2813 Bech32Error(long bech32_error) { this.bech32_error = bech32_error; }
2815 public final static class ParseAmountError extends LDKBolt11ParseError {
2816 public int parse_amount_error;
2817 ParseAmountError(int parse_amount_error) { this.parse_amount_error = parse_amount_error; }
2819 public final static class MalformedSignature extends LDKBolt11ParseError {
2820 public org.ldk.enums.Secp256k1Error malformed_signature;
2821 MalformedSignature(org.ldk.enums.Secp256k1Error malformed_signature) { this.malformed_signature = malformed_signature; }
2823 public final static class BadPrefix extends LDKBolt11ParseError {
2826 public final static class UnknownCurrency extends LDKBolt11ParseError {
2827 UnknownCurrency() { }
2829 public final static class UnknownSiPrefix extends LDKBolt11ParseError {
2830 UnknownSiPrefix() { }
2832 public final static class MalformedHRP extends LDKBolt11ParseError {
2835 public final static class TooShortDataPart extends LDKBolt11ParseError {
2836 TooShortDataPart() { }
2838 public final static class UnexpectedEndOfTaggedFields extends LDKBolt11ParseError {
2839 UnexpectedEndOfTaggedFields() { }
2841 public final static class DescriptionDecodeError extends LDKBolt11ParseError {
2842 public int description_decode_error;
2843 DescriptionDecodeError(int description_decode_error) { this.description_decode_error = description_decode_error; }
2845 public final static class PaddingError extends LDKBolt11ParseError {
2848 public final static class IntegerOverflowError extends LDKBolt11ParseError {
2849 IntegerOverflowError() { }
2851 public final static class InvalidSegWitProgramLength extends LDKBolt11ParseError {
2852 InvalidSegWitProgramLength() { }
2854 public final static class InvalidPubKeyHashLength extends LDKBolt11ParseError {
2855 InvalidPubKeyHashLength() { }
2857 public final static class InvalidScriptHashLength extends LDKBolt11ParseError {
2858 InvalidScriptHashLength() { }
2860 public final static class InvalidRecoveryId extends LDKBolt11ParseError {
2861 InvalidRecoveryId() { }
2863 public final static class InvalidSliceLength extends LDKBolt11ParseError {
2864 public java.lang.String invalid_slice_length;
2865 InvalidSliceLength(java.lang.String invalid_slice_length) { this.invalid_slice_length = invalid_slice_length; }
2867 public final static class Skip extends LDKBolt11ParseError {
2870 static native void init();
2872 static { LDKBolt11ParseError.init(); }
2873 public static native LDKBolt11ParseError LDKBolt11ParseError_ref_from_ptr(long ptr);
2874 // enum LDKSiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2875 public static native SiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(long owner);
2876 // struct LDKBolt11ParseError CResult_SiPrefixBolt11ParseErrorZ_get_err(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2877 public static native long CResult_SiPrefixBolt11ParseErrorZ_get_err(long owner);
2878 public static class LDKParseOrSemanticError {
2879 private LDKParseOrSemanticError() {}
2880 public final static class ParseError extends LDKParseOrSemanticError {
2881 public long parse_error;
2882 ParseError(long parse_error) { this.parse_error = parse_error; }
2884 public final static class SemanticError extends LDKParseOrSemanticError {
2885 public org.ldk.enums.Bolt11SemanticError semantic_error;
2886 SemanticError(org.ldk.enums.Bolt11SemanticError semantic_error) { this.semantic_error = semantic_error; }
2888 static native void init();
2890 static { LDKParseOrSemanticError.init(); }
2891 public static native LDKParseOrSemanticError LDKParseOrSemanticError_ref_from_ptr(long ptr);
2892 // struct LDKBolt11Invoice CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2893 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(long owner);
2894 // struct LDKParseOrSemanticError CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2895 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(long owner);
2896 // struct LDKSignedRawBolt11Invoice CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2897 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(long owner);
2898 // struct LDKBolt11ParseError CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2899 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(long owner);
2900 // struct LDKRawBolt11Invoice C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2901 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(long owner);
2902 // struct LDKThirtyTwoBytes C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2903 public static native byte[] C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(long owner);
2904 // struct LDKBolt11InvoiceSignature C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2905 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(long owner);
2906 // struct LDKPayeePubKey CResult_PayeePubKeySecp256k1ErrorZ_get_ok(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
2907 public static native long CResult_PayeePubKeySecp256k1ErrorZ_get_ok(long owner);
2908 // enum LDKSecp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
2909 public static native Secp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(long owner);
2910 // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2911 public static native long CResult_PositiveTimestampCreationErrorZ_get_ok(long owner);
2912 // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2913 public static native CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long owner);
2914 // void CResult_NoneBolt11SemanticErrorZ_get_ok(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2915 public static native void CResult_NoneBolt11SemanticErrorZ_get_ok(long owner);
2916 // enum LDKBolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2917 public static native Bolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(long owner);
2918 // struct LDKBolt11Invoice CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2919 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(long owner);
2920 // enum LDKBolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2921 public static native Bolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(long owner);
2922 // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2923 public static native long CResult_DescriptionCreationErrorZ_get_ok(long owner);
2924 // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2925 public static native CreationError CResult_DescriptionCreationErrorZ_get_err(long owner);
2926 // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2927 public static native long CResult_PrivateRouteCreationErrorZ_get_ok(long owner);
2928 // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2929 public static native CreationError CResult_PrivateRouteCreationErrorZ_get_err(long owner);
2930 // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2931 public static native long CResult_OutPointDecodeErrorZ_get_ok(long owner);
2932 // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2933 public static native long CResult_OutPointDecodeErrorZ_get_err(long owner);
2934 // struct LDKBigSize CResult_BigSizeDecodeErrorZ_get_ok(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2935 public static native long CResult_BigSizeDecodeErrorZ_get_ok(long owner);
2936 // struct LDKDecodeError CResult_BigSizeDecodeErrorZ_get_err(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2937 public static native long CResult_BigSizeDecodeErrorZ_get_err(long owner);
2938 // struct LDKHostname CResult_HostnameDecodeErrorZ_get_ok(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2939 public static native long CResult_HostnameDecodeErrorZ_get_ok(long owner);
2940 // struct LDKDecodeError CResult_HostnameDecodeErrorZ_get_err(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2941 public static native long CResult_HostnameDecodeErrorZ_get_err(long owner);
2942 // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedNoneZ_get_ok(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2943 public static native long CResult_TransactionU16LenLimitedNoneZ_get_ok(long owner);
2944 // void CResult_TransactionU16LenLimitedNoneZ_get_err(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2945 public static native void CResult_TransactionU16LenLimitedNoneZ_get_err(long owner);
2946 // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2947 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(long owner);
2948 // struct LDKDecodeError CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2949 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(long owner);
2950 // struct LDKUntrustedString CResult_UntrustedStringDecodeErrorZ_get_ok(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2951 public static native long CResult_UntrustedStringDecodeErrorZ_get_ok(long owner);
2952 // struct LDKDecodeError CResult_UntrustedStringDecodeErrorZ_get_err(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2953 public static native long CResult_UntrustedStringDecodeErrorZ_get_err(long owner);
2954 // struct LDKChannelId CResult_ChannelIdDecodeErrorZ_get_ok(LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR owner);
2955 public static native long CResult_ChannelIdDecodeErrorZ_get_ok(long owner);
2956 // struct LDKDecodeError CResult_ChannelIdDecodeErrorZ_get_err(LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR owner);
2957 public static native long CResult_ChannelIdDecodeErrorZ_get_err(long owner);
2958 // struct LDKThirtyTwoBytes C2Tuple__u832u16Z_get_a(LDKC2Tuple__u832u16Z *NONNULL_PTR owner);
2959 public static native byte[] C2Tuple__u832u16Z_get_a(long owner);
2960 // uint16_t C2Tuple__u832u16Z_get_b(LDKC2Tuple__u832u16Z *NONNULL_PTR owner);
2961 public static native short C2Tuple__u832u16Z_get_b(long owner);
2962 // struct LDKPaymentRelay CResult_PaymentRelayDecodeErrorZ_get_ok(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
2963 public static native long CResult_PaymentRelayDecodeErrorZ_get_ok(long owner);
2964 // struct LDKDecodeError CResult_PaymentRelayDecodeErrorZ_get_err(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
2965 public static native long CResult_PaymentRelayDecodeErrorZ_get_err(long owner);
2966 // struct LDKPaymentConstraints CResult_PaymentConstraintsDecodeErrorZ_get_ok(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
2967 public static native long CResult_PaymentConstraintsDecodeErrorZ_get_ok(long owner);
2968 // struct LDKDecodeError CResult_PaymentConstraintsDecodeErrorZ_get_err(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
2969 public static native long CResult_PaymentConstraintsDecodeErrorZ_get_err(long owner);
2970 // struct LDKPaymentContext CResult_PaymentContextDecodeErrorZ_get_ok(LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR owner);
2971 public static native long CResult_PaymentContextDecodeErrorZ_get_ok(long owner);
2972 // struct LDKDecodeError CResult_PaymentContextDecodeErrorZ_get_err(LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR owner);
2973 public static native long CResult_PaymentContextDecodeErrorZ_get_err(long owner);
2974 // struct LDKUnknownPaymentContext CResult_UnknownPaymentContextDecodeErrorZ_get_ok(LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR owner);
2975 public static native long CResult_UnknownPaymentContextDecodeErrorZ_get_ok(long owner);
2976 // struct LDKDecodeError CResult_UnknownPaymentContextDecodeErrorZ_get_err(LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR owner);
2977 public static native long CResult_UnknownPaymentContextDecodeErrorZ_get_err(long owner);
2978 // struct LDKBolt12OfferContext CResult_Bolt12OfferContextDecodeErrorZ_get_ok(LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR owner);
2979 public static native long CResult_Bolt12OfferContextDecodeErrorZ_get_ok(long owner);
2980 // struct LDKDecodeError CResult_Bolt12OfferContextDecodeErrorZ_get_err(LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR owner);
2981 public static native long CResult_Bolt12OfferContextDecodeErrorZ_get_err(long owner);
2982 // struct LDKBolt12RefundContext CResult_Bolt12RefundContextDecodeErrorZ_get_ok(LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR owner);
2983 public static native long CResult_Bolt12RefundContextDecodeErrorZ_get_ok(long owner);
2984 // struct LDKDecodeError CResult_Bolt12RefundContextDecodeErrorZ_get_err(LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR owner);
2985 public static native long CResult_Bolt12RefundContextDecodeErrorZ_get_err(long owner);
2986 // struct LDKStr CResult_StrSecp256k1ErrorZ_get_ok(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
2987 public static native String CResult_StrSecp256k1ErrorZ_get_ok(long owner);
2988 // enum LDKSecp256k1Error CResult_StrSecp256k1ErrorZ_get_err(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
2989 public static native Secp256k1Error CResult_StrSecp256k1ErrorZ_get_err(long owner);
2990 // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner);
2991 public static native byte[] C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(long owner);
2992 // struct LDKRecipientOnionFields C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner);
2993 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(long owner);
2994 // struct LDKRouteParameters C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner);
2995 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(long owner);
2996 // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner);
2997 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(long owner);
2998 // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner);
2999 public static native void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(long owner);
3000 // struct LDKPublicKey C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner);
3001 public static native byte[] C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(long owner);
3002 // struct LDKOnionMessage C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner);
3003 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b(long owner);
3004 // struct LDKCOption_CVec_SocketAddressZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner);
3005 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c(long owner);
3006 public static class LDKSendError {
3007 private LDKSendError() {}
3008 public final static class Secp256k1 extends LDKSendError {
3009 public org.ldk.enums.Secp256k1Error secp256k1;
3010 Secp256k1(org.ldk.enums.Secp256k1Error secp256k1) { this.secp256k1 = secp256k1; }
3012 public final static class TooBigPacket extends LDKSendError {
3015 public final static class TooFewBlindedHops extends LDKSendError {
3016 TooFewBlindedHops() { }
3018 public final static class InvalidFirstHop extends LDKSendError {
3019 public byte[] invalid_first_hop;
3020 InvalidFirstHop(byte[] invalid_first_hop) { this.invalid_first_hop = invalid_first_hop; }
3022 public final static class PathNotFound extends LDKSendError {
3025 public final static class InvalidMessage extends LDKSendError {
3026 InvalidMessage() { }
3028 public final static class BufferFull extends LDKSendError {
3031 public final static class GetNodeIdFailed extends LDKSendError {
3032 GetNodeIdFailed() { }
3034 public final static class UnresolvedIntroductionNode extends LDKSendError {
3035 UnresolvedIntroductionNode() { }
3037 public final static class BlindedPathAdvanceFailed extends LDKSendError {
3038 BlindedPathAdvanceFailed() { }
3040 static native void init();
3042 static { LDKSendError.init(); }
3043 public static native LDKSendError LDKSendError_ref_from_ptr(long ptr);
3044 // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR owner);
3045 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok(long owner);
3046 // struct LDKSendError CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR owner);
3047 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err(long owner);
3048 public static class LDKNextMessageHop {
3049 private LDKNextMessageHop() {}
3050 public final static class NodeId extends LDKNextMessageHop {
3051 public byte[] node_id;
3052 NodeId(byte[] node_id) { this.node_id = node_id; }
3054 public final static class ShortChannelId extends LDKNextMessageHop {
3055 public long short_channel_id;
3056 ShortChannelId(long short_channel_id) { this.short_channel_id = short_channel_id; }
3058 static native void init();
3060 static { LDKNextMessageHop.init(); }
3061 public static native LDKNextMessageHop LDKNextMessageHop_ref_from_ptr(long ptr);
3062 public static class LDKParsedOnionMessageContents {
3063 private LDKParsedOnionMessageContents() {}
3064 public final static class Offers extends LDKParsedOnionMessageContents {
3066 Offers(long offers) { this.offers = offers; }
3068 public final static class Custom extends LDKParsedOnionMessageContents {
3070 Custom(long custom) { this.custom = custom; }
3072 static native void init();
3074 static { LDKParsedOnionMessageContents.init(); }
3075 public static native LDKParsedOnionMessageContents LDKParsedOnionMessageContents_ref_from_ptr(long ptr);
3076 public static class LDKPeeledOnion {
3077 private LDKPeeledOnion() {}
3078 public final static class Forward extends LDKPeeledOnion {
3081 Forward(long _0, long _1) { this._0 = _0; this._1 = _1; }
3083 public final static class Receive extends LDKPeeledOnion {
3087 Receive(long _0, byte[] _1, long _2) { this._0 = _0; this._1 = _1; this._2 = _2; }
3089 static native void init();
3091 static { LDKPeeledOnion.init(); }
3092 public static native LDKPeeledOnion LDKPeeledOnion_ref_from_ptr(long ptr);
3093 // struct LDKPeeledOnion CResult_PeeledOnionNoneZ_get_ok(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
3094 public static native long CResult_PeeledOnionNoneZ_get_ok(long owner);
3095 // void CResult_PeeledOnionNoneZ_get_err(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
3096 public static native void CResult_PeeledOnionNoneZ_get_err(long owner);
3097 public static class LDKSendSuccess {
3098 private LDKSendSuccess() {}
3099 public final static class Buffered extends LDKSendSuccess {
3102 public final static class BufferedAwaitingConnection extends LDKSendSuccess {
3103 public byte[] buffered_awaiting_connection;
3104 BufferedAwaitingConnection(byte[] buffered_awaiting_connection) { this.buffered_awaiting_connection = buffered_awaiting_connection; }
3106 static native void init();
3108 static { LDKSendSuccess.init(); }
3109 public static native LDKSendSuccess LDKSendSuccess_ref_from_ptr(long ptr);
3110 // struct LDKSendSuccess CResult_SendSuccessSendErrorZ_get_ok(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR owner);
3111 public static native long CResult_SendSuccessSendErrorZ_get_ok(long owner);
3112 // struct LDKSendError CResult_SendSuccessSendErrorZ_get_err(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR owner);
3113 public static native long CResult_SendSuccessSendErrorZ_get_err(long owner);
3114 // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
3115 public static native long CResult_BlindedPathNoneZ_get_ok(long owner);
3116 // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
3117 public static native void CResult_BlindedPathNoneZ_get_err(long owner);
3118 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
3119 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(long owner);
3120 // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
3121 public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(long owner);
3122 // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
3123 public static native long CResult_BlindedPathDecodeErrorZ_get_ok(long owner);
3124 // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
3125 public static native long CResult_BlindedPathDecodeErrorZ_get_err(long owner);
3126 // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
3127 public static native long CResult_BlindedHopDecodeErrorZ_get_ok(long owner);
3128 // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
3129 public static native long CResult_BlindedHopDecodeErrorZ_get_err(long owner);
3130 // struct LDKInvoiceError CResult_InvoiceErrorDecodeErrorZ_get_ok(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
3131 public static native long CResult_InvoiceErrorDecodeErrorZ_get_ok(long owner);
3132 // struct LDKDecodeError CResult_InvoiceErrorDecodeErrorZ_get_err(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
3133 public static native long CResult_InvoiceErrorDecodeErrorZ_get_err(long owner);
3134 // struct LDKTrackedSpendableOutput CResult_TrackedSpendableOutputDecodeErrorZ_get_ok(LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR owner);
3135 public static native long CResult_TrackedSpendableOutputDecodeErrorZ_get_ok(long owner);
3136 // struct LDKDecodeError CResult_TrackedSpendableOutputDecodeErrorZ_get_err(LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR owner);
3137 public static native long CResult_TrackedSpendableOutputDecodeErrorZ_get_err(long owner);
3138 public static class LDKOutputSpendStatus {
3139 private LDKOutputSpendStatus() {}
3140 public final static class PendingInitialBroadcast extends LDKOutputSpendStatus {
3141 public long delayed_until_height;
3142 PendingInitialBroadcast(long delayed_until_height) { this.delayed_until_height = delayed_until_height; }
3144 public final static class PendingFirstConfirmation extends LDKOutputSpendStatus {
3145 public byte[] first_broadcast_hash;
3146 public int latest_broadcast_height;
3147 public byte[] latest_spending_tx;
3148 PendingFirstConfirmation(byte[] first_broadcast_hash, int latest_broadcast_height, byte[] latest_spending_tx) { this.first_broadcast_hash = first_broadcast_hash; this.latest_broadcast_height = latest_broadcast_height; this.latest_spending_tx = latest_spending_tx; }
3150 public final static class PendingThresholdConfirmations extends LDKOutputSpendStatus {
3151 public byte[] first_broadcast_hash;
3152 public int latest_broadcast_height;
3153 public byte[] latest_spending_tx;
3154 public int confirmation_height;
3155 public byte[] confirmation_hash;
3156 PendingThresholdConfirmations(byte[] first_broadcast_hash, int latest_broadcast_height, byte[] latest_spending_tx, int confirmation_height, byte[] confirmation_hash) { this.first_broadcast_hash = first_broadcast_hash; this.latest_broadcast_height = latest_broadcast_height; this.latest_spending_tx = latest_spending_tx; this.confirmation_height = confirmation_height; this.confirmation_hash = confirmation_hash; }
3158 static native void init();
3160 static { LDKOutputSpendStatus.init(); }
3161 public static native LDKOutputSpendStatus LDKOutputSpendStatus_ref_from_ptr(long ptr);
3162 // struct LDKOutputSpendStatus CResult_OutputSpendStatusDecodeErrorZ_get_ok(LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR owner);
3163 public static native long CResult_OutputSpendStatusDecodeErrorZ_get_ok(long owner);
3164 // struct LDKDecodeError CResult_OutputSpendStatusDecodeErrorZ_get_err(LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR owner);
3165 public static native long CResult_OutputSpendStatusDecodeErrorZ_get_err(long owner);
3166 public interface LDKFilter {
3167 void register_tx(byte[] txid, byte[] script_pubkey);
3168 void register_output(long output);
3170 public static native long LDKFilter_new(LDKFilter impl);
3171 // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
3172 public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
3173 // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
3174 public static native void Filter_register_output(long this_arg, long output);
3175 public static class LDKCOption_FilterZ {
3176 private LDKCOption_FilterZ() {}
3177 public final static class Some extends LDKCOption_FilterZ {
3179 Some(long some) { this.some = some; }
3181 public final static class None extends LDKCOption_FilterZ {
3184 static native void init();
3186 static { LDKCOption_FilterZ.init(); }
3187 public static native LDKCOption_FilterZ LDKCOption_FilterZ_ref_from_ptr(long ptr);
3188 public interface LDKChangeDestinationSource {
3189 long get_change_destination_script();
3191 public static native long LDKChangeDestinationSource_new(LDKChangeDestinationSource impl);
3192 // LDKCResult_CVec_u8ZNoneZ ChangeDestinationSource_get_change_destination_script LDKChangeDestinationSource *NONNULL_PTR this_arg
3193 public static native long ChangeDestinationSource_get_change_destination_script(long this_arg);
3194 public interface LDKKVStore {
3195 long read(String primary_namespace, String secondary_namespace, String key);
3196 long write(String primary_namespace, String secondary_namespace, String key, byte[] buf);
3197 long remove(String primary_namespace, String secondary_namespace, String key, boolean lazy);
3198 long list(String primary_namespace, String secondary_namespace);
3200 public static native long LDKKVStore_new(LDKKVStore impl);
3201 // LDKCResult_CVec_u8ZIOErrorZ KVStore_read LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key
3202 public static native long KVStore_read(long this_arg, String primary_namespace, String secondary_namespace, String key);
3203 // LDKCResult_NoneIOErrorZ KVStore_write LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, struct LDKu8slice buf
3204 public static native long KVStore_write(long this_arg, String primary_namespace, String secondary_namespace, String key, byte[] buf);
3205 // LDKCResult_NoneIOErrorZ KVStore_remove LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, bool lazy
3206 public static native long KVStore_remove(long this_arg, String primary_namespace, String secondary_namespace, String key, boolean lazy);
3207 // LDKCResult_CVec_StrZIOErrorZ KVStore_list LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace
3208 public static native long KVStore_list(long this_arg, String primary_namespace, String secondary_namespace);
3209 public interface LDKOutputSpender {
3210 long spend_spendable_outputs(long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, long locktime);
3212 public static native long LDKOutputSpender_new(LDKOutputSpender impl);
3213 // LDKCResult_TransactionNoneZ OutputSpender_spend_spendable_outputs LDKOutputSpender *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime
3214 public static native long OutputSpender_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, long locktime);
3215 // struct LDKOutputSweeper CResult_OutputSweeperDecodeErrorZ_get_ok(LDKCResult_OutputSweeperDecodeErrorZ *NONNULL_PTR owner);
3216 public static native long CResult_OutputSweeperDecodeErrorZ_get_ok(long owner);
3217 // struct LDKDecodeError CResult_OutputSweeperDecodeErrorZ_get_err(LDKCResult_OutputSweeperDecodeErrorZ *NONNULL_PTR owner);
3218 public static native long CResult_OutputSweeperDecodeErrorZ_get_err(long owner);
3219 // struct LDKBestBlock C2Tuple_BestBlockOutputSweeperZ_get_a(LDKC2Tuple_BestBlockOutputSweeperZ *NONNULL_PTR owner);
3220 public static native long C2Tuple_BestBlockOutputSweeperZ_get_a(long owner);
3221 // struct LDKOutputSweeper C2Tuple_BestBlockOutputSweeperZ_get_b(LDKC2Tuple_BestBlockOutputSweeperZ *NONNULL_PTR owner);
3222 public static native long C2Tuple_BestBlockOutputSweeperZ_get_b(long owner);
3223 // struct LDKC2Tuple_BestBlockOutputSweeperZ *CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ *NONNULL_PTR owner);
3224 public static native long CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_ok(long owner);
3225 // struct LDKDecodeError CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ *NONNULL_PTR owner);
3226 public static native long CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_err(long owner);
3227 // struct LDKDelayedPaymentBasepoint CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner);
3228 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(long owner);
3229 // struct LDKDecodeError CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner);
3230 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(long owner);
3231 // struct LDKDelayedPaymentKey CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner);
3232 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(long owner);
3233 // struct LDKDecodeError CResult_DelayedPaymentKeyDecodeErrorZ_get_err(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner);
3234 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_get_err(long owner);
3235 // struct LDKHtlcBasepoint CResult_HtlcBasepointDecodeErrorZ_get_ok(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner);
3236 public static native long CResult_HtlcBasepointDecodeErrorZ_get_ok(long owner);
3237 // struct LDKDecodeError CResult_HtlcBasepointDecodeErrorZ_get_err(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner);
3238 public static native long CResult_HtlcBasepointDecodeErrorZ_get_err(long owner);
3239 // struct LDKHtlcKey CResult_HtlcKeyDecodeErrorZ_get_ok(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner);
3240 public static native long CResult_HtlcKeyDecodeErrorZ_get_ok(long owner);
3241 // struct LDKDecodeError CResult_HtlcKeyDecodeErrorZ_get_err(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner);
3242 public static native long CResult_HtlcKeyDecodeErrorZ_get_err(long owner);
3243 // struct LDKRevocationBasepoint CResult_RevocationBasepointDecodeErrorZ_get_ok(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner);
3244 public static native long CResult_RevocationBasepointDecodeErrorZ_get_ok(long owner);
3245 // struct LDKDecodeError CResult_RevocationBasepointDecodeErrorZ_get_err(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner);
3246 public static native long CResult_RevocationBasepointDecodeErrorZ_get_err(long owner);
3247 // struct LDKRevocationKey CResult_RevocationKeyDecodeErrorZ_get_ok(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner);
3248 public static native long CResult_RevocationKeyDecodeErrorZ_get_ok(long owner);
3249 // struct LDKDecodeError CResult_RevocationKeyDecodeErrorZ_get_err(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner);
3250 public static native long CResult_RevocationKeyDecodeErrorZ_get_err(long owner);
3251 // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
3252 public static native long CResult_LockedChannelMonitorNoneZ_get_ok(long owner);
3253 // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
3254 public static native void CResult_LockedChannelMonitorNoneZ_get_err(long owner);
3255 // struct LDKOutPoint C2Tuple_OutPointChannelIdZ_get_a(LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR owner);
3256 public static native long C2Tuple_OutPointChannelIdZ_get_a(long owner);
3257 // struct LDKChannelId C2Tuple_OutPointChannelIdZ_get_b(LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR owner);
3258 public static native long C2Tuple_OutPointChannelIdZ_get_b(long owner);
3259 // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
3260 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(long owner);
3261 // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
3262 public static native long[] C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(long owner);
3263 public interface LDKPersister {
3264 long persist_manager(long channel_manager);
3265 long persist_graph(long network_graph);
3266 long persist_scorer(long scorer);
3268 public static native long LDKPersister_new(LDKPersister impl);
3269 // LDKCResult_NoneIOErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
3270 public static native long Persister_persist_manager(long this_arg, long channel_manager);
3271 // LDKCResult_NoneIOErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
3272 public static native long Persister_persist_graph(long this_arg, long network_graph);
3273 // LDKCResult_NoneIOErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
3274 public static native long Persister_persist_scorer(long this_arg, long scorer);
3275 public interface LDKPersist {
3276 ChannelMonitorUpdateStatus persist_new_channel(long channel_funding_outpoint, long data, long update_id);
3277 ChannelMonitorUpdateStatus update_persisted_channel(long channel_funding_outpoint, long update, long data, long update_id);
3278 void archive_persisted_channel(long channel_funding_outpoint);
3280 public static native long LDKPersist_new(LDKPersist impl);
3281 // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_funding_outpoint, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
3282 public static native ChannelMonitorUpdateStatus Persist_persist_new_channel(long this_arg, long channel_funding_outpoint, long data, long update_id);
3283 // LDKChannelMonitorUpdateStatus Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_funding_outpoint, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
3284 public static native ChannelMonitorUpdateStatus Persist_update_persisted_channel(long this_arg, long channel_funding_outpoint, long update, long data, long update_id);
3285 // void Persist_archive_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_funding_outpoint
3286 public static native void Persist_archive_persisted_channel(long this_arg, long channel_funding_outpoint);
3287 public interface LDKListen {
3288 void filtered_block_connected(byte[] header, long[] txdata, int height);
3289 void block_connected(byte[] block, int height);
3290 void block_disconnected(byte[] header, int height);
3292 public static native long LDKListen_new(LDKListen impl);
3293 // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
3294 public static native void Listen_filtered_block_connected(long this_arg, byte[] header, long[] txdata, int height);
3295 // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
3296 public static native void Listen_block_connected(long this_arg, byte[] block, int height);
3297 // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
3298 public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
3299 public interface LDKConfirm {
3300 void transactions_confirmed(byte[] header, long[] txdata, int height);
3301 void transaction_unconfirmed(byte[] txid);
3302 void best_block_updated(byte[] header, int height);
3303 long[] get_relevant_txids();
3305 public static native long LDKConfirm_new(LDKConfirm impl);
3306 // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
3307 public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
3308 // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
3309 public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
3310 // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
3311 public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
3312 // LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
3313 public static native long[] Confirm_get_relevant_txids(long this_arg);
3314 public static class LDKSpendingDelay {
3315 private LDKSpendingDelay() {}
3316 public final static class Relative extends LDKSpendingDelay {
3317 public int num_blocks;
3318 Relative(int num_blocks) { this.num_blocks = num_blocks; }
3320 public final static class Absolute extends LDKSpendingDelay {
3322 Absolute(int height) { this.height = height; }
3324 static native void init();
3326 static { LDKSpendingDelay.init(); }
3327 public static native LDKSpendingDelay LDKSpendingDelay_ref_from_ptr(long ptr);
3328 public interface LDKFutureCallback {
3331 public static native long LDKFutureCallback_new(LDKFutureCallback impl);
3332 // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
3333 public static native void FutureCallback_call(long this_arg);
3334 public interface LDKEventHandler {
3335 void handle_event(long event);
3337 public static native long LDKEventHandler_new(LDKEventHandler impl);
3338 // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
3339 public static native void EventHandler_handle_event(long this_arg, long event);
3340 public interface LDKEventsProvider {
3341 void process_pending_events(long handler);
3343 public static native long LDKEventsProvider_new(LDKEventsProvider impl);
3344 // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
3345 public static native void EventsProvider_process_pending_events(long this_arg, long handler);
3346 public static class LDKFailureCode {
3347 private LDKFailureCode() {}
3348 public final static class TemporaryNodeFailure extends LDKFailureCode {
3349 TemporaryNodeFailure() { }
3351 public final static class RequiredNodeFeatureMissing extends LDKFailureCode {
3352 RequiredNodeFeatureMissing() { }
3354 public final static class IncorrectOrUnknownPaymentDetails extends LDKFailureCode {
3355 IncorrectOrUnknownPaymentDetails() { }
3357 public final static class InvalidOnionPayload extends LDKFailureCode {
3358 public long invalid_onion_payload;
3359 InvalidOnionPayload(long invalid_onion_payload) { this.invalid_onion_payload = invalid_onion_payload; }
3361 static native void init();
3363 static { LDKFailureCode.init(); }
3364 public static native LDKFailureCode LDKFailureCode_ref_from_ptr(long ptr);
3365 public interface LDKMessageSendEventsProvider {
3366 long[] get_and_clear_pending_msg_events();
3368 public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
3369 // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
3370 public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
3371 public interface LDKChannelMessageHandler {
3372 void handle_open_channel(byte[] their_node_id, long msg);
3373 void handle_open_channel_v2(byte[] their_node_id, long msg);
3374 void handle_accept_channel(byte[] their_node_id, long msg);
3375 void handle_accept_channel_v2(byte[] their_node_id, long msg);
3376 void handle_funding_created(byte[] their_node_id, long msg);
3377 void handle_funding_signed(byte[] their_node_id, long msg);
3378 void handle_channel_ready(byte[] their_node_id, long msg);
3379 void handle_shutdown(byte[] their_node_id, long msg);
3380 void handle_closing_signed(byte[] their_node_id, long msg);
3381 void handle_stfu(byte[] their_node_id, long msg);
3382 void handle_tx_add_input(byte[] their_node_id, long msg);
3383 void handle_tx_add_output(byte[] their_node_id, long msg);
3384 void handle_tx_remove_input(byte[] their_node_id, long msg);
3385 void handle_tx_remove_output(byte[] their_node_id, long msg);
3386 void handle_tx_complete(byte[] their_node_id, long msg);
3387 void handle_tx_signatures(byte[] their_node_id, long msg);
3388 void handle_tx_init_rbf(byte[] their_node_id, long msg);
3389 void handle_tx_ack_rbf(byte[] their_node_id, long msg);
3390 void handle_tx_abort(byte[] their_node_id, long msg);
3391 void handle_update_add_htlc(byte[] their_node_id, long msg);
3392 void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
3393 void handle_update_fail_htlc(byte[] their_node_id, long msg);
3394 void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
3395 void handle_commitment_signed(byte[] their_node_id, long msg);
3396 void handle_revoke_and_ack(byte[] their_node_id, long msg);
3397 void handle_update_fee(byte[] their_node_id, long msg);
3398 void handle_announcement_signatures(byte[] their_node_id, long msg);
3399 void peer_disconnected(byte[] their_node_id);
3400 long peer_connected(byte[] their_node_id, long msg, boolean inbound);
3401 void handle_channel_reestablish(byte[] their_node_id, long msg);
3402 void handle_channel_update(byte[] their_node_id, long msg);
3403 void handle_error(byte[] their_node_id, long msg);
3404 long provided_node_features();
3405 long provided_init_features(byte[] their_node_id);
3406 long get_chain_hashes();
3408 public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
3409 public static native long LDKChannelMessageHandler_get_MessageSendEventsProvider(long arg);
3410 // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg
3411 public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long msg);
3412 // void ChannelMessageHandler_handle_open_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannelV2 *NONNULL_PTR msg
3413 public static native void ChannelMessageHandler_handle_open_channel_v2(long this_arg, byte[] their_node_id, long msg);
3414 // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg
3415 public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long msg);
3416 // void ChannelMessageHandler_handle_accept_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannelV2 *NONNULL_PTR msg
3417 public static native void ChannelMessageHandler_handle_accept_channel_v2(long this_arg, byte[] their_node_id, long msg);
3418 // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
3419 public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
3420 // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
3421 public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
3422 // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
3423 public static native void ChannelMessageHandler_handle_channel_ready(long this_arg, byte[] their_node_id, long msg);
3424 // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
3425 public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long msg);
3426 // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
3427 public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
3428 // void ChannelMessageHandler_handle_stfu LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKStfu *NONNULL_PTR msg
3429 public static native void ChannelMessageHandler_handle_stfu(long this_arg, byte[] their_node_id, long msg);
3430 // void ChannelMessageHandler_handle_tx_add_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddInput *NONNULL_PTR msg
3431 public static native void ChannelMessageHandler_handle_tx_add_input(long this_arg, byte[] their_node_id, long msg);
3432 // void ChannelMessageHandler_handle_tx_add_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddOutput *NONNULL_PTR msg
3433 public static native void ChannelMessageHandler_handle_tx_add_output(long this_arg, byte[] their_node_id, long msg);
3434 // void ChannelMessageHandler_handle_tx_remove_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveInput *NONNULL_PTR msg
3435 public static native void ChannelMessageHandler_handle_tx_remove_input(long this_arg, byte[] their_node_id, long msg);
3436 // void ChannelMessageHandler_handle_tx_remove_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveOutput *NONNULL_PTR msg
3437 public static native void ChannelMessageHandler_handle_tx_remove_output(long this_arg, byte[] their_node_id, long msg);
3438 // void ChannelMessageHandler_handle_tx_complete LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxComplete *NONNULL_PTR msg
3439 public static native void ChannelMessageHandler_handle_tx_complete(long this_arg, byte[] their_node_id, long msg);
3440 // void ChannelMessageHandler_handle_tx_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxSignatures *NONNULL_PTR msg
3441 public static native void ChannelMessageHandler_handle_tx_signatures(long this_arg, byte[] their_node_id, long msg);
3442 // void ChannelMessageHandler_handle_tx_init_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxInitRbf *NONNULL_PTR msg
3443 public static native void ChannelMessageHandler_handle_tx_init_rbf(long this_arg, byte[] their_node_id, long msg);
3444 // void ChannelMessageHandler_handle_tx_ack_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAckRbf *NONNULL_PTR msg
3445 public static native void ChannelMessageHandler_handle_tx_ack_rbf(long this_arg, byte[] their_node_id, long msg);
3446 // void ChannelMessageHandler_handle_tx_abort LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAbort *NONNULL_PTR msg
3447 public static native void ChannelMessageHandler_handle_tx_abort(long this_arg, byte[] their_node_id, long msg);
3448 // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
3449 public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
3450 // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
3451 public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
3452 // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
3453 public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
3454 // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
3455 public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
3456 // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
3457 public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
3458 // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
3459 public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
3460 // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
3461 public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
3462 // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
3463 public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
3464 // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3465 public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
3466 // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound
3467 public static native long ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg, boolean inbound);
3468 // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
3469 public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
3470 // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
3471 public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
3472 // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
3473 public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
3474 // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
3475 public static native long ChannelMessageHandler_provided_node_features(long this_arg);
3476 // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3477 public static native long ChannelMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3478 // LDKCOption_CVec_ThirtyTwoBytesZZ ChannelMessageHandler_get_chain_hashes LDKChannelMessageHandler *NONNULL_PTR this_arg
3479 public static native long ChannelMessageHandler_get_chain_hashes(long this_arg);
3480 public interface LDKOffersMessageHandler {
3481 long handle_message(long message);
3482 long[] release_pending_messages();
3484 public static native long LDKOffersMessageHandler_new(LDKOffersMessageHandler impl);
3485 // LDKCOption_OffersMessageZ OffersMessageHandler_handle_message LDKOffersMessageHandler *NONNULL_PTR this_arg, struct LDKOffersMessage message
3486 public static native long OffersMessageHandler_handle_message(long this_arg, long message);
3487 // LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ OffersMessageHandler_release_pending_messages LDKOffersMessageHandler *NONNULL_PTR this_arg
3488 public static native long[] OffersMessageHandler_release_pending_messages(long this_arg);
3489 public interface LDKNodeIdLookUp {
3490 byte[] next_node_id(long short_channel_id);
3492 public static native long LDKNodeIdLookUp_new(LDKNodeIdLookUp impl);
3493 // LDKPublicKey NodeIdLookUp_next_node_id LDKNodeIdLookUp *NONNULL_PTR this_arg, uint64_t short_channel_id
3494 public static native byte[] NodeIdLookUp_next_node_id(long this_arg, long short_channel_id);
3495 public interface LDKRoutingMessageHandler {
3496 long handle_node_announcement(long msg);
3497 long handle_channel_announcement(long msg);
3498 long handle_channel_update(long msg);
3499 long get_next_channel_announcement(long starting_point);
3500 long get_next_node_announcement(long starting_point);
3501 long peer_connected(byte[] their_node_id, long init, boolean inbound);
3502 long handle_reply_channel_range(byte[] their_node_id, long msg);
3503 long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
3504 long handle_query_channel_range(byte[] their_node_id, long msg);
3505 long handle_query_short_channel_ids(byte[] their_node_id, long msg);
3506 boolean processing_queue_high();
3507 long provided_node_features();
3508 long provided_init_features(byte[] their_node_id);
3510 public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
3511 public static native long LDKRoutingMessageHandler_get_MessageSendEventsProvider(long arg);
3512 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
3513 public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
3514 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
3515 public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
3516 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
3517 public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
3518 // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
3519 public static native long RoutingMessageHandler_get_next_channel_announcement(long this_arg, long starting_point);
3520 // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point
3521 public static native long RoutingMessageHandler_get_next_node_announcement(long this_arg, long starting_point);
3522 // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
3523 public static native long RoutingMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
3524 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
3525 public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
3526 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
3527 public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
3528 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
3529 public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
3530 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
3531 public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
3532 // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg
3533 public static native boolean RoutingMessageHandler_processing_queue_high(long this_arg);
3534 // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
3535 public static native long RoutingMessageHandler_provided_node_features(long this_arg);
3536 // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3537 public static native long RoutingMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3538 public interface LDKOnionMessageHandler {
3539 long[] get_and_clear_connections_needed();
3540 void handle_onion_message(byte[] peer_node_id, long msg);
3541 long next_onion_message_for_peer(byte[] peer_node_id);
3542 long peer_connected(byte[] their_node_id, long init, boolean inbound);
3543 void peer_disconnected(byte[] their_node_id);
3544 void timer_tick_occurred();
3545 long provided_node_features();
3546 long provided_init_features(byte[] their_node_id);
3548 public static native long LDKOnionMessageHandler_new(LDKOnionMessageHandler impl);
3549 // LDKCVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ OnionMessageHandler_get_and_clear_connections_needed LDKOnionMessageHandler *NONNULL_PTR this_arg
3550 public static native long[] OnionMessageHandler_get_and_clear_connections_needed(long this_arg);
3551 // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
3552 public static native void OnionMessageHandler_handle_onion_message(long this_arg, byte[] peer_node_id, long msg);
3553 // LDKOnionMessage OnionMessageHandler_next_onion_message_for_peer LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
3554 public static native long OnionMessageHandler_next_onion_message_for_peer(long this_arg, byte[] peer_node_id);
3555 // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
3556 public static native long OnionMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
3557 // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3558 public static native void OnionMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
3559 // void OnionMessageHandler_timer_tick_occurred LDKOnionMessageHandler *NONNULL_PTR this_arg
3560 public static native void OnionMessageHandler_timer_tick_occurred(long this_arg);
3561 // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
3562 public static native long OnionMessageHandler_provided_node_features(long this_arg);
3563 // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3564 public static native long OnionMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3565 public interface LDKCustomMessageReader {
3566 long read(short message_type, byte[] buffer);
3568 public static native long LDKCustomMessageReader_new(LDKCustomMessageReader impl);
3569 // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
3570 public static native long CustomMessageReader_read(long this_arg, short message_type, byte[] buffer);
3571 public interface LDKCustomMessageHandler {
3572 long handle_custom_message(long msg, byte[] sender_node_id);
3573 long[] get_and_clear_pending_msg();
3574 long provided_node_features();
3575 long provided_init_features(byte[] their_node_id);
3577 public static native long LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, LDKCustomMessageReader CustomMessageReader);
3578 public static native long LDKCustomMessageHandler_get_CustomMessageReader(long arg);
3579 // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
3580 public static native long CustomMessageHandler_handle_custom_message(long this_arg, long msg, byte[] sender_node_id);
3581 // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
3582 public static native long[] CustomMessageHandler_get_and_clear_pending_msg(long this_arg);
3583 // LDKNodeFeatures CustomMessageHandler_provided_node_features LDKCustomMessageHandler *NONNULL_PTR this_arg
3584 public static native long CustomMessageHandler_provided_node_features(long this_arg);
3585 // LDKInitFeatures CustomMessageHandler_provided_init_features LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3586 public static native long CustomMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3587 public interface LDKCustomOnionMessageHandler {
3588 long handle_custom_message(long msg);
3589 long read_custom_message(long message_type, byte[] buffer);
3590 long[] release_pending_custom_messages();
3592 public static native long LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandler impl);
3593 // LDKCOption_OnionMessageContentsZ CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKOnionMessageContents msg
3594 public static native long CustomOnionMessageHandler_handle_custom_message(long this_arg, long msg);
3595 // LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer
3596 public static native long CustomOnionMessageHandler_read_custom_message(long this_arg, long message_type, byte[] buffer);
3597 // LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ CustomOnionMessageHandler_release_pending_custom_messages LDKCustomOnionMessageHandler *NONNULL_PTR this_arg
3598 public static native long[] CustomOnionMessageHandler_release_pending_custom_messages(long this_arg);
3599 public interface LDKSocketDescriptor {
3600 long send_data(byte[] data, boolean resume_read);
3601 void disconnect_socket();
3602 boolean eq(long other_arg);
3605 public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
3606 // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
3607 public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
3608 // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
3609 public static native void SocketDescriptor_disconnect_socket(long this_arg);
3610 // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
3611 public static native long SocketDescriptor_hash(long this_arg);
3612 public interface LDKSignBolt12InvoiceFn {
3613 long sign_invoice(long message);
3615 public static native long LDKSignBolt12InvoiceFn_new(LDKSignBolt12InvoiceFn impl);
3616 // LDKCResult_SchnorrSignatureNoneZ SignBolt12InvoiceFn_sign_invoice LDKSignBolt12InvoiceFn *NONNULL_PTR this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR message
3617 public static native long SignBolt12InvoiceFn_sign_invoice(long this_arg, long message);
3618 public interface LDKSignInvoiceRequestFn {
3619 long sign_invoice_request(long message);
3621 public static native long LDKSignInvoiceRequestFn_new(LDKSignInvoiceRequestFn impl);
3622 // LDKCResult_SchnorrSignatureNoneZ SignInvoiceRequestFn_sign_invoice_request LDKSignInvoiceRequestFn *NONNULL_PTR this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR message
3623 public static native long SignInvoiceRequestFn_sign_invoice_request(long this_arg, long message);
3624 public static class LDKSignError {
3625 private LDKSignError() {}
3626 public final static class Signing extends LDKSignError {
3629 public final static class Verification extends LDKSignError {
3630 public org.ldk.enums.Secp256k1Error verification;
3631 Verification(org.ldk.enums.Secp256k1Error verification) { this.verification = verification; }
3633 static native void init();
3635 static { LDKSignError.init(); }
3636 public static native LDKSignError LDKSignError_ref_from_ptr(long ptr);
3637 public static class LDKEffectiveCapacity {
3638 private LDKEffectiveCapacity() {}
3639 public final static class ExactLiquidity extends LDKEffectiveCapacity {
3640 public long liquidity_msat;
3641 ExactLiquidity(long liquidity_msat) { this.liquidity_msat = liquidity_msat; }
3643 public final static class AdvertisedMaxHTLC extends LDKEffectiveCapacity {
3644 public long amount_msat;
3645 AdvertisedMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
3647 public final static class Total extends LDKEffectiveCapacity {
3648 public long capacity_msat;
3649 public long htlc_maximum_msat;
3650 Total(long capacity_msat, long htlc_maximum_msat) { this.capacity_msat = capacity_msat; this.htlc_maximum_msat = htlc_maximum_msat; }
3652 public final static class Infinite extends LDKEffectiveCapacity {
3655 public final static class HintMaxHTLC extends LDKEffectiveCapacity {
3656 public long amount_msat;
3657 HintMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
3659 public final static class Unknown extends LDKEffectiveCapacity {
3662 static native void init();
3664 static { LDKEffectiveCapacity.init(); }
3665 public static native LDKEffectiveCapacity LDKEffectiveCapacity_ref_from_ptr(long ptr);
3666 public static class LDKPayee {
3667 private LDKPayee() {}
3668 public final static class Blinded extends LDKPayee {
3669 public long[] route_hints;
3670 public long features;
3671 Blinded(long[] route_hints, long features) { this.route_hints = route_hints; this.features = features; }
3673 public final static class Clear extends LDKPayee {
3674 public byte[] node_id;
3675 public long[] route_hints;
3676 public long features;
3677 public int final_cltv_expiry_delta;
3678 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; }
3680 static native void init();
3682 static { LDKPayee.init(); }
3683 public static native LDKPayee LDKPayee_ref_from_ptr(long ptr);
3684 public interface LDKScore {
3687 public static native long LDKScore_new(LDKScore impl, LDKScoreLookUp ScoreLookUp, LDKScoreUpdate ScoreUpdate);
3688 public static native long LDKScore_get_ScoreLookUp(long arg);
3689 public static native long LDKScore_get_ScoreUpdate(long arg);
3690 // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
3691 public static native byte[] Score_write(long this_arg);
3692 public static class LDKIntroductionNode {
3693 private LDKIntroductionNode() {}
3694 public final static class NodeId extends LDKIntroductionNode {
3695 public byte[] node_id;
3696 NodeId(byte[] node_id) { this.node_id = node_id; }
3698 public final static class DirectedShortChannelId extends LDKIntroductionNode {
3699 public org.ldk.enums.Direction _0;
3701 DirectedShortChannelId(org.ldk.enums.Direction _0, long _1) { this._0 = _0; this._1 = _1; }
3703 static native void init();
3705 static { LDKIntroductionNode.init(); }
3706 public static native LDKIntroductionNode LDKIntroductionNode_ref_from_ptr(long ptr);
3707 public interface LDKCoinSelectionSource {
3708 long select_confirmed_utxos(byte[] claim_id, long[] must_spend, long[] must_pay_to, int target_feerate_sat_per_1000_weight);
3709 long sign_psbt(byte[] psbt);
3711 public static native long LDKCoinSelectionSource_new(LDKCoinSelectionSource impl);
3712 // 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
3713 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);
3714 // LDKCResult_TransactionNoneZ CoinSelectionSource_sign_psbt LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKCVec_u8Z psbt
3715 public static native long CoinSelectionSource_sign_psbt(long this_arg, byte[] psbt);
3716 public interface LDKWalletSource {
3717 long list_confirmed_utxos();
3718 long get_change_script();
3719 long sign_psbt(byte[] psbt);
3721 public static native long LDKWalletSource_new(LDKWalletSource impl);
3722 // LDKCResult_CVec_UtxoZNoneZ WalletSource_list_confirmed_utxos LDKWalletSource *NONNULL_PTR this_arg
3723 public static native long WalletSource_list_confirmed_utxos(long this_arg);
3724 // LDKCResult_CVec_u8ZNoneZ WalletSource_get_change_script LDKWalletSource *NONNULL_PTR this_arg
3725 public static native long WalletSource_get_change_script(long this_arg);
3726 // LDKCResult_TransactionNoneZ WalletSource_sign_psbt LDKWalletSource *NONNULL_PTR this_arg, struct LDKCVec_u8Z psbt
3727 public static native long WalletSource_sign_psbt(long this_arg, byte[] psbt);
3728 public static class LDKGossipSync {
3729 private LDKGossipSync() {}
3730 public final static class P2P extends LDKGossipSync {
3732 P2P(long p2p) { this.p2p = p2p; }
3734 public final static class Rapid extends LDKGossipSync {
3736 Rapid(long rapid) { this.rapid = rapid; }
3738 public final static class None extends LDKGossipSync {
3741 static native void init();
3743 static { LDKGossipSync.init(); }
3744 public static native LDKGossipSync LDKGossipSync_ref_from_ptr(long ptr);
3745 public static class LDKFallback {
3746 private LDKFallback() {}
3747 public final static class SegWitProgram extends LDKFallback {
3748 public byte version;
3749 public byte[] program;
3750 SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
3752 public final static class PubKeyHash extends LDKFallback {
3753 public byte[] pub_key_hash;
3754 PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
3756 public final static class ScriptHash extends LDKFallback {
3757 public byte[] script_hash;
3758 ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
3760 static native void init();
3762 static { LDKFallback.init(); }
3763 public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
3764 // struct LDKStr _ldk_get_compiled_version(void);
3765 public static native String _ldk_get_compiled_version();
3766 // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
3767 public static native String _ldk_c_bindings_get_compiled_version();
3768 // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
3769 public static native byte[] U128_le_bytes(byte[] val);
3770 // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
3771 public static native byte[] U128_new(byte[] le_bytes);
3772 // struct LDKWitnessProgram WitnessProgram_new(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
3773 public static native long WitnessProgram_new(byte version, byte[] program);
3774 // struct LDKWitnessVersion WitnessProgram_get_version(const struct LDKWitnessProgram *NONNULL_PTR prog);
3775 public static native byte WitnessProgram_get_version(long prog);
3776 // struct LDKu8slice WitnessProgram_get_program(const struct LDKWitnessProgram *NONNULL_PTR prog);
3777 public static native byte[] WitnessProgram_get_program(long prog);
3778 // uint64_t WitnessProgram_clone_ptr(LDKWitnessProgram *NONNULL_PTR arg);
3779 public static native long WitnessProgram_clone_ptr(long arg);
3780 // struct LDKWitnessProgram WitnessProgram_clone(const struct LDKWitnessProgram *NONNULL_PTR orig);
3781 public static native long WitnessProgram_clone(long orig);
3782 // void WitnessProgram_free(struct LDKWitnessProgram o);
3783 public static native void WitnessProgram_free(long o);
3784 // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
3785 public static native long BigEndianScalar_new(byte[] big_endian_bytes);
3786 // uint64_t BigEndianScalar_clone_ptr(LDKBigEndianScalar *NONNULL_PTR arg);
3787 public static native long BigEndianScalar_clone_ptr(long arg);
3788 // struct LDKBigEndianScalar BigEndianScalar_clone(const struct LDKBigEndianScalar *NONNULL_PTR orig);
3789 public static native long BigEndianScalar_clone(long orig);
3790 // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
3791 public static native long Bech32Error_clone_ptr(long arg);
3792 // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
3793 public static native long Bech32Error_clone(long orig);
3794 // void Bech32Error_free(struct LDKBech32Error o);
3795 public static native void Bech32Error_free(long o);
3796 // void Transaction_free(struct LDKTransaction _res);
3797 public static native void Transaction_free(byte[] _res);
3798 // void Witness_free(struct LDKWitness _res);
3799 public static native void Witness_free(byte[] _res);
3800 // struct LDKTxIn TxIn_new(struct LDKWitness witness, struct LDKCVec_u8Z script_sig, uint32_t sequence, struct LDKThirtyTwoBytes previous_txid, uint32_t previous_vout);
3801 public static native long TxIn_new(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout);
3802 // struct LDKWitness TxIn_get_witness(const struct LDKTxIn *NONNULL_PTR txin);
3803 public static native byte[] TxIn_get_witness(long txin);
3804 // struct LDKu8slice TxIn_get_script_sig(const struct LDKTxIn *NONNULL_PTR txin);
3805 public static native byte[] TxIn_get_script_sig(long txin);
3806 // uint32_t TxIn_get_sequence(const struct LDKTxIn *NONNULL_PTR txin);
3807 public static native int TxIn_get_sequence(long txin);
3808 // struct LDKThirtyTwoBytes TxIn_get_previous_txid(const struct LDKTxIn *NONNULL_PTR txin);
3809 public static native byte[] TxIn_get_previous_txid(long txin);
3810 // uint32_t TxIn_get_previous_vout(const struct LDKTxIn *NONNULL_PTR txin);
3811 public static native int TxIn_get_previous_vout(long txin);
3812 // void TxIn_free(struct LDKTxIn _res);
3813 public static native void TxIn_free(long _res);
3814 // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
3815 public static native long TxOut_new(byte[] script_pubkey, long value);
3816 // struct LDKu8slice TxOut_get_script_pubkey(const struct LDKTxOut *NONNULL_PTR txout);
3817 public static native byte[] TxOut_get_script_pubkey(long txout);
3818 // uint64_t TxOut_get_value(const struct LDKTxOut *NONNULL_PTR txout);
3819 public static native long TxOut_get_value(long txout);
3820 // void TxOut_free(struct LDKTxOut _res);
3821 public static native void TxOut_free(long _res);
3822 // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
3823 public static native long TxOut_clone_ptr(long arg);
3824 // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
3825 public static native long TxOut_clone(long orig);
3826 // void Str_free(struct LDKStr _res);
3827 public static native void Str_free(String _res);
3828 // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
3829 public static native void CVec_u8Z_free(byte[] _res);
3830 // struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(struct LDKRefundMaybeWithDerivedMetadataBuilder o);
3831 public static native long CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(long o);
3832 // struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
3833 public static native long CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(Bolt12SemanticError e);
3834 // bool CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR o);
3835 public static native boolean CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(long o);
3836 // void CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ _res);
3837 public static native void CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(long _res);
3838 // uint64_t CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR arg);
3839 public static native long CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(long arg);
3840 // struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(const struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR orig);
3841 public static native long CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(long orig);
3842 // struct LDKCResult_RefundBolt12SemanticErrorZ CResult_RefundBolt12SemanticErrorZ_ok(struct LDKRefund o);
3843 public static native long CResult_RefundBolt12SemanticErrorZ_ok(long o);
3844 // struct LDKCResult_RefundBolt12SemanticErrorZ CResult_RefundBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
3845 public static native long CResult_RefundBolt12SemanticErrorZ_err(Bolt12SemanticError e);
3846 // bool CResult_RefundBolt12SemanticErrorZ_is_ok(const struct LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR o);
3847 public static native boolean CResult_RefundBolt12SemanticErrorZ_is_ok(long o);
3848 // void CResult_RefundBolt12SemanticErrorZ_free(struct LDKCResult_RefundBolt12SemanticErrorZ _res);
3849 public static native void CResult_RefundBolt12SemanticErrorZ_free(long _res);
3850 // uint64_t CResult_RefundBolt12SemanticErrorZ_clone_ptr(LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR arg);
3851 public static native long CResult_RefundBolt12SemanticErrorZ_clone_ptr(long arg);
3852 // struct LDKCResult_RefundBolt12SemanticErrorZ CResult_RefundBolt12SemanticErrorZ_clone(const struct LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR orig);
3853 public static native long CResult_RefundBolt12SemanticErrorZ_clone(long orig);
3854 // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
3855 public static native long COption_u64Z_some(long o);
3856 // struct LDKCOption_u64Z COption_u64Z_none(void);
3857 public static native long COption_u64Z_none();
3858 // void COption_u64Z_free(struct LDKCOption_u64Z _res);
3859 public static native void COption_u64Z_free(long _res);
3860 // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
3861 public static native long COption_u64Z_clone_ptr(long arg);
3862 // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
3863 public static native long COption_u64Z_clone(long orig);
3864 // void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res);
3865 public static native void CVec_BlindedPathZ_free(long[] _res);
3866 // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o);
3867 public static native long CResult_RefundBolt12ParseErrorZ_ok(long o);
3868 // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
3869 public static native long CResult_RefundBolt12ParseErrorZ_err(long e);
3870 // bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o);
3871 public static native boolean CResult_RefundBolt12ParseErrorZ_is_ok(long o);
3872 // void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res);
3873 public static native void CResult_RefundBolt12ParseErrorZ_free(long _res);
3874 // uint64_t CResult_RefundBolt12ParseErrorZ_clone_ptr(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR arg);
3875 public static native long CResult_RefundBolt12ParseErrorZ_clone_ptr(long arg);
3876 // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig);
3877 public static native long CResult_RefundBolt12ParseErrorZ_clone(long orig);
3878 // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_ok(struct LDKRetry o);
3879 public static native long CResult_RetryDecodeErrorZ_ok(long o);
3880 // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_err(struct LDKDecodeError e);
3881 public static native long CResult_RetryDecodeErrorZ_err(long e);
3882 // bool CResult_RetryDecodeErrorZ_is_ok(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR o);
3883 public static native boolean CResult_RetryDecodeErrorZ_is_ok(long o);
3884 // void CResult_RetryDecodeErrorZ_free(struct LDKCResult_RetryDecodeErrorZ _res);
3885 public static native void CResult_RetryDecodeErrorZ_free(long _res);
3886 // uint64_t CResult_RetryDecodeErrorZ_clone_ptr(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR arg);
3887 public static native long CResult_RetryDecodeErrorZ_clone_ptr(long arg);
3888 // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_clone(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR orig);
3889 public static native long CResult_RetryDecodeErrorZ_clone(long orig);
3890 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
3891 public static native long CResult_NoneAPIErrorZ_ok();
3892 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
3893 public static native long CResult_NoneAPIErrorZ_err(long e);
3894 // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
3895 public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
3896 // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
3897 public static native void CResult_NoneAPIErrorZ_free(long _res);
3898 // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
3899 public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
3900 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
3901 public static native long CResult_NoneAPIErrorZ_clone(long orig);
3902 // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
3903 public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
3904 // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
3905 public static native void CVec_APIErrorZ_free(long[] _res);
3906 // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_some(struct LDKThirtyTwoBytes o);
3907 public static native long COption_ThirtyTwoBytesZ_some(byte[] o);
3908 // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_none(void);
3909 public static native long COption_ThirtyTwoBytesZ_none();
3910 // void COption_ThirtyTwoBytesZ_free(struct LDKCOption_ThirtyTwoBytesZ _res);
3911 public static native void COption_ThirtyTwoBytesZ_free(long _res);
3912 // uint64_t COption_ThirtyTwoBytesZ_clone_ptr(LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR arg);
3913 public static native long COption_ThirtyTwoBytesZ_clone_ptr(long arg);
3914 // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_clone(const struct LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR orig);
3915 public static native long COption_ThirtyTwoBytesZ_clone(long orig);
3916 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o);
3917 public static native long COption_CVec_u8ZZ_some(byte[] o);
3918 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_none(void);
3919 public static native long COption_CVec_u8ZZ_none();
3920 // void COption_CVec_u8ZZ_free(struct LDKCOption_CVec_u8ZZ _res);
3921 public static native void COption_CVec_u8ZZ_free(long _res);
3922 // uint64_t COption_CVec_u8ZZ_clone_ptr(LDKCOption_CVec_u8ZZ *NONNULL_PTR arg);
3923 public static native long COption_CVec_u8ZZ_clone_ptr(long arg);
3924 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_clone(const struct LDKCOption_CVec_u8ZZ *NONNULL_PTR orig);
3925 public static native long COption_CVec_u8ZZ_clone(long orig);
3926 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_ok(struct LDKRecipientOnionFields o);
3927 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_ok(long o);
3928 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_err(struct LDKDecodeError e);
3929 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_err(long e);
3930 // bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR o);
3931 public static native boolean CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(long o);
3932 // void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOnionFieldsDecodeErrorZ _res);
3933 public static native void CResult_RecipientOnionFieldsDecodeErrorZ_free(long _res);
3934 // uint64_t CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR arg);
3935 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(long arg);
3936 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig);
3937 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone(long orig);
3938 // uint64_t C2Tuple_u64CVec_u8ZZ_clone_ptr(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR arg);
3939 public static native long C2Tuple_u64CVec_u8ZZ_clone_ptr(long arg);
3940 // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_clone(const struct LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR orig);
3941 public static native long C2Tuple_u64CVec_u8ZZ_clone(long orig);
3942 // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_new(uint64_t a, struct LDKCVec_u8Z b);
3943 public static native long C2Tuple_u64CVec_u8ZZ_new(long a, byte[] b);
3944 // void C2Tuple_u64CVec_u8ZZ_free(struct LDKC2Tuple_u64CVec_u8ZZ _res);
3945 public static native void C2Tuple_u64CVec_u8ZZ_free(long _res);
3946 // void CVec_C2Tuple_u64CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u64CVec_u8ZZZ _res);
3947 public static native void CVec_C2Tuple_u64CVec_u8ZZZ_free(long[] _res);
3948 // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_ok(struct LDKRecipientOnionFields o);
3949 public static native long CResult_RecipientOnionFieldsNoneZ_ok(long o);
3950 // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_err(void);
3951 public static native long CResult_RecipientOnionFieldsNoneZ_err();
3952 // bool CResult_RecipientOnionFieldsNoneZ_is_ok(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR o);
3953 public static native boolean CResult_RecipientOnionFieldsNoneZ_is_ok(long o);
3954 // void CResult_RecipientOnionFieldsNoneZ_free(struct LDKCResult_RecipientOnionFieldsNoneZ _res);
3955 public static native void CResult_RecipientOnionFieldsNoneZ_free(long _res);
3956 // uint64_t CResult_RecipientOnionFieldsNoneZ_clone_ptr(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR arg);
3957 public static native long CResult_RecipientOnionFieldsNoneZ_clone_ptr(long arg);
3958 // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_clone(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR orig);
3959 public static native long CResult_RecipientOnionFieldsNoneZ_clone(long orig);
3960 // struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_ok(struct LDKUnsignedBolt12Invoice o);
3961 public static native long CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_ok(long o);
3962 // struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
3963 public static native long CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_err(Bolt12SemanticError e);
3964 // bool CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_is_ok(const struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR o);
3965 public static native boolean CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_is_ok(long o);
3966 // void CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_free(struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ _res);
3967 public static native void CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_free(long _res);
3968 // uint64_t CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone_ptr(LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR arg);
3969 public static native long CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone_ptr(long arg);
3970 // struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone(const struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR orig);
3971 public static native long CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone(long orig);
3972 // struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ CResult_Bolt12InvoiceBolt12SemanticErrorZ_ok(struct LDKBolt12Invoice o);
3973 public static native long CResult_Bolt12InvoiceBolt12SemanticErrorZ_ok(long o);
3974 // struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ CResult_Bolt12InvoiceBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
3975 public static native long CResult_Bolt12InvoiceBolt12SemanticErrorZ_err(Bolt12SemanticError e);
3976 // bool CResult_Bolt12InvoiceBolt12SemanticErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR o);
3977 public static native boolean CResult_Bolt12InvoiceBolt12SemanticErrorZ_is_ok(long o);
3978 // void CResult_Bolt12InvoiceBolt12SemanticErrorZ_free(struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ _res);
3979 public static native void CResult_Bolt12InvoiceBolt12SemanticErrorZ_free(long _res);
3980 // uint64_t CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR arg);
3981 public static native long CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone_ptr(long arg);
3982 // struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone(const struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR orig);
3983 public static native long CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone(long orig);
3984 // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o);
3985 public static native long CResult_SchnorrSignatureNoneZ_ok(byte[] o);
3986 // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void);
3987 public static native long CResult_SchnorrSignatureNoneZ_err();
3988 // bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o);
3989 public static native boolean CResult_SchnorrSignatureNoneZ_is_ok(long o);
3990 // void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res);
3991 public static native void CResult_SchnorrSignatureNoneZ_free(long _res);
3992 // uint64_t CResult_SchnorrSignatureNoneZ_clone_ptr(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR arg);
3993 public static native long CResult_SchnorrSignatureNoneZ_clone_ptr(long arg);
3994 // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig);
3995 public static native long CResult_SchnorrSignatureNoneZ_clone(long orig);
3996 // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
3997 public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
3998 // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_some(struct LDKCVec_ThirtyTwoBytesZ o);
3999 public static native long COption_CVec_ThirtyTwoBytesZZ_some(byte[][] o);
4000 // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_none(void);
4001 public static native long COption_CVec_ThirtyTwoBytesZZ_none();
4002 // void COption_CVec_ThirtyTwoBytesZZ_free(struct LDKCOption_CVec_ThirtyTwoBytesZZ _res);
4003 public static native void COption_CVec_ThirtyTwoBytesZZ_free(long _res);
4004 // uint64_t COption_CVec_ThirtyTwoBytesZZ_clone_ptr(LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR arg);
4005 public static native long COption_CVec_ThirtyTwoBytesZZ_clone_ptr(long arg);
4006 // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_clone(const struct LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR orig);
4007 public static native long COption_CVec_ThirtyTwoBytesZZ_clone(long orig);
4008 // struct LDKCOption_AmountZ COption_AmountZ_some(struct LDKAmount o);
4009 public static native long COption_AmountZ_some(long o);
4010 // struct LDKCOption_AmountZ COption_AmountZ_none(void);
4011 public static native long COption_AmountZ_none();
4012 // void COption_AmountZ_free(struct LDKCOption_AmountZ _res);
4013 public static native void COption_AmountZ_free(long _res);
4014 // uint64_t COption_AmountZ_clone_ptr(LDKCOption_AmountZ *NONNULL_PTR arg);
4015 public static native long COption_AmountZ_clone_ptr(long arg);
4016 // struct LDKCOption_AmountZ COption_AmountZ_clone(const struct LDKCOption_AmountZ *NONNULL_PTR orig);
4017 public static native long COption_AmountZ_clone(long orig);
4018 // struct LDKCOption_QuantityZ COption_QuantityZ_some(struct LDKQuantity o);
4019 public static native long COption_QuantityZ_some(long o);
4020 // struct LDKCOption_QuantityZ COption_QuantityZ_none(void);
4021 public static native long COption_QuantityZ_none();
4022 // void COption_QuantityZ_free(struct LDKCOption_QuantityZ _res);
4023 public static native void COption_QuantityZ_free(long _res);
4024 // uint64_t COption_QuantityZ_clone_ptr(LDKCOption_QuantityZ *NONNULL_PTR arg);
4025 public static native long COption_QuantityZ_clone_ptr(long arg);
4026 // struct LDKCOption_QuantityZ COption_QuantityZ_clone(const struct LDKCOption_QuantityZ *NONNULL_PTR orig);
4027 public static native long COption_QuantityZ_clone(long orig);
4028 // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o);
4029 public static native long CResult_ThirtyTwoBytesNoneZ_ok(byte[] o);
4030 // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_err(void);
4031 public static native long CResult_ThirtyTwoBytesNoneZ_err();
4032 // bool CResult_ThirtyTwoBytesNoneZ_is_ok(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR o);
4033 public static native boolean CResult_ThirtyTwoBytesNoneZ_is_ok(long o);
4034 // void CResult_ThirtyTwoBytesNoneZ_free(struct LDKCResult_ThirtyTwoBytesNoneZ _res);
4035 public static native void CResult_ThirtyTwoBytesNoneZ_free(long _res);
4036 // uint64_t CResult_ThirtyTwoBytesNoneZ_clone_ptr(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR arg);
4037 public static native long CResult_ThirtyTwoBytesNoneZ_clone_ptr(long arg);
4038 // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_clone(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR orig);
4039 public static native long CResult_ThirtyTwoBytesNoneZ_clone(long orig);
4040 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_ok(struct LDKBlindedPayInfo o);
4041 public static native long CResult_BlindedPayInfoDecodeErrorZ_ok(long o);
4042 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_err(struct LDKDecodeError e);
4043 public static native long CResult_BlindedPayInfoDecodeErrorZ_err(long e);
4044 // bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR o);
4045 public static native boolean CResult_BlindedPayInfoDecodeErrorZ_is_ok(long o);
4046 // void CResult_BlindedPayInfoDecodeErrorZ_free(struct LDKCResult_BlindedPayInfoDecodeErrorZ _res);
4047 public static native void CResult_BlindedPayInfoDecodeErrorZ_free(long _res);
4048 // uint64_t CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR arg);
4049 public static native long CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(long arg);
4050 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_clone(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR orig);
4051 public static native long CResult_BlindedPayInfoDecodeErrorZ_clone(long orig);
4052 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
4053 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
4054 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
4055 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
4056 // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
4057 public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
4058 // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
4059 public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
4060 // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
4061 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
4062 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
4063 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
4064 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
4065 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
4066 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
4067 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
4068 // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
4069 public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
4070 // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
4071 public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
4072 // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
4073 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
4074 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
4075 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
4076 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
4077 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
4078 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
4079 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
4080 // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
4081 public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
4082 // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
4083 public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
4084 // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
4085 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
4086 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
4087 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
4088 // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
4089 public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
4090 // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
4091 public static native void CVec_TxOutZ_free(long[] _res);
4092 // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
4093 public static native long COption_u32Z_some(int o);
4094 // struct LDKCOption_u32Z COption_u32Z_none(void);
4095 public static native long COption_u32Z_none();
4096 // void COption_u32Z_free(struct LDKCOption_u32Z _res);
4097 public static native void COption_u32Z_free(long _res);
4098 // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
4099 public static native long COption_u32Z_clone_ptr(long arg);
4100 // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
4101 public static native long COption_u32Z_clone(long orig);
4102 // uint64_t C2Tuple_CVec_u8Zu64Z_clone_ptr(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR arg);
4103 public static native long C2Tuple_CVec_u8Zu64Z_clone_ptr(long arg);
4104 // struct LDKC2Tuple_CVec_u8Zu64Z C2Tuple_CVec_u8Zu64Z_clone(const struct LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR orig);
4105 public static native long C2Tuple_CVec_u8Zu64Z_clone(long orig);
4106 // struct LDKC2Tuple_CVec_u8Zu64Z C2Tuple_CVec_u8Zu64Z_new(struct LDKCVec_u8Z a, uint64_t b);
4107 public static native long C2Tuple_CVec_u8Zu64Z_new(byte[] a, long b);
4108 // void C2Tuple_CVec_u8Zu64Z_free(struct LDKC2Tuple_CVec_u8Zu64Z _res);
4109 public static native void C2Tuple_CVec_u8Zu64Z_free(long _res);
4110 // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok(struct LDKC2Tuple_CVec_u8Zu64Z o);
4111 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok(long o);
4112 // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err(void);
4113 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err();
4114 // bool CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(const struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR o);
4115 public static native boolean CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(long o);
4116 // void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free(struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ _res);
4117 public static native void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free(long _res);
4118 // uint64_t CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR arg);
4119 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr(long arg);
4120 // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone(const struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR orig);
4121 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone(long orig);
4122 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_ok(struct LDKChannelDerivationParameters o);
4123 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_ok(long o);
4124 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_err(struct LDKDecodeError e);
4125 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_err(long e);
4126 // bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR o);
4127 public static native boolean CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(long o);
4128 // void CResult_ChannelDerivationParametersDecodeErrorZ_free(struct LDKCResult_ChannelDerivationParametersDecodeErrorZ _res);
4129 public static native void CResult_ChannelDerivationParametersDecodeErrorZ_free(long _res);
4130 // uint64_t CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR arg);
4131 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(long arg);
4132 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR orig);
4133 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone(long orig);
4134 // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_ok(struct LDKHTLCDescriptor o);
4135 public static native long CResult_HTLCDescriptorDecodeErrorZ_ok(long o);
4136 // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
4137 public static native long CResult_HTLCDescriptorDecodeErrorZ_err(long e);
4138 // bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR o);
4139 public static native boolean CResult_HTLCDescriptorDecodeErrorZ_is_ok(long o);
4140 // void CResult_HTLCDescriptorDecodeErrorZ_free(struct LDKCResult_HTLCDescriptorDecodeErrorZ _res);
4141 public static native void CResult_HTLCDescriptorDecodeErrorZ_free(long _res);
4142 // uint64_t CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR arg);
4143 public static native long CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(long arg);
4144 // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_clone(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR orig);
4145 public static native long CResult_HTLCDescriptorDecodeErrorZ_clone(long orig);
4146 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
4147 public static native long CResult_NoneNoneZ_ok();
4148 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
4149 public static native long CResult_NoneNoneZ_err();
4150 // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
4151 public static native boolean CResult_NoneNoneZ_is_ok(long o);
4152 // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
4153 public static native void CResult_NoneNoneZ_free(long _res);
4154 // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
4155 public static native long CResult_NoneNoneZ_clone_ptr(long arg);
4156 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
4157 public static native long CResult_NoneNoneZ_clone(long orig);
4158 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
4159 public static native long CResult_PublicKeyNoneZ_ok(byte[] o);
4160 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
4161 public static native long CResult_PublicKeyNoneZ_err();
4162 // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
4163 public static native boolean CResult_PublicKeyNoneZ_is_ok(long o);
4164 // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
4165 public static native void CResult_PublicKeyNoneZ_free(long _res);
4166 // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
4167 public static native long CResult_PublicKeyNoneZ_clone_ptr(long arg);
4168 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
4169 public static native long CResult_PublicKeyNoneZ_clone(long orig);
4170 // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_some(struct LDKBigEndianScalar o);
4171 public static native long COption_BigEndianScalarZ_some(long o);
4172 // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_none(void);
4173 public static native long COption_BigEndianScalarZ_none();
4174 // void COption_BigEndianScalarZ_free(struct LDKCOption_BigEndianScalarZ _res);
4175 public static native void COption_BigEndianScalarZ_free(long _res);
4176 // uint64_t COption_BigEndianScalarZ_clone_ptr(LDKCOption_BigEndianScalarZ *NONNULL_PTR arg);
4177 public static native long COption_BigEndianScalarZ_clone_ptr(long arg);
4178 // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_clone(const struct LDKCOption_BigEndianScalarZ *NONNULL_PTR orig);
4179 public static native long COption_BigEndianScalarZ_clone(long orig);
4180 // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
4181 public static native void CVec_U5Z_free(byte[] _res);
4182 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
4183 public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
4184 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
4185 public static native long CResult_RecoverableSignatureNoneZ_err();
4186 // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
4187 public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
4188 // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
4189 public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
4190 // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
4191 public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
4192 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
4193 public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
4194 // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o);
4195 public static native long CResult_ECDSASignatureNoneZ_ok(byte[] o);
4196 // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void);
4197 public static native long CResult_ECDSASignatureNoneZ_err();
4198 // bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o);
4199 public static native boolean CResult_ECDSASignatureNoneZ_is_ok(long o);
4200 // void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res);
4201 public static native void CResult_ECDSASignatureNoneZ_free(long _res);
4202 // uint64_t CResult_ECDSASignatureNoneZ_clone_ptr(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR arg);
4203 public static native long CResult_ECDSASignatureNoneZ_clone_ptr(long arg);
4204 // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig);
4205 public static native long CResult_ECDSASignatureNoneZ_clone(long orig);
4206 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
4207 public static native long CResult_TransactionNoneZ_ok(byte[] o);
4208 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
4209 public static native long CResult_TransactionNoneZ_err();
4210 // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
4211 public static native boolean CResult_TransactionNoneZ_is_ok(long o);
4212 // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
4213 public static native void CResult_TransactionNoneZ_free(long _res);
4214 // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
4215 public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
4216 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
4217 public static native long CResult_TransactionNoneZ_clone(long orig);
4218 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
4219 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long o);
4220 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
4221 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long e);
4222 // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
4223 public static native boolean CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long o);
4224 // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
4225 public static native void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long _res);
4226 // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
4227 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long arg);
4228 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
4229 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long orig);
4230 // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_ok(struct LDKCVec_u8Z o);
4231 public static native long CResult_CVec_u8ZNoneZ_ok(byte[] o);
4232 // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_err(void);
4233 public static native long CResult_CVec_u8ZNoneZ_err();
4234 // bool CResult_CVec_u8ZNoneZ_is_ok(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR o);
4235 public static native boolean CResult_CVec_u8ZNoneZ_is_ok(long o);
4236 // void CResult_CVec_u8ZNoneZ_free(struct LDKCResult_CVec_u8ZNoneZ _res);
4237 public static native void CResult_CVec_u8ZNoneZ_free(long _res);
4238 // uint64_t CResult_CVec_u8ZNoneZ_clone_ptr(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR arg);
4239 public static native long CResult_CVec_u8ZNoneZ_clone_ptr(long arg);
4240 // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_clone(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR orig);
4241 public static native long CResult_CVec_u8ZNoneZ_clone(long orig);
4242 // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_ok(struct LDKShutdownScript o);
4243 public static native long CResult_ShutdownScriptNoneZ_ok(long o);
4244 // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_err(void);
4245 public static native long CResult_ShutdownScriptNoneZ_err();
4246 // bool CResult_ShutdownScriptNoneZ_is_ok(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR o);
4247 public static native boolean CResult_ShutdownScriptNoneZ_is_ok(long o);
4248 // void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res);
4249 public static native void CResult_ShutdownScriptNoneZ_free(long _res);
4250 // uint64_t CResult_ShutdownScriptNoneZ_clone_ptr(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR arg);
4251 public static native long CResult_ShutdownScriptNoneZ_clone_ptr(long arg);
4252 // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig);
4253 public static native long CResult_ShutdownScriptNoneZ_clone(long orig);
4254 // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
4255 public static native long COption_u16Z_some(short o);
4256 // struct LDKCOption_u16Z COption_u16Z_none(void);
4257 public static native long COption_u16Z_none();
4258 // void COption_u16Z_free(struct LDKCOption_u16Z _res);
4259 public static native void COption_u16Z_free(long _res);
4260 // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
4261 public static native long COption_u16Z_clone_ptr(long arg);
4262 // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
4263 public static native long COption_u16Z_clone(long orig);
4264 // struct LDKCOption_boolZ COption_boolZ_some(bool o);
4265 public static native long COption_boolZ_some(boolean o);
4266 // struct LDKCOption_boolZ COption_boolZ_none(void);
4267 public static native long COption_boolZ_none();
4268 // void COption_boolZ_free(struct LDKCOption_boolZ _res);
4269 public static native void COption_boolZ_free(long _res);
4270 // uint64_t COption_boolZ_clone_ptr(LDKCOption_boolZ *NONNULL_PTR arg);
4271 public static native long COption_boolZ_clone_ptr(long arg);
4272 // struct LDKCOption_boolZ COption_boolZ_clone(const struct LDKCOption_boolZ *NONNULL_PTR orig);
4273 public static native long COption_boolZ_clone(long orig);
4274 // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_ok(struct LDKWitness o);
4275 public static native long CResult_WitnessNoneZ_ok(byte[] o);
4276 // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_err(void);
4277 public static native long CResult_WitnessNoneZ_err();
4278 // bool CResult_WitnessNoneZ_is_ok(const struct LDKCResult_WitnessNoneZ *NONNULL_PTR o);
4279 public static native boolean CResult_WitnessNoneZ_is_ok(long o);
4280 // void CResult_WitnessNoneZ_free(struct LDKCResult_WitnessNoneZ _res);
4281 public static native void CResult_WitnessNoneZ_free(long _res);
4282 // uint64_t CResult_WitnessNoneZ_clone_ptr(LDKCResult_WitnessNoneZ *NONNULL_PTR arg);
4283 public static native long CResult_WitnessNoneZ_clone_ptr(long arg);
4284 // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_clone(const struct LDKCResult_WitnessNoneZ *NONNULL_PTR orig);
4285 public static native long CResult_WitnessNoneZ_clone(long orig);
4286 // void CVec_ECDSASignatureZ_free(struct LDKCVec_ECDSASignatureZ _res);
4287 public static native void CVec_ECDSASignatureZ_free(byte[][] _res);
4288 // uint64_t C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR arg);
4289 public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(long arg);
4290 // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(const struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR orig);
4291 public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(long orig);
4292 // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(struct LDKECDSASignature a, struct LDKCVec_ECDSASignatureZ b);
4293 public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(byte[] a, byte[][] b);
4294 // void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ _res);
4295 public static native void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(long _res);
4296 // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ o);
4297 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(long o);
4298 // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(void);
4299 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err();
4300 // bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR o);
4301 public static native boolean CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(long o);
4302 // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ _res);
4303 public static native void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(long _res);
4304 // uint64_t CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR arg);
4305 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(long arg);
4306 // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR orig);
4307 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(long orig);
4308 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
4309 public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
4310 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
4311 public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
4312 // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
4313 public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
4314 // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
4315 public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
4316 // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
4317 public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
4318 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
4319 public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
4320 // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o);
4321 public static native long COption_WriteableScoreZ_some(long o);
4322 // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void);
4323 public static native long COption_WriteableScoreZ_none();
4324 // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res);
4325 public static native void COption_WriteableScoreZ_free(long _res);
4326 // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_ok(void);
4327 public static native long CResult_NoneIOErrorZ_ok();
4328 // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_err(enum LDKIOError e);
4329 public static native long CResult_NoneIOErrorZ_err(IOError e);
4330 // bool CResult_NoneIOErrorZ_is_ok(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR o);
4331 public static native boolean CResult_NoneIOErrorZ_is_ok(long o);
4332 // void CResult_NoneIOErrorZ_free(struct LDKCResult_NoneIOErrorZ _res);
4333 public static native void CResult_NoneIOErrorZ_free(long _res);
4334 // uint64_t CResult_NoneIOErrorZ_clone_ptr(LDKCResult_NoneIOErrorZ *NONNULL_PTR arg);
4335 public static native long CResult_NoneIOErrorZ_clone_ptr(long arg);
4336 // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_clone(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR orig);
4337 public static native long CResult_NoneIOErrorZ_clone(long orig);
4338 // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
4339 public static native void CVec_ChannelDetailsZ_free(long[] _res);
4340 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
4341 public static native long CResult_RouteLightningErrorZ_ok(long o);
4342 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
4343 public static native long CResult_RouteLightningErrorZ_err(long e);
4344 // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
4345 public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
4346 // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
4347 public static native void CResult_RouteLightningErrorZ_free(long _res);
4348 // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
4349 public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
4350 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
4351 public static native long CResult_RouteLightningErrorZ_clone(long orig);
4352 // uint64_t C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR arg);
4353 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(long arg);
4354 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_clone(const struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR orig);
4355 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone(long orig);
4356 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_new(struct LDKBlindedPayInfo a, struct LDKBlindedPath b);
4357 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_new(long a, long b);
4358 // void C2Tuple_BlindedPayInfoBlindedPathZ_free(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ _res);
4359 public static native void C2Tuple_BlindedPayInfoBlindedPathZ_free(long _res);
4360 // void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ _res);
4361 public static native void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(long[] _res);
4362 // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ o);
4363 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok(long[] o);
4364 // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err(void);
4365 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err();
4366 // bool CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR o);
4367 public static native boolean CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(long o);
4368 // void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free(struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ _res);
4369 public static native void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free(long _res);
4370 // uint64_t CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR arg);
4371 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr(long arg);
4372 // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone(const struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR orig);
4373 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone(long orig);
4374 // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
4375 public static native void CVec_PublicKeyZ_free(byte[][] _res);
4376 // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_ok(struct LDKOnionMessagePath o);
4377 public static native long CResult_OnionMessagePathNoneZ_ok(long o);
4378 // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_err(void);
4379 public static native long CResult_OnionMessagePathNoneZ_err();
4380 // bool CResult_OnionMessagePathNoneZ_is_ok(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR o);
4381 public static native boolean CResult_OnionMessagePathNoneZ_is_ok(long o);
4382 // void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ _res);
4383 public static native void CResult_OnionMessagePathNoneZ_free(long _res);
4384 // uint64_t CResult_OnionMessagePathNoneZ_clone_ptr(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR arg);
4385 public static native long CResult_OnionMessagePathNoneZ_clone_ptr(long arg);
4386 // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig);
4387 public static native long CResult_OnionMessagePathNoneZ_clone(long orig);
4388 // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_ok(struct LDKCVec_BlindedPathZ o);
4389 public static native long CResult_CVec_BlindedPathZNoneZ_ok(long[] o);
4390 // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_err(void);
4391 public static native long CResult_CVec_BlindedPathZNoneZ_err();
4392 // bool CResult_CVec_BlindedPathZNoneZ_is_ok(const struct LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR o);
4393 public static native boolean CResult_CVec_BlindedPathZNoneZ_is_ok(long o);
4394 // void CResult_CVec_BlindedPathZNoneZ_free(struct LDKCResult_CVec_BlindedPathZNoneZ _res);
4395 public static native void CResult_CVec_BlindedPathZNoneZ_free(long _res);
4396 // uint64_t CResult_CVec_BlindedPathZNoneZ_clone_ptr(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR arg);
4397 public static native long CResult_CVec_BlindedPathZNoneZ_clone_ptr(long arg);
4398 // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_clone(const struct LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR orig);
4399 public static native long CResult_CVec_BlindedPathZNoneZ_clone(long orig);
4400 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
4401 public static native long CResult_InFlightHtlcsDecodeErrorZ_ok(long o);
4402 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
4403 public static native long CResult_InFlightHtlcsDecodeErrorZ_err(long e);
4404 // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
4405 public static native boolean CResult_InFlightHtlcsDecodeErrorZ_is_ok(long o);
4406 // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
4407 public static native void CResult_InFlightHtlcsDecodeErrorZ_free(long _res);
4408 // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
4409 public static native long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long arg);
4410 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
4411 public static native long CResult_InFlightHtlcsDecodeErrorZ_clone(long orig);
4412 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
4413 public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
4414 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
4415 public static native long CResult_RouteHopDecodeErrorZ_err(long e);
4416 // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
4417 public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
4418 // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
4419 public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
4420 // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
4421 public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
4422 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
4423 public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
4424 // void CVec_BlindedHopZ_free(struct LDKCVec_BlindedHopZ _res);
4425 public static native void CVec_BlindedHopZ_free(long[] _res);
4426 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_ok(struct LDKBlindedTail o);
4427 public static native long CResult_BlindedTailDecodeErrorZ_ok(long o);
4428 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_err(struct LDKDecodeError e);
4429 public static native long CResult_BlindedTailDecodeErrorZ_err(long e);
4430 // bool CResult_BlindedTailDecodeErrorZ_is_ok(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR o);
4431 public static native boolean CResult_BlindedTailDecodeErrorZ_is_ok(long o);
4432 // void CResult_BlindedTailDecodeErrorZ_free(struct LDKCResult_BlindedTailDecodeErrorZ _res);
4433 public static native void CResult_BlindedTailDecodeErrorZ_free(long _res);
4434 // uint64_t CResult_BlindedTailDecodeErrorZ_clone_ptr(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR arg);
4435 public static native long CResult_BlindedTailDecodeErrorZ_clone_ptr(long arg);
4436 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR orig);
4437 public static native long CResult_BlindedTailDecodeErrorZ_clone(long orig);
4438 // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
4439 public static native void CVec_RouteHopZ_free(long[] _res);
4440 // void CVec_PathZ_free(struct LDKCVec_PathZ _res);
4441 public static native void CVec_PathZ_free(long[] _res);
4442 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
4443 public static native long CResult_RouteDecodeErrorZ_ok(long o);
4444 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
4445 public static native long CResult_RouteDecodeErrorZ_err(long e);
4446 // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
4447 public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
4448 // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
4449 public static native void CResult_RouteDecodeErrorZ_free(long _res);
4450 // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
4451 public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
4452 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
4453 public static native long CResult_RouteDecodeErrorZ_clone(long orig);
4454 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
4455 public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
4456 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
4457 public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
4458 // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
4459 public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
4460 // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
4461 public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
4462 // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
4463 public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
4464 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
4465 public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
4466 // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
4467 public static native void CVec_u64Z_free(long[] _res);
4468 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
4469 public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
4470 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
4471 public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
4472 // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
4473 public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
4474 // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
4475 public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
4476 // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
4477 public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
4478 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
4479 public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
4480 // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
4481 public static native void CVec_RouteHintZ_free(long[] _res);
4482 // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
4483 public static native void CVec_RouteHintHopZ_free(long[] _res);
4484 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
4485 public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
4486 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
4487 public static native long CResult_RouteHintDecodeErrorZ_err(long e);
4488 // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
4489 public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
4490 // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
4491 public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
4492 // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
4493 public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
4494 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
4495 public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
4496 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
4497 public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
4498 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
4499 public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
4500 // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
4501 public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
4502 // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
4503 public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
4504 // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
4505 public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
4506 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
4507 public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
4508 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
4509 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
4510 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
4511 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
4512 // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
4513 public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
4514 // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
4515 public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
4516 // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
4517 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
4518 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
4519 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
4520 // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
4521 public static native void CVec_NodeIdZ_free(long[] _res);
4522 // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
4523 public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
4524 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
4525 public static native long C2Tuple_u64u64Z_clone(long orig);
4526 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
4527 public static native long C2Tuple_u64u64Z_new(long a, long b);
4528 // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
4529 public static native void C2Tuple_u64u64Z_free(long _res);
4530 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
4531 public static native long COption_C2Tuple_u64u64ZZ_some(long o);
4532 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
4533 public static native long COption_C2Tuple_u64u64ZZ_none();
4534 // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
4535 public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
4536 // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
4537 public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
4538 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
4539 public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
4540 // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
4541 public static native long C2Tuple_Z_new(short[] a, short[] b);
4542 // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
4543 public static native void C2Tuple_Z_free(long _res);
4544 // struct LDKC2Tuple__u1632_u1632Z C2Tuple__u1632_u1632Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
4545 public static native long C2Tuple__u1632_u1632Z_new(short[] a, short[] b);
4546 // void C2Tuple__u1632_u1632Z_free(struct LDKC2Tuple__u1632_u1632Z _res);
4547 public static native void C2Tuple__u1632_u1632Z_free(long _res);
4548 // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(struct LDKC2Tuple__u1632_u1632Z o);
4549 public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(long o);
4550 // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(void);
4551 public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none();
4552 // void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ _res);
4553 public static native void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(long _res);
4554 // struct LDKCOption_f64Z COption_f64Z_some(double o);
4555 public static native long COption_f64Z_some(double o);
4556 // struct LDKCOption_f64Z COption_f64Z_none(void);
4557 public static native long COption_f64Z_none();
4558 // void COption_f64Z_free(struct LDKCOption_f64Z _res);
4559 public static native void COption_f64Z_free(long _res);
4560 // uint64_t COption_f64Z_clone_ptr(LDKCOption_f64Z *NONNULL_PTR arg);
4561 public static native long COption_f64Z_clone_ptr(long arg);
4562 // struct LDKCOption_f64Z COption_f64Z_clone(const struct LDKCOption_f64Z *NONNULL_PTR orig);
4563 public static native long COption_f64Z_clone(long orig);
4564 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
4565 public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
4566 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
4567 public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
4568 // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
4569 public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
4570 // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
4571 public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
4572 // struct LDKCResult_BestBlockDecodeErrorZ CResult_BestBlockDecodeErrorZ_ok(struct LDKBestBlock o);
4573 public static native long CResult_BestBlockDecodeErrorZ_ok(long o);
4574 // struct LDKCResult_BestBlockDecodeErrorZ CResult_BestBlockDecodeErrorZ_err(struct LDKDecodeError e);
4575 public static native long CResult_BestBlockDecodeErrorZ_err(long e);
4576 // bool CResult_BestBlockDecodeErrorZ_is_ok(const struct LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR o);
4577 public static native boolean CResult_BestBlockDecodeErrorZ_is_ok(long o);
4578 // void CResult_BestBlockDecodeErrorZ_free(struct LDKCResult_BestBlockDecodeErrorZ _res);
4579 public static native void CResult_BestBlockDecodeErrorZ_free(long _res);
4580 // uint64_t CResult_BestBlockDecodeErrorZ_clone_ptr(LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR arg);
4581 public static native long CResult_BestBlockDecodeErrorZ_clone_ptr(long arg);
4582 // struct LDKCResult_BestBlockDecodeErrorZ CResult_BestBlockDecodeErrorZ_clone(const struct LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR orig);
4583 public static native long CResult_BestBlockDecodeErrorZ_clone(long orig);
4584 // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
4585 public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
4586 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
4587 public static native long C2Tuple_usizeTransactionZ_clone(long orig);
4588 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
4589 public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
4590 // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
4591 public static native void C2Tuple_usizeTransactionZ_free(long _res);
4592 // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
4593 public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
4594 // uint64_t C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR arg);
4595 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr(long arg);
4596 // struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR orig);
4597 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone(long orig);
4598 // struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new(struct LDKThirtyTwoBytes a, uint32_t b, struct LDKCOption_ThirtyTwoBytesZ c);
4599 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new(byte[] a, int b, long c);
4600 // void C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free(struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ _res);
4601 public static native void C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free(long _res);
4602 // void CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free(struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ _res);
4603 public static native void CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free(long[] _res);
4604 // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_ok(enum LDKChannelMonitorUpdateStatus o);
4605 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_ok(ChannelMonitorUpdateStatus o);
4606 // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_err(void);
4607 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_err();
4608 // bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR o);
4609 public static native boolean CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(long o);
4610 // void CResult_ChannelMonitorUpdateStatusNoneZ_free(struct LDKCResult_ChannelMonitorUpdateStatusNoneZ _res);
4611 public static native void CResult_ChannelMonitorUpdateStatusNoneZ_free(long _res);
4612 // uint64_t CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR arg);
4613 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(long arg);
4614 // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_clone(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR orig);
4615 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone(long orig);
4616 // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
4617 public static native void CVec_MonitorEventZ_free(long[] _res);
4618 // uint64_t C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
4619 public static native long C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone_ptr(long arg);
4620 // struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
4621 public static native long C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone(long orig);
4622 // struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKChannelId b, struct LDKCVec_MonitorEventZ c, struct LDKPublicKey d);
4623 public static native long C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_new(long a, long b, long[] c, byte[] d);
4624 // void C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_free(struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ _res);
4625 public static native void C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_free(long _res);
4626 // void CVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ _res);
4627 public static native void CVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ_free(long[] _res);
4628 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
4629 public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
4630 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4631 public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
4632 // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
4633 public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
4634 // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
4635 public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
4636 // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
4637 public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
4638 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
4639 public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
4640 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
4641 public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
4642 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4643 public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
4644 // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
4645 public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
4646 // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
4647 public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
4648 // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
4649 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
4650 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
4651 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
4652 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
4653 public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
4654 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4655 public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
4656 // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
4657 public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
4658 // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
4659 public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
4660 // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
4661 public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
4662 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
4663 public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
4664 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt11InvoiceFeatures o);
4665 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(long o);
4666 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4667 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(long e);
4668 // bool CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
4669 public static native boolean CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(long o);
4670 // void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ _res);
4671 public static native void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(long _res);
4672 // uint64_t CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
4673 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
4674 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
4675 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(long orig);
4676 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt12InvoiceFeatures o);
4677 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(long o);
4678 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4679 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(long e);
4680 // bool CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
4681 public static native boolean CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(long o);
4682 // void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ _res);
4683 public static native void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(long _res);
4684 // uint64_t CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
4685 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
4686 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
4687 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(long orig);
4688 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
4689 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long o);
4690 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4691 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_err(long e);
4692 // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
4693 public static native boolean CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long o);
4694 // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
4695 public static native void CResult_BlindedHopFeaturesDecodeErrorZ_free(long _res);
4696 // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
4697 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long arg);
4698 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
4699 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long orig);
4700 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
4701 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
4702 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4703 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
4704 // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
4705 public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
4706 // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
4707 public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
4708 // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
4709 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
4710 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
4711 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
4712 // struct LDKCResult_OfferIdDecodeErrorZ CResult_OfferIdDecodeErrorZ_ok(struct LDKOfferId o);
4713 public static native long CResult_OfferIdDecodeErrorZ_ok(long o);
4714 // struct LDKCResult_OfferIdDecodeErrorZ CResult_OfferIdDecodeErrorZ_err(struct LDKDecodeError e);
4715 public static native long CResult_OfferIdDecodeErrorZ_err(long e);
4716 // bool CResult_OfferIdDecodeErrorZ_is_ok(const struct LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR o);
4717 public static native boolean CResult_OfferIdDecodeErrorZ_is_ok(long o);
4718 // void CResult_OfferIdDecodeErrorZ_free(struct LDKCResult_OfferIdDecodeErrorZ _res);
4719 public static native void CResult_OfferIdDecodeErrorZ_free(long _res);
4720 // uint64_t CResult_OfferIdDecodeErrorZ_clone_ptr(LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR arg);
4721 public static native long CResult_OfferIdDecodeErrorZ_clone_ptr(long arg);
4722 // struct LDKCResult_OfferIdDecodeErrorZ CResult_OfferIdDecodeErrorZ_clone(const struct LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR orig);
4723 public static native long CResult_OfferIdDecodeErrorZ_clone(long orig);
4724 // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_ok(void);
4725 public static native long CResult_NoneBolt12SemanticErrorZ_ok();
4726 // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
4727 public static native long CResult_NoneBolt12SemanticErrorZ_err(Bolt12SemanticError e);
4728 // bool CResult_NoneBolt12SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR o);
4729 public static native boolean CResult_NoneBolt12SemanticErrorZ_is_ok(long o);
4730 // void CResult_NoneBolt12SemanticErrorZ_free(struct LDKCResult_NoneBolt12SemanticErrorZ _res);
4731 public static native void CResult_NoneBolt12SemanticErrorZ_free(long _res);
4732 // uint64_t CResult_NoneBolt12SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR arg);
4733 public static native long CResult_NoneBolt12SemanticErrorZ_clone_ptr(long arg);
4734 // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_clone(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR orig);
4735 public static native long CResult_NoneBolt12SemanticErrorZ_clone(long orig);
4736 // struct LDKCResult_OfferBolt12SemanticErrorZ CResult_OfferBolt12SemanticErrorZ_ok(struct LDKOffer o);
4737 public static native long CResult_OfferBolt12SemanticErrorZ_ok(long o);
4738 // struct LDKCResult_OfferBolt12SemanticErrorZ CResult_OfferBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
4739 public static native long CResult_OfferBolt12SemanticErrorZ_err(Bolt12SemanticError e);
4740 // bool CResult_OfferBolt12SemanticErrorZ_is_ok(const struct LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR o);
4741 public static native boolean CResult_OfferBolt12SemanticErrorZ_is_ok(long o);
4742 // void CResult_OfferBolt12SemanticErrorZ_free(struct LDKCResult_OfferBolt12SemanticErrorZ _res);
4743 public static native void CResult_OfferBolt12SemanticErrorZ_free(long _res);
4744 // uint64_t CResult_OfferBolt12SemanticErrorZ_clone_ptr(LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR arg);
4745 public static native long CResult_OfferBolt12SemanticErrorZ_clone_ptr(long arg);
4746 // struct LDKCResult_OfferBolt12SemanticErrorZ CResult_OfferBolt12SemanticErrorZ_clone(const struct LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR orig);
4747 public static native long CResult_OfferBolt12SemanticErrorZ_clone(long orig);
4748 // struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceRequestWithDerivedPayerIdBuilder o);
4749 public static native long CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_ok(long o);
4750 // struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
4751 public static native long CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_err(Bolt12SemanticError e);
4752 // bool CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR o);
4753 public static native boolean CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_is_ok(long o);
4754 // void CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ _res);
4755 public static native void CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_free(long _res);
4756 // struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceRequestWithExplicitPayerIdBuilder o);
4757 public static native long CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_ok(long o);
4758 // struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
4759 public static native long CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_err(Bolt12SemanticError e);
4760 // bool CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR o);
4761 public static native boolean CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_is_ok(long o);
4762 // void CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ _res);
4763 public static native void CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_free(long _res);
4764 // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_ok(struct LDKOffer o);
4765 public static native long CResult_OfferBolt12ParseErrorZ_ok(long o);
4766 // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
4767 public static native long CResult_OfferBolt12ParseErrorZ_err(long e);
4768 // bool CResult_OfferBolt12ParseErrorZ_is_ok(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR o);
4769 public static native boolean CResult_OfferBolt12ParseErrorZ_is_ok(long o);
4770 // void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseErrorZ _res);
4771 public static native void CResult_OfferBolt12ParseErrorZ_free(long _res);
4772 // uint64_t CResult_OfferBolt12ParseErrorZ_clone_ptr(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR arg);
4773 public static native long CResult_OfferBolt12ParseErrorZ_clone_ptr(long arg);
4774 // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig);
4775 public static native long CResult_OfferBolt12ParseErrorZ_clone(long orig);
4776 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
4777 public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
4778 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
4779 public static native long CResult_NodeIdDecodeErrorZ_err(long e);
4780 // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
4781 public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
4782 // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
4783 public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
4784 // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
4785 public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
4786 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
4787 public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
4788 // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o);
4789 public static native long CResult_PublicKeySecp256k1ErrorZ_ok(byte[] o);
4790 // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
4791 public static native long CResult_PublicKeySecp256k1ErrorZ_err(Secp256k1Error e);
4792 // bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o);
4793 public static native boolean CResult_PublicKeySecp256k1ErrorZ_is_ok(long o);
4794 // void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res);
4795 public static native void CResult_PublicKeySecp256k1ErrorZ_free(long _res);
4796 // uint64_t CResult_PublicKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR arg);
4797 public static native long CResult_PublicKeySecp256k1ErrorZ_clone_ptr(long arg);
4798 // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig);
4799 public static native long CResult_PublicKeySecp256k1ErrorZ_clone(long orig);
4800 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
4801 public static native long COption_NetworkUpdateZ_some(long o);
4802 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
4803 public static native long COption_NetworkUpdateZ_none();
4804 // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
4805 public static native void COption_NetworkUpdateZ_free(long _res);
4806 // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
4807 public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
4808 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
4809 public static native long COption_NetworkUpdateZ_clone(long orig);
4810 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
4811 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
4812 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
4813 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
4814 // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
4815 public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
4816 // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
4817 public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
4818 // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
4819 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
4820 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
4821 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
4822 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
4823 public static native long COption_UtxoLookupZ_some(long o);
4824 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
4825 public static native long COption_UtxoLookupZ_none();
4826 // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
4827 public static native void COption_UtxoLookupZ_free(long _res);
4828 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
4829 public static native long CResult_NoneLightningErrorZ_ok();
4830 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
4831 public static native long CResult_NoneLightningErrorZ_err(long e);
4832 // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
4833 public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
4834 // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
4835 public static native void CResult_NoneLightningErrorZ_free(long _res);
4836 // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
4837 public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
4838 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
4839 public static native long CResult_NoneLightningErrorZ_clone(long orig);
4840 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
4841 public static native long CResult_boolLightningErrorZ_ok(boolean o);
4842 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
4843 public static native long CResult_boolLightningErrorZ_err(long e);
4844 // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
4845 public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
4846 // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
4847 public static native void CResult_boolLightningErrorZ_free(long _res);
4848 // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
4849 public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
4850 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
4851 public static native long CResult_boolLightningErrorZ_clone(long orig);
4852 // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
4853 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
4854 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
4855 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
4856 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
4857 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
4858 // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
4859 public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
4860 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
4861 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long o);
4862 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
4863 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
4864 // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
4865 public static native void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long _res);
4866 // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
4867 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long arg);
4868 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
4869 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long orig);
4870 // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
4871 public static native void CVec_MessageSendEventZ_free(long[] _res);
4872 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
4873 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
4874 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
4875 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
4876 // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
4877 public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
4878 // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
4879 public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
4880 // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
4881 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
4882 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
4883 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
4884 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
4885 public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
4886 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
4887 public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
4888 // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
4889 public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
4890 // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
4891 public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
4892 // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
4893 public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
4894 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
4895 public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
4896 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
4897 public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
4898 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
4899 public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
4900 // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
4901 public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
4902 // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
4903 public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
4904 // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
4905 public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
4906 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
4907 public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
4908 // void CVec_SocketAddressZ_free(struct LDKCVec_SocketAddressZ _res);
4909 public static native void CVec_SocketAddressZ_free(long[] _res);
4910 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
4911 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
4912 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
4913 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
4914 // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
4915 public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
4916 // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
4917 public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
4918 // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
4919 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
4920 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
4921 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
4922 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
4923 public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
4924 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
4925 public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
4926 // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
4927 public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
4928 // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
4929 public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
4930 // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
4931 public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
4932 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
4933 public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
4934 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
4935 public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
4936 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
4937 public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
4938 // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
4939 public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
4940 // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
4941 public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
4942 // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
4943 public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
4944 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
4945 public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
4946 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
4947 public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
4948 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
4949 public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
4950 // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
4951 public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
4952 // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
4953 public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
4954 // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_some(struct LDKCVec_SocketAddressZ o);
4955 public static native long COption_CVec_SocketAddressZZ_some(long[] o);
4956 // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_none(void);
4957 public static native long COption_CVec_SocketAddressZZ_none();
4958 // void COption_CVec_SocketAddressZZ_free(struct LDKCOption_CVec_SocketAddressZZ _res);
4959 public static native void COption_CVec_SocketAddressZZ_free(long _res);
4960 // uint64_t COption_CVec_SocketAddressZZ_clone_ptr(LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR arg);
4961 public static native long COption_CVec_SocketAddressZZ_clone_ptr(long arg);
4962 // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_clone(const struct LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR orig);
4963 public static native long COption_CVec_SocketAddressZZ_clone(long orig);
4964 // struct LDKCResult_u64ShortChannelIdErrorZ CResult_u64ShortChannelIdErrorZ_ok(uint64_t o);
4965 public static native long CResult_u64ShortChannelIdErrorZ_ok(long o);
4966 // struct LDKCResult_u64ShortChannelIdErrorZ CResult_u64ShortChannelIdErrorZ_err(enum LDKShortChannelIdError e);
4967 public static native long CResult_u64ShortChannelIdErrorZ_err(ShortChannelIdError e);
4968 // bool CResult_u64ShortChannelIdErrorZ_is_ok(const struct LDKCResult_u64ShortChannelIdErrorZ *NONNULL_PTR o);
4969 public static native boolean CResult_u64ShortChannelIdErrorZ_is_ok(long o);
4970 // void CResult_u64ShortChannelIdErrorZ_free(struct LDKCResult_u64ShortChannelIdErrorZ _res);
4971 public static native void CResult_u64ShortChannelIdErrorZ_free(long _res);
4972 // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_ok(struct LDKPendingHTLCInfo o);
4973 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_ok(long o);
4974 // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_err(struct LDKInboundHTLCErr e);
4975 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_err(long e);
4976 // bool CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(const struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR o);
4977 public static native boolean CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(long o);
4978 // void CResult_PendingHTLCInfoInboundHTLCErrZ_free(struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ _res);
4979 public static native void CResult_PendingHTLCInfoInboundHTLCErrZ_free(long _res);
4980 // uint64_t CResult_PendingHTLCInfoInboundHTLCErrZ_clone_ptr(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR arg);
4981 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_clone_ptr(long arg);
4982 // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_clone(const struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR orig);
4983 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_clone(long orig);
4984 // void CVec_HTLCOutputInCommitmentZ_free(struct LDKCVec_HTLCOutputInCommitmentZ _res);
4985 public static native void CVec_HTLCOutputInCommitmentZ_free(long[] _res);
4986 // void CVec_HTLCDescriptorZ_free(struct LDKCVec_HTLCDescriptorZ _res);
4987 public static native void CVec_HTLCDescriptorZ_free(long[] _res);
4988 // void CVec_UtxoZ_free(struct LDKCVec_UtxoZ _res);
4989 public static native void CVec_UtxoZ_free(long[] _res);
4990 // struct LDKCOption_TxOutZ COption_TxOutZ_some(struct LDKTxOut o);
4991 public static native long COption_TxOutZ_some(long o);
4992 // struct LDKCOption_TxOutZ COption_TxOutZ_none(void);
4993 public static native long COption_TxOutZ_none();
4994 // void COption_TxOutZ_free(struct LDKCOption_TxOutZ _res);
4995 public static native void COption_TxOutZ_free(long _res);
4996 // uint64_t COption_TxOutZ_clone_ptr(LDKCOption_TxOutZ *NONNULL_PTR arg);
4997 public static native long COption_TxOutZ_clone_ptr(long arg);
4998 // struct LDKCOption_TxOutZ COption_TxOutZ_clone(const struct LDKCOption_TxOutZ *NONNULL_PTR orig);
4999 public static native long COption_TxOutZ_clone(long orig);
5000 // void CVec_InputZ_free(struct LDKCVec_InputZ _res);
5001 public static native void CVec_InputZ_free(long[] _res);
5002 // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_ok(struct LDKCoinSelection o);
5003 public static native long CResult_CoinSelectionNoneZ_ok(long o);
5004 // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_err(void);
5005 public static native long CResult_CoinSelectionNoneZ_err();
5006 // bool CResult_CoinSelectionNoneZ_is_ok(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR o);
5007 public static native boolean CResult_CoinSelectionNoneZ_is_ok(long o);
5008 // void CResult_CoinSelectionNoneZ_free(struct LDKCResult_CoinSelectionNoneZ _res);
5009 public static native void CResult_CoinSelectionNoneZ_free(long _res);
5010 // uint64_t CResult_CoinSelectionNoneZ_clone_ptr(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR arg);
5011 public static native long CResult_CoinSelectionNoneZ_clone_ptr(long arg);
5012 // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_clone(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR orig);
5013 public static native long CResult_CoinSelectionNoneZ_clone(long orig);
5014 // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_ok(struct LDKCVec_UtxoZ o);
5015 public static native long CResult_CVec_UtxoZNoneZ_ok(long[] o);
5016 // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_err(void);
5017 public static native long CResult_CVec_UtxoZNoneZ_err();
5018 // bool CResult_CVec_UtxoZNoneZ_is_ok(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR o);
5019 public static native boolean CResult_CVec_UtxoZNoneZ_is_ok(long o);
5020 // void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res);
5021 public static native void CResult_CVec_UtxoZNoneZ_free(long _res);
5022 // uint64_t CResult_CVec_UtxoZNoneZ_clone_ptr(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR arg);
5023 public static native long CResult_CVec_UtxoZNoneZ_clone_ptr(long arg);
5024 // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig);
5025 public static native long CResult_CVec_UtxoZNoneZ_clone(long orig);
5026 // struct LDKCOption_PaymentContextZ COption_PaymentContextZ_some(struct LDKPaymentContext o);
5027 public static native long COption_PaymentContextZ_some(long o);
5028 // struct LDKCOption_PaymentContextZ COption_PaymentContextZ_none(void);
5029 public static native long COption_PaymentContextZ_none();
5030 // void COption_PaymentContextZ_free(struct LDKCOption_PaymentContextZ _res);
5031 public static native void COption_PaymentContextZ_free(long _res);
5032 // uint64_t COption_PaymentContextZ_clone_ptr(LDKCOption_PaymentContextZ *NONNULL_PTR arg);
5033 public static native long COption_PaymentContextZ_clone_ptr(long arg);
5034 // struct LDKCOption_PaymentContextZ COption_PaymentContextZ_clone(const struct LDKCOption_PaymentContextZ *NONNULL_PTR orig);
5035 public static native long COption_PaymentContextZ_clone(long orig);
5036 // uint64_t C2Tuple_u64u16Z_clone_ptr(LDKC2Tuple_u64u16Z *NONNULL_PTR arg);
5037 public static native long C2Tuple_u64u16Z_clone_ptr(long arg);
5038 // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_clone(const struct LDKC2Tuple_u64u16Z *NONNULL_PTR orig);
5039 public static native long C2Tuple_u64u16Z_clone(long orig);
5040 // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_new(uint64_t a, uint16_t b);
5041 public static native long C2Tuple_u64u16Z_new(long a, short b);
5042 // void C2Tuple_u64u16Z_free(struct LDKC2Tuple_u64u16Z _res);
5043 public static native void C2Tuple_u64u16Z_free(long _res);
5044 // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_some(struct LDKC2Tuple_u64u16Z o);
5045 public static native long COption_C2Tuple_u64u16ZZ_some(long o);
5046 // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_none(void);
5047 public static native long COption_C2Tuple_u64u16ZZ_none();
5048 // void COption_C2Tuple_u64u16ZZ_free(struct LDKCOption_C2Tuple_u64u16ZZ _res);
5049 public static native void COption_C2Tuple_u64u16ZZ_free(long _res);
5050 // uint64_t COption_C2Tuple_u64u16ZZ_clone_ptr(LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR arg);
5051 public static native long COption_C2Tuple_u64u16ZZ_clone_ptr(long arg);
5052 // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_clone(const struct LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR orig);
5053 public static native long COption_C2Tuple_u64u16ZZ_clone(long orig);
5054 // struct LDKCResult_ChannelIdAPIErrorZ CResult_ChannelIdAPIErrorZ_ok(struct LDKChannelId o);
5055 public static native long CResult_ChannelIdAPIErrorZ_ok(long o);
5056 // struct LDKCResult_ChannelIdAPIErrorZ CResult_ChannelIdAPIErrorZ_err(struct LDKAPIError e);
5057 public static native long CResult_ChannelIdAPIErrorZ_err(long e);
5058 // bool CResult_ChannelIdAPIErrorZ_is_ok(const struct LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR o);
5059 public static native boolean CResult_ChannelIdAPIErrorZ_is_ok(long o);
5060 // void CResult_ChannelIdAPIErrorZ_free(struct LDKCResult_ChannelIdAPIErrorZ _res);
5061 public static native void CResult_ChannelIdAPIErrorZ_free(long _res);
5062 // uint64_t CResult_ChannelIdAPIErrorZ_clone_ptr(LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR arg);
5063 public static native long CResult_ChannelIdAPIErrorZ_clone_ptr(long arg);
5064 // struct LDKCResult_ChannelIdAPIErrorZ CResult_ChannelIdAPIErrorZ_clone(const struct LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR orig);
5065 public static native long CResult_ChannelIdAPIErrorZ_clone(long orig);
5066 // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
5067 public static native void CVec_RecentPaymentDetailsZ_free(long[] _res);
5068 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
5069 public static native long CResult_NonePaymentSendFailureZ_ok();
5070 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
5071 public static native long CResult_NonePaymentSendFailureZ_err(long e);
5072 // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
5073 public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
5074 // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
5075 public static native void CResult_NonePaymentSendFailureZ_free(long _res);
5076 // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
5077 public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
5078 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
5079 public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
5080 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
5081 public static native long CResult_NoneRetryableSendFailureZ_ok();
5082 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
5083 public static native long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure e);
5084 // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
5085 public static native boolean CResult_NoneRetryableSendFailureZ_is_ok(long o);
5086 // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
5087 public static native void CResult_NoneRetryableSendFailureZ_free(long _res);
5088 // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
5089 public static native long CResult_NoneRetryableSendFailureZ_clone_ptr(long arg);
5090 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
5091 public static native long CResult_NoneRetryableSendFailureZ_clone(long orig);
5092 // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
5093 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(byte[] o);
5094 // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
5095 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_err(long e);
5096 // bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR o);
5097 public static native boolean CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(long o);
5098 // void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ _res);
5099 public static native void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(long _res);
5100 // uint64_t CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR arg);
5101 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(long arg);
5102 // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR orig);
5103 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(long orig);
5104 // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
5105 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(byte[] o);
5106 // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
5107 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_err(RetryableSendFailure e);
5108 // bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR o);
5109 public static native boolean CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(long o);
5110 // void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ _res);
5111 public static native void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(long _res);
5112 // uint64_t CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR arg);
5113 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(long arg);
5114 // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR orig);
5115 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(long orig);
5116 // uint64_t C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR arg);
5117 public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(long arg);
5118 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR orig);
5119 public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(long orig);
5120 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
5121 public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(byte[] a, byte[] b);
5122 // void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ _res);
5123 public static native void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(long _res);
5124 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
5125 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(long o);
5126 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
5127 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(long e);
5128 // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR o);
5129 public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(long o);
5130 // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ _res);
5131 public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(long _res);
5132 // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR arg);
5133 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(long arg);
5134 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR orig);
5135 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(long orig);
5136 // void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ _res);
5137 public static native void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(long[] _res);
5138 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o);
5139 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(long[] o);
5140 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(struct LDKProbeSendFailure e);
5141 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(long e);
5142 // bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR o);
5143 public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(long o);
5144 // void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ _res);
5145 public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(long _res);
5146 // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR arg);
5147 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(long arg);
5148 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR orig);
5149 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(long orig);
5150 // uint64_t C2Tuple_ChannelIdPublicKeyZ_clone_ptr(LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR arg);
5151 public static native long C2Tuple_ChannelIdPublicKeyZ_clone_ptr(long arg);
5152 // struct LDKC2Tuple_ChannelIdPublicKeyZ C2Tuple_ChannelIdPublicKeyZ_clone(const struct LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR orig);
5153 public static native long C2Tuple_ChannelIdPublicKeyZ_clone(long orig);
5154 // struct LDKC2Tuple_ChannelIdPublicKeyZ C2Tuple_ChannelIdPublicKeyZ_new(struct LDKChannelId a, struct LDKPublicKey b);
5155 public static native long C2Tuple_ChannelIdPublicKeyZ_new(long a, byte[] b);
5156 // void C2Tuple_ChannelIdPublicKeyZ_free(struct LDKC2Tuple_ChannelIdPublicKeyZ _res);
5157 public static native void C2Tuple_ChannelIdPublicKeyZ_free(long _res);
5158 // void CVec_C2Tuple_ChannelIdPublicKeyZZ_free(struct LDKCVec_C2Tuple_ChannelIdPublicKeyZZ _res);
5159 public static native void CVec_C2Tuple_ChannelIdPublicKeyZZ_free(long[] _res);
5160 // void CVec_ChannelIdZ_free(struct LDKCVec_ChannelIdZ _res);
5161 public static native void CVec_ChannelIdZ_free(long[] _res);
5162 // struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(struct LDKOfferWithDerivedMetadataBuilder o);
5163 public static native long CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(long o);
5164 // struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
5165 public static native long CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(Bolt12SemanticError e);
5166 // bool CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR o);
5167 public static native boolean CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(long o);
5168 // void CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ _res);
5169 public static native void CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(long _res);
5170 // uint64_t CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR arg);
5171 public static native long CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(long arg);
5172 // struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(const struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR orig);
5173 public static native long CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(long orig);
5174 // struct LDKCOption_StrZ COption_StrZ_some(struct LDKStr o);
5175 public static native long COption_StrZ_some(String o);
5176 // struct LDKCOption_StrZ COption_StrZ_none(void);
5177 public static native long COption_StrZ_none();
5178 // void COption_StrZ_free(struct LDKCOption_StrZ _res);
5179 public static native void COption_StrZ_free(long _res);
5180 // uint64_t COption_StrZ_clone_ptr(LDKCOption_StrZ *NONNULL_PTR arg);
5181 public static native long COption_StrZ_clone_ptr(long arg);
5182 // struct LDKCOption_StrZ COption_StrZ_clone(const struct LDKCOption_StrZ *NONNULL_PTR orig);
5183 public static native long COption_StrZ_clone(long orig);
5184 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
5185 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(long o);
5186 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(void);
5187 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err();
5188 // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR o);
5189 public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(long o);
5190 // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ _res);
5191 public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(long _res);
5192 // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR arg);
5193 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(long arg);
5194 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR orig);
5195 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(long orig);
5196 // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
5197 public static native long CResult_ThirtyTwoBytesAPIErrorZ_ok(byte[] o);
5198 // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e);
5199 public static native long CResult_ThirtyTwoBytesAPIErrorZ_err(long e);
5200 // bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o);
5201 public static native boolean CResult_ThirtyTwoBytesAPIErrorZ_is_ok(long o);
5202 // void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res);
5203 public static native void CResult_ThirtyTwoBytesAPIErrorZ_free(long _res);
5204 // uint64_t CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR arg);
5205 public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(long arg);
5206 // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig);
5207 public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone(long orig);
5208 // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o);
5209 public static native long COption_OffersMessageZ_some(long o);
5210 // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void);
5211 public static native long COption_OffersMessageZ_none();
5212 // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res);
5213 public static native void COption_OffersMessageZ_free(long _res);
5214 // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg);
5215 public static native long COption_OffersMessageZ_clone_ptr(long arg);
5216 // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig);
5217 public static native long COption_OffersMessageZ_clone(long orig);
5218 // uint64_t C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR arg);
5219 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(long arg);
5220 // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR orig);
5221 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone(long orig);
5222 // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_new(struct LDKOffersMessage a, struct LDKDestination b, struct LDKBlindedPath c);
5223 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_new(long a, long b, long c);
5224 // void C3Tuple_OffersMessageDestinationBlindedPathZ_free(struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ _res);
5225 public static native void C3Tuple_OffersMessageDestinationBlindedPathZ_free(long _res);
5226 // void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ _res);
5227 public static native void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(long[] _res);
5228 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
5229 public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
5230 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
5231 public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
5232 // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
5233 public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
5234 // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
5235 public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
5236 // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
5237 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
5238 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
5239 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
5240 // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_ok(struct LDKBlindedForward o);
5241 public static native long CResult_BlindedForwardDecodeErrorZ_ok(long o);
5242 // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_err(struct LDKDecodeError e);
5243 public static native long CResult_BlindedForwardDecodeErrorZ_err(long e);
5244 // bool CResult_BlindedForwardDecodeErrorZ_is_ok(const struct LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR o);
5245 public static native boolean CResult_BlindedForwardDecodeErrorZ_is_ok(long o);
5246 // void CResult_BlindedForwardDecodeErrorZ_free(struct LDKCResult_BlindedForwardDecodeErrorZ _res);
5247 public static native void CResult_BlindedForwardDecodeErrorZ_free(long _res);
5248 // uint64_t CResult_BlindedForwardDecodeErrorZ_clone_ptr(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR arg);
5249 public static native long CResult_BlindedForwardDecodeErrorZ_clone_ptr(long arg);
5250 // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_clone(const struct LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR orig);
5251 public static native long CResult_BlindedForwardDecodeErrorZ_clone(long orig);
5252 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_ok(struct LDKPendingHTLCRouting o);
5253 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_ok(long o);
5254 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_err(struct LDKDecodeError e);
5255 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_err(long e);
5256 // bool CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(const struct LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR o);
5257 public static native boolean CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(long o);
5258 // void CResult_PendingHTLCRoutingDecodeErrorZ_free(struct LDKCResult_PendingHTLCRoutingDecodeErrorZ _res);
5259 public static native void CResult_PendingHTLCRoutingDecodeErrorZ_free(long _res);
5260 // uint64_t CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR arg);
5261 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr(long arg);
5262 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_clone(const struct LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR orig);
5263 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_clone(long orig);
5264 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_ok(struct LDKPendingHTLCInfo o);
5265 public static native long CResult_PendingHTLCInfoDecodeErrorZ_ok(long o);
5266 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_err(struct LDKDecodeError e);
5267 public static native long CResult_PendingHTLCInfoDecodeErrorZ_err(long e);
5268 // bool CResult_PendingHTLCInfoDecodeErrorZ_is_ok(const struct LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR o);
5269 public static native boolean CResult_PendingHTLCInfoDecodeErrorZ_is_ok(long o);
5270 // void CResult_PendingHTLCInfoDecodeErrorZ_free(struct LDKCResult_PendingHTLCInfoDecodeErrorZ _res);
5271 public static native void CResult_PendingHTLCInfoDecodeErrorZ_free(long _res);
5272 // uint64_t CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR arg);
5273 public static native long CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr(long arg);
5274 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_clone(const struct LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR orig);
5275 public static native long CResult_PendingHTLCInfoDecodeErrorZ_clone(long orig);
5276 // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_ok(enum LDKBlindedFailure o);
5277 public static native long CResult_BlindedFailureDecodeErrorZ_ok(BlindedFailure o);
5278 // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_err(struct LDKDecodeError e);
5279 public static native long CResult_BlindedFailureDecodeErrorZ_err(long e);
5280 // bool CResult_BlindedFailureDecodeErrorZ_is_ok(const struct LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR o);
5281 public static native boolean CResult_BlindedFailureDecodeErrorZ_is_ok(long o);
5282 // void CResult_BlindedFailureDecodeErrorZ_free(struct LDKCResult_BlindedFailureDecodeErrorZ _res);
5283 public static native void CResult_BlindedFailureDecodeErrorZ_free(long _res);
5284 // uint64_t CResult_BlindedFailureDecodeErrorZ_clone_ptr(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR arg);
5285 public static native long CResult_BlindedFailureDecodeErrorZ_clone_ptr(long arg);
5286 // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_clone(const struct LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR orig);
5287 public static native long CResult_BlindedFailureDecodeErrorZ_clone(long orig);
5288 // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
5289 public static native void CVec_ChannelMonitorZ_free(long[] _res);
5290 // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ C2Tuple_ThirtyTwoBytesChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
5291 public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_new(byte[] a, long b);
5292 // void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ _res);
5293 public static native void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(long _res);
5294 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ o);
5295 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(long o);
5296 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
5297 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(long e);
5298 // bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR o);
5299 public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(long o);
5300 // void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ _res);
5301 public static native void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(long _res);
5302 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_ok(struct LDKMaxDustHTLCExposure o);
5303 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_ok(long o);
5304 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_err(struct LDKDecodeError e);
5305 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_err(long e);
5306 // bool CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR o);
5307 public static native boolean CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(long o);
5308 // void CResult_MaxDustHTLCExposureDecodeErrorZ_free(struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ _res);
5309 public static native void CResult_MaxDustHTLCExposureDecodeErrorZ_free(long _res);
5310 // uint64_t CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR arg);
5311 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(long arg);
5312 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_clone(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR orig);
5313 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone(long orig);
5314 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
5315 public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
5316 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
5317 public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
5318 // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
5319 public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
5320 // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
5321 public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
5322 // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
5323 public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
5324 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
5325 public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
5326 // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_some(struct LDKMaxDustHTLCExposure o);
5327 public static native long COption_MaxDustHTLCExposureZ_some(long o);
5328 // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_none(void);
5329 public static native long COption_MaxDustHTLCExposureZ_none();
5330 // void COption_MaxDustHTLCExposureZ_free(struct LDKCOption_MaxDustHTLCExposureZ _res);
5331 public static native void COption_MaxDustHTLCExposureZ_free(long _res);
5332 // uint64_t COption_MaxDustHTLCExposureZ_clone_ptr(LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR arg);
5333 public static native long COption_MaxDustHTLCExposureZ_clone_ptr(long arg);
5334 // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_clone(const struct LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR orig);
5335 public static native long COption_MaxDustHTLCExposureZ_clone(long orig);
5336 // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
5337 public static native long COption_APIErrorZ_some(long o);
5338 // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
5339 public static native long COption_APIErrorZ_none();
5340 // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
5341 public static native void COption_APIErrorZ_free(long _res);
5342 // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
5343 public static native long COption_APIErrorZ_clone_ptr(long arg);
5344 // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
5345 public static native long COption_APIErrorZ_clone(long orig);
5346 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
5347 public static native long CResult_COption_APIErrorZDecodeErrorZ_ok(long o);
5348 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
5349 public static native long CResult_COption_APIErrorZDecodeErrorZ_err(long e);
5350 // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
5351 public static native boolean CResult_COption_APIErrorZDecodeErrorZ_is_ok(long o);
5352 // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
5353 public static native void CResult_COption_APIErrorZDecodeErrorZ_free(long _res);
5354 // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
5355 public static native long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long arg);
5356 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
5357 public static native long CResult_COption_APIErrorZDecodeErrorZ_clone(long orig);
5358 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
5359 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
5360 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5361 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
5362 // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
5363 public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
5364 // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
5365 public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
5366 // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
5367 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
5368 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
5369 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
5370 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
5371 public static native long COption_MonitorEventZ_some(long o);
5372 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
5373 public static native long COption_MonitorEventZ_none();
5374 // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
5375 public static native void COption_MonitorEventZ_free(long _res);
5376 // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
5377 public static native long COption_MonitorEventZ_clone_ptr(long arg);
5378 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
5379 public static native long COption_MonitorEventZ_clone(long orig);
5380 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
5381 public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
5382 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
5383 public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
5384 // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
5385 public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
5386 // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
5387 public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
5388 // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
5389 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
5390 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
5391 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
5392 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
5393 public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
5394 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5395 public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
5396 // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
5397 public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
5398 // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
5399 public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
5400 // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
5401 public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
5402 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
5403 public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
5404 // uint64_t C2Tuple_OutPointCVec_u8ZZ_clone_ptr(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR arg);
5405 public static native long C2Tuple_OutPointCVec_u8ZZ_clone_ptr(long arg);
5406 // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_clone(const struct LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR orig);
5407 public static native long C2Tuple_OutPointCVec_u8ZZ_clone(long orig);
5408 // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
5409 public static native long C2Tuple_OutPointCVec_u8ZZ_new(long a, byte[] b);
5410 // void C2Tuple_OutPointCVec_u8ZZ_free(struct LDKC2Tuple_OutPointCVec_u8ZZ _res);
5411 public static native void C2Tuple_OutPointCVec_u8ZZ_free(long _res);
5412 // uint64_t C2Tuple_u32CVec_u8ZZ_clone_ptr(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR arg);
5413 public static native long C2Tuple_u32CVec_u8ZZ_clone_ptr(long arg);
5414 // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_clone(const struct LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR orig);
5415 public static native long C2Tuple_u32CVec_u8ZZ_clone(long orig);
5416 // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_new(uint32_t a, struct LDKCVec_u8Z b);
5417 public static native long C2Tuple_u32CVec_u8ZZ_new(int a, byte[] b);
5418 // void C2Tuple_u32CVec_u8ZZ_free(struct LDKC2Tuple_u32CVec_u8ZZ _res);
5419 public static native void C2Tuple_u32CVec_u8ZZ_free(long _res);
5420 // void CVec_C2Tuple_u32CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u32CVec_u8ZZZ _res);
5421 public static native void CVec_C2Tuple_u32CVec_u8ZZZ_free(long[] _res);
5422 // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR arg);
5423 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(long arg);
5424 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR orig);
5425 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(long orig);
5426 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b);
5427 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(byte[] a, long[] b);
5428 // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ _res);
5429 public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(long _res);
5430 // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ _res);
5431 public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(long[] _res);
5432 // void CVec_CommitmentTransactionZ_free(struct LDKCVec_CommitmentTransactionZ _res);
5433 public static native void CVec_CommitmentTransactionZ_free(long[] _res);
5434 // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
5435 public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
5436 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
5437 public static native long C2Tuple_u32TxOutZ_clone(long orig);
5438 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
5439 public static native long C2Tuple_u32TxOutZ_new(int a, long b);
5440 // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
5441 public static native void C2Tuple_u32TxOutZ_free(long _res);
5442 // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
5443 public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
5444 // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
5445 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
5446 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
5447 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
5448 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
5449 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
5450 // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ _res);
5451 public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(long _res);
5452 // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ _res);
5453 public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
5454 // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
5455 public static native void CVec_BalanceZ_free(long[] _res);
5456 // uint64_t C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR arg);
5457 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(long arg);
5458 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR orig);
5459 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(long orig);
5460 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
5461 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(byte[] a, long b);
5462 // void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ _res);
5463 public static native void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(long _res);
5464 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
5465 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(long o);
5466 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
5467 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(long e);
5468 // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
5469 public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(long o);
5470 // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ _res);
5471 public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(long _res);
5472 // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
5473 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
5474 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
5475 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(long orig);
5476 // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
5477 public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
5478 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
5479 public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
5480 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
5481 public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
5482 // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
5483 public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
5484 // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
5485 public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
5486 // uint64_t C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR arg);
5487 public static native long C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr(long arg);
5488 // struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ C2Tuple_PublicKeyCVec_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR orig);
5489 public static native long C2Tuple_PublicKeyCVec_SocketAddressZZ_clone(long orig);
5490 // struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ C2Tuple_PublicKeyCVec_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCVec_SocketAddressZ b);
5491 public static native long C2Tuple_PublicKeyCVec_SocketAddressZZ_new(byte[] a, long[] b);
5492 // void C2Tuple_PublicKeyCVec_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ _res);
5493 public static native void C2Tuple_PublicKeyCVec_SocketAddressZZ_free(long _res);
5494 // void CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ _res);
5495 public static native void CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free(long[] _res);
5496 // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_some(struct LDKOnionMessageContents o);
5497 public static native long COption_OnionMessageContentsZ_some(long o);
5498 // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_none(void);
5499 public static native long COption_OnionMessageContentsZ_none();
5500 // void COption_OnionMessageContentsZ_free(struct LDKCOption_OnionMessageContentsZ _res);
5501 public static native void COption_OnionMessageContentsZ_free(long _res);
5502 // uint64_t COption_OnionMessageContentsZ_clone_ptr(LDKCOption_OnionMessageContentsZ *NONNULL_PTR arg);
5503 public static native long COption_OnionMessageContentsZ_clone_ptr(long arg);
5504 // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_clone(const struct LDKCOption_OnionMessageContentsZ *NONNULL_PTR orig);
5505 public static native long COption_OnionMessageContentsZ_clone(long orig);
5506 // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_OnionMessageContentsZ o);
5507 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(long o);
5508 // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
5509 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_err(long e);
5510 // bool CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
5511 public static native boolean CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(long o);
5512 // void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ _res);
5513 public static native void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(long _res);
5514 // uint64_t CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
5515 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(long arg);
5516 // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
5517 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(long orig);
5518 // uint64_t C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR arg);
5519 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(long arg);
5520 // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR orig);
5521 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(long orig);
5522 // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(struct LDKOnionMessageContents a, struct LDKDestination b, struct LDKBlindedPath c);
5523 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(long a, long b, long c);
5524 // void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ _res);
5525 public static native void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(long _res);
5526 // void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ _res);
5527 public static native void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(long[] _res);
5528 // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
5529 public static native long COption_TypeZ_some(long o);
5530 // struct LDKCOption_TypeZ COption_TypeZ_none(void);
5531 public static native long COption_TypeZ_none();
5532 // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
5533 public static native void COption_TypeZ_free(long _res);
5534 // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
5535 public static native long COption_TypeZ_clone_ptr(long arg);
5536 // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
5537 public static native long COption_TypeZ_clone(long orig);
5538 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
5539 public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
5540 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
5541 public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
5542 // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
5543 public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
5544 // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
5545 public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
5546 // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
5547 public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
5548 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
5549 public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
5550 // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_some(struct LDKSocketAddress o);
5551 public static native long COption_SocketAddressZ_some(long o);
5552 // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_none(void);
5553 public static native long COption_SocketAddressZ_none();
5554 // void COption_SocketAddressZ_free(struct LDKCOption_SocketAddressZ _res);
5555 public static native void COption_SocketAddressZ_free(long _res);
5556 // uint64_t COption_SocketAddressZ_clone_ptr(LDKCOption_SocketAddressZ *NONNULL_PTR arg);
5557 public static native long COption_SocketAddressZ_clone_ptr(long arg);
5558 // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_clone(const struct LDKCOption_SocketAddressZ *NONNULL_PTR orig);
5559 public static native long COption_SocketAddressZ_clone(long orig);
5560 // void CVec_PeerDetailsZ_free(struct LDKCVec_PeerDetailsZ _res);
5561 public static native void CVec_PeerDetailsZ_free(long[] _res);
5562 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
5563 public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
5564 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
5565 public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
5566 // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
5567 public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
5568 // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
5569 public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
5570 // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
5571 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
5572 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
5573 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
5574 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
5575 public static native long CResult_NonePeerHandleErrorZ_ok();
5576 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
5577 public static native long CResult_NonePeerHandleErrorZ_err(long e);
5578 // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
5579 public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
5580 // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
5581 public static native void CResult_NonePeerHandleErrorZ_free(long _res);
5582 // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
5583 public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
5584 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
5585 public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
5586 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
5587 public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
5588 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
5589 public static native long CResult_boolPeerHandleErrorZ_err(long e);
5590 // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
5591 public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
5592 // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
5593 public static native void CResult_boolPeerHandleErrorZ_free(long _res);
5594 // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
5595 public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
5596 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
5597 public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
5598 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
5599 public static native long CResult_u32GraphSyncErrorZ_ok(int o);
5600 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
5601 public static native long CResult_u32GraphSyncErrorZ_err(long e);
5602 // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
5603 public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
5604 // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
5605 public static native void CResult_u32GraphSyncErrorZ_free(long _res);
5606 // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_ok(struct LDKCVec_u8Z o);
5607 public static native long CResult_CVec_u8ZIOErrorZ_ok(byte[] o);
5608 // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_err(enum LDKIOError e);
5609 public static native long CResult_CVec_u8ZIOErrorZ_err(IOError e);
5610 // bool CResult_CVec_u8ZIOErrorZ_is_ok(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR o);
5611 public static native boolean CResult_CVec_u8ZIOErrorZ_is_ok(long o);
5612 // void CResult_CVec_u8ZIOErrorZ_free(struct LDKCResult_CVec_u8ZIOErrorZ _res);
5613 public static native void CResult_CVec_u8ZIOErrorZ_free(long _res);
5614 // uint64_t CResult_CVec_u8ZIOErrorZ_clone_ptr(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR arg);
5615 public static native long CResult_CVec_u8ZIOErrorZ_clone_ptr(long arg);
5616 // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_clone(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR orig);
5617 public static native long CResult_CVec_u8ZIOErrorZ_clone(long orig);
5618 // void CVec_StrZ_free(struct LDKCVec_StrZ _res);
5619 public static native void CVec_StrZ_free(String[] _res);
5620 // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_ok(struct LDKCVec_StrZ o);
5621 public static native long CResult_CVec_StrZIOErrorZ_ok(String[] o);
5622 // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_err(enum LDKIOError e);
5623 public static native long CResult_CVec_StrZIOErrorZ_err(IOError e);
5624 // bool CResult_CVec_StrZIOErrorZ_is_ok(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR o);
5625 public static native boolean CResult_CVec_StrZIOErrorZ_is_ok(long o);
5626 // void CResult_CVec_StrZIOErrorZ_free(struct LDKCResult_CVec_StrZIOErrorZ _res);
5627 public static native void CResult_CVec_StrZIOErrorZ_free(long _res);
5628 // uint64_t CResult_CVec_StrZIOErrorZ_clone_ptr(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR arg);
5629 public static native long CResult_CVec_StrZIOErrorZ_clone_ptr(long arg);
5630 // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_clone(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR orig);
5631 public static native long CResult_CVec_StrZIOErrorZ_clone(long orig);
5632 // void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ _res);
5633 public static native void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(long[] _res);
5634 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ o);
5635 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(long[] o);
5636 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(enum LDKIOError e);
5637 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(IOError e);
5638 // bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR o);
5639 public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(long o);
5640 // void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ _res);
5641 public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(long _res);
5642 // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR arg);
5643 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(long arg);
5644 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR orig);
5645 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(long orig);
5646 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
5647 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(long o);
5648 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(enum LDKIOError e);
5649 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(IOError e);
5650 // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR o);
5651 public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(long o);
5652 // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ _res);
5653 public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(long _res);
5654 // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR arg);
5655 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(long arg);
5656 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR orig);
5657 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(long orig);
5658 // struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_ok(struct LDKUnsignedInvoiceRequest o);
5659 public static native long CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_ok(long o);
5660 // struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
5661 public static native long CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_err(Bolt12SemanticError e);
5662 // bool CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_is_ok(const struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR o);
5663 public static native boolean CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_is_ok(long o);
5664 // void CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_free(struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ _res);
5665 public static native void CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_free(long _res);
5666 // uint64_t CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone_ptr(LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR arg);
5667 public static native long CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone_ptr(long arg);
5668 // struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone(const struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR orig);
5669 public static native long CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone(long orig);
5670 // struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ CResult_InvoiceRequestBolt12SemanticErrorZ_ok(struct LDKInvoiceRequest o);
5671 public static native long CResult_InvoiceRequestBolt12SemanticErrorZ_ok(long o);
5672 // struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ CResult_InvoiceRequestBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
5673 public static native long CResult_InvoiceRequestBolt12SemanticErrorZ_err(Bolt12SemanticError e);
5674 // bool CResult_InvoiceRequestBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR o);
5675 public static native boolean CResult_InvoiceRequestBolt12SemanticErrorZ_is_ok(long o);
5676 // void CResult_InvoiceRequestBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ _res);
5677 public static native void CResult_InvoiceRequestBolt12SemanticErrorZ_free(long _res);
5678 // uint64_t CResult_InvoiceRequestBolt12SemanticErrorZ_clone_ptr(LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR arg);
5679 public static native long CResult_InvoiceRequestBolt12SemanticErrorZ_clone_ptr(long arg);
5680 // struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ CResult_InvoiceRequestBolt12SemanticErrorZ_clone(const struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR orig);
5681 public static native long CResult_InvoiceRequestBolt12SemanticErrorZ_clone(long orig);
5682 // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o);
5683 public static native long COption_SecretKeyZ_some(byte[] o);
5684 // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_none(void);
5685 public static native long COption_SecretKeyZ_none();
5686 // void COption_SecretKeyZ_free(struct LDKCOption_SecretKeyZ _res);
5687 public static native void COption_SecretKeyZ_free(long _res);
5688 // uint64_t COption_SecretKeyZ_clone_ptr(LDKCOption_SecretKeyZ *NONNULL_PTR arg);
5689 public static native long COption_SecretKeyZ_clone_ptr(long arg);
5690 // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_clone(const struct LDKCOption_SecretKeyZ *NONNULL_PTR orig);
5691 public static native long COption_SecretKeyZ_clone(long orig);
5692 // struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceWithExplicitSigningPubkeyBuilder o);
5693 public static native long CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_ok(long o);
5694 // struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
5695 public static native long CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_err(Bolt12SemanticError e);
5696 // bool CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR o);
5697 public static native boolean CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(long o);
5698 // void CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ _res);
5699 public static native void CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_free(long _res);
5700 // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o);
5701 public static native long CResult_VerifiedInvoiceRequestNoneZ_ok(long o);
5702 // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_err(void);
5703 public static native long CResult_VerifiedInvoiceRequestNoneZ_err();
5704 // bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR o);
5705 public static native boolean CResult_VerifiedInvoiceRequestNoneZ_is_ok(long o);
5706 // void CResult_VerifiedInvoiceRequestNoneZ_free(struct LDKCResult_VerifiedInvoiceRequestNoneZ _res);
5707 public static native void CResult_VerifiedInvoiceRequestNoneZ_free(long _res);
5708 // uint64_t CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR arg);
5709 public static native long CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(long arg);
5710 // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_clone(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR orig);
5711 public static native long CResult_VerifiedInvoiceRequestNoneZ_clone(long orig);
5712 // struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceWithDerivedSigningPubkeyBuilder o);
5713 public static native long CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_ok(long o);
5714 // struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
5715 public static native long CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_err(Bolt12SemanticError e);
5716 // bool CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR o);
5717 public static native boolean CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(long o);
5718 // void CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ _res);
5719 public static native void CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_free(long _res);
5720 // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ CResult_InvoiceRequestFieldsDecodeErrorZ_ok(struct LDKInvoiceRequestFields o);
5721 public static native long CResult_InvoiceRequestFieldsDecodeErrorZ_ok(long o);
5722 // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ CResult_InvoiceRequestFieldsDecodeErrorZ_err(struct LDKDecodeError e);
5723 public static native long CResult_InvoiceRequestFieldsDecodeErrorZ_err(long e);
5724 // bool CResult_InvoiceRequestFieldsDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR o);
5725 public static native boolean CResult_InvoiceRequestFieldsDecodeErrorZ_is_ok(long o);
5726 // void CResult_InvoiceRequestFieldsDecodeErrorZ_free(struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ _res);
5727 public static native void CResult_InvoiceRequestFieldsDecodeErrorZ_free(long _res);
5728 // uint64_t CResult_InvoiceRequestFieldsDecodeErrorZ_clone_ptr(LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR arg);
5729 public static native long CResult_InvoiceRequestFieldsDecodeErrorZ_clone_ptr(long arg);
5730 // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ CResult_InvoiceRequestFieldsDecodeErrorZ_clone(const struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR orig);
5731 public static native long CResult_InvoiceRequestFieldsDecodeErrorZ_clone(long orig);
5732 // enum LDKCOption_NoneZ COption_NoneZ_some(void);
5733 public static native COption_NoneZ COption_NoneZ_some();
5734 // enum LDKCOption_NoneZ COption_NoneZ_none(void);
5735 public static native COption_NoneZ COption_NoneZ_none();
5736 // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
5737 public static native void COption_NoneZ_free(COption_NoneZ _res);
5738 // void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res);
5739 public static native void CVec_WitnessZ_free(byte[][] _res);
5740 // struct LDKCOption_ECDSASignatureZ COption_ECDSASignatureZ_some(struct LDKECDSASignature o);
5741 public static native long COption_ECDSASignatureZ_some(byte[] o);
5742 // struct LDKCOption_ECDSASignatureZ COption_ECDSASignatureZ_none(void);
5743 public static native long COption_ECDSASignatureZ_none();
5744 // void COption_ECDSASignatureZ_free(struct LDKCOption_ECDSASignatureZ _res);
5745 public static native void COption_ECDSASignatureZ_free(long _res);
5746 // uint64_t COption_ECDSASignatureZ_clone_ptr(LDKCOption_ECDSASignatureZ *NONNULL_PTR arg);
5747 public static native long COption_ECDSASignatureZ_clone_ptr(long arg);
5748 // struct LDKCOption_ECDSASignatureZ COption_ECDSASignatureZ_clone(const struct LDKCOption_ECDSASignatureZ *NONNULL_PTR orig);
5749 public static native long COption_ECDSASignatureZ_clone(long orig);
5750 // struct LDKCOption_i64Z COption_i64Z_some(int64_t o);
5751 public static native long COption_i64Z_some(long o);
5752 // struct LDKCOption_i64Z COption_i64Z_none(void);
5753 public static native long COption_i64Z_none();
5754 // void COption_i64Z_free(struct LDKCOption_i64Z _res);
5755 public static native void COption_i64Z_free(long _res);
5756 // uint64_t COption_i64Z_clone_ptr(LDKCOption_i64Z *NONNULL_PTR arg);
5757 public static native long COption_i64Z_clone_ptr(long arg);
5758 // struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig);
5759 public static native long COption_i64Z_clone(long orig);
5760 // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_ok(struct LDKSocketAddress o);
5761 public static native long CResult_SocketAddressDecodeErrorZ_ok(long o);
5762 // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_err(struct LDKDecodeError e);
5763 public static native long CResult_SocketAddressDecodeErrorZ_err(long e);
5764 // bool CResult_SocketAddressDecodeErrorZ_is_ok(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR o);
5765 public static native boolean CResult_SocketAddressDecodeErrorZ_is_ok(long o);
5766 // void CResult_SocketAddressDecodeErrorZ_free(struct LDKCResult_SocketAddressDecodeErrorZ _res);
5767 public static native void CResult_SocketAddressDecodeErrorZ_free(long _res);
5768 // uint64_t CResult_SocketAddressDecodeErrorZ_clone_ptr(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR arg);
5769 public static native long CResult_SocketAddressDecodeErrorZ_clone_ptr(long arg);
5770 // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_clone(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR orig);
5771 public static native long CResult_SocketAddressDecodeErrorZ_clone(long orig);
5772 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_ok(struct LDKSocketAddress o);
5773 public static native long CResult_SocketAddressSocketAddressParseErrorZ_ok(long o);
5774 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_err(enum LDKSocketAddressParseError e);
5775 public static native long CResult_SocketAddressSocketAddressParseErrorZ_err(SocketAddressParseError e);
5776 // bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR o);
5777 public static native boolean CResult_SocketAddressSocketAddressParseErrorZ_is_ok(long o);
5778 // void CResult_SocketAddressSocketAddressParseErrorZ_free(struct LDKCResult_SocketAddressSocketAddressParseErrorZ _res);
5779 public static native void CResult_SocketAddressSocketAddressParseErrorZ_free(long _res);
5780 // uint64_t CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR arg);
5781 public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(long arg);
5782 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_clone(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR orig);
5783 public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone(long orig);
5784 // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
5785 public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
5786 // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
5787 public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
5788 // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
5789 public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
5790 // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
5791 public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
5792 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
5793 public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
5794 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
5795 public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
5796 // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
5797 public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
5798 // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
5799 public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
5800 // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
5801 public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
5802 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
5803 public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
5804 // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_ok(struct LDKAcceptChannelV2 o);
5805 public static native long CResult_AcceptChannelV2DecodeErrorZ_ok(long o);
5806 // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
5807 public static native long CResult_AcceptChannelV2DecodeErrorZ_err(long e);
5808 // bool CResult_AcceptChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR o);
5809 public static native boolean CResult_AcceptChannelV2DecodeErrorZ_is_ok(long o);
5810 // void CResult_AcceptChannelV2DecodeErrorZ_free(struct LDKCResult_AcceptChannelV2DecodeErrorZ _res);
5811 public static native void CResult_AcceptChannelV2DecodeErrorZ_free(long _res);
5812 // uint64_t CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR arg);
5813 public static native long CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(long arg);
5814 // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_clone(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR orig);
5815 public static native long CResult_AcceptChannelV2DecodeErrorZ_clone(long orig);
5816 // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_ok(struct LDKStfu o);
5817 public static native long CResult_StfuDecodeErrorZ_ok(long o);
5818 // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_err(struct LDKDecodeError e);
5819 public static native long CResult_StfuDecodeErrorZ_err(long e);
5820 // bool CResult_StfuDecodeErrorZ_is_ok(const struct LDKCResult_StfuDecodeErrorZ *NONNULL_PTR o);
5821 public static native boolean CResult_StfuDecodeErrorZ_is_ok(long o);
5822 // void CResult_StfuDecodeErrorZ_free(struct LDKCResult_StfuDecodeErrorZ _res);
5823 public static native void CResult_StfuDecodeErrorZ_free(long _res);
5824 // uint64_t CResult_StfuDecodeErrorZ_clone_ptr(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR arg);
5825 public static native long CResult_StfuDecodeErrorZ_clone_ptr(long arg);
5826 // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_clone(const struct LDKCResult_StfuDecodeErrorZ *NONNULL_PTR orig);
5827 public static native long CResult_StfuDecodeErrorZ_clone(long orig);
5828 // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_ok(struct LDKSplice o);
5829 public static native long CResult_SpliceDecodeErrorZ_ok(long o);
5830 // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_err(struct LDKDecodeError e);
5831 public static native long CResult_SpliceDecodeErrorZ_err(long e);
5832 // bool CResult_SpliceDecodeErrorZ_is_ok(const struct LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR o);
5833 public static native boolean CResult_SpliceDecodeErrorZ_is_ok(long o);
5834 // void CResult_SpliceDecodeErrorZ_free(struct LDKCResult_SpliceDecodeErrorZ _res);
5835 public static native void CResult_SpliceDecodeErrorZ_free(long _res);
5836 // uint64_t CResult_SpliceDecodeErrorZ_clone_ptr(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR arg);
5837 public static native long CResult_SpliceDecodeErrorZ_clone_ptr(long arg);
5838 // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_clone(const struct LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR orig);
5839 public static native long CResult_SpliceDecodeErrorZ_clone(long orig);
5840 // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_ok(struct LDKSpliceAck o);
5841 public static native long CResult_SpliceAckDecodeErrorZ_ok(long o);
5842 // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_err(struct LDKDecodeError e);
5843 public static native long CResult_SpliceAckDecodeErrorZ_err(long e);
5844 // bool CResult_SpliceAckDecodeErrorZ_is_ok(const struct LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR o);
5845 public static native boolean CResult_SpliceAckDecodeErrorZ_is_ok(long o);
5846 // void CResult_SpliceAckDecodeErrorZ_free(struct LDKCResult_SpliceAckDecodeErrorZ _res);
5847 public static native void CResult_SpliceAckDecodeErrorZ_free(long _res);
5848 // uint64_t CResult_SpliceAckDecodeErrorZ_clone_ptr(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR arg);
5849 public static native long CResult_SpliceAckDecodeErrorZ_clone_ptr(long arg);
5850 // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_clone(const struct LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR orig);
5851 public static native long CResult_SpliceAckDecodeErrorZ_clone(long orig);
5852 // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_ok(struct LDKSpliceLocked o);
5853 public static native long CResult_SpliceLockedDecodeErrorZ_ok(long o);
5854 // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_err(struct LDKDecodeError e);
5855 public static native long CResult_SpliceLockedDecodeErrorZ_err(long e);
5856 // bool CResult_SpliceLockedDecodeErrorZ_is_ok(const struct LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR o);
5857 public static native boolean CResult_SpliceLockedDecodeErrorZ_is_ok(long o);
5858 // void CResult_SpliceLockedDecodeErrorZ_free(struct LDKCResult_SpliceLockedDecodeErrorZ _res);
5859 public static native void CResult_SpliceLockedDecodeErrorZ_free(long _res);
5860 // uint64_t CResult_SpliceLockedDecodeErrorZ_clone_ptr(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR arg);
5861 public static native long CResult_SpliceLockedDecodeErrorZ_clone_ptr(long arg);
5862 // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_clone(const struct LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR orig);
5863 public static native long CResult_SpliceLockedDecodeErrorZ_clone(long orig);
5864 // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_ok(struct LDKTxAddInput o);
5865 public static native long CResult_TxAddInputDecodeErrorZ_ok(long o);
5866 // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_err(struct LDKDecodeError e);
5867 public static native long CResult_TxAddInputDecodeErrorZ_err(long e);
5868 // bool CResult_TxAddInputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR o);
5869 public static native boolean CResult_TxAddInputDecodeErrorZ_is_ok(long o);
5870 // void CResult_TxAddInputDecodeErrorZ_free(struct LDKCResult_TxAddInputDecodeErrorZ _res);
5871 public static native void CResult_TxAddInputDecodeErrorZ_free(long _res);
5872 // uint64_t CResult_TxAddInputDecodeErrorZ_clone_ptr(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR arg);
5873 public static native long CResult_TxAddInputDecodeErrorZ_clone_ptr(long arg);
5874 // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_clone(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR orig);
5875 public static native long CResult_TxAddInputDecodeErrorZ_clone(long orig);
5876 // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_ok(struct LDKTxAddOutput o);
5877 public static native long CResult_TxAddOutputDecodeErrorZ_ok(long o);
5878 // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_err(struct LDKDecodeError e);
5879 public static native long CResult_TxAddOutputDecodeErrorZ_err(long e);
5880 // bool CResult_TxAddOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR o);
5881 public static native boolean CResult_TxAddOutputDecodeErrorZ_is_ok(long o);
5882 // void CResult_TxAddOutputDecodeErrorZ_free(struct LDKCResult_TxAddOutputDecodeErrorZ _res);
5883 public static native void CResult_TxAddOutputDecodeErrorZ_free(long _res);
5884 // uint64_t CResult_TxAddOutputDecodeErrorZ_clone_ptr(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR arg);
5885 public static native long CResult_TxAddOutputDecodeErrorZ_clone_ptr(long arg);
5886 // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_clone(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR orig);
5887 public static native long CResult_TxAddOutputDecodeErrorZ_clone(long orig);
5888 // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_ok(struct LDKTxRemoveInput o);
5889 public static native long CResult_TxRemoveInputDecodeErrorZ_ok(long o);
5890 // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_err(struct LDKDecodeError e);
5891 public static native long CResult_TxRemoveInputDecodeErrorZ_err(long e);
5892 // bool CResult_TxRemoveInputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR o);
5893 public static native boolean CResult_TxRemoveInputDecodeErrorZ_is_ok(long o);
5894 // void CResult_TxRemoveInputDecodeErrorZ_free(struct LDKCResult_TxRemoveInputDecodeErrorZ _res);
5895 public static native void CResult_TxRemoveInputDecodeErrorZ_free(long _res);
5896 // uint64_t CResult_TxRemoveInputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR arg);
5897 public static native long CResult_TxRemoveInputDecodeErrorZ_clone_ptr(long arg);
5898 // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR orig);
5899 public static native long CResult_TxRemoveInputDecodeErrorZ_clone(long orig);
5900 // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_ok(struct LDKTxRemoveOutput o);
5901 public static native long CResult_TxRemoveOutputDecodeErrorZ_ok(long o);
5902 // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_err(struct LDKDecodeError e);
5903 public static native long CResult_TxRemoveOutputDecodeErrorZ_err(long e);
5904 // bool CResult_TxRemoveOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR o);
5905 public static native boolean CResult_TxRemoveOutputDecodeErrorZ_is_ok(long o);
5906 // void CResult_TxRemoveOutputDecodeErrorZ_free(struct LDKCResult_TxRemoveOutputDecodeErrorZ _res);
5907 public static native void CResult_TxRemoveOutputDecodeErrorZ_free(long _res);
5908 // uint64_t CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR arg);
5909 public static native long CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(long arg);
5910 // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR orig);
5911 public static native long CResult_TxRemoveOutputDecodeErrorZ_clone(long orig);
5912 // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_ok(struct LDKTxComplete o);
5913 public static native long CResult_TxCompleteDecodeErrorZ_ok(long o);
5914 // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_err(struct LDKDecodeError e);
5915 public static native long CResult_TxCompleteDecodeErrorZ_err(long e);
5916 // bool CResult_TxCompleteDecodeErrorZ_is_ok(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR o);
5917 public static native boolean CResult_TxCompleteDecodeErrorZ_is_ok(long o);
5918 // void CResult_TxCompleteDecodeErrorZ_free(struct LDKCResult_TxCompleteDecodeErrorZ _res);
5919 public static native void CResult_TxCompleteDecodeErrorZ_free(long _res);
5920 // uint64_t CResult_TxCompleteDecodeErrorZ_clone_ptr(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR arg);
5921 public static native long CResult_TxCompleteDecodeErrorZ_clone_ptr(long arg);
5922 // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_clone(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR orig);
5923 public static native long CResult_TxCompleteDecodeErrorZ_clone(long orig);
5924 // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_ok(struct LDKTxSignatures o);
5925 public static native long CResult_TxSignaturesDecodeErrorZ_ok(long o);
5926 // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
5927 public static native long CResult_TxSignaturesDecodeErrorZ_err(long e);
5928 // bool CResult_TxSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR o);
5929 public static native boolean CResult_TxSignaturesDecodeErrorZ_is_ok(long o);
5930 // void CResult_TxSignaturesDecodeErrorZ_free(struct LDKCResult_TxSignaturesDecodeErrorZ _res);
5931 public static native void CResult_TxSignaturesDecodeErrorZ_free(long _res);
5932 // uint64_t CResult_TxSignaturesDecodeErrorZ_clone_ptr(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR arg);
5933 public static native long CResult_TxSignaturesDecodeErrorZ_clone_ptr(long arg);
5934 // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_clone(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR orig);
5935 public static native long CResult_TxSignaturesDecodeErrorZ_clone(long orig);
5936 // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_ok(struct LDKTxInitRbf o);
5937 public static native long CResult_TxInitRbfDecodeErrorZ_ok(long o);
5938 // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_err(struct LDKDecodeError e);
5939 public static native long CResult_TxInitRbfDecodeErrorZ_err(long e);
5940 // bool CResult_TxInitRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR o);
5941 public static native boolean CResult_TxInitRbfDecodeErrorZ_is_ok(long o);
5942 // void CResult_TxInitRbfDecodeErrorZ_free(struct LDKCResult_TxInitRbfDecodeErrorZ _res);
5943 public static native void CResult_TxInitRbfDecodeErrorZ_free(long _res);
5944 // uint64_t CResult_TxInitRbfDecodeErrorZ_clone_ptr(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR arg);
5945 public static native long CResult_TxInitRbfDecodeErrorZ_clone_ptr(long arg);
5946 // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_clone(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR orig);
5947 public static native long CResult_TxInitRbfDecodeErrorZ_clone(long orig);
5948 // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_ok(struct LDKTxAckRbf o);
5949 public static native long CResult_TxAckRbfDecodeErrorZ_ok(long o);
5950 // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_err(struct LDKDecodeError e);
5951 public static native long CResult_TxAckRbfDecodeErrorZ_err(long e);
5952 // bool CResult_TxAckRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR o);
5953 public static native boolean CResult_TxAckRbfDecodeErrorZ_is_ok(long o);
5954 // void CResult_TxAckRbfDecodeErrorZ_free(struct LDKCResult_TxAckRbfDecodeErrorZ _res);
5955 public static native void CResult_TxAckRbfDecodeErrorZ_free(long _res);
5956 // uint64_t CResult_TxAckRbfDecodeErrorZ_clone_ptr(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR arg);
5957 public static native long CResult_TxAckRbfDecodeErrorZ_clone_ptr(long arg);
5958 // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_clone(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR orig);
5959 public static native long CResult_TxAckRbfDecodeErrorZ_clone(long orig);
5960 // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_ok(struct LDKTxAbort o);
5961 public static native long CResult_TxAbortDecodeErrorZ_ok(long o);
5962 // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_err(struct LDKDecodeError e);
5963 public static native long CResult_TxAbortDecodeErrorZ_err(long e);
5964 // bool CResult_TxAbortDecodeErrorZ_is_ok(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR o);
5965 public static native boolean CResult_TxAbortDecodeErrorZ_is_ok(long o);
5966 // void CResult_TxAbortDecodeErrorZ_free(struct LDKCResult_TxAbortDecodeErrorZ _res);
5967 public static native void CResult_TxAbortDecodeErrorZ_free(long _res);
5968 // uint64_t CResult_TxAbortDecodeErrorZ_clone_ptr(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR arg);
5969 public static native long CResult_TxAbortDecodeErrorZ_clone_ptr(long arg);
5970 // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_clone(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR orig);
5971 public static native long CResult_TxAbortDecodeErrorZ_clone(long orig);
5972 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
5973 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
5974 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
5975 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
5976 // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
5977 public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
5978 // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
5979 public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
5980 // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
5981 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
5982 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
5983 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
5984 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
5985 public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
5986 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
5987 public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
5988 // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
5989 public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
5990 // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
5991 public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
5992 // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
5993 public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
5994 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
5995 public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
5996 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
5997 public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
5998 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
5999 public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
6000 // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
6001 public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
6002 // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
6003 public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
6004 // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
6005 public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
6006 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
6007 public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
6008 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
6009 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
6010 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
6011 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
6012 // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
6013 public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
6014 // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
6015 public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
6016 // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
6017 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
6018 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
6019 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
6020 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
6021 public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
6022 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
6023 public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
6024 // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
6025 public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
6026 // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
6027 public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
6028 // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
6029 public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
6030 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
6031 public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
6032 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
6033 public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
6034 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
6035 public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
6036 // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
6037 public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
6038 // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
6039 public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
6040 // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
6041 public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
6042 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
6043 public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
6044 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
6045 public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
6046 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
6047 public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
6048 // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
6049 public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
6050 // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
6051 public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
6052 // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
6053 public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
6054 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
6055 public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
6056 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
6057 public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
6058 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
6059 public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
6060 // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
6061 public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
6062 // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
6063 public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
6064 // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
6065 public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
6066 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
6067 public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
6068 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
6069 public static native long CResult_InitDecodeErrorZ_ok(long o);
6070 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
6071 public static native long CResult_InitDecodeErrorZ_err(long e);
6072 // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
6073 public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
6074 // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
6075 public static native void CResult_InitDecodeErrorZ_free(long _res);
6076 // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
6077 public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
6078 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
6079 public static native long CResult_InitDecodeErrorZ_clone(long orig);
6080 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
6081 public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
6082 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
6083 public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
6084 // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
6085 public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
6086 // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
6087 public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
6088 // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
6089 public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
6090 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
6091 public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
6092 // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_ok(struct LDKOpenChannelV2 o);
6093 public static native long CResult_OpenChannelV2DecodeErrorZ_ok(long o);
6094 // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
6095 public static native long CResult_OpenChannelV2DecodeErrorZ_err(long e);
6096 // bool CResult_OpenChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR o);
6097 public static native boolean CResult_OpenChannelV2DecodeErrorZ_is_ok(long o);
6098 // void CResult_OpenChannelV2DecodeErrorZ_free(struct LDKCResult_OpenChannelV2DecodeErrorZ _res);
6099 public static native void CResult_OpenChannelV2DecodeErrorZ_free(long _res);
6100 // uint64_t CResult_OpenChannelV2DecodeErrorZ_clone_ptr(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR arg);
6101 public static native long CResult_OpenChannelV2DecodeErrorZ_clone_ptr(long arg);
6102 // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_clone(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR orig);
6103 public static native long CResult_OpenChannelV2DecodeErrorZ_clone(long orig);
6104 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
6105 public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
6106 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
6107 public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
6108 // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
6109 public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
6110 // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
6111 public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
6112 // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
6113 public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
6114 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
6115 public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
6116 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
6117 public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
6118 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
6119 public static native long CResult_ShutdownDecodeErrorZ_err(long e);
6120 // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
6121 public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
6122 // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
6123 public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
6124 // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
6125 public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
6126 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
6127 public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
6128 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
6129 public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
6130 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
6131 public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
6132 // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
6133 public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
6134 // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
6135 public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
6136 // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
6137 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
6138 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
6139 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
6140 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
6141 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
6142 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
6143 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
6144 // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
6145 public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
6146 // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
6147 public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
6148 // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
6149 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
6150 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
6151 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
6152 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
6153 public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
6154 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
6155 public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
6156 // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
6157 public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
6158 // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
6159 public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
6160 // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
6161 public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
6162 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
6163 public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
6164 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
6165 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
6166 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
6167 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
6168 // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
6169 public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
6170 // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
6171 public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
6172 // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
6173 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
6174 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
6175 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
6176 // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_ok(struct LDKOnionPacket o);
6177 public static native long CResult_OnionPacketDecodeErrorZ_ok(long o);
6178 // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_err(struct LDKDecodeError e);
6179 public static native long CResult_OnionPacketDecodeErrorZ_err(long e);
6180 // bool CResult_OnionPacketDecodeErrorZ_is_ok(const struct LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR o);
6181 public static native boolean CResult_OnionPacketDecodeErrorZ_is_ok(long o);
6182 // void CResult_OnionPacketDecodeErrorZ_free(struct LDKCResult_OnionPacketDecodeErrorZ _res);
6183 public static native void CResult_OnionPacketDecodeErrorZ_free(long _res);
6184 // uint64_t CResult_OnionPacketDecodeErrorZ_clone_ptr(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR arg);
6185 public static native long CResult_OnionPacketDecodeErrorZ_clone_ptr(long arg);
6186 // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_clone(const struct LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR orig);
6187 public static native long CResult_OnionPacketDecodeErrorZ_clone(long orig);
6188 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
6189 public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
6190 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
6191 public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
6192 // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
6193 public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
6194 // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
6195 public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
6196 // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
6197 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
6198 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
6199 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
6200 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
6201 public static native long CResult_OnionMessageDecodeErrorZ_ok(long o);
6202 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
6203 public static native long CResult_OnionMessageDecodeErrorZ_err(long e);
6204 // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
6205 public static native boolean CResult_OnionMessageDecodeErrorZ_is_ok(long o);
6206 // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
6207 public static native void CResult_OnionMessageDecodeErrorZ_free(long _res);
6208 // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
6209 public static native long CResult_OnionMessageDecodeErrorZ_clone_ptr(long arg);
6210 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
6211 public static native long CResult_OnionMessageDecodeErrorZ_clone(long orig);
6212 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_ok(struct LDKFinalOnionHopData o);
6213 public static native long CResult_FinalOnionHopDataDecodeErrorZ_ok(long o);
6214 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_err(struct LDKDecodeError e);
6215 public static native long CResult_FinalOnionHopDataDecodeErrorZ_err(long e);
6216 // bool CResult_FinalOnionHopDataDecodeErrorZ_is_ok(const struct LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR o);
6217 public static native boolean CResult_FinalOnionHopDataDecodeErrorZ_is_ok(long o);
6218 // void CResult_FinalOnionHopDataDecodeErrorZ_free(struct LDKCResult_FinalOnionHopDataDecodeErrorZ _res);
6219 public static native void CResult_FinalOnionHopDataDecodeErrorZ_free(long _res);
6220 // uint64_t CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR arg);
6221 public static native long CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr(long arg);
6222 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_clone(const struct LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR orig);
6223 public static native long CResult_FinalOnionHopDataDecodeErrorZ_clone(long orig);
6224 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
6225 public static native long CResult_PingDecodeErrorZ_ok(long o);
6226 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
6227 public static native long CResult_PingDecodeErrorZ_err(long e);
6228 // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
6229 public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
6230 // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
6231 public static native void CResult_PingDecodeErrorZ_free(long _res);
6232 // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
6233 public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
6234 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
6235 public static native long CResult_PingDecodeErrorZ_clone(long orig);
6236 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
6237 public static native long CResult_PongDecodeErrorZ_ok(long o);
6238 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
6239 public static native long CResult_PongDecodeErrorZ_err(long e);
6240 // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
6241 public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
6242 // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
6243 public static native void CResult_PongDecodeErrorZ_free(long _res);
6244 // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
6245 public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
6246 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
6247 public static native long CResult_PongDecodeErrorZ_clone(long orig);
6248 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
6249 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
6250 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
6251 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
6252 // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
6253 public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
6254 // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
6255 public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
6256 // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
6257 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
6258 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
6259 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
6260 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
6261 public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
6262 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
6263 public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
6264 // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
6265 public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
6266 // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
6267 public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
6268 // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
6269 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
6270 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
6271 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
6272 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
6273 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
6274 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
6275 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
6276 // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
6277 public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
6278 // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
6279 public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
6280 // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
6281 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
6282 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
6283 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
6284 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
6285 public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
6286 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
6287 public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
6288 // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
6289 public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
6290 // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
6291 public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
6292 // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
6293 public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
6294 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
6295 public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
6296 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
6297 public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
6298 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
6299 public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
6300 // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
6301 public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
6302 // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
6303 public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
6304 // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
6305 public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
6306 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
6307 public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
6308 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
6309 public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
6310 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
6311 public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
6312 // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
6313 public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
6314 // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
6315 public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
6316 // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
6317 public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
6318 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
6319 public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
6320 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
6321 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
6322 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
6323 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
6324 // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
6325 public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
6326 // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
6327 public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
6328 // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
6329 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
6330 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
6331 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
6332 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
6333 public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
6334 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
6335 public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
6336 // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
6337 public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
6338 // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
6339 public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
6340 // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
6341 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
6342 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
6343 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
6344 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
6345 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
6346 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
6347 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
6348 // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
6349 public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
6350 // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
6351 public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
6352 // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
6353 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
6354 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
6355 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
6356 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
6357 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
6358 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
6359 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
6360 // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
6361 public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
6362 // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
6363 public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
6364 // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
6365 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
6366 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
6367 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
6368 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
6369 public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
6370 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
6371 public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
6372 // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
6373 public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
6374 // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
6375 public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
6376 // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
6377 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
6378 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
6379 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
6380 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
6381 public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
6382 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
6383 public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
6384 // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
6385 public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
6386 // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
6387 public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
6388 // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
6389 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
6390 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
6391 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
6392 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
6393 public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
6394 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
6395 public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
6396 // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
6397 public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
6398 // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
6399 public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
6400 // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
6401 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
6402 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
6403 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
6404 // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
6405 public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
6406 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(struct LDKBolt11Invoice o);
6407 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(long o);
6408 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
6409 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_err(long e);
6410 // bool CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
6411 public static native boolean CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(long o);
6412 // void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ _res);
6413 public static native void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(long _res);
6414 // uint64_t CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
6415 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
6416 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
6417 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(long orig);
6418 // struct LDKCOption_InboundHTLCStateDetailsZ COption_InboundHTLCStateDetailsZ_some(enum LDKInboundHTLCStateDetails o);
6419 public static native long COption_InboundHTLCStateDetailsZ_some(InboundHTLCStateDetails o);
6420 // struct LDKCOption_InboundHTLCStateDetailsZ COption_InboundHTLCStateDetailsZ_none(void);
6421 public static native long COption_InboundHTLCStateDetailsZ_none();
6422 // void COption_InboundHTLCStateDetailsZ_free(struct LDKCOption_InboundHTLCStateDetailsZ _res);
6423 public static native void COption_InboundHTLCStateDetailsZ_free(long _res);
6424 // uint64_t COption_InboundHTLCStateDetailsZ_clone_ptr(LDKCOption_InboundHTLCStateDetailsZ *NONNULL_PTR arg);
6425 public static native long COption_InboundHTLCStateDetailsZ_clone_ptr(long arg);
6426 // struct LDKCOption_InboundHTLCStateDetailsZ COption_InboundHTLCStateDetailsZ_clone(const struct LDKCOption_InboundHTLCStateDetailsZ *NONNULL_PTR orig);
6427 public static native long COption_InboundHTLCStateDetailsZ_clone(long orig);
6428 // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_ok(struct LDKCOption_InboundHTLCStateDetailsZ o);
6429 public static native long CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_ok(long o);
6430 // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_err(struct LDKDecodeError e);
6431 public static native long CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_err(long e);
6432 // bool CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR o);
6433 public static native boolean CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_is_ok(long o);
6434 // void CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_free(struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ _res);
6435 public static native void CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_free(long _res);
6436 // uint64_t CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR arg);
6437 public static native long CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(long arg);
6438 // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone(const struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR orig);
6439 public static native long CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone(long orig);
6440 // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ CResult_InboundHTLCDetailsDecodeErrorZ_ok(struct LDKInboundHTLCDetails o);
6441 public static native long CResult_InboundHTLCDetailsDecodeErrorZ_ok(long o);
6442 // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ CResult_InboundHTLCDetailsDecodeErrorZ_err(struct LDKDecodeError e);
6443 public static native long CResult_InboundHTLCDetailsDecodeErrorZ_err(long e);
6444 // bool CResult_InboundHTLCDetailsDecodeErrorZ_is_ok(const struct LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR o);
6445 public static native boolean CResult_InboundHTLCDetailsDecodeErrorZ_is_ok(long o);
6446 // void CResult_InboundHTLCDetailsDecodeErrorZ_free(struct LDKCResult_InboundHTLCDetailsDecodeErrorZ _res);
6447 public static native void CResult_InboundHTLCDetailsDecodeErrorZ_free(long _res);
6448 // uint64_t CResult_InboundHTLCDetailsDecodeErrorZ_clone_ptr(LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR arg);
6449 public static native long CResult_InboundHTLCDetailsDecodeErrorZ_clone_ptr(long arg);
6450 // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ CResult_InboundHTLCDetailsDecodeErrorZ_clone(const struct LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR orig);
6451 public static native long CResult_InboundHTLCDetailsDecodeErrorZ_clone(long orig);
6452 // struct LDKCOption_OutboundHTLCStateDetailsZ COption_OutboundHTLCStateDetailsZ_some(enum LDKOutboundHTLCStateDetails o);
6453 public static native long COption_OutboundHTLCStateDetailsZ_some(OutboundHTLCStateDetails o);
6454 // struct LDKCOption_OutboundHTLCStateDetailsZ COption_OutboundHTLCStateDetailsZ_none(void);
6455 public static native long COption_OutboundHTLCStateDetailsZ_none();
6456 // void COption_OutboundHTLCStateDetailsZ_free(struct LDKCOption_OutboundHTLCStateDetailsZ _res);
6457 public static native void COption_OutboundHTLCStateDetailsZ_free(long _res);
6458 // uint64_t COption_OutboundHTLCStateDetailsZ_clone_ptr(LDKCOption_OutboundHTLCStateDetailsZ *NONNULL_PTR arg);
6459 public static native long COption_OutboundHTLCStateDetailsZ_clone_ptr(long arg);
6460 // struct LDKCOption_OutboundHTLCStateDetailsZ COption_OutboundHTLCStateDetailsZ_clone(const struct LDKCOption_OutboundHTLCStateDetailsZ *NONNULL_PTR orig);
6461 public static native long COption_OutboundHTLCStateDetailsZ_clone(long orig);
6462 // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_ok(struct LDKCOption_OutboundHTLCStateDetailsZ o);
6463 public static native long CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_ok(long o);
6464 // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_err(struct LDKDecodeError e);
6465 public static native long CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_err(long e);
6466 // bool CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR o);
6467 public static native boolean CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_is_ok(long o);
6468 // void CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_free(struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ _res);
6469 public static native void CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_free(long _res);
6470 // uint64_t CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR arg);
6471 public static native long CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(long arg);
6472 // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone(const struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR orig);
6473 public static native long CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone(long orig);
6474 // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ CResult_OutboundHTLCDetailsDecodeErrorZ_ok(struct LDKOutboundHTLCDetails o);
6475 public static native long CResult_OutboundHTLCDetailsDecodeErrorZ_ok(long o);
6476 // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ CResult_OutboundHTLCDetailsDecodeErrorZ_err(struct LDKDecodeError e);
6477 public static native long CResult_OutboundHTLCDetailsDecodeErrorZ_err(long e);
6478 // bool CResult_OutboundHTLCDetailsDecodeErrorZ_is_ok(const struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR o);
6479 public static native boolean CResult_OutboundHTLCDetailsDecodeErrorZ_is_ok(long o);
6480 // void CResult_OutboundHTLCDetailsDecodeErrorZ_free(struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ _res);
6481 public static native void CResult_OutboundHTLCDetailsDecodeErrorZ_free(long _res);
6482 // uint64_t CResult_OutboundHTLCDetailsDecodeErrorZ_clone_ptr(LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR arg);
6483 public static native long CResult_OutboundHTLCDetailsDecodeErrorZ_clone_ptr(long arg);
6484 // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ CResult_OutboundHTLCDetailsDecodeErrorZ_clone(const struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR orig);
6485 public static native long CResult_OutboundHTLCDetailsDecodeErrorZ_clone(long orig);
6486 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
6487 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
6488 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
6489 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
6490 // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
6491 public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
6492 // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
6493 public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
6494 // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
6495 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
6496 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
6497 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
6498 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
6499 public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
6500 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
6501 public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
6502 // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
6503 public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
6504 // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
6505 public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
6506 // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
6507 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
6508 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
6509 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
6510 // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o);
6511 public static native long COption_ChannelShutdownStateZ_some(ChannelShutdownState o);
6512 // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void);
6513 public static native long COption_ChannelShutdownStateZ_none();
6514 // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res);
6515 public static native void COption_ChannelShutdownStateZ_free(long _res);
6516 // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg);
6517 public static native long COption_ChannelShutdownStateZ_clone_ptr(long arg);
6518 // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig);
6519 public static native long COption_ChannelShutdownStateZ_clone(long orig);
6520 // void CVec_InboundHTLCDetailsZ_free(struct LDKCVec_InboundHTLCDetailsZ _res);
6521 public static native void CVec_InboundHTLCDetailsZ_free(long[] _res);
6522 // void CVec_OutboundHTLCDetailsZ_free(struct LDKCVec_OutboundHTLCDetailsZ _res);
6523 public static native void CVec_OutboundHTLCDetailsZ_free(long[] _res);
6524 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
6525 public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
6526 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
6527 public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
6528 // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
6529 public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
6530 // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
6531 public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
6532 // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
6533 public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
6534 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
6535 public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
6536 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o);
6537 public static native long CResult_ChannelShutdownStateDecodeErrorZ_ok(ChannelShutdownState o);
6538 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e);
6539 public static native long CResult_ChannelShutdownStateDecodeErrorZ_err(long e);
6540 // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o);
6541 public static native boolean CResult_ChannelShutdownStateDecodeErrorZ_is_ok(long o);
6542 // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res);
6543 public static native void CResult_ChannelShutdownStateDecodeErrorZ_free(long _res);
6544 // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg);
6545 public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(long arg);
6546 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig);
6547 public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone(long orig);
6548 // void CVec_FutureZ_free(struct LDKCVec_FutureZ _res);
6549 public static native void CVec_FutureZ_free(long[] _res);
6550 // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o);
6551 public static native long CResult_OffersMessageDecodeErrorZ_ok(long o);
6552 // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e);
6553 public static native long CResult_OffersMessageDecodeErrorZ_err(long e);
6554 // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o);
6555 public static native boolean CResult_OffersMessageDecodeErrorZ_is_ok(long o);
6556 // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res);
6557 public static native void CResult_OffersMessageDecodeErrorZ_free(long _res);
6558 // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg);
6559 public static native long CResult_OffersMessageDecodeErrorZ_clone_ptr(long arg);
6560 // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig);
6561 public static native long CResult_OffersMessageDecodeErrorZ_clone(long orig);
6562 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
6563 public static native long COption_HTLCClaimZ_some(HTLCClaim o);
6564 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
6565 public static native long COption_HTLCClaimZ_none();
6566 // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
6567 public static native void COption_HTLCClaimZ_free(long _res);
6568 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
6569 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
6570 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
6571 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
6572 // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
6573 public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
6574 // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
6575 public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
6576 // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
6577 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
6578 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
6579 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
6580 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
6581 public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
6582 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
6583 public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
6584 // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
6585 public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
6586 // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
6587 public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
6588 // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
6589 public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
6590 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
6591 public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
6592 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
6593 public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
6594 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
6595 public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
6596 // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
6597 public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
6598 // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
6599 public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
6600 // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
6601 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
6602 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
6603 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
6604 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
6605 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
6606 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
6607 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
6608 // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
6609 public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
6610 // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
6611 public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
6612 // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
6613 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
6614 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
6615 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
6616 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
6617 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
6618 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
6619 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
6620 // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
6621 public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
6622 // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
6623 public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
6624 // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
6625 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
6626 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
6627 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
6628 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
6629 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
6630 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
6631 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
6632 // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
6633 public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
6634 // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
6635 public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
6636 // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
6637 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
6638 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
6639 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
6640 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
6641 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
6642 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
6643 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
6644 // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
6645 public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
6646 // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
6647 public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
6648 // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
6649 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
6650 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
6651 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
6652 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
6653 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
6654 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
6655 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
6656 // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
6657 public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
6658 // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
6659 public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
6660 // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
6661 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
6662 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
6663 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
6664 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
6665 public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
6666 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
6667 public static native long CResult_TrustedClosingTransactionNoneZ_err();
6668 // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
6669 public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
6670 // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
6671 public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
6672 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
6673 public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
6674 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
6675 public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
6676 // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
6677 public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
6678 // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
6679 public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
6680 // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
6681 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
6682 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
6683 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
6684 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
6685 public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
6686 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
6687 public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
6688 // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
6689 public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
6690 // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
6691 public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
6692 // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o);
6693 public static native long CResult_CVec_ECDSASignatureZNoneZ_ok(byte[][] o);
6694 // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void);
6695 public static native long CResult_CVec_ECDSASignatureZNoneZ_err();
6696 // bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o);
6697 public static native boolean CResult_CVec_ECDSASignatureZNoneZ_is_ok(long o);
6698 // void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res);
6699 public static native void CResult_CVec_ECDSASignatureZNoneZ_free(long _res);
6700 // uint64_t CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR arg);
6701 public static native long CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(long arg);
6702 // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig);
6703 public static native long CResult_CVec_ECDSASignatureZNoneZ_clone(long orig);
6704 // struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o);
6705 public static native long COption_usizeZ_some(long o);
6706 // struct LDKCOption_usizeZ COption_usizeZ_none(void);
6707 public static native long COption_usizeZ_none();
6708 // void COption_usizeZ_free(struct LDKCOption_usizeZ _res);
6709 public static native void COption_usizeZ_free(long _res);
6710 // uint64_t COption_usizeZ_clone_ptr(LDKCOption_usizeZ *NONNULL_PTR arg);
6711 public static native long COption_usizeZ_clone_ptr(long arg);
6712 // struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig);
6713 public static native long COption_usizeZ_clone(long orig);
6714 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
6715 public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
6716 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
6717 public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
6718 // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
6719 public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
6720 // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
6721 public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
6722 // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
6723 public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
6724 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
6725 public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
6726 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
6727 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
6728 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
6729 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
6730 // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
6731 public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
6732 // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
6733 public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
6734 // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
6735 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
6736 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
6737 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
6738 // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
6739 public static native void CVec_TransactionZ_free(byte[][] _res);
6740 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
6741 public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
6742 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
6743 public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
6744 // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
6745 public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
6746 // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
6747 public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
6748 // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
6749 public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
6750 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
6751 public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
6752 // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o);
6753 public static native long CResult_ClaimedHTLCDecodeErrorZ_ok(long o);
6754 // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
6755 public static native long CResult_ClaimedHTLCDecodeErrorZ_err(long e);
6756 // bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o);
6757 public static native boolean CResult_ClaimedHTLCDecodeErrorZ_is_ok(long o);
6758 // void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res);
6759 public static native void CResult_ClaimedHTLCDecodeErrorZ_free(long _res);
6760 // uint64_t CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR arg);
6761 public static native long CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(long arg);
6762 // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig);
6763 public static native long CResult_ClaimedHTLCDecodeErrorZ_clone(long orig);
6764 // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
6765 public static native long COption_PathFailureZ_some(long o);
6766 // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
6767 public static native long COption_PathFailureZ_none();
6768 // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
6769 public static native void COption_PathFailureZ_free(long _res);
6770 // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
6771 public static native long COption_PathFailureZ_clone_ptr(long arg);
6772 // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
6773 public static native long COption_PathFailureZ_clone(long orig);
6774 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
6775 public static native long CResult_COption_PathFailureZDecodeErrorZ_ok(long o);
6776 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
6777 public static native long CResult_COption_PathFailureZDecodeErrorZ_err(long e);
6778 // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
6779 public static native boolean CResult_COption_PathFailureZDecodeErrorZ_is_ok(long o);
6780 // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
6781 public static native void CResult_COption_PathFailureZDecodeErrorZ_free(long _res);
6782 // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
6783 public static native long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long arg);
6784 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
6785 public static native long CResult_COption_PathFailureZDecodeErrorZ_clone(long orig);
6786 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
6787 public static native long COption_ClosureReasonZ_some(long o);
6788 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
6789 public static native long COption_ClosureReasonZ_none();
6790 // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
6791 public static native void COption_ClosureReasonZ_free(long _res);
6792 // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
6793 public static native long COption_ClosureReasonZ_clone_ptr(long arg);
6794 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
6795 public static native long COption_ClosureReasonZ_clone(long orig);
6796 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
6797 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
6798 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
6799 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
6800 // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
6801 public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
6802 // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
6803 public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
6804 // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
6805 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
6806 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
6807 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
6808 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
6809 public static native long COption_HTLCDestinationZ_some(long o);
6810 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
6811 public static native long COption_HTLCDestinationZ_none();
6812 // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
6813 public static native void COption_HTLCDestinationZ_free(long _res);
6814 // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
6815 public static native long COption_HTLCDestinationZ_clone_ptr(long arg);
6816 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
6817 public static native long COption_HTLCDestinationZ_clone(long orig);
6818 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
6819 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long o);
6820 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
6821 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long e);
6822 // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
6823 public static native boolean CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long o);
6824 // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
6825 public static native void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long _res);
6826 // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
6827 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long arg);
6828 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
6829 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long orig);
6830 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o);
6831 public static native long CResult_PaymentFailureReasonDecodeErrorZ_ok(PaymentFailureReason o);
6832 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e);
6833 public static native long CResult_PaymentFailureReasonDecodeErrorZ_err(long e);
6834 // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o);
6835 public static native boolean CResult_PaymentFailureReasonDecodeErrorZ_is_ok(long o);
6836 // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res);
6837 public static native void CResult_PaymentFailureReasonDecodeErrorZ_free(long _res);
6838 // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg);
6839 public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(long arg);
6840 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig);
6841 public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone(long orig);
6842 // struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o);
6843 public static native long COption_U128Z_some(byte[] o);
6844 // struct LDKCOption_U128Z COption_U128Z_none(void);
6845 public static native long COption_U128Z_none();
6846 // void COption_U128Z_free(struct LDKCOption_U128Z _res);
6847 public static native void COption_U128Z_free(long _res);
6848 // uint64_t COption_U128Z_clone_ptr(LDKCOption_U128Z *NONNULL_PTR arg);
6849 public static native long COption_U128Z_clone_ptr(long arg);
6850 // struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig);
6851 public static native long COption_U128Z_clone(long orig);
6852 // void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res);
6853 public static native void CVec_ClaimedHTLCZ_free(long[] _res);
6854 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o);
6855 public static native long COption_PaymentFailureReasonZ_some(PaymentFailureReason o);
6856 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void);
6857 public static native long COption_PaymentFailureReasonZ_none();
6858 // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res);
6859 public static native void COption_PaymentFailureReasonZ_free(long _res);
6860 // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg);
6861 public static native long COption_PaymentFailureReasonZ_clone_ptr(long arg);
6862 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig);
6863 public static native long COption_PaymentFailureReasonZ_clone(long orig);
6864 // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
6865 public static native long COption_EventZ_some(long o);
6866 // struct LDKCOption_EventZ COption_EventZ_none(void);
6867 public static native long COption_EventZ_none();
6868 // void COption_EventZ_free(struct LDKCOption_EventZ _res);
6869 public static native void COption_EventZ_free(long _res);
6870 // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
6871 public static native long COption_EventZ_clone_ptr(long arg);
6872 // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
6873 public static native long COption_EventZ_clone(long orig);
6874 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
6875 public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
6876 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
6877 public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
6878 // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
6879 public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
6880 // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
6881 public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
6882 // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
6883 public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
6884 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
6885 public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
6886 // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o);
6887 public static native long CResult_SiPrefixBolt11ParseErrorZ_ok(SiPrefix o);
6888 // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
6889 public static native long CResult_SiPrefixBolt11ParseErrorZ_err(long e);
6890 // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o);
6891 public static native boolean CResult_SiPrefixBolt11ParseErrorZ_is_ok(long o);
6892 // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res);
6893 public static native void CResult_SiPrefixBolt11ParseErrorZ_free(long _res);
6894 // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg);
6895 public static native long CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(long arg);
6896 // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig);
6897 public static native long CResult_SiPrefixBolt11ParseErrorZ_clone(long orig);
6898 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o);
6899 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(long o);
6900 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
6901 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(long e);
6902 // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
6903 public static native boolean CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(long o);
6904 // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res);
6905 public static native void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(long _res);
6906 // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
6907 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
6908 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
6909 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(long orig);
6910 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o);
6911 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(long o);
6912 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
6913 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(long e);
6914 // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o);
6915 public static native boolean CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(long o);
6916 // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res);
6917 public static native void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(long _res);
6918 // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg);
6919 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(long arg);
6920 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig);
6921 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(long orig);
6922 // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg);
6923 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(long arg);
6924 // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig);
6925 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(long orig);
6926 // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c);
6927 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(long a, byte[] b, long c);
6928 // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res);
6929 public static native void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(long _res);
6930 // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o);
6931 public static native long CResult_PayeePubKeySecp256k1ErrorZ_ok(long o);
6932 // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
6933 public static native long CResult_PayeePubKeySecp256k1ErrorZ_err(Secp256k1Error e);
6934 // bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o);
6935 public static native boolean CResult_PayeePubKeySecp256k1ErrorZ_is_ok(long o);
6936 // void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res);
6937 public static native void CResult_PayeePubKeySecp256k1ErrorZ_free(long _res);
6938 // uint64_t CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR arg);
6939 public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(long arg);
6940 // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig);
6941 public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone(long orig);
6942 // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
6943 public static native void CVec_PrivateRouteZ_free(long[] _res);
6944 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
6945 public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
6946 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
6947 public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
6948 // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
6949 public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
6950 // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
6951 public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
6952 // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
6953 public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
6954 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
6955 public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
6956 // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void);
6957 public static native long CResult_NoneBolt11SemanticErrorZ_ok();
6958 // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
6959 public static native long CResult_NoneBolt11SemanticErrorZ_err(Bolt11SemanticError e);
6960 // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o);
6961 public static native boolean CResult_NoneBolt11SemanticErrorZ_is_ok(long o);
6962 // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res);
6963 public static native void CResult_NoneBolt11SemanticErrorZ_free(long _res);
6964 // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg);
6965 public static native long CResult_NoneBolt11SemanticErrorZ_clone_ptr(long arg);
6966 // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig);
6967 public static native long CResult_NoneBolt11SemanticErrorZ_clone(long orig);
6968 // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o);
6969 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(long o);
6970 // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
6971 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(Bolt11SemanticError e);
6972 // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o);
6973 public static native boolean CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(long o);
6974 // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res);
6975 public static native void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(long _res);
6976 // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg);
6977 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(long arg);
6978 // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig);
6979 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(long orig);
6980 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
6981 public static native long CResult_DescriptionCreationErrorZ_ok(long o);
6982 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
6983 public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
6984 // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
6985 public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
6986 // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
6987 public static native void CResult_DescriptionCreationErrorZ_free(long _res);
6988 // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
6989 public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
6990 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
6991 public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
6992 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
6993 public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
6994 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
6995 public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
6996 // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
6997 public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
6998 // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
6999 public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
7000 // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
7001 public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
7002 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
7003 public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
7004 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
7005 public static native long CResult_OutPointDecodeErrorZ_ok(long o);
7006 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
7007 public static native long CResult_OutPointDecodeErrorZ_err(long e);
7008 // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
7009 public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
7010 // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
7011 public static native void CResult_OutPointDecodeErrorZ_free(long _res);
7012 // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
7013 public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
7014 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
7015 public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
7016 // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o);
7017 public static native long CResult_BigSizeDecodeErrorZ_ok(long o);
7018 // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e);
7019 public static native long CResult_BigSizeDecodeErrorZ_err(long e);
7020 // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o);
7021 public static native boolean CResult_BigSizeDecodeErrorZ_is_ok(long o);
7022 // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res);
7023 public static native void CResult_BigSizeDecodeErrorZ_free(long _res);
7024 // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg);
7025 public static native long CResult_BigSizeDecodeErrorZ_clone_ptr(long arg);
7026 // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig);
7027 public static native long CResult_BigSizeDecodeErrorZ_clone(long orig);
7028 // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o);
7029 public static native long CResult_HostnameDecodeErrorZ_ok(long o);
7030 // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e);
7031 public static native long CResult_HostnameDecodeErrorZ_err(long e);
7032 // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o);
7033 public static native boolean CResult_HostnameDecodeErrorZ_is_ok(long o);
7034 // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res);
7035 public static native void CResult_HostnameDecodeErrorZ_free(long _res);
7036 // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg);
7037 public static native long CResult_HostnameDecodeErrorZ_clone_ptr(long arg);
7038 // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig);
7039 public static native long CResult_HostnameDecodeErrorZ_clone(long orig);
7040 // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o);
7041 public static native long CResult_TransactionU16LenLimitedNoneZ_ok(long o);
7042 // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void);
7043 public static native long CResult_TransactionU16LenLimitedNoneZ_err();
7044 // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o);
7045 public static native boolean CResult_TransactionU16LenLimitedNoneZ_is_ok(long o);
7046 // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res);
7047 public static native void CResult_TransactionU16LenLimitedNoneZ_free(long _res);
7048 // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg);
7049 public static native long CResult_TransactionU16LenLimitedNoneZ_clone_ptr(long arg);
7050 // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig);
7051 public static native long CResult_TransactionU16LenLimitedNoneZ_clone(long orig);
7052 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o);
7053 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_ok(long o);
7054 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e);
7055 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_err(long e);
7056 // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o);
7057 public static native boolean CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(long o);
7058 // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res);
7059 public static native void CResult_TransactionU16LenLimitedDecodeErrorZ_free(long _res);
7060 // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg);
7061 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(long arg);
7062 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig);
7063 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone(long orig);
7064 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o);
7065 public static native long CResult_UntrustedStringDecodeErrorZ_ok(long o);
7066 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e);
7067 public static native long CResult_UntrustedStringDecodeErrorZ_err(long e);
7068 // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o);
7069 public static native boolean CResult_UntrustedStringDecodeErrorZ_is_ok(long o);
7070 // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res);
7071 public static native void CResult_UntrustedStringDecodeErrorZ_free(long _res);
7072 // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg);
7073 public static native long CResult_UntrustedStringDecodeErrorZ_clone_ptr(long arg);
7074 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig);
7075 public static native long CResult_UntrustedStringDecodeErrorZ_clone(long orig);
7076 // struct LDKCResult_ChannelIdDecodeErrorZ CResult_ChannelIdDecodeErrorZ_ok(struct LDKChannelId o);
7077 public static native long CResult_ChannelIdDecodeErrorZ_ok(long o);
7078 // struct LDKCResult_ChannelIdDecodeErrorZ CResult_ChannelIdDecodeErrorZ_err(struct LDKDecodeError e);
7079 public static native long CResult_ChannelIdDecodeErrorZ_err(long e);
7080 // bool CResult_ChannelIdDecodeErrorZ_is_ok(const struct LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR o);
7081 public static native boolean CResult_ChannelIdDecodeErrorZ_is_ok(long o);
7082 // void CResult_ChannelIdDecodeErrorZ_free(struct LDKCResult_ChannelIdDecodeErrorZ _res);
7083 public static native void CResult_ChannelIdDecodeErrorZ_free(long _res);
7084 // uint64_t CResult_ChannelIdDecodeErrorZ_clone_ptr(LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR arg);
7085 public static native long CResult_ChannelIdDecodeErrorZ_clone_ptr(long arg);
7086 // struct LDKCResult_ChannelIdDecodeErrorZ CResult_ChannelIdDecodeErrorZ_clone(const struct LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR orig);
7087 public static native long CResult_ChannelIdDecodeErrorZ_clone(long orig);
7088 // uint64_t C2Tuple__u832u16Z_clone_ptr(LDKC2Tuple__u832u16Z *NONNULL_PTR arg);
7089 public static native long C2Tuple__u832u16Z_clone_ptr(long arg);
7090 // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_clone(const struct LDKC2Tuple__u832u16Z *NONNULL_PTR orig);
7091 public static native long C2Tuple__u832u16Z_clone(long orig);
7092 // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_new(struct LDKThirtyTwoBytes a, uint16_t b);
7093 public static native long C2Tuple__u832u16Z_new(byte[] a, short b);
7094 // void C2Tuple__u832u16Z_free(struct LDKC2Tuple__u832u16Z _res);
7095 public static native void C2Tuple__u832u16Z_free(long _res);
7096 // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o);
7097 public static native long CResult_PaymentRelayDecodeErrorZ_ok(long o);
7098 // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e);
7099 public static native long CResult_PaymentRelayDecodeErrorZ_err(long e);
7100 // bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o);
7101 public static native boolean CResult_PaymentRelayDecodeErrorZ_is_ok(long o);
7102 // void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res);
7103 public static native void CResult_PaymentRelayDecodeErrorZ_free(long _res);
7104 // uint64_t CResult_PaymentRelayDecodeErrorZ_clone_ptr(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR arg);
7105 public static native long CResult_PaymentRelayDecodeErrorZ_clone_ptr(long arg);
7106 // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig);
7107 public static native long CResult_PaymentRelayDecodeErrorZ_clone(long orig);
7108 // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o);
7109 public static native long CResult_PaymentConstraintsDecodeErrorZ_ok(long o);
7110 // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e);
7111 public static native long CResult_PaymentConstraintsDecodeErrorZ_err(long e);
7112 // bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o);
7113 public static native boolean CResult_PaymentConstraintsDecodeErrorZ_is_ok(long o);
7114 // void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res);
7115 public static native void CResult_PaymentConstraintsDecodeErrorZ_free(long _res);
7116 // uint64_t CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR arg);
7117 public static native long CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(long arg);
7118 // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig);
7119 public static native long CResult_PaymentConstraintsDecodeErrorZ_clone(long orig);
7120 // struct LDKCResult_PaymentContextDecodeErrorZ CResult_PaymentContextDecodeErrorZ_ok(struct LDKPaymentContext o);
7121 public static native long CResult_PaymentContextDecodeErrorZ_ok(long o);
7122 // struct LDKCResult_PaymentContextDecodeErrorZ CResult_PaymentContextDecodeErrorZ_err(struct LDKDecodeError e);
7123 public static native long CResult_PaymentContextDecodeErrorZ_err(long e);
7124 // bool CResult_PaymentContextDecodeErrorZ_is_ok(const struct LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR o);
7125 public static native boolean CResult_PaymentContextDecodeErrorZ_is_ok(long o);
7126 // void CResult_PaymentContextDecodeErrorZ_free(struct LDKCResult_PaymentContextDecodeErrorZ _res);
7127 public static native void CResult_PaymentContextDecodeErrorZ_free(long _res);
7128 // uint64_t CResult_PaymentContextDecodeErrorZ_clone_ptr(LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR arg);
7129 public static native long CResult_PaymentContextDecodeErrorZ_clone_ptr(long arg);
7130 // struct LDKCResult_PaymentContextDecodeErrorZ CResult_PaymentContextDecodeErrorZ_clone(const struct LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR orig);
7131 public static native long CResult_PaymentContextDecodeErrorZ_clone(long orig);
7132 // struct LDKCResult_UnknownPaymentContextDecodeErrorZ CResult_UnknownPaymentContextDecodeErrorZ_ok(struct LDKUnknownPaymentContext o);
7133 public static native long CResult_UnknownPaymentContextDecodeErrorZ_ok(long o);
7134 // struct LDKCResult_UnknownPaymentContextDecodeErrorZ CResult_UnknownPaymentContextDecodeErrorZ_err(struct LDKDecodeError e);
7135 public static native long CResult_UnknownPaymentContextDecodeErrorZ_err(long e);
7136 // bool CResult_UnknownPaymentContextDecodeErrorZ_is_ok(const struct LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR o);
7137 public static native boolean CResult_UnknownPaymentContextDecodeErrorZ_is_ok(long o);
7138 // void CResult_UnknownPaymentContextDecodeErrorZ_free(struct LDKCResult_UnknownPaymentContextDecodeErrorZ _res);
7139 public static native void CResult_UnknownPaymentContextDecodeErrorZ_free(long _res);
7140 // uint64_t CResult_UnknownPaymentContextDecodeErrorZ_clone_ptr(LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR arg);
7141 public static native long CResult_UnknownPaymentContextDecodeErrorZ_clone_ptr(long arg);
7142 // struct LDKCResult_UnknownPaymentContextDecodeErrorZ CResult_UnknownPaymentContextDecodeErrorZ_clone(const struct LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR orig);
7143 public static native long CResult_UnknownPaymentContextDecodeErrorZ_clone(long orig);
7144 // struct LDKCResult_Bolt12OfferContextDecodeErrorZ CResult_Bolt12OfferContextDecodeErrorZ_ok(struct LDKBolt12OfferContext o);
7145 public static native long CResult_Bolt12OfferContextDecodeErrorZ_ok(long o);
7146 // struct LDKCResult_Bolt12OfferContextDecodeErrorZ CResult_Bolt12OfferContextDecodeErrorZ_err(struct LDKDecodeError e);
7147 public static native long CResult_Bolt12OfferContextDecodeErrorZ_err(long e);
7148 // bool CResult_Bolt12OfferContextDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR o);
7149 public static native boolean CResult_Bolt12OfferContextDecodeErrorZ_is_ok(long o);
7150 // void CResult_Bolt12OfferContextDecodeErrorZ_free(struct LDKCResult_Bolt12OfferContextDecodeErrorZ _res);
7151 public static native void CResult_Bolt12OfferContextDecodeErrorZ_free(long _res);
7152 // uint64_t CResult_Bolt12OfferContextDecodeErrorZ_clone_ptr(LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR arg);
7153 public static native long CResult_Bolt12OfferContextDecodeErrorZ_clone_ptr(long arg);
7154 // struct LDKCResult_Bolt12OfferContextDecodeErrorZ CResult_Bolt12OfferContextDecodeErrorZ_clone(const struct LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR orig);
7155 public static native long CResult_Bolt12OfferContextDecodeErrorZ_clone(long orig);
7156 // struct LDKCResult_Bolt12RefundContextDecodeErrorZ CResult_Bolt12RefundContextDecodeErrorZ_ok(struct LDKBolt12RefundContext o);
7157 public static native long CResult_Bolt12RefundContextDecodeErrorZ_ok(long o);
7158 // struct LDKCResult_Bolt12RefundContextDecodeErrorZ CResult_Bolt12RefundContextDecodeErrorZ_err(struct LDKDecodeError e);
7159 public static native long CResult_Bolt12RefundContextDecodeErrorZ_err(long e);
7160 // bool CResult_Bolt12RefundContextDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR o);
7161 public static native boolean CResult_Bolt12RefundContextDecodeErrorZ_is_ok(long o);
7162 // void CResult_Bolt12RefundContextDecodeErrorZ_free(struct LDKCResult_Bolt12RefundContextDecodeErrorZ _res);
7163 public static native void CResult_Bolt12RefundContextDecodeErrorZ_free(long _res);
7164 // uint64_t CResult_Bolt12RefundContextDecodeErrorZ_clone_ptr(LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR arg);
7165 public static native long CResult_Bolt12RefundContextDecodeErrorZ_clone_ptr(long arg);
7166 // struct LDKCResult_Bolt12RefundContextDecodeErrorZ CResult_Bolt12RefundContextDecodeErrorZ_clone(const struct LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR orig);
7167 public static native long CResult_Bolt12RefundContextDecodeErrorZ_clone(long orig);
7168 // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o);
7169 public static native long CResult_StrSecp256k1ErrorZ_ok(String o);
7170 // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
7171 public static native long CResult_StrSecp256k1ErrorZ_err(Secp256k1Error e);
7172 // bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o);
7173 public static native boolean CResult_StrSecp256k1ErrorZ_is_ok(long o);
7174 // void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res);
7175 public static native void CResult_StrSecp256k1ErrorZ_free(long _res);
7176 // uint64_t CResult_StrSecp256k1ErrorZ_clone_ptr(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR arg);
7177 public static native long CResult_StrSecp256k1ErrorZ_clone_ptr(long arg);
7178 // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig);
7179 public static native long CResult_StrSecp256k1ErrorZ_clone(long orig);
7180 // uint64_t C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR arg);
7181 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(long arg);
7182 // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR orig);
7183 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(long orig);
7184 // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(struct LDKThirtyTwoBytes a, struct LDKRecipientOnionFields b, struct LDKRouteParameters c);
7185 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(byte[] a, long b, long c);
7186 // void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ _res);
7187 public static native void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(long _res);
7188 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ o);
7189 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(long o);
7190 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(void);
7191 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err();
7192 // bool CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR o);
7193 public static native boolean CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(long o);
7194 // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ _res);
7195 public static native void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(long _res);
7196 // uint64_t CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR arg);
7197 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(long arg);
7198 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR orig);
7199 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(long orig);
7200 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
7201 public static native long CResult_TxOutUtxoLookupErrorZ_ok(long o);
7202 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
7203 public static native long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError e);
7204 // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
7205 public static native boolean CResult_TxOutUtxoLookupErrorZ_is_ok(long o);
7206 // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
7207 public static native void CResult_TxOutUtxoLookupErrorZ_free(long _res);
7208 // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
7209 public static native long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long arg);
7210 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
7211 public static native long CResult_TxOutUtxoLookupErrorZ_clone(long orig);
7212 // uint64_t C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR arg);
7213 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(long arg);
7214 // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(const struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR orig);
7215 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(long orig);
7216 // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(struct LDKPublicKey a, struct LDKOnionMessage b, struct LDKCOption_CVec_SocketAddressZZ c);
7217 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(byte[] a, long b, long c);
7218 // void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ _res);
7219 public static native void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(long _res);
7220 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ o);
7221 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(long o);
7222 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(struct LDKSendError e);
7223 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(long e);
7224 // bool CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(const struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR o);
7225 public static native boolean CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(long o);
7226 // void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ _res);
7227 public static native void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(long _res);
7228 // uint64_t CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone_ptr(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR arg);
7229 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone_ptr(long arg);
7230 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone(const struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR orig);
7231 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone(long orig);
7232 // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_ok(struct LDKPeeledOnion o);
7233 public static native long CResult_PeeledOnionNoneZ_ok(long o);
7234 // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_err(void);
7235 public static native long CResult_PeeledOnionNoneZ_err();
7236 // bool CResult_PeeledOnionNoneZ_is_ok(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR o);
7237 public static native boolean CResult_PeeledOnionNoneZ_is_ok(long o);
7238 // void CResult_PeeledOnionNoneZ_free(struct LDKCResult_PeeledOnionNoneZ _res);
7239 public static native void CResult_PeeledOnionNoneZ_free(long _res);
7240 // uint64_t CResult_PeeledOnionNoneZ_clone_ptr(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR arg);
7241 public static native long CResult_PeeledOnionNoneZ_clone_ptr(long arg);
7242 // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_clone(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR orig);
7243 public static native long CResult_PeeledOnionNoneZ_clone(long orig);
7244 // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_ok(struct LDKSendSuccess o);
7245 public static native long CResult_SendSuccessSendErrorZ_ok(long o);
7246 // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_err(struct LDKSendError e);
7247 public static native long CResult_SendSuccessSendErrorZ_err(long e);
7248 // bool CResult_SendSuccessSendErrorZ_is_ok(const struct LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR o);
7249 public static native boolean CResult_SendSuccessSendErrorZ_is_ok(long o);
7250 // void CResult_SendSuccessSendErrorZ_free(struct LDKCResult_SendSuccessSendErrorZ _res);
7251 public static native void CResult_SendSuccessSendErrorZ_free(long _res);
7252 // uint64_t CResult_SendSuccessSendErrorZ_clone_ptr(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR arg);
7253 public static native long CResult_SendSuccessSendErrorZ_clone_ptr(long arg);
7254 // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_clone(const struct LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR orig);
7255 public static native long CResult_SendSuccessSendErrorZ_clone(long orig);
7256 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
7257 public static native long CResult_BlindedPathNoneZ_ok(long o);
7258 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
7259 public static native long CResult_BlindedPathNoneZ_err();
7260 // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
7261 public static native boolean CResult_BlindedPathNoneZ_is_ok(long o);
7262 // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
7263 public static native void CResult_BlindedPathNoneZ_free(long _res);
7264 // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
7265 public static native long CResult_BlindedPathNoneZ_clone_ptr(long arg);
7266 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
7267 public static native long CResult_BlindedPathNoneZ_clone(long orig);
7268 // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o);
7269 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(long o);
7270 // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void);
7271 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err();
7272 // bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o);
7273 public static native boolean CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(long o);
7274 // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res);
7275 public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(long _res);
7276 // uint64_t CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR arg);
7277 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(long arg);
7278 // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig);
7279 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(long orig);
7280 // void CVec_ForwardNodeZ_free(struct LDKCVec_ForwardNodeZ _res);
7281 public static native void CVec_ForwardNodeZ_free(long[] _res);
7282 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
7283 public static native long CResult_BlindedPathDecodeErrorZ_ok(long o);
7284 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
7285 public static native long CResult_BlindedPathDecodeErrorZ_err(long e);
7286 // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
7287 public static native boolean CResult_BlindedPathDecodeErrorZ_is_ok(long o);
7288 // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
7289 public static native void CResult_BlindedPathDecodeErrorZ_free(long _res);
7290 // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
7291 public static native long CResult_BlindedPathDecodeErrorZ_clone_ptr(long arg);
7292 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
7293 public static native long CResult_BlindedPathDecodeErrorZ_clone(long orig);
7294 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
7295 public static native long CResult_BlindedHopDecodeErrorZ_ok(long o);
7296 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
7297 public static native long CResult_BlindedHopDecodeErrorZ_err(long e);
7298 // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
7299 public static native boolean CResult_BlindedHopDecodeErrorZ_is_ok(long o);
7300 // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
7301 public static native void CResult_BlindedHopDecodeErrorZ_free(long _res);
7302 // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
7303 public static native long CResult_BlindedHopDecodeErrorZ_clone_ptr(long arg);
7304 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
7305 public static native long CResult_BlindedHopDecodeErrorZ_clone(long orig);
7306 // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o);
7307 public static native long CResult_InvoiceErrorDecodeErrorZ_ok(long o);
7308 // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e);
7309 public static native long CResult_InvoiceErrorDecodeErrorZ_err(long e);
7310 // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o);
7311 public static native boolean CResult_InvoiceErrorDecodeErrorZ_is_ok(long o);
7312 // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res);
7313 public static native void CResult_InvoiceErrorDecodeErrorZ_free(long _res);
7314 // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg);
7315 public static native long CResult_InvoiceErrorDecodeErrorZ_clone_ptr(long arg);
7316 // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig);
7317 public static native long CResult_InvoiceErrorDecodeErrorZ_clone(long orig);
7318 // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ CResult_TrackedSpendableOutputDecodeErrorZ_ok(struct LDKTrackedSpendableOutput o);
7319 public static native long CResult_TrackedSpendableOutputDecodeErrorZ_ok(long o);
7320 // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ CResult_TrackedSpendableOutputDecodeErrorZ_err(struct LDKDecodeError e);
7321 public static native long CResult_TrackedSpendableOutputDecodeErrorZ_err(long e);
7322 // bool CResult_TrackedSpendableOutputDecodeErrorZ_is_ok(const struct LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR o);
7323 public static native boolean CResult_TrackedSpendableOutputDecodeErrorZ_is_ok(long o);
7324 // void CResult_TrackedSpendableOutputDecodeErrorZ_free(struct LDKCResult_TrackedSpendableOutputDecodeErrorZ _res);
7325 public static native void CResult_TrackedSpendableOutputDecodeErrorZ_free(long _res);
7326 // uint64_t CResult_TrackedSpendableOutputDecodeErrorZ_clone_ptr(LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR arg);
7327 public static native long CResult_TrackedSpendableOutputDecodeErrorZ_clone_ptr(long arg);
7328 // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ CResult_TrackedSpendableOutputDecodeErrorZ_clone(const struct LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR orig);
7329 public static native long CResult_TrackedSpendableOutputDecodeErrorZ_clone(long orig);
7330 // struct LDKCResult_OutputSpendStatusDecodeErrorZ CResult_OutputSpendStatusDecodeErrorZ_ok(struct LDKOutputSpendStatus o);
7331 public static native long CResult_OutputSpendStatusDecodeErrorZ_ok(long o);
7332 // struct LDKCResult_OutputSpendStatusDecodeErrorZ CResult_OutputSpendStatusDecodeErrorZ_err(struct LDKDecodeError e);
7333 public static native long CResult_OutputSpendStatusDecodeErrorZ_err(long e);
7334 // bool CResult_OutputSpendStatusDecodeErrorZ_is_ok(const struct LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR o);
7335 public static native boolean CResult_OutputSpendStatusDecodeErrorZ_is_ok(long o);
7336 // void CResult_OutputSpendStatusDecodeErrorZ_free(struct LDKCResult_OutputSpendStatusDecodeErrorZ _res);
7337 public static native void CResult_OutputSpendStatusDecodeErrorZ_free(long _res);
7338 // uint64_t CResult_OutputSpendStatusDecodeErrorZ_clone_ptr(LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR arg);
7339 public static native long CResult_OutputSpendStatusDecodeErrorZ_clone_ptr(long arg);
7340 // struct LDKCResult_OutputSpendStatusDecodeErrorZ CResult_OutputSpendStatusDecodeErrorZ_clone(const struct LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR orig);
7341 public static native long CResult_OutputSpendStatusDecodeErrorZ_clone(long orig);
7342 // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
7343 public static native long COption_FilterZ_some(long o);
7344 // struct LDKCOption_FilterZ COption_FilterZ_none(void);
7345 public static native long COption_FilterZ_none();
7346 // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
7347 public static native void COption_FilterZ_free(long _res);
7348 // void CVec_TrackedSpendableOutputZ_free(struct LDKCVec_TrackedSpendableOutputZ _res);
7349 public static native void CVec_TrackedSpendableOutputZ_free(long[] _res);
7350 // struct LDKCResult_OutputSweeperDecodeErrorZ CResult_OutputSweeperDecodeErrorZ_ok(struct LDKOutputSweeper o);
7351 public static native long CResult_OutputSweeperDecodeErrorZ_ok(long o);
7352 // struct LDKCResult_OutputSweeperDecodeErrorZ CResult_OutputSweeperDecodeErrorZ_err(struct LDKDecodeError e);
7353 public static native long CResult_OutputSweeperDecodeErrorZ_err(long e);
7354 // bool CResult_OutputSweeperDecodeErrorZ_is_ok(const struct LDKCResult_OutputSweeperDecodeErrorZ *NONNULL_PTR o);
7355 public static native boolean CResult_OutputSweeperDecodeErrorZ_is_ok(long o);
7356 // void CResult_OutputSweeperDecodeErrorZ_free(struct LDKCResult_OutputSweeperDecodeErrorZ _res);
7357 public static native void CResult_OutputSweeperDecodeErrorZ_free(long _res);
7358 // struct LDKC2Tuple_BestBlockOutputSweeperZ C2Tuple_BestBlockOutputSweeperZ_new(struct LDKBestBlock a, struct LDKOutputSweeper b);
7359 public static native long C2Tuple_BestBlockOutputSweeperZ_new(long a, long b);
7360 // void C2Tuple_BestBlockOutputSweeperZ_free(struct LDKC2Tuple_BestBlockOutputSweeperZ _res);
7361 public static native void C2Tuple_BestBlockOutputSweeperZ_free(long _res);
7362 // struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_ok(struct LDKC2Tuple_BestBlockOutputSweeperZ o);
7363 public static native long CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_ok(long o);
7364 // struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_err(struct LDKDecodeError e);
7365 public static native long CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_err(long e);
7366 // bool CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ *NONNULL_PTR o);
7367 public static native boolean CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_is_ok(long o);
7368 // void CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ _res);
7369 public static native void CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_free(long _res);
7370 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_ok(struct LDKDelayedPaymentBasepoint o);
7371 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_ok(long o);
7372 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_err(struct LDKDecodeError e);
7373 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_err(long e);
7374 // bool CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR o);
7375 public static native boolean CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(long o);
7376 // void CResult_DelayedPaymentBasepointDecodeErrorZ_free(struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ _res);
7377 public static native void CResult_DelayedPaymentBasepointDecodeErrorZ_free(long _res);
7378 // uint64_t CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR arg);
7379 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(long arg);
7380 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR orig);
7381 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_clone(long orig);
7382 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_ok(struct LDKDelayedPaymentKey o);
7383 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_ok(long o);
7384 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_err(struct LDKDecodeError e);
7385 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_err(long e);
7386 // bool CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR o);
7387 public static native boolean CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(long o);
7388 // void CResult_DelayedPaymentKeyDecodeErrorZ_free(struct LDKCResult_DelayedPaymentKeyDecodeErrorZ _res);
7389 public static native void CResult_DelayedPaymentKeyDecodeErrorZ_free(long _res);
7390 // uint64_t CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR arg);
7391 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(long arg);
7392 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR orig);
7393 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_clone(long orig);
7394 // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_ok(struct LDKHtlcBasepoint o);
7395 public static native long CResult_HtlcBasepointDecodeErrorZ_ok(long o);
7396 // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_err(struct LDKDecodeError e);
7397 public static native long CResult_HtlcBasepointDecodeErrorZ_err(long e);
7398 // bool CResult_HtlcBasepointDecodeErrorZ_is_ok(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR o);
7399 public static native boolean CResult_HtlcBasepointDecodeErrorZ_is_ok(long o);
7400 // void CResult_HtlcBasepointDecodeErrorZ_free(struct LDKCResult_HtlcBasepointDecodeErrorZ _res);
7401 public static native void CResult_HtlcBasepointDecodeErrorZ_free(long _res);
7402 // uint64_t CResult_HtlcBasepointDecodeErrorZ_clone_ptr(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR arg);
7403 public static native long CResult_HtlcBasepointDecodeErrorZ_clone_ptr(long arg);
7404 // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_clone(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR orig);
7405 public static native long CResult_HtlcBasepointDecodeErrorZ_clone(long orig);
7406 // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_ok(struct LDKHtlcKey o);
7407 public static native long CResult_HtlcKeyDecodeErrorZ_ok(long o);
7408 // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_err(struct LDKDecodeError e);
7409 public static native long CResult_HtlcKeyDecodeErrorZ_err(long e);
7410 // bool CResult_HtlcKeyDecodeErrorZ_is_ok(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR o);
7411 public static native boolean CResult_HtlcKeyDecodeErrorZ_is_ok(long o);
7412 // void CResult_HtlcKeyDecodeErrorZ_free(struct LDKCResult_HtlcKeyDecodeErrorZ _res);
7413 public static native void CResult_HtlcKeyDecodeErrorZ_free(long _res);
7414 // uint64_t CResult_HtlcKeyDecodeErrorZ_clone_ptr(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR arg);
7415 public static native long CResult_HtlcKeyDecodeErrorZ_clone_ptr(long arg);
7416 // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_clone(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR orig);
7417 public static native long CResult_HtlcKeyDecodeErrorZ_clone(long orig);
7418 // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_ok(struct LDKRevocationBasepoint o);
7419 public static native long CResult_RevocationBasepointDecodeErrorZ_ok(long o);
7420 // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_err(struct LDKDecodeError e);
7421 public static native long CResult_RevocationBasepointDecodeErrorZ_err(long e);
7422 // bool CResult_RevocationBasepointDecodeErrorZ_is_ok(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR o);
7423 public static native boolean CResult_RevocationBasepointDecodeErrorZ_is_ok(long o);
7424 // void CResult_RevocationBasepointDecodeErrorZ_free(struct LDKCResult_RevocationBasepointDecodeErrorZ _res);
7425 public static native void CResult_RevocationBasepointDecodeErrorZ_free(long _res);
7426 // uint64_t CResult_RevocationBasepointDecodeErrorZ_clone_ptr(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR arg);
7427 public static native long CResult_RevocationBasepointDecodeErrorZ_clone_ptr(long arg);
7428 // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_clone(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR orig);
7429 public static native long CResult_RevocationBasepointDecodeErrorZ_clone(long orig);
7430 // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_ok(struct LDKRevocationKey o);
7431 public static native long CResult_RevocationKeyDecodeErrorZ_ok(long o);
7432 // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_err(struct LDKDecodeError e);
7433 public static native long CResult_RevocationKeyDecodeErrorZ_err(long e);
7434 // bool CResult_RevocationKeyDecodeErrorZ_is_ok(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR o);
7435 public static native boolean CResult_RevocationKeyDecodeErrorZ_is_ok(long o);
7436 // void CResult_RevocationKeyDecodeErrorZ_free(struct LDKCResult_RevocationKeyDecodeErrorZ _res);
7437 public static native void CResult_RevocationKeyDecodeErrorZ_free(long _res);
7438 // uint64_t CResult_RevocationKeyDecodeErrorZ_clone_ptr(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR arg);
7439 public static native long CResult_RevocationKeyDecodeErrorZ_clone_ptr(long arg);
7440 // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_clone(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR orig);
7441 public static native long CResult_RevocationKeyDecodeErrorZ_clone(long orig);
7442 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
7443 public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
7444 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
7445 public static native long CResult_LockedChannelMonitorNoneZ_err();
7446 // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
7447 public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
7448 // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
7449 public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
7450 // uint64_t C2Tuple_OutPointChannelIdZ_clone_ptr(LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR arg);
7451 public static native long C2Tuple_OutPointChannelIdZ_clone_ptr(long arg);
7452 // struct LDKC2Tuple_OutPointChannelIdZ C2Tuple_OutPointChannelIdZ_clone(const struct LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR orig);
7453 public static native long C2Tuple_OutPointChannelIdZ_clone(long orig);
7454 // struct LDKC2Tuple_OutPointChannelIdZ C2Tuple_OutPointChannelIdZ_new(struct LDKOutPoint a, struct LDKChannelId b);
7455 public static native long C2Tuple_OutPointChannelIdZ_new(long a, long b);
7456 // void C2Tuple_OutPointChannelIdZ_free(struct LDKC2Tuple_OutPointChannelIdZ _res);
7457 public static native void C2Tuple_OutPointChannelIdZ_free(long _res);
7458 // void CVec_C2Tuple_OutPointChannelIdZZ_free(struct LDKCVec_C2Tuple_OutPointChannelIdZZ _res);
7459 public static native void CVec_C2Tuple_OutPointChannelIdZZ_free(long[] _res);
7460 // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
7461 public static native void CVec_MonitorUpdateIdZ_free(long[] _res);
7462 // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
7463 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long arg);
7464 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
7465 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long orig);
7466 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
7467 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long a, long[] b);
7468 // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
7469 public static native void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long _res);
7470 // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
7471 public static native void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long[] _res);
7472 // void APIError_free(struct LDKAPIError this_ptr);
7473 public static native void APIError_free(long this_ptr);
7474 // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
7475 public static native long APIError_clone_ptr(long arg);
7476 // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
7477 public static native long APIError_clone(long orig);
7478 // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
7479 public static native long APIError_apimisuse_error(String err);
7480 // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
7481 public static native long APIError_fee_rate_too_high(String err, int feerate);
7482 // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
7483 public static native long APIError_invalid_route(String err);
7484 // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
7485 public static native long APIError_channel_unavailable(String err);
7486 // struct LDKAPIError APIError_monitor_update_in_progress(void);
7487 public static native long APIError_monitor_update_in_progress();
7488 // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
7489 public static native long APIError_incompatible_shutdown_script(long script);
7490 // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
7491 public static native boolean APIError_eq(long a, long b);
7492 // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
7493 public static native byte[] APIError_write(long obj);
7494 // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
7495 public static native long APIError_read(byte[] ser);
7496 // void BigSize_free(struct LDKBigSize this_obj);
7497 public static native void BigSize_free(long this_obj);
7498 // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
7499 public static native long BigSize_get_a(long this_ptr);
7500 // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
7501 public static native void BigSize_set_a(long this_ptr, long val);
7502 // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
7503 public static native long BigSize_new(long a_arg);
7504 // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg);
7505 public static native long BigSize_clone_ptr(long arg);
7506 // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig);
7507 public static native long BigSize_clone(long orig);
7508 // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o);
7509 public static native long BigSize_hash(long o);
7510 // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b);
7511 public static native boolean BigSize_eq(long a, long b);
7512 // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj);
7513 public static native byte[] BigSize_write(long obj);
7514 // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser);
7515 public static native long BigSize_read(byte[] ser);
7516 // void Hostname_free(struct LDKHostname this_obj);
7517 public static native void Hostname_free(long this_obj);
7518 // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
7519 public static native long Hostname_clone_ptr(long arg);
7520 // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
7521 public static native long Hostname_clone(long orig);
7522 // uint64_t Hostname_hash(const struct LDKHostname *NONNULL_PTR o);
7523 public static native long Hostname_hash(long o);
7524 // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
7525 public static native boolean Hostname_eq(long a, long b);
7526 // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
7527 public static native byte Hostname_len(long this_arg);
7528 // struct LDKStr Hostname_to_str(const struct LDKHostname *NONNULL_PTR o);
7529 public static native String Hostname_to_str(long o);
7530 // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj);
7531 public static native byte[] Hostname_write(long obj);
7532 // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser);
7533 public static native long Hostname_read(byte[] ser);
7534 // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj);
7535 public static native void TransactionU16LenLimited_free(long this_obj);
7536 // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg);
7537 public static native long TransactionU16LenLimited_clone_ptr(long arg);
7538 // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig);
7539 public static native long TransactionU16LenLimited_clone(long orig);
7540 // uint64_t TransactionU16LenLimited_hash(const struct LDKTransactionU16LenLimited *NONNULL_PTR o);
7541 public static native long TransactionU16LenLimited_hash(long o);
7542 // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b);
7543 public static native boolean TransactionU16LenLimited_eq(long a, long b);
7544 // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction);
7545 public static native long TransactionU16LenLimited_new(byte[] transaction);
7546 // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg);
7547 public static native byte[] TransactionU16LenLimited_into_transaction(long this_arg);
7548 // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_as_transaction(const struct LDKTransactionU16LenLimited *NONNULL_PTR this_arg);
7549 public static native byte[] TransactionU16LenLimited_as_transaction(long this_arg);
7550 // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj);
7551 public static native byte[] TransactionU16LenLimited_write(long obj);
7552 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser);
7553 public static native long TransactionU16LenLimited_read(byte[] ser);
7554 // struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
7555 public static native long sign(byte[] msg, byte[] sk);
7556 // struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
7557 public static native long recover_pk(byte[] msg, String sig);
7558 // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
7559 public static native boolean verify(byte[] msg, String sig, byte[] pk);
7560 // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
7561 public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
7562 // void KVStore_free(struct LDKKVStore this_ptr);
7563 public static native void KVStore_free(long this_ptr);
7564 // void Persister_free(struct LDKPersister this_ptr);
7565 public static native void Persister_free(long this_ptr);
7566 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider);
7567 public static native long read_channel_monitors(long kv_store, long entropy_source, long signer_provider);
7568 // void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj);
7569 public static native void MonitorUpdatingPersister_free(long this_obj);
7570 // MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider);
7571 public static native long MonitorUpdatingPersister_new(long kv_store, long logger, long maximum_pending_updates, long entropy_source, long signer_provider);
7572 // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator);
7573 public static native long MonitorUpdatingPersister_read_all_channel_monitors_with_updates(long this_arg, long broadcaster, long fee_estimator);
7574 // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key);
7575 public static native long MonitorUpdatingPersister_read_channel_monitor_with_updates(long this_arg, long broadcaster, long fee_estimator, String monitor_key);
7576 // MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy);
7577 public static native long MonitorUpdatingPersister_cleanup_stale_updates(long this_arg, boolean lazy);
7578 // struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg);
7579 public static native long MonitorUpdatingPersister_as_Persist(long this_arg);
7580 // enum LDKShortChannelIdError ShortChannelIdError_clone(const enum LDKShortChannelIdError *NONNULL_PTR orig);
7581 public static native ShortChannelIdError ShortChannelIdError_clone(long orig);
7582 // enum LDKShortChannelIdError ShortChannelIdError_block_overflow(void);
7583 public static native ShortChannelIdError ShortChannelIdError_block_overflow();
7584 // enum LDKShortChannelIdError ShortChannelIdError_tx_index_overflow(void);
7585 public static native ShortChannelIdError ShortChannelIdError_tx_index_overflow();
7586 // enum LDKShortChannelIdError ShortChannelIdError_vout_index_overflow(void);
7587 public static native ShortChannelIdError ShortChannelIdError_vout_index_overflow();
7588 // bool ShortChannelIdError_eq(const enum LDKShortChannelIdError *NONNULL_PTR a, const enum LDKShortChannelIdError *NONNULL_PTR b);
7589 public static native boolean ShortChannelIdError_eq(long a, long b);
7590 // uint32_t block_from_scid(uint64_t short_channel_id);
7591 public static native int block_from_scid(long short_channel_id);
7592 // uint32_t tx_index_from_scid(uint64_t short_channel_id);
7593 public static native int tx_index_from_scid(long short_channel_id);
7594 // uint16_t vout_from_scid(uint64_t short_channel_id);
7595 public static native short vout_from_scid(long short_channel_id);
7596 // struct LDKCResult_u64ShortChannelIdErrorZ scid_from_parts(uint64_t block, uint64_t tx_index, uint64_t vout_index);
7597 public static native long scid_from_parts(long block, long tx_index, long vout_index);
7598 // void UntrustedString_free(struct LDKUntrustedString this_obj);
7599 public static native void UntrustedString_free(long this_obj);
7600 // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr);
7601 public static native String UntrustedString_get_a(long this_ptr);
7602 // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val);
7603 public static native void UntrustedString_set_a(long this_ptr, String val);
7604 // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg);
7605 public static native long UntrustedString_new(String a_arg);
7606 // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg);
7607 public static native long UntrustedString_clone_ptr(long arg);
7608 // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig);
7609 public static native long UntrustedString_clone(long orig);
7610 // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b);
7611 public static native boolean UntrustedString_eq(long a, long b);
7612 // uint64_t UntrustedString_hash(const struct LDKUntrustedString *NONNULL_PTR o);
7613 public static native long UntrustedString_hash(long o);
7614 // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj);
7615 public static native byte[] UntrustedString_write(long obj);
7616 // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser);
7617 public static native long UntrustedString_read(byte[] ser);
7618 // struct LDKStr UntrustedString_to_str(const struct LDKUntrustedString *NONNULL_PTR o);
7619 public static native String UntrustedString_to_str(long o);
7620 // void PrintableString_free(struct LDKPrintableString this_obj);
7621 public static native void PrintableString_free(long this_obj);
7622 // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
7623 public static native String PrintableString_get_a(long this_ptr);
7624 // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
7625 public static native void PrintableString_set_a(long this_ptr, String val);
7626 // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
7627 public static native long PrintableString_new(String a_arg);
7628 // struct LDKStr PrintableString_to_str(const struct LDKPrintableString *NONNULL_PTR o);
7629 public static native String PrintableString_to_str(long o);
7630 // void TrackedSpendableOutput_free(struct LDKTrackedSpendableOutput this_obj);
7631 public static native void TrackedSpendableOutput_free(long this_obj);
7632 // struct LDKSpendableOutputDescriptor TrackedSpendableOutput_get_descriptor(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr);
7633 public static native long TrackedSpendableOutput_get_descriptor(long this_ptr);
7634 // void TrackedSpendableOutput_set_descriptor(struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr, struct LDKSpendableOutputDescriptor val);
7635 public static native void TrackedSpendableOutput_set_descriptor(long this_ptr, long val);
7636 // struct LDKChannelId TrackedSpendableOutput_get_channel_id(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr);
7637 public static native long TrackedSpendableOutput_get_channel_id(long this_ptr);
7638 // void TrackedSpendableOutput_set_channel_id(struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr, struct LDKChannelId val);
7639 public static native void TrackedSpendableOutput_set_channel_id(long this_ptr, long val);
7640 // struct LDKOutputSpendStatus TrackedSpendableOutput_get_status(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr);
7641 public static native long TrackedSpendableOutput_get_status(long this_ptr);
7642 // void TrackedSpendableOutput_set_status(struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr, struct LDKOutputSpendStatus val);
7643 public static native void TrackedSpendableOutput_set_status(long this_ptr, long val);
7644 // MUST_USE_RES struct LDKTrackedSpendableOutput TrackedSpendableOutput_new(struct LDKSpendableOutputDescriptor descriptor_arg, struct LDKChannelId channel_id_arg, struct LDKOutputSpendStatus status_arg);
7645 public static native long TrackedSpendableOutput_new(long descriptor_arg, long channel_id_arg, long status_arg);
7646 // uint64_t TrackedSpendableOutput_clone_ptr(LDKTrackedSpendableOutput *NONNULL_PTR arg);
7647 public static native long TrackedSpendableOutput_clone_ptr(long arg);
7648 // struct LDKTrackedSpendableOutput TrackedSpendableOutput_clone(const struct LDKTrackedSpendableOutput *NONNULL_PTR orig);
7649 public static native long TrackedSpendableOutput_clone(long orig);
7650 // bool TrackedSpendableOutput_eq(const struct LDKTrackedSpendableOutput *NONNULL_PTR a, const struct LDKTrackedSpendableOutput *NONNULL_PTR b);
7651 public static native boolean TrackedSpendableOutput_eq(long a, long b);
7652 // MUST_USE_RES bool TrackedSpendableOutput_is_spent_in(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_arg, struct LDKTransaction tx);
7653 public static native boolean TrackedSpendableOutput_is_spent_in(long this_arg, byte[] tx);
7654 // struct LDKCVec_u8Z TrackedSpendableOutput_write(const struct LDKTrackedSpendableOutput *NONNULL_PTR obj);
7655 public static native byte[] TrackedSpendableOutput_write(long obj);
7656 // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ TrackedSpendableOutput_read(struct LDKu8slice ser);
7657 public static native long TrackedSpendableOutput_read(byte[] ser);
7658 // void OutputSpendStatus_free(struct LDKOutputSpendStatus this_ptr);
7659 public static native void OutputSpendStatus_free(long this_ptr);
7660 // uint64_t OutputSpendStatus_clone_ptr(LDKOutputSpendStatus *NONNULL_PTR arg);
7661 public static native long OutputSpendStatus_clone_ptr(long arg);
7662 // struct LDKOutputSpendStatus OutputSpendStatus_clone(const struct LDKOutputSpendStatus *NONNULL_PTR orig);
7663 public static native long OutputSpendStatus_clone(long orig);
7664 // struct LDKOutputSpendStatus OutputSpendStatus_pending_initial_broadcast(struct LDKCOption_u32Z delayed_until_height);
7665 public static native long OutputSpendStatus_pending_initial_broadcast(long delayed_until_height);
7666 // struct LDKOutputSpendStatus OutputSpendStatus_pending_first_confirmation(struct LDKThirtyTwoBytes first_broadcast_hash, uint32_t latest_broadcast_height, struct LDKTransaction latest_spending_tx);
7667 public static native long OutputSpendStatus_pending_first_confirmation(byte[] first_broadcast_hash, int latest_broadcast_height, byte[] latest_spending_tx);
7668 // struct LDKOutputSpendStatus OutputSpendStatus_pending_threshold_confirmations(struct LDKThirtyTwoBytes first_broadcast_hash, uint32_t latest_broadcast_height, struct LDKTransaction latest_spending_tx, uint32_t confirmation_height, struct LDKThirtyTwoBytes confirmation_hash);
7669 public static native long OutputSpendStatus_pending_threshold_confirmations(byte[] first_broadcast_hash, int latest_broadcast_height, byte[] latest_spending_tx, int confirmation_height, byte[] confirmation_hash);
7670 // bool OutputSpendStatus_eq(const struct LDKOutputSpendStatus *NONNULL_PTR a, const struct LDKOutputSpendStatus *NONNULL_PTR b);
7671 public static native boolean OutputSpendStatus_eq(long a, long b);
7672 // struct LDKCVec_u8Z OutputSpendStatus_write(const struct LDKOutputSpendStatus *NONNULL_PTR obj);
7673 public static native byte[] OutputSpendStatus_write(long obj);
7674 // struct LDKCResult_OutputSpendStatusDecodeErrorZ OutputSpendStatus_read(struct LDKu8slice ser);
7675 public static native long OutputSpendStatus_read(byte[] ser);
7676 // void OutputSweeper_free(struct LDKOutputSweeper this_obj);
7677 public static native void OutputSweeper_free(long this_obj);
7678 // MUST_USE_RES struct LDKOutputSweeper OutputSweeper_new(struct LDKBestBlock best_block, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKCOption_FilterZ chain_data_source, struct LDKOutputSpender output_spender, struct LDKChangeDestinationSource change_destination_source, struct LDKKVStore kv_store, struct LDKLogger logger);
7679 public static native long OutputSweeper_new(long best_block, long broadcaster, long fee_estimator, long chain_data_source, long output_spender, long change_destination_source, long kv_store, long logger);
7680 // MUST_USE_RES struct LDKCResult_NoneNoneZ OutputSweeper_track_spendable_outputs(const struct LDKOutputSweeper *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ output_descriptors, struct LDKChannelId channel_id, bool exclude_static_outputs, struct LDKCOption_u32Z delay_until_height);
7681 public static native long OutputSweeper_track_spendable_outputs(long this_arg, long[] output_descriptors, long channel_id, boolean exclude_static_outputs, long delay_until_height);
7682 // MUST_USE_RES struct LDKCVec_TrackedSpendableOutputZ OutputSweeper_tracked_spendable_outputs(const struct LDKOutputSweeper *NONNULL_PTR this_arg);
7683 public static native long[] OutputSweeper_tracked_spendable_outputs(long this_arg);
7684 // MUST_USE_RES struct LDKBestBlock OutputSweeper_current_best_block(const struct LDKOutputSweeper *NONNULL_PTR this_arg);
7685 public static native long OutputSweeper_current_best_block(long this_arg);
7686 // struct LDKListen OutputSweeper_as_Listen(const struct LDKOutputSweeper *NONNULL_PTR this_arg);
7687 public static native long OutputSweeper_as_Listen(long this_arg);
7688 // struct LDKConfirm OutputSweeper_as_Confirm(const struct LDKOutputSweeper *NONNULL_PTR this_arg);
7689 public static native long OutputSweeper_as_Confirm(long this_arg);
7690 // void SpendingDelay_free(struct LDKSpendingDelay this_ptr);
7691 public static native void SpendingDelay_free(long this_ptr);
7692 // uint64_t SpendingDelay_clone_ptr(LDKSpendingDelay *NONNULL_PTR arg);
7693 public static native long SpendingDelay_clone_ptr(long arg);
7694 // struct LDKSpendingDelay SpendingDelay_clone(const struct LDKSpendingDelay *NONNULL_PTR orig);
7695 public static native long SpendingDelay_clone(long orig);
7696 // struct LDKSpendingDelay SpendingDelay_relative(uint32_t num_blocks);
7697 public static native long SpendingDelay_relative(int num_blocks);
7698 // struct LDKSpendingDelay SpendingDelay_absolute(uint32_t height);
7699 public static native long SpendingDelay_absolute(int height);
7700 // struct LDKCResult_OutputSweeperDecodeErrorZ OutputSweeper_read(struct LDKu8slice ser, struct LDKBroadcasterInterface arg_a, struct LDKFeeEstimator arg_b, struct LDKCOption_FilterZ arg_c, struct LDKOutputSpender arg_d, struct LDKChangeDestinationSource arg_e, struct LDKKVStore arg_f, struct LDKLogger arg_g);
7701 public static native long OutputSweeper_read(byte[] ser, long arg_a, long arg_b, long arg_c, long arg_d, long arg_e, long arg_f, long arg_g);
7702 // struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ C2Tuple_BestBlockOutputSweeperZ_read(struct LDKu8slice ser, struct LDKBroadcasterInterface arg_a, struct LDKFeeEstimator arg_b, struct LDKCOption_FilterZ arg_c, struct LDKOutputSpender arg_d, struct LDKChangeDestinationSource arg_e, struct LDKKVStore arg_f, struct LDKLogger arg_g);
7703 public static native long C2Tuple_BestBlockOutputSweeperZ_read(byte[] ser, long arg_a, long arg_b, long arg_c, long arg_d, long arg_e, long arg_f, long arg_g);
7704 // void FutureCallback_free(struct LDKFutureCallback this_ptr);
7705 public static native void FutureCallback_free(long this_ptr);
7706 // void Future_free(struct LDKFuture this_obj);
7707 public static native void Future_free(long this_obj);
7708 // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
7709 public static native void Future_register_callback_fn(long this_arg, long callback);
7710 // void Future_wait(const struct LDKFuture *NONNULL_PTR this_arg);
7711 public static native void Future_wait(long this_arg);
7712 // MUST_USE_RES bool Future_wait_timeout(const struct LDKFuture *NONNULL_PTR this_arg, uint64_t max_wait);
7713 public static native boolean Future_wait_timeout(long this_arg, long max_wait);
7714 // void Sleeper_free(struct LDKSleeper this_obj);
7715 public static native void Sleeper_free(long this_obj);
7716 // MUST_USE_RES struct LDKSleeper Sleeper_from_single_future(const struct LDKFuture *NONNULL_PTR future);
7717 public static native long Sleeper_from_single_future(long future);
7718 // MUST_USE_RES struct LDKSleeper Sleeper_from_two_futures(const struct LDKFuture *NONNULL_PTR fut_a, const struct LDKFuture *NONNULL_PTR fut_b);
7719 public static native long Sleeper_from_two_futures(long fut_a, long fut_b);
7720 // MUST_USE_RES struct LDKSleeper Sleeper_new(struct LDKCVec_FutureZ futures);
7721 public static native long Sleeper_new(long[] futures);
7722 // void Sleeper_wait(const struct LDKSleeper *NONNULL_PTR this_arg);
7723 public static native void Sleeper_wait(long this_arg);
7724 // MUST_USE_RES bool Sleeper_wait_timeout(const struct LDKSleeper *NONNULL_PTR this_arg, uint64_t max_wait);
7725 public static native boolean Sleeper_wait_timeout(long this_arg, long max_wait);
7726 // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
7727 public static native Level Level_clone(long orig);
7728 // enum LDKLevel Level_gossip(void);
7729 public static native Level Level_gossip();
7730 // enum LDKLevel Level_trace(void);
7731 public static native Level Level_trace();
7732 // enum LDKLevel Level_debug(void);
7733 public static native Level Level_debug();
7734 // enum LDKLevel Level_info(void);
7735 public static native Level Level_info();
7736 // enum LDKLevel Level_warn(void);
7737 public static native Level Level_warn();
7738 // enum LDKLevel Level_error(void);
7739 public static native Level Level_error();
7740 // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
7741 public static native boolean Level_eq(long a, long b);
7742 // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
7743 public static native long Level_hash(long o);
7744 // struct LDKStr Level_to_str(const enum LDKLevel *NONNULL_PTR o);
7745 public static native String Level_to_str(long o);
7746 // MUST_USE_RES enum LDKLevel Level_max(void);
7747 public static native Level Level_max();
7748 // void Record_free(struct LDKRecord this_obj);
7749 public static native void Record_free(long this_obj);
7750 // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
7751 public static native Level Record_get_level(long this_ptr);
7752 // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
7753 public static native void Record_set_level(long this_ptr, Level val);
7754 // struct LDKPublicKey Record_get_peer_id(const struct LDKRecord *NONNULL_PTR this_ptr);
7755 public static native byte[] Record_get_peer_id(long this_ptr);
7756 // void Record_set_peer_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7757 public static native void Record_set_peer_id(long this_ptr, byte[] val);
7758 // struct LDKChannelId Record_get_channel_id(const struct LDKRecord *NONNULL_PTR this_ptr);
7759 public static native long Record_get_channel_id(long this_ptr);
7760 // void Record_set_channel_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKChannelId val);
7761 public static native void Record_set_channel_id(long this_ptr, long val);
7762 // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
7763 public static native String Record_get_args(long this_ptr);
7764 // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
7765 public static native void Record_set_args(long this_ptr, String val);
7766 // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
7767 public static native String Record_get_module_path(long this_ptr);
7768 // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
7769 public static native void Record_set_module_path(long this_ptr, String val);
7770 // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
7771 public static native String Record_get_file(long this_ptr);
7772 // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
7773 public static native void Record_set_file(long this_ptr, String val);
7774 // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
7775 public static native int Record_get_line(long this_ptr);
7776 // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
7777 public static native void Record_set_line(long this_ptr, int val);
7778 // MUST_USE_RES struct LDKRecord Record_new(enum LDKLevel level_arg, struct LDKPublicKey peer_id_arg, struct LDKChannelId channel_id_arg, struct LDKStr args_arg, struct LDKStr module_path_arg, struct LDKStr file_arg, uint32_t line_arg);
7779 public static native long Record_new(Level level_arg, byte[] peer_id_arg, long channel_id_arg, String args_arg, String module_path_arg, String file_arg, int line_arg);
7780 // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
7781 public static native long Record_clone_ptr(long arg);
7782 // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
7783 public static native long Record_clone(long orig);
7784 // void Logger_free(struct LDKLogger this_ptr);
7785 public static native void Logger_free(long this_ptr);
7786 // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
7787 public static native void ChannelHandshakeConfig_free(long this_obj);
7788 // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7789 public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
7790 // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
7791 public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
7792 // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7793 public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
7794 // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
7795 public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
7796 // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7797 public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
7798 // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
7799 public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
7800 // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7801 public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
7802 // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
7803 public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
7804 // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7805 public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
7806 // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
7807 public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
7808 // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7809 public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
7810 // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
7811 public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
7812 // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7813 public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
7814 // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
7815 public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
7816 // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7817 public static native int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long this_ptr);
7818 // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
7819 public static native void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long this_ptr, int val);
7820 // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7821 public static native boolean ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(long this_ptr);
7822 // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
7823 public static native void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(long this_ptr, boolean val);
7824 // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
7825 public static native short ChannelHandshakeConfig_get_our_max_accepted_htlcs(long this_ptr);
7826 // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
7827 public static native void ChannelHandshakeConfig_set_our_max_accepted_htlcs(long this_ptr, short val);
7828 // 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);
7829 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);
7830 // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
7831 public static native long ChannelHandshakeConfig_clone_ptr(long arg);
7832 // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
7833 public static native long ChannelHandshakeConfig_clone(long orig);
7834 // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
7835 public static native long ChannelHandshakeConfig_default();
7836 // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
7837 public static native void ChannelHandshakeLimits_free(long this_obj);
7838 // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7839 public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
7840 // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
7841 public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
7842 // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7843 public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
7844 // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
7845 public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
7846 // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7847 public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
7848 // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
7849 public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
7850 // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7851 public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
7852 // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
7853 public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
7854 // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7855 public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
7856 // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
7857 public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
7858 // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7859 public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
7860 // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
7861 public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
7862 // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7863 public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
7864 // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
7865 public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
7866 // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7867 public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
7868 // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
7869 public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
7870 // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7871 public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
7872 // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
7873 public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
7874 // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
7875 public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
7876 // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
7877 public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
7878 // 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);
7879 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);
7880 // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
7881 public static native long ChannelHandshakeLimits_clone_ptr(long arg);
7882 // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
7883 public static native long ChannelHandshakeLimits_clone(long orig);
7884 // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
7885 public static native long ChannelHandshakeLimits_default();
7886 // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr);
7887 public static native void MaxDustHTLCExposure_free(long this_ptr);
7888 // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg);
7889 public static native long MaxDustHTLCExposure_clone_ptr(long arg);
7890 // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig);
7891 public static native long MaxDustHTLCExposure_clone(long orig);
7892 // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a);
7893 public static native long MaxDustHTLCExposure_fixed_limit_msat(long a);
7894 // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a);
7895 public static native long MaxDustHTLCExposure_fee_rate_multiplier(long a);
7896 // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b);
7897 public static native boolean MaxDustHTLCExposure_eq(long a, long b);
7898 // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj);
7899 public static native byte[] MaxDustHTLCExposure_write(long obj);
7900 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser);
7901 public static native long MaxDustHTLCExposure_read(byte[] ser);
7902 // void ChannelConfig_free(struct LDKChannelConfig this_obj);
7903 public static native void ChannelConfig_free(long this_obj);
7904 // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
7905 public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
7906 // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
7907 public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
7908 // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
7909 public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
7910 // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
7911 public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
7912 // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
7913 public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
7914 // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
7915 public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
7916 // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
7917 public static native long ChannelConfig_get_max_dust_htlc_exposure(long this_ptr);
7918 // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val);
7919 public static native void ChannelConfig_set_max_dust_htlc_exposure(long this_ptr, long val);
7920 // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
7921 public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
7922 // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
7923 public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
7924 // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
7925 public static native boolean ChannelConfig_get_accept_underpaying_htlcs(long this_ptr);
7926 // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
7927 public static native void ChannelConfig_set_accept_underpaying_htlcs(long this_ptr, boolean val);
7928 // 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);
7929 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);
7930 // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
7931 public static native long ChannelConfig_clone_ptr(long arg);
7932 // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
7933 public static native long ChannelConfig_clone(long orig);
7934 // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
7935 public static native boolean ChannelConfig_eq(long a, long b);
7936 // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update);
7937 public static native void ChannelConfig_apply(long this_arg, long update);
7938 // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
7939 public static native long ChannelConfig_default();
7940 // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
7941 public static native byte[] ChannelConfig_write(long obj);
7942 // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
7943 public static native long ChannelConfig_read(byte[] ser);
7944 // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj);
7945 public static native void ChannelConfigUpdate_free(long this_obj);
7946 // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7947 public static native long ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(long this_ptr);
7948 // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7949 public static native void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(long this_ptr, long val);
7950 // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7951 public static native long ChannelConfigUpdate_get_forwarding_fee_base_msat(long this_ptr);
7952 // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7953 public static native void ChannelConfigUpdate_set_forwarding_fee_base_msat(long this_ptr, long val);
7954 // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7955 public static native long ChannelConfigUpdate_get_cltv_expiry_delta(long this_ptr);
7956 // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
7957 public static native void ChannelConfigUpdate_set_cltv_expiry_delta(long this_ptr, long val);
7958 // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7959 public static native long ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(long this_ptr);
7960 // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val);
7961 public static native void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
7962 // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7963 public static native long ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
7964 // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7965 public static native void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
7966 // 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);
7967 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);
7968 // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void);
7969 public static native long ChannelConfigUpdate_default();
7970 // void UserConfig_free(struct LDKUserConfig this_obj);
7971 public static native void UserConfig_free(long this_obj);
7972 // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7973 public static native long UserConfig_get_channel_handshake_config(long this_ptr);
7974 // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
7975 public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
7976 // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7977 public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
7978 // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
7979 public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
7980 // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7981 public static native long UserConfig_get_channel_config(long this_ptr);
7982 // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
7983 public static native void UserConfig_set_channel_config(long this_ptr, long val);
7984 // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7985 public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
7986 // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7987 public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
7988 // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7989 public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
7990 // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7991 public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
7992 // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7993 public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
7994 // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7995 public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
7996 // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7997 public static native boolean UserConfig_get_accept_intercept_htlcs(long this_ptr);
7998 // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7999 public static native void UserConfig_set_accept_intercept_htlcs(long this_ptr, boolean val);
8000 // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr);
8001 public static native boolean UserConfig_get_accept_mpp_keysend(long this_ptr);
8002 // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
8003 public static native void UserConfig_set_accept_mpp_keysend(long this_ptr, boolean val);
8004 // 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);
8005 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);
8006 // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
8007 public static native long UserConfig_clone_ptr(long arg);
8008 // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
8009 public static native long UserConfig_clone(long orig);
8010 // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
8011 public static native long UserConfig_default();
8012 // void BestBlock_free(struct LDKBestBlock this_obj);
8013 public static native void BestBlock_free(long this_obj);
8014 // const uint8_t (*BestBlock_get_block_hash(const struct LDKBestBlock *NONNULL_PTR this_ptr))[32];
8015 public static native byte[] BestBlock_get_block_hash(long this_ptr);
8016 // void BestBlock_set_block_hash(struct LDKBestBlock *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8017 public static native void BestBlock_set_block_hash(long this_ptr, byte[] val);
8018 // uint32_t BestBlock_get_height(const struct LDKBestBlock *NONNULL_PTR this_ptr);
8019 public static native int BestBlock_get_height(long this_ptr);
8020 // void BestBlock_set_height(struct LDKBestBlock *NONNULL_PTR this_ptr, uint32_t val);
8021 public static native void BestBlock_set_height(long this_ptr, int val);
8022 // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash_arg, uint32_t height_arg);
8023 public static native long BestBlock_new(byte[] block_hash_arg, int height_arg);
8024 // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
8025 public static native long BestBlock_clone_ptr(long arg);
8026 // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
8027 public static native long BestBlock_clone(long orig);
8028 // uint64_t BestBlock_hash(const struct LDKBestBlock *NONNULL_PTR o);
8029 public static native long BestBlock_hash(long o);
8030 // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
8031 public static native boolean BestBlock_eq(long a, long b);
8032 // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
8033 public static native long BestBlock_from_network(Network network);
8034 // struct LDKCVec_u8Z BestBlock_write(const struct LDKBestBlock *NONNULL_PTR obj);
8035 public static native byte[] BestBlock_write(long obj);
8036 // struct LDKCResult_BestBlockDecodeErrorZ BestBlock_read(struct LDKu8slice ser);
8037 public static native long BestBlock_read(byte[] ser);
8038 // void Listen_free(struct LDKListen this_ptr);
8039 public static native void Listen_free(long this_ptr);
8040 // void Confirm_free(struct LDKConfirm this_ptr);
8041 public static native void Confirm_free(long this_ptr);
8042 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
8043 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long orig);
8044 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
8045 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed();
8046 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
8047 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress();
8048 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void);
8049 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error();
8050 // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
8051 public static native boolean ChannelMonitorUpdateStatus_eq(long a, long b);
8052 // void Watch_free(struct LDKWatch this_ptr);
8053 public static native void Watch_free(long this_ptr);
8054 // void Filter_free(struct LDKFilter this_ptr);
8055 public static native void Filter_free(long this_ptr);
8056 // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
8057 public static native void WatchedOutput_free(long this_obj);
8058 // struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
8059 public static native long WatchedOutput_get_block_hash(long this_ptr);
8060 // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
8061 public static native void WatchedOutput_set_block_hash(long this_ptr, long val);
8062 // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
8063 public static native long WatchedOutput_get_outpoint(long this_ptr);
8064 // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
8065 public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
8066 // struct LDKCVec_u8Z WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
8067 public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
8068 // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8069 public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
8070 // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
8071 public static native long WatchedOutput_new(long block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
8072 // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
8073 public static native long WatchedOutput_clone_ptr(long arg);
8074 // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
8075 public static native long WatchedOutput_clone(long orig);
8076 // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
8077 public static native boolean WatchedOutput_eq(long a, long b);
8078 // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
8079 public static native long WatchedOutput_hash(long o);
8080 // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
8081 public static native void BroadcasterInterface_free(long this_ptr);
8082 // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
8083 public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
8084 // enum LDKConfirmationTarget ConfirmationTarget_on_chain_sweep(void);
8085 public static native ConfirmationTarget ConfirmationTarget_on_chain_sweep();
8086 // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(void);
8087 public static native ConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee();
8088 // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(void);
8089 public static native ConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee();
8090 // enum LDKConfirmationTarget ConfirmationTarget_anchor_channel_fee(void);
8091 public static native ConfirmationTarget ConfirmationTarget_anchor_channel_fee();
8092 // enum LDKConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(void);
8093 public static native ConfirmationTarget ConfirmationTarget_non_anchor_channel_fee();
8094 // enum LDKConfirmationTarget ConfirmationTarget_channel_close_minimum(void);
8095 public static native ConfirmationTarget ConfirmationTarget_channel_close_minimum();
8096 // enum LDKConfirmationTarget ConfirmationTarget_output_spending_fee(void);
8097 public static native ConfirmationTarget ConfirmationTarget_output_spending_fee();
8098 // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
8099 public static native long ConfirmationTarget_hash(long o);
8100 // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
8101 public static native boolean ConfirmationTarget_eq(long a, long b);
8102 // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
8103 public static native void FeeEstimator_free(long this_ptr);
8104 // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
8105 public static native void MonitorUpdateId_free(long this_obj);
8106 // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
8107 public static native long MonitorUpdateId_clone_ptr(long arg);
8108 // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
8109 public static native long MonitorUpdateId_clone(long orig);
8110 // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
8111 public static native long MonitorUpdateId_hash(long o);
8112 // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
8113 public static native boolean MonitorUpdateId_eq(long a, long b);
8114 // void Persist_free(struct LDKPersist this_ptr);
8115 public static native void Persist_free(long this_ptr);
8116 // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
8117 public static native void LockedChannelMonitor_free(long this_obj);
8118 // void ChainMonitor_free(struct LDKChainMonitor this_obj);
8119 public static native void ChainMonitor_free(long this_obj);
8120 // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
8121 public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
8122 // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
8123 public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
8124 // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
8125 public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
8126 // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointChannelIdZZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8127 public static native long[] ChainMonitor_list_monitors(long this_arg);
8128 // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8129 public static native long[] ChainMonitor_list_pending_monitor_updates(long this_arg);
8130 // 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);
8131 public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
8132 // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8133 public static native long ChainMonitor_get_update_future(long this_arg);
8134 // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8135 public static native void ChainMonitor_rebroadcast_pending_claims(long this_arg);
8136 // void ChainMonitor_signer_unblocked(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint monitor_opt);
8137 public static native void ChainMonitor_signer_unblocked(long this_arg, long monitor_opt);
8138 // void ChainMonitor_archive_fully_resolved_channel_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8139 public static native void ChainMonitor_archive_fully_resolved_channel_monitors(long this_arg);
8140 // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8141 public static native long ChainMonitor_as_Listen(long this_arg);
8142 // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8143 public static native long ChainMonitor_as_Confirm(long this_arg);
8144 // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8145 public static native long ChainMonitor_as_Watch(long this_arg);
8146 // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
8147 public static native long ChainMonitor_as_EventsProvider(long this_arg);
8148 // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
8149 public static native void ChannelMonitorUpdate_free(long this_obj);
8150 // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
8151 public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
8152 // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
8153 public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
8154 // struct LDKChannelId ChannelMonitorUpdate_get_channel_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
8155 public static native long ChannelMonitorUpdate_get_channel_id(long this_ptr);
8156 // void ChannelMonitorUpdate_set_channel_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, struct LDKChannelId val);
8157 public static native void ChannelMonitorUpdate_set_channel_id(long this_ptr, long val);
8158 // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
8159 public static native long ChannelMonitorUpdate_clone_ptr(long arg);
8160 // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
8161 public static native long ChannelMonitorUpdate_clone(long orig);
8162 // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b);
8163 public static native boolean ChannelMonitorUpdate_eq(long a, long b);
8164 // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
8165 public static native byte[] ChannelMonitorUpdate_write(long obj);
8166 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
8167 public static native long ChannelMonitorUpdate_read(byte[] ser);
8168 // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
8169 public static native void MonitorEvent_free(long this_ptr);
8170 // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
8171 public static native long MonitorEvent_clone_ptr(long arg);
8172 // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
8173 public static native long MonitorEvent_clone(long orig);
8174 // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
8175 public static native long MonitorEvent_htlcevent(long a);
8176 // struct LDKMonitorEvent MonitorEvent_holder_force_closed_with_info(struct LDKClosureReason reason, struct LDKOutPoint outpoint, struct LDKChannelId channel_id);
8177 public static native long MonitorEvent_holder_force_closed_with_info(long reason, long outpoint, long channel_id);
8178 // struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a);
8179 public static native long MonitorEvent_holder_force_closed(long a);
8180 // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, struct LDKChannelId channel_id, uint64_t monitor_update_id);
8181 public static native long MonitorEvent_completed(long funding_txo, long channel_id, long monitor_update_id);
8182 // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
8183 public static native boolean MonitorEvent_eq(long a, long b);
8184 // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
8185 public static native byte[] MonitorEvent_write(long obj);
8186 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
8187 public static native long MonitorEvent_read(byte[] ser);
8188 // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
8189 public static native void HTLCUpdate_free(long this_obj);
8190 // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
8191 public static native long HTLCUpdate_clone_ptr(long arg);
8192 // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
8193 public static native long HTLCUpdate_clone(long orig);
8194 // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
8195 public static native boolean HTLCUpdate_eq(long a, long b);
8196 // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
8197 public static native byte[] HTLCUpdate_write(long obj);
8198 // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
8199 public static native long HTLCUpdate_read(byte[] ser);
8200 // void Balance_free(struct LDKBalance this_ptr);
8201 public static native void Balance_free(long this_ptr);
8202 // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
8203 public static native long Balance_clone_ptr(long arg);
8204 // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
8205 public static native long Balance_clone(long orig);
8206 // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis);
8207 public static native long Balance_claimable_on_channel_close(long amount_satoshis);
8208 // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height);
8209 public static native long Balance_claimable_awaiting_confirmations(long amount_satoshis, int confirmation_height);
8210 // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage);
8211 public static native long Balance_contentious_claimable(long amount_satoshis, int timeout_height, byte[] payment_hash, byte[] payment_preimage);
8212 // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash);
8213 public static native long Balance_maybe_timeout_claimable_htlc(long amount_satoshis, int claimable_height, byte[] payment_hash);
8214 // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash);
8215 public static native long Balance_maybe_preimage_claimable_htlc(long amount_satoshis, int expiry_height, byte[] payment_hash);
8216 // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis);
8217 public static native long Balance_counterparty_revoked_output_claimable(long amount_satoshis);
8218 // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
8219 public static native boolean Balance_eq(long a, long b);
8220 // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg);
8221 public static native long Balance_claimable_amount_satoshis(long this_arg);
8222 // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
8223 public static native void ChannelMonitor_free(long this_obj);
8224 // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
8225 public static native long ChannelMonitor_clone_ptr(long arg);
8226 // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
8227 public static native long ChannelMonitor_clone(long orig);
8228 // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
8229 public static native byte[] ChannelMonitor_write(long obj);
8230 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8231 public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
8232 // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8233 public static native long ChannelMonitor_get_latest_update_id(long this_arg);
8234 // MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8235 public static native long ChannelMonitor_get_funding_txo(long this_arg);
8236 // MUST_USE_RES struct LDKChannelId ChannelMonitor_channel_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8237 public static native long ChannelMonitor_channel_id(long this_arg);
8238 // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8239 public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
8240 // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter, const struct LDKLogger *NONNULL_PTR logger);
8241 public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter, long logger);
8242 // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8243 public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
8244 // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler);
8245 public static native void ChannelMonitor_process_pending_events(long this_arg, long handler);
8246 // MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8247 public static native long ChannelMonitor_initial_counterparty_commitment_tx(long this_arg);
8248 // MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update);
8249 public static native long[] ChannelMonitor_counterparty_commitment_txs_from_update(long this_arg, long update);
8250 // MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number);
8251 public static native long ChannelMonitor_sign_to_local_justice_tx(long this_arg, byte[] justice_tx, long input_idx, long value, long commitment_number);
8252 // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8253 public static native byte[] ChannelMonitor_get_counterparty_node_id(long this_arg);
8254 // void ChannelMonitor_broadcast_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8255 public static native void ChannelMonitor_broadcast_latest_holder_commitment_txn(long this_arg, long broadcaster, long fee_estimator, long logger);
8256 // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8257 public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
8258 // 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, const struct LDKLogger *NONNULL_PTR logger);
8259 public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
8260 // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8261 public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
8262 // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8263 public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
8264 // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8265 public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
8266 // MUST_USE_RES struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8267 public static native long[] ChannelMonitor_get_relevant_txids(long this_arg);
8268 // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8269 public static native long ChannelMonitor_current_best_block(long this_arg);
8270 // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8271 public static native void ChannelMonitor_rebroadcast_pending_claims(long this_arg, long broadcaster, long fee_estimator, long logger);
8272 // void ChannelMonitor_signer_unblocked(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
8273 public static native void ChannelMonitor_signer_unblocked(long this_arg, long broadcaster, long fee_estimator, long logger);
8274 // MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height);
8275 public static native long[] ChannelMonitor_get_spendable_outputs(long this_arg, byte[] tx, int confirmation_height);
8276 // MUST_USE_RES bool ChannelMonitor_is_fully_resolved(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
8277 public static native boolean ChannelMonitor_is_fully_resolved(long this_arg, long logger);
8278 // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
8279 public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
8280 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
8281 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(byte[] ser, long arg_a, long arg_b);
8282 // void OutPoint_free(struct LDKOutPoint this_obj);
8283 public static native void OutPoint_free(long this_obj);
8284 // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
8285 public static native byte[] OutPoint_get_txid(long this_ptr);
8286 // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8287 public static native void OutPoint_set_txid(long this_ptr, byte[] val);
8288 // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
8289 public static native short OutPoint_get_index(long this_ptr);
8290 // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
8291 public static native void OutPoint_set_index(long this_ptr, short val);
8292 // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
8293 public static native long OutPoint_new(byte[] txid_arg, short index_arg);
8294 // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
8295 public static native long OutPoint_clone_ptr(long arg);
8296 // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
8297 public static native long OutPoint_clone(long orig);
8298 // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
8299 public static native boolean OutPoint_eq(long a, long b);
8300 // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
8301 public static native long OutPoint_hash(long o);
8302 // struct LDKStr OutPoint_to_str(const struct LDKOutPoint *NONNULL_PTR o);
8303 public static native String OutPoint_to_str(long o);
8304 // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
8305 public static native byte[] OutPoint_write(long obj);
8306 // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
8307 public static native long OutPoint_read(byte[] ser);
8308 // void InboundHTLCErr_free(struct LDKInboundHTLCErr this_obj);
8309 public static native void InboundHTLCErr_free(long this_obj);
8310 // uint16_t InboundHTLCErr_get_err_code(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr);
8311 public static native short InboundHTLCErr_get_err_code(long this_ptr);
8312 // void InboundHTLCErr_set_err_code(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, uint16_t val);
8313 public static native void InboundHTLCErr_set_err_code(long this_ptr, short val);
8314 // struct LDKCVec_u8Z InboundHTLCErr_get_err_data(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr);
8315 public static native byte[] InboundHTLCErr_get_err_data(long this_ptr);
8316 // void InboundHTLCErr_set_err_data(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8317 public static native void InboundHTLCErr_set_err_data(long this_ptr, byte[] val);
8318 // struct LDKStr InboundHTLCErr_get_msg(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr);
8319 public static native String InboundHTLCErr_get_msg(long this_ptr);
8320 // void InboundHTLCErr_set_msg(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKStr val);
8321 public static native void InboundHTLCErr_set_msg(long this_ptr, String val);
8322 // MUST_USE_RES struct LDKInboundHTLCErr InboundHTLCErr_new(uint16_t err_code_arg, struct LDKCVec_u8Z err_data_arg, struct LDKStr msg_arg);
8323 public static native long InboundHTLCErr_new(short err_code_arg, byte[] err_data_arg, String msg_arg);
8324 // uint64_t InboundHTLCErr_clone_ptr(LDKInboundHTLCErr *NONNULL_PTR arg);
8325 public static native long InboundHTLCErr_clone_ptr(long arg);
8326 // struct LDKInboundHTLCErr InboundHTLCErr_clone(const struct LDKInboundHTLCErr *NONNULL_PTR orig);
8327 public static native long InboundHTLCErr_clone(long orig);
8328 // uint64_t InboundHTLCErr_hash(const struct LDKInboundHTLCErr *NONNULL_PTR o);
8329 public static native long InboundHTLCErr_hash(long o);
8330 // bool InboundHTLCErr_eq(const struct LDKInboundHTLCErr *NONNULL_PTR a, const struct LDKInboundHTLCErr *NONNULL_PTR b);
8331 public static native boolean InboundHTLCErr_eq(long a, long b);
8332 // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ peel_payment_onion(const struct LDKUpdateAddHTLC *NONNULL_PTR msg, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKLogger *NONNULL_PTR logger, uint32_t cur_height, bool accept_mpp_keysend, bool allow_skimmed_fees);
8333 public static native long peel_payment_onion(long msg, long node_signer, long logger, int cur_height, boolean accept_mpp_keysend, boolean allow_skimmed_fees);
8334 // void PendingHTLCRouting_free(struct LDKPendingHTLCRouting this_ptr);
8335 public static native void PendingHTLCRouting_free(long this_ptr);
8336 // uint64_t PendingHTLCRouting_clone_ptr(LDKPendingHTLCRouting *NONNULL_PTR arg);
8337 public static native long PendingHTLCRouting_clone_ptr(long arg);
8338 // struct LDKPendingHTLCRouting PendingHTLCRouting_clone(const struct LDKPendingHTLCRouting *NONNULL_PTR orig);
8339 public static native long PendingHTLCRouting_clone(long orig);
8340 // struct LDKPendingHTLCRouting PendingHTLCRouting_forward(struct LDKOnionPacket onion_packet, uint64_t short_channel_id, struct LDKBlindedForward blinded);
8341 public static native long PendingHTLCRouting_forward(long onion_packet, long short_channel_id, long blinded);
8342 // struct LDKPendingHTLCRouting PendingHTLCRouting_receive(struct LDKFinalOnionHopData payment_data, struct LDKCOption_CVec_u8ZZ payment_metadata, struct LDKCOption_PaymentContextZ payment_context, uint32_t incoming_cltv_expiry, struct LDKThirtyTwoBytes phantom_shared_secret, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs, bool requires_blinded_error);
8343 public static native long PendingHTLCRouting_receive(long payment_data, long payment_metadata, long payment_context, int incoming_cltv_expiry, byte[] phantom_shared_secret, long[] custom_tlvs, boolean requires_blinded_error);
8344 // struct LDKPendingHTLCRouting PendingHTLCRouting_receive_keysend(struct LDKFinalOnionHopData payment_data, struct LDKThirtyTwoBytes payment_preimage, struct LDKCOption_CVec_u8ZZ payment_metadata, uint32_t incoming_cltv_expiry, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs, bool requires_blinded_error);
8345 public static native long PendingHTLCRouting_receive_keysend(long payment_data, byte[] payment_preimage, long payment_metadata, int incoming_cltv_expiry, long[] custom_tlvs, boolean requires_blinded_error);
8346 // void BlindedForward_free(struct LDKBlindedForward this_obj);
8347 public static native void BlindedForward_free(long this_obj);
8348 // struct LDKPublicKey BlindedForward_get_inbound_blinding_point(const struct LDKBlindedForward *NONNULL_PTR this_ptr);
8349 public static native byte[] BlindedForward_get_inbound_blinding_point(long this_ptr);
8350 // void BlindedForward_set_inbound_blinding_point(struct LDKBlindedForward *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8351 public static native void BlindedForward_set_inbound_blinding_point(long this_ptr, byte[] val);
8352 // enum LDKBlindedFailure BlindedForward_get_failure(const struct LDKBlindedForward *NONNULL_PTR this_ptr);
8353 public static native BlindedFailure BlindedForward_get_failure(long this_ptr);
8354 // void BlindedForward_set_failure(struct LDKBlindedForward *NONNULL_PTR this_ptr, enum LDKBlindedFailure val);
8355 public static native void BlindedForward_set_failure(long this_ptr, BlindedFailure val);
8356 // MUST_USE_RES struct LDKBlindedForward BlindedForward_new(struct LDKPublicKey inbound_blinding_point_arg, enum LDKBlindedFailure failure_arg);
8357 public static native long BlindedForward_new(byte[] inbound_blinding_point_arg, BlindedFailure failure_arg);
8358 // uint64_t BlindedForward_clone_ptr(LDKBlindedForward *NONNULL_PTR arg);
8359 public static native long BlindedForward_clone_ptr(long arg);
8360 // struct LDKBlindedForward BlindedForward_clone(const struct LDKBlindedForward *NONNULL_PTR orig);
8361 public static native long BlindedForward_clone(long orig);
8362 // uint64_t BlindedForward_hash(const struct LDKBlindedForward *NONNULL_PTR o);
8363 public static native long BlindedForward_hash(long o);
8364 // bool BlindedForward_eq(const struct LDKBlindedForward *NONNULL_PTR a, const struct LDKBlindedForward *NONNULL_PTR b);
8365 public static native boolean BlindedForward_eq(long a, long b);
8366 // void PendingHTLCInfo_free(struct LDKPendingHTLCInfo this_obj);
8367 public static native void PendingHTLCInfo_free(long this_obj);
8368 // struct LDKPendingHTLCRouting PendingHTLCInfo_get_routing(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
8369 public static native long PendingHTLCInfo_get_routing(long this_ptr);
8370 // void PendingHTLCInfo_set_routing(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKPendingHTLCRouting val);
8371 public static native void PendingHTLCInfo_set_routing(long this_ptr, long val);
8372 // const uint8_t (*PendingHTLCInfo_get_incoming_shared_secret(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32];
8373 public static native byte[] PendingHTLCInfo_get_incoming_shared_secret(long this_ptr);
8374 // void PendingHTLCInfo_set_incoming_shared_secret(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8375 public static native void PendingHTLCInfo_set_incoming_shared_secret(long this_ptr, byte[] val);
8376 // const uint8_t (*PendingHTLCInfo_get_payment_hash(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32];
8377 public static native byte[] PendingHTLCInfo_get_payment_hash(long this_ptr);
8378 // void PendingHTLCInfo_set_payment_hash(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8379 public static native void PendingHTLCInfo_set_payment_hash(long this_ptr, byte[] val);
8380 // struct LDKCOption_u64Z PendingHTLCInfo_get_incoming_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
8381 public static native long PendingHTLCInfo_get_incoming_amt_msat(long this_ptr);
8382 // void PendingHTLCInfo_set_incoming_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8383 public static native void PendingHTLCInfo_set_incoming_amt_msat(long this_ptr, long val);
8384 // uint64_t PendingHTLCInfo_get_outgoing_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
8385 public static native long PendingHTLCInfo_get_outgoing_amt_msat(long this_ptr);
8386 // void PendingHTLCInfo_set_outgoing_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint64_t val);
8387 public static native void PendingHTLCInfo_set_outgoing_amt_msat(long this_ptr, long val);
8388 // uint32_t PendingHTLCInfo_get_outgoing_cltv_value(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
8389 public static native int PendingHTLCInfo_get_outgoing_cltv_value(long this_ptr);
8390 // void PendingHTLCInfo_set_outgoing_cltv_value(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint32_t val);
8391 public static native void PendingHTLCInfo_set_outgoing_cltv_value(long this_ptr, int val);
8392 // struct LDKCOption_u64Z PendingHTLCInfo_get_skimmed_fee_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
8393 public static native long PendingHTLCInfo_get_skimmed_fee_msat(long this_ptr);
8394 // void PendingHTLCInfo_set_skimmed_fee_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8395 public static native void PendingHTLCInfo_set_skimmed_fee_msat(long this_ptr, long val);
8396 // MUST_USE_RES struct LDKPendingHTLCInfo PendingHTLCInfo_new(struct LDKPendingHTLCRouting routing_arg, struct LDKThirtyTwoBytes incoming_shared_secret_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u64Z incoming_amt_msat_arg, uint64_t outgoing_amt_msat_arg, uint32_t outgoing_cltv_value_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg);
8397 public static native long PendingHTLCInfo_new(long routing_arg, byte[] incoming_shared_secret_arg, byte[] payment_hash_arg, long incoming_amt_msat_arg, long outgoing_amt_msat_arg, int outgoing_cltv_value_arg, long skimmed_fee_msat_arg);
8398 // uint64_t PendingHTLCInfo_clone_ptr(LDKPendingHTLCInfo *NONNULL_PTR arg);
8399 public static native long PendingHTLCInfo_clone_ptr(long arg);
8400 // struct LDKPendingHTLCInfo PendingHTLCInfo_clone(const struct LDKPendingHTLCInfo *NONNULL_PTR orig);
8401 public static native long PendingHTLCInfo_clone(long orig);
8402 // enum LDKBlindedFailure BlindedFailure_clone(const enum LDKBlindedFailure *NONNULL_PTR orig);
8403 public static native BlindedFailure BlindedFailure_clone(long orig);
8404 // enum LDKBlindedFailure BlindedFailure_from_introduction_node(void);
8405 public static native BlindedFailure BlindedFailure_from_introduction_node();
8406 // enum LDKBlindedFailure BlindedFailure_from_blinded_node(void);
8407 public static native BlindedFailure BlindedFailure_from_blinded_node();
8408 // uint64_t BlindedFailure_hash(const enum LDKBlindedFailure *NONNULL_PTR o);
8409 public static native long BlindedFailure_hash(long o);
8410 // bool BlindedFailure_eq(const enum LDKBlindedFailure *NONNULL_PTR a, const enum LDKBlindedFailure *NONNULL_PTR b);
8411 public static native boolean BlindedFailure_eq(long a, long b);
8412 // void FailureCode_free(struct LDKFailureCode this_ptr);
8413 public static native void FailureCode_free(long this_ptr);
8414 // uint64_t FailureCode_clone_ptr(LDKFailureCode *NONNULL_PTR arg);
8415 public static native long FailureCode_clone_ptr(long arg);
8416 // struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig);
8417 public static native long FailureCode_clone(long orig);
8418 // struct LDKFailureCode FailureCode_temporary_node_failure(void);
8419 public static native long FailureCode_temporary_node_failure();
8420 // struct LDKFailureCode FailureCode_required_node_feature_missing(void);
8421 public static native long FailureCode_required_node_feature_missing();
8422 // struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
8423 public static native long FailureCode_incorrect_or_unknown_payment_details();
8424 // struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a);
8425 public static native long FailureCode_invalid_onion_payload(long a);
8426 // void ChannelManager_free(struct LDKChannelManager this_obj);
8427 public static native void ChannelManager_free(long this_obj);
8428 // void ChainParameters_free(struct LDKChainParameters this_obj);
8429 public static native void ChainParameters_free(long this_obj);
8430 // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
8431 public static native Network ChainParameters_get_network(long this_ptr);
8432 // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
8433 public static native void ChainParameters_set_network(long this_ptr, Network val);
8434 // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
8435 public static native long ChainParameters_get_best_block(long this_ptr);
8436 // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
8437 public static native void ChainParameters_set_best_block(long this_ptr, long val);
8438 // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
8439 public static native long ChainParameters_new(Network network_arg, long best_block_arg);
8440 // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
8441 public static native long ChainParameters_clone_ptr(long arg);
8442 // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
8443 public static native long ChainParameters_clone(long orig);
8444 // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr);
8445 public static native void RecentPaymentDetails_free(long this_ptr);
8446 // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg);
8447 public static native long RecentPaymentDetails_clone_ptr(long arg);
8448 // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig);
8449 public static native long RecentPaymentDetails_clone(long orig);
8450 // struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id);
8451 public static native long RecentPaymentDetails_awaiting_invoice(byte[] payment_id);
8452 // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat);
8453 public static native long RecentPaymentDetails_pending(byte[] payment_id, byte[] payment_hash, long total_msat);
8454 // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash);
8455 public static native long RecentPaymentDetails_fulfilled(byte[] payment_id, long payment_hash);
8456 // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
8457 public static native long RecentPaymentDetails_abandoned(byte[] payment_id, byte[] payment_hash);
8458 // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
8459 public static native void PhantomRouteHints_free(long this_obj);
8460 // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
8461 public static native long[] PhantomRouteHints_get_channels(long this_ptr);
8462 // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
8463 public static native void PhantomRouteHints_set_channels(long this_ptr, long[] val);
8464 // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
8465 public static native long PhantomRouteHints_get_phantom_scid(long this_ptr);
8466 // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
8467 public static native void PhantomRouteHints_set_phantom_scid(long this_ptr, long val);
8468 // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
8469 public static native byte[] PhantomRouteHints_get_real_node_pubkey(long this_ptr);
8470 // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8471 public static native void PhantomRouteHints_set_real_node_pubkey(long this_ptr, byte[] val);
8472 // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
8473 public static native long PhantomRouteHints_new(long[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg);
8474 // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
8475 public static native long PhantomRouteHints_clone_ptr(long arg);
8476 // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
8477 public static native long PhantomRouteHints_clone(long orig);
8478 // 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);
8479 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);
8480 // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
8481 public static native long ChannelManager_get_current_default_configuration(long this_arg);
8482 // MUST_USE_RES struct LDKCResult_ChannelIdAPIErrorZ 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 LDKChannelId temporary_channel_id, struct LDKUserConfig override_config);
8483 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 temporary_channel_id, long override_config);
8484 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
8485 public static native long[] ChannelManager_list_channels(long this_arg);
8486 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
8487 public static native long[] ChannelManager_list_usable_channels(long this_arg);
8488 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id);
8489 public static native long[] ChannelManager_list_channels_with_counterparty(long this_arg, byte[] counterparty_node_id);
8490 // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg);
8491 public static native long[] ChannelManager_list_recent_payments(long this_arg);
8492 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id);
8493 public static native long ChannelManager_close_channel(long this_arg, long channel_id, byte[] counterparty_node_id);
8494 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_feerate_and_script(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u32Z target_feerate_sats_per_1000_weight, struct LDKShutdownScript shutdown_script);
8495 public static native long ChannelManager_close_channel_with_feerate_and_script(long this_arg, long channel_id, byte[] counterparty_node_id, long target_feerate_sats_per_1000_weight, long shutdown_script);
8496 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id);
8497 public static native long ChannelManager_force_close_broadcasting_latest_txn(long this_arg, long channel_id, byte[] counterparty_node_id);
8498 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id);
8499 public static native long ChannelManager_force_close_without_broadcasting_txn(long this_arg, long channel_id, byte[] counterparty_node_id);
8500 // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
8501 public static native void ChannelManager_force_close_all_channels_broadcasting_latest_txn(long this_arg);
8502 // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
8503 public static native void ChannelManager_force_close_all_channels_without_broadcasting_txn(long this_arg);
8504 // 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);
8505 public static native long ChannelManager_send_payment_with_route(long this_arg, long route, byte[] payment_hash, long recipient_onion, byte[] payment_id);
8506 // 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);
8507 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);
8508 // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
8509 public static native void ChannelManager_abandon_payment(long this_arg, byte[] payment_id);
8510 // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id);
8511 public static native long ChannelManager_send_spontaneous_payment(long this_arg, long route, long payment_preimage, long recipient_onion, byte[] payment_id);
8512 // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy);
8513 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);
8514 // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path);
8515 public static native long ChannelManager_send_probe(long this_arg, long path);
8516 // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_spontaneous_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, uint64_t amount_msat, uint32_t final_cltv_expiry_delta, struct LDKCOption_u64Z liquidity_limit_multiplier);
8517 public static native long ChannelManager_send_spontaneous_preflight_probes(long this_arg, byte[] node_id, long amount_msat, int final_cltv_expiry_delta, long liquidity_limit_multiplier);
8518 // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKRouteParameters route_params, struct LDKCOption_u64Z liquidity_limit_multiplier);
8519 public static native long ChannelManager_send_preflight_probes(long this_arg, long route_params, long liquidity_limit_multiplier);
8520 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction);
8521 public static native long ChannelManager_funding_transaction_generated(long this_arg, long temporary_channel_id, byte[] counterparty_node_id, byte[] funding_transaction);
8522 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ChannelIdPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction);
8523 public static native long ChannelManager_batch_funding_transaction_generated(long this_arg, long[] temporary_channels, byte[] funding_transaction);
8524 // 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_ChannelIdZ channel_ids, const struct LDKChannelConfigUpdate *NONNULL_PTR config_update);
8525 public static native long ChannelManager_update_partial_channel_config(long this_arg, byte[] counterparty_node_id, long[] channel_ids, long config_update);
8526 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ChannelIdZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config);
8527 public static native long ChannelManager_update_channel_config(long this_arg, byte[] counterparty_node_id, long[] channel_ids, long config);
8528 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_forward_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id, const struct LDKChannelId *NONNULL_PTR next_hop_channel_id, struct LDKPublicKey next_node_id, uint64_t amt_to_forward_msat);
8529 public static native long ChannelManager_forward_intercepted_htlc(long this_arg, byte[] intercept_id, long next_hop_channel_id, byte[] next_node_id, long amt_to_forward_msat);
8530 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id);
8531 public static native long ChannelManager_fail_intercepted_htlc(long this_arg, byte[] intercept_id);
8532 // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
8533 public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
8534 // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
8535 public static native void ChannelManager_timer_tick_occurred(long this_arg);
8536 // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
8537 public static native void ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash);
8538 // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code);
8539 public static native void ChannelManager_fail_htlc_backwards_with_reason(long this_arg, byte[] payment_hash, long failure_code);
8540 // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
8541 public static native void ChannelManager_claim_funds(long this_arg, byte[] payment_preimage);
8542 // void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
8543 public static native void ChannelManager_claim_funds_with_known_custom_tlvs(long this_arg, byte[] payment_preimage);
8544 // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
8545 public static native byte[] ChannelManager_get_our_node_id(long this_arg);
8546 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id);
8547 public static native long ChannelManager_accept_inbound_channel(long this_arg, long temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
8548 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id);
8549 public static native long ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(long this_arg, long temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
8550 // MUST_USE_RES struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ ChannelManager_create_offer_builder(const struct LDKChannelManager *NONNULL_PTR this_arg);
8551 public static native long ChannelManager_create_offer_builder(long this_arg);
8552 // MUST_USE_RES struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ ChannelManager_create_refund_builder(const struct LDKChannelManager *NONNULL_PTR this_arg, uint64_t amount_msats, uint64_t absolute_expiry, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, struct LDKCOption_u64Z max_total_routing_fee_msat);
8553 public static native long ChannelManager_create_refund_builder(long this_arg, long amount_msats, long absolute_expiry, byte[] payment_id, long retry_strategy, long max_total_routing_fee_msat);
8554 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_pay_for_offer(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKOffer *NONNULL_PTR offer, struct LDKCOption_u64Z quantity, struct LDKCOption_u64Z amount_msats, struct LDKCOption_StrZ payer_note, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, struct LDKCOption_u64Z max_total_routing_fee_msat);
8555 public static native long ChannelManager_pay_for_offer(long this_arg, long offer, long quantity, long amount_msats, long payer_note, byte[] payment_id, long retry_strategy, long max_total_routing_fee_msat);
8556 // MUST_USE_RES struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ ChannelManager_request_refund_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRefund *NONNULL_PTR refund);
8557 public static native long ChannelManager_request_refund_payment(long this_arg, long refund);
8558 // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
8559 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);
8560 // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry);
8561 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);
8562 // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
8563 public static native long ChannelManager_get_payment_preimage(long this_arg, byte[] payment_hash, byte[] payment_secret);
8564 // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
8565 public static native long ChannelManager_get_phantom_scid(long this_arg);
8566 // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
8567 public static native long ChannelManager_get_phantom_route_hints(long this_arg);
8568 // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
8569 public static native long ChannelManager_get_intercept_scid(long this_arg);
8570 // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg);
8571 public static native long ChannelManager_compute_inflight_htlcs(long this_arg);
8572 // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
8573 public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
8574 // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
8575 public static native long ChannelManager_as_EventsProvider(long this_arg);
8576 // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
8577 public static native long ChannelManager_as_Listen(long this_arg);
8578 // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
8579 public static native long ChannelManager_as_Confirm(long this_arg);
8580 // MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg);
8581 public static native long ChannelManager_get_event_or_persistence_needed_future(long this_arg);
8582 // MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg);
8583 public static native boolean ChannelManager_get_and_clear_needs_persistence(long this_arg);
8584 // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
8585 public static native long ChannelManager_current_best_block(long this_arg);
8586 // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
8587 public static native long ChannelManager_node_features(long this_arg);
8588 // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
8589 public static native long ChannelManager_channel_features(long this_arg);
8590 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
8591 public static native long ChannelManager_channel_type_features(long this_arg);
8592 // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
8593 public static native long ChannelManager_init_features(long this_arg);
8594 // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
8595 public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
8596 // struct LDKOffersMessageHandler ChannelManager_as_OffersMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
8597 public static native long ChannelManager_as_OffersMessageHandler(long this_arg);
8598 // struct LDKNodeIdLookUp ChannelManager_as_NodeIdLookUp(const struct LDKChannelManager *NONNULL_PTR this_arg);
8599 public static native long ChannelManager_as_NodeIdLookUp(long this_arg);
8600 // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR config);
8601 public static native long provided_init_features(long config);
8602 // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
8603 public static native byte[] PhantomRouteHints_write(long obj);
8604 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
8605 public static native long PhantomRouteHints_read(byte[] ser);
8606 // struct LDKCVec_u8Z BlindedForward_write(const struct LDKBlindedForward *NONNULL_PTR obj);
8607 public static native byte[] BlindedForward_write(long obj);
8608 // struct LDKCResult_BlindedForwardDecodeErrorZ BlindedForward_read(struct LDKu8slice ser);
8609 public static native long BlindedForward_read(byte[] ser);
8610 // struct LDKCVec_u8Z PendingHTLCRouting_write(const struct LDKPendingHTLCRouting *NONNULL_PTR obj);
8611 public static native byte[] PendingHTLCRouting_write(long obj);
8612 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ PendingHTLCRouting_read(struct LDKu8slice ser);
8613 public static native long PendingHTLCRouting_read(byte[] ser);
8614 // struct LDKCVec_u8Z PendingHTLCInfo_write(const struct LDKPendingHTLCInfo *NONNULL_PTR obj);
8615 public static native byte[] PendingHTLCInfo_write(long obj);
8616 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ PendingHTLCInfo_read(struct LDKu8slice ser);
8617 public static native long PendingHTLCInfo_read(byte[] ser);
8618 // struct LDKCVec_u8Z BlindedFailure_write(const enum LDKBlindedFailure *NONNULL_PTR obj);
8619 public static native byte[] BlindedFailure_write(long obj);
8620 // struct LDKCResult_BlindedFailureDecodeErrorZ BlindedFailure_read(struct LDKu8slice ser);
8621 public static native long BlindedFailure_read(byte[] ser);
8622 // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
8623 public static native byte[] ChannelManager_write(long obj);
8624 // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
8625 public static native void ChannelManagerReadArgs_free(long this_obj);
8626 // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8627 public static native long ChannelManagerReadArgs_get_entropy_source(long this_ptr);
8628 // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val);
8629 public static native void ChannelManagerReadArgs_set_entropy_source(long this_ptr, long val);
8630 // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8631 public static native long ChannelManagerReadArgs_get_node_signer(long this_ptr);
8632 // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val);
8633 public static native void ChannelManagerReadArgs_set_node_signer(long this_ptr, long val);
8634 // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8635 public static native long ChannelManagerReadArgs_get_signer_provider(long this_ptr);
8636 // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val);
8637 public static native void ChannelManagerReadArgs_set_signer_provider(long this_ptr, long val);
8638 // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8639 public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
8640 // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
8641 public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
8642 // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8643 public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
8644 // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
8645 public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
8646 // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8647 public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
8648 // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
8649 public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
8650 // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8651 public static native long ChannelManagerReadArgs_get_router(long this_ptr);
8652 // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val);
8653 public static native void ChannelManagerReadArgs_set_router(long this_ptr, long val);
8654 // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8655 public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
8656 // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
8657 public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
8658 // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
8659 public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
8660 // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
8661 public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
8662 // 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);
8663 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);
8664 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
8665 public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_read(byte[] ser, long arg);
8666 // void DelayedPaymentBasepoint_free(struct LDKDelayedPaymentBasepoint this_obj);
8667 public static native void DelayedPaymentBasepoint_free(long this_obj);
8668 // struct LDKPublicKey DelayedPaymentBasepoint_get_a(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr);
8669 public static native byte[] DelayedPaymentBasepoint_get_a(long this_ptr);
8670 // void DelayedPaymentBasepoint_set_a(struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8671 public static native void DelayedPaymentBasepoint_set_a(long this_ptr, byte[] val);
8672 // MUST_USE_RES struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_new(struct LDKPublicKey a_arg);
8673 public static native long DelayedPaymentBasepoint_new(byte[] a_arg);
8674 // bool DelayedPaymentBasepoint_eq(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR a, const struct LDKDelayedPaymentBasepoint *NONNULL_PTR b);
8675 public static native boolean DelayedPaymentBasepoint_eq(long a, long b);
8676 // uint64_t DelayedPaymentBasepoint_clone_ptr(LDKDelayedPaymentBasepoint *NONNULL_PTR arg);
8677 public static native long DelayedPaymentBasepoint_clone_ptr(long arg);
8678 // struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_clone(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR orig);
8679 public static native long DelayedPaymentBasepoint_clone(long orig);
8680 // uint64_t DelayedPaymentBasepoint_hash(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR o);
8681 public static native long DelayedPaymentBasepoint_hash(long o);
8682 // MUST_USE_RES struct LDKPublicKey DelayedPaymentBasepoint_to_public_key(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_arg);
8683 public static native byte[] DelayedPaymentBasepoint_to_public_key(long this_arg);
8684 // MUST_USE_RES struct LDKThirtyTwoBytes DelayedPaymentBasepoint_derive_add_tweak(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_arg, struct LDKPublicKey per_commitment_point);
8685 public static native byte[] DelayedPaymentBasepoint_derive_add_tweak(long this_arg, byte[] per_commitment_point);
8686 // struct LDKCVec_u8Z DelayedPaymentBasepoint_write(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR obj);
8687 public static native byte[] DelayedPaymentBasepoint_write(long obj);
8688 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ DelayedPaymentBasepoint_read(struct LDKu8slice ser);
8689 public static native long DelayedPaymentBasepoint_read(byte[] ser);
8690 // void DelayedPaymentKey_free(struct LDKDelayedPaymentKey this_obj);
8691 public static native void DelayedPaymentKey_free(long this_obj);
8692 // struct LDKPublicKey DelayedPaymentKey_get_a(const struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr);
8693 public static native byte[] DelayedPaymentKey_get_a(long this_ptr);
8694 // void DelayedPaymentKey_set_a(struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8695 public static native void DelayedPaymentKey_set_a(long this_ptr, byte[] val);
8696 // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_new(struct LDKPublicKey a_arg);
8697 public static native long DelayedPaymentKey_new(byte[] a_arg);
8698 // bool DelayedPaymentKey_eq(const struct LDKDelayedPaymentKey *NONNULL_PTR a, const struct LDKDelayedPaymentKey *NONNULL_PTR b);
8699 public static native boolean DelayedPaymentKey_eq(long a, long b);
8700 // uint64_t DelayedPaymentKey_clone_ptr(LDKDelayedPaymentKey *NONNULL_PTR arg);
8701 public static native long DelayedPaymentKey_clone_ptr(long arg);
8702 // struct LDKDelayedPaymentKey DelayedPaymentKey_clone(const struct LDKDelayedPaymentKey *NONNULL_PTR orig);
8703 public static native long DelayedPaymentKey_clone(long orig);
8704 // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_basepoint(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point);
8705 public static native long DelayedPaymentKey_from_basepoint(long countersignatory_basepoint, byte[] per_commitment_point);
8706 // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_secret_key(const uint8_t (*sk)[32]);
8707 public static native long DelayedPaymentKey_from_secret_key(byte[] sk);
8708 // MUST_USE_RES struct LDKPublicKey DelayedPaymentKey_to_public_key(const struct LDKDelayedPaymentKey *NONNULL_PTR this_arg);
8709 public static native byte[] DelayedPaymentKey_to_public_key(long this_arg);
8710 // struct LDKCVec_u8Z DelayedPaymentKey_write(const struct LDKDelayedPaymentKey *NONNULL_PTR obj);
8711 public static native byte[] DelayedPaymentKey_write(long obj);
8712 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ DelayedPaymentKey_read(struct LDKu8slice ser);
8713 public static native long DelayedPaymentKey_read(byte[] ser);
8714 // void HtlcBasepoint_free(struct LDKHtlcBasepoint this_obj);
8715 public static native void HtlcBasepoint_free(long this_obj);
8716 // struct LDKPublicKey HtlcBasepoint_get_a(const struct LDKHtlcBasepoint *NONNULL_PTR this_ptr);
8717 public static native byte[] HtlcBasepoint_get_a(long this_ptr);
8718 // void HtlcBasepoint_set_a(struct LDKHtlcBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8719 public static native void HtlcBasepoint_set_a(long this_ptr, byte[] val);
8720 // MUST_USE_RES struct LDKHtlcBasepoint HtlcBasepoint_new(struct LDKPublicKey a_arg);
8721 public static native long HtlcBasepoint_new(byte[] a_arg);
8722 // bool HtlcBasepoint_eq(const struct LDKHtlcBasepoint *NONNULL_PTR a, const struct LDKHtlcBasepoint *NONNULL_PTR b);
8723 public static native boolean HtlcBasepoint_eq(long a, long b);
8724 // uint64_t HtlcBasepoint_clone_ptr(LDKHtlcBasepoint *NONNULL_PTR arg);
8725 public static native long HtlcBasepoint_clone_ptr(long arg);
8726 // struct LDKHtlcBasepoint HtlcBasepoint_clone(const struct LDKHtlcBasepoint *NONNULL_PTR orig);
8727 public static native long HtlcBasepoint_clone(long orig);
8728 // uint64_t HtlcBasepoint_hash(const struct LDKHtlcBasepoint *NONNULL_PTR o);
8729 public static native long HtlcBasepoint_hash(long o);
8730 // MUST_USE_RES struct LDKPublicKey HtlcBasepoint_to_public_key(const struct LDKHtlcBasepoint *NONNULL_PTR this_arg);
8731 public static native byte[] HtlcBasepoint_to_public_key(long this_arg);
8732 // MUST_USE_RES struct LDKThirtyTwoBytes HtlcBasepoint_derive_add_tweak(const struct LDKHtlcBasepoint *NONNULL_PTR this_arg, struct LDKPublicKey per_commitment_point);
8733 public static native byte[] HtlcBasepoint_derive_add_tweak(long this_arg, byte[] per_commitment_point);
8734 // struct LDKCVec_u8Z HtlcBasepoint_write(const struct LDKHtlcBasepoint *NONNULL_PTR obj);
8735 public static native byte[] HtlcBasepoint_write(long obj);
8736 // struct LDKCResult_HtlcBasepointDecodeErrorZ HtlcBasepoint_read(struct LDKu8slice ser);
8737 public static native long HtlcBasepoint_read(byte[] ser);
8738 // void HtlcKey_free(struct LDKHtlcKey this_obj);
8739 public static native void HtlcKey_free(long this_obj);
8740 // struct LDKPublicKey HtlcKey_get_a(const struct LDKHtlcKey *NONNULL_PTR this_ptr);
8741 public static native byte[] HtlcKey_get_a(long this_ptr);
8742 // void HtlcKey_set_a(struct LDKHtlcKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8743 public static native void HtlcKey_set_a(long this_ptr, byte[] val);
8744 // MUST_USE_RES struct LDKHtlcKey HtlcKey_new(struct LDKPublicKey a_arg);
8745 public static native long HtlcKey_new(byte[] a_arg);
8746 // bool HtlcKey_eq(const struct LDKHtlcKey *NONNULL_PTR a, const struct LDKHtlcKey *NONNULL_PTR b);
8747 public static native boolean HtlcKey_eq(long a, long b);
8748 // uint64_t HtlcKey_clone_ptr(LDKHtlcKey *NONNULL_PTR arg);
8749 public static native long HtlcKey_clone_ptr(long arg);
8750 // struct LDKHtlcKey HtlcKey_clone(const struct LDKHtlcKey *NONNULL_PTR orig);
8751 public static native long HtlcKey_clone(long orig);
8752 // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_basepoint(const struct LDKHtlcBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point);
8753 public static native long HtlcKey_from_basepoint(long countersignatory_basepoint, byte[] per_commitment_point);
8754 // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_secret_key(const uint8_t (*sk)[32]);
8755 public static native long HtlcKey_from_secret_key(byte[] sk);
8756 // MUST_USE_RES struct LDKPublicKey HtlcKey_to_public_key(const struct LDKHtlcKey *NONNULL_PTR this_arg);
8757 public static native byte[] HtlcKey_to_public_key(long this_arg);
8758 // struct LDKCVec_u8Z HtlcKey_write(const struct LDKHtlcKey *NONNULL_PTR obj);
8759 public static native byte[] HtlcKey_write(long obj);
8760 // struct LDKCResult_HtlcKeyDecodeErrorZ HtlcKey_read(struct LDKu8slice ser);
8761 public static native long HtlcKey_read(byte[] ser);
8762 // struct LDKPublicKey add_public_key_tweak(struct LDKPublicKey base_point, const uint8_t (*tweak)[32]);
8763 public static native byte[] add_public_key_tweak(byte[] base_point, byte[] tweak);
8764 // void RevocationBasepoint_free(struct LDKRevocationBasepoint this_obj);
8765 public static native void RevocationBasepoint_free(long this_obj);
8766 // struct LDKPublicKey RevocationBasepoint_get_a(const struct LDKRevocationBasepoint *NONNULL_PTR this_ptr);
8767 public static native byte[] RevocationBasepoint_get_a(long this_ptr);
8768 // void RevocationBasepoint_set_a(struct LDKRevocationBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8769 public static native void RevocationBasepoint_set_a(long this_ptr, byte[] val);
8770 // MUST_USE_RES struct LDKRevocationBasepoint RevocationBasepoint_new(struct LDKPublicKey a_arg);
8771 public static native long RevocationBasepoint_new(byte[] a_arg);
8772 // bool RevocationBasepoint_eq(const struct LDKRevocationBasepoint *NONNULL_PTR a, const struct LDKRevocationBasepoint *NONNULL_PTR b);
8773 public static native boolean RevocationBasepoint_eq(long a, long b);
8774 // uint64_t RevocationBasepoint_clone_ptr(LDKRevocationBasepoint *NONNULL_PTR arg);
8775 public static native long RevocationBasepoint_clone_ptr(long arg);
8776 // struct LDKRevocationBasepoint RevocationBasepoint_clone(const struct LDKRevocationBasepoint *NONNULL_PTR orig);
8777 public static native long RevocationBasepoint_clone(long orig);
8778 // uint64_t RevocationBasepoint_hash(const struct LDKRevocationBasepoint *NONNULL_PTR o);
8779 public static native long RevocationBasepoint_hash(long o);
8780 // MUST_USE_RES struct LDKPublicKey RevocationBasepoint_to_public_key(const struct LDKRevocationBasepoint *NONNULL_PTR this_arg);
8781 public static native byte[] RevocationBasepoint_to_public_key(long this_arg);
8782 // struct LDKCVec_u8Z RevocationBasepoint_write(const struct LDKRevocationBasepoint *NONNULL_PTR obj);
8783 public static native byte[] RevocationBasepoint_write(long obj);
8784 // struct LDKCResult_RevocationBasepointDecodeErrorZ RevocationBasepoint_read(struct LDKu8slice ser);
8785 public static native long RevocationBasepoint_read(byte[] ser);
8786 // void RevocationKey_free(struct LDKRevocationKey this_obj);
8787 public static native void RevocationKey_free(long this_obj);
8788 // struct LDKPublicKey RevocationKey_get_a(const struct LDKRevocationKey *NONNULL_PTR this_ptr);
8789 public static native byte[] RevocationKey_get_a(long this_ptr);
8790 // void RevocationKey_set_a(struct LDKRevocationKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8791 public static native void RevocationKey_set_a(long this_ptr, byte[] val);
8792 // MUST_USE_RES struct LDKRevocationKey RevocationKey_new(struct LDKPublicKey a_arg);
8793 public static native long RevocationKey_new(byte[] a_arg);
8794 // bool RevocationKey_eq(const struct LDKRevocationKey *NONNULL_PTR a, const struct LDKRevocationKey *NONNULL_PTR b);
8795 public static native boolean RevocationKey_eq(long a, long b);
8796 // uint64_t RevocationKey_clone_ptr(LDKRevocationKey *NONNULL_PTR arg);
8797 public static native long RevocationKey_clone_ptr(long arg);
8798 // struct LDKRevocationKey RevocationKey_clone(const struct LDKRevocationKey *NONNULL_PTR orig);
8799 public static native long RevocationKey_clone(long orig);
8800 // uint64_t RevocationKey_hash(const struct LDKRevocationKey *NONNULL_PTR o);
8801 public static native long RevocationKey_hash(long o);
8802 // MUST_USE_RES struct LDKRevocationKey RevocationKey_from_basepoint(const struct LDKRevocationBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point);
8803 public static native long RevocationKey_from_basepoint(long countersignatory_basepoint, byte[] per_commitment_point);
8804 // MUST_USE_RES struct LDKPublicKey RevocationKey_to_public_key(const struct LDKRevocationKey *NONNULL_PTR this_arg);
8805 public static native byte[] RevocationKey_to_public_key(long this_arg);
8806 // struct LDKCVec_u8Z RevocationKey_write(const struct LDKRevocationKey *NONNULL_PTR obj);
8807 public static native byte[] RevocationKey_write(long obj);
8808 // struct LDKCResult_RevocationKeyDecodeErrorZ RevocationKey_read(struct LDKu8slice ser);
8809 public static native long RevocationKey_read(byte[] ser);
8810 // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_clone(const enum LDKInboundHTLCStateDetails *NONNULL_PTR orig);
8811 public static native InboundHTLCStateDetails InboundHTLCStateDetails_clone(long orig);
8812 // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_add(void);
8813 public static native InboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_add();
8814 // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_committed(void);
8815 public static native InboundHTLCStateDetails InboundHTLCStateDetails_committed();
8816 // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fulfill(void);
8817 public static native InboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fulfill();
8818 // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fail(void);
8819 public static native InboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fail();
8820 // struct LDKCVec_u8Z InboundHTLCStateDetails_write(const enum LDKInboundHTLCStateDetails *NONNULL_PTR obj);
8821 public static native byte[] InboundHTLCStateDetails_write(long obj);
8822 // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ InboundHTLCStateDetails_read(struct LDKu8slice ser);
8823 public static native long InboundHTLCStateDetails_read(byte[] ser);
8824 // void InboundHTLCDetails_free(struct LDKInboundHTLCDetails this_obj);
8825 public static native void InboundHTLCDetails_free(long this_obj);
8826 // uint64_t InboundHTLCDetails_get_htlc_id(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr);
8827 public static native long InboundHTLCDetails_get_htlc_id(long this_ptr);
8828 // void InboundHTLCDetails_set_htlc_id(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, uint64_t val);
8829 public static native void InboundHTLCDetails_set_htlc_id(long this_ptr, long val);
8830 // uint64_t InboundHTLCDetails_get_amount_msat(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr);
8831 public static native long InboundHTLCDetails_get_amount_msat(long this_ptr);
8832 // void InboundHTLCDetails_set_amount_msat(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, uint64_t val);
8833 public static native void InboundHTLCDetails_set_amount_msat(long this_ptr, long val);
8834 // uint32_t InboundHTLCDetails_get_cltv_expiry(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr);
8835 public static native int InboundHTLCDetails_get_cltv_expiry(long this_ptr);
8836 // void InboundHTLCDetails_set_cltv_expiry(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, uint32_t val);
8837 public static native void InboundHTLCDetails_set_cltv_expiry(long this_ptr, int val);
8838 // const uint8_t (*InboundHTLCDetails_get_payment_hash(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr))[32];
8839 public static native byte[] InboundHTLCDetails_get_payment_hash(long this_ptr);
8840 // void InboundHTLCDetails_set_payment_hash(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8841 public static native void InboundHTLCDetails_set_payment_hash(long this_ptr, byte[] val);
8842 // struct LDKCOption_InboundHTLCStateDetailsZ InboundHTLCDetails_get_state(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr);
8843 public static native long InboundHTLCDetails_get_state(long this_ptr);
8844 // void InboundHTLCDetails_set_state(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_InboundHTLCStateDetailsZ val);
8845 public static native void InboundHTLCDetails_set_state(long this_ptr, long val);
8846 // bool InboundHTLCDetails_get_is_dust(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr);
8847 public static native boolean InboundHTLCDetails_get_is_dust(long this_ptr);
8848 // void InboundHTLCDetails_set_is_dust(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, bool val);
8849 public static native void InboundHTLCDetails_set_is_dust(long this_ptr, boolean val);
8850 // MUST_USE_RES struct LDKInboundHTLCDetails InboundHTLCDetails_new(uint64_t htlc_id_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_InboundHTLCStateDetailsZ state_arg, bool is_dust_arg);
8851 public static native long InboundHTLCDetails_new(long htlc_id_arg, long amount_msat_arg, int cltv_expiry_arg, byte[] payment_hash_arg, long state_arg, boolean is_dust_arg);
8852 // uint64_t InboundHTLCDetails_clone_ptr(LDKInboundHTLCDetails *NONNULL_PTR arg);
8853 public static native long InboundHTLCDetails_clone_ptr(long arg);
8854 // struct LDKInboundHTLCDetails InboundHTLCDetails_clone(const struct LDKInboundHTLCDetails *NONNULL_PTR orig);
8855 public static native long InboundHTLCDetails_clone(long orig);
8856 // struct LDKCVec_u8Z InboundHTLCDetails_write(const struct LDKInboundHTLCDetails *NONNULL_PTR obj);
8857 public static native byte[] InboundHTLCDetails_write(long obj);
8858 // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ InboundHTLCDetails_read(struct LDKu8slice ser);
8859 public static native long InboundHTLCDetails_read(byte[] ser);
8860 // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_clone(const enum LDKOutboundHTLCStateDetails *NONNULL_PTR orig);
8861 public static native OutboundHTLCStateDetails OutboundHTLCStateDetails_clone(long orig);
8862 // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_add(void);
8863 public static native OutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_add();
8864 // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_committed(void);
8865 public static native OutboundHTLCStateDetails OutboundHTLCStateDetails_committed();
8866 // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_success(void);
8867 public static native OutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_success();
8868 // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_failure(void);
8869 public static native OutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_failure();
8870 // struct LDKCVec_u8Z OutboundHTLCStateDetails_write(const enum LDKOutboundHTLCStateDetails *NONNULL_PTR obj);
8871 public static native byte[] OutboundHTLCStateDetails_write(long obj);
8872 // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ OutboundHTLCStateDetails_read(struct LDKu8slice ser);
8873 public static native long OutboundHTLCStateDetails_read(byte[] ser);
8874 // void OutboundHTLCDetails_free(struct LDKOutboundHTLCDetails this_obj);
8875 public static native void OutboundHTLCDetails_free(long this_obj);
8876 // struct LDKCOption_u64Z OutboundHTLCDetails_get_htlc_id(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr);
8877 public static native long OutboundHTLCDetails_get_htlc_id(long this_ptr);
8878 // void OutboundHTLCDetails_set_htlc_id(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8879 public static native void OutboundHTLCDetails_set_htlc_id(long this_ptr, long val);
8880 // uint64_t OutboundHTLCDetails_get_amount_msat(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr);
8881 public static native long OutboundHTLCDetails_get_amount_msat(long this_ptr);
8882 // void OutboundHTLCDetails_set_amount_msat(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, uint64_t val);
8883 public static native void OutboundHTLCDetails_set_amount_msat(long this_ptr, long val);
8884 // uint32_t OutboundHTLCDetails_get_cltv_expiry(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr);
8885 public static native int OutboundHTLCDetails_get_cltv_expiry(long this_ptr);
8886 // void OutboundHTLCDetails_set_cltv_expiry(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, uint32_t val);
8887 public static native void OutboundHTLCDetails_set_cltv_expiry(long this_ptr, int val);
8888 // const uint8_t (*OutboundHTLCDetails_get_payment_hash(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr))[32];
8889 public static native byte[] OutboundHTLCDetails_get_payment_hash(long this_ptr);
8890 // void OutboundHTLCDetails_set_payment_hash(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8891 public static native void OutboundHTLCDetails_set_payment_hash(long this_ptr, byte[] val);
8892 // struct LDKCOption_OutboundHTLCStateDetailsZ OutboundHTLCDetails_get_state(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr);
8893 public static native long OutboundHTLCDetails_get_state(long this_ptr);
8894 // void OutboundHTLCDetails_set_state(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_OutboundHTLCStateDetailsZ val);
8895 public static native void OutboundHTLCDetails_set_state(long this_ptr, long val);
8896 // struct LDKCOption_u64Z OutboundHTLCDetails_get_skimmed_fee_msat(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr);
8897 public static native long OutboundHTLCDetails_get_skimmed_fee_msat(long this_ptr);
8898 // void OutboundHTLCDetails_set_skimmed_fee_msat(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8899 public static native void OutboundHTLCDetails_set_skimmed_fee_msat(long this_ptr, long val);
8900 // bool OutboundHTLCDetails_get_is_dust(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr);
8901 public static native boolean OutboundHTLCDetails_get_is_dust(long this_ptr);
8902 // void OutboundHTLCDetails_set_is_dust(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, bool val);
8903 public static native void OutboundHTLCDetails_set_is_dust(long this_ptr, boolean val);
8904 // MUST_USE_RES struct LDKOutboundHTLCDetails OutboundHTLCDetails_new(struct LDKCOption_u64Z htlc_id_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_OutboundHTLCStateDetailsZ state_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg, bool is_dust_arg);
8905 public static native long OutboundHTLCDetails_new(long htlc_id_arg, long amount_msat_arg, int cltv_expiry_arg, byte[] payment_hash_arg, long state_arg, long skimmed_fee_msat_arg, boolean is_dust_arg);
8906 // uint64_t OutboundHTLCDetails_clone_ptr(LDKOutboundHTLCDetails *NONNULL_PTR arg);
8907 public static native long OutboundHTLCDetails_clone_ptr(long arg);
8908 // struct LDKOutboundHTLCDetails OutboundHTLCDetails_clone(const struct LDKOutboundHTLCDetails *NONNULL_PTR orig);
8909 public static native long OutboundHTLCDetails_clone(long orig);
8910 // struct LDKCVec_u8Z OutboundHTLCDetails_write(const struct LDKOutboundHTLCDetails *NONNULL_PTR obj);
8911 public static native byte[] OutboundHTLCDetails_write(long obj);
8912 // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ OutboundHTLCDetails_read(struct LDKu8slice ser);
8913 public static native long OutboundHTLCDetails_read(byte[] ser);
8914 // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
8915 public static native void CounterpartyForwardingInfo_free(long this_obj);
8916 // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
8917 public static native int CounterpartyForwardingInfo_get_fee_base_msat(long this_ptr);
8918 // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
8919 public static native void CounterpartyForwardingInfo_set_fee_base_msat(long this_ptr, int val);
8920 // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
8921 public static native int CounterpartyForwardingInfo_get_fee_proportional_millionths(long this_ptr);
8922 // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
8923 public static native void CounterpartyForwardingInfo_set_fee_proportional_millionths(long this_ptr, int val);
8924 // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
8925 public static native short CounterpartyForwardingInfo_get_cltv_expiry_delta(long this_ptr);
8926 // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
8927 public static native void CounterpartyForwardingInfo_set_cltv_expiry_delta(long this_ptr, short val);
8928 // 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);
8929 public static native long CounterpartyForwardingInfo_new(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg);
8930 // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
8931 public static native long CounterpartyForwardingInfo_clone_ptr(long arg);
8932 // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
8933 public static native long CounterpartyForwardingInfo_clone(long orig);
8934 // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
8935 public static native byte[] CounterpartyForwardingInfo_write(long obj);
8936 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
8937 public static native long CounterpartyForwardingInfo_read(byte[] ser);
8938 // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
8939 public static native void ChannelCounterparty_free(long this_obj);
8940 // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
8941 public static native byte[] ChannelCounterparty_get_node_id(long this_ptr);
8942 // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8943 public static native void ChannelCounterparty_set_node_id(long this_ptr, byte[] val);
8944 // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
8945 public static native long ChannelCounterparty_get_features(long this_ptr);
8946 // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
8947 public static native void ChannelCounterparty_set_features(long this_ptr, long val);
8948 // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
8949 public static native long ChannelCounterparty_get_unspendable_punishment_reserve(long this_ptr);
8950 // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
8951 public static native void ChannelCounterparty_set_unspendable_punishment_reserve(long this_ptr, long val);
8952 // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
8953 public static native long ChannelCounterparty_get_forwarding_info(long this_ptr);
8954 // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
8955 public static native void ChannelCounterparty_set_forwarding_info(long this_ptr, long val);
8956 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
8957 public static native long ChannelCounterparty_get_outbound_htlc_minimum_msat(long this_ptr);
8958 // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8959 public static native void ChannelCounterparty_set_outbound_htlc_minimum_msat(long this_ptr, long val);
8960 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
8961 public static native long ChannelCounterparty_get_outbound_htlc_maximum_msat(long this_ptr);
8962 // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8963 public static native void ChannelCounterparty_set_outbound_htlc_maximum_msat(long this_ptr, long val);
8964 // 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);
8965 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);
8966 // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
8967 public static native long ChannelCounterparty_clone_ptr(long arg);
8968 // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
8969 public static native long ChannelCounterparty_clone(long orig);
8970 // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
8971 public static native byte[] ChannelCounterparty_write(long obj);
8972 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
8973 public static native long ChannelCounterparty_read(byte[] ser);
8974 // void ChannelDetails_free(struct LDKChannelDetails this_obj);
8975 public static native void ChannelDetails_free(long this_obj);
8976 // struct LDKChannelId ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
8977 public static native long ChannelDetails_get_channel_id(long this_ptr);
8978 // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelId val);
8979 public static native void ChannelDetails_set_channel_id(long this_ptr, long val);
8980 // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
8981 public static native long ChannelDetails_get_counterparty(long this_ptr);
8982 // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
8983 public static native void ChannelDetails_set_counterparty(long this_ptr, long val);
8984 // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
8985 public static native long ChannelDetails_get_funding_txo(long this_ptr);
8986 // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
8987 public static native void ChannelDetails_set_funding_txo(long this_ptr, long val);
8988 // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
8989 public static native long ChannelDetails_get_channel_type(long this_ptr);
8990 // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
8991 public static native void ChannelDetails_set_channel_type(long this_ptr, long val);
8992 // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
8993 public static native long ChannelDetails_get_short_channel_id(long this_ptr);
8994 // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8995 public static native void ChannelDetails_set_short_channel_id(long this_ptr, long val);
8996 // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
8997 public static native long ChannelDetails_get_outbound_scid_alias(long this_ptr);
8998 // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8999 public static native void ChannelDetails_set_outbound_scid_alias(long this_ptr, long val);
9000 // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9001 public static native long ChannelDetails_get_inbound_scid_alias(long this_ptr);
9002 // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
9003 public static native void ChannelDetails_set_inbound_scid_alias(long this_ptr, long val);
9004 // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9005 public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
9006 // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
9007 public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
9008 // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9009 public static native long ChannelDetails_get_unspendable_punishment_reserve(long this_ptr);
9010 // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
9011 public static native void ChannelDetails_set_unspendable_punishment_reserve(long this_ptr, long val);
9012 // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9013 public static native byte[] ChannelDetails_get_user_channel_id(long this_ptr);
9014 // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val);
9015 public static native void ChannelDetails_set_user_channel_id(long this_ptr, byte[] val);
9016 // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9017 public static native long ChannelDetails_get_feerate_sat_per_1000_weight(long this_ptr);
9018 // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
9019 public static native void ChannelDetails_set_feerate_sat_per_1000_weight(long this_ptr, long val);
9020 // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9021 public static native long ChannelDetails_get_balance_msat(long this_ptr);
9022 // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
9023 public static native void ChannelDetails_set_balance_msat(long this_ptr, long val);
9024 // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9025 public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
9026 // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
9027 public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
9028 // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9029 public static native long ChannelDetails_get_next_outbound_htlc_limit_msat(long this_ptr);
9030 // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
9031 public static native void ChannelDetails_set_next_outbound_htlc_limit_msat(long this_ptr, long val);
9032 // uint64_t ChannelDetails_get_next_outbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9033 public static native long ChannelDetails_get_next_outbound_htlc_minimum_msat(long this_ptr);
9034 // void ChannelDetails_set_next_outbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
9035 public static native void ChannelDetails_set_next_outbound_htlc_minimum_msat(long this_ptr, long val);
9036 // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9037 public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
9038 // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
9039 public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
9040 // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9041 public static native long ChannelDetails_get_confirmations_required(long this_ptr);
9042 // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
9043 public static native void ChannelDetails_set_confirmations_required(long this_ptr, long val);
9044 // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9045 public static native long ChannelDetails_get_confirmations(long this_ptr);
9046 // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
9047 public static native void ChannelDetails_set_confirmations(long this_ptr, long val);
9048 // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9049 public static native long ChannelDetails_get_force_close_spend_delay(long this_ptr);
9050 // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
9051 public static native void ChannelDetails_set_force_close_spend_delay(long this_ptr, long val);
9052 // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9053 public static native boolean ChannelDetails_get_is_outbound(long this_ptr);
9054 // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
9055 public static native void ChannelDetails_set_is_outbound(long this_ptr, boolean val);
9056 // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9057 public static native boolean ChannelDetails_get_is_channel_ready(long this_ptr);
9058 // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
9059 public static native void ChannelDetails_set_is_channel_ready(long this_ptr, boolean val);
9060 // struct LDKCOption_ChannelShutdownStateZ ChannelDetails_get_channel_shutdown_state(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9061 public static native long ChannelDetails_get_channel_shutdown_state(long this_ptr);
9062 // void ChannelDetails_set_channel_shutdown_state(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_ChannelShutdownStateZ val);
9063 public static native void ChannelDetails_set_channel_shutdown_state(long this_ptr, long val);
9064 // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9065 public static native boolean ChannelDetails_get_is_usable(long this_ptr);
9066 // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
9067 public static native void ChannelDetails_set_is_usable(long this_ptr, boolean val);
9068 // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9069 public static native boolean ChannelDetails_get_is_public(long this_ptr);
9070 // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
9071 public static native void ChannelDetails_set_is_public(long this_ptr, boolean val);
9072 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9073 public static native long ChannelDetails_get_inbound_htlc_minimum_msat(long this_ptr);
9074 // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
9075 public static native void ChannelDetails_set_inbound_htlc_minimum_msat(long this_ptr, long val);
9076 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9077 public static native long ChannelDetails_get_inbound_htlc_maximum_msat(long this_ptr);
9078 // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
9079 public static native void ChannelDetails_set_inbound_htlc_maximum_msat(long this_ptr, long val);
9080 // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9081 public static native long ChannelDetails_get_config(long this_ptr);
9082 // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
9083 public static native void ChannelDetails_set_config(long this_ptr, long val);
9084 // struct LDKCVec_InboundHTLCDetailsZ ChannelDetails_get_pending_inbound_htlcs(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9085 public static native long[] ChannelDetails_get_pending_inbound_htlcs(long this_ptr);
9086 // void ChannelDetails_set_pending_inbound_htlcs(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCVec_InboundHTLCDetailsZ val);
9087 public static native void ChannelDetails_set_pending_inbound_htlcs(long this_ptr, long[] val);
9088 // struct LDKCVec_OutboundHTLCDetailsZ ChannelDetails_get_pending_outbound_htlcs(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
9089 public static native long[] ChannelDetails_get_pending_outbound_htlcs(long this_ptr);
9090 // void ChannelDetails_set_pending_outbound_htlcs(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCVec_OutboundHTLCDetailsZ val);
9091 public static native void ChannelDetails_set_pending_outbound_htlcs(long this_ptr, long[] val);
9092 // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKChannelId 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, struct LDKCVec_InboundHTLCDetailsZ pending_inbound_htlcs_arg, struct LDKCVec_OutboundHTLCDetailsZ pending_outbound_htlcs_arg);
9093 public static native long ChannelDetails_new(long 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, long[] pending_inbound_htlcs_arg, long[] pending_outbound_htlcs_arg);
9094 // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
9095 public static native long ChannelDetails_clone_ptr(long arg);
9096 // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
9097 public static native long ChannelDetails_clone(long orig);
9098 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
9099 public static native long ChannelDetails_get_inbound_payment_scid(long this_arg);
9100 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
9101 public static native long ChannelDetails_get_outbound_payment_scid(long this_arg);
9102 // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
9103 public static native byte[] ChannelDetails_write(long obj);
9104 // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
9105 public static native long ChannelDetails_read(byte[] ser);
9106 // enum LDKChannelShutdownState ChannelShutdownState_clone(const enum LDKChannelShutdownState *NONNULL_PTR orig);
9107 public static native ChannelShutdownState ChannelShutdownState_clone(long orig);
9108 // enum LDKChannelShutdownState ChannelShutdownState_not_shutting_down(void);
9109 public static native ChannelShutdownState ChannelShutdownState_not_shutting_down();
9110 // enum LDKChannelShutdownState ChannelShutdownState_shutdown_initiated(void);
9111 public static native ChannelShutdownState ChannelShutdownState_shutdown_initiated();
9112 // enum LDKChannelShutdownState ChannelShutdownState_resolving_htlcs(void);
9113 public static native ChannelShutdownState ChannelShutdownState_resolving_htlcs();
9114 // enum LDKChannelShutdownState ChannelShutdownState_negotiating_closing_fee(void);
9115 public static native ChannelShutdownState ChannelShutdownState_negotiating_closing_fee();
9116 // enum LDKChannelShutdownState ChannelShutdownState_shutdown_complete(void);
9117 public static native ChannelShutdownState ChannelShutdownState_shutdown_complete();
9118 // bool ChannelShutdownState_eq(const enum LDKChannelShutdownState *NONNULL_PTR a, const enum LDKChannelShutdownState *NONNULL_PTR b);
9119 public static native boolean ChannelShutdownState_eq(long a, long b);
9120 // struct LDKCVec_u8Z ChannelShutdownState_write(const enum LDKChannelShutdownState *NONNULL_PTR obj);
9121 public static native byte[] ChannelShutdownState_write(long obj);
9122 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ ChannelShutdownState_read(struct LDKu8slice ser);
9123 public static native long ChannelShutdownState_read(byte[] ser);
9124 // void ExpandedKey_free(struct LDKExpandedKey this_obj);
9125 public static native void ExpandedKey_free(long this_obj);
9126 // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
9127 public static native long ExpandedKey_new(byte[] key_material);
9128 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
9129 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);
9130 // struct LDKCResult_ThirtyTwoBytesNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
9131 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);
9132 // void DecodeError_free(struct LDKDecodeError this_ptr);
9133 public static native void DecodeError_free(long this_ptr);
9134 // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
9135 public static native long DecodeError_clone_ptr(long arg);
9136 // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
9137 public static native long DecodeError_clone(long orig);
9138 // struct LDKDecodeError DecodeError_unknown_version(void);
9139 public static native long DecodeError_unknown_version();
9140 // struct LDKDecodeError DecodeError_unknown_required_feature(void);
9141 public static native long DecodeError_unknown_required_feature();
9142 // struct LDKDecodeError DecodeError_invalid_value(void);
9143 public static native long DecodeError_invalid_value();
9144 // struct LDKDecodeError DecodeError_short_read(void);
9145 public static native long DecodeError_short_read();
9146 // struct LDKDecodeError DecodeError_bad_length_descriptor(void);
9147 public static native long DecodeError_bad_length_descriptor();
9148 // struct LDKDecodeError DecodeError_io(enum LDKIOError a);
9149 public static native long DecodeError_io(IOError a);
9150 // struct LDKDecodeError DecodeError_unsupported_compression(void);
9151 public static native long DecodeError_unsupported_compression();
9152 // struct LDKDecodeError DecodeError_dangerous_value(void);
9153 public static native long DecodeError_dangerous_value();
9154 // uint64_t DecodeError_hash(const struct LDKDecodeError *NONNULL_PTR o);
9155 public static native long DecodeError_hash(long o);
9156 // bool DecodeError_eq(const struct LDKDecodeError *NONNULL_PTR a, const struct LDKDecodeError *NONNULL_PTR b);
9157 public static native boolean DecodeError_eq(long a, long b);
9158 // void Init_free(struct LDKInit this_obj);
9159 public static native void Init_free(long this_obj);
9160 // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
9161 public static native long Init_get_features(long this_ptr);
9162 // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
9163 public static native void Init_set_features(long this_ptr, long val);
9164 // struct LDKCOption_CVec_ThirtyTwoBytesZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr);
9165 public static native long Init_get_networks(long this_ptr);
9166 // void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ThirtyTwoBytesZZ val);
9167 public static native void Init_set_networks(long this_ptr, long val);
9168 // struct LDKCOption_SocketAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
9169 public static native long Init_get_remote_network_address(long this_ptr);
9170 // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val);
9171 public static native void Init_set_remote_network_address(long this_ptr, long val);
9172 // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ThirtyTwoBytesZZ networks_arg, struct LDKCOption_SocketAddressZ remote_network_address_arg);
9173 public static native long Init_new(long features_arg, long networks_arg, long remote_network_address_arg);
9174 // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
9175 public static native long Init_clone_ptr(long arg);
9176 // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
9177 public static native long Init_clone(long orig);
9178 // uint64_t Init_hash(const struct LDKInit *NONNULL_PTR o);
9179 public static native long Init_hash(long o);
9180 // bool Init_eq(const struct LDKInit *NONNULL_PTR a, const struct LDKInit *NONNULL_PTR b);
9181 public static native boolean Init_eq(long a, long b);
9182 // void ErrorMessage_free(struct LDKErrorMessage this_obj);
9183 public static native void ErrorMessage_free(long this_obj);
9184 // struct LDKChannelId ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
9185 public static native long ErrorMessage_get_channel_id(long this_ptr);
9186 // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKChannelId val);
9187 public static native void ErrorMessage_set_channel_id(long this_ptr, long val);
9188 // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
9189 public static native String ErrorMessage_get_data(long this_ptr);
9190 // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
9191 public static native void ErrorMessage_set_data(long this_ptr, String val);
9192 // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKChannelId channel_id_arg, struct LDKStr data_arg);
9193 public static native long ErrorMessage_new(long channel_id_arg, String data_arg);
9194 // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
9195 public static native long ErrorMessage_clone_ptr(long arg);
9196 // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
9197 public static native long ErrorMessage_clone(long orig);
9198 // uint64_t ErrorMessage_hash(const struct LDKErrorMessage *NONNULL_PTR o);
9199 public static native long ErrorMessage_hash(long o);
9200 // bool ErrorMessage_eq(const struct LDKErrorMessage *NONNULL_PTR a, const struct LDKErrorMessage *NONNULL_PTR b);
9201 public static native boolean ErrorMessage_eq(long a, long b);
9202 // void WarningMessage_free(struct LDKWarningMessage this_obj);
9203 public static native void WarningMessage_free(long this_obj);
9204 // struct LDKChannelId WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
9205 public static native long WarningMessage_get_channel_id(long this_ptr);
9206 // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKChannelId val);
9207 public static native void WarningMessage_set_channel_id(long this_ptr, long val);
9208 // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
9209 public static native String WarningMessage_get_data(long this_ptr);
9210 // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
9211 public static native void WarningMessage_set_data(long this_ptr, String val);
9212 // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKChannelId channel_id_arg, struct LDKStr data_arg);
9213 public static native long WarningMessage_new(long channel_id_arg, String data_arg);
9214 // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
9215 public static native long WarningMessage_clone_ptr(long arg);
9216 // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
9217 public static native long WarningMessage_clone(long orig);
9218 // uint64_t WarningMessage_hash(const struct LDKWarningMessage *NONNULL_PTR o);
9219 public static native long WarningMessage_hash(long o);
9220 // bool WarningMessage_eq(const struct LDKWarningMessage *NONNULL_PTR a, const struct LDKWarningMessage *NONNULL_PTR b);
9221 public static native boolean WarningMessage_eq(long a, long b);
9222 // void Ping_free(struct LDKPing this_obj);
9223 public static native void Ping_free(long this_obj);
9224 // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
9225 public static native short Ping_get_ponglen(long this_ptr);
9226 // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
9227 public static native void Ping_set_ponglen(long this_ptr, short val);
9228 // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
9229 public static native short Ping_get_byteslen(long this_ptr);
9230 // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
9231 public static native void Ping_set_byteslen(long this_ptr, short val);
9232 // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
9233 public static native long Ping_new(short ponglen_arg, short byteslen_arg);
9234 // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
9235 public static native long Ping_clone_ptr(long arg);
9236 // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
9237 public static native long Ping_clone(long orig);
9238 // uint64_t Ping_hash(const struct LDKPing *NONNULL_PTR o);
9239 public static native long Ping_hash(long o);
9240 // bool Ping_eq(const struct LDKPing *NONNULL_PTR a, const struct LDKPing *NONNULL_PTR b);
9241 public static native boolean Ping_eq(long a, long b);
9242 // void Pong_free(struct LDKPong this_obj);
9243 public static native void Pong_free(long this_obj);
9244 // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
9245 public static native short Pong_get_byteslen(long this_ptr);
9246 // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
9247 public static native void Pong_set_byteslen(long this_ptr, short val);
9248 // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
9249 public static native long Pong_new(short byteslen_arg);
9250 // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
9251 public static native long Pong_clone_ptr(long arg);
9252 // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
9253 public static native long Pong_clone(long orig);
9254 // uint64_t Pong_hash(const struct LDKPong *NONNULL_PTR o);
9255 public static native long Pong_hash(long o);
9256 // bool Pong_eq(const struct LDKPong *NONNULL_PTR a, const struct LDKPong *NONNULL_PTR b);
9257 public static native boolean Pong_eq(long a, long b);
9258 // void CommonOpenChannelFields_free(struct LDKCommonOpenChannelFields this_obj);
9259 public static native void CommonOpenChannelFields_free(long this_obj);
9260 // const uint8_t (*CommonOpenChannelFields_get_chain_hash(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr))[32];
9261 public static native byte[] CommonOpenChannelFields_get_chain_hash(long this_ptr);
9262 // void CommonOpenChannelFields_set_chain_hash(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9263 public static native void CommonOpenChannelFields_set_chain_hash(long this_ptr, byte[] val);
9264 // struct LDKChannelId CommonOpenChannelFields_get_temporary_channel_id(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9265 public static native long CommonOpenChannelFields_get_temporary_channel_id(long this_ptr);
9266 // void CommonOpenChannelFields_set_temporary_channel_id(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKChannelId val);
9267 public static native void CommonOpenChannelFields_set_temporary_channel_id(long this_ptr, long val);
9268 // uint64_t CommonOpenChannelFields_get_funding_satoshis(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9269 public static native long CommonOpenChannelFields_get_funding_satoshis(long this_ptr);
9270 // void CommonOpenChannelFields_set_funding_satoshis(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val);
9271 public static native void CommonOpenChannelFields_set_funding_satoshis(long this_ptr, long val);
9272 // uint64_t CommonOpenChannelFields_get_dust_limit_satoshis(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9273 public static native long CommonOpenChannelFields_get_dust_limit_satoshis(long this_ptr);
9274 // void CommonOpenChannelFields_set_dust_limit_satoshis(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val);
9275 public static native void CommonOpenChannelFields_set_dust_limit_satoshis(long this_ptr, long val);
9276 // uint64_t CommonOpenChannelFields_get_max_htlc_value_in_flight_msat(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9277 public static native long CommonOpenChannelFields_get_max_htlc_value_in_flight_msat(long this_ptr);
9278 // void CommonOpenChannelFields_set_max_htlc_value_in_flight_msat(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val);
9279 public static native void CommonOpenChannelFields_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
9280 // uint64_t CommonOpenChannelFields_get_htlc_minimum_msat(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9281 public static native long CommonOpenChannelFields_get_htlc_minimum_msat(long this_ptr);
9282 // void CommonOpenChannelFields_set_htlc_minimum_msat(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val);
9283 public static native void CommonOpenChannelFields_set_htlc_minimum_msat(long this_ptr, long val);
9284 // uint32_t CommonOpenChannelFields_get_commitment_feerate_sat_per_1000_weight(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9285 public static native int CommonOpenChannelFields_get_commitment_feerate_sat_per_1000_weight(long this_ptr);
9286 // void CommonOpenChannelFields_set_commitment_feerate_sat_per_1000_weight(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint32_t val);
9287 public static native void CommonOpenChannelFields_set_commitment_feerate_sat_per_1000_weight(long this_ptr, int val);
9288 // uint16_t CommonOpenChannelFields_get_to_self_delay(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9289 public static native short CommonOpenChannelFields_get_to_self_delay(long this_ptr);
9290 // void CommonOpenChannelFields_set_to_self_delay(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint16_t val);
9291 public static native void CommonOpenChannelFields_set_to_self_delay(long this_ptr, short val);
9292 // uint16_t CommonOpenChannelFields_get_max_accepted_htlcs(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9293 public static native short CommonOpenChannelFields_get_max_accepted_htlcs(long this_ptr);
9294 // void CommonOpenChannelFields_set_max_accepted_htlcs(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint16_t val);
9295 public static native void CommonOpenChannelFields_set_max_accepted_htlcs(long this_ptr, short val);
9296 // struct LDKPublicKey CommonOpenChannelFields_get_funding_pubkey(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9297 public static native byte[] CommonOpenChannelFields_get_funding_pubkey(long this_ptr);
9298 // void CommonOpenChannelFields_set_funding_pubkey(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9299 public static native void CommonOpenChannelFields_set_funding_pubkey(long this_ptr, byte[] val);
9300 // struct LDKPublicKey CommonOpenChannelFields_get_revocation_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9301 public static native byte[] CommonOpenChannelFields_get_revocation_basepoint(long this_ptr);
9302 // void CommonOpenChannelFields_set_revocation_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9303 public static native void CommonOpenChannelFields_set_revocation_basepoint(long this_ptr, byte[] val);
9304 // struct LDKPublicKey CommonOpenChannelFields_get_payment_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9305 public static native byte[] CommonOpenChannelFields_get_payment_basepoint(long this_ptr);
9306 // void CommonOpenChannelFields_set_payment_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9307 public static native void CommonOpenChannelFields_set_payment_basepoint(long this_ptr, byte[] val);
9308 // struct LDKPublicKey CommonOpenChannelFields_get_delayed_payment_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9309 public static native byte[] CommonOpenChannelFields_get_delayed_payment_basepoint(long this_ptr);
9310 // void CommonOpenChannelFields_set_delayed_payment_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9311 public static native void CommonOpenChannelFields_set_delayed_payment_basepoint(long this_ptr, byte[] val);
9312 // struct LDKPublicKey CommonOpenChannelFields_get_htlc_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9313 public static native byte[] CommonOpenChannelFields_get_htlc_basepoint(long this_ptr);
9314 // void CommonOpenChannelFields_set_htlc_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9315 public static native void CommonOpenChannelFields_set_htlc_basepoint(long this_ptr, byte[] val);
9316 // struct LDKPublicKey CommonOpenChannelFields_get_first_per_commitment_point(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9317 public static native byte[] CommonOpenChannelFields_get_first_per_commitment_point(long this_ptr);
9318 // void CommonOpenChannelFields_set_first_per_commitment_point(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9319 public static native void CommonOpenChannelFields_set_first_per_commitment_point(long this_ptr, byte[] val);
9320 // uint8_t CommonOpenChannelFields_get_channel_flags(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9321 public static native byte CommonOpenChannelFields_get_channel_flags(long this_ptr);
9322 // void CommonOpenChannelFields_set_channel_flags(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint8_t val);
9323 public static native void CommonOpenChannelFields_set_channel_flags(long this_ptr, byte val);
9324 // struct LDKCOption_CVec_u8ZZ CommonOpenChannelFields_get_shutdown_scriptpubkey(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9325 public static native long CommonOpenChannelFields_get_shutdown_scriptpubkey(long this_ptr);
9326 // void CommonOpenChannelFields_set_shutdown_scriptpubkey(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
9327 public static native void CommonOpenChannelFields_set_shutdown_scriptpubkey(long this_ptr, long val);
9328 // struct LDKChannelTypeFeatures CommonOpenChannelFields_get_channel_type(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr);
9329 public static native long CommonOpenChannelFields_get_channel_type(long this_ptr);
9330 // void CommonOpenChannelFields_set_channel_type(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
9331 public static native void CommonOpenChannelFields_set_channel_type(long this_ptr, long val);
9332 // MUST_USE_RES struct LDKCommonOpenChannelFields CommonOpenChannelFields_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKChannelId 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 commitment_feerate_sat_per_1000_weight_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, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
9333 public static native long CommonOpenChannelFields_new(byte[] chain_hash_arg, long 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 commitment_feerate_sat_per_1000_weight_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 channel_flags_arg, long shutdown_scriptpubkey_arg, long channel_type_arg);
9334 // uint64_t CommonOpenChannelFields_clone_ptr(LDKCommonOpenChannelFields *NONNULL_PTR arg);
9335 public static native long CommonOpenChannelFields_clone_ptr(long arg);
9336 // struct LDKCommonOpenChannelFields CommonOpenChannelFields_clone(const struct LDKCommonOpenChannelFields *NONNULL_PTR orig);
9337 public static native long CommonOpenChannelFields_clone(long orig);
9338 // uint64_t CommonOpenChannelFields_hash(const struct LDKCommonOpenChannelFields *NONNULL_PTR o);
9339 public static native long CommonOpenChannelFields_hash(long o);
9340 // bool CommonOpenChannelFields_eq(const struct LDKCommonOpenChannelFields *NONNULL_PTR a, const struct LDKCommonOpenChannelFields *NONNULL_PTR b);
9341 public static native boolean CommonOpenChannelFields_eq(long a, long b);
9342 // void OpenChannel_free(struct LDKOpenChannel this_obj);
9343 public static native void OpenChannel_free(long this_obj);
9344 // struct LDKCommonOpenChannelFields OpenChannel_get_common_fields(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
9345 public static native long OpenChannel_get_common_fields(long this_ptr);
9346 // void OpenChannel_set_common_fields(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCommonOpenChannelFields val);
9347 public static native void OpenChannel_set_common_fields(long this_ptr, long val);
9348 // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
9349 public static native long OpenChannel_get_push_msat(long this_ptr);
9350 // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
9351 public static native void OpenChannel_set_push_msat(long this_ptr, long val);
9352 // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
9353 public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
9354 // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
9355 public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
9356 // MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKCommonOpenChannelFields common_fields_arg, uint64_t push_msat_arg, uint64_t channel_reserve_satoshis_arg);
9357 public static native long OpenChannel_new(long common_fields_arg, long push_msat_arg, long channel_reserve_satoshis_arg);
9358 // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
9359 public static native long OpenChannel_clone_ptr(long arg);
9360 // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
9361 public static native long OpenChannel_clone(long orig);
9362 // uint64_t OpenChannel_hash(const struct LDKOpenChannel *NONNULL_PTR o);
9363 public static native long OpenChannel_hash(long o);
9364 // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b);
9365 public static native boolean OpenChannel_eq(long a, long b);
9366 // void OpenChannelV2_free(struct LDKOpenChannelV2 this_obj);
9367 public static native void OpenChannelV2_free(long this_obj);
9368 // struct LDKCommonOpenChannelFields OpenChannelV2_get_common_fields(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
9369 public static native long OpenChannelV2_get_common_fields(long this_ptr);
9370 // void OpenChannelV2_set_common_fields(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCommonOpenChannelFields val);
9371 public static native void OpenChannelV2_set_common_fields(long this_ptr, long val);
9372 // uint32_t OpenChannelV2_get_funding_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
9373 public static native int OpenChannelV2_get_funding_feerate_sat_per_1000_weight(long this_ptr);
9374 // void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
9375 public static native void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(long this_ptr, int val);
9376 // uint32_t OpenChannelV2_get_locktime(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
9377 public static native int OpenChannelV2_get_locktime(long this_ptr);
9378 // void OpenChannelV2_set_locktime(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
9379 public static native void OpenChannelV2_set_locktime(long this_ptr, int val);
9380 // struct LDKPublicKey OpenChannelV2_get_second_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
9381 public static native byte[] OpenChannelV2_get_second_per_commitment_point(long this_ptr);
9382 // void OpenChannelV2_set_second_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9383 public static native void OpenChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
9384 // enum LDKCOption_NoneZ OpenChannelV2_get_require_confirmed_inputs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
9385 public static native COption_NoneZ OpenChannelV2_get_require_confirmed_inputs(long this_ptr);
9386 // void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
9387 public static native void OpenChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
9388 // MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKCommonOpenChannelFields common_fields_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t locktime_arg, struct LDKPublicKey second_per_commitment_point_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
9389 public static native long OpenChannelV2_new(long common_fields_arg, int funding_feerate_sat_per_1000_weight_arg, int locktime_arg, byte[] second_per_commitment_point_arg, COption_NoneZ require_confirmed_inputs_arg);
9390 // uint64_t OpenChannelV2_clone_ptr(LDKOpenChannelV2 *NONNULL_PTR arg);
9391 public static native long OpenChannelV2_clone_ptr(long arg);
9392 // struct LDKOpenChannelV2 OpenChannelV2_clone(const struct LDKOpenChannelV2 *NONNULL_PTR orig);
9393 public static native long OpenChannelV2_clone(long orig);
9394 // uint64_t OpenChannelV2_hash(const struct LDKOpenChannelV2 *NONNULL_PTR o);
9395 public static native long OpenChannelV2_hash(long o);
9396 // bool OpenChannelV2_eq(const struct LDKOpenChannelV2 *NONNULL_PTR a, const struct LDKOpenChannelV2 *NONNULL_PTR b);
9397 public static native boolean OpenChannelV2_eq(long a, long b);
9398 // void CommonAcceptChannelFields_free(struct LDKCommonAcceptChannelFields this_obj);
9399 public static native void CommonAcceptChannelFields_free(long this_obj);
9400 // struct LDKChannelId CommonAcceptChannelFields_get_temporary_channel_id(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9401 public static native long CommonAcceptChannelFields_get_temporary_channel_id(long this_ptr);
9402 // void CommonAcceptChannelFields_set_temporary_channel_id(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKChannelId val);
9403 public static native void CommonAcceptChannelFields_set_temporary_channel_id(long this_ptr, long val);
9404 // uint64_t CommonAcceptChannelFields_get_dust_limit_satoshis(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9405 public static native long CommonAcceptChannelFields_get_dust_limit_satoshis(long this_ptr);
9406 // void CommonAcceptChannelFields_set_dust_limit_satoshis(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint64_t val);
9407 public static native void CommonAcceptChannelFields_set_dust_limit_satoshis(long this_ptr, long val);
9408 // uint64_t CommonAcceptChannelFields_get_max_htlc_value_in_flight_msat(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9409 public static native long CommonAcceptChannelFields_get_max_htlc_value_in_flight_msat(long this_ptr);
9410 // void CommonAcceptChannelFields_set_max_htlc_value_in_flight_msat(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint64_t val);
9411 public static native void CommonAcceptChannelFields_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
9412 // uint64_t CommonAcceptChannelFields_get_htlc_minimum_msat(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9413 public static native long CommonAcceptChannelFields_get_htlc_minimum_msat(long this_ptr);
9414 // void CommonAcceptChannelFields_set_htlc_minimum_msat(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint64_t val);
9415 public static native void CommonAcceptChannelFields_set_htlc_minimum_msat(long this_ptr, long val);
9416 // uint32_t CommonAcceptChannelFields_get_minimum_depth(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9417 public static native int CommonAcceptChannelFields_get_minimum_depth(long this_ptr);
9418 // void CommonAcceptChannelFields_set_minimum_depth(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint32_t val);
9419 public static native void CommonAcceptChannelFields_set_minimum_depth(long this_ptr, int val);
9420 // uint16_t CommonAcceptChannelFields_get_to_self_delay(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9421 public static native short CommonAcceptChannelFields_get_to_self_delay(long this_ptr);
9422 // void CommonAcceptChannelFields_set_to_self_delay(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint16_t val);
9423 public static native void CommonAcceptChannelFields_set_to_self_delay(long this_ptr, short val);
9424 // uint16_t CommonAcceptChannelFields_get_max_accepted_htlcs(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9425 public static native short CommonAcceptChannelFields_get_max_accepted_htlcs(long this_ptr);
9426 // void CommonAcceptChannelFields_set_max_accepted_htlcs(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint16_t val);
9427 public static native void CommonAcceptChannelFields_set_max_accepted_htlcs(long this_ptr, short val);
9428 // struct LDKPublicKey CommonAcceptChannelFields_get_funding_pubkey(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9429 public static native byte[] CommonAcceptChannelFields_get_funding_pubkey(long this_ptr);
9430 // void CommonAcceptChannelFields_set_funding_pubkey(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9431 public static native void CommonAcceptChannelFields_set_funding_pubkey(long this_ptr, byte[] val);
9432 // struct LDKPublicKey CommonAcceptChannelFields_get_revocation_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9433 public static native byte[] CommonAcceptChannelFields_get_revocation_basepoint(long this_ptr);
9434 // void CommonAcceptChannelFields_set_revocation_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9435 public static native void CommonAcceptChannelFields_set_revocation_basepoint(long this_ptr, byte[] val);
9436 // struct LDKPublicKey CommonAcceptChannelFields_get_payment_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9437 public static native byte[] CommonAcceptChannelFields_get_payment_basepoint(long this_ptr);
9438 // void CommonAcceptChannelFields_set_payment_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9439 public static native void CommonAcceptChannelFields_set_payment_basepoint(long this_ptr, byte[] val);
9440 // struct LDKPublicKey CommonAcceptChannelFields_get_delayed_payment_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9441 public static native byte[] CommonAcceptChannelFields_get_delayed_payment_basepoint(long this_ptr);
9442 // void CommonAcceptChannelFields_set_delayed_payment_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9443 public static native void CommonAcceptChannelFields_set_delayed_payment_basepoint(long this_ptr, byte[] val);
9444 // struct LDKPublicKey CommonAcceptChannelFields_get_htlc_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9445 public static native byte[] CommonAcceptChannelFields_get_htlc_basepoint(long this_ptr);
9446 // void CommonAcceptChannelFields_set_htlc_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9447 public static native void CommonAcceptChannelFields_set_htlc_basepoint(long this_ptr, byte[] val);
9448 // struct LDKPublicKey CommonAcceptChannelFields_get_first_per_commitment_point(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9449 public static native byte[] CommonAcceptChannelFields_get_first_per_commitment_point(long this_ptr);
9450 // void CommonAcceptChannelFields_set_first_per_commitment_point(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9451 public static native void CommonAcceptChannelFields_set_first_per_commitment_point(long this_ptr, byte[] val);
9452 // struct LDKCOption_CVec_u8ZZ CommonAcceptChannelFields_get_shutdown_scriptpubkey(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9453 public static native long CommonAcceptChannelFields_get_shutdown_scriptpubkey(long this_ptr);
9454 // void CommonAcceptChannelFields_set_shutdown_scriptpubkey(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
9455 public static native void CommonAcceptChannelFields_set_shutdown_scriptpubkey(long this_ptr, long val);
9456 // struct LDKChannelTypeFeatures CommonAcceptChannelFields_get_channel_type(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr);
9457 public static native long CommonAcceptChannelFields_get_channel_type(long this_ptr);
9458 // void CommonAcceptChannelFields_set_channel_type(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
9459 public static native void CommonAcceptChannelFields_set_channel_type(long this_ptr, long val);
9460 // MUST_USE_RES struct LDKCommonAcceptChannelFields CommonAcceptChannelFields_new(struct LDKChannelId temporary_channel_id_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 LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
9461 public static native long CommonAcceptChannelFields_new(long temporary_channel_id_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, long shutdown_scriptpubkey_arg, long channel_type_arg);
9462 // uint64_t CommonAcceptChannelFields_clone_ptr(LDKCommonAcceptChannelFields *NONNULL_PTR arg);
9463 public static native long CommonAcceptChannelFields_clone_ptr(long arg);
9464 // struct LDKCommonAcceptChannelFields CommonAcceptChannelFields_clone(const struct LDKCommonAcceptChannelFields *NONNULL_PTR orig);
9465 public static native long CommonAcceptChannelFields_clone(long orig);
9466 // uint64_t CommonAcceptChannelFields_hash(const struct LDKCommonAcceptChannelFields *NONNULL_PTR o);
9467 public static native long CommonAcceptChannelFields_hash(long o);
9468 // bool CommonAcceptChannelFields_eq(const struct LDKCommonAcceptChannelFields *NONNULL_PTR a, const struct LDKCommonAcceptChannelFields *NONNULL_PTR b);
9469 public static native boolean CommonAcceptChannelFields_eq(long a, long b);
9470 // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
9471 public static native void AcceptChannel_free(long this_obj);
9472 // struct LDKCommonAcceptChannelFields AcceptChannel_get_common_fields(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
9473 public static native long AcceptChannel_get_common_fields(long this_ptr);
9474 // void AcceptChannel_set_common_fields(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCommonAcceptChannelFields val);
9475 public static native void AcceptChannel_set_common_fields(long this_ptr, long val);
9476 // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
9477 public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
9478 // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
9479 public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
9480 // MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKCommonAcceptChannelFields common_fields_arg, uint64_t channel_reserve_satoshis_arg);
9481 public static native long AcceptChannel_new(long common_fields_arg, long channel_reserve_satoshis_arg);
9482 // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
9483 public static native long AcceptChannel_clone_ptr(long arg);
9484 // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
9485 public static native long AcceptChannel_clone(long orig);
9486 // uint64_t AcceptChannel_hash(const struct LDKAcceptChannel *NONNULL_PTR o);
9487 public static native long AcceptChannel_hash(long o);
9488 // bool AcceptChannel_eq(const struct LDKAcceptChannel *NONNULL_PTR a, const struct LDKAcceptChannel *NONNULL_PTR b);
9489 public static native boolean AcceptChannel_eq(long a, long b);
9490 // void AcceptChannelV2_free(struct LDKAcceptChannelV2 this_obj);
9491 public static native void AcceptChannelV2_free(long this_obj);
9492 // struct LDKCommonAcceptChannelFields AcceptChannelV2_get_common_fields(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
9493 public static native long AcceptChannelV2_get_common_fields(long this_ptr);
9494 // void AcceptChannelV2_set_common_fields(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCommonAcceptChannelFields val);
9495 public static native void AcceptChannelV2_set_common_fields(long this_ptr, long val);
9496 // uint64_t AcceptChannelV2_get_funding_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
9497 public static native long AcceptChannelV2_get_funding_satoshis(long this_ptr);
9498 // void AcceptChannelV2_set_funding_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
9499 public static native void AcceptChannelV2_set_funding_satoshis(long this_ptr, long val);
9500 // struct LDKPublicKey AcceptChannelV2_get_second_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
9501 public static native byte[] AcceptChannelV2_get_second_per_commitment_point(long this_ptr);
9502 // void AcceptChannelV2_set_second_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9503 public static native void AcceptChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
9504 // enum LDKCOption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
9505 public static native COption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(long this_ptr);
9506 // void AcceptChannelV2_set_require_confirmed_inputs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
9507 public static native void AcceptChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
9508 // MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKCommonAcceptChannelFields common_fields_arg, uint64_t funding_satoshis_arg, struct LDKPublicKey second_per_commitment_point_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
9509 public static native long AcceptChannelV2_new(long common_fields_arg, long funding_satoshis_arg, byte[] second_per_commitment_point_arg, COption_NoneZ require_confirmed_inputs_arg);
9510 // uint64_t AcceptChannelV2_clone_ptr(LDKAcceptChannelV2 *NONNULL_PTR arg);
9511 public static native long AcceptChannelV2_clone_ptr(long arg);
9512 // struct LDKAcceptChannelV2 AcceptChannelV2_clone(const struct LDKAcceptChannelV2 *NONNULL_PTR orig);
9513 public static native long AcceptChannelV2_clone(long orig);
9514 // uint64_t AcceptChannelV2_hash(const struct LDKAcceptChannelV2 *NONNULL_PTR o);
9515 public static native long AcceptChannelV2_hash(long o);
9516 // bool AcceptChannelV2_eq(const struct LDKAcceptChannelV2 *NONNULL_PTR a, const struct LDKAcceptChannelV2 *NONNULL_PTR b);
9517 public static native boolean AcceptChannelV2_eq(long a, long b);
9518 // void FundingCreated_free(struct LDKFundingCreated this_obj);
9519 public static native void FundingCreated_free(long this_obj);
9520 // struct LDKChannelId FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
9521 public static native long FundingCreated_get_temporary_channel_id(long this_ptr);
9522 // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKChannelId val);
9523 public static native void FundingCreated_set_temporary_channel_id(long this_ptr, long val);
9524 // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
9525 public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
9526 // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9527 public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
9528 // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
9529 public static native short FundingCreated_get_funding_output_index(long this_ptr);
9530 // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
9531 public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
9532 // struct LDKECDSASignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
9533 public static native byte[] FundingCreated_get_signature(long this_ptr);
9534 // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9535 public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
9536 // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKChannelId temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKECDSASignature signature_arg);
9537 public static native long FundingCreated_new(long temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
9538 // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
9539 public static native long FundingCreated_clone_ptr(long arg);
9540 // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
9541 public static native long FundingCreated_clone(long orig);
9542 // uint64_t FundingCreated_hash(const struct LDKFundingCreated *NONNULL_PTR o);
9543 public static native long FundingCreated_hash(long o);
9544 // bool FundingCreated_eq(const struct LDKFundingCreated *NONNULL_PTR a, const struct LDKFundingCreated *NONNULL_PTR b);
9545 public static native boolean FundingCreated_eq(long a, long b);
9546 // void FundingSigned_free(struct LDKFundingSigned this_obj);
9547 public static native void FundingSigned_free(long this_obj);
9548 // struct LDKChannelId FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
9549 public static native long FundingSigned_get_channel_id(long this_ptr);
9550 // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKChannelId val);
9551 public static native void FundingSigned_set_channel_id(long this_ptr, long val);
9552 // struct LDKECDSASignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
9553 public static native byte[] FundingSigned_get_signature(long this_ptr);
9554 // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9555 public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
9556 // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKChannelId channel_id_arg, struct LDKECDSASignature signature_arg);
9557 public static native long FundingSigned_new(long channel_id_arg, byte[] signature_arg);
9558 // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
9559 public static native long FundingSigned_clone_ptr(long arg);
9560 // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
9561 public static native long FundingSigned_clone(long orig);
9562 // uint64_t FundingSigned_hash(const struct LDKFundingSigned *NONNULL_PTR o);
9563 public static native long FundingSigned_hash(long o);
9564 // bool FundingSigned_eq(const struct LDKFundingSigned *NONNULL_PTR a, const struct LDKFundingSigned *NONNULL_PTR b);
9565 public static native boolean FundingSigned_eq(long a, long b);
9566 // void ChannelReady_free(struct LDKChannelReady this_obj);
9567 public static native void ChannelReady_free(long this_obj);
9568 // struct LDKChannelId ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr);
9569 public static native long ChannelReady_get_channel_id(long this_ptr);
9570 // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKChannelId val);
9571 public static native void ChannelReady_set_channel_id(long this_ptr, long val);
9572 // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
9573 public static native byte[] ChannelReady_get_next_per_commitment_point(long this_ptr);
9574 // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9575 public static native void ChannelReady_set_next_per_commitment_point(long this_ptr, byte[] val);
9576 // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
9577 public static native long ChannelReady_get_short_channel_id_alias(long this_ptr);
9578 // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
9579 public static native void ChannelReady_set_short_channel_id_alias(long this_ptr, long val);
9580 // MUST_USE_RES struct LDKChannelReady ChannelReady_new(struct LDKChannelId channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg);
9581 public static native long ChannelReady_new(long channel_id_arg, byte[] next_per_commitment_point_arg, long short_channel_id_alias_arg);
9582 // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
9583 public static native long ChannelReady_clone_ptr(long arg);
9584 // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
9585 public static native long ChannelReady_clone(long orig);
9586 // uint64_t ChannelReady_hash(const struct LDKChannelReady *NONNULL_PTR o);
9587 public static native long ChannelReady_hash(long o);
9588 // bool ChannelReady_eq(const struct LDKChannelReady *NONNULL_PTR a, const struct LDKChannelReady *NONNULL_PTR b);
9589 public static native boolean ChannelReady_eq(long a, long b);
9590 // void Stfu_free(struct LDKStfu this_obj);
9591 public static native void Stfu_free(long this_obj);
9592 // struct LDKChannelId Stfu_get_channel_id(const struct LDKStfu *NONNULL_PTR this_ptr);
9593 public static native long Stfu_get_channel_id(long this_ptr);
9594 // void Stfu_set_channel_id(struct LDKStfu *NONNULL_PTR this_ptr, struct LDKChannelId val);
9595 public static native void Stfu_set_channel_id(long this_ptr, long val);
9596 // uint8_t Stfu_get_initiator(const struct LDKStfu *NONNULL_PTR this_ptr);
9597 public static native byte Stfu_get_initiator(long this_ptr);
9598 // void Stfu_set_initiator(struct LDKStfu *NONNULL_PTR this_ptr, uint8_t val);
9599 public static native void Stfu_set_initiator(long this_ptr, byte val);
9600 // MUST_USE_RES struct LDKStfu Stfu_new(struct LDKChannelId channel_id_arg, uint8_t initiator_arg);
9601 public static native long Stfu_new(long channel_id_arg, byte initiator_arg);
9602 // uint64_t Stfu_clone_ptr(LDKStfu *NONNULL_PTR arg);
9603 public static native long Stfu_clone_ptr(long arg);
9604 // struct LDKStfu Stfu_clone(const struct LDKStfu *NONNULL_PTR orig);
9605 public static native long Stfu_clone(long orig);
9606 // bool Stfu_eq(const struct LDKStfu *NONNULL_PTR a, const struct LDKStfu *NONNULL_PTR b);
9607 public static native boolean Stfu_eq(long a, long b);
9608 // void Splice_free(struct LDKSplice this_obj);
9609 public static native void Splice_free(long this_obj);
9610 // struct LDKChannelId Splice_get_channel_id(const struct LDKSplice *NONNULL_PTR this_ptr);
9611 public static native long Splice_get_channel_id(long this_ptr);
9612 // void Splice_set_channel_id(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKChannelId val);
9613 public static native void Splice_set_channel_id(long this_ptr, long val);
9614 // const uint8_t (*Splice_get_chain_hash(const struct LDKSplice *NONNULL_PTR this_ptr))[32];
9615 public static native byte[] Splice_get_chain_hash(long this_ptr);
9616 // void Splice_set_chain_hash(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9617 public static native void Splice_set_chain_hash(long this_ptr, byte[] val);
9618 // int64_t Splice_get_relative_satoshis(const struct LDKSplice *NONNULL_PTR this_ptr);
9619 public static native long Splice_get_relative_satoshis(long this_ptr);
9620 // void Splice_set_relative_satoshis(struct LDKSplice *NONNULL_PTR this_ptr, int64_t val);
9621 public static native void Splice_set_relative_satoshis(long this_ptr, long val);
9622 // uint32_t Splice_get_funding_feerate_perkw(const struct LDKSplice *NONNULL_PTR this_ptr);
9623 public static native int Splice_get_funding_feerate_perkw(long this_ptr);
9624 // void Splice_set_funding_feerate_perkw(struct LDKSplice *NONNULL_PTR this_ptr, uint32_t val);
9625 public static native void Splice_set_funding_feerate_perkw(long this_ptr, int val);
9626 // uint32_t Splice_get_locktime(const struct LDKSplice *NONNULL_PTR this_ptr);
9627 public static native int Splice_get_locktime(long this_ptr);
9628 // void Splice_set_locktime(struct LDKSplice *NONNULL_PTR this_ptr, uint32_t val);
9629 public static native void Splice_set_locktime(long this_ptr, int val);
9630 // struct LDKPublicKey Splice_get_funding_pubkey(const struct LDKSplice *NONNULL_PTR this_ptr);
9631 public static native byte[] Splice_get_funding_pubkey(long this_ptr);
9632 // void Splice_set_funding_pubkey(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9633 public static native void Splice_set_funding_pubkey(long this_ptr, byte[] val);
9634 // MUST_USE_RES struct LDKSplice Splice_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, uint32_t funding_feerate_perkw_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg);
9635 public static native long Splice_new(long channel_id_arg, byte[] chain_hash_arg, long relative_satoshis_arg, int funding_feerate_perkw_arg, int locktime_arg, byte[] funding_pubkey_arg);
9636 // uint64_t Splice_clone_ptr(LDKSplice *NONNULL_PTR arg);
9637 public static native long Splice_clone_ptr(long arg);
9638 // struct LDKSplice Splice_clone(const struct LDKSplice *NONNULL_PTR orig);
9639 public static native long Splice_clone(long orig);
9640 // bool Splice_eq(const struct LDKSplice *NONNULL_PTR a, const struct LDKSplice *NONNULL_PTR b);
9641 public static native boolean Splice_eq(long a, long b);
9642 // void SpliceAck_free(struct LDKSpliceAck this_obj);
9643 public static native void SpliceAck_free(long this_obj);
9644 // struct LDKChannelId SpliceAck_get_channel_id(const struct LDKSpliceAck *NONNULL_PTR this_ptr);
9645 public static native long SpliceAck_get_channel_id(long this_ptr);
9646 // void SpliceAck_set_channel_id(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKChannelId val);
9647 public static native void SpliceAck_set_channel_id(long this_ptr, long val);
9648 // const uint8_t (*SpliceAck_get_chain_hash(const struct LDKSpliceAck *NONNULL_PTR this_ptr))[32];
9649 public static native byte[] SpliceAck_get_chain_hash(long this_ptr);
9650 // void SpliceAck_set_chain_hash(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9651 public static native void SpliceAck_set_chain_hash(long this_ptr, byte[] val);
9652 // int64_t SpliceAck_get_relative_satoshis(const struct LDKSpliceAck *NONNULL_PTR this_ptr);
9653 public static native long SpliceAck_get_relative_satoshis(long this_ptr);
9654 // void SpliceAck_set_relative_satoshis(struct LDKSpliceAck *NONNULL_PTR this_ptr, int64_t val);
9655 public static native void SpliceAck_set_relative_satoshis(long this_ptr, long val);
9656 // struct LDKPublicKey SpliceAck_get_funding_pubkey(const struct LDKSpliceAck *NONNULL_PTR this_ptr);
9657 public static native byte[] SpliceAck_get_funding_pubkey(long this_ptr);
9658 // void SpliceAck_set_funding_pubkey(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9659 public static native void SpliceAck_set_funding_pubkey(long this_ptr, byte[] val);
9660 // MUST_USE_RES struct LDKSpliceAck SpliceAck_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, struct LDKPublicKey funding_pubkey_arg);
9661 public static native long SpliceAck_new(long channel_id_arg, byte[] chain_hash_arg, long relative_satoshis_arg, byte[] funding_pubkey_arg);
9662 // uint64_t SpliceAck_clone_ptr(LDKSpliceAck *NONNULL_PTR arg);
9663 public static native long SpliceAck_clone_ptr(long arg);
9664 // struct LDKSpliceAck SpliceAck_clone(const struct LDKSpliceAck *NONNULL_PTR orig);
9665 public static native long SpliceAck_clone(long orig);
9666 // bool SpliceAck_eq(const struct LDKSpliceAck *NONNULL_PTR a, const struct LDKSpliceAck *NONNULL_PTR b);
9667 public static native boolean SpliceAck_eq(long a, long b);
9668 // void SpliceLocked_free(struct LDKSpliceLocked this_obj);
9669 public static native void SpliceLocked_free(long this_obj);
9670 // struct LDKChannelId SpliceLocked_get_channel_id(const struct LDKSpliceLocked *NONNULL_PTR this_ptr);
9671 public static native long SpliceLocked_get_channel_id(long this_ptr);
9672 // void SpliceLocked_set_channel_id(struct LDKSpliceLocked *NONNULL_PTR this_ptr, struct LDKChannelId val);
9673 public static native void SpliceLocked_set_channel_id(long this_ptr, long val);
9674 // MUST_USE_RES struct LDKSpliceLocked SpliceLocked_new(struct LDKChannelId channel_id_arg);
9675 public static native long SpliceLocked_new(long channel_id_arg);
9676 // uint64_t SpliceLocked_clone_ptr(LDKSpliceLocked *NONNULL_PTR arg);
9677 public static native long SpliceLocked_clone_ptr(long arg);
9678 // struct LDKSpliceLocked SpliceLocked_clone(const struct LDKSpliceLocked *NONNULL_PTR orig);
9679 public static native long SpliceLocked_clone(long orig);
9680 // bool SpliceLocked_eq(const struct LDKSpliceLocked *NONNULL_PTR a, const struct LDKSpliceLocked *NONNULL_PTR b);
9681 public static native boolean SpliceLocked_eq(long a, long b);
9682 // void TxAddInput_free(struct LDKTxAddInput this_obj);
9683 public static native void TxAddInput_free(long this_obj);
9684 // struct LDKChannelId TxAddInput_get_channel_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
9685 public static native long TxAddInput_get_channel_id(long this_ptr);
9686 // void TxAddInput_set_channel_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKChannelId val);
9687 public static native void TxAddInput_set_channel_id(long this_ptr, long val);
9688 // uint64_t TxAddInput_get_serial_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
9689 public static native long TxAddInput_get_serial_id(long this_ptr);
9690 // void TxAddInput_set_serial_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint64_t val);
9691 public static native void TxAddInput_set_serial_id(long this_ptr, long val);
9692 // struct LDKTransactionU16LenLimited TxAddInput_get_prevtx(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
9693 public static native long TxAddInput_get_prevtx(long this_ptr);
9694 // void TxAddInput_set_prevtx(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKTransactionU16LenLimited val);
9695 public static native void TxAddInput_set_prevtx(long this_ptr, long val);
9696 // uint32_t TxAddInput_get_prevtx_out(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
9697 public static native int TxAddInput_get_prevtx_out(long this_ptr);
9698 // void TxAddInput_set_prevtx_out(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
9699 public static native void TxAddInput_set_prevtx_out(long this_ptr, int val);
9700 // uint32_t TxAddInput_get_sequence(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
9701 public static native int TxAddInput_get_sequence(long this_ptr);
9702 // void TxAddInput_set_sequence(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
9703 public static native void TxAddInput_set_sequence(long this_ptr, int val);
9704 // MUST_USE_RES struct LDKTxAddInput TxAddInput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg, struct LDKTransactionU16LenLimited prevtx_arg, uint32_t prevtx_out_arg, uint32_t sequence_arg);
9705 public static native long TxAddInput_new(long channel_id_arg, long serial_id_arg, long prevtx_arg, int prevtx_out_arg, int sequence_arg);
9706 // uint64_t TxAddInput_clone_ptr(LDKTxAddInput *NONNULL_PTR arg);
9707 public static native long TxAddInput_clone_ptr(long arg);
9708 // struct LDKTxAddInput TxAddInput_clone(const struct LDKTxAddInput *NONNULL_PTR orig);
9709 public static native long TxAddInput_clone(long orig);
9710 // uint64_t TxAddInput_hash(const struct LDKTxAddInput *NONNULL_PTR o);
9711 public static native long TxAddInput_hash(long o);
9712 // bool TxAddInput_eq(const struct LDKTxAddInput *NONNULL_PTR a, const struct LDKTxAddInput *NONNULL_PTR b);
9713 public static native boolean TxAddInput_eq(long a, long b);
9714 // void TxAddOutput_free(struct LDKTxAddOutput this_obj);
9715 public static native void TxAddOutput_free(long this_obj);
9716 // struct LDKChannelId TxAddOutput_get_channel_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
9717 public static native long TxAddOutput_get_channel_id(long this_ptr);
9718 // void TxAddOutput_set_channel_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKChannelId val);
9719 public static native void TxAddOutput_set_channel_id(long this_ptr, long val);
9720 // uint64_t TxAddOutput_get_serial_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
9721 public static native long TxAddOutput_get_serial_id(long this_ptr);
9722 // void TxAddOutput_set_serial_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
9723 public static native void TxAddOutput_set_serial_id(long this_ptr, long val);
9724 // uint64_t TxAddOutput_get_sats(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
9725 public static native long TxAddOutput_get_sats(long this_ptr);
9726 // void TxAddOutput_set_sats(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
9727 public static native void TxAddOutput_set_sats(long this_ptr, long val);
9728 // struct LDKCVec_u8Z TxAddOutput_get_script(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
9729 public static native byte[] TxAddOutput_get_script(long this_ptr);
9730 // void TxAddOutput_set_script(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
9731 public static native void TxAddOutput_set_script(long this_ptr, byte[] val);
9732 // MUST_USE_RES struct LDKTxAddOutput TxAddOutput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg, uint64_t sats_arg, struct LDKCVec_u8Z script_arg);
9733 public static native long TxAddOutput_new(long channel_id_arg, long serial_id_arg, long sats_arg, byte[] script_arg);
9734 // uint64_t TxAddOutput_clone_ptr(LDKTxAddOutput *NONNULL_PTR arg);
9735 public static native long TxAddOutput_clone_ptr(long arg);
9736 // struct LDKTxAddOutput TxAddOutput_clone(const struct LDKTxAddOutput *NONNULL_PTR orig);
9737 public static native long TxAddOutput_clone(long orig);
9738 // uint64_t TxAddOutput_hash(const struct LDKTxAddOutput *NONNULL_PTR o);
9739 public static native long TxAddOutput_hash(long o);
9740 // bool TxAddOutput_eq(const struct LDKTxAddOutput *NONNULL_PTR a, const struct LDKTxAddOutput *NONNULL_PTR b);
9741 public static native boolean TxAddOutput_eq(long a, long b);
9742 // void TxRemoveInput_free(struct LDKTxRemoveInput this_obj);
9743 public static native void TxRemoveInput_free(long this_obj);
9744 // struct LDKChannelId TxRemoveInput_get_channel_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr);
9745 public static native long TxRemoveInput_get_channel_id(long this_ptr);
9746 // void TxRemoveInput_set_channel_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, struct LDKChannelId val);
9747 public static native void TxRemoveInput_set_channel_id(long this_ptr, long val);
9748 // uint64_t TxRemoveInput_get_serial_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr);
9749 public static native long TxRemoveInput_get_serial_id(long this_ptr);
9750 // void TxRemoveInput_set_serial_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, uint64_t val);
9751 public static native void TxRemoveInput_set_serial_id(long this_ptr, long val);
9752 // MUST_USE_RES struct LDKTxRemoveInput TxRemoveInput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg);
9753 public static native long TxRemoveInput_new(long channel_id_arg, long serial_id_arg);
9754 // uint64_t TxRemoveInput_clone_ptr(LDKTxRemoveInput *NONNULL_PTR arg);
9755 public static native long TxRemoveInput_clone_ptr(long arg);
9756 // struct LDKTxRemoveInput TxRemoveInput_clone(const struct LDKTxRemoveInput *NONNULL_PTR orig);
9757 public static native long TxRemoveInput_clone(long orig);
9758 // uint64_t TxRemoveInput_hash(const struct LDKTxRemoveInput *NONNULL_PTR o);
9759 public static native long TxRemoveInput_hash(long o);
9760 // bool TxRemoveInput_eq(const struct LDKTxRemoveInput *NONNULL_PTR a, const struct LDKTxRemoveInput *NONNULL_PTR b);
9761 public static native boolean TxRemoveInput_eq(long a, long b);
9762 // void TxRemoveOutput_free(struct LDKTxRemoveOutput this_obj);
9763 public static native void TxRemoveOutput_free(long this_obj);
9764 // struct LDKChannelId TxRemoveOutput_get_channel_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr);
9765 public static native long TxRemoveOutput_get_channel_id(long this_ptr);
9766 // void TxRemoveOutput_set_channel_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, struct LDKChannelId val);
9767 public static native void TxRemoveOutput_set_channel_id(long this_ptr, long val);
9768 // uint64_t TxRemoveOutput_get_serial_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr);
9769 public static native long TxRemoveOutput_get_serial_id(long this_ptr);
9770 // void TxRemoveOutput_set_serial_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, uint64_t val);
9771 public static native void TxRemoveOutput_set_serial_id(long this_ptr, long val);
9772 // MUST_USE_RES struct LDKTxRemoveOutput TxRemoveOutput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg);
9773 public static native long TxRemoveOutput_new(long channel_id_arg, long serial_id_arg);
9774 // uint64_t TxRemoveOutput_clone_ptr(LDKTxRemoveOutput *NONNULL_PTR arg);
9775 public static native long TxRemoveOutput_clone_ptr(long arg);
9776 // struct LDKTxRemoveOutput TxRemoveOutput_clone(const struct LDKTxRemoveOutput *NONNULL_PTR orig);
9777 public static native long TxRemoveOutput_clone(long orig);
9778 // uint64_t TxRemoveOutput_hash(const struct LDKTxRemoveOutput *NONNULL_PTR o);
9779 public static native long TxRemoveOutput_hash(long o);
9780 // bool TxRemoveOutput_eq(const struct LDKTxRemoveOutput *NONNULL_PTR a, const struct LDKTxRemoveOutput *NONNULL_PTR b);
9781 public static native boolean TxRemoveOutput_eq(long a, long b);
9782 // void TxComplete_free(struct LDKTxComplete this_obj);
9783 public static native void TxComplete_free(long this_obj);
9784 // struct LDKChannelId TxComplete_get_channel_id(const struct LDKTxComplete *NONNULL_PTR this_ptr);
9785 public static native long TxComplete_get_channel_id(long this_ptr);
9786 // void TxComplete_set_channel_id(struct LDKTxComplete *NONNULL_PTR this_ptr, struct LDKChannelId val);
9787 public static native void TxComplete_set_channel_id(long this_ptr, long val);
9788 // MUST_USE_RES struct LDKTxComplete TxComplete_new(struct LDKChannelId channel_id_arg);
9789 public static native long TxComplete_new(long channel_id_arg);
9790 // uint64_t TxComplete_clone_ptr(LDKTxComplete *NONNULL_PTR arg);
9791 public static native long TxComplete_clone_ptr(long arg);
9792 // struct LDKTxComplete TxComplete_clone(const struct LDKTxComplete *NONNULL_PTR orig);
9793 public static native long TxComplete_clone(long orig);
9794 // uint64_t TxComplete_hash(const struct LDKTxComplete *NONNULL_PTR o);
9795 public static native long TxComplete_hash(long o);
9796 // bool TxComplete_eq(const struct LDKTxComplete *NONNULL_PTR a, const struct LDKTxComplete *NONNULL_PTR b);
9797 public static native boolean TxComplete_eq(long a, long b);
9798 // void TxSignatures_free(struct LDKTxSignatures this_obj);
9799 public static native void TxSignatures_free(long this_obj);
9800 // struct LDKChannelId TxSignatures_get_channel_id(const struct LDKTxSignatures *NONNULL_PTR this_ptr);
9801 public static native long TxSignatures_get_channel_id(long this_ptr);
9802 // void TxSignatures_set_channel_id(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKChannelId val);
9803 public static native void TxSignatures_set_channel_id(long this_ptr, long val);
9804 // const uint8_t (*TxSignatures_get_tx_hash(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32];
9805 public static native byte[] TxSignatures_get_tx_hash(long this_ptr);
9806 // void TxSignatures_set_tx_hash(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9807 public static native void TxSignatures_set_tx_hash(long this_ptr, byte[] val);
9808 // struct LDKCVec_WitnessZ TxSignatures_get_witnesses(const struct LDKTxSignatures *NONNULL_PTR this_ptr);
9809 public static native byte[][] TxSignatures_get_witnesses(long this_ptr);
9810 // void TxSignatures_set_witnesses(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKCVec_WitnessZ val);
9811 public static native void TxSignatures_set_witnesses(long this_ptr, byte[][] val);
9812 // struct LDKCOption_ECDSASignatureZ TxSignatures_get_funding_outpoint_sig(const struct LDKTxSignatures *NONNULL_PTR this_ptr);
9813 public static native long TxSignatures_get_funding_outpoint_sig(long this_ptr);
9814 // void TxSignatures_set_funding_outpoint_sig(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKCOption_ECDSASignatureZ val);
9815 public static native void TxSignatures_set_funding_outpoint_sig(long this_ptr, long val);
9816 // MUST_USE_RES struct LDKTxSignatures TxSignatures_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes tx_hash_arg, struct LDKCVec_WitnessZ witnesses_arg, struct LDKCOption_ECDSASignatureZ funding_outpoint_sig_arg);
9817 public static native long TxSignatures_new(long channel_id_arg, byte[] tx_hash_arg, byte[][] witnesses_arg, long funding_outpoint_sig_arg);
9818 // uint64_t TxSignatures_clone_ptr(LDKTxSignatures *NONNULL_PTR arg);
9819 public static native long TxSignatures_clone_ptr(long arg);
9820 // struct LDKTxSignatures TxSignatures_clone(const struct LDKTxSignatures *NONNULL_PTR orig);
9821 public static native long TxSignatures_clone(long orig);
9822 // uint64_t TxSignatures_hash(const struct LDKTxSignatures *NONNULL_PTR o);
9823 public static native long TxSignatures_hash(long o);
9824 // bool TxSignatures_eq(const struct LDKTxSignatures *NONNULL_PTR a, const struct LDKTxSignatures *NONNULL_PTR b);
9825 public static native boolean TxSignatures_eq(long a, long b);
9826 // void TxInitRbf_free(struct LDKTxInitRbf this_obj);
9827 public static native void TxInitRbf_free(long this_obj);
9828 // struct LDKChannelId TxInitRbf_get_channel_id(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
9829 public static native long TxInitRbf_get_channel_id(long this_ptr);
9830 // void TxInitRbf_set_channel_id(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKChannelId val);
9831 public static native void TxInitRbf_set_channel_id(long this_ptr, long val);
9832 // uint32_t TxInitRbf_get_locktime(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
9833 public static native int TxInitRbf_get_locktime(long this_ptr);
9834 // void TxInitRbf_set_locktime(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
9835 public static native void TxInitRbf_set_locktime(long this_ptr, int val);
9836 // uint32_t TxInitRbf_get_feerate_sat_per_1000_weight(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
9837 public static native int TxInitRbf_get_feerate_sat_per_1000_weight(long this_ptr);
9838 // void TxInitRbf_set_feerate_sat_per_1000_weight(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
9839 public static native void TxInitRbf_set_feerate_sat_per_1000_weight(long this_ptr, int val);
9840 // struct LDKCOption_i64Z TxInitRbf_get_funding_output_contribution(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
9841 public static native long TxInitRbf_get_funding_output_contribution(long this_ptr);
9842 // void TxInitRbf_set_funding_output_contribution(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
9843 public static native void TxInitRbf_set_funding_output_contribution(long this_ptr, long val);
9844 // MUST_USE_RES struct LDKTxInitRbf TxInitRbf_new(struct LDKChannelId channel_id_arg, uint32_t locktime_arg, uint32_t feerate_sat_per_1000_weight_arg, struct LDKCOption_i64Z funding_output_contribution_arg);
9845 public static native long TxInitRbf_new(long channel_id_arg, int locktime_arg, int feerate_sat_per_1000_weight_arg, long funding_output_contribution_arg);
9846 // uint64_t TxInitRbf_clone_ptr(LDKTxInitRbf *NONNULL_PTR arg);
9847 public static native long TxInitRbf_clone_ptr(long arg);
9848 // struct LDKTxInitRbf TxInitRbf_clone(const struct LDKTxInitRbf *NONNULL_PTR orig);
9849 public static native long TxInitRbf_clone(long orig);
9850 // uint64_t TxInitRbf_hash(const struct LDKTxInitRbf *NONNULL_PTR o);
9851 public static native long TxInitRbf_hash(long o);
9852 // bool TxInitRbf_eq(const struct LDKTxInitRbf *NONNULL_PTR a, const struct LDKTxInitRbf *NONNULL_PTR b);
9853 public static native boolean TxInitRbf_eq(long a, long b);
9854 // void TxAckRbf_free(struct LDKTxAckRbf this_obj);
9855 public static native void TxAckRbf_free(long this_obj);
9856 // struct LDKChannelId TxAckRbf_get_channel_id(const struct LDKTxAckRbf *NONNULL_PTR this_ptr);
9857 public static native long TxAckRbf_get_channel_id(long this_ptr);
9858 // void TxAckRbf_set_channel_id(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKChannelId val);
9859 public static native void TxAckRbf_set_channel_id(long this_ptr, long val);
9860 // struct LDKCOption_i64Z TxAckRbf_get_funding_output_contribution(const struct LDKTxAckRbf *NONNULL_PTR this_ptr);
9861 public static native long TxAckRbf_get_funding_output_contribution(long this_ptr);
9862 // void TxAckRbf_set_funding_output_contribution(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
9863 public static native void TxAckRbf_set_funding_output_contribution(long this_ptr, long val);
9864 // MUST_USE_RES struct LDKTxAckRbf TxAckRbf_new(struct LDKChannelId channel_id_arg, struct LDKCOption_i64Z funding_output_contribution_arg);
9865 public static native long TxAckRbf_new(long channel_id_arg, long funding_output_contribution_arg);
9866 // uint64_t TxAckRbf_clone_ptr(LDKTxAckRbf *NONNULL_PTR arg);
9867 public static native long TxAckRbf_clone_ptr(long arg);
9868 // struct LDKTxAckRbf TxAckRbf_clone(const struct LDKTxAckRbf *NONNULL_PTR orig);
9869 public static native long TxAckRbf_clone(long orig);
9870 // uint64_t TxAckRbf_hash(const struct LDKTxAckRbf *NONNULL_PTR o);
9871 public static native long TxAckRbf_hash(long o);
9872 // bool TxAckRbf_eq(const struct LDKTxAckRbf *NONNULL_PTR a, const struct LDKTxAckRbf *NONNULL_PTR b);
9873 public static native boolean TxAckRbf_eq(long a, long b);
9874 // void TxAbort_free(struct LDKTxAbort this_obj);
9875 public static native void TxAbort_free(long this_obj);
9876 // struct LDKChannelId TxAbort_get_channel_id(const struct LDKTxAbort *NONNULL_PTR this_ptr);
9877 public static native long TxAbort_get_channel_id(long this_ptr);
9878 // void TxAbort_set_channel_id(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKChannelId val);
9879 public static native void TxAbort_set_channel_id(long this_ptr, long val);
9880 // struct LDKCVec_u8Z TxAbort_get_data(const struct LDKTxAbort *NONNULL_PTR this_ptr);
9881 public static native byte[] TxAbort_get_data(long this_ptr);
9882 // void TxAbort_set_data(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
9883 public static native void TxAbort_set_data(long this_ptr, byte[] val);
9884 // MUST_USE_RES struct LDKTxAbort TxAbort_new(struct LDKChannelId channel_id_arg, struct LDKCVec_u8Z data_arg);
9885 public static native long TxAbort_new(long channel_id_arg, byte[] data_arg);
9886 // uint64_t TxAbort_clone_ptr(LDKTxAbort *NONNULL_PTR arg);
9887 public static native long TxAbort_clone_ptr(long arg);
9888 // struct LDKTxAbort TxAbort_clone(const struct LDKTxAbort *NONNULL_PTR orig);
9889 public static native long TxAbort_clone(long orig);
9890 // uint64_t TxAbort_hash(const struct LDKTxAbort *NONNULL_PTR o);
9891 public static native long TxAbort_hash(long o);
9892 // bool TxAbort_eq(const struct LDKTxAbort *NONNULL_PTR a, const struct LDKTxAbort *NONNULL_PTR b);
9893 public static native boolean TxAbort_eq(long a, long b);
9894 // void Shutdown_free(struct LDKShutdown this_obj);
9895 public static native void Shutdown_free(long this_obj);
9896 // struct LDKChannelId Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr);
9897 public static native long Shutdown_get_channel_id(long this_ptr);
9898 // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKChannelId val);
9899 public static native void Shutdown_set_channel_id(long this_ptr, long val);
9900 // struct LDKCVec_u8Z Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
9901 public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
9902 // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
9903 public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
9904 // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKChannelId channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
9905 public static native long Shutdown_new(long channel_id_arg, byte[] scriptpubkey_arg);
9906 // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
9907 public static native long Shutdown_clone_ptr(long arg);
9908 // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
9909 public static native long Shutdown_clone(long orig);
9910 // uint64_t Shutdown_hash(const struct LDKShutdown *NONNULL_PTR o);
9911 public static native long Shutdown_hash(long o);
9912 // bool Shutdown_eq(const struct LDKShutdown *NONNULL_PTR a, const struct LDKShutdown *NONNULL_PTR b);
9913 public static native boolean Shutdown_eq(long a, long b);
9914 // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
9915 public static native void ClosingSignedFeeRange_free(long this_obj);
9916 // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
9917 public static native long ClosingSignedFeeRange_get_min_fee_satoshis(long this_ptr);
9918 // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
9919 public static native void ClosingSignedFeeRange_set_min_fee_satoshis(long this_ptr, long val);
9920 // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
9921 public static native long ClosingSignedFeeRange_get_max_fee_satoshis(long this_ptr);
9922 // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
9923 public static native void ClosingSignedFeeRange_set_max_fee_satoshis(long this_ptr, long val);
9924 // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
9925 public static native long ClosingSignedFeeRange_new(long min_fee_satoshis_arg, long max_fee_satoshis_arg);
9926 // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
9927 public static native long ClosingSignedFeeRange_clone_ptr(long arg);
9928 // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
9929 public static native long ClosingSignedFeeRange_clone(long orig);
9930 // uint64_t ClosingSignedFeeRange_hash(const struct LDKClosingSignedFeeRange *NONNULL_PTR o);
9931 public static native long ClosingSignedFeeRange_hash(long o);
9932 // bool ClosingSignedFeeRange_eq(const struct LDKClosingSignedFeeRange *NONNULL_PTR a, const struct LDKClosingSignedFeeRange *NONNULL_PTR b);
9933 public static native boolean ClosingSignedFeeRange_eq(long a, long b);
9934 // void ClosingSigned_free(struct LDKClosingSigned this_obj);
9935 public static native void ClosingSigned_free(long this_obj);
9936 // struct LDKChannelId ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
9937 public static native long ClosingSigned_get_channel_id(long this_ptr);
9938 // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKChannelId val);
9939 public static native void ClosingSigned_set_channel_id(long this_ptr, long val);
9940 // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
9941 public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
9942 // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
9943 public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
9944 // struct LDKECDSASignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
9945 public static native byte[] ClosingSigned_get_signature(long this_ptr);
9946 // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9947 public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
9948 // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
9949 public static native long ClosingSigned_get_fee_range(long this_ptr);
9950 // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
9951 public static native void ClosingSigned_set_fee_range(long this_ptr, long val);
9952 // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKChannelId channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
9953 public static native long ClosingSigned_new(long channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, long fee_range_arg);
9954 // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
9955 public static native long ClosingSigned_clone_ptr(long arg);
9956 // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
9957 public static native long ClosingSigned_clone(long orig);
9958 // uint64_t ClosingSigned_hash(const struct LDKClosingSigned *NONNULL_PTR o);
9959 public static native long ClosingSigned_hash(long o);
9960 // bool ClosingSigned_eq(const struct LDKClosingSigned *NONNULL_PTR a, const struct LDKClosingSigned *NONNULL_PTR b);
9961 public static native boolean ClosingSigned_eq(long a, long b);
9962 // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
9963 public static native void UpdateAddHTLC_free(long this_obj);
9964 // struct LDKChannelId UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
9965 public static native long UpdateAddHTLC_get_channel_id(long this_ptr);
9966 // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val);
9967 public static native void UpdateAddHTLC_set_channel_id(long this_ptr, long val);
9968 // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
9969 public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
9970 // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
9971 public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
9972 // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
9973 public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
9974 // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
9975 public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
9976 // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
9977 public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
9978 // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9979 public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
9980 // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
9981 public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
9982 // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
9983 public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
9984 // struct LDKCOption_u64Z UpdateAddHTLC_get_skimmed_fee_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
9985 public static native long UpdateAddHTLC_get_skimmed_fee_msat(long this_ptr);
9986 // void UpdateAddHTLC_set_skimmed_fee_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
9987 public static native void UpdateAddHTLC_set_skimmed_fee_msat(long this_ptr, long val);
9988 // struct LDKOnionPacket UpdateAddHTLC_get_onion_routing_packet(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
9989 public static native long UpdateAddHTLC_get_onion_routing_packet(long this_ptr);
9990 // void UpdateAddHTLC_set_onion_routing_packet(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKOnionPacket val);
9991 public static native void UpdateAddHTLC_set_onion_routing_packet(long this_ptr, long val);
9992 // struct LDKPublicKey UpdateAddHTLC_get_blinding_point(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
9993 public static native byte[] UpdateAddHTLC_get_blinding_point(long this_ptr);
9994 // void UpdateAddHTLC_set_blinding_point(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9995 public static native void UpdateAddHTLC_set_blinding_point(long this_ptr, byte[] val);
9996 // MUST_USE_RES struct LDKUpdateAddHTLC UpdateAddHTLC_new(struct LDKChannelId channel_id_arg, uint64_t htlc_id_arg, uint64_t amount_msat_arg, struct LDKThirtyTwoBytes payment_hash_arg, uint32_t cltv_expiry_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg, struct LDKOnionPacket onion_routing_packet_arg, struct LDKPublicKey blinding_point_arg);
9997 public static native long UpdateAddHTLC_new(long channel_id_arg, long htlc_id_arg, long amount_msat_arg, byte[] payment_hash_arg, int cltv_expiry_arg, long skimmed_fee_msat_arg, long onion_routing_packet_arg, byte[] blinding_point_arg);
9998 // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
9999 public static native long UpdateAddHTLC_clone_ptr(long arg);
10000 // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
10001 public static native long UpdateAddHTLC_clone(long orig);
10002 // uint64_t UpdateAddHTLC_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR o);
10003 public static native long UpdateAddHTLC_hash(long o);
10004 // bool UpdateAddHTLC_eq(const struct LDKUpdateAddHTLC *NONNULL_PTR a, const struct LDKUpdateAddHTLC *NONNULL_PTR b);
10005 public static native boolean UpdateAddHTLC_eq(long a, long b);
10006 // void OnionMessage_free(struct LDKOnionMessage this_obj);
10007 public static native void OnionMessage_free(long this_obj);
10008 // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
10009 public static native byte[] OnionMessage_get_blinding_point(long this_ptr);
10010 // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10011 public static native void OnionMessage_set_blinding_point(long this_ptr, byte[] val);
10012 // struct LDKPacket OnionMessage_get_onion_routing_packet(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
10013 public static native long OnionMessage_get_onion_routing_packet(long this_ptr);
10014 // void OnionMessage_set_onion_routing_packet(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPacket val);
10015 public static native void OnionMessage_set_onion_routing_packet(long this_ptr, long val);
10016 // MUST_USE_RES struct LDKOnionMessage OnionMessage_new(struct LDKPublicKey blinding_point_arg, struct LDKPacket onion_routing_packet_arg);
10017 public static native long OnionMessage_new(byte[] blinding_point_arg, long onion_routing_packet_arg);
10018 // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg);
10019 public static native long OnionMessage_clone_ptr(long arg);
10020 // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig);
10021 public static native long OnionMessage_clone(long orig);
10022 // uint64_t OnionMessage_hash(const struct LDKOnionMessage *NONNULL_PTR o);
10023 public static native long OnionMessage_hash(long o);
10024 // bool OnionMessage_eq(const struct LDKOnionMessage *NONNULL_PTR a, const struct LDKOnionMessage *NONNULL_PTR b);
10025 public static native boolean OnionMessage_eq(long a, long b);
10026 // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
10027 public static native void UpdateFulfillHTLC_free(long this_obj);
10028 // struct LDKChannelId UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
10029 public static native long UpdateFulfillHTLC_get_channel_id(long this_ptr);
10030 // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val);
10031 public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, long val);
10032 // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
10033 public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
10034 // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
10035 public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
10036 // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
10037 public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
10038 // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10039 public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
10040 // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKChannelId channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
10041 public static native long UpdateFulfillHTLC_new(long channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
10042 // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
10043 public static native long UpdateFulfillHTLC_clone_ptr(long arg);
10044 // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
10045 public static native long UpdateFulfillHTLC_clone(long orig);
10046 // uint64_t UpdateFulfillHTLC_hash(const struct LDKUpdateFulfillHTLC *NONNULL_PTR o);
10047 public static native long UpdateFulfillHTLC_hash(long o);
10048 // bool UpdateFulfillHTLC_eq(const struct LDKUpdateFulfillHTLC *NONNULL_PTR a, const struct LDKUpdateFulfillHTLC *NONNULL_PTR b);
10049 public static native boolean UpdateFulfillHTLC_eq(long a, long b);
10050 // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
10051 public static native void UpdateFailHTLC_free(long this_obj);
10052 // struct LDKChannelId UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
10053 public static native long UpdateFailHTLC_get_channel_id(long this_ptr);
10054 // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val);
10055 public static native void UpdateFailHTLC_set_channel_id(long this_ptr, long val);
10056 // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
10057 public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
10058 // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
10059 public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
10060 // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
10061 public static native long UpdateFailHTLC_clone_ptr(long arg);
10062 // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
10063 public static native long UpdateFailHTLC_clone(long orig);
10064 // uint64_t UpdateFailHTLC_hash(const struct LDKUpdateFailHTLC *NONNULL_PTR o);
10065 public static native long UpdateFailHTLC_hash(long o);
10066 // bool UpdateFailHTLC_eq(const struct LDKUpdateFailHTLC *NONNULL_PTR a, const struct LDKUpdateFailHTLC *NONNULL_PTR b);
10067 public static native boolean UpdateFailHTLC_eq(long a, long b);
10068 // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
10069 public static native void UpdateFailMalformedHTLC_free(long this_obj);
10070 // struct LDKChannelId UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
10071 public static native long UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
10072 // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val);
10073 public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, long val);
10074 // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
10075 public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
10076 // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
10077 public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
10078 // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
10079 public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
10080 // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
10081 public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
10082 // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
10083 public static native long UpdateFailMalformedHTLC_clone_ptr(long arg);
10084 // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
10085 public static native long UpdateFailMalformedHTLC_clone(long orig);
10086 // uint64_t UpdateFailMalformedHTLC_hash(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR o);
10087 public static native long UpdateFailMalformedHTLC_hash(long o);
10088 // bool UpdateFailMalformedHTLC_eq(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR a, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR b);
10089 public static native boolean UpdateFailMalformedHTLC_eq(long a, long b);
10090 // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
10091 public static native void CommitmentSigned_free(long this_obj);
10092 // struct LDKChannelId CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
10093 public static native long CommitmentSigned_get_channel_id(long this_ptr);
10094 // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKChannelId val);
10095 public static native void CommitmentSigned_set_channel_id(long this_ptr, long val);
10096 // struct LDKECDSASignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
10097 public static native byte[] CommitmentSigned_get_signature(long this_ptr);
10098 // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10099 public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
10100 // struct LDKCVec_ECDSASignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
10101 public static native byte[][] CommitmentSigned_get_htlc_signatures(long this_ptr);
10102 // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val);
10103 public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
10104 // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKChannelId channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg);
10105 public static native long CommitmentSigned_new(long channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
10106 // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
10107 public static native long CommitmentSigned_clone_ptr(long arg);
10108 // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
10109 public static native long CommitmentSigned_clone(long orig);
10110 // uint64_t CommitmentSigned_hash(const struct LDKCommitmentSigned *NONNULL_PTR o);
10111 public static native long CommitmentSigned_hash(long o);
10112 // bool CommitmentSigned_eq(const struct LDKCommitmentSigned *NONNULL_PTR a, const struct LDKCommitmentSigned *NONNULL_PTR b);
10113 public static native boolean CommitmentSigned_eq(long a, long b);
10114 // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
10115 public static native void RevokeAndACK_free(long this_obj);
10116 // struct LDKChannelId RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
10117 public static native long RevokeAndACK_get_channel_id(long this_ptr);
10118 // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKChannelId val);
10119 public static native void RevokeAndACK_set_channel_id(long this_ptr, long val);
10120 // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
10121 public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
10122 // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10123 public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
10124 // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
10125 public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
10126 // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10127 public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
10128 // MUST_USE_RES struct LDKRevokeAndACK RevokeAndACK_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes per_commitment_secret_arg, struct LDKPublicKey next_per_commitment_point_arg);
10129 public static native long RevokeAndACK_new(long channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
10130 // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
10131 public static native long RevokeAndACK_clone_ptr(long arg);
10132 // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
10133 public static native long RevokeAndACK_clone(long orig);
10134 // uint64_t RevokeAndACK_hash(const struct LDKRevokeAndACK *NONNULL_PTR o);
10135 public static native long RevokeAndACK_hash(long o);
10136 // bool RevokeAndACK_eq(const struct LDKRevokeAndACK *NONNULL_PTR a, const struct LDKRevokeAndACK *NONNULL_PTR b);
10137 public static native boolean RevokeAndACK_eq(long a, long b);
10138 // void UpdateFee_free(struct LDKUpdateFee this_obj);
10139 public static native void UpdateFee_free(long this_obj);
10140 // struct LDKChannelId UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
10141 public static native long UpdateFee_get_channel_id(long this_ptr);
10142 // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKChannelId val);
10143 public static native void UpdateFee_set_channel_id(long this_ptr, long val);
10144 // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
10145 public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
10146 // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
10147 public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
10148 // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKChannelId channel_id_arg, uint32_t feerate_per_kw_arg);
10149 public static native long UpdateFee_new(long channel_id_arg, int feerate_per_kw_arg);
10150 // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
10151 public static native long UpdateFee_clone_ptr(long arg);
10152 // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
10153 public static native long UpdateFee_clone(long orig);
10154 // uint64_t UpdateFee_hash(const struct LDKUpdateFee *NONNULL_PTR o);
10155 public static native long UpdateFee_hash(long o);
10156 // bool UpdateFee_eq(const struct LDKUpdateFee *NONNULL_PTR a, const struct LDKUpdateFee *NONNULL_PTR b);
10157 public static native boolean UpdateFee_eq(long a, long b);
10158 // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
10159 public static native void ChannelReestablish_free(long this_obj);
10160 // struct LDKChannelId ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
10161 public static native long ChannelReestablish_get_channel_id(long this_ptr);
10162 // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKChannelId val);
10163 public static native void ChannelReestablish_set_channel_id(long this_ptr, long val);
10164 // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
10165 public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
10166 // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
10167 public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
10168 // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
10169 public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
10170 // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
10171 public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
10172 // const uint8_t (*ChannelReestablish_get_your_last_per_commitment_secret(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
10173 public static native byte[] ChannelReestablish_get_your_last_per_commitment_secret(long this_ptr);
10174 // void ChannelReestablish_set_your_last_per_commitment_secret(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10175 public static native void ChannelReestablish_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
10176 // struct LDKPublicKey ChannelReestablish_get_my_current_per_commitment_point(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
10177 public static native byte[] ChannelReestablish_get_my_current_per_commitment_point(long this_ptr);
10178 // void ChannelReestablish_set_my_current_per_commitment_point(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10179 public static native void ChannelReestablish_set_my_current_per_commitment_point(long this_ptr, byte[] val);
10180 // struct LDKCOption_ThirtyTwoBytesZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
10181 public static native long ChannelReestablish_get_next_funding_txid(long this_ptr);
10182 // void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
10183 public static native void ChannelReestablish_set_next_funding_txid(long this_ptr, long val);
10184 // MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKChannelId channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg);
10185 public static native long ChannelReestablish_new(long 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);
10186 // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
10187 public static native long ChannelReestablish_clone_ptr(long arg);
10188 // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
10189 public static native long ChannelReestablish_clone(long orig);
10190 // uint64_t ChannelReestablish_hash(const struct LDKChannelReestablish *NONNULL_PTR o);
10191 public static native long ChannelReestablish_hash(long o);
10192 // bool ChannelReestablish_eq(const struct LDKChannelReestablish *NONNULL_PTR a, const struct LDKChannelReestablish *NONNULL_PTR b);
10193 public static native boolean ChannelReestablish_eq(long a, long b);
10194 // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
10195 public static native void AnnouncementSignatures_free(long this_obj);
10196 // struct LDKChannelId AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
10197 public static native long AnnouncementSignatures_get_channel_id(long this_ptr);
10198 // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKChannelId val);
10199 public static native void AnnouncementSignatures_set_channel_id(long this_ptr, long val);
10200 // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
10201 public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
10202 // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
10203 public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
10204 // struct LDKECDSASignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
10205 public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
10206 // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10207 public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
10208 // struct LDKECDSASignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
10209 public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
10210 // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10211 public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
10212 // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKChannelId channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg);
10213 public static native long AnnouncementSignatures_new(long channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
10214 // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
10215 public static native long AnnouncementSignatures_clone_ptr(long arg);
10216 // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
10217 public static native long AnnouncementSignatures_clone(long orig);
10218 // uint64_t AnnouncementSignatures_hash(const struct LDKAnnouncementSignatures *NONNULL_PTR o);
10219 public static native long AnnouncementSignatures_hash(long o);
10220 // bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b);
10221 public static native boolean AnnouncementSignatures_eq(long a, long b);
10222 // void SocketAddress_free(struct LDKSocketAddress this_ptr);
10223 public static native void SocketAddress_free(long this_ptr);
10224 // uint64_t SocketAddress_clone_ptr(LDKSocketAddress *NONNULL_PTR arg);
10225 public static native long SocketAddress_clone_ptr(long arg);
10226 // struct LDKSocketAddress SocketAddress_clone(const struct LDKSocketAddress *NONNULL_PTR orig);
10227 public static native long SocketAddress_clone(long orig);
10228 // struct LDKSocketAddress SocketAddress_tcp_ip_v4(struct LDKFourBytes addr, uint16_t port);
10229 public static native long SocketAddress_tcp_ip_v4(byte[] addr, short port);
10230 // struct LDKSocketAddress SocketAddress_tcp_ip_v6(struct LDKSixteenBytes addr, uint16_t port);
10231 public static native long SocketAddress_tcp_ip_v6(byte[] addr, short port);
10232 // struct LDKSocketAddress SocketAddress_onion_v2(struct LDKTwelveBytes a);
10233 public static native long SocketAddress_onion_v2(byte[] a);
10234 // struct LDKSocketAddress SocketAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
10235 public static native long SocketAddress_onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port);
10236 // struct LDKSocketAddress SocketAddress_hostname(struct LDKHostname hostname, uint16_t port);
10237 public static native long SocketAddress_hostname(long hostname, short port);
10238 // uint64_t SocketAddress_hash(const struct LDKSocketAddress *NONNULL_PTR o);
10239 public static native long SocketAddress_hash(long o);
10240 // bool SocketAddress_eq(const struct LDKSocketAddress *NONNULL_PTR a, const struct LDKSocketAddress *NONNULL_PTR b);
10241 public static native boolean SocketAddress_eq(long a, long b);
10242 // struct LDKCVec_u8Z SocketAddress_write(const struct LDKSocketAddress *NONNULL_PTR obj);
10243 public static native byte[] SocketAddress_write(long obj);
10244 // struct LDKCResult_SocketAddressDecodeErrorZ SocketAddress_read(struct LDKu8slice ser);
10245 public static native long SocketAddress_read(byte[] ser);
10246 // enum LDKSocketAddressParseError SocketAddressParseError_clone(const enum LDKSocketAddressParseError *NONNULL_PTR orig);
10247 public static native SocketAddressParseError SocketAddressParseError_clone(long orig);
10248 // enum LDKSocketAddressParseError SocketAddressParseError_socket_addr_parse(void);
10249 public static native SocketAddressParseError SocketAddressParseError_socket_addr_parse();
10250 // enum LDKSocketAddressParseError SocketAddressParseError_invalid_input(void);
10251 public static native SocketAddressParseError SocketAddressParseError_invalid_input();
10252 // enum LDKSocketAddressParseError SocketAddressParseError_invalid_port(void);
10253 public static native SocketAddressParseError SocketAddressParseError_invalid_port();
10254 // enum LDKSocketAddressParseError SocketAddressParseError_invalid_onion_v3(void);
10255 public static native SocketAddressParseError SocketAddressParseError_invalid_onion_v3();
10256 // uint64_t SocketAddressParseError_hash(const enum LDKSocketAddressParseError *NONNULL_PTR o);
10257 public static native long SocketAddressParseError_hash(long o);
10258 // bool SocketAddressParseError_eq(const enum LDKSocketAddressParseError *NONNULL_PTR a, const enum LDKSocketAddressParseError *NONNULL_PTR b);
10259 public static native boolean SocketAddressParseError_eq(long a, long b);
10260 // struct LDKStr SocketAddressParseError_to_str(const enum LDKSocketAddressParseError *NONNULL_PTR o);
10261 public static native String SocketAddressParseError_to_str(long o);
10262 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ parse_onion_address(struct LDKStr host, uint16_t port);
10263 public static native long parse_onion_address(String host, short port);
10264 // struct LDKStr SocketAddress_to_str(const struct LDKSocketAddress *NONNULL_PTR o);
10265 public static native String SocketAddress_to_str(long o);
10266 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ SocketAddress_from_str(struct LDKStr s);
10267 public static native long SocketAddress_from_str(String s);
10268 // void UnsignedGossipMessage_free(struct LDKUnsignedGossipMessage this_ptr);
10269 public static native void UnsignedGossipMessage_free(long this_ptr);
10270 // uint64_t UnsignedGossipMessage_clone_ptr(LDKUnsignedGossipMessage *NONNULL_PTR arg);
10271 public static native long UnsignedGossipMessage_clone_ptr(long arg);
10272 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_clone(const struct LDKUnsignedGossipMessage *NONNULL_PTR orig);
10273 public static native long UnsignedGossipMessage_clone(long orig);
10274 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_announcement(struct LDKUnsignedChannelAnnouncement a);
10275 public static native long UnsignedGossipMessage_channel_announcement(long a);
10276 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_update(struct LDKUnsignedChannelUpdate a);
10277 public static native long UnsignedGossipMessage_channel_update(long a);
10278 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_node_announcement(struct LDKUnsignedNodeAnnouncement a);
10279 public static native long UnsignedGossipMessage_node_announcement(long a);
10280 // struct LDKCVec_u8Z UnsignedGossipMessage_write(const struct LDKUnsignedGossipMessage *NONNULL_PTR obj);
10281 public static native byte[] UnsignedGossipMessage_write(long obj);
10282 // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
10283 public static native void UnsignedNodeAnnouncement_free(long this_obj);
10284 // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
10285 public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
10286 // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
10287 public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
10288 // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
10289 public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
10290 // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
10291 public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
10292 // struct LDKNodeId UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
10293 public static native long UnsignedNodeAnnouncement_get_node_id(long this_ptr);
10294 // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
10295 public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, long val);
10296 // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
10297 public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
10298 // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
10299 public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
10300 // struct LDKNodeAlias UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
10301 public static native long UnsignedNodeAnnouncement_get_alias(long this_ptr);
10302 // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
10303 public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, long val);
10304 // struct LDKCVec_SocketAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
10305 public static native long[] UnsignedNodeAnnouncement_get_addresses(long this_ptr);
10306 // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_SocketAddressZ val);
10307 public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
10308 // struct LDKCVec_u8Z UnsignedNodeAnnouncement_get_excess_address_data(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
10309 public static native byte[] UnsignedNodeAnnouncement_get_excess_address_data(long this_ptr);
10310 // void UnsignedNodeAnnouncement_set_excess_address_data(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
10311 public static native void UnsignedNodeAnnouncement_set_excess_address_data(long this_ptr, byte[] val);
10312 // struct LDKCVec_u8Z UnsignedNodeAnnouncement_get_excess_data(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
10313 public static native byte[] UnsignedNodeAnnouncement_get_excess_data(long this_ptr);
10314 // void UnsignedNodeAnnouncement_set_excess_data(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
10315 public static native void UnsignedNodeAnnouncement_set_excess_data(long this_ptr, byte[] val);
10316 // MUST_USE_RES struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_new(struct LDKNodeFeatures features_arg, uint32_t timestamp_arg, struct LDKNodeId node_id_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKCVec_SocketAddressZ addresses_arg, struct LDKCVec_u8Z excess_address_data_arg, struct LDKCVec_u8Z excess_data_arg);
10317 public static native long UnsignedNodeAnnouncement_new(long features_arg, int timestamp_arg, long node_id_arg, byte[] rgb_arg, long alias_arg, long[] addresses_arg, byte[] excess_address_data_arg, byte[] excess_data_arg);
10318 // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
10319 public static native long UnsignedNodeAnnouncement_clone_ptr(long arg);
10320 // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
10321 public static native long UnsignedNodeAnnouncement_clone(long orig);
10322 // uint64_t UnsignedNodeAnnouncement_hash(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR o);
10323 public static native long UnsignedNodeAnnouncement_hash(long o);
10324 // bool UnsignedNodeAnnouncement_eq(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR a, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR b);
10325 public static native boolean UnsignedNodeAnnouncement_eq(long a, long b);
10326 // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
10327 public static native void NodeAnnouncement_free(long this_obj);
10328 // struct LDKECDSASignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
10329 public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
10330 // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10331 public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
10332 // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
10333 public static native long NodeAnnouncement_get_contents(long this_ptr);
10334 // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
10335 public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
10336 // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
10337 public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
10338 // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
10339 public static native long NodeAnnouncement_clone_ptr(long arg);
10340 // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
10341 public static native long NodeAnnouncement_clone(long orig);
10342 // uint64_t NodeAnnouncement_hash(const struct LDKNodeAnnouncement *NONNULL_PTR o);
10343 public static native long NodeAnnouncement_hash(long o);
10344 // bool NodeAnnouncement_eq(const struct LDKNodeAnnouncement *NONNULL_PTR a, const struct LDKNodeAnnouncement *NONNULL_PTR b);
10345 public static native boolean NodeAnnouncement_eq(long a, long b);
10346 // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
10347 public static native void UnsignedChannelAnnouncement_free(long this_obj);
10348 // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
10349 public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
10350 // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
10351 public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
10352 // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
10353 public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
10354 // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10355 public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
10356 // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
10357 public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
10358 // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
10359 public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
10360 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
10361 public static native long UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
10362 // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
10363 public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, long val);
10364 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
10365 public static native long UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
10366 // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
10367 public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, long val);
10368 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
10369 public static native long UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
10370 // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
10371 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, long val);
10372 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
10373 public static native long UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
10374 // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
10375 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, long val);
10376 // struct LDKCVec_u8Z UnsignedChannelAnnouncement_get_excess_data(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
10377 public static native byte[] UnsignedChannelAnnouncement_get_excess_data(long this_ptr);
10378 // void UnsignedChannelAnnouncement_set_excess_data(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
10379 public static native void UnsignedChannelAnnouncement_set_excess_data(long this_ptr, byte[] val);
10380 // MUST_USE_RES struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_new(struct LDKChannelFeatures features_arg, struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, struct LDKNodeId node_id_1_arg, struct LDKNodeId node_id_2_arg, struct LDKNodeId bitcoin_key_1_arg, struct LDKNodeId bitcoin_key_2_arg, struct LDKCVec_u8Z excess_data_arg);
10381 public static native long UnsignedChannelAnnouncement_new(long features_arg, byte[] chain_hash_arg, long short_channel_id_arg, long node_id_1_arg, long node_id_2_arg, long bitcoin_key_1_arg, long bitcoin_key_2_arg, byte[] excess_data_arg);
10382 // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
10383 public static native long UnsignedChannelAnnouncement_clone_ptr(long arg);
10384 // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
10385 public static native long UnsignedChannelAnnouncement_clone(long orig);
10386 // uint64_t UnsignedChannelAnnouncement_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR o);
10387 public static native long UnsignedChannelAnnouncement_hash(long o);
10388 // bool UnsignedChannelAnnouncement_eq(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR a, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR b);
10389 public static native boolean UnsignedChannelAnnouncement_eq(long a, long b);
10390 // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
10391 public static native void ChannelAnnouncement_free(long this_obj);
10392 // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
10393 public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
10394 // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10395 public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
10396 // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
10397 public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
10398 // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10399 public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
10400 // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
10401 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
10402 // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10403 public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
10404 // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
10405 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
10406 // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10407 public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
10408 // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
10409 public static native long ChannelAnnouncement_get_contents(long this_ptr);
10410 // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
10411 public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
10412 // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKECDSASignature node_signature_1_arg, struct LDKECDSASignature node_signature_2_arg, struct LDKECDSASignature bitcoin_signature_1_arg, struct LDKECDSASignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg);
10413 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);
10414 // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
10415 public static native long ChannelAnnouncement_clone_ptr(long arg);
10416 // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
10417 public static native long ChannelAnnouncement_clone(long orig);
10418 // uint64_t ChannelAnnouncement_hash(const struct LDKChannelAnnouncement *NONNULL_PTR o);
10419 public static native long ChannelAnnouncement_hash(long o);
10420 // bool ChannelAnnouncement_eq(const struct LDKChannelAnnouncement *NONNULL_PTR a, const struct LDKChannelAnnouncement *NONNULL_PTR b);
10421 public static native boolean ChannelAnnouncement_eq(long a, long b);
10422 // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
10423 public static native void UnsignedChannelUpdate_free(long this_obj);
10424 // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
10425 public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
10426 // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10427 public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
10428 // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10429 public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
10430 // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
10431 public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
10432 // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10433 public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
10434 // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
10435 public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
10436 // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10437 public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
10438 // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
10439 public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
10440 // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10441 public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
10442 // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
10443 public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
10444 // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10445 public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
10446 // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
10447 public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
10448 // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10449 public static native long UnsignedChannelUpdate_get_htlc_maximum_msat(long this_ptr);
10450 // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
10451 public static native void UnsignedChannelUpdate_set_htlc_maximum_msat(long this_ptr, long val);
10452 // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10453 public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
10454 // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
10455 public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
10456 // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10457 public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
10458 // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
10459 public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
10460 // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
10461 public static native byte[] UnsignedChannelUpdate_get_excess_data(long this_ptr);
10462 // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
10463 public static native void UnsignedChannelUpdate_set_excess_data(long this_ptr, byte[] val);
10464 // 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);
10465 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);
10466 // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
10467 public static native long UnsignedChannelUpdate_clone_ptr(long arg);
10468 // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
10469 public static native long UnsignedChannelUpdate_clone(long orig);
10470 // uint64_t UnsignedChannelUpdate_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR o);
10471 public static native long UnsignedChannelUpdate_hash(long o);
10472 // bool UnsignedChannelUpdate_eq(const struct LDKUnsignedChannelUpdate *NONNULL_PTR a, const struct LDKUnsignedChannelUpdate *NONNULL_PTR b);
10473 public static native boolean UnsignedChannelUpdate_eq(long a, long b);
10474 // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
10475 public static native void ChannelUpdate_free(long this_obj);
10476 // struct LDKECDSASignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
10477 public static native byte[] ChannelUpdate_get_signature(long this_ptr);
10478 // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10479 public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
10480 // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
10481 public static native long ChannelUpdate_get_contents(long this_ptr);
10482 // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
10483 public static native void ChannelUpdate_set_contents(long this_ptr, long val);
10484 // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
10485 public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
10486 // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
10487 public static native long ChannelUpdate_clone_ptr(long arg);
10488 // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
10489 public static native long ChannelUpdate_clone(long orig);
10490 // uint64_t ChannelUpdate_hash(const struct LDKChannelUpdate *NONNULL_PTR o);
10491 public static native long ChannelUpdate_hash(long o);
10492 // bool ChannelUpdate_eq(const struct LDKChannelUpdate *NONNULL_PTR a, const struct LDKChannelUpdate *NONNULL_PTR b);
10493 public static native boolean ChannelUpdate_eq(long a, long b);
10494 // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
10495 public static native void QueryChannelRange_free(long this_obj);
10496 // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
10497 public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
10498 // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10499 public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
10500 // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
10501 public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
10502 // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
10503 public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
10504 // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
10505 public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
10506 // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
10507 public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
10508 // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
10509 public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
10510 // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
10511 public static native long QueryChannelRange_clone_ptr(long arg);
10512 // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
10513 public static native long QueryChannelRange_clone(long orig);
10514 // uint64_t QueryChannelRange_hash(const struct LDKQueryChannelRange *NONNULL_PTR o);
10515 public static native long QueryChannelRange_hash(long o);
10516 // bool QueryChannelRange_eq(const struct LDKQueryChannelRange *NONNULL_PTR a, const struct LDKQueryChannelRange *NONNULL_PTR b);
10517 public static native boolean QueryChannelRange_eq(long a, long b);
10518 // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
10519 public static native void ReplyChannelRange_free(long this_obj);
10520 // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
10521 public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
10522 // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10523 public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
10524 // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
10525 public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
10526 // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
10527 public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
10528 // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
10529 public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
10530 // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
10531 public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
10532 // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
10533 public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
10534 // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
10535 public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
10536 // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
10537 public static native long[] ReplyChannelRange_get_short_channel_ids(long this_ptr);
10538 // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
10539 public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
10540 // 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);
10541 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);
10542 // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
10543 public static native long ReplyChannelRange_clone_ptr(long arg);
10544 // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
10545 public static native long ReplyChannelRange_clone(long orig);
10546 // uint64_t ReplyChannelRange_hash(const struct LDKReplyChannelRange *NONNULL_PTR o);
10547 public static native long ReplyChannelRange_hash(long o);
10548 // bool ReplyChannelRange_eq(const struct LDKReplyChannelRange *NONNULL_PTR a, const struct LDKReplyChannelRange *NONNULL_PTR b);
10549 public static native boolean ReplyChannelRange_eq(long a, long b);
10550 // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
10551 public static native void QueryShortChannelIds_free(long this_obj);
10552 // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
10553 public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
10554 // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10555 public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
10556 // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr);
10557 public static native long[] QueryShortChannelIds_get_short_channel_ids(long this_ptr);
10558 // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
10559 public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
10560 // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
10561 public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
10562 // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
10563 public static native long QueryShortChannelIds_clone_ptr(long arg);
10564 // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
10565 public static native long QueryShortChannelIds_clone(long orig);
10566 // uint64_t QueryShortChannelIds_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR o);
10567 public static native long QueryShortChannelIds_hash(long o);
10568 // bool QueryShortChannelIds_eq(const struct LDKQueryShortChannelIds *NONNULL_PTR a, const struct LDKQueryShortChannelIds *NONNULL_PTR b);
10569 public static native boolean QueryShortChannelIds_eq(long a, long b);
10570 // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
10571 public static native void ReplyShortChannelIdsEnd_free(long this_obj);
10572 // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
10573 public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
10574 // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10575 public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
10576 // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
10577 public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
10578 // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
10579 public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
10580 // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
10581 public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
10582 // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
10583 public static native long ReplyShortChannelIdsEnd_clone_ptr(long arg);
10584 // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
10585 public static native long ReplyShortChannelIdsEnd_clone(long orig);
10586 // uint64_t ReplyShortChannelIdsEnd_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR o);
10587 public static native long ReplyShortChannelIdsEnd_hash(long o);
10588 // bool ReplyShortChannelIdsEnd_eq(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR a, const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR b);
10589 public static native boolean ReplyShortChannelIdsEnd_eq(long a, long b);
10590 // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
10591 public static native void GossipTimestampFilter_free(long this_obj);
10592 // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
10593 public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
10594 // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10595 public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
10596 // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
10597 public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
10598 // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
10599 public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
10600 // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
10601 public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
10602 // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
10603 public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
10604 // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
10605 public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
10606 // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
10607 public static native long GossipTimestampFilter_clone_ptr(long arg);
10608 // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
10609 public static native long GossipTimestampFilter_clone(long orig);
10610 // uint64_t GossipTimestampFilter_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR o);
10611 public static native long GossipTimestampFilter_hash(long o);
10612 // bool GossipTimestampFilter_eq(const struct LDKGossipTimestampFilter *NONNULL_PTR a, const struct LDKGossipTimestampFilter *NONNULL_PTR b);
10613 public static native boolean GossipTimestampFilter_eq(long a, long b);
10614 // void ErrorAction_free(struct LDKErrorAction this_ptr);
10615 public static native void ErrorAction_free(long this_ptr);
10616 // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
10617 public static native long ErrorAction_clone_ptr(long arg);
10618 // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
10619 public static native long ErrorAction_clone(long orig);
10620 // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
10621 public static native long ErrorAction_disconnect_peer(long msg);
10622 // struct LDKErrorAction ErrorAction_disconnect_peer_with_warning(struct LDKWarningMessage msg);
10623 public static native long ErrorAction_disconnect_peer_with_warning(long msg);
10624 // struct LDKErrorAction ErrorAction_ignore_error(void);
10625 public static native long ErrorAction_ignore_error();
10626 // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
10627 public static native long ErrorAction_ignore_and_log(Level a);
10628 // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
10629 public static native long ErrorAction_ignore_duplicate_gossip();
10630 // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
10631 public static native long ErrorAction_send_error_message(long msg);
10632 // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
10633 public static native long ErrorAction_send_warning_message(long msg, Level log_level);
10634 // uint64_t ErrorAction_hash(const struct LDKErrorAction *NONNULL_PTR o);
10635 public static native long ErrorAction_hash(long o);
10636 // void LightningError_free(struct LDKLightningError this_obj);
10637 public static native void LightningError_free(long this_obj);
10638 // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
10639 public static native String LightningError_get_err(long this_ptr);
10640 // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
10641 public static native void LightningError_set_err(long this_ptr, String val);
10642 // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
10643 public static native long LightningError_get_action(long this_ptr);
10644 // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
10645 public static native void LightningError_set_action(long this_ptr, long val);
10646 // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
10647 public static native long LightningError_new(String err_arg, long action_arg);
10648 // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
10649 public static native long LightningError_clone_ptr(long arg);
10650 // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
10651 public static native long LightningError_clone(long orig);
10652 // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
10653 public static native void CommitmentUpdate_free(long this_obj);
10654 // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
10655 public static native long[] CommitmentUpdate_get_update_add_htlcs(long this_ptr);
10656 // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
10657 public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
10658 // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
10659 public static native long[] CommitmentUpdate_get_update_fulfill_htlcs(long this_ptr);
10660 // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
10661 public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
10662 // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
10663 public static native long[] CommitmentUpdate_get_update_fail_htlcs(long this_ptr);
10664 // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
10665 public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
10666 // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
10667 public static native long[] CommitmentUpdate_get_update_fail_malformed_htlcs(long this_ptr);
10668 // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
10669 public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
10670 // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
10671 public static native long CommitmentUpdate_get_update_fee(long this_ptr);
10672 // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
10673 public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
10674 // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
10675 public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
10676 // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
10677 public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
10678 // 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);
10679 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);
10680 // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
10681 public static native long CommitmentUpdate_clone_ptr(long arg);
10682 // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
10683 public static native long CommitmentUpdate_clone(long orig);
10684 // uint64_t CommitmentUpdate_hash(const struct LDKCommitmentUpdate *NONNULL_PTR o);
10685 public static native long CommitmentUpdate_hash(long o);
10686 // bool CommitmentUpdate_eq(const struct LDKCommitmentUpdate *NONNULL_PTR a, const struct LDKCommitmentUpdate *NONNULL_PTR b);
10687 public static native boolean CommitmentUpdate_eq(long a, long b);
10688 // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
10689 public static native void ChannelMessageHandler_free(long this_ptr);
10690 // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
10691 public static native void RoutingMessageHandler_free(long this_ptr);
10692 // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr);
10693 public static native void OnionMessageHandler_free(long this_ptr);
10694 // void FinalOnionHopData_free(struct LDKFinalOnionHopData this_obj);
10695 public static native void FinalOnionHopData_free(long this_obj);
10696 // const uint8_t (*FinalOnionHopData_get_payment_secret(const struct LDKFinalOnionHopData *NONNULL_PTR this_ptr))[32];
10697 public static native byte[] FinalOnionHopData_get_payment_secret(long this_ptr);
10698 // void FinalOnionHopData_set_payment_secret(struct LDKFinalOnionHopData *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10699 public static native void FinalOnionHopData_set_payment_secret(long this_ptr, byte[] val);
10700 // uint64_t FinalOnionHopData_get_total_msat(const struct LDKFinalOnionHopData *NONNULL_PTR this_ptr);
10701 public static native long FinalOnionHopData_get_total_msat(long this_ptr);
10702 // void FinalOnionHopData_set_total_msat(struct LDKFinalOnionHopData *NONNULL_PTR this_ptr, uint64_t val);
10703 public static native void FinalOnionHopData_set_total_msat(long this_ptr, long val);
10704 // MUST_USE_RES struct LDKFinalOnionHopData FinalOnionHopData_new(struct LDKThirtyTwoBytes payment_secret_arg, uint64_t total_msat_arg);
10705 public static native long FinalOnionHopData_new(byte[] payment_secret_arg, long total_msat_arg);
10706 // uint64_t FinalOnionHopData_clone_ptr(LDKFinalOnionHopData *NONNULL_PTR arg);
10707 public static native long FinalOnionHopData_clone_ptr(long arg);
10708 // struct LDKFinalOnionHopData FinalOnionHopData_clone(const struct LDKFinalOnionHopData *NONNULL_PTR orig);
10709 public static native long FinalOnionHopData_clone(long orig);
10710 // void OnionPacket_free(struct LDKOnionPacket this_obj);
10711 public static native void OnionPacket_free(long this_obj);
10712 // uint8_t OnionPacket_get_version(const struct LDKOnionPacket *NONNULL_PTR this_ptr);
10713 public static native byte OnionPacket_get_version(long this_ptr);
10714 // void OnionPacket_set_version(struct LDKOnionPacket *NONNULL_PTR this_ptr, uint8_t val);
10715 public static native void OnionPacket_set_version(long this_ptr, byte val);
10716 // struct LDKCResult_PublicKeySecp256k1ErrorZ OnionPacket_get_public_key(const struct LDKOnionPacket *NONNULL_PTR this_ptr);
10717 public static native long OnionPacket_get_public_key(long this_ptr);
10718 // void OnionPacket_set_public_key(struct LDKOnionPacket *NONNULL_PTR this_ptr, struct LDKCResult_PublicKeySecp256k1ErrorZ val);
10719 public static native void OnionPacket_set_public_key(long this_ptr, long val);
10720 // const uint8_t (*OnionPacket_get_hmac(const struct LDKOnionPacket *NONNULL_PTR this_ptr))[32];
10721 public static native byte[] OnionPacket_get_hmac(long this_ptr);
10722 // void OnionPacket_set_hmac(struct LDKOnionPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10723 public static native void OnionPacket_set_hmac(long this_ptr, byte[] val);
10724 // uint64_t OnionPacket_clone_ptr(LDKOnionPacket *NONNULL_PTR arg);
10725 public static native long OnionPacket_clone_ptr(long arg);
10726 // struct LDKOnionPacket OnionPacket_clone(const struct LDKOnionPacket *NONNULL_PTR orig);
10727 public static native long OnionPacket_clone(long orig);
10728 // uint64_t OnionPacket_hash(const struct LDKOnionPacket *NONNULL_PTR o);
10729 public static native long OnionPacket_hash(long o);
10730 // bool OnionPacket_eq(const struct LDKOnionPacket *NONNULL_PTR a, const struct LDKOnionPacket *NONNULL_PTR b);
10731 public static native boolean OnionPacket_eq(long a, long b);
10732 // void TrampolineOnionPacket_free(struct LDKTrampolineOnionPacket this_obj);
10733 public static native void TrampolineOnionPacket_free(long this_obj);
10734 // uint8_t TrampolineOnionPacket_get_version(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr);
10735 public static native byte TrampolineOnionPacket_get_version(long this_ptr);
10736 // void TrampolineOnionPacket_set_version(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, uint8_t val);
10737 public static native void TrampolineOnionPacket_set_version(long this_ptr, byte val);
10738 // struct LDKPublicKey TrampolineOnionPacket_get_public_key(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr);
10739 public static native byte[] TrampolineOnionPacket_get_public_key(long this_ptr);
10740 // void TrampolineOnionPacket_set_public_key(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10741 public static native void TrampolineOnionPacket_set_public_key(long this_ptr, byte[] val);
10742 // struct LDKCVec_u8Z TrampolineOnionPacket_get_hop_data(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr);
10743 public static native byte[] TrampolineOnionPacket_get_hop_data(long this_ptr);
10744 // void TrampolineOnionPacket_set_hop_data(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
10745 public static native void TrampolineOnionPacket_set_hop_data(long this_ptr, byte[] val);
10746 // const uint8_t (*TrampolineOnionPacket_get_hmac(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr))[32];
10747 public static native byte[] TrampolineOnionPacket_get_hmac(long this_ptr);
10748 // void TrampolineOnionPacket_set_hmac(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10749 public static native void TrampolineOnionPacket_set_hmac(long this_ptr, byte[] val);
10750 // MUST_USE_RES struct LDKTrampolineOnionPacket TrampolineOnionPacket_new(uint8_t version_arg, struct LDKPublicKey public_key_arg, struct LDKCVec_u8Z hop_data_arg, struct LDKThirtyTwoBytes hmac_arg);
10751 public static native long TrampolineOnionPacket_new(byte version_arg, byte[] public_key_arg, byte[] hop_data_arg, byte[] hmac_arg);
10752 // uint64_t TrampolineOnionPacket_clone_ptr(LDKTrampolineOnionPacket *NONNULL_PTR arg);
10753 public static native long TrampolineOnionPacket_clone_ptr(long arg);
10754 // struct LDKTrampolineOnionPacket TrampolineOnionPacket_clone(const struct LDKTrampolineOnionPacket *NONNULL_PTR orig);
10755 public static native long TrampolineOnionPacket_clone(long orig);
10756 // uint64_t TrampolineOnionPacket_hash(const struct LDKTrampolineOnionPacket *NONNULL_PTR o);
10757 public static native long TrampolineOnionPacket_hash(long o);
10758 // bool TrampolineOnionPacket_eq(const struct LDKTrampolineOnionPacket *NONNULL_PTR a, const struct LDKTrampolineOnionPacket *NONNULL_PTR b);
10759 public static native boolean TrampolineOnionPacket_eq(long a, long b);
10760 // struct LDKCVec_u8Z TrampolineOnionPacket_write(const struct LDKTrampolineOnionPacket *NONNULL_PTR obj);
10761 public static native byte[] TrampolineOnionPacket_write(long obj);
10762 // struct LDKStr DecodeError_to_str(const struct LDKDecodeError *NONNULL_PTR o);
10763 public static native String DecodeError_to_str(long o);
10764 // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
10765 public static native byte[] AcceptChannel_write(long obj);
10766 // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
10767 public static native long AcceptChannel_read(byte[] ser);
10768 // struct LDKCVec_u8Z AcceptChannelV2_write(const struct LDKAcceptChannelV2 *NONNULL_PTR obj);
10769 public static native byte[] AcceptChannelV2_write(long obj);
10770 // struct LDKCResult_AcceptChannelV2DecodeErrorZ AcceptChannelV2_read(struct LDKu8slice ser);
10771 public static native long AcceptChannelV2_read(byte[] ser);
10772 // struct LDKCVec_u8Z Stfu_write(const struct LDKStfu *NONNULL_PTR obj);
10773 public static native byte[] Stfu_write(long obj);
10774 // struct LDKCResult_StfuDecodeErrorZ Stfu_read(struct LDKu8slice ser);
10775 public static native long Stfu_read(byte[] ser);
10776 // struct LDKCVec_u8Z Splice_write(const struct LDKSplice *NONNULL_PTR obj);
10777 public static native byte[] Splice_write(long obj);
10778 // struct LDKCResult_SpliceDecodeErrorZ Splice_read(struct LDKu8slice ser);
10779 public static native long Splice_read(byte[] ser);
10780 // struct LDKCVec_u8Z SpliceAck_write(const struct LDKSpliceAck *NONNULL_PTR obj);
10781 public static native byte[] SpliceAck_write(long obj);
10782 // struct LDKCResult_SpliceAckDecodeErrorZ SpliceAck_read(struct LDKu8slice ser);
10783 public static native long SpliceAck_read(byte[] ser);
10784 // struct LDKCVec_u8Z SpliceLocked_write(const struct LDKSpliceLocked *NONNULL_PTR obj);
10785 public static native byte[] SpliceLocked_write(long obj);
10786 // struct LDKCResult_SpliceLockedDecodeErrorZ SpliceLocked_read(struct LDKu8slice ser);
10787 public static native long SpliceLocked_read(byte[] ser);
10788 // struct LDKCVec_u8Z TxAddInput_write(const struct LDKTxAddInput *NONNULL_PTR obj);
10789 public static native byte[] TxAddInput_write(long obj);
10790 // struct LDKCResult_TxAddInputDecodeErrorZ TxAddInput_read(struct LDKu8slice ser);
10791 public static native long TxAddInput_read(byte[] ser);
10792 // struct LDKCVec_u8Z TxAddOutput_write(const struct LDKTxAddOutput *NONNULL_PTR obj);
10793 public static native byte[] TxAddOutput_write(long obj);
10794 // struct LDKCResult_TxAddOutputDecodeErrorZ TxAddOutput_read(struct LDKu8slice ser);
10795 public static native long TxAddOutput_read(byte[] ser);
10796 // struct LDKCVec_u8Z TxRemoveInput_write(const struct LDKTxRemoveInput *NONNULL_PTR obj);
10797 public static native byte[] TxRemoveInput_write(long obj);
10798 // struct LDKCResult_TxRemoveInputDecodeErrorZ TxRemoveInput_read(struct LDKu8slice ser);
10799 public static native long TxRemoveInput_read(byte[] ser);
10800 // struct LDKCVec_u8Z TxRemoveOutput_write(const struct LDKTxRemoveOutput *NONNULL_PTR obj);
10801 public static native byte[] TxRemoveOutput_write(long obj);
10802 // struct LDKCResult_TxRemoveOutputDecodeErrorZ TxRemoveOutput_read(struct LDKu8slice ser);
10803 public static native long TxRemoveOutput_read(byte[] ser);
10804 // struct LDKCVec_u8Z TxComplete_write(const struct LDKTxComplete *NONNULL_PTR obj);
10805 public static native byte[] TxComplete_write(long obj);
10806 // struct LDKCResult_TxCompleteDecodeErrorZ TxComplete_read(struct LDKu8slice ser);
10807 public static native long TxComplete_read(byte[] ser);
10808 // struct LDKCVec_u8Z TxSignatures_write(const struct LDKTxSignatures *NONNULL_PTR obj);
10809 public static native byte[] TxSignatures_write(long obj);
10810 // struct LDKCResult_TxSignaturesDecodeErrorZ TxSignatures_read(struct LDKu8slice ser);
10811 public static native long TxSignatures_read(byte[] ser);
10812 // struct LDKCVec_u8Z TxInitRbf_write(const struct LDKTxInitRbf *NONNULL_PTR obj);
10813 public static native byte[] TxInitRbf_write(long obj);
10814 // struct LDKCResult_TxInitRbfDecodeErrorZ TxInitRbf_read(struct LDKu8slice ser);
10815 public static native long TxInitRbf_read(byte[] ser);
10816 // struct LDKCVec_u8Z TxAckRbf_write(const struct LDKTxAckRbf *NONNULL_PTR obj);
10817 public static native byte[] TxAckRbf_write(long obj);
10818 // struct LDKCResult_TxAckRbfDecodeErrorZ TxAckRbf_read(struct LDKu8slice ser);
10819 public static native long TxAckRbf_read(byte[] ser);
10820 // struct LDKCVec_u8Z TxAbort_write(const struct LDKTxAbort *NONNULL_PTR obj);
10821 public static native byte[] TxAbort_write(long obj);
10822 // struct LDKCResult_TxAbortDecodeErrorZ TxAbort_read(struct LDKu8slice ser);
10823 public static native long TxAbort_read(byte[] ser);
10824 // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
10825 public static native byte[] AnnouncementSignatures_write(long obj);
10826 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
10827 public static native long AnnouncementSignatures_read(byte[] ser);
10828 // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
10829 public static native byte[] ChannelReestablish_write(long obj);
10830 // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
10831 public static native long ChannelReestablish_read(byte[] ser);
10832 // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
10833 public static native byte[] ClosingSigned_write(long obj);
10834 // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
10835 public static native long ClosingSigned_read(byte[] ser);
10836 // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
10837 public static native byte[] ClosingSignedFeeRange_write(long obj);
10838 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
10839 public static native long ClosingSignedFeeRange_read(byte[] ser);
10840 // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
10841 public static native byte[] CommitmentSigned_write(long obj);
10842 // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
10843 public static native long CommitmentSigned_read(byte[] ser);
10844 // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
10845 public static native byte[] FundingCreated_write(long obj);
10846 // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
10847 public static native long FundingCreated_read(byte[] ser);
10848 // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
10849 public static native byte[] FundingSigned_write(long obj);
10850 // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
10851 public static native long FundingSigned_read(byte[] ser);
10852 // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
10853 public static native byte[] ChannelReady_write(long obj);
10854 // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
10855 public static native long ChannelReady_read(byte[] ser);
10856 // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
10857 public static native byte[] Init_write(long obj);
10858 // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
10859 public static native long Init_read(byte[] ser);
10860 // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
10861 public static native byte[] OpenChannel_write(long obj);
10862 // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
10863 public static native long OpenChannel_read(byte[] ser);
10864 // struct LDKCVec_u8Z OpenChannelV2_write(const struct LDKOpenChannelV2 *NONNULL_PTR obj);
10865 public static native byte[] OpenChannelV2_write(long obj);
10866 // struct LDKCResult_OpenChannelV2DecodeErrorZ OpenChannelV2_read(struct LDKu8slice ser);
10867 public static native long OpenChannelV2_read(byte[] ser);
10868 // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
10869 public static native byte[] RevokeAndACK_write(long obj);
10870 // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
10871 public static native long RevokeAndACK_read(byte[] ser);
10872 // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
10873 public static native byte[] Shutdown_write(long obj);
10874 // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
10875 public static native long Shutdown_read(byte[] ser);
10876 // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
10877 public static native byte[] UpdateFailHTLC_write(long obj);
10878 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
10879 public static native long UpdateFailHTLC_read(byte[] ser);
10880 // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
10881 public static native byte[] UpdateFailMalformedHTLC_write(long obj);
10882 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
10883 public static native long UpdateFailMalformedHTLC_read(byte[] ser);
10884 // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
10885 public static native byte[] UpdateFee_write(long obj);
10886 // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
10887 public static native long UpdateFee_read(byte[] ser);
10888 // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
10889 public static native byte[] UpdateFulfillHTLC_write(long obj);
10890 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
10891 public static native long UpdateFulfillHTLC_read(byte[] ser);
10892 // struct LDKCVec_u8Z OnionPacket_write(const struct LDKOnionPacket *NONNULL_PTR obj);
10893 public static native byte[] OnionPacket_write(long obj);
10894 // struct LDKCResult_OnionPacketDecodeErrorZ OnionPacket_read(struct LDKu8slice ser);
10895 public static native long OnionPacket_read(byte[] ser);
10896 // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
10897 public static native byte[] UpdateAddHTLC_write(long obj);
10898 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
10899 public static native long UpdateAddHTLC_read(byte[] ser);
10900 // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser);
10901 public static native long OnionMessage_read(byte[] ser);
10902 // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj);
10903 public static native byte[] OnionMessage_write(long obj);
10904 // struct LDKCVec_u8Z FinalOnionHopData_write(const struct LDKFinalOnionHopData *NONNULL_PTR obj);
10905 public static native byte[] FinalOnionHopData_write(long obj);
10906 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ FinalOnionHopData_read(struct LDKu8slice ser);
10907 public static native long FinalOnionHopData_read(byte[] ser);
10908 // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
10909 public static native byte[] Ping_write(long obj);
10910 // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
10911 public static native long Ping_read(byte[] ser);
10912 // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
10913 public static native byte[] Pong_write(long obj);
10914 // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
10915 public static native long Pong_read(byte[] ser);
10916 // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
10917 public static native byte[] UnsignedChannelAnnouncement_write(long obj);
10918 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
10919 public static native long UnsignedChannelAnnouncement_read(byte[] ser);
10920 // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
10921 public static native byte[] ChannelAnnouncement_write(long obj);
10922 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
10923 public static native long ChannelAnnouncement_read(byte[] ser);
10924 // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
10925 public static native byte[] UnsignedChannelUpdate_write(long obj);
10926 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
10927 public static native long UnsignedChannelUpdate_read(byte[] ser);
10928 // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
10929 public static native byte[] ChannelUpdate_write(long obj);
10930 // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
10931 public static native long ChannelUpdate_read(byte[] ser);
10932 // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
10933 public static native byte[] ErrorMessage_write(long obj);
10934 // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
10935 public static native long ErrorMessage_read(byte[] ser);
10936 // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
10937 public static native byte[] WarningMessage_write(long obj);
10938 // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
10939 public static native long WarningMessage_read(byte[] ser);
10940 // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
10941 public static native byte[] UnsignedNodeAnnouncement_write(long obj);
10942 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
10943 public static native long UnsignedNodeAnnouncement_read(byte[] ser);
10944 // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
10945 public static native byte[] NodeAnnouncement_write(long obj);
10946 // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
10947 public static native long NodeAnnouncement_read(byte[] ser);
10948 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
10949 public static native long QueryShortChannelIds_read(byte[] ser);
10950 // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
10951 public static native byte[] QueryShortChannelIds_write(long obj);
10952 // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
10953 public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
10954 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
10955 public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
10956 // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
10957 public static native int QueryChannelRange_end_blocknum(long this_arg);
10958 // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
10959 public static native byte[] QueryChannelRange_write(long obj);
10960 // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
10961 public static native long QueryChannelRange_read(byte[] ser);
10962 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
10963 public static native long ReplyChannelRange_read(byte[] ser);
10964 // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
10965 public static native byte[] ReplyChannelRange_write(long obj);
10966 // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
10967 public static native byte[] GossipTimestampFilter_write(long obj);
10968 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
10969 public static native long GossipTimestampFilter_read(byte[] ser);
10970 // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
10971 public static native void CustomMessageHandler_free(long this_ptr);
10972 // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
10973 public static native void IgnoringMessageHandler_free(long this_obj);
10974 // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
10975 public static native long IgnoringMessageHandler_new();
10976 // struct LDKEventsProvider IgnoringMessageHandler_as_EventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10977 public static native long IgnoringMessageHandler_as_EventsProvider(long this_arg);
10978 // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10979 public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
10980 // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10981 public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
10982 // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10983 public static native long IgnoringMessageHandler_as_OnionMessageHandler(long this_arg);
10984 // struct LDKOffersMessageHandler IgnoringMessageHandler_as_OffersMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10985 public static native long IgnoringMessageHandler_as_OffersMessageHandler(long this_arg);
10986 // struct LDKCustomOnionMessageHandler IgnoringMessageHandler_as_CustomOnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10987 public static native long IgnoringMessageHandler_as_CustomOnionMessageHandler(long this_arg);
10988 // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10989 public static native long IgnoringMessageHandler_as_CustomMessageReader(long this_arg);
10990 // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
10991 public static native long IgnoringMessageHandler_as_CustomMessageHandler(long this_arg);
10992 // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
10993 public static native void ErroringMessageHandler_free(long this_obj);
10994 // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
10995 public static native long ErroringMessageHandler_new();
10996 // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
10997 public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
10998 // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
10999 public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
11000 // void MessageHandler_free(struct LDKMessageHandler this_obj);
11001 public static native void MessageHandler_free(long this_obj);
11002 // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
11003 public static native long MessageHandler_get_chan_handler(long this_ptr);
11004 // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
11005 public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
11006 // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
11007 public static native long MessageHandler_get_route_handler(long this_ptr);
11008 // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
11009 public static native void MessageHandler_set_route_handler(long this_ptr, long val);
11010 // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
11011 public static native long MessageHandler_get_onion_message_handler(long this_ptr);
11012 // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val);
11013 public static native void MessageHandler_set_onion_message_handler(long this_ptr, long val);
11014 // const struct LDKCustomMessageHandler *MessageHandler_get_custom_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
11015 public static native long MessageHandler_get_custom_message_handler(long this_ptr);
11016 // void MessageHandler_set_custom_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKCustomMessageHandler val);
11017 public static native void MessageHandler_set_custom_message_handler(long this_ptr, long val);
11018 // 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);
11019 public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg, long onion_message_handler_arg, long custom_message_handler_arg);
11020 // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
11021 public static native long SocketDescriptor_clone_ptr(long arg);
11022 // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
11023 public static native long SocketDescriptor_clone(long orig);
11024 // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
11025 public static native void SocketDescriptor_free(long this_ptr);
11026 // void PeerDetails_free(struct LDKPeerDetails this_obj);
11027 public static native void PeerDetails_free(long this_obj);
11028 // struct LDKPublicKey PeerDetails_get_counterparty_node_id(const struct LDKPeerDetails *NONNULL_PTR this_ptr);
11029 public static native byte[] PeerDetails_get_counterparty_node_id(long this_ptr);
11030 // void PeerDetails_set_counterparty_node_id(struct LDKPeerDetails *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11031 public static native void PeerDetails_set_counterparty_node_id(long this_ptr, byte[] val);
11032 // struct LDKCOption_SocketAddressZ PeerDetails_get_socket_address(const struct LDKPeerDetails *NONNULL_PTR this_ptr);
11033 public static native long PeerDetails_get_socket_address(long this_ptr);
11034 // void PeerDetails_set_socket_address(struct LDKPeerDetails *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val);
11035 public static native void PeerDetails_set_socket_address(long this_ptr, long val);
11036 // struct LDKInitFeatures PeerDetails_get_init_features(const struct LDKPeerDetails *NONNULL_PTR this_ptr);
11037 public static native long PeerDetails_get_init_features(long this_ptr);
11038 // void PeerDetails_set_init_features(struct LDKPeerDetails *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
11039 public static native void PeerDetails_set_init_features(long this_ptr, long val);
11040 // bool PeerDetails_get_is_inbound_connection(const struct LDKPeerDetails *NONNULL_PTR this_ptr);
11041 public static native boolean PeerDetails_get_is_inbound_connection(long this_ptr);
11042 // void PeerDetails_set_is_inbound_connection(struct LDKPeerDetails *NONNULL_PTR this_ptr, bool val);
11043 public static native void PeerDetails_set_is_inbound_connection(long this_ptr, boolean val);
11044 // MUST_USE_RES struct LDKPeerDetails PeerDetails_new(struct LDKPublicKey counterparty_node_id_arg, struct LDKCOption_SocketAddressZ socket_address_arg, struct LDKInitFeatures init_features_arg, bool is_inbound_connection_arg);
11045 public static native long PeerDetails_new(byte[] counterparty_node_id_arg, long socket_address_arg, long init_features_arg, boolean is_inbound_connection_arg);
11046 // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
11047 public static native void PeerHandleError_free(long this_obj);
11048 // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(void);
11049 public static native long PeerHandleError_new();
11050 // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
11051 public static native long PeerHandleError_clone_ptr(long arg);
11052 // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
11053 public static native long PeerHandleError_clone(long orig);
11054 // struct LDKStr PeerHandleError_to_str(const struct LDKPeerHandleError *NONNULL_PTR o);
11055 public static native String PeerHandleError_to_str(long o);
11056 // void PeerManager_free(struct LDKPeerManager this_obj);
11057 public static native void PeerManager_free(long this_obj);
11058 // 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);
11059 public static native long PeerManager_new(long message_handler, int current_time, byte[] ephemeral_random_data, long logger, long node_signer);
11060 // MUST_USE_RES struct LDKCVec_PeerDetailsZ PeerManager_list_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
11061 public static native long[] PeerManager_list_peers(long this_arg);
11062 // MUST_USE_RES struct LDKPeerDetails PeerManager_peer_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id);
11063 public static native long PeerManager_peer_by_node_id(long this_arg, byte[] their_node_id);
11064 // MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address);
11065 public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor, long remote_network_address);
11066 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address);
11067 public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor, long remote_network_address);
11068 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
11069 public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
11070 // 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);
11071 public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
11072 // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
11073 public static native void PeerManager_process_events(long this_arg);
11074 // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
11075 public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
11076 // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
11077 public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id);
11078 // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
11079 public static native void PeerManager_disconnect_all_peers(long this_arg);
11080 // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
11081 public static native void PeerManager_timer_tick_occurred(long this_arg);
11082 // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_SocketAddressZ addresses);
11083 public static native void PeerManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
11084 // uint64_t htlc_success_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
11085 public static native long htlc_success_tx_weight(long channel_type_features);
11086 // uint64_t htlc_timeout_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
11087 public static native long htlc_timeout_tx_weight(long channel_type_features);
11088 // enum LDKHTLCClaim HTLCClaim_clone(const enum LDKHTLCClaim *NONNULL_PTR orig);
11089 public static native HTLCClaim HTLCClaim_clone(long orig);
11090 // enum LDKHTLCClaim HTLCClaim_offered_timeout(void);
11091 public static native HTLCClaim HTLCClaim_offered_timeout();
11092 // enum LDKHTLCClaim HTLCClaim_offered_preimage(void);
11093 public static native HTLCClaim HTLCClaim_offered_preimage();
11094 // enum LDKHTLCClaim HTLCClaim_accepted_timeout(void);
11095 public static native HTLCClaim HTLCClaim_accepted_timeout();
11096 // enum LDKHTLCClaim HTLCClaim_accepted_preimage(void);
11097 public static native HTLCClaim HTLCClaim_accepted_preimage();
11098 // enum LDKHTLCClaim HTLCClaim_revocation(void);
11099 public static native HTLCClaim HTLCClaim_revocation();
11100 // bool HTLCClaim_eq(const enum LDKHTLCClaim *NONNULL_PTR a, const enum LDKHTLCClaim *NONNULL_PTR b);
11101 public static native boolean HTLCClaim_eq(long a, long b);
11102 // MUST_USE_RES struct LDKCOption_HTLCClaimZ HTLCClaim_from_witness(struct LDKWitness witness);
11103 public static native long HTLCClaim_from_witness(byte[] witness);
11104 // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
11105 public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
11106 // 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);
11107 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);
11108 // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
11109 public static native void CounterpartyCommitmentSecrets_free(long this_obj);
11110 // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
11111 public static native long CounterpartyCommitmentSecrets_clone_ptr(long arg);
11112 // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
11113 public static native long CounterpartyCommitmentSecrets_clone(long orig);
11114 // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
11115 public static native long CounterpartyCommitmentSecrets_new();
11116 // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
11117 public static native long CounterpartyCommitmentSecrets_get_min_seen_secret(long this_arg);
11118 // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
11119 public static native long CounterpartyCommitmentSecrets_provide_secret(long this_arg, long idx, byte[] secret);
11120 // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
11121 public static native byte[] CounterpartyCommitmentSecrets_get_secret(long this_arg, long idx);
11122 // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
11123 public static native byte[] CounterpartyCommitmentSecrets_write(long obj);
11124 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
11125 public static native long CounterpartyCommitmentSecrets_read(byte[] ser);
11126 // struct LDKSecretKey derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
11127 public static native byte[] derive_private_key(byte[] per_commitment_point, byte[] base_secret);
11128 // struct LDKSecretKey derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
11129 public static native byte[] derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
11130 // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
11131 public static native void TxCreationKeys_free(long this_obj);
11132 // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
11133 public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
11134 // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11135 public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
11136 // struct LDKRevocationKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
11137 public static native long TxCreationKeys_get_revocation_key(long this_ptr);
11138 // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKRevocationKey val);
11139 public static native void TxCreationKeys_set_revocation_key(long this_ptr, long val);
11140 // struct LDKHtlcKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
11141 public static native long TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
11142 // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKHtlcKey val);
11143 public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, long val);
11144 // struct LDKHtlcKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
11145 public static native long TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
11146 // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKHtlcKey val);
11147 public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, long val);
11148 // struct LDKDelayedPaymentKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
11149 public static native long TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
11150 // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKDelayedPaymentKey val);
11151 public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, long val);
11152 // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_new(struct LDKPublicKey per_commitment_point_arg, struct LDKRevocationKey revocation_key_arg, struct LDKHtlcKey broadcaster_htlc_key_arg, struct LDKHtlcKey countersignatory_htlc_key_arg, struct LDKDelayedPaymentKey broadcaster_delayed_payment_key_arg);
11153 public static native long TxCreationKeys_new(byte[] per_commitment_point_arg, long revocation_key_arg, long broadcaster_htlc_key_arg, long countersignatory_htlc_key_arg, long broadcaster_delayed_payment_key_arg);
11154 // bool TxCreationKeys_eq(const struct LDKTxCreationKeys *NONNULL_PTR a, const struct LDKTxCreationKeys *NONNULL_PTR b);
11155 public static native boolean TxCreationKeys_eq(long a, long b);
11156 // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
11157 public static native long TxCreationKeys_clone_ptr(long arg);
11158 // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
11159 public static native long TxCreationKeys_clone(long orig);
11160 // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
11161 public static native byte[] TxCreationKeys_write(long obj);
11162 // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
11163 public static native long TxCreationKeys_read(byte[] ser);
11164 // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
11165 public static native void ChannelPublicKeys_free(long this_obj);
11166 // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
11167 public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
11168 // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11169 public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
11170 // struct LDKRevocationBasepoint ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
11171 public static native long ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
11172 // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKRevocationBasepoint val);
11173 public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, long val);
11174 // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
11175 public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
11176 // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
11177 public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
11178 // struct LDKDelayedPaymentBasepoint ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
11179 public static native long ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
11180 // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKDelayedPaymentBasepoint val);
11181 public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, long val);
11182 // struct LDKHtlcBasepoint ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
11183 public static native long ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
11184 // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKHtlcBasepoint val);
11185 public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, long val);
11186 // MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicKey funding_pubkey_arg, struct LDKRevocationBasepoint revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKDelayedPaymentBasepoint delayed_payment_basepoint_arg, struct LDKHtlcBasepoint htlc_basepoint_arg);
11187 public static native long ChannelPublicKeys_new(byte[] funding_pubkey_arg, long revocation_basepoint_arg, byte[] payment_point_arg, long delayed_payment_basepoint_arg, long htlc_basepoint_arg);
11188 // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
11189 public static native long ChannelPublicKeys_clone_ptr(long arg);
11190 // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
11191 public static native long ChannelPublicKeys_clone(long orig);
11192 // uint64_t ChannelPublicKeys_hash(const struct LDKChannelPublicKeys *NONNULL_PTR o);
11193 public static native long ChannelPublicKeys_hash(long o);
11194 // bool ChannelPublicKeys_eq(const struct LDKChannelPublicKeys *NONNULL_PTR a, const struct LDKChannelPublicKeys *NONNULL_PTR b);
11195 public static native boolean ChannelPublicKeys_eq(long a, long b);
11196 // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
11197 public static native byte[] ChannelPublicKeys_write(long obj);
11198 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
11199 public static native long ChannelPublicKeys_read(byte[] ser);
11200 // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_derive_new(struct LDKPublicKey per_commitment_point, const struct LDKDelayedPaymentBasepoint *NONNULL_PTR broadcaster_delayed_payment_base, const struct LDKHtlcBasepoint *NONNULL_PTR broadcaster_htlc_base, const struct LDKRevocationBasepoint *NONNULL_PTR countersignatory_revocation_base, const struct LDKHtlcBasepoint *NONNULL_PTR countersignatory_htlc_base);
11201 public static native long TxCreationKeys_derive_new(byte[] per_commitment_point, long broadcaster_delayed_payment_base, long broadcaster_htlc_base, long countersignatory_revocation_base, long countersignatory_htlc_base);
11202 // 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);
11203 public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
11204 // struct LDKCVec_u8Z get_revokeable_redeemscript(const struct LDKRevocationKey *NONNULL_PTR revocation_key, uint16_t contest_delay, const struct LDKDelayedPaymentKey *NONNULL_PTR broadcaster_delayed_payment_key);
11205 public static native byte[] get_revokeable_redeemscript(long revocation_key, short contest_delay, long broadcaster_delayed_payment_key);
11206 // struct LDKCVec_u8Z get_counterparty_payment_script(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, struct LDKPublicKey payment_key);
11207 public static native byte[] get_counterparty_payment_script(long channel_type_features, byte[] payment_key);
11208 // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
11209 public static native void HTLCOutputInCommitment_free(long this_obj);
11210 // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
11211 public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
11212 // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
11213 public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
11214 // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
11215 public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
11216 // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
11217 public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
11218 // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
11219 public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
11220 // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
11221 public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
11222 // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
11223 public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
11224 // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11225 public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
11226 // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
11227 public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);
11228 // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
11229 public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);
11230 // 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);
11231 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);
11232 // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
11233 public static native long HTLCOutputInCommitment_clone_ptr(long arg);
11234 // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
11235 public static native long HTLCOutputInCommitment_clone(long orig);
11236 // bool HTLCOutputInCommitment_eq(const struct LDKHTLCOutputInCommitment *NONNULL_PTR a, const struct LDKHTLCOutputInCommitment *NONNULL_PTR b);
11237 public static native boolean HTLCOutputInCommitment_eq(long a, long b);
11238 // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
11239 public static native byte[] HTLCOutputInCommitment_write(long obj);
11240 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
11241 public static native long HTLCOutputInCommitment_read(byte[] ser);
11242 // 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);
11243 public static native byte[] get_htlc_redeemscript(long htlc, long channel_type_features, long keys);
11244 // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
11245 public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
11246 // 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, const struct LDKDelayedPaymentKey *NONNULL_PTR broadcaster_delayed_payment_key, const struct LDKRevocationKey *NONNULL_PTR revocation_key);
11247 public static native byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_per_kw, short contest_delay, long htlc, long channel_type_features, long broadcaster_delayed_payment_key, long revocation_key);
11248 // struct LDKWitness build_htlc_input_witness(struct LDKECDSASignature local_sig, struct LDKECDSASignature remote_sig, struct LDKCOption_ThirtyTwoBytesZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
11249 public static native byte[] build_htlc_input_witness(byte[] local_sig, byte[] remote_sig, long preimage, byte[] redeem_script, long channel_type_features);
11250 // struct LDKCVec_u8Z get_to_countersignatory_with_anchors_redeemscript(struct LDKPublicKey payment_point);
11251 public static native byte[] get_to_countersignatory_with_anchors_redeemscript(byte[] payment_point);
11252 // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
11253 public static native byte[] get_anchor_redeemscript(byte[] funding_pubkey);
11254 // struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKECDSASignature funding_sig);
11255 public static native byte[] build_anchor_input_witness(byte[] funding_key, byte[] funding_sig);
11256 // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
11257 public static native void ChannelTransactionParameters_free(long this_obj);
11258 // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
11259 public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
11260 // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
11261 public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
11262 // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
11263 public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
11264 // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
11265 public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
11266 // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
11267 public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
11268 // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
11269 public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
11270 // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
11271 public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
11272 // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
11273 public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
11274 // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
11275 public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
11276 // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
11277 public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
11278 // struct LDKChannelTypeFeatures ChannelTransactionParameters_get_channel_type_features(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
11279 public static native long ChannelTransactionParameters_get_channel_type_features(long this_ptr);
11280 // void ChannelTransactionParameters_set_channel_type_features(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
11281 public static native void ChannelTransactionParameters_set_channel_type_features(long this_ptr, long val);
11282 // 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);
11283 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);
11284 // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
11285 public static native long ChannelTransactionParameters_clone_ptr(long arg);
11286 // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
11287 public static native long ChannelTransactionParameters_clone(long orig);
11288 // uint64_t ChannelTransactionParameters_hash(const struct LDKChannelTransactionParameters *NONNULL_PTR o);
11289 public static native long ChannelTransactionParameters_hash(long o);
11290 // bool ChannelTransactionParameters_eq(const struct LDKChannelTransactionParameters *NONNULL_PTR a, const struct LDKChannelTransactionParameters *NONNULL_PTR b);
11291 public static native boolean ChannelTransactionParameters_eq(long a, long b);
11292 // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
11293 public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
11294 // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
11295 public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
11296 // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
11297 public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
11298 // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
11299 public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
11300 // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
11301 public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
11302 // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
11303 public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
11304 // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
11305 public static native long CounterpartyChannelTransactionParameters_clone_ptr(long arg);
11306 // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
11307 public static native long CounterpartyChannelTransactionParameters_clone(long orig);
11308 // uint64_t CounterpartyChannelTransactionParameters_hash(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR o);
11309 public static native long CounterpartyChannelTransactionParameters_hash(long o);
11310 // bool CounterpartyChannelTransactionParameters_eq(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR a, const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR b);
11311 public static native boolean CounterpartyChannelTransactionParameters_eq(long a, long b);
11312 // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
11313 public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
11314 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
11315 public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
11316 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
11317 public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
11318 // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
11319 public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
11320 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
11321 public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
11322 // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
11323 public static native byte[] ChannelTransactionParameters_write(long obj);
11324 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
11325 public static native long ChannelTransactionParameters_read(byte[] ser);
11326 // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
11327 public static native void DirectedChannelTransactionParameters_free(long this_obj);
11328 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
11329 public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
11330 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
11331 public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
11332 // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
11333 public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
11334 // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
11335 public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
11336 // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
11337 public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
11338 // MUST_USE_RES struct LDKChannelTypeFeatures DirectedChannelTransactionParameters_channel_type_features(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
11339 public static native long DirectedChannelTransactionParameters_channel_type_features(long this_arg);
11340 // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
11341 public static native void HolderCommitmentTransaction_free(long this_obj);
11342 // struct LDKECDSASignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
11343 public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
11344 // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
11345 public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
11346 // struct LDKCVec_ECDSASignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
11347 public static native byte[][] HolderCommitmentTransaction_get_counterparty_htlc_sigs(long this_ptr);
11348 // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val);
11349 public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
11350 // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
11351 public static native long HolderCommitmentTransaction_clone_ptr(long arg);
11352 // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
11353 public static native long HolderCommitmentTransaction_clone(long orig);
11354 // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
11355 public static native byte[] HolderCommitmentTransaction_write(long obj);
11356 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
11357 public static native long HolderCommitmentTransaction_read(byte[] ser);
11358 // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKECDSASignature counterparty_sig, struct LDKCVec_ECDSASignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
11359 public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
11360 // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
11361 public static native void BuiltCommitmentTransaction_free(long this_obj);
11362 // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
11363 public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
11364 // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
11365 public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
11366 // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
11367 public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
11368 // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11369 public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
11370 // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
11371 public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
11372 // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
11373 public static native long BuiltCommitmentTransaction_clone_ptr(long arg);
11374 // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
11375 public static native long BuiltCommitmentTransaction_clone(long orig);
11376 // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
11377 public static native byte[] BuiltCommitmentTransaction_write(long obj);
11378 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
11379 public static native long BuiltCommitmentTransaction_read(byte[] ser);
11380 // 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);
11381 public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
11382 // MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
11383 public static native byte[] BuiltCommitmentTransaction_sign_counterparty_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
11384 // MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source);
11385 public static native byte[] BuiltCommitmentTransaction_sign_holder_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis, long entropy_source);
11386 // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
11387 public static native void ClosingTransaction_free(long this_obj);
11388 // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
11389 public static native long ClosingTransaction_clone_ptr(long arg);
11390 // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
11391 public static native long ClosingTransaction_clone(long orig);
11392 // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
11393 public static native long ClosingTransaction_hash(long o);
11394 // bool ClosingTransaction_eq(const struct LDKClosingTransaction *NONNULL_PTR a, const struct LDKClosingTransaction *NONNULL_PTR b);
11395 public static native boolean ClosingTransaction_eq(long a, long b);
11396 // 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);
11397 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);
11398 // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
11399 public static native long ClosingTransaction_trust(long this_arg);
11400 // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
11401 public static native long ClosingTransaction_verify(long this_arg, long funding_outpoint);
11402 // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
11403 public static native long ClosingTransaction_to_holder_value_sat(long this_arg);
11404 // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
11405 public static native long ClosingTransaction_to_counterparty_value_sat(long this_arg);
11406 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
11407 public static native byte[] ClosingTransaction_to_holder_script(long this_arg);
11408 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
11409 public static native byte[] ClosingTransaction_to_counterparty_script(long this_arg);
11410 // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
11411 public static native void TrustedClosingTransaction_free(long this_obj);
11412 // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
11413 public static native byte[] TrustedClosingTransaction_built_transaction(long this_arg);
11414 // 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);
11415 public static native byte[] TrustedClosingTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
11416 // MUST_USE_RES struct LDKECDSASignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
11417 public static native byte[] TrustedClosingTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
11418 // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
11419 public static native void CommitmentTransaction_free(long this_obj);
11420 // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
11421 public static native long CommitmentTransaction_clone_ptr(long arg);
11422 // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
11423 public static native long CommitmentTransaction_clone(long orig);
11424 // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
11425 public static native byte[] CommitmentTransaction_write(long obj);
11426 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
11427 public static native long CommitmentTransaction_read(byte[] ser);
11428 // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
11429 public static native long CommitmentTransaction_commitment_number(long this_arg);
11430 // MUST_USE_RES struct LDKPublicKey CommitmentTransaction_per_commitment_point(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
11431 public static native byte[] CommitmentTransaction_per_commitment_point(long this_arg);
11432 // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
11433 public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
11434 // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
11435 public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
11436 // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
11437 public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
11438 // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
11439 public static native long CommitmentTransaction_trust(long this_arg);
11440 // 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);
11441 public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
11442 // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
11443 public static native void TrustedCommitmentTransaction_free(long this_obj);
11444 // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
11445 public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
11446 // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
11447 public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
11448 // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
11449 public static native long TrustedCommitmentTransaction_keys(long this_arg);
11450 // MUST_USE_RES struct LDKChannelTypeFeatures TrustedCommitmentTransaction_channel_type_features(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
11451 public static native long TrustedCommitmentTransaction_channel_type_features(long this_arg);
11452 // MUST_USE_RES struct LDKCResult_CVec_ECDSASignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source);
11453 public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters, long entropy_source);
11454 // MUST_USE_RES struct LDKCOption_usizeZ TrustedCommitmentTransaction_revokeable_output_index(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
11455 public static native long TrustedCommitmentTransaction_revokeable_output_index(long this_arg);
11456 // MUST_USE_RES struct LDKCResult_TransactionNoneZ TrustedCommitmentTransaction_build_to_local_justice_tx(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, uint64_t feerate_per_kw, struct LDKCVec_u8Z destination_script);
11457 public static native long TrustedCommitmentTransaction_build_to_local_justice_tx(long this_arg, long feerate_per_kw, byte[] destination_script);
11458 // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
11459 public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
11460 // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
11461 public static native boolean InitFeatures_eq(long a, long b);
11462 // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
11463 public static native boolean NodeFeatures_eq(long a, long b);
11464 // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
11465 public static native boolean ChannelFeatures_eq(long a, long b);
11466 // bool Bolt11InvoiceFeatures_eq(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR b);
11467 public static native boolean Bolt11InvoiceFeatures_eq(long a, long b);
11468 // bool OfferFeatures_eq(const struct LDKOfferFeatures *NONNULL_PTR a, const struct LDKOfferFeatures *NONNULL_PTR b);
11469 public static native boolean OfferFeatures_eq(long a, long b);
11470 // bool InvoiceRequestFeatures_eq(const struct LDKInvoiceRequestFeatures *NONNULL_PTR a, const struct LDKInvoiceRequestFeatures *NONNULL_PTR b);
11471 public static native boolean InvoiceRequestFeatures_eq(long a, long b);
11472 // bool Bolt12InvoiceFeatures_eq(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR b);
11473 public static native boolean Bolt12InvoiceFeatures_eq(long a, long b);
11474 // bool BlindedHopFeatures_eq(const struct LDKBlindedHopFeatures *NONNULL_PTR a, const struct LDKBlindedHopFeatures *NONNULL_PTR b);
11475 public static native boolean BlindedHopFeatures_eq(long a, long b);
11476 // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
11477 public static native boolean ChannelTypeFeatures_eq(long a, long b);
11478 // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
11479 public static native long InitFeatures_clone_ptr(long arg);
11480 // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
11481 public static native long InitFeatures_clone(long orig);
11482 // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
11483 public static native long NodeFeatures_clone_ptr(long arg);
11484 // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
11485 public static native long NodeFeatures_clone(long orig);
11486 // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
11487 public static native long ChannelFeatures_clone_ptr(long arg);
11488 // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
11489 public static native long ChannelFeatures_clone(long orig);
11490 // uint64_t Bolt11InvoiceFeatures_clone_ptr(LDKBolt11InvoiceFeatures *NONNULL_PTR arg);
11491 public static native long Bolt11InvoiceFeatures_clone_ptr(long arg);
11492 // struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_clone(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR orig);
11493 public static native long Bolt11InvoiceFeatures_clone(long orig);
11494 // uint64_t OfferFeatures_clone_ptr(LDKOfferFeatures *NONNULL_PTR arg);
11495 public static native long OfferFeatures_clone_ptr(long arg);
11496 // struct LDKOfferFeatures OfferFeatures_clone(const struct LDKOfferFeatures *NONNULL_PTR orig);
11497 public static native long OfferFeatures_clone(long orig);
11498 // uint64_t InvoiceRequestFeatures_clone_ptr(LDKInvoiceRequestFeatures *NONNULL_PTR arg);
11499 public static native long InvoiceRequestFeatures_clone_ptr(long arg);
11500 // struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_clone(const struct LDKInvoiceRequestFeatures *NONNULL_PTR orig);
11501 public static native long InvoiceRequestFeatures_clone(long orig);
11502 // uint64_t Bolt12InvoiceFeatures_clone_ptr(LDKBolt12InvoiceFeatures *NONNULL_PTR arg);
11503 public static native long Bolt12InvoiceFeatures_clone_ptr(long arg);
11504 // struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_clone(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR orig);
11505 public static native long Bolt12InvoiceFeatures_clone(long orig);
11506 // uint64_t BlindedHopFeatures_clone_ptr(LDKBlindedHopFeatures *NONNULL_PTR arg);
11507 public static native long BlindedHopFeatures_clone_ptr(long arg);
11508 // struct LDKBlindedHopFeatures BlindedHopFeatures_clone(const struct LDKBlindedHopFeatures *NONNULL_PTR orig);
11509 public static native long BlindedHopFeatures_clone(long orig);
11510 // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
11511 public static native long ChannelTypeFeatures_clone_ptr(long arg);
11512 // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
11513 public static native long ChannelTypeFeatures_clone(long orig);
11514 // uint64_t InitFeatures_hash(const struct LDKInitFeatures *NONNULL_PTR o);
11515 public static native long InitFeatures_hash(long o);
11516 // uint64_t NodeFeatures_hash(const struct LDKNodeFeatures *NONNULL_PTR o);
11517 public static native long NodeFeatures_hash(long o);
11518 // uint64_t ChannelFeatures_hash(const struct LDKChannelFeatures *NONNULL_PTR o);
11519 public static native long ChannelFeatures_hash(long o);
11520 // uint64_t Bolt11InvoiceFeatures_hash(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR o);
11521 public static native long Bolt11InvoiceFeatures_hash(long o);
11522 // uint64_t OfferFeatures_hash(const struct LDKOfferFeatures *NONNULL_PTR o);
11523 public static native long OfferFeatures_hash(long o);
11524 // uint64_t InvoiceRequestFeatures_hash(const struct LDKInvoiceRequestFeatures *NONNULL_PTR o);
11525 public static native long InvoiceRequestFeatures_hash(long o);
11526 // uint64_t Bolt12InvoiceFeatures_hash(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR o);
11527 public static native long Bolt12InvoiceFeatures_hash(long o);
11528 // uint64_t BlindedHopFeatures_hash(const struct LDKBlindedHopFeatures *NONNULL_PTR o);
11529 public static native long BlindedHopFeatures_hash(long o);
11530 // uint64_t ChannelTypeFeatures_hash(const struct LDKChannelTypeFeatures *NONNULL_PTR o);
11531 public static native long ChannelTypeFeatures_hash(long o);
11532 // void InitFeatures_free(struct LDKInitFeatures this_obj);
11533 public static native void InitFeatures_free(long this_obj);
11534 // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
11535 public static native void NodeFeatures_free(long this_obj);
11536 // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
11537 public static native void ChannelFeatures_free(long this_obj);
11538 // void Bolt11InvoiceFeatures_free(struct LDKBolt11InvoiceFeatures this_obj);
11539 public static native void Bolt11InvoiceFeatures_free(long this_obj);
11540 // void OfferFeatures_free(struct LDKOfferFeatures this_obj);
11541 public static native void OfferFeatures_free(long this_obj);
11542 // void InvoiceRequestFeatures_free(struct LDKInvoiceRequestFeatures this_obj);
11543 public static native void InvoiceRequestFeatures_free(long this_obj);
11544 // void Bolt12InvoiceFeatures_free(struct LDKBolt12InvoiceFeatures this_obj);
11545 public static native void Bolt12InvoiceFeatures_free(long this_obj);
11546 // void BlindedHopFeatures_free(struct LDKBlindedHopFeatures this_obj);
11547 public static native void BlindedHopFeatures_free(long this_obj);
11548 // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
11549 public static native void ChannelTypeFeatures_free(long this_obj);
11550 // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
11551 public static native long InitFeatures_empty();
11552 // MUST_USE_RES bool InitFeatures_requires_unknown_bits_from(const struct LDKInitFeatures *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR other);
11553 public static native boolean InitFeatures_requires_unknown_bits_from(long this_arg, long other);
11554 // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11555 public static native boolean InitFeatures_requires_unknown_bits(long this_arg);
11556 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11557 public static native long InitFeatures_set_required_feature_bit(long this_arg, long bit);
11558 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11559 public static native long InitFeatures_set_optional_feature_bit(long this_arg, long bit);
11560 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11561 public static native long InitFeatures_set_required_custom_bit(long this_arg, long bit);
11562 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11563 public static native long InitFeatures_set_optional_custom_bit(long this_arg, long bit);
11564 // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
11565 public static native long NodeFeatures_empty();
11566 // MUST_USE_RES bool NodeFeatures_requires_unknown_bits_from(const struct LDKNodeFeatures *NONNULL_PTR this_arg, const struct LDKNodeFeatures *NONNULL_PTR other);
11567 public static native boolean NodeFeatures_requires_unknown_bits_from(long this_arg, long other);
11568 // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11569 public static native boolean NodeFeatures_requires_unknown_bits(long this_arg);
11570 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11571 public static native long NodeFeatures_set_required_feature_bit(long this_arg, long bit);
11572 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11573 public static native long NodeFeatures_set_optional_feature_bit(long this_arg, long bit);
11574 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11575 public static native long NodeFeatures_set_required_custom_bit(long this_arg, long bit);
11576 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11577 public static native long NodeFeatures_set_optional_custom_bit(long this_arg, long bit);
11578 // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
11579 public static native long ChannelFeatures_empty();
11580 // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits_from(const struct LDKChannelFeatures *NONNULL_PTR this_arg, const struct LDKChannelFeatures *NONNULL_PTR other);
11581 public static native boolean ChannelFeatures_requires_unknown_bits_from(long this_arg, long other);
11582 // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
11583 public static native boolean ChannelFeatures_requires_unknown_bits(long this_arg);
11584 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11585 public static native long ChannelFeatures_set_required_feature_bit(long this_arg, long bit);
11586 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11587 public static native long ChannelFeatures_set_optional_feature_bit(long this_arg, long bit);
11588 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11589 public static native long ChannelFeatures_set_required_custom_bit(long this_arg, long bit);
11590 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11591 public static native long ChannelFeatures_set_optional_custom_bit(long this_arg, long bit);
11592 // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_empty(void);
11593 public static native long Bolt11InvoiceFeatures_empty();
11594 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR other);
11595 public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
11596 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11597 public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits(long this_arg);
11598 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11599 public static native long Bolt11InvoiceFeatures_set_required_feature_bit(long this_arg, long bit);
11600 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11601 public static native long Bolt11InvoiceFeatures_set_optional_feature_bit(long this_arg, long bit);
11602 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11603 public static native long Bolt11InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
11604 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11605 public static native long Bolt11InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
11606 // MUST_USE_RES struct LDKOfferFeatures OfferFeatures_empty(void);
11607 public static native long OfferFeatures_empty();
11608 // MUST_USE_RES bool OfferFeatures_requires_unknown_bits_from(const struct LDKOfferFeatures *NONNULL_PTR this_arg, const struct LDKOfferFeatures *NONNULL_PTR other);
11609 public static native boolean OfferFeatures_requires_unknown_bits_from(long this_arg, long other);
11610 // MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg);
11611 public static native boolean OfferFeatures_requires_unknown_bits(long this_arg);
11612 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11613 public static native long OfferFeatures_set_required_feature_bit(long this_arg, long bit);
11614 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11615 public static native long OfferFeatures_set_optional_feature_bit(long this_arg, long bit);
11616 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11617 public static native long OfferFeatures_set_required_custom_bit(long this_arg, long bit);
11618 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11619 public static native long OfferFeatures_set_optional_custom_bit(long this_arg, long bit);
11620 // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_empty(void);
11621 public static native long InvoiceRequestFeatures_empty();
11622 // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits_from(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, const struct LDKInvoiceRequestFeatures *NONNULL_PTR other);
11623 public static native boolean InvoiceRequestFeatures_requires_unknown_bits_from(long this_arg, long other);
11624 // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg);
11625 public static native boolean InvoiceRequestFeatures_requires_unknown_bits(long this_arg);
11626 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11627 public static native long InvoiceRequestFeatures_set_required_feature_bit(long this_arg, long bit);
11628 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11629 public static native long InvoiceRequestFeatures_set_optional_feature_bit(long this_arg, long bit);
11630 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11631 public static native long InvoiceRequestFeatures_set_required_custom_bit(long this_arg, long bit);
11632 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11633 public static native long InvoiceRequestFeatures_set_optional_custom_bit(long this_arg, long bit);
11634 // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_empty(void);
11635 public static native long Bolt12InvoiceFeatures_empty();
11636 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR other);
11637 public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
11638 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
11639 public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits(long this_arg);
11640 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11641 public static native long Bolt12InvoiceFeatures_set_required_feature_bit(long this_arg, long bit);
11642 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11643 public static native long Bolt12InvoiceFeatures_set_optional_feature_bit(long this_arg, long bit);
11644 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11645 public static native long Bolt12InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
11646 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11647 public static native long Bolt12InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
11648 // MUST_USE_RES struct LDKBlindedHopFeatures BlindedHopFeatures_empty(void);
11649 public static native long BlindedHopFeatures_empty();
11650 // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits_from(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, const struct LDKBlindedHopFeatures *NONNULL_PTR other);
11651 public static native boolean BlindedHopFeatures_requires_unknown_bits_from(long this_arg, long other);
11652 // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg);
11653 public static native boolean BlindedHopFeatures_requires_unknown_bits(long this_arg);
11654 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11655 public static native long BlindedHopFeatures_set_required_feature_bit(long this_arg, long bit);
11656 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11657 public static native long BlindedHopFeatures_set_optional_feature_bit(long this_arg, long bit);
11658 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11659 public static native long BlindedHopFeatures_set_required_custom_bit(long this_arg, long bit);
11660 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11661 public static native long BlindedHopFeatures_set_optional_custom_bit(long this_arg, long bit);
11662 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
11663 public static native long ChannelTypeFeatures_empty();
11664 // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits_from(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, const struct LDKChannelTypeFeatures *NONNULL_PTR other);
11665 public static native boolean ChannelTypeFeatures_requires_unknown_bits_from(long this_arg, long other);
11666 // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11667 public static native boolean ChannelTypeFeatures_requires_unknown_bits(long this_arg);
11668 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11669 public static native long ChannelTypeFeatures_set_required_feature_bit(long this_arg, long bit);
11670 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11671 public static native long ChannelTypeFeatures_set_optional_feature_bit(long this_arg, long bit);
11672 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11673 public static native long ChannelTypeFeatures_set_required_custom_bit(long this_arg, long bit);
11674 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
11675 public static native long ChannelTypeFeatures_set_optional_custom_bit(long this_arg, long bit);
11676 // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
11677 public static native byte[] InitFeatures_write(long obj);
11678 // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
11679 public static native long InitFeatures_read(byte[] ser);
11680 // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
11681 public static native byte[] ChannelFeatures_write(long obj);
11682 // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
11683 public static native long ChannelFeatures_read(byte[] ser);
11684 // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
11685 public static native byte[] NodeFeatures_write(long obj);
11686 // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
11687 public static native long NodeFeatures_read(byte[] ser);
11688 // struct LDKCVec_u8Z Bolt11InvoiceFeatures_write(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR obj);
11689 public static native byte[] Bolt11InvoiceFeatures_write(long obj);
11690 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ Bolt11InvoiceFeatures_read(struct LDKu8slice ser);
11691 public static native long Bolt11InvoiceFeatures_read(byte[] ser);
11692 // struct LDKCVec_u8Z Bolt12InvoiceFeatures_write(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR obj);
11693 public static native byte[] Bolt12InvoiceFeatures_write(long obj);
11694 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ Bolt12InvoiceFeatures_read(struct LDKu8slice ser);
11695 public static native long Bolt12InvoiceFeatures_read(byte[] ser);
11696 // struct LDKCVec_u8Z BlindedHopFeatures_write(const struct LDKBlindedHopFeatures *NONNULL_PTR obj);
11697 public static native byte[] BlindedHopFeatures_write(long obj);
11698 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ BlindedHopFeatures_read(struct LDKu8slice ser);
11699 public static native long BlindedHopFeatures_read(byte[] ser);
11700 // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
11701 public static native byte[] ChannelTypeFeatures_write(long obj);
11702 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
11703 public static native long ChannelTypeFeatures_read(byte[] ser);
11704 // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11705 public static native void InitFeatures_set_data_loss_protect_optional(long this_arg);
11706 // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11707 public static native void InitFeatures_set_data_loss_protect_required(long this_arg);
11708 // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11709 public static native boolean InitFeatures_supports_data_loss_protect(long this_arg);
11710 // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11711 public static native void NodeFeatures_set_data_loss_protect_optional(long this_arg);
11712 // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11713 public static native void NodeFeatures_set_data_loss_protect_required(long this_arg);
11714 // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11715 public static native boolean NodeFeatures_supports_data_loss_protect(long this_arg);
11716 // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11717 public static native boolean InitFeatures_requires_data_loss_protect(long this_arg);
11718 // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11719 public static native boolean NodeFeatures_requires_data_loss_protect(long this_arg);
11720 // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11721 public static native void InitFeatures_set_initial_routing_sync_optional(long this_arg);
11722 // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11723 public static native void InitFeatures_set_initial_routing_sync_required(long this_arg);
11724 // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11725 public static native boolean InitFeatures_initial_routing_sync(long this_arg);
11726 // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11727 public static native void InitFeatures_set_upfront_shutdown_script_optional(long this_arg);
11728 // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11729 public static native void InitFeatures_set_upfront_shutdown_script_required(long this_arg);
11730 // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11731 public static native boolean InitFeatures_supports_upfront_shutdown_script(long this_arg);
11732 // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11733 public static native void NodeFeatures_set_upfront_shutdown_script_optional(long this_arg);
11734 // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11735 public static native void NodeFeatures_set_upfront_shutdown_script_required(long this_arg);
11736 // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11737 public static native boolean NodeFeatures_supports_upfront_shutdown_script(long this_arg);
11738 // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11739 public static native boolean InitFeatures_requires_upfront_shutdown_script(long this_arg);
11740 // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11741 public static native boolean NodeFeatures_requires_upfront_shutdown_script(long this_arg);
11742 // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11743 public static native void InitFeatures_set_gossip_queries_optional(long this_arg);
11744 // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11745 public static native void InitFeatures_set_gossip_queries_required(long this_arg);
11746 // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11747 public static native boolean InitFeatures_supports_gossip_queries(long this_arg);
11748 // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11749 public static native void NodeFeatures_set_gossip_queries_optional(long this_arg);
11750 // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11751 public static native void NodeFeatures_set_gossip_queries_required(long this_arg);
11752 // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11753 public static native boolean NodeFeatures_supports_gossip_queries(long this_arg);
11754 // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11755 public static native boolean InitFeatures_requires_gossip_queries(long this_arg);
11756 // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11757 public static native boolean NodeFeatures_requires_gossip_queries(long this_arg);
11758 // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11759 public static native void InitFeatures_set_variable_length_onion_optional(long this_arg);
11760 // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11761 public static native void InitFeatures_set_variable_length_onion_required(long this_arg);
11762 // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11763 public static native boolean InitFeatures_supports_variable_length_onion(long this_arg);
11764 // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11765 public static native void NodeFeatures_set_variable_length_onion_optional(long this_arg);
11766 // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11767 public static native void NodeFeatures_set_variable_length_onion_required(long this_arg);
11768 // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11769 public static native boolean NodeFeatures_supports_variable_length_onion(long this_arg);
11770 // void Bolt11InvoiceFeatures_set_variable_length_onion_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11771 public static native void Bolt11InvoiceFeatures_set_variable_length_onion_optional(long this_arg);
11772 // void Bolt11InvoiceFeatures_set_variable_length_onion_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11773 public static native void Bolt11InvoiceFeatures_set_variable_length_onion_required(long this_arg);
11774 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11775 public static native boolean Bolt11InvoiceFeatures_supports_variable_length_onion(long this_arg);
11776 // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11777 public static native boolean InitFeatures_requires_variable_length_onion(long this_arg);
11778 // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11779 public static native boolean NodeFeatures_requires_variable_length_onion(long this_arg);
11780 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11781 public static native boolean Bolt11InvoiceFeatures_requires_variable_length_onion(long this_arg);
11782 // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11783 public static native void InitFeatures_set_static_remote_key_optional(long this_arg);
11784 // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11785 public static native void InitFeatures_set_static_remote_key_required(long this_arg);
11786 // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11787 public static native boolean InitFeatures_supports_static_remote_key(long this_arg);
11788 // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11789 public static native void NodeFeatures_set_static_remote_key_optional(long this_arg);
11790 // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11791 public static native void NodeFeatures_set_static_remote_key_required(long this_arg);
11792 // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11793 public static native boolean NodeFeatures_supports_static_remote_key(long this_arg);
11794 // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11795 public static native void ChannelTypeFeatures_set_static_remote_key_optional(long this_arg);
11796 // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11797 public static native void ChannelTypeFeatures_set_static_remote_key_required(long this_arg);
11798 // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11799 public static native boolean ChannelTypeFeatures_supports_static_remote_key(long this_arg);
11800 // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11801 public static native boolean InitFeatures_requires_static_remote_key(long this_arg);
11802 // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11803 public static native boolean NodeFeatures_requires_static_remote_key(long this_arg);
11804 // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11805 public static native boolean ChannelTypeFeatures_requires_static_remote_key(long this_arg);
11806 // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11807 public static native void InitFeatures_set_payment_secret_optional(long this_arg);
11808 // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11809 public static native void InitFeatures_set_payment_secret_required(long this_arg);
11810 // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11811 public static native boolean InitFeatures_supports_payment_secret(long this_arg);
11812 // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11813 public static native void NodeFeatures_set_payment_secret_optional(long this_arg);
11814 // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11815 public static native void NodeFeatures_set_payment_secret_required(long this_arg);
11816 // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11817 public static native boolean NodeFeatures_supports_payment_secret(long this_arg);
11818 // void Bolt11InvoiceFeatures_set_payment_secret_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11819 public static native void Bolt11InvoiceFeatures_set_payment_secret_optional(long this_arg);
11820 // void Bolt11InvoiceFeatures_set_payment_secret_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11821 public static native void Bolt11InvoiceFeatures_set_payment_secret_required(long this_arg);
11822 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11823 public static native boolean Bolt11InvoiceFeatures_supports_payment_secret(long this_arg);
11824 // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11825 public static native boolean InitFeatures_requires_payment_secret(long this_arg);
11826 // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11827 public static native boolean NodeFeatures_requires_payment_secret(long this_arg);
11828 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11829 public static native boolean Bolt11InvoiceFeatures_requires_payment_secret(long this_arg);
11830 // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11831 public static native void InitFeatures_set_basic_mpp_optional(long this_arg);
11832 // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11833 public static native void InitFeatures_set_basic_mpp_required(long this_arg);
11834 // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11835 public static native boolean InitFeatures_supports_basic_mpp(long this_arg);
11836 // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11837 public static native void NodeFeatures_set_basic_mpp_optional(long this_arg);
11838 // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11839 public static native void NodeFeatures_set_basic_mpp_required(long this_arg);
11840 // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11841 public static native boolean NodeFeatures_supports_basic_mpp(long this_arg);
11842 // void Bolt11InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11843 public static native void Bolt11InvoiceFeatures_set_basic_mpp_optional(long this_arg);
11844 // void Bolt11InvoiceFeatures_set_basic_mpp_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11845 public static native void Bolt11InvoiceFeatures_set_basic_mpp_required(long this_arg);
11846 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11847 public static native boolean Bolt11InvoiceFeatures_supports_basic_mpp(long this_arg);
11848 // void Bolt12InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
11849 public static native void Bolt12InvoiceFeatures_set_basic_mpp_optional(long this_arg);
11850 // void Bolt12InvoiceFeatures_set_basic_mpp_required(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
11851 public static native void Bolt12InvoiceFeatures_set_basic_mpp_required(long this_arg);
11852 // MUST_USE_RES bool Bolt12InvoiceFeatures_supports_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
11853 public static native boolean Bolt12InvoiceFeatures_supports_basic_mpp(long this_arg);
11854 // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11855 public static native boolean InitFeatures_requires_basic_mpp(long this_arg);
11856 // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11857 public static native boolean NodeFeatures_requires_basic_mpp(long this_arg);
11858 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
11859 public static native boolean Bolt11InvoiceFeatures_requires_basic_mpp(long this_arg);
11860 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
11861 public static native boolean Bolt12InvoiceFeatures_requires_basic_mpp(long this_arg);
11862 // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11863 public static native void InitFeatures_set_wumbo_optional(long this_arg);
11864 // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11865 public static native void InitFeatures_set_wumbo_required(long this_arg);
11866 // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11867 public static native boolean InitFeatures_supports_wumbo(long this_arg);
11868 // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11869 public static native void NodeFeatures_set_wumbo_optional(long this_arg);
11870 // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11871 public static native void NodeFeatures_set_wumbo_required(long this_arg);
11872 // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11873 public static native boolean NodeFeatures_supports_wumbo(long this_arg);
11874 // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11875 public static native boolean InitFeatures_requires_wumbo(long this_arg);
11876 // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11877 public static native boolean NodeFeatures_requires_wumbo(long this_arg);
11878 // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11879 public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
11880 // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11881 public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
11882 // MUST_USE_RES bool InitFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11883 public static native boolean InitFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
11884 // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11885 public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
11886 // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11887 public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
11888 // MUST_USE_RES bool NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11889 public static native boolean NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
11890 // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11891 public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
11892 // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11893 public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
11894 // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11895 public static native boolean ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
11896 // MUST_USE_RES bool InitFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11897 public static native boolean InitFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
11898 // MUST_USE_RES bool NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11899 public static native boolean NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
11900 // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11901 public static native boolean ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
11902 // void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11903 public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
11904 // void InitFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11905 public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
11906 // MUST_USE_RES bool InitFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11907 public static native boolean InitFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
11908 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11909 public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
11910 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11911 public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
11912 // MUST_USE_RES bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11913 public static native boolean NodeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
11914 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11915 public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
11916 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11917 public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
11918 // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11919 public static native boolean ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
11920 // MUST_USE_RES bool InitFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11921 public static native boolean InitFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
11922 // MUST_USE_RES bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11923 public static native boolean NodeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
11924 // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11925 public static native boolean ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
11926 // void InitFeatures_set_route_blinding_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11927 public static native void InitFeatures_set_route_blinding_optional(long this_arg);
11928 // void InitFeatures_set_route_blinding_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11929 public static native void InitFeatures_set_route_blinding_required(long this_arg);
11930 // MUST_USE_RES bool InitFeatures_supports_route_blinding(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11931 public static native boolean InitFeatures_supports_route_blinding(long this_arg);
11932 // void NodeFeatures_set_route_blinding_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11933 public static native void NodeFeatures_set_route_blinding_optional(long this_arg);
11934 // void NodeFeatures_set_route_blinding_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11935 public static native void NodeFeatures_set_route_blinding_required(long this_arg);
11936 // MUST_USE_RES bool NodeFeatures_supports_route_blinding(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11937 public static native boolean NodeFeatures_supports_route_blinding(long this_arg);
11938 // MUST_USE_RES bool InitFeatures_requires_route_blinding(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11939 public static native boolean InitFeatures_requires_route_blinding(long this_arg);
11940 // MUST_USE_RES bool NodeFeatures_requires_route_blinding(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11941 public static native boolean NodeFeatures_requires_route_blinding(long this_arg);
11942 // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11943 public static native void InitFeatures_set_shutdown_any_segwit_optional(long this_arg);
11944 // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11945 public static native void InitFeatures_set_shutdown_any_segwit_required(long this_arg);
11946 // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11947 public static native boolean InitFeatures_supports_shutdown_anysegwit(long this_arg);
11948 // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11949 public static native void NodeFeatures_set_shutdown_any_segwit_optional(long this_arg);
11950 // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11951 public static native void NodeFeatures_set_shutdown_any_segwit_required(long this_arg);
11952 // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11953 public static native boolean NodeFeatures_supports_shutdown_anysegwit(long this_arg);
11954 // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11955 public static native boolean InitFeatures_requires_shutdown_anysegwit(long this_arg);
11956 // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11957 public static native boolean NodeFeatures_requires_shutdown_anysegwit(long this_arg);
11958 // void InitFeatures_set_taproot_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11959 public static native void InitFeatures_set_taproot_optional(long this_arg);
11960 // void InitFeatures_set_taproot_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11961 public static native void InitFeatures_set_taproot_required(long this_arg);
11962 // MUST_USE_RES bool InitFeatures_supports_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11963 public static native boolean InitFeatures_supports_taproot(long this_arg);
11964 // void NodeFeatures_set_taproot_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11965 public static native void NodeFeatures_set_taproot_optional(long this_arg);
11966 // void NodeFeatures_set_taproot_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11967 public static native void NodeFeatures_set_taproot_required(long this_arg);
11968 // MUST_USE_RES bool NodeFeatures_supports_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11969 public static native boolean NodeFeatures_supports_taproot(long this_arg);
11970 // void ChannelTypeFeatures_set_taproot_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11971 public static native void ChannelTypeFeatures_set_taproot_optional(long this_arg);
11972 // void ChannelTypeFeatures_set_taproot_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11973 public static native void ChannelTypeFeatures_set_taproot_required(long this_arg);
11974 // MUST_USE_RES bool ChannelTypeFeatures_supports_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11975 public static native boolean ChannelTypeFeatures_supports_taproot(long this_arg);
11976 // MUST_USE_RES bool InitFeatures_requires_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11977 public static native boolean InitFeatures_requires_taproot(long this_arg);
11978 // MUST_USE_RES bool NodeFeatures_requires_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11979 public static native boolean NodeFeatures_requires_taproot(long this_arg);
11980 // MUST_USE_RES bool ChannelTypeFeatures_requires_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
11981 public static native boolean ChannelTypeFeatures_requires_taproot(long this_arg);
11982 // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11983 public static native void InitFeatures_set_onion_messages_optional(long this_arg);
11984 // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
11985 public static native void InitFeatures_set_onion_messages_required(long this_arg);
11986 // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11987 public static native boolean InitFeatures_supports_onion_messages(long this_arg);
11988 // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11989 public static native void NodeFeatures_set_onion_messages_optional(long this_arg);
11990 // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11991 public static native void NodeFeatures_set_onion_messages_required(long this_arg);
11992 // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11993 public static native boolean NodeFeatures_supports_onion_messages(long this_arg);
11994 // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
11995 public static native boolean InitFeatures_requires_onion_messages(long this_arg);
11996 // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11997 public static native boolean NodeFeatures_requires_onion_messages(long this_arg);
11998 // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
11999 public static native void InitFeatures_set_channel_type_optional(long this_arg);
12000 // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
12001 public static native void InitFeatures_set_channel_type_required(long this_arg);
12002 // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12003 public static native boolean InitFeatures_supports_channel_type(long this_arg);
12004 // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12005 public static native void NodeFeatures_set_channel_type_optional(long this_arg);
12006 // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12007 public static native void NodeFeatures_set_channel_type_required(long this_arg);
12008 // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12009 public static native boolean NodeFeatures_supports_channel_type(long this_arg);
12010 // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12011 public static native boolean InitFeatures_requires_channel_type(long this_arg);
12012 // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12013 public static native boolean NodeFeatures_requires_channel_type(long this_arg);
12014 // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
12015 public static native void InitFeatures_set_scid_privacy_optional(long this_arg);
12016 // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
12017 public static native void InitFeatures_set_scid_privacy_required(long this_arg);
12018 // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12019 public static native boolean InitFeatures_supports_scid_privacy(long this_arg);
12020 // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12021 public static native void NodeFeatures_set_scid_privacy_optional(long this_arg);
12022 // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12023 public static native void NodeFeatures_set_scid_privacy_required(long this_arg);
12024 // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12025 public static native boolean NodeFeatures_supports_scid_privacy(long this_arg);
12026 // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12027 public static native void ChannelTypeFeatures_set_scid_privacy_optional(long this_arg);
12028 // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12029 public static native void ChannelTypeFeatures_set_scid_privacy_required(long this_arg);
12030 // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12031 public static native boolean ChannelTypeFeatures_supports_scid_privacy(long this_arg);
12032 // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12033 public static native boolean InitFeatures_requires_scid_privacy(long this_arg);
12034 // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12035 public static native boolean NodeFeatures_requires_scid_privacy(long this_arg);
12036 // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12037 public static native boolean ChannelTypeFeatures_requires_scid_privacy(long this_arg);
12038 // void Bolt11InvoiceFeatures_set_payment_metadata_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12039 public static native void Bolt11InvoiceFeatures_set_payment_metadata_optional(long this_arg);
12040 // void Bolt11InvoiceFeatures_set_payment_metadata_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12041 public static native void Bolt11InvoiceFeatures_set_payment_metadata_required(long this_arg);
12042 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12043 public static native boolean Bolt11InvoiceFeatures_supports_payment_metadata(long this_arg);
12044 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12045 public static native boolean Bolt11InvoiceFeatures_requires_payment_metadata(long this_arg);
12046 // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
12047 public static native void InitFeatures_set_zero_conf_optional(long this_arg);
12048 // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
12049 public static native void InitFeatures_set_zero_conf_required(long this_arg);
12050 // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12051 public static native boolean InitFeatures_supports_zero_conf(long this_arg);
12052 // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12053 public static native void NodeFeatures_set_zero_conf_optional(long this_arg);
12054 // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12055 public static native void NodeFeatures_set_zero_conf_required(long this_arg);
12056 // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12057 public static native boolean NodeFeatures_supports_zero_conf(long this_arg);
12058 // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12059 public static native void ChannelTypeFeatures_set_zero_conf_optional(long this_arg);
12060 // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12061 public static native void ChannelTypeFeatures_set_zero_conf_required(long this_arg);
12062 // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12063 public static native boolean ChannelTypeFeatures_supports_zero_conf(long this_arg);
12064 // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12065 public static native boolean InitFeatures_requires_zero_conf(long this_arg);
12066 // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12067 public static native boolean NodeFeatures_requires_zero_conf(long this_arg);
12068 // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
12069 public static native boolean ChannelTypeFeatures_requires_zero_conf(long this_arg);
12070 // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12071 public static native void NodeFeatures_set_keysend_optional(long this_arg);
12072 // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12073 public static native void NodeFeatures_set_keysend_required(long this_arg);
12074 // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12075 public static native boolean NodeFeatures_supports_keysend(long this_arg);
12076 // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12077 public static native boolean NodeFeatures_requires_keysend(long this_arg);
12078 // void InitFeatures_set_trampoline_routing_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
12079 public static native void InitFeatures_set_trampoline_routing_optional(long this_arg);
12080 // void InitFeatures_set_trampoline_routing_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
12081 public static native void InitFeatures_set_trampoline_routing_required(long this_arg);
12082 // MUST_USE_RES bool InitFeatures_supports_trampoline_routing(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12083 public static native boolean InitFeatures_supports_trampoline_routing(long this_arg);
12084 // void NodeFeatures_set_trampoline_routing_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12085 public static native void NodeFeatures_set_trampoline_routing_optional(long this_arg);
12086 // void NodeFeatures_set_trampoline_routing_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
12087 public static native void NodeFeatures_set_trampoline_routing_required(long this_arg);
12088 // MUST_USE_RES bool NodeFeatures_supports_trampoline_routing(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12089 public static native boolean NodeFeatures_supports_trampoline_routing(long this_arg);
12090 // void Bolt11InvoiceFeatures_set_trampoline_routing_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12091 public static native void Bolt11InvoiceFeatures_set_trampoline_routing_optional(long this_arg);
12092 // void Bolt11InvoiceFeatures_set_trampoline_routing_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12093 public static native void Bolt11InvoiceFeatures_set_trampoline_routing_required(long this_arg);
12094 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_trampoline_routing(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12095 public static native boolean Bolt11InvoiceFeatures_supports_trampoline_routing(long this_arg);
12096 // MUST_USE_RES bool InitFeatures_requires_trampoline_routing(const struct LDKInitFeatures *NONNULL_PTR this_arg);
12097 public static native boolean InitFeatures_requires_trampoline_routing(long this_arg);
12098 // MUST_USE_RES bool NodeFeatures_requires_trampoline_routing(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
12099 public static native boolean NodeFeatures_requires_trampoline_routing(long this_arg);
12100 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_trampoline_routing(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
12101 public static native boolean Bolt11InvoiceFeatures_requires_trampoline_routing(long this_arg);
12102 // void ShutdownScript_free(struct LDKShutdownScript this_obj);
12103 public static native void ShutdownScript_free(long this_obj);
12104 // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
12105 public static native long ShutdownScript_clone_ptr(long arg);
12106 // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
12107 public static native long ShutdownScript_clone(long orig);
12108 // bool ShutdownScript_eq(const struct LDKShutdownScript *NONNULL_PTR a, const struct LDKShutdownScript *NONNULL_PTR b);
12109 public static native boolean ShutdownScript_eq(long a, long b);
12110 // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
12111 public static native void InvalidShutdownScript_free(long this_obj);
12112 // struct LDKCVec_u8Z InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
12113 public static native byte[] InvalidShutdownScript_get_script(long this_ptr);
12114 // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
12115 public static native void InvalidShutdownScript_set_script(long this_ptr, byte[] val);
12116 // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
12117 public static native long InvalidShutdownScript_new(byte[] script_arg);
12118 // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
12119 public static native long InvalidShutdownScript_clone_ptr(long arg);
12120 // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
12121 public static native long InvalidShutdownScript_clone(long orig);
12122 // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
12123 public static native byte[] ShutdownScript_write(long obj);
12124 // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
12125 public static native long ShutdownScript_read(byte[] ser);
12126 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
12127 public static native long ShutdownScript_new_p2wpkh(byte[] pubkey_hash);
12128 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
12129 public static native long ShutdownScript_new_p2wsh(byte[] script_hash);
12130 // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessProgram witness_program);
12131 public static native long ShutdownScript_new_witness_program(long witness_program);
12132 // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
12133 public static native byte[] ShutdownScript_into_inner(long this_arg);
12134 // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
12135 public static native byte[] ShutdownScript_as_legacy_pubkey(long this_arg);
12136 // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
12137 public static native boolean ShutdownScript_is_compatible(long this_arg, long features);
12138 // struct LDKStr ShutdownScript_to_str(const struct LDKShutdownScript *NONNULL_PTR o);
12139 public static native String ShutdownScript_to_str(long o);
12140 // void ChannelId_free(struct LDKChannelId this_obj);
12141 public static native void ChannelId_free(long this_obj);
12142 // const uint8_t (*ChannelId_get_a(const struct LDKChannelId *NONNULL_PTR this_ptr))[32];
12143 public static native byte[] ChannelId_get_a(long this_ptr);
12144 // void ChannelId_set_a(struct LDKChannelId *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12145 public static native void ChannelId_set_a(long this_ptr, byte[] val);
12146 // MUST_USE_RES struct LDKChannelId ChannelId_new(struct LDKThirtyTwoBytes a_arg);
12147 public static native long ChannelId_new(byte[] a_arg);
12148 // uint64_t ChannelId_clone_ptr(LDKChannelId *NONNULL_PTR arg);
12149 public static native long ChannelId_clone_ptr(long arg);
12150 // struct LDKChannelId ChannelId_clone(const struct LDKChannelId *NONNULL_PTR orig);
12151 public static native long ChannelId_clone(long orig);
12152 // bool ChannelId_eq(const struct LDKChannelId *NONNULL_PTR a, const struct LDKChannelId *NONNULL_PTR b);
12153 public static native boolean ChannelId_eq(long a, long b);
12154 // uint64_t ChannelId_hash(const struct LDKChannelId *NONNULL_PTR o);
12155 public static native long ChannelId_hash(long o);
12156 // MUST_USE_RES struct LDKChannelId ChannelId_v1_from_funding_txid(const uint8_t (*txid)[32], uint16_t output_index);
12157 public static native long ChannelId_v1_from_funding_txid(byte[] txid, short output_index);
12158 // MUST_USE_RES struct LDKChannelId ChannelId_v1_from_funding_outpoint(struct LDKOutPoint outpoint);
12159 public static native long ChannelId_v1_from_funding_outpoint(long outpoint);
12160 // MUST_USE_RES struct LDKChannelId ChannelId_temporary_from_entropy_source(const struct LDKEntropySource *NONNULL_PTR entropy_source);
12161 public static native long ChannelId_temporary_from_entropy_source(long entropy_source);
12162 // MUST_USE_RES struct LDKChannelId ChannelId_from_bytes(struct LDKThirtyTwoBytes data);
12163 public static native long ChannelId_from_bytes(byte[] data);
12164 // MUST_USE_RES struct LDKChannelId ChannelId_new_zero(void);
12165 public static native long ChannelId_new_zero();
12166 // MUST_USE_RES bool ChannelId_is_zero(const struct LDKChannelId *NONNULL_PTR this_arg);
12167 public static native boolean ChannelId_is_zero(long this_arg);
12168 // MUST_USE_RES struct LDKChannelId ChannelId_v2_from_revocation_basepoints(const struct LDKRevocationBasepoint *NONNULL_PTR ours, const struct LDKRevocationBasepoint *NONNULL_PTR theirs);
12169 public static native long ChannelId_v2_from_revocation_basepoints(long ours, long theirs);
12170 // MUST_USE_RES struct LDKChannelId ChannelId_temporary_v2_from_revocation_basepoint(const struct LDKRevocationBasepoint *NONNULL_PTR our_revocation_basepoint);
12171 public static native long ChannelId_temporary_v2_from_revocation_basepoint(long our_revocation_basepoint);
12172 // struct LDKCVec_u8Z ChannelId_write(const struct LDKChannelId *NONNULL_PTR obj);
12173 public static native byte[] ChannelId_write(long obj);
12174 // struct LDKCResult_ChannelIdDecodeErrorZ ChannelId_read(struct LDKu8slice ser);
12175 public static native long ChannelId_read(byte[] ser);
12176 // struct LDKStr ChannelId_to_str(const struct LDKChannelId *NONNULL_PTR o);
12177 public static native String ChannelId_to_str(long o);
12178 // void Retry_free(struct LDKRetry this_ptr);
12179 public static native void Retry_free(long this_ptr);
12180 // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
12181 public static native long Retry_clone_ptr(long arg);
12182 // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
12183 public static native long Retry_clone(long orig);
12184 // struct LDKRetry Retry_attempts(uint32_t a);
12185 public static native long Retry_attempts(int a);
12186 // struct LDKRetry Retry_timeout(uint64_t a);
12187 public static native long Retry_timeout(long a);
12188 // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
12189 public static native boolean Retry_eq(long a, long b);
12190 // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
12191 public static native long Retry_hash(long o);
12192 // struct LDKCVec_u8Z Retry_write(const struct LDKRetry *NONNULL_PTR obj);
12193 public static native byte[] Retry_write(long obj);
12194 // struct LDKCResult_RetryDecodeErrorZ Retry_read(struct LDKu8slice ser);
12195 public static native long Retry_read(byte[] ser);
12196 // enum LDKRetryableSendFailure RetryableSendFailure_clone(const enum LDKRetryableSendFailure *NONNULL_PTR orig);
12197 public static native RetryableSendFailure RetryableSendFailure_clone(long orig);
12198 // enum LDKRetryableSendFailure RetryableSendFailure_payment_expired(void);
12199 public static native RetryableSendFailure RetryableSendFailure_payment_expired();
12200 // enum LDKRetryableSendFailure RetryableSendFailure_route_not_found(void);
12201 public static native RetryableSendFailure RetryableSendFailure_route_not_found();
12202 // enum LDKRetryableSendFailure RetryableSendFailure_duplicate_payment(void);
12203 public static native RetryableSendFailure RetryableSendFailure_duplicate_payment();
12204 // bool RetryableSendFailure_eq(const enum LDKRetryableSendFailure *NONNULL_PTR a, const enum LDKRetryableSendFailure *NONNULL_PTR b);
12205 public static native boolean RetryableSendFailure_eq(long a, long b);
12206 // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
12207 public static native void PaymentSendFailure_free(long this_ptr);
12208 // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
12209 public static native long PaymentSendFailure_clone_ptr(long arg);
12210 // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
12211 public static native long PaymentSendFailure_clone(long orig);
12212 // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
12213 public static native long PaymentSendFailure_parameter_error(long a);
12214 // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
12215 public static native long PaymentSendFailure_path_parameter_error(long[] a);
12216 // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_resend_safe(struct LDKCVec_APIErrorZ a);
12217 public static native long PaymentSendFailure_all_failed_resend_safe(long[] a);
12218 // struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void);
12219 public static native long PaymentSendFailure_duplicate_payment();
12220 // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
12221 public static native long PaymentSendFailure_partial_failure(long[] results, long failed_paths_retry, byte[] payment_id);
12222 // bool PaymentSendFailure_eq(const struct LDKPaymentSendFailure *NONNULL_PTR a, const struct LDKPaymentSendFailure *NONNULL_PTR b);
12223 public static native boolean PaymentSendFailure_eq(long a, long b);
12224 // void ProbeSendFailure_free(struct LDKProbeSendFailure this_ptr);
12225 public static native void ProbeSendFailure_free(long this_ptr);
12226 // uint64_t ProbeSendFailure_clone_ptr(LDKProbeSendFailure *NONNULL_PTR arg);
12227 public static native long ProbeSendFailure_clone_ptr(long arg);
12228 // struct LDKProbeSendFailure ProbeSendFailure_clone(const struct LDKProbeSendFailure *NONNULL_PTR orig);
12229 public static native long ProbeSendFailure_clone(long orig);
12230 // struct LDKProbeSendFailure ProbeSendFailure_route_not_found(void);
12231 public static native long ProbeSendFailure_route_not_found();
12232 // struct LDKProbeSendFailure ProbeSendFailure_sending_failed(struct LDKPaymentSendFailure a);
12233 public static native long ProbeSendFailure_sending_failed(long a);
12234 // bool ProbeSendFailure_eq(const struct LDKProbeSendFailure *NONNULL_PTR a, const struct LDKProbeSendFailure *NONNULL_PTR b);
12235 public static native boolean ProbeSendFailure_eq(long a, long b);
12236 // void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj);
12237 public static native void RecipientOnionFields_free(long this_obj);
12238 // struct LDKCOption_ThirtyTwoBytesZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
12239 public static native long RecipientOnionFields_get_payment_secret(long this_ptr);
12240 // void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
12241 public static native void RecipientOnionFields_set_payment_secret(long this_ptr, long val);
12242 // struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
12243 public static native long RecipientOnionFields_get_payment_metadata(long this_ptr);
12244 // void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
12245 public static native void RecipientOnionFields_set_payment_metadata(long this_ptr, long val);
12246 // uint64_t RecipientOnionFields_clone_ptr(LDKRecipientOnionFields *NONNULL_PTR arg);
12247 public static native long RecipientOnionFields_clone_ptr(long arg);
12248 // struct LDKRecipientOnionFields RecipientOnionFields_clone(const struct LDKRecipientOnionFields *NONNULL_PTR orig);
12249 public static native long RecipientOnionFields_clone(long orig);
12250 // bool RecipientOnionFields_eq(const struct LDKRecipientOnionFields *NONNULL_PTR a, const struct LDKRecipientOnionFields *NONNULL_PTR b);
12251 public static native boolean RecipientOnionFields_eq(long a, long b);
12252 // struct LDKCVec_u8Z RecipientOnionFields_write(const struct LDKRecipientOnionFields *NONNULL_PTR obj);
12253 public static native byte[] RecipientOnionFields_write(long obj);
12254 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ RecipientOnionFields_read(struct LDKu8slice ser);
12255 public static native long RecipientOnionFields_read(byte[] ser);
12256 // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(struct LDKThirtyTwoBytes payment_secret);
12257 public static native long RecipientOnionFields_secret_only(byte[] payment_secret);
12258 // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void);
12259 public static native long RecipientOnionFields_spontaneous_empty();
12260 // MUST_USE_RES struct LDKCResult_RecipientOnionFieldsNoneZ RecipientOnionFields_with_custom_tlvs(struct LDKRecipientOnionFields this_arg, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs);
12261 public static native long RecipientOnionFields_with_custom_tlvs(long this_arg, long[] custom_tlvs);
12262 // MUST_USE_RES struct LDKCVec_C2Tuple_u64CVec_u8ZZZ RecipientOnionFields_custom_tlvs(const struct LDKRecipientOnionFields *NONNULL_PTR this_arg);
12263 public static native long[] RecipientOnionFields_custom_tlvs(long this_arg);
12264 // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
12265 public static native void CustomMessageReader_free(long this_ptr);
12266 // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
12267 public static native long Type_clone_ptr(long arg);
12268 // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
12269 public static native long Type_clone(long orig);
12270 // void Type_free(struct LDKType this_ptr);
12271 public static native void Type_free(long this_ptr);
12272 // void OfferId_free(struct LDKOfferId this_obj);
12273 public static native void OfferId_free(long this_obj);
12274 // const uint8_t (*OfferId_get_a(const struct LDKOfferId *NONNULL_PTR this_ptr))[32];
12275 public static native byte[] OfferId_get_a(long this_ptr);
12276 // void OfferId_set_a(struct LDKOfferId *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12277 public static native void OfferId_set_a(long this_ptr, byte[] val);
12278 // MUST_USE_RES struct LDKOfferId OfferId_new(struct LDKThirtyTwoBytes a_arg);
12279 public static native long OfferId_new(byte[] a_arg);
12280 // uint64_t OfferId_clone_ptr(LDKOfferId *NONNULL_PTR arg);
12281 public static native long OfferId_clone_ptr(long arg);
12282 // struct LDKOfferId OfferId_clone(const struct LDKOfferId *NONNULL_PTR orig);
12283 public static native long OfferId_clone(long orig);
12284 // bool OfferId_eq(const struct LDKOfferId *NONNULL_PTR a, const struct LDKOfferId *NONNULL_PTR b);
12285 public static native boolean OfferId_eq(long a, long b);
12286 // struct LDKCVec_u8Z OfferId_write(const struct LDKOfferId *NONNULL_PTR obj);
12287 public static native byte[] OfferId_write(long obj);
12288 // struct LDKCResult_OfferIdDecodeErrorZ OfferId_read(struct LDKu8slice ser);
12289 public static native long OfferId_read(byte[] ser);
12290 // void OfferWithExplicitMetadataBuilder_free(struct LDKOfferWithExplicitMetadataBuilder this_obj);
12291 public static native void OfferWithExplicitMetadataBuilder_free(long this_obj);
12292 // uint64_t OfferWithExplicitMetadataBuilder_clone_ptr(LDKOfferWithExplicitMetadataBuilder *NONNULL_PTR arg);
12293 public static native long OfferWithExplicitMetadataBuilder_clone_ptr(long arg);
12294 // struct LDKOfferWithExplicitMetadataBuilder OfferWithExplicitMetadataBuilder_clone(const struct LDKOfferWithExplicitMetadataBuilder *NONNULL_PTR orig);
12295 public static native long OfferWithExplicitMetadataBuilder_clone(long orig);
12296 // void OfferWithDerivedMetadataBuilder_free(struct LDKOfferWithDerivedMetadataBuilder this_obj);
12297 public static native void OfferWithDerivedMetadataBuilder_free(long this_obj);
12298 // uint64_t OfferWithDerivedMetadataBuilder_clone_ptr(LDKOfferWithDerivedMetadataBuilder *NONNULL_PTR arg);
12299 public static native long OfferWithDerivedMetadataBuilder_clone_ptr(long arg);
12300 // struct LDKOfferWithDerivedMetadataBuilder OfferWithDerivedMetadataBuilder_clone(const struct LDKOfferWithDerivedMetadataBuilder *NONNULL_PTR orig);
12301 public static native long OfferWithDerivedMetadataBuilder_clone(long orig);
12302 // MUST_USE_RES struct LDKOfferWithExplicitMetadataBuilder OfferWithExplicitMetadataBuilder_new(struct LDKPublicKey signing_pubkey);
12303 public static native long OfferWithExplicitMetadataBuilder_new(byte[] signing_pubkey);
12304 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ OfferWithExplicitMetadataBuilder_metadata(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKCVec_u8Z metadata);
12305 public static native long OfferWithExplicitMetadataBuilder_metadata(long this_arg, byte[] metadata);
12306 // MUST_USE_RES void OfferWithExplicitMetadataBuilder_chain(struct LDKOfferWithExplicitMetadataBuilder this_arg, enum LDKNetwork network);
12307 public static native void OfferWithExplicitMetadataBuilder_chain(long this_arg, Network network);
12308 // MUST_USE_RES void OfferWithExplicitMetadataBuilder_amount_msats(struct LDKOfferWithExplicitMetadataBuilder this_arg, uint64_t amount_msats);
12309 public static native void OfferWithExplicitMetadataBuilder_amount_msats(long this_arg, long amount_msats);
12310 // MUST_USE_RES void OfferWithExplicitMetadataBuilder_absolute_expiry(struct LDKOfferWithExplicitMetadataBuilder this_arg, uint64_t absolute_expiry);
12311 public static native void OfferWithExplicitMetadataBuilder_absolute_expiry(long this_arg, long absolute_expiry);
12312 // MUST_USE_RES void OfferWithExplicitMetadataBuilder_description(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKStr description);
12313 public static native void OfferWithExplicitMetadataBuilder_description(long this_arg, String description);
12314 // MUST_USE_RES void OfferWithExplicitMetadataBuilder_issuer(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKStr issuer);
12315 public static native void OfferWithExplicitMetadataBuilder_issuer(long this_arg, String issuer);
12316 // MUST_USE_RES void OfferWithExplicitMetadataBuilder_path(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKBlindedPath path);
12317 public static native void OfferWithExplicitMetadataBuilder_path(long this_arg, long path);
12318 // MUST_USE_RES void OfferWithExplicitMetadataBuilder_supported_quantity(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKQuantity quantity);
12319 public static native void OfferWithExplicitMetadataBuilder_supported_quantity(long this_arg, long quantity);
12320 // MUST_USE_RES struct LDKCResult_OfferBolt12SemanticErrorZ OfferWithExplicitMetadataBuilder_build(struct LDKOfferWithExplicitMetadataBuilder this_arg);
12321 public static native long OfferWithExplicitMetadataBuilder_build(long this_arg);
12322 // MUST_USE_RES struct LDKOfferWithDerivedMetadataBuilder OfferWithDerivedMetadataBuilder_deriving_signing_pubkey(struct LDKPublicKey node_id, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source);
12323 public static native long OfferWithDerivedMetadataBuilder_deriving_signing_pubkey(byte[] node_id, long expanded_key, long entropy_source);
12324 // MUST_USE_RES void OfferWithDerivedMetadataBuilder_chain(struct LDKOfferWithDerivedMetadataBuilder this_arg, enum LDKNetwork network);
12325 public static native void OfferWithDerivedMetadataBuilder_chain(long this_arg, Network network);
12326 // MUST_USE_RES void OfferWithDerivedMetadataBuilder_amount_msats(struct LDKOfferWithDerivedMetadataBuilder this_arg, uint64_t amount_msats);
12327 public static native void OfferWithDerivedMetadataBuilder_amount_msats(long this_arg, long amount_msats);
12328 // MUST_USE_RES void OfferWithDerivedMetadataBuilder_absolute_expiry(struct LDKOfferWithDerivedMetadataBuilder this_arg, uint64_t absolute_expiry);
12329 public static native void OfferWithDerivedMetadataBuilder_absolute_expiry(long this_arg, long absolute_expiry);
12330 // MUST_USE_RES void OfferWithDerivedMetadataBuilder_description(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKStr description);
12331 public static native void OfferWithDerivedMetadataBuilder_description(long this_arg, String description);
12332 // MUST_USE_RES void OfferWithDerivedMetadataBuilder_issuer(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKStr issuer);
12333 public static native void OfferWithDerivedMetadataBuilder_issuer(long this_arg, String issuer);
12334 // MUST_USE_RES void OfferWithDerivedMetadataBuilder_path(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKBlindedPath path);
12335 public static native void OfferWithDerivedMetadataBuilder_path(long this_arg, long path);
12336 // MUST_USE_RES void OfferWithDerivedMetadataBuilder_supported_quantity(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKQuantity quantity);
12337 public static native void OfferWithDerivedMetadataBuilder_supported_quantity(long this_arg, long quantity);
12338 // MUST_USE_RES struct LDKCResult_OfferBolt12SemanticErrorZ OfferWithDerivedMetadataBuilder_build(struct LDKOfferWithDerivedMetadataBuilder this_arg);
12339 public static native long OfferWithDerivedMetadataBuilder_build(long this_arg);
12340 // void Offer_free(struct LDKOffer this_obj);
12341 public static native void Offer_free(long this_obj);
12342 // uint64_t Offer_clone_ptr(LDKOffer *NONNULL_PTR arg);
12343 public static native long Offer_clone_ptr(long arg);
12344 // struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig);
12345 public static native long Offer_clone(long orig);
12346 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg);
12347 public static native byte[][] Offer_chains(long this_arg);
12348 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg);
12349 public static native long Offer_metadata(long this_arg);
12350 // MUST_USE_RES struct LDKCOption_AmountZ Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg);
12351 public static native long Offer_amount(long this_arg);
12352 // MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg);
12353 public static native long Offer_description(long this_arg);
12354 // MUST_USE_RES struct LDKOfferFeatures Offer_offer_features(const struct LDKOffer *NONNULL_PTR this_arg);
12355 public static native long Offer_offer_features(long this_arg);
12356 // MUST_USE_RES struct LDKCOption_u64Z Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg);
12357 public static native long Offer_absolute_expiry(long this_arg);
12358 // MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg);
12359 public static native long Offer_issuer(long this_arg);
12360 // MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg);
12361 public static native long[] Offer_paths(long this_arg);
12362 // MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
12363 public static native long Offer_supported_quantity(long this_arg);
12364 // MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg);
12365 public static native byte[] Offer_signing_pubkey(long this_arg);
12366 // MUST_USE_RES struct LDKOfferId Offer_id(const struct LDKOffer *NONNULL_PTR this_arg);
12367 public static native long Offer_id(long this_arg);
12368 // MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain);
12369 public static native boolean Offer_supports_chain(long this_arg, byte[] chain);
12370 // MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg);
12371 public static native boolean Offer_is_expired(long this_arg);
12372 // MUST_USE_RES bool Offer_is_expired_no_std(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t duration_since_epoch);
12373 public static native boolean Offer_is_expired_no_std(long this_arg, long duration_since_epoch);
12374 // MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity);
12375 public static native boolean Offer_is_valid_quantity(long this_arg, long quantity);
12376 // MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
12377 public static native boolean Offer_expects_quantity(long this_arg);
12378 // MUST_USE_RES struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ Offer_request_invoice_deriving_payer_id(const struct LDKOffer *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source, struct LDKThirtyTwoBytes payment_id);
12379 public static native long Offer_request_invoice_deriving_payer_id(long this_arg, long expanded_key, long entropy_source, byte[] payment_id);
12380 // MUST_USE_RES struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ Offer_request_invoice_deriving_metadata(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKPublicKey payer_id, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source, struct LDKThirtyTwoBytes payment_id);
12381 public static native long Offer_request_invoice_deriving_metadata(long this_arg, byte[] payer_id, long expanded_key, long entropy_source, byte[] payment_id);
12382 // MUST_USE_RES struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ Offer_request_invoice(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKCVec_u8Z metadata, struct LDKPublicKey payer_id);
12383 public static native long Offer_request_invoice(long this_arg, byte[] metadata, byte[] payer_id);
12384 // uint64_t Offer_hash(const struct LDKOffer *NONNULL_PTR o);
12385 public static native long Offer_hash(long o);
12386 // struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj);
12387 public static native byte[] Offer_write(long obj);
12388 // void Amount_free(struct LDKAmount this_ptr);
12389 public static native void Amount_free(long this_ptr);
12390 // uint64_t Amount_clone_ptr(LDKAmount *NONNULL_PTR arg);
12391 public static native long Amount_clone_ptr(long arg);
12392 // struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig);
12393 public static native long Amount_clone(long orig);
12394 // struct LDKAmount Amount_bitcoin(uint64_t amount_msats);
12395 public static native long Amount_bitcoin(long amount_msats);
12396 // struct LDKAmount Amount_currency(struct LDKThreeBytes iso4217_code, uint64_t amount);
12397 public static native long Amount_currency(byte[] iso4217_code, long amount);
12398 // void Quantity_free(struct LDKQuantity this_ptr);
12399 public static native void Quantity_free(long this_ptr);
12400 // uint64_t Quantity_clone_ptr(LDKQuantity *NONNULL_PTR arg);
12401 public static native long Quantity_clone_ptr(long arg);
12402 // struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig);
12403 public static native long Quantity_clone(long orig);
12404 // struct LDKQuantity Quantity_bounded(uint64_t a);
12405 public static native long Quantity_bounded(long a);
12406 // struct LDKQuantity Quantity_unbounded(void);
12407 public static native long Quantity_unbounded();
12408 // struct LDKQuantity Quantity_one(void);
12409 public static native long Quantity_one();
12410 // struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s);
12411 public static native long Offer_from_str(String s);
12412 // struct LDKStr Offer_to_str(const struct LDKOffer *NONNULL_PTR o);
12413 public static native String Offer_to_str(long o);
12414 // void InvoiceWithExplicitSigningPubkeyBuilder_free(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_obj);
12415 public static native void InvoiceWithExplicitSigningPubkeyBuilder_free(long this_obj);
12416 // void InvoiceWithDerivedSigningPubkeyBuilder_free(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_obj);
12417 public static native void InvoiceWithDerivedSigningPubkeyBuilder_free(long this_obj);
12418 // MUST_USE_RES struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ InvoiceWithExplicitSigningPubkeyBuilder_build(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg);
12419 public static native long InvoiceWithExplicitSigningPubkeyBuilder_build(long this_arg);
12420 // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_relative_expiry(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, uint32_t relative_expiry_secs);
12421 public static native void InvoiceWithExplicitSigningPubkeyBuilder_relative_expiry(long this_arg, int relative_expiry_secs);
12422 // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wsh(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, const uint8_t (*script_hash)[32]);
12423 public static native void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wsh(long this_arg, byte[] script_hash);
12424 // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wpkh(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, const uint8_t (*pubkey_hash)[20]);
12425 public static native void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wpkh(long this_arg, byte[] pubkey_hash);
12426 // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, struct LDKTweakedPublicKey output_key);
12427 public static native void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(long this_arg, byte[] utput_key);
12428 // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_allow_mpp(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg);
12429 public static native void InvoiceWithExplicitSigningPubkeyBuilder_allow_mpp(long this_arg);
12430 // MUST_USE_RES struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ InvoiceWithDerivedSigningPubkeyBuilder_build_and_sign(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg);
12431 public static native long InvoiceWithDerivedSigningPubkeyBuilder_build_and_sign(long this_arg);
12432 // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_relative_expiry(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, uint32_t relative_expiry_secs);
12433 public static native void InvoiceWithDerivedSigningPubkeyBuilder_relative_expiry(long this_arg, int relative_expiry_secs);
12434 // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wsh(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, const uint8_t (*script_hash)[32]);
12435 public static native void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wsh(long this_arg, byte[] script_hash);
12436 // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wpkh(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, const uint8_t (*pubkey_hash)[20]);
12437 public static native void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wpkh(long this_arg, byte[] pubkey_hash);
12438 // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, struct LDKTweakedPublicKey output_key);
12439 public static native void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(long this_arg, byte[] utput_key);
12440 // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_allow_mpp(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg);
12441 public static native void InvoiceWithDerivedSigningPubkeyBuilder_allow_mpp(long this_arg);
12442 // void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj);
12443 public static native void UnsignedBolt12Invoice_free(long this_obj);
12444 // uint64_t UnsignedBolt12Invoice_clone_ptr(LDKUnsignedBolt12Invoice *NONNULL_PTR arg);
12445 public static native long UnsignedBolt12Invoice_clone_ptr(long arg);
12446 // struct LDKUnsignedBolt12Invoice UnsignedBolt12Invoice_clone(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR orig);
12447 public static native long UnsignedBolt12Invoice_clone(long orig);
12448 // void SignBolt12InvoiceFn_free(struct LDKSignBolt12InvoiceFn this_ptr);
12449 public static native void SignBolt12InvoiceFn_free(long this_ptr);
12450 // MUST_USE_RES struct LDKTaggedHash UnsignedBolt12Invoice_tagged_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12451 public static native long UnsignedBolt12Invoice_tagged_hash(long this_arg);
12452 // void Bolt12Invoice_free(struct LDKBolt12Invoice this_obj);
12453 public static native void Bolt12Invoice_free(long this_obj);
12454 // uint64_t Bolt12Invoice_clone_ptr(LDKBolt12Invoice *NONNULL_PTR arg);
12455 public static native long Bolt12Invoice_clone_ptr(long arg);
12456 // struct LDKBolt12Invoice Bolt12Invoice_clone(const struct LDKBolt12Invoice *NONNULL_PTR orig);
12457 public static native long Bolt12Invoice_clone(long orig);
12458 // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ UnsignedBolt12Invoice_offer_chains(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12459 public static native long UnsignedBolt12Invoice_offer_chains(long this_arg);
12460 // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_chain(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12461 public static native byte[] UnsignedBolt12Invoice_chain(long this_arg);
12462 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedBolt12Invoice_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12463 public static native long UnsignedBolt12Invoice_metadata(long this_arg);
12464 // MUST_USE_RES struct LDKCOption_AmountZ UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12465 public static native long UnsignedBolt12Invoice_amount(long this_arg);
12466 // MUST_USE_RES struct LDKOfferFeatures UnsignedBolt12Invoice_offer_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12467 public static native long UnsignedBolt12Invoice_offer_features(long this_arg);
12468 // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_description(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12469 public static native long UnsignedBolt12Invoice_description(long this_arg);
12470 // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_absolute_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12471 public static native long UnsignedBolt12Invoice_absolute_expiry(long this_arg);
12472 // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_issuer(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12473 public static native long UnsignedBolt12Invoice_issuer(long this_arg);
12474 // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedBolt12Invoice_message_paths(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12475 public static native long[] UnsignedBolt12Invoice_message_paths(long this_arg);
12476 // MUST_USE_RES struct LDKCOption_QuantityZ UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12477 public static native long UnsignedBolt12Invoice_supported_quantity(long this_arg);
12478 // MUST_USE_RES struct LDKu8slice UnsignedBolt12Invoice_payer_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12479 public static native byte[] UnsignedBolt12Invoice_payer_metadata(long this_arg);
12480 // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedBolt12Invoice_invoice_request_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12481 public static native long UnsignedBolt12Invoice_invoice_request_features(long this_arg);
12482 // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12483 public static native long UnsignedBolt12Invoice_quantity(long this_arg);
12484 // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_payer_id(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12485 public static native byte[] UnsignedBolt12Invoice_payer_id(long this_arg);
12486 // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_payer_note(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12487 public static native long UnsignedBolt12Invoice_payer_note(long this_arg);
12488 // MUST_USE_RES uint64_t UnsignedBolt12Invoice_created_at(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12489 public static native long UnsignedBolt12Invoice_created_at(long this_arg);
12490 // MUST_USE_RES uint64_t UnsignedBolt12Invoice_relative_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12491 public static native long UnsignedBolt12Invoice_relative_expiry(long this_arg);
12492 // MUST_USE_RES bool UnsignedBolt12Invoice_is_expired(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12493 public static native boolean UnsignedBolt12Invoice_is_expired(long this_arg);
12494 // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_payment_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12495 public static native byte[] UnsignedBolt12Invoice_payment_hash(long this_arg);
12496 // MUST_USE_RES uint64_t UnsignedBolt12Invoice_amount_msats(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12497 public static native long UnsignedBolt12Invoice_amount_msats(long this_arg);
12498 // MUST_USE_RES struct LDKBolt12InvoiceFeatures UnsignedBolt12Invoice_invoice_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12499 public static native long UnsignedBolt12Invoice_invoice_features(long this_arg);
12500 // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
12501 public static native byte[] UnsignedBolt12Invoice_signing_pubkey(long this_arg);
12502 // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ Bolt12Invoice_offer_chains(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12503 public static native long Bolt12Invoice_offer_chains(long this_arg);
12504 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_chain(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12505 public static native byte[] Bolt12Invoice_chain(long this_arg);
12506 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt12Invoice_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12507 public static native long Bolt12Invoice_metadata(long this_arg);
12508 // MUST_USE_RES struct LDKCOption_AmountZ Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12509 public static native long Bolt12Invoice_amount(long this_arg);
12510 // MUST_USE_RES struct LDKOfferFeatures Bolt12Invoice_offer_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12511 public static native long Bolt12Invoice_offer_features(long this_arg);
12512 // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_description(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12513 public static native long Bolt12Invoice_description(long this_arg);
12514 // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_absolute_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12515 public static native long Bolt12Invoice_absolute_expiry(long this_arg);
12516 // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_issuer(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12517 public static native long Bolt12Invoice_issuer(long this_arg);
12518 // MUST_USE_RES struct LDKCVec_BlindedPathZ Bolt12Invoice_message_paths(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12519 public static native long[] Bolt12Invoice_message_paths(long this_arg);
12520 // MUST_USE_RES struct LDKCOption_QuantityZ Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12521 public static native long Bolt12Invoice_supported_quantity(long this_arg);
12522 // MUST_USE_RES struct LDKu8slice Bolt12Invoice_payer_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12523 public static native byte[] Bolt12Invoice_payer_metadata(long this_arg);
12524 // MUST_USE_RES struct LDKInvoiceRequestFeatures Bolt12Invoice_invoice_request_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12525 public static native long Bolt12Invoice_invoice_request_features(long this_arg);
12526 // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12527 public static native long Bolt12Invoice_quantity(long this_arg);
12528 // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_payer_id(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12529 public static native byte[] Bolt12Invoice_payer_id(long this_arg);
12530 // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_payer_note(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12531 public static native long Bolt12Invoice_payer_note(long this_arg);
12532 // MUST_USE_RES uint64_t Bolt12Invoice_created_at(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12533 public static native long Bolt12Invoice_created_at(long this_arg);
12534 // MUST_USE_RES uint64_t Bolt12Invoice_relative_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12535 public static native long Bolt12Invoice_relative_expiry(long this_arg);
12536 // MUST_USE_RES bool Bolt12Invoice_is_expired(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12537 public static native boolean Bolt12Invoice_is_expired(long this_arg);
12538 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_payment_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12539 public static native byte[] Bolt12Invoice_payment_hash(long this_arg);
12540 // MUST_USE_RES uint64_t Bolt12Invoice_amount_msats(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12541 public static native long Bolt12Invoice_amount_msats(long this_arg);
12542 // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12543 public static native long Bolt12Invoice_invoice_features(long this_arg);
12544 // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_signing_pubkey(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12545 public static native byte[] Bolt12Invoice_signing_pubkey(long this_arg);
12546 // MUST_USE_RES struct LDKSchnorrSignature Bolt12Invoice_signature(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12547 public static native byte[] Bolt12Invoice_signature(long this_arg);
12548 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_signable_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
12549 public static native byte[] Bolt12Invoice_signable_hash(long this_arg);
12550 // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
12551 public static native long Bolt12Invoice_verify(long this_arg, long key);
12552 // uint64_t Bolt12Invoice_hash(const struct LDKBolt12Invoice *NONNULL_PTR o);
12553 public static native long Bolt12Invoice_hash(long o);
12554 // struct LDKCVec_u8Z UnsignedBolt12Invoice_write(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR obj);
12555 public static native byte[] UnsignedBolt12Invoice_write(long obj);
12556 // struct LDKCVec_u8Z Bolt12Invoice_write(const struct LDKBolt12Invoice *NONNULL_PTR obj);
12557 public static native byte[] Bolt12Invoice_write(long obj);
12558 // void BlindedPayInfo_free(struct LDKBlindedPayInfo this_obj);
12559 public static native void BlindedPayInfo_free(long this_obj);
12560 // uint32_t BlindedPayInfo_get_fee_base_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
12561 public static native int BlindedPayInfo_get_fee_base_msat(long this_ptr);
12562 // void BlindedPayInfo_set_fee_base_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
12563 public static native void BlindedPayInfo_set_fee_base_msat(long this_ptr, int val);
12564 // uint32_t BlindedPayInfo_get_fee_proportional_millionths(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
12565 public static native int BlindedPayInfo_get_fee_proportional_millionths(long this_ptr);
12566 // void BlindedPayInfo_set_fee_proportional_millionths(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
12567 public static native void BlindedPayInfo_set_fee_proportional_millionths(long this_ptr, int val);
12568 // uint16_t BlindedPayInfo_get_cltv_expiry_delta(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
12569 public static native short BlindedPayInfo_get_cltv_expiry_delta(long this_ptr);
12570 // void BlindedPayInfo_set_cltv_expiry_delta(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint16_t val);
12571 public static native void BlindedPayInfo_set_cltv_expiry_delta(long this_ptr, short val);
12572 // uint64_t BlindedPayInfo_get_htlc_minimum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
12573 public static native long BlindedPayInfo_get_htlc_minimum_msat(long this_ptr);
12574 // void BlindedPayInfo_set_htlc_minimum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
12575 public static native void BlindedPayInfo_set_htlc_minimum_msat(long this_ptr, long val);
12576 // uint64_t BlindedPayInfo_get_htlc_maximum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
12577 public static native long BlindedPayInfo_get_htlc_maximum_msat(long this_ptr);
12578 // void BlindedPayInfo_set_htlc_maximum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
12579 public static native void BlindedPayInfo_set_htlc_maximum_msat(long this_ptr, long val);
12580 // struct LDKBlindedHopFeatures BlindedPayInfo_get_features(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
12581 public static native long BlindedPayInfo_get_features(long this_ptr);
12582 // void BlindedPayInfo_set_features(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
12583 public static native void BlindedPayInfo_set_features(long this_ptr, long val);
12584 // 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);
12585 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);
12586 // uint64_t BlindedPayInfo_clone_ptr(LDKBlindedPayInfo *NONNULL_PTR arg);
12587 public static native long BlindedPayInfo_clone_ptr(long arg);
12588 // struct LDKBlindedPayInfo BlindedPayInfo_clone(const struct LDKBlindedPayInfo *NONNULL_PTR orig);
12589 public static native long BlindedPayInfo_clone(long orig);
12590 // uint64_t BlindedPayInfo_hash(const struct LDKBlindedPayInfo *NONNULL_PTR o);
12591 public static native long BlindedPayInfo_hash(long o);
12592 // bool BlindedPayInfo_eq(const struct LDKBlindedPayInfo *NONNULL_PTR a, const struct LDKBlindedPayInfo *NONNULL_PTR b);
12593 public static native boolean BlindedPayInfo_eq(long a, long b);
12594 // struct LDKCVec_u8Z BlindedPayInfo_write(const struct LDKBlindedPayInfo *NONNULL_PTR obj);
12595 public static native byte[] BlindedPayInfo_write(long obj);
12596 // struct LDKCResult_BlindedPayInfoDecodeErrorZ BlindedPayInfo_read(struct LDKu8slice ser);
12597 public static native long BlindedPayInfo_read(byte[] ser);
12598 // void InvoiceError_free(struct LDKInvoiceError this_obj);
12599 public static native void InvoiceError_free(long this_obj);
12600 // struct LDKErroneousField InvoiceError_get_erroneous_field(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
12601 public static native long InvoiceError_get_erroneous_field(long this_ptr);
12602 // void InvoiceError_set_erroneous_field(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKErroneousField val);
12603 public static native void InvoiceError_set_erroneous_field(long this_ptr, long val);
12604 // struct LDKUntrustedString InvoiceError_get_message(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
12605 public static native long InvoiceError_get_message(long this_ptr);
12606 // void InvoiceError_set_message(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKUntrustedString val);
12607 public static native void InvoiceError_set_message(long this_ptr, long val);
12608 // MUST_USE_RES struct LDKInvoiceError InvoiceError_new(struct LDKErroneousField erroneous_field_arg, struct LDKUntrustedString message_arg);
12609 public static native long InvoiceError_new(long erroneous_field_arg, long message_arg);
12610 // uint64_t InvoiceError_clone_ptr(LDKInvoiceError *NONNULL_PTR arg);
12611 public static native long InvoiceError_clone_ptr(long arg);
12612 // struct LDKInvoiceError InvoiceError_clone(const struct LDKInvoiceError *NONNULL_PTR orig);
12613 public static native long InvoiceError_clone(long orig);
12614 // void ErroneousField_free(struct LDKErroneousField this_obj);
12615 public static native void ErroneousField_free(long this_obj);
12616 // uint64_t ErroneousField_get_tlv_fieldnum(const struct LDKErroneousField *NONNULL_PTR this_ptr);
12617 public static native long ErroneousField_get_tlv_fieldnum(long this_ptr);
12618 // void ErroneousField_set_tlv_fieldnum(struct LDKErroneousField *NONNULL_PTR this_ptr, uint64_t val);
12619 public static native void ErroneousField_set_tlv_fieldnum(long this_ptr, long val);
12620 // struct LDKCOption_CVec_u8ZZ ErroneousField_get_suggested_value(const struct LDKErroneousField *NONNULL_PTR this_ptr);
12621 public static native long ErroneousField_get_suggested_value(long this_ptr);
12622 // void ErroneousField_set_suggested_value(struct LDKErroneousField *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
12623 public static native void ErroneousField_set_suggested_value(long this_ptr, long val);
12624 // MUST_USE_RES struct LDKErroneousField ErroneousField_new(uint64_t tlv_fieldnum_arg, struct LDKCOption_CVec_u8ZZ suggested_value_arg);
12625 public static native long ErroneousField_new(long tlv_fieldnum_arg, long suggested_value_arg);
12626 // uint64_t ErroneousField_clone_ptr(LDKErroneousField *NONNULL_PTR arg);
12627 public static native long ErroneousField_clone_ptr(long arg);
12628 // struct LDKErroneousField ErroneousField_clone(const struct LDKErroneousField *NONNULL_PTR orig);
12629 public static native long ErroneousField_clone(long orig);
12630 // MUST_USE_RES struct LDKInvoiceError InvoiceError_from_string(struct LDKStr s);
12631 public static native long InvoiceError_from_string(String s);
12632 // struct LDKStr InvoiceError_to_str(const struct LDKInvoiceError *NONNULL_PTR o);
12633 public static native String InvoiceError_to_str(long o);
12634 // struct LDKCVec_u8Z InvoiceError_write(const struct LDKInvoiceError *NONNULL_PTR obj);
12635 public static native byte[] InvoiceError_write(long obj);
12636 // struct LDKCResult_InvoiceErrorDecodeErrorZ InvoiceError_read(struct LDKu8slice ser);
12637 public static native long InvoiceError_read(byte[] ser);
12638 // void InvoiceRequestWithExplicitPayerIdBuilder_free(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_obj);
12639 public static native void InvoiceRequestWithExplicitPayerIdBuilder_free(long this_obj);
12640 // void InvoiceRequestWithDerivedPayerIdBuilder_free(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_obj);
12641 public static native void InvoiceRequestWithDerivedPayerIdBuilder_free(long this_obj);
12642 // MUST_USE_RES struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_build(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg);
12643 public static native long InvoiceRequestWithExplicitPayerIdBuilder_build(long this_arg);
12644 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_chain(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, enum LDKNetwork network);
12645 public static native long InvoiceRequestWithExplicitPayerIdBuilder_chain(long this_arg, Network network);
12646 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_amount_msats(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, uint64_t amount_msats);
12647 public static native long InvoiceRequestWithExplicitPayerIdBuilder_amount_msats(long this_arg, long amount_msats);
12648 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_quantity(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, uint64_t quantity);
12649 public static native long InvoiceRequestWithExplicitPayerIdBuilder_quantity(long this_arg, long quantity);
12650 // MUST_USE_RES void InvoiceRequestWithExplicitPayerIdBuilder_payer_note(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, struct LDKStr payer_note);
12651 public static native void InvoiceRequestWithExplicitPayerIdBuilder_payer_note(long this_arg, String payer_note);
12652 // MUST_USE_RES struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_build_and_sign(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg);
12653 public static native long InvoiceRequestWithDerivedPayerIdBuilder_build_and_sign(long this_arg);
12654 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_chain(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, enum LDKNetwork network);
12655 public static native long InvoiceRequestWithDerivedPayerIdBuilder_chain(long this_arg, Network network);
12656 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_amount_msats(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, uint64_t amount_msats);
12657 public static native long InvoiceRequestWithDerivedPayerIdBuilder_amount_msats(long this_arg, long amount_msats);
12658 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_quantity(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, uint64_t quantity);
12659 public static native long InvoiceRequestWithDerivedPayerIdBuilder_quantity(long this_arg, long quantity);
12660 // MUST_USE_RES void InvoiceRequestWithDerivedPayerIdBuilder_payer_note(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, struct LDKStr payer_note);
12661 public static native void InvoiceRequestWithDerivedPayerIdBuilder_payer_note(long this_arg, String payer_note);
12662 // void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj);
12663 public static native void UnsignedInvoiceRequest_free(long this_obj);
12664 // uint64_t UnsignedInvoiceRequest_clone_ptr(LDKUnsignedInvoiceRequest *NONNULL_PTR arg);
12665 public static native long UnsignedInvoiceRequest_clone_ptr(long arg);
12666 // struct LDKUnsignedInvoiceRequest UnsignedInvoiceRequest_clone(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR orig);
12667 public static native long UnsignedInvoiceRequest_clone(long orig);
12668 // void SignInvoiceRequestFn_free(struct LDKSignInvoiceRequestFn this_ptr);
12669 public static native void SignInvoiceRequestFn_free(long this_ptr);
12670 // MUST_USE_RES struct LDKTaggedHash UnsignedInvoiceRequest_tagged_hash(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12671 public static native long UnsignedInvoiceRequest_tagged_hash(long this_arg);
12672 // void InvoiceRequest_free(struct LDKInvoiceRequest this_obj);
12673 public static native void InvoiceRequest_free(long this_obj);
12674 // uint64_t InvoiceRequest_clone_ptr(LDKInvoiceRequest *NONNULL_PTR arg);
12675 public static native long InvoiceRequest_clone_ptr(long arg);
12676 // struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig);
12677 public static native long InvoiceRequest_clone(long orig);
12678 // void VerifiedInvoiceRequest_free(struct LDKVerifiedInvoiceRequest this_obj);
12679 public static native void VerifiedInvoiceRequest_free(long this_obj);
12680 // struct LDKOfferId VerifiedInvoiceRequest_get_offer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr);
12681 public static native long VerifiedInvoiceRequest_get_offer_id(long this_ptr);
12682 // void VerifiedInvoiceRequest_set_offer_id(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKOfferId val);
12683 public static native void VerifiedInvoiceRequest_set_offer_id(long this_ptr, long val);
12684 // struct LDKCOption_SecretKeyZ VerifiedInvoiceRequest_get_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr);
12685 public static native long VerifiedInvoiceRequest_get_keys(long this_ptr);
12686 // void VerifiedInvoiceRequest_set_keys(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKCOption_SecretKeyZ val);
12687 public static native void VerifiedInvoiceRequest_set_keys(long this_ptr, long val);
12688 // uint64_t VerifiedInvoiceRequest_clone_ptr(LDKVerifiedInvoiceRequest *NONNULL_PTR arg);
12689 public static native long VerifiedInvoiceRequest_clone_ptr(long arg);
12690 // struct LDKVerifiedInvoiceRequest VerifiedInvoiceRequest_clone(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR orig);
12691 public static native long VerifiedInvoiceRequest_clone(long orig);
12692 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ UnsignedInvoiceRequest_chains(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12693 public static native byte[][] UnsignedInvoiceRequest_chains(long this_arg);
12694 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedInvoiceRequest_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12695 public static native long UnsignedInvoiceRequest_metadata(long this_arg);
12696 // MUST_USE_RES struct LDKCOption_AmountZ UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12697 public static native long UnsignedInvoiceRequest_amount(long this_arg);
12698 // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_description(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12699 public static native long UnsignedInvoiceRequest_description(long this_arg);
12700 // MUST_USE_RES struct LDKOfferFeatures UnsignedInvoiceRequest_offer_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12701 public static native long UnsignedInvoiceRequest_offer_features(long this_arg);
12702 // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_absolute_expiry(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12703 public static native long UnsignedInvoiceRequest_absolute_expiry(long this_arg);
12704 // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_issuer(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12705 public static native long UnsignedInvoiceRequest_issuer(long this_arg);
12706 // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedInvoiceRequest_paths(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12707 public static native long[] UnsignedInvoiceRequest_paths(long this_arg);
12708 // MUST_USE_RES struct LDKQuantity UnsignedInvoiceRequest_supported_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12709 public static native long UnsignedInvoiceRequest_supported_quantity(long this_arg);
12710 // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_signing_pubkey(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12711 public static native byte[] UnsignedInvoiceRequest_signing_pubkey(long this_arg);
12712 // MUST_USE_RES struct LDKu8slice UnsignedInvoiceRequest_payer_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12713 public static native byte[] UnsignedInvoiceRequest_payer_metadata(long this_arg);
12714 // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedInvoiceRequest_chain(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12715 public static native byte[] UnsignedInvoiceRequest_chain(long this_arg);
12716 // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_amount_msats(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12717 public static native long UnsignedInvoiceRequest_amount_msats(long this_arg);
12718 // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedInvoiceRequest_invoice_request_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12719 public static native long UnsignedInvoiceRequest_invoice_request_features(long this_arg);
12720 // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12721 public static native long UnsignedInvoiceRequest_quantity(long this_arg);
12722 // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_payer_id(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12723 public static native byte[] UnsignedInvoiceRequest_payer_id(long this_arg);
12724 // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_payer_note(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
12725 public static native long UnsignedInvoiceRequest_payer_note(long this_arg);
12726 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ InvoiceRequest_chains(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12727 public static native byte[][] InvoiceRequest_chains(long this_arg);
12728 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12729 public static native long InvoiceRequest_metadata(long this_arg);
12730 // MUST_USE_RES struct LDKCOption_AmountZ InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12731 public static native long InvoiceRequest_amount(long this_arg);
12732 // MUST_USE_RES struct LDKPrintableString InvoiceRequest_description(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12733 public static native long InvoiceRequest_description(long this_arg);
12734 // MUST_USE_RES struct LDKOfferFeatures InvoiceRequest_offer_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12735 public static native long InvoiceRequest_offer_features(long this_arg);
12736 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_absolute_expiry(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12737 public static native long InvoiceRequest_absolute_expiry(long this_arg);
12738 // MUST_USE_RES struct LDKPrintableString InvoiceRequest_issuer(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12739 public static native long InvoiceRequest_issuer(long this_arg);
12740 // MUST_USE_RES struct LDKCVec_BlindedPathZ InvoiceRequest_paths(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12741 public static native long[] InvoiceRequest_paths(long this_arg);
12742 // MUST_USE_RES struct LDKQuantity InvoiceRequest_supported_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12743 public static native long InvoiceRequest_supported_quantity(long this_arg);
12744 // MUST_USE_RES struct LDKPublicKey InvoiceRequest_signing_pubkey(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12745 public static native byte[] InvoiceRequest_signing_pubkey(long this_arg);
12746 // MUST_USE_RES struct LDKu8slice InvoiceRequest_payer_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12747 public static native byte[] InvoiceRequest_payer_metadata(long this_arg);
12748 // MUST_USE_RES struct LDKThirtyTwoBytes InvoiceRequest_chain(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12749 public static native byte[] InvoiceRequest_chain(long this_arg);
12750 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12751 public static native long InvoiceRequest_amount_msats(long this_arg);
12752 // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_invoice_request_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12753 public static native long InvoiceRequest_invoice_request_features(long this_arg);
12754 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12755 public static native long InvoiceRequest_quantity(long this_arg);
12756 // MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12757 public static native byte[] InvoiceRequest_payer_id(long this_arg);
12758 // MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12759 public static native long InvoiceRequest_payer_note(long this_arg);
12760 // MUST_USE_RES struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ InvoiceRequest_respond_with(const struct LDKInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash);
12761 public static native long InvoiceRequest_respond_with(long this_arg, long[] payment_paths, byte[] payment_hash);
12762 // MUST_USE_RES struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ InvoiceRequest_respond_with_no_std(const struct LDKInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash, uint64_t created_at);
12763 public static native long InvoiceRequest_respond_with_no_std(long this_arg, long[] payment_paths, byte[] payment_hash, long created_at);
12764 // MUST_USE_RES struct LDKCResult_VerifiedInvoiceRequestNoneZ InvoiceRequest_verify(struct LDKInvoiceRequest this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
12765 public static native long InvoiceRequest_verify(long this_arg, long key);
12766 // MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
12767 public static native byte[] InvoiceRequest_signature(long this_arg);
12768 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ VerifiedInvoiceRequest_chains(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12769 public static native byte[][] VerifiedInvoiceRequest_chains(long this_arg);
12770 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ VerifiedInvoiceRequest_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12771 public static native long VerifiedInvoiceRequest_metadata(long this_arg);
12772 // MUST_USE_RES struct LDKCOption_AmountZ VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12773 public static native long VerifiedInvoiceRequest_amount(long this_arg);
12774 // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_description(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12775 public static native long VerifiedInvoiceRequest_description(long this_arg);
12776 // MUST_USE_RES struct LDKOfferFeatures VerifiedInvoiceRequest_offer_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12777 public static native long VerifiedInvoiceRequest_offer_features(long this_arg);
12778 // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_absolute_expiry(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12779 public static native long VerifiedInvoiceRequest_absolute_expiry(long this_arg);
12780 // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_issuer(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12781 public static native long VerifiedInvoiceRequest_issuer(long this_arg);
12782 // MUST_USE_RES struct LDKCVec_BlindedPathZ VerifiedInvoiceRequest_paths(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12783 public static native long[] VerifiedInvoiceRequest_paths(long this_arg);
12784 // MUST_USE_RES struct LDKQuantity VerifiedInvoiceRequest_supported_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12785 public static native long VerifiedInvoiceRequest_supported_quantity(long this_arg);
12786 // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_signing_pubkey(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12787 public static native byte[] VerifiedInvoiceRequest_signing_pubkey(long this_arg);
12788 // MUST_USE_RES struct LDKu8slice VerifiedInvoiceRequest_payer_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12789 public static native byte[] VerifiedInvoiceRequest_payer_metadata(long this_arg);
12790 // MUST_USE_RES struct LDKThirtyTwoBytes VerifiedInvoiceRequest_chain(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12791 public static native byte[] VerifiedInvoiceRequest_chain(long this_arg);
12792 // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_amount_msats(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12793 public static native long VerifiedInvoiceRequest_amount_msats(long this_arg);
12794 // MUST_USE_RES struct LDKInvoiceRequestFeatures VerifiedInvoiceRequest_invoice_request_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12795 public static native long VerifiedInvoiceRequest_invoice_request_features(long this_arg);
12796 // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12797 public static native long VerifiedInvoiceRequest_quantity(long this_arg);
12798 // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_payer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12799 public static native byte[] VerifiedInvoiceRequest_payer_id(long this_arg);
12800 // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_payer_note(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
12801 public static native long VerifiedInvoiceRequest_payer_note(long this_arg);
12802 // MUST_USE_RES struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ VerifiedInvoiceRequest_respond_with(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash);
12803 public static native long VerifiedInvoiceRequest_respond_with(long this_arg, long[] payment_paths, byte[] payment_hash);
12804 // MUST_USE_RES struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ VerifiedInvoiceRequest_respond_with_no_std(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash, uint64_t created_at);
12805 public static native long VerifiedInvoiceRequest_respond_with_no_std(long this_arg, long[] payment_paths, byte[] payment_hash, long created_at);
12806 // MUST_USE_RES struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ VerifiedInvoiceRequest_respond_using_derived_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash);
12807 public static native long VerifiedInvoiceRequest_respond_using_derived_keys(long this_arg, long[] payment_paths, byte[] payment_hash);
12808 // MUST_USE_RES struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ VerifiedInvoiceRequest_respond_using_derived_keys_no_std(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash, uint64_t created_at);
12809 public static native long VerifiedInvoiceRequest_respond_using_derived_keys_no_std(long this_arg, long[] payment_paths, byte[] payment_hash, long created_at);
12810 // struct LDKCVec_u8Z UnsignedInvoiceRequest_write(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR obj);
12811 public static native byte[] UnsignedInvoiceRequest_write(long obj);
12812 // struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj);
12813 public static native byte[] InvoiceRequest_write(long obj);
12814 // void InvoiceRequestFields_free(struct LDKInvoiceRequestFields this_obj);
12815 public static native void InvoiceRequestFields_free(long this_obj);
12816 // struct LDKPublicKey InvoiceRequestFields_get_payer_id(const struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr);
12817 public static native byte[] InvoiceRequestFields_get_payer_id(long this_ptr);
12818 // void InvoiceRequestFields_set_payer_id(struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12819 public static native void InvoiceRequestFields_set_payer_id(long this_ptr, byte[] val);
12820 // struct LDKCOption_u64Z InvoiceRequestFields_get_quantity(const struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr);
12821 public static native long InvoiceRequestFields_get_quantity(long this_ptr);
12822 // void InvoiceRequestFields_set_quantity(struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
12823 public static native void InvoiceRequestFields_set_quantity(long this_ptr, long val);
12824 // struct LDKUntrustedString InvoiceRequestFields_get_payer_note_truncated(const struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr);
12825 public static native long InvoiceRequestFields_get_payer_note_truncated(long this_ptr);
12826 // void InvoiceRequestFields_set_payer_note_truncated(struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr, struct LDKUntrustedString val);
12827 public static native void InvoiceRequestFields_set_payer_note_truncated(long this_ptr, long val);
12828 // MUST_USE_RES struct LDKInvoiceRequestFields InvoiceRequestFields_new(struct LDKPublicKey payer_id_arg, struct LDKCOption_u64Z quantity_arg, struct LDKUntrustedString payer_note_truncated_arg);
12829 public static native long InvoiceRequestFields_new(byte[] payer_id_arg, long quantity_arg, long payer_note_truncated_arg);
12830 // uint64_t InvoiceRequestFields_clone_ptr(LDKInvoiceRequestFields *NONNULL_PTR arg);
12831 public static native long InvoiceRequestFields_clone_ptr(long arg);
12832 // struct LDKInvoiceRequestFields InvoiceRequestFields_clone(const struct LDKInvoiceRequestFields *NONNULL_PTR orig);
12833 public static native long InvoiceRequestFields_clone(long orig);
12834 // bool InvoiceRequestFields_eq(const struct LDKInvoiceRequestFields *NONNULL_PTR a, const struct LDKInvoiceRequestFields *NONNULL_PTR b);
12835 public static native boolean InvoiceRequestFields_eq(long a, long b);
12836 // struct LDKCVec_u8Z InvoiceRequestFields_write(const struct LDKInvoiceRequestFields *NONNULL_PTR obj);
12837 public static native byte[] InvoiceRequestFields_write(long obj);
12838 // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ InvoiceRequestFields_read(struct LDKu8slice ser);
12839 public static native long InvoiceRequestFields_read(byte[] ser);
12840 // void TaggedHash_free(struct LDKTaggedHash this_obj);
12841 public static native void TaggedHash_free(long this_obj);
12842 // uint64_t TaggedHash_clone_ptr(LDKTaggedHash *NONNULL_PTR arg);
12843 public static native long TaggedHash_clone_ptr(long arg);
12844 // struct LDKTaggedHash TaggedHash_clone(const struct LDKTaggedHash *NONNULL_PTR orig);
12845 public static native long TaggedHash_clone(long orig);
12846 // MUST_USE_RES const uint8_t (*TaggedHash_as_digest(const struct LDKTaggedHash *NONNULL_PTR this_arg))[32];
12847 public static native byte[] TaggedHash_as_digest(long this_arg);
12848 // MUST_USE_RES struct LDKStr TaggedHash_tag(const struct LDKTaggedHash *NONNULL_PTR this_arg);
12849 public static native String TaggedHash_tag(long this_arg);
12850 // MUST_USE_RES struct LDKThirtyTwoBytes TaggedHash_merkle_root(const struct LDKTaggedHash *NONNULL_PTR this_arg);
12851 public static native byte[] TaggedHash_merkle_root(long this_arg);
12852 // void SignError_free(struct LDKSignError this_ptr);
12853 public static native void SignError_free(long this_ptr);
12854 // uint64_t SignError_clone_ptr(LDKSignError *NONNULL_PTR arg);
12855 public static native long SignError_clone_ptr(long arg);
12856 // struct LDKSignError SignError_clone(const struct LDKSignError *NONNULL_PTR orig);
12857 public static native long SignError_clone(long orig);
12858 // struct LDKSignError SignError_signing(void);
12859 public static native long SignError_signing();
12860 // struct LDKSignError SignError_verification(enum LDKSecp256k1Error a);
12861 public static native long SignError_verification(Secp256k1Error a);
12862 // void Bolt12ParseError_free(struct LDKBolt12ParseError this_obj);
12863 public static native void Bolt12ParseError_free(long this_obj);
12864 // uint64_t Bolt12ParseError_clone_ptr(LDKBolt12ParseError *NONNULL_PTR arg);
12865 public static native long Bolt12ParseError_clone_ptr(long arg);
12866 // struct LDKBolt12ParseError Bolt12ParseError_clone(const struct LDKBolt12ParseError *NONNULL_PTR orig);
12867 public static native long Bolt12ParseError_clone(long orig);
12868 // enum LDKBolt12SemanticError Bolt12SemanticError_clone(const enum LDKBolt12SemanticError *NONNULL_PTR orig);
12869 public static native Bolt12SemanticError Bolt12SemanticError_clone(long orig);
12870 // enum LDKBolt12SemanticError Bolt12SemanticError_already_expired(void);
12871 public static native Bolt12SemanticError Bolt12SemanticError_already_expired();
12872 // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_chain(void);
12873 public static native Bolt12SemanticError Bolt12SemanticError_unsupported_chain();
12874 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_chain(void);
12875 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_chain();
12876 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_amount(void);
12877 public static native Bolt12SemanticError Bolt12SemanticError_missing_amount();
12878 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_amount(void);
12879 public static native Bolt12SemanticError Bolt12SemanticError_invalid_amount();
12880 // enum LDKBolt12SemanticError Bolt12SemanticError_insufficient_amount(void);
12881 public static native Bolt12SemanticError Bolt12SemanticError_insufficient_amount();
12882 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_amount(void);
12883 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_amount();
12884 // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_currency(void);
12885 public static native Bolt12SemanticError Bolt12SemanticError_unsupported_currency();
12886 // enum LDKBolt12SemanticError Bolt12SemanticError_unknown_required_features(void);
12887 public static native Bolt12SemanticError Bolt12SemanticError_unknown_required_features();
12888 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_features(void);
12889 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_features();
12890 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_description(void);
12891 public static native Bolt12SemanticError Bolt12SemanticError_missing_description();
12892 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signing_pubkey(void);
12893 public static native Bolt12SemanticError Bolt12SemanticError_missing_signing_pubkey();
12894 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey(void);
12895 public static native Bolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey();
12896 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey(void);
12897 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey();
12898 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_quantity(void);
12899 public static native Bolt12SemanticError Bolt12SemanticError_missing_quantity();
12900 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_quantity(void);
12901 public static native Bolt12SemanticError Bolt12SemanticError_invalid_quantity();
12902 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_quantity(void);
12903 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_quantity();
12904 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_metadata(void);
12905 public static native Bolt12SemanticError Bolt12SemanticError_invalid_metadata();
12906 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_metadata(void);
12907 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_metadata();
12908 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_metadata(void);
12909 public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_metadata();
12910 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_id(void);
12911 public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_id();
12912 // enum LDKBolt12SemanticError Bolt12SemanticError_duplicate_payment_id(void);
12913 public static native Bolt12SemanticError Bolt12SemanticError_duplicate_payment_id();
12914 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_paths(void);
12915 public static native Bolt12SemanticError Bolt12SemanticError_missing_paths();
12916 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_paths(void);
12917 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_paths();
12918 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_pay_info(void);
12919 public static native Bolt12SemanticError Bolt12SemanticError_invalid_pay_info();
12920 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_creation_time(void);
12921 public static native Bolt12SemanticError Bolt12SemanticError_missing_creation_time();
12922 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payment_hash(void);
12923 public static native Bolt12SemanticError Bolt12SemanticError_missing_payment_hash();
12924 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signature(void);
12925 public static native Bolt12SemanticError Bolt12SemanticError_missing_signature();
12926 // void RefundMaybeWithDerivedMetadataBuilder_free(struct LDKRefundMaybeWithDerivedMetadataBuilder this_obj);
12927 public static native void RefundMaybeWithDerivedMetadataBuilder_free(long this_obj);
12928 // uint64_t RefundMaybeWithDerivedMetadataBuilder_clone_ptr(LDKRefundMaybeWithDerivedMetadataBuilder *NONNULL_PTR arg);
12929 public static native long RefundMaybeWithDerivedMetadataBuilder_clone_ptr(long arg);
12930 // struct LDKRefundMaybeWithDerivedMetadataBuilder RefundMaybeWithDerivedMetadataBuilder_clone(const struct LDKRefundMaybeWithDerivedMetadataBuilder *NONNULL_PTR orig);
12931 public static native long RefundMaybeWithDerivedMetadataBuilder_clone(long orig);
12932 // MUST_USE_RES struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ RefundMaybeWithDerivedMetadataBuilder_new(struct LDKCVec_u8Z metadata, struct LDKPublicKey payer_id, uint64_t amount_msats);
12933 public static native long RefundMaybeWithDerivedMetadataBuilder_new(byte[] metadata, byte[] payer_id, long amount_msats);
12934 // MUST_USE_RES struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ RefundMaybeWithDerivedMetadataBuilder_deriving_payer_id(struct LDKPublicKey node_id, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id);
12935 public static native long RefundMaybeWithDerivedMetadataBuilder_deriving_payer_id(byte[] node_id, long expanded_key, long entropy_source, long amount_msats, byte[] payment_id);
12936 // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_description(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKStr description);
12937 public static native void RefundMaybeWithDerivedMetadataBuilder_description(long this_arg, String description);
12938 // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_absolute_expiry(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, uint64_t absolute_expiry);
12939 public static native void RefundMaybeWithDerivedMetadataBuilder_absolute_expiry(long this_arg, long absolute_expiry);
12940 // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_issuer(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKStr issuer);
12941 public static native void RefundMaybeWithDerivedMetadataBuilder_issuer(long this_arg, String issuer);
12942 // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_path(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKBlindedPath path);
12943 public static native void RefundMaybeWithDerivedMetadataBuilder_path(long this_arg, long path);
12944 // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_chain(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, enum LDKNetwork network);
12945 public static native void RefundMaybeWithDerivedMetadataBuilder_chain(long this_arg, Network network);
12946 // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_quantity(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, uint64_t quantity);
12947 public static native void RefundMaybeWithDerivedMetadataBuilder_quantity(long this_arg, long quantity);
12948 // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_payer_note(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKStr payer_note);
12949 public static native void RefundMaybeWithDerivedMetadataBuilder_payer_note(long this_arg, String payer_note);
12950 // MUST_USE_RES struct LDKCResult_RefundBolt12SemanticErrorZ RefundMaybeWithDerivedMetadataBuilder_build(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg);
12951 public static native long RefundMaybeWithDerivedMetadataBuilder_build(long this_arg);
12952 // void Refund_free(struct LDKRefund this_obj);
12953 public static native void Refund_free(long this_obj);
12954 // uint64_t Refund_clone_ptr(LDKRefund *NONNULL_PTR arg);
12955 public static native long Refund_clone_ptr(long arg);
12956 // struct LDKRefund Refund_clone(const struct LDKRefund *NONNULL_PTR orig);
12957 public static native long Refund_clone(long orig);
12958 // MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund *NONNULL_PTR this_arg);
12959 public static native long Refund_description(long this_arg);
12960 // MUST_USE_RES struct LDKCOption_u64Z Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg);
12961 public static native long Refund_absolute_expiry(long this_arg);
12962 // MUST_USE_RES bool Refund_is_expired(const struct LDKRefund *NONNULL_PTR this_arg);
12963 public static native boolean Refund_is_expired(long this_arg);
12964 // MUST_USE_RES bool Refund_is_expired_no_std(const struct LDKRefund *NONNULL_PTR this_arg, uint64_t duration_since_epoch);
12965 public static native boolean Refund_is_expired_no_std(long this_arg, long duration_since_epoch);
12966 // MUST_USE_RES struct LDKPrintableString Refund_issuer(const struct LDKRefund *NONNULL_PTR this_arg);
12967 public static native long Refund_issuer(long this_arg);
12968 // MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NONNULL_PTR this_arg);
12969 public static native long[] Refund_paths(long this_arg);
12970 // MUST_USE_RES struct LDKu8slice Refund_payer_metadata(const struct LDKRefund *NONNULL_PTR this_arg);
12971 public static native byte[] Refund_payer_metadata(long this_arg);
12972 // MUST_USE_RES struct LDKThirtyTwoBytes Refund_chain(const struct LDKRefund *NONNULL_PTR this_arg);
12973 public static native byte[] Refund_chain(long this_arg);
12974 // MUST_USE_RES uint64_t Refund_amount_msats(const struct LDKRefund *NONNULL_PTR this_arg);
12975 public static native long Refund_amount_msats(long this_arg);
12976 // MUST_USE_RES struct LDKInvoiceRequestFeatures Refund_features(const struct LDKRefund *NONNULL_PTR this_arg);
12977 public static native long Refund_features(long this_arg);
12978 // MUST_USE_RES struct LDKCOption_u64Z Refund_quantity(const struct LDKRefund *NONNULL_PTR this_arg);
12979 public static native long Refund_quantity(long this_arg);
12980 // MUST_USE_RES struct LDKPublicKey Refund_payer_id(const struct LDKRefund *NONNULL_PTR this_arg);
12981 public static native byte[] Refund_payer_id(long this_arg);
12982 // MUST_USE_RES struct LDKPrintableString Refund_payer_note(const struct LDKRefund *NONNULL_PTR this_arg);
12983 public static native long Refund_payer_note(long this_arg);
12984 // uint64_t Refund_hash(const struct LDKRefund *NONNULL_PTR o);
12985 public static native long Refund_hash(long o);
12986 // struct LDKCVec_u8Z Refund_write(const struct LDKRefund *NONNULL_PTR obj);
12987 public static native byte[] Refund_write(long obj);
12988 // struct LDKCResult_RefundBolt12ParseErrorZ Refund_from_str(struct LDKStr s);
12989 public static native long Refund_from_str(String s);
12990 // struct LDKStr Refund_to_str(const struct LDKRefund *NONNULL_PTR o);
12991 public static native String Refund_to_str(long o);
12992 // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig);
12993 public static native UtxoLookupError UtxoLookupError_clone(long orig);
12994 // enum LDKUtxoLookupError UtxoLookupError_unknown_chain(void);
12995 public static native UtxoLookupError UtxoLookupError_unknown_chain();
12996 // enum LDKUtxoLookupError UtxoLookupError_unknown_tx(void);
12997 public static native UtxoLookupError UtxoLookupError_unknown_tx();
12998 // void UtxoResult_free(struct LDKUtxoResult this_ptr);
12999 public static native void UtxoResult_free(long this_ptr);
13000 // uint64_t UtxoResult_clone_ptr(LDKUtxoResult *NONNULL_PTR arg);
13001 public static native long UtxoResult_clone_ptr(long arg);
13002 // struct LDKUtxoResult UtxoResult_clone(const struct LDKUtxoResult *NONNULL_PTR orig);
13003 public static native long UtxoResult_clone(long orig);
13004 // struct LDKUtxoResult UtxoResult_sync(struct LDKCResult_TxOutUtxoLookupErrorZ a);
13005 public static native long UtxoResult_sync(long a);
13006 // struct LDKUtxoResult UtxoResult_async(struct LDKUtxoFuture a);
13007 public static native long UtxoResult_async(long a);
13008 // void UtxoLookup_free(struct LDKUtxoLookup this_ptr);
13009 public static native void UtxoLookup_free(long this_ptr);
13010 // void UtxoFuture_free(struct LDKUtxoFuture this_obj);
13011 public static native void UtxoFuture_free(long this_obj);
13012 // uint64_t UtxoFuture_clone_ptr(LDKUtxoFuture *NONNULL_PTR arg);
13013 public static native long UtxoFuture_clone_ptr(long arg);
13014 // struct LDKUtxoFuture UtxoFuture_clone(const struct LDKUtxoFuture *NONNULL_PTR orig);
13015 public static native long UtxoFuture_clone(long orig);
13016 // MUST_USE_RES struct LDKUtxoFuture UtxoFuture_new(void);
13017 public static native long UtxoFuture_new();
13018 // void UtxoFuture_resolve_without_forwarding(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, struct LDKCResult_TxOutUtxoLookupErrorZ result);
13019 public static native void UtxoFuture_resolve_without_forwarding(long this_arg, long graph, long result);
13020 // 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);
13021 public static native void UtxoFuture_resolve(long this_arg, long graph, long gossip, long result);
13022 // void NodeId_free(struct LDKNodeId this_obj);
13023 public static native void NodeId_free(long this_obj);
13024 // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
13025 public static native long NodeId_clone_ptr(long arg);
13026 // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
13027 public static native long NodeId_clone(long orig);
13028 // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
13029 public static native long NodeId_from_pubkey(byte[] pubkey);
13030 // MUST_USE_RES struct LDKCResult_NodeIdDecodeErrorZ NodeId_from_slice(struct LDKu8slice bytes);
13031 public static native long NodeId_from_slice(byte[] bytes);
13032 // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
13033 public static native byte[] NodeId_as_slice(long this_arg);
13034 // MUST_USE_RES const uint8_t (*NodeId_as_array(const struct LDKNodeId *NONNULL_PTR this_arg))[33];
13035 public static native byte[] NodeId_as_array(long this_arg);
13036 // MUST_USE_RES struct LDKCResult_PublicKeySecp256k1ErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg);
13037 public static native long NodeId_as_pubkey(long this_arg);
13038 // struct LDKStr NodeId_to_str(const struct LDKNodeId *NONNULL_PTR o);
13039 public static native String NodeId_to_str(long o);
13040 // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
13041 public static native long NodeId_hash(long o);
13042 // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
13043 public static native byte[] NodeId_write(long obj);
13044 // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
13045 public static native long NodeId_read(byte[] ser);
13046 // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
13047 public static native void NetworkGraph_free(long this_obj);
13048 // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
13049 public static native void ReadOnlyNetworkGraph_free(long this_obj);
13050 // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
13051 public static native void NetworkUpdate_free(long this_ptr);
13052 // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
13053 public static native long NetworkUpdate_clone_ptr(long arg);
13054 // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
13055 public static native long NetworkUpdate_clone(long orig);
13056 // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
13057 public static native long NetworkUpdate_channel_update_message(long msg);
13058 // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
13059 public static native long NetworkUpdate_channel_failure(long short_channel_id, boolean is_permanent);
13060 // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
13061 public static native long NetworkUpdate_node_failure(byte[] node_id, boolean is_permanent);
13062 // bool NetworkUpdate_eq(const struct LDKNetworkUpdate *NONNULL_PTR a, const struct LDKNetworkUpdate *NONNULL_PTR b);
13063 public static native boolean NetworkUpdate_eq(long a, long b);
13064 // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
13065 public static native byte[] NetworkUpdate_write(long obj);
13066 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
13067 public static native long NetworkUpdate_read(byte[] ser);
13068 // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
13069 public static native void P2PGossipSync_free(long this_obj);
13070 // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_UtxoLookupZ utxo_lookup, struct LDKLogger logger);
13071 public static native long P2PGossipSync_new(long network_graph, long utxo_lookup, long logger);
13072 // void P2PGossipSync_add_utxo_lookup(const struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup);
13073 public static native void P2PGossipSync_add_utxo_lookup(long this_arg, long utxo_lookup);
13074 // void NetworkGraph_handle_network_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNetworkUpdate *NONNULL_PTR network_update);
13075 public static native void NetworkGraph_handle_network_update(long this_arg, long network_update);
13076 // MUST_USE_RES struct LDKThirtyTwoBytes NetworkGraph_get_chain_hash(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
13077 public static native byte[] NetworkGraph_get_chain_hash(long this_arg);
13078 // struct LDKCResult_NoneLightningErrorZ verify_node_announcement(const struct LDKNodeAnnouncement *NONNULL_PTR msg);
13079 public static native long verify_node_announcement(long msg);
13080 // struct LDKCResult_NoneLightningErrorZ verify_channel_announcement(const struct LDKChannelAnnouncement *NONNULL_PTR msg);
13081 public static native long verify_channel_announcement(long msg);
13082 // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
13083 public static native long P2PGossipSync_as_RoutingMessageHandler(long this_arg);
13084 // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
13085 public static native long P2PGossipSync_as_MessageSendEventsProvider(long this_arg);
13086 // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
13087 public static native void ChannelUpdateInfo_free(long this_obj);
13088 // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
13089 public static native int ChannelUpdateInfo_get_last_update(long this_ptr);
13090 // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
13091 public static native void ChannelUpdateInfo_set_last_update(long this_ptr, int val);
13092 // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
13093 public static native boolean ChannelUpdateInfo_get_enabled(long this_ptr);
13094 // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
13095 public static native void ChannelUpdateInfo_set_enabled(long this_ptr, boolean val);
13096 // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
13097 public static native short ChannelUpdateInfo_get_cltv_expiry_delta(long this_ptr);
13098 // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
13099 public static native void ChannelUpdateInfo_set_cltv_expiry_delta(long this_ptr, short val);
13100 // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
13101 public static native long ChannelUpdateInfo_get_htlc_minimum_msat(long this_ptr);
13102 // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
13103 public static native void ChannelUpdateInfo_set_htlc_minimum_msat(long this_ptr, long val);
13104 // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
13105 public static native long ChannelUpdateInfo_get_htlc_maximum_msat(long this_ptr);
13106 // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
13107 public static native void ChannelUpdateInfo_set_htlc_maximum_msat(long this_ptr, long val);
13108 // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
13109 public static native long ChannelUpdateInfo_get_fees(long this_ptr);
13110 // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
13111 public static native void ChannelUpdateInfo_set_fees(long this_ptr, long val);
13112 // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
13113 public static native long ChannelUpdateInfo_get_last_update_message(long this_ptr);
13114 // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
13115 public static native void ChannelUpdateInfo_set_last_update_message(long this_ptr, long val);
13116 // 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);
13117 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);
13118 // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
13119 public static native long ChannelUpdateInfo_clone_ptr(long arg);
13120 // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
13121 public static native long ChannelUpdateInfo_clone(long orig);
13122 // bool ChannelUpdateInfo_eq(const struct LDKChannelUpdateInfo *NONNULL_PTR a, const struct LDKChannelUpdateInfo *NONNULL_PTR b);
13123 public static native boolean ChannelUpdateInfo_eq(long a, long b);
13124 // struct LDKStr ChannelUpdateInfo_to_str(const struct LDKChannelUpdateInfo *NONNULL_PTR o);
13125 public static native String ChannelUpdateInfo_to_str(long o);
13126 // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
13127 public static native byte[] ChannelUpdateInfo_write(long obj);
13128 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
13129 public static native long ChannelUpdateInfo_read(byte[] ser);
13130 // void ChannelInfo_free(struct LDKChannelInfo this_obj);
13131 public static native void ChannelInfo_free(long this_obj);
13132 // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
13133 public static native long ChannelInfo_get_features(long this_ptr);
13134 // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
13135 public static native void ChannelInfo_set_features(long this_ptr, long val);
13136 // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
13137 public static native long ChannelInfo_get_node_one(long this_ptr);
13138 // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
13139 public static native void ChannelInfo_set_node_one(long this_ptr, long val);
13140 // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
13141 public static native long ChannelInfo_get_one_to_two(long this_ptr);
13142 // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
13143 public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
13144 // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
13145 public static native long ChannelInfo_get_node_two(long this_ptr);
13146 // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
13147 public static native void ChannelInfo_set_node_two(long this_ptr, long val);
13148 // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
13149 public static native long ChannelInfo_get_two_to_one(long this_ptr);
13150 // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
13151 public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
13152 // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
13153 public static native long ChannelInfo_get_capacity_sats(long this_ptr);
13154 // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
13155 public static native void ChannelInfo_set_capacity_sats(long this_ptr, long val);
13156 // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
13157 public static native long ChannelInfo_get_announcement_message(long this_ptr);
13158 // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
13159 public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
13160 // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
13161 public static native long ChannelInfo_clone_ptr(long arg);
13162 // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
13163 public static native long ChannelInfo_clone(long orig);
13164 // bool ChannelInfo_eq(const struct LDKChannelInfo *NONNULL_PTR a, const struct LDKChannelInfo *NONNULL_PTR b);
13165 public static native boolean ChannelInfo_eq(long a, long b);
13166 // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
13167 public static native long ChannelInfo_get_directional_info(long this_arg, byte channel_flags);
13168 // struct LDKStr ChannelInfo_to_str(const struct LDKChannelInfo *NONNULL_PTR o);
13169 public static native String ChannelInfo_to_str(long o);
13170 // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
13171 public static native byte[] ChannelInfo_write(long obj);
13172 // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
13173 public static native long ChannelInfo_read(byte[] ser);
13174 // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
13175 public static native void DirectedChannelInfo_free(long this_obj);
13176 // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
13177 public static native long DirectedChannelInfo_clone_ptr(long arg);
13178 // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
13179 public static native long DirectedChannelInfo_clone(long orig);
13180 // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
13181 public static native long DirectedChannelInfo_channel(long this_arg);
13182 // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
13183 public static native long DirectedChannelInfo_effective_capacity(long this_arg);
13184 // MUST_USE_RES struct LDKNodeId DirectedChannelInfo_source(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
13185 public static native long DirectedChannelInfo_source(long this_arg);
13186 // MUST_USE_RES struct LDKNodeId DirectedChannelInfo_target(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
13187 public static native long DirectedChannelInfo_target(long this_arg);
13188 // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
13189 public static native void EffectiveCapacity_free(long this_ptr);
13190 // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
13191 public static native long EffectiveCapacity_clone_ptr(long arg);
13192 // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
13193 public static native long EffectiveCapacity_clone(long orig);
13194 // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
13195 public static native long EffectiveCapacity_exact_liquidity(long liquidity_msat);
13196 // struct LDKEffectiveCapacity EffectiveCapacity_advertised_max_htlc(uint64_t amount_msat);
13197 public static native long EffectiveCapacity_advertised_max_htlc(long amount_msat);
13198 // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, uint64_t htlc_maximum_msat);
13199 public static native long EffectiveCapacity_total(long capacity_msat, long htlc_maximum_msat);
13200 // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
13201 public static native long EffectiveCapacity_infinite();
13202 // struct LDKEffectiveCapacity EffectiveCapacity_hint_max_htlc(uint64_t amount_msat);
13203 public static native long EffectiveCapacity_hint_max_htlc(long amount_msat);
13204 // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
13205 public static native long EffectiveCapacity_unknown();
13206 // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
13207 public static native long EffectiveCapacity_as_msat(long this_arg);
13208 // void RoutingFees_free(struct LDKRoutingFees this_obj);
13209 public static native void RoutingFees_free(long this_obj);
13210 // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
13211 public static native int RoutingFees_get_base_msat(long this_ptr);
13212 // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
13213 public static native void RoutingFees_set_base_msat(long this_ptr, int val);
13214 // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
13215 public static native int RoutingFees_get_proportional_millionths(long this_ptr);
13216 // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
13217 public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
13218 // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
13219 public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
13220 // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
13221 public static native boolean RoutingFees_eq(long a, long b);
13222 // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
13223 public static native long RoutingFees_clone_ptr(long arg);
13224 // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
13225 public static native long RoutingFees_clone(long orig);
13226 // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
13227 public static native long RoutingFees_hash(long o);
13228 // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
13229 public static native byte[] RoutingFees_write(long obj);
13230 // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
13231 public static native long RoutingFees_read(byte[] ser);
13232 // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
13233 public static native void NodeAnnouncementInfo_free(long this_obj);
13234 // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
13235 public static native long NodeAnnouncementInfo_get_features(long this_ptr);
13236 // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
13237 public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
13238 // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
13239 public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
13240 // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
13241 public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
13242 // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
13243 public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
13244 // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
13245 public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
13246 // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
13247 public static native long NodeAnnouncementInfo_get_alias(long this_ptr);
13248 // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
13249 public static native void NodeAnnouncementInfo_set_alias(long this_ptr, long val);
13250 // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
13251 public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
13252 // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
13253 public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
13254 // 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);
13255 public static native long NodeAnnouncementInfo_new(long features_arg, int last_update_arg, byte[] rgb_arg, long alias_arg, long announcement_message_arg);
13256 // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
13257 public static native long NodeAnnouncementInfo_clone_ptr(long arg);
13258 // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
13259 public static native long NodeAnnouncementInfo_clone(long orig);
13260 // bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a, const struct LDKNodeAnnouncementInfo *NONNULL_PTR b);
13261 public static native boolean NodeAnnouncementInfo_eq(long a, long b);
13262 // MUST_USE_RES struct LDKCVec_SocketAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg);
13263 public static native long[] NodeAnnouncementInfo_addresses(long this_arg);
13264 // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
13265 public static native byte[] NodeAnnouncementInfo_write(long obj);
13266 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
13267 public static native long NodeAnnouncementInfo_read(byte[] ser);
13268 // void NodeAlias_free(struct LDKNodeAlias this_obj);
13269 public static native void NodeAlias_free(long this_obj);
13270 // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
13271 public static native byte[] NodeAlias_get_a(long this_ptr);
13272 // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
13273 public static native void NodeAlias_set_a(long this_ptr, byte[] val);
13274 // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
13275 public static native long NodeAlias_new(byte[] a_arg);
13276 // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
13277 public static native long NodeAlias_clone_ptr(long arg);
13278 // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
13279 public static native long NodeAlias_clone(long orig);
13280 // uint64_t NodeAlias_hash(const struct LDKNodeAlias *NONNULL_PTR o);
13281 public static native long NodeAlias_hash(long o);
13282 // bool NodeAlias_eq(const struct LDKNodeAlias *NONNULL_PTR a, const struct LDKNodeAlias *NONNULL_PTR b);
13283 public static native boolean NodeAlias_eq(long a, long b);
13284 // struct LDKStr NodeAlias_to_str(const struct LDKNodeAlias *NONNULL_PTR o);
13285 public static native String NodeAlias_to_str(long o);
13286 // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
13287 public static native byte[] NodeAlias_write(long obj);
13288 // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
13289 public static native long NodeAlias_read(byte[] ser);
13290 // void NodeInfo_free(struct LDKNodeInfo this_obj);
13291 public static native void NodeInfo_free(long this_obj);
13292 // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
13293 public static native long[] NodeInfo_get_channels(long this_ptr);
13294 // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
13295 public static native void NodeInfo_set_channels(long this_ptr, long[] val);
13296 // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
13297 public static native long NodeInfo_get_announcement_info(long this_ptr);
13298 // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
13299 public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
13300 // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
13301 public static native long NodeInfo_new(long[] channels_arg, long announcement_info_arg);
13302 // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
13303 public static native long NodeInfo_clone_ptr(long arg);
13304 // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
13305 public static native long NodeInfo_clone(long orig);
13306 // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b);
13307 public static native boolean NodeInfo_eq(long a, long b);
13308 // MUST_USE_RES bool NodeInfo_is_tor_only(const struct LDKNodeInfo *NONNULL_PTR this_arg);
13309 public static native boolean NodeInfo_is_tor_only(long this_arg);
13310 // struct LDKStr NodeInfo_to_str(const struct LDKNodeInfo *NONNULL_PTR o);
13311 public static native String NodeInfo_to_str(long o);
13312 // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
13313 public static native byte[] NodeInfo_write(long obj);
13314 // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
13315 public static native long NodeInfo_read(byte[] ser);
13316 // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
13317 public static native byte[] NetworkGraph_write(long obj);
13318 // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
13319 public static native long NetworkGraph_read(byte[] ser, long arg);
13320 // struct LDKStr NetworkGraph_to_str(const struct LDKNetworkGraph *NONNULL_PTR o);
13321 public static native String NetworkGraph_to_str(long o);
13322 // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger);
13323 public static native long NetworkGraph_new(Network network, long logger);
13324 // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
13325 public static native long NetworkGraph_read_only(long this_arg);
13326 // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
13327 public static native long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long this_arg);
13328 // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
13329 public static native void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long this_arg, int last_rapid_gossip_sync_timestamp);
13330 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
13331 public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
13332 // 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);
13333 public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
13334 // 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);
13335 public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long utxo_lookup);
13336 // 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);
13337 public static native long NetworkGraph_update_channel_from_announcement_no_lookup(long this_arg, long msg);
13338 // 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);
13339 public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long utxo_lookup);
13340 // 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);
13341 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);
13342 // void NetworkGraph_channel_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
13343 public static native void NetworkGraph_channel_failed_permanent(long this_arg, long short_channel_id);
13344 // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
13345 public static native void NetworkGraph_node_failed_permanent(long this_arg, byte[] node_id);
13346 // void NetworkGraph_remove_stale_channels_and_tracking(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
13347 public static native void NetworkGraph_remove_stale_channels_and_tracking(long this_arg);
13348 // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
13349 public static native void NetworkGraph_remove_stale_channels_and_tracking_with_time(long this_arg, long current_time_unix);
13350 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
13351 public static native long NetworkGraph_update_channel(long this_arg, long msg);
13352 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
13353 public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
13354 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_verify_channel_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
13355 public static native long NetworkGraph_verify_channel_update(long this_arg, long msg);
13356 // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
13357 public static native long ReadOnlyNetworkGraph_channel(long this_arg, long short_channel_id);
13358 // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
13359 public static native long[] ReadOnlyNetworkGraph_list_channels(long this_arg);
13360 // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
13361 public static native long ReadOnlyNetworkGraph_node(long this_arg, long node_id);
13362 // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
13363 public static native long[] ReadOnlyNetworkGraph_list_nodes(long this_arg);
13364 // MUST_USE_RES struct LDKCOption_CVec_SocketAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
13365 public static native long ReadOnlyNetworkGraph_get_addresses(long this_arg, byte[] pubkey);
13366 // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
13367 public static native void DefaultRouter_free(long this_obj);
13368 // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKEntropySource entropy_source, struct LDKLockableScore scorer, struct LDKProbabilisticScoringFeeParameters score_params);
13369 public static native long DefaultRouter_new(long network_graph, long logger, long entropy_source, long scorer, long score_params);
13370 // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
13371 public static native long DefaultRouter_as_Router(long this_arg);
13372 // struct LDKMessageRouter DefaultRouter_as_MessageRouter(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
13373 public static native long DefaultRouter_as_MessageRouter(long this_arg);
13374 // void Router_free(struct LDKRouter this_ptr);
13375 public static native void Router_free(long this_ptr);
13376 // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj);
13377 public static native void ScorerAccountingForInFlightHtlcs_free(long this_obj);
13378 // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScoreLookUp scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs);
13379 public static native long ScorerAccountingForInFlightHtlcs_new(long scorer, long inflight_htlcs);
13380 // struct LDKScoreLookUp ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg);
13381 public static native long ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(long this_arg);
13382 // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
13383 public static native void InFlightHtlcs_free(long this_obj);
13384 // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg);
13385 public static native long InFlightHtlcs_clone_ptr(long arg);
13386 // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig);
13387 public static native long InFlightHtlcs_clone(long orig);
13388 // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void);
13389 public static native long InFlightHtlcs_new();
13390 // void InFlightHtlcs_process_path(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, struct LDKPublicKey payer_node_id);
13391 public static native void InFlightHtlcs_process_path(long this_arg, long path, byte[] payer_node_id);
13392 // 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);
13393 public static native void InFlightHtlcs_add_inflight_htlc(long this_arg, long source, long target, long channel_scid, long used_msat);
13394 // 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);
13395 public static native long InFlightHtlcs_used_liquidity_msat(long this_arg, long source, long target, long channel_scid);
13396 // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
13397 public static native byte[] InFlightHtlcs_write(long obj);
13398 // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
13399 public static native long InFlightHtlcs_read(byte[] ser);
13400 // void RouteHop_free(struct LDKRouteHop this_obj);
13401 public static native void RouteHop_free(long this_obj);
13402 // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
13403 public static native byte[] RouteHop_get_pubkey(long this_ptr);
13404 // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13405 public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
13406 // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
13407 public static native long RouteHop_get_node_features(long this_ptr);
13408 // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
13409 public static native void RouteHop_set_node_features(long this_ptr, long val);
13410 // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
13411 public static native long RouteHop_get_short_channel_id(long this_ptr);
13412 // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
13413 public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
13414 // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
13415 public static native long RouteHop_get_channel_features(long this_ptr);
13416 // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
13417 public static native void RouteHop_set_channel_features(long this_ptr, long val);
13418 // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
13419 public static native long RouteHop_get_fee_msat(long this_ptr);
13420 // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
13421 public static native void RouteHop_set_fee_msat(long this_ptr, long val);
13422 // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
13423 public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
13424 // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
13425 public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
13426 // bool RouteHop_get_maybe_announced_channel(const struct LDKRouteHop *NONNULL_PTR this_ptr);
13427 public static native boolean RouteHop_get_maybe_announced_channel(long this_ptr);
13428 // void RouteHop_set_maybe_announced_channel(struct LDKRouteHop *NONNULL_PTR this_ptr, bool val);
13429 public static native void RouteHop_set_maybe_announced_channel(long this_ptr, boolean val);
13430 // MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg, bool maybe_announced_channel_arg);
13431 public static native long RouteHop_new(byte[] pubkey_arg, long node_features_arg, long short_channel_id_arg, long channel_features_arg, long fee_msat_arg, int cltv_expiry_delta_arg, boolean maybe_announced_channel_arg);
13432 // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
13433 public static native long RouteHop_clone_ptr(long arg);
13434 // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
13435 public static native long RouteHop_clone(long orig);
13436 // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
13437 public static native long RouteHop_hash(long o);
13438 // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
13439 public static native boolean RouteHop_eq(long a, long b);
13440 // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
13441 public static native byte[] RouteHop_write(long obj);
13442 // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
13443 public static native long RouteHop_read(byte[] ser);
13444 // void BlindedTail_free(struct LDKBlindedTail this_obj);
13445 public static native void BlindedTail_free(long this_obj);
13446 // struct LDKCVec_BlindedHopZ BlindedTail_get_hops(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
13447 public static native long[] BlindedTail_get_hops(long this_ptr);
13448 // void BlindedTail_set_hops(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
13449 public static native void BlindedTail_set_hops(long this_ptr, long[] val);
13450 // struct LDKPublicKey BlindedTail_get_blinding_point(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
13451 public static native byte[] BlindedTail_get_blinding_point(long this_ptr);
13452 // void BlindedTail_set_blinding_point(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13453 public static native void BlindedTail_set_blinding_point(long this_ptr, byte[] val);
13454 // uint32_t BlindedTail_get_excess_final_cltv_expiry_delta(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
13455 public static native int BlindedTail_get_excess_final_cltv_expiry_delta(long this_ptr);
13456 // void BlindedTail_set_excess_final_cltv_expiry_delta(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint32_t val);
13457 public static native void BlindedTail_set_excess_final_cltv_expiry_delta(long this_ptr, int val);
13458 // uint64_t BlindedTail_get_final_value_msat(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
13459 public static native long BlindedTail_get_final_value_msat(long this_ptr);
13460 // void BlindedTail_set_final_value_msat(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint64_t val);
13461 public static native void BlindedTail_set_final_value_msat(long this_ptr, long val);
13462 // 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);
13463 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);
13464 // uint64_t BlindedTail_clone_ptr(LDKBlindedTail *NONNULL_PTR arg);
13465 public static native long BlindedTail_clone_ptr(long arg);
13466 // struct LDKBlindedTail BlindedTail_clone(const struct LDKBlindedTail *NONNULL_PTR orig);
13467 public static native long BlindedTail_clone(long orig);
13468 // uint64_t BlindedTail_hash(const struct LDKBlindedTail *NONNULL_PTR o);
13469 public static native long BlindedTail_hash(long o);
13470 // bool BlindedTail_eq(const struct LDKBlindedTail *NONNULL_PTR a, const struct LDKBlindedTail *NONNULL_PTR b);
13471 public static native boolean BlindedTail_eq(long a, long b);
13472 // struct LDKCVec_u8Z BlindedTail_write(const struct LDKBlindedTail *NONNULL_PTR obj);
13473 public static native byte[] BlindedTail_write(long obj);
13474 // struct LDKCResult_BlindedTailDecodeErrorZ BlindedTail_read(struct LDKu8slice ser);
13475 public static native long BlindedTail_read(byte[] ser);
13476 // void Path_free(struct LDKPath this_obj);
13477 public static native void Path_free(long this_obj);
13478 // struct LDKCVec_RouteHopZ Path_get_hops(const struct LDKPath *NONNULL_PTR this_ptr);
13479 public static native long[] Path_get_hops(long this_ptr);
13480 // void Path_set_hops(struct LDKPath *NONNULL_PTR this_ptr, struct LDKCVec_RouteHopZ val);
13481 public static native void Path_set_hops(long this_ptr, long[] val);
13482 // struct LDKBlindedTail Path_get_blinded_tail(const struct LDKPath *NONNULL_PTR this_ptr);
13483 public static native long Path_get_blinded_tail(long this_ptr);
13484 // void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlindedTail val);
13485 public static native void Path_set_blinded_tail(long this_ptr, long val);
13486 // MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg);
13487 public static native long Path_new(long[] hops_arg, long blinded_tail_arg);
13488 // uint64_t Path_clone_ptr(LDKPath *NONNULL_PTR arg);
13489 public static native long Path_clone_ptr(long arg);
13490 // struct LDKPath Path_clone(const struct LDKPath *NONNULL_PTR orig);
13491 public static native long Path_clone(long orig);
13492 // uint64_t Path_hash(const struct LDKPath *NONNULL_PTR o);
13493 public static native long Path_hash(long o);
13494 // bool Path_eq(const struct LDKPath *NONNULL_PTR a, const struct LDKPath *NONNULL_PTR b);
13495 public static native boolean Path_eq(long a, long b);
13496 // MUST_USE_RES uint64_t Path_fee_msat(const struct LDKPath *NONNULL_PTR this_arg);
13497 public static native long Path_fee_msat(long this_arg);
13498 // MUST_USE_RES uint64_t Path_final_value_msat(const struct LDKPath *NONNULL_PTR this_arg);
13499 public static native long Path_final_value_msat(long this_arg);
13500 // MUST_USE_RES struct LDKCOption_u32Z Path_final_cltv_expiry_delta(const struct LDKPath *NONNULL_PTR this_arg);
13501 public static native long Path_final_cltv_expiry_delta(long this_arg);
13502 // void Route_free(struct LDKRoute this_obj);
13503 public static native void Route_free(long this_obj);
13504 // struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
13505 public static native long[] Route_get_paths(long this_ptr);
13506 // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val);
13507 public static native void Route_set_paths(long this_ptr, long[] val);
13508 // struct LDKRouteParameters Route_get_route_params(const struct LDKRoute *NONNULL_PTR this_ptr);
13509 public static native long Route_get_route_params(long this_ptr);
13510 // void Route_set_route_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKRouteParameters val);
13511 public static native void Route_set_route_params(long this_ptr, long val);
13512 // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKRouteParameters route_params_arg);
13513 public static native long Route_new(long[] paths_arg, long route_params_arg);
13514 // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
13515 public static native long Route_clone_ptr(long arg);
13516 // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
13517 public static native long Route_clone(long orig);
13518 // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
13519 public static native long Route_hash(long o);
13520 // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
13521 public static native boolean Route_eq(long a, long b);
13522 // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
13523 public static native long Route_get_total_fees(long this_arg);
13524 // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
13525 public static native long Route_get_total_amount(long this_arg);
13526 // struct LDKStr Route_to_str(const struct LDKRoute *NONNULL_PTR o);
13527 public static native String Route_to_str(long o);
13528 // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
13529 public static native byte[] Route_write(long obj);
13530 // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
13531 public static native long Route_read(byte[] ser);
13532 // void RouteParameters_free(struct LDKRouteParameters this_obj);
13533 public static native void RouteParameters_free(long this_obj);
13534 // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
13535 public static native long RouteParameters_get_payment_params(long this_ptr);
13536 // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
13537 public static native void RouteParameters_set_payment_params(long this_ptr, long val);
13538 // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
13539 public static native long RouteParameters_get_final_value_msat(long this_ptr);
13540 // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
13541 public static native void RouteParameters_set_final_value_msat(long this_ptr, long val);
13542 // struct LDKCOption_u64Z RouteParameters_get_max_total_routing_fee_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
13543 public static native long RouteParameters_get_max_total_routing_fee_msat(long this_ptr);
13544 // void RouteParameters_set_max_total_routing_fee_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
13545 public static native void RouteParameters_set_max_total_routing_fee_msat(long this_ptr, long val);
13546 // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, struct LDKCOption_u64Z max_total_routing_fee_msat_arg);
13547 public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg, long max_total_routing_fee_msat_arg);
13548 // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
13549 public static native long RouteParameters_clone_ptr(long arg);
13550 // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
13551 public static native long RouteParameters_clone(long orig);
13552 // uint64_t RouteParameters_hash(const struct LDKRouteParameters *NONNULL_PTR o);
13553 public static native long RouteParameters_hash(long o);
13554 // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b);
13555 public static native boolean RouteParameters_eq(long a, long b);
13556 // MUST_USE_RES struct LDKRouteParameters RouteParameters_from_payment_params_and_value(struct LDKPaymentParameters payment_params, uint64_t final_value_msat);
13557 public static native long RouteParameters_from_payment_params_and_value(long payment_params, long final_value_msat);
13558 // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
13559 public static native byte[] RouteParameters_write(long obj);
13560 // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
13561 public static native long RouteParameters_read(byte[] ser);
13562 // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
13563 public static native void PaymentParameters_free(long this_obj);
13564 // struct LDKPayee PaymentParameters_get_payee(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
13565 public static native long PaymentParameters_get_payee(long this_ptr);
13566 // void PaymentParameters_set_payee(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPayee val);
13567 public static native void PaymentParameters_set_payee(long this_ptr, long val);
13568 // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
13569 public static native long PaymentParameters_get_expiry_time(long this_ptr);
13570 // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
13571 public static native void PaymentParameters_set_expiry_time(long this_ptr, long val);
13572 // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
13573 public static native int PaymentParameters_get_max_total_cltv_expiry_delta(long this_ptr);
13574 // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
13575 public static native void PaymentParameters_set_max_total_cltv_expiry_delta(long this_ptr, int val);
13576 // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
13577 public static native byte PaymentParameters_get_max_path_count(long this_ptr);
13578 // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
13579 public static native void PaymentParameters_set_max_path_count(long this_ptr, byte val);
13580 // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
13581 public static native byte PaymentParameters_get_max_channel_saturation_power_of_half(long this_ptr);
13582 // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
13583 public static native void PaymentParameters_set_max_channel_saturation_power_of_half(long this_ptr, byte val);
13584 // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
13585 public static native long[] PaymentParameters_get_previously_failed_channels(long this_ptr);
13586 // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
13587 public static native void PaymentParameters_set_previously_failed_channels(long this_ptr, long[] val);
13588 // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_blinded_path_idxs(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
13589 public static native long[] PaymentParameters_get_previously_failed_blinded_path_idxs(long this_ptr);
13590 // void PaymentParameters_set_previously_failed_blinded_path_idxs(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
13591 public static native void PaymentParameters_set_previously_failed_blinded_path_idxs(long this_ptr, long[] val);
13592 // 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, struct LDKCVec_u64Z previously_failed_blinded_path_idxs_arg);
13593 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, long[] previously_failed_blinded_path_idxs_arg);
13594 // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
13595 public static native long PaymentParameters_clone_ptr(long arg);
13596 // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
13597 public static native long PaymentParameters_clone(long orig);
13598 // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
13599 public static native long PaymentParameters_hash(long o);
13600 // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
13601 public static native boolean PaymentParameters_eq(long a, long b);
13602 // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
13603 public static native byte[] PaymentParameters_write(long obj);
13604 // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg);
13605 public static native long PaymentParameters_read(byte[] ser, int arg);
13606 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
13607 public static native long PaymentParameters_from_node_id(byte[] payee_pubkey, int final_cltv_expiry_delta);
13608 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta, bool allow_mpp);
13609 public static native long PaymentParameters_for_keysend(byte[] payee_pubkey, int final_cltv_expiry_delta, boolean allow_mpp);
13610 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_bolt12_invoice(const struct LDKBolt12Invoice *NONNULL_PTR invoice);
13611 public static native long PaymentParameters_from_bolt12_invoice(long invoice);
13612 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ blinded_route_hints);
13613 public static native long PaymentParameters_blinded(long[] blinded_route_hints);
13614 // void Payee_free(struct LDKPayee this_ptr);
13615 public static native void Payee_free(long this_ptr);
13616 // uint64_t Payee_clone_ptr(LDKPayee *NONNULL_PTR arg);
13617 public static native long Payee_clone_ptr(long arg);
13618 // struct LDKPayee Payee_clone(const struct LDKPayee *NONNULL_PTR orig);
13619 public static native long Payee_clone(long orig);
13620 // struct LDKPayee Payee_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ route_hints, struct LDKBolt12InvoiceFeatures features);
13621 public static native long Payee_blinded(long[] route_hints, long features);
13622 // struct LDKPayee Payee_clear(struct LDKPublicKey node_id, struct LDKCVec_RouteHintZ route_hints, struct LDKBolt11InvoiceFeatures features, uint32_t final_cltv_expiry_delta);
13623 public static native long Payee_clear(byte[] node_id, long[] route_hints, long features, int final_cltv_expiry_delta);
13624 // uint64_t Payee_hash(const struct LDKPayee *NONNULL_PTR o);
13625 public static native long Payee_hash(long o);
13626 // bool Payee_eq(const struct LDKPayee *NONNULL_PTR a, const struct LDKPayee *NONNULL_PTR b);
13627 public static native boolean Payee_eq(long a, long b);
13628 // void RouteHint_free(struct LDKRouteHint this_obj);
13629 public static native void RouteHint_free(long this_obj);
13630 // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
13631 public static native long[] RouteHint_get_a(long this_ptr);
13632 // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
13633 public static native void RouteHint_set_a(long this_ptr, long[] val);
13634 // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
13635 public static native long RouteHint_new(long[] a_arg);
13636 // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
13637 public static native long RouteHint_clone_ptr(long arg);
13638 // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
13639 public static native long RouteHint_clone(long orig);
13640 // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
13641 public static native long RouteHint_hash(long o);
13642 // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
13643 public static native boolean RouteHint_eq(long a, long b);
13644 // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
13645 public static native byte[] RouteHint_write(long obj);
13646 // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
13647 public static native long RouteHint_read(byte[] ser);
13648 // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
13649 public static native void RouteHintHop_free(long this_obj);
13650 // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
13651 public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
13652 // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13653 public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
13654 // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
13655 public static native long RouteHintHop_get_short_channel_id(long this_ptr);
13656 // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
13657 public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
13658 // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
13659 public static native long RouteHintHop_get_fees(long this_ptr);
13660 // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
13661 public static native void RouteHintHop_set_fees(long this_ptr, long val);
13662 // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
13663 public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
13664 // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
13665 public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
13666 // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
13667 public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
13668 // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
13669 public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
13670 // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
13671 public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
13672 // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
13673 public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
13674 // 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);
13675 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);
13676 // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
13677 public static native long RouteHintHop_clone_ptr(long arg);
13678 // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
13679 public static native long RouteHintHop_clone(long orig);
13680 // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
13681 public static native long RouteHintHop_hash(long o);
13682 // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
13683 public static native boolean RouteHintHop_eq(long a, long b);
13684 // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
13685 public static native byte[] RouteHintHop_write(long obj);
13686 // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
13687 public static native long RouteHintHop_read(byte[] ser);
13688 // void FirstHopCandidate_free(struct LDKFirstHopCandidate this_obj);
13689 public static native void FirstHopCandidate_free(long this_obj);
13690 // uint64_t FirstHopCandidate_clone_ptr(LDKFirstHopCandidate *NONNULL_PTR arg);
13691 public static native long FirstHopCandidate_clone_ptr(long arg);
13692 // struct LDKFirstHopCandidate FirstHopCandidate_clone(const struct LDKFirstHopCandidate *NONNULL_PTR orig);
13693 public static native long FirstHopCandidate_clone(long orig);
13694 // void PublicHopCandidate_free(struct LDKPublicHopCandidate this_obj);
13695 public static native void PublicHopCandidate_free(long this_obj);
13696 // uint64_t PublicHopCandidate_get_short_channel_id(const struct LDKPublicHopCandidate *NONNULL_PTR this_ptr);
13697 public static native long PublicHopCandidate_get_short_channel_id(long this_ptr);
13698 // void PublicHopCandidate_set_short_channel_id(struct LDKPublicHopCandidate *NONNULL_PTR this_ptr, uint64_t val);
13699 public static native void PublicHopCandidate_set_short_channel_id(long this_ptr, long val);
13700 // uint64_t PublicHopCandidate_clone_ptr(LDKPublicHopCandidate *NONNULL_PTR arg);
13701 public static native long PublicHopCandidate_clone_ptr(long arg);
13702 // struct LDKPublicHopCandidate PublicHopCandidate_clone(const struct LDKPublicHopCandidate *NONNULL_PTR orig);
13703 public static native long PublicHopCandidate_clone(long orig);
13704 // void PrivateHopCandidate_free(struct LDKPrivateHopCandidate this_obj);
13705 public static native void PrivateHopCandidate_free(long this_obj);
13706 // uint64_t PrivateHopCandidate_clone_ptr(LDKPrivateHopCandidate *NONNULL_PTR arg);
13707 public static native long PrivateHopCandidate_clone_ptr(long arg);
13708 // struct LDKPrivateHopCandidate PrivateHopCandidate_clone(const struct LDKPrivateHopCandidate *NONNULL_PTR orig);
13709 public static native long PrivateHopCandidate_clone(long orig);
13710 // void BlindedPathCandidate_free(struct LDKBlindedPathCandidate this_obj);
13711 public static native void BlindedPathCandidate_free(long this_obj);
13712 // uint64_t BlindedPathCandidate_clone_ptr(LDKBlindedPathCandidate *NONNULL_PTR arg);
13713 public static native long BlindedPathCandidate_clone_ptr(long arg);
13714 // struct LDKBlindedPathCandidate BlindedPathCandidate_clone(const struct LDKBlindedPathCandidate *NONNULL_PTR orig);
13715 public static native long BlindedPathCandidate_clone(long orig);
13716 // void OneHopBlindedPathCandidate_free(struct LDKOneHopBlindedPathCandidate this_obj);
13717 public static native void OneHopBlindedPathCandidate_free(long this_obj);
13718 // uint64_t OneHopBlindedPathCandidate_clone_ptr(LDKOneHopBlindedPathCandidate *NONNULL_PTR arg);
13719 public static native long OneHopBlindedPathCandidate_clone_ptr(long arg);
13720 // struct LDKOneHopBlindedPathCandidate OneHopBlindedPathCandidate_clone(const struct LDKOneHopBlindedPathCandidate *NONNULL_PTR orig);
13721 public static native long OneHopBlindedPathCandidate_clone(long orig);
13722 // void CandidateRouteHop_free(struct LDKCandidateRouteHop this_ptr);
13723 public static native void CandidateRouteHop_free(long this_ptr);
13724 // uint64_t CandidateRouteHop_clone_ptr(LDKCandidateRouteHop *NONNULL_PTR arg);
13725 public static native long CandidateRouteHop_clone_ptr(long arg);
13726 // struct LDKCandidateRouteHop CandidateRouteHop_clone(const struct LDKCandidateRouteHop *NONNULL_PTR orig);
13727 public static native long CandidateRouteHop_clone(long orig);
13728 // struct LDKCandidateRouteHop CandidateRouteHop_first_hop(struct LDKFirstHopCandidate a);
13729 public static native long CandidateRouteHop_first_hop(long a);
13730 // struct LDKCandidateRouteHop CandidateRouteHop_public_hop(struct LDKPublicHopCandidate a);
13731 public static native long CandidateRouteHop_public_hop(long a);
13732 // struct LDKCandidateRouteHop CandidateRouteHop_private_hop(struct LDKPrivateHopCandidate a);
13733 public static native long CandidateRouteHop_private_hop(long a);
13734 // struct LDKCandidateRouteHop CandidateRouteHop_blinded(struct LDKBlindedPathCandidate a);
13735 public static native long CandidateRouteHop_blinded(long a);
13736 // struct LDKCandidateRouteHop CandidateRouteHop_one_hop_blinded(struct LDKOneHopBlindedPathCandidate a);
13737 public static native long CandidateRouteHop_one_hop_blinded(long a);
13738 // MUST_USE_RES struct LDKCOption_u64Z CandidateRouteHop_globally_unique_short_channel_id(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
13739 public static native long CandidateRouteHop_globally_unique_short_channel_id(long this_arg);
13740 // MUST_USE_RES uint32_t CandidateRouteHop_cltv_expiry_delta(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
13741 public static native int CandidateRouteHop_cltv_expiry_delta(long this_arg);
13742 // MUST_USE_RES uint64_t CandidateRouteHop_htlc_minimum_msat(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
13743 public static native long CandidateRouteHop_htlc_minimum_msat(long this_arg);
13744 // MUST_USE_RES struct LDKRoutingFees CandidateRouteHop_fees(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
13745 public static native long CandidateRouteHop_fees(long this_arg);
13746 // MUST_USE_RES struct LDKNodeId CandidateRouteHop_source(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
13747 public static native long CandidateRouteHop_source(long this_arg);
13748 // MUST_USE_RES struct LDKNodeId CandidateRouteHop_target(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
13749 public static native long CandidateRouteHop_target(long this_arg);
13750 // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScoreLookUp *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]);
13751 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);
13752 // 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]);
13753 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);
13754 // void ScoreLookUp_free(struct LDKScoreLookUp this_ptr);
13755 public static native void ScoreLookUp_free(long this_ptr);
13756 // void ScoreUpdate_free(struct LDKScoreUpdate this_ptr);
13757 public static native void ScoreUpdate_free(long this_ptr);
13758 // void Score_free(struct LDKScore this_ptr);
13759 public static native void Score_free(long this_ptr);
13760 // void LockableScore_free(struct LDKLockableScore this_ptr);
13761 public static native void LockableScore_free(long this_ptr);
13762 // void WriteableScore_free(struct LDKWriteableScore this_ptr);
13763 public static native void WriteableScore_free(long this_ptr);
13764 // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
13765 public static native void MultiThreadedLockableScore_free(long this_obj);
13766 // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
13767 public static native long MultiThreadedLockableScore_as_LockableScore(long this_arg);
13768 // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
13769 public static native byte[] MultiThreadedLockableScore_write(long obj);
13770 // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
13771 public static native long MultiThreadedLockableScore_as_WriteableScore(long this_arg);
13772 // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
13773 public static native long MultiThreadedLockableScore_new(long score);
13774 // void MultiThreadedScoreLockRead_free(struct LDKMultiThreadedScoreLockRead this_obj);
13775 public static native void MultiThreadedScoreLockRead_free(long this_obj);
13776 // void MultiThreadedScoreLockWrite_free(struct LDKMultiThreadedScoreLockWrite this_obj);
13777 public static native void MultiThreadedScoreLockWrite_free(long this_obj);
13778 // struct LDKScoreLookUp MultiThreadedScoreLockRead_as_ScoreLookUp(const struct LDKMultiThreadedScoreLockRead *NONNULL_PTR this_arg);
13779 public static native long MultiThreadedScoreLockRead_as_ScoreLookUp(long this_arg);
13780 // struct LDKCVec_u8Z MultiThreadedScoreLockWrite_write(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR obj);
13781 public static native byte[] MultiThreadedScoreLockWrite_write(long obj);
13782 // struct LDKScoreUpdate MultiThreadedScoreLockWrite_as_ScoreUpdate(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR this_arg);
13783 public static native long MultiThreadedScoreLockWrite_as_ScoreUpdate(long this_arg);
13784 // void ChannelUsage_free(struct LDKChannelUsage this_obj);
13785 public static native void ChannelUsage_free(long this_obj);
13786 // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
13787 public static native long ChannelUsage_get_amount_msat(long this_ptr);
13788 // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
13789 public static native void ChannelUsage_set_amount_msat(long this_ptr, long val);
13790 // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
13791 public static native long ChannelUsage_get_inflight_htlc_msat(long this_ptr);
13792 // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
13793 public static native void ChannelUsage_set_inflight_htlc_msat(long this_ptr, long val);
13794 // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
13795 public static native long ChannelUsage_get_effective_capacity(long this_ptr);
13796 // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
13797 public static native void ChannelUsage_set_effective_capacity(long this_ptr, long val);
13798 // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
13799 public static native long ChannelUsage_new(long amount_msat_arg, long inflight_htlc_msat_arg, long effective_capacity_arg);
13800 // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
13801 public static native long ChannelUsage_clone_ptr(long arg);
13802 // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
13803 public static native long ChannelUsage_clone(long orig);
13804 // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
13805 public static native void FixedPenaltyScorer_free(long this_obj);
13806 // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
13807 public static native long FixedPenaltyScorer_clone_ptr(long arg);
13808 // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
13809 public static native long FixedPenaltyScorer_clone(long orig);
13810 // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
13811 public static native long FixedPenaltyScorer_with_penalty(long penalty_msat);
13812 // struct LDKScoreLookUp FixedPenaltyScorer_as_ScoreLookUp(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
13813 public static native long FixedPenaltyScorer_as_ScoreLookUp(long this_arg);
13814 // struct LDKScoreUpdate FixedPenaltyScorer_as_ScoreUpdate(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
13815 public static native long FixedPenaltyScorer_as_ScoreUpdate(long this_arg);
13816 // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
13817 public static native byte[] FixedPenaltyScorer_write(long obj);
13818 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
13819 public static native long FixedPenaltyScorer_read(byte[] ser, long arg);
13820 // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
13821 public static native void ProbabilisticScorer_free(long this_obj);
13822 // void ProbabilisticScoringFeeParameters_free(struct LDKProbabilisticScoringFeeParameters this_obj);
13823 public static native void ProbabilisticScoringFeeParameters_free(long this_obj);
13824 // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13825 public static native long ProbabilisticScoringFeeParameters_get_base_penalty_msat(long this_ptr);
13826 // void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13827 public static native void ProbabilisticScoringFeeParameters_set_base_penalty_msat(long this_ptr, long val);
13828 // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13829 public static native long ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(long this_ptr);
13830 // void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13831 public static native void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(long this_ptr, long val);
13832 // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13833 public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(long this_ptr);
13834 // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13835 public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(long this_ptr, long val);
13836 // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13837 public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(long this_ptr);
13838 // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13839 public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
13840 // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13841 public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(long this_ptr);
13842 // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13843 public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(long this_ptr, long val);
13844 // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13845 public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr);
13846 // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13847 public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
13848 // uint64_t ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13849 public static native long ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(long this_ptr);
13850 // void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13851 public static native void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(long this_ptr, long val);
13852 // uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13853 public static native long ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(long this_ptr);
13854 // void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
13855 public static native void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(long this_ptr, long val);
13856 // bool ProbabilisticScoringFeeParameters_get_linear_success_probability(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
13857 public static native boolean ProbabilisticScoringFeeParameters_get_linear_success_probability(long this_ptr);
13858 // void ProbabilisticScoringFeeParameters_set_linear_success_probability(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, bool val);
13859 public static native void ProbabilisticScoringFeeParameters_set_linear_success_probability(long this_ptr, boolean val);
13860 // uint64_t ProbabilisticScoringFeeParameters_clone_ptr(LDKProbabilisticScoringFeeParameters *NONNULL_PTR arg);
13861 public static native long ProbabilisticScoringFeeParameters_clone_ptr(long arg);
13862 // struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_clone(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR orig);
13863 public static native long ProbabilisticScoringFeeParameters_clone(long orig);
13864 // MUST_USE_RES struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_default(void);
13865 public static native long ProbabilisticScoringFeeParameters_default();
13866 // void ProbabilisticScoringFeeParameters_add_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
13867 public static native void ProbabilisticScoringFeeParameters_add_banned(long this_arg, long node_id);
13868 // void ProbabilisticScoringFeeParameters_add_banned_from_list(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
13869 public static native void ProbabilisticScoringFeeParameters_add_banned_from_list(long this_arg, long[] node_ids);
13870 // void ProbabilisticScoringFeeParameters_remove_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
13871 public static native void ProbabilisticScoringFeeParameters_remove_banned(long this_arg, long node_id);
13872 // void ProbabilisticScoringFeeParameters_set_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
13873 public static native void ProbabilisticScoringFeeParameters_set_manual_penalty(long this_arg, long node_id, long penalty);
13874 // void ProbabilisticScoringFeeParameters_remove_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
13875 public static native void ProbabilisticScoringFeeParameters_remove_manual_penalty(long this_arg, long node_id);
13876 // void ProbabilisticScoringFeeParameters_clear_manual_penalties(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg);
13877 public static native void ProbabilisticScoringFeeParameters_clear_manual_penalties(long this_arg);
13878 // void ProbabilisticScoringDecayParameters_free(struct LDKProbabilisticScoringDecayParameters this_obj);
13879 public static native void ProbabilisticScoringDecayParameters_free(long this_obj);
13880 // uint64_t ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
13881 public static native long ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(long this_ptr);
13882 // void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
13883 public static native void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(long this_ptr, long val);
13884 // uint64_t ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
13885 public static native long ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(long this_ptr);
13886 // void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
13887 public static native void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(long this_ptr, long val);
13888 // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_new(uint64_t historical_no_updates_half_life_arg, uint64_t liquidity_offset_half_life_arg);
13889 public static native long ProbabilisticScoringDecayParameters_new(long historical_no_updates_half_life_arg, long liquidity_offset_half_life_arg);
13890 // uint64_t ProbabilisticScoringDecayParameters_clone_ptr(LDKProbabilisticScoringDecayParameters *NONNULL_PTR arg);
13891 public static native long ProbabilisticScoringDecayParameters_clone_ptr(long arg);
13892 // struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_clone(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR orig);
13893 public static native long ProbabilisticScoringDecayParameters_clone(long orig);
13894 // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_default(void);
13895 public static native long ProbabilisticScoringDecayParameters_default();
13896 // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringDecayParameters decay_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
13897 public static native long ProbabilisticScorer_new(long decay_params, long network_graph, long logger);
13898 // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
13899 public static native void ProbabilisticScorer_debug_log_liquidity_stats(long this_arg);
13900 // 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);
13901 public static native long ProbabilisticScorer_estimated_channel_liquidity_range(long this_arg, long scid, long target);
13902 // MUST_USE_RES struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
13903 public static native long ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(long this_arg, long scid, long target);
13904 // MUST_USE_RES struct LDKCOption_f64Z ProbabilisticScorer_historical_estimated_payment_success_probability(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target, uint64_t amount_msat, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR params);
13905 public static native long ProbabilisticScorer_historical_estimated_payment_success_probability(long this_arg, long scid, long target, long amount_msat, long params);
13906 // struct LDKScoreLookUp ProbabilisticScorer_as_ScoreLookUp(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
13907 public static native long ProbabilisticScorer_as_ScoreLookUp(long this_arg);
13908 // struct LDKScoreUpdate ProbabilisticScorer_as_ScoreUpdate(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
13909 public static native long ProbabilisticScorer_as_ScoreUpdate(long this_arg);
13910 // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
13911 public static native long ProbabilisticScorer_as_Score(long this_arg);
13912 // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
13913 public static native byte[] ProbabilisticScorer_write(long obj);
13914 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringDecayParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
13915 public static native long ProbabilisticScorer_read(byte[] ser, long arg_a, long arg_b, long arg_c);
13916 // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
13917 public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
13918 // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13919 public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
13920 // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
13921 public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
13922 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13923 public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
13924 // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13925 public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
13926 // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13927 public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
13928 // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
13929 public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
13930 // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13931 public static native long DelayedPaymentOutputDescriptor_get_output(long this_ptr);
13932 // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
13933 public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
13934 // struct LDKRevocationKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13935 public static native long DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
13936 // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKRevocationKey val);
13937 public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, long val);
13938 // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
13939 public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
13940 // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
13941 public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
13942 // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13943 public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
13944 // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
13945 public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
13946 // struct LDKChannelTransactionParameters DelayedPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13947 public static native long DelayedPaymentOutputDescriptor_get_channel_transaction_parameters(long this_ptr);
13948 // void DelayedPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
13949 public static native void DelayedPaymentOutputDescriptor_set_channel_transaction_parameters(long this_ptr, long val);
13950 // 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 LDKRevocationKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg, struct LDKChannelTransactionParameters channel_transaction_parameters_arg);
13951 public static native long DelayedPaymentOutputDescriptor_new(long outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, long output_arg, long revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg, long channel_transaction_parameters_arg);
13952 // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
13953 public static native long DelayedPaymentOutputDescriptor_clone_ptr(long arg);
13954 // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
13955 public static native long DelayedPaymentOutputDescriptor_clone(long orig);
13956 // uint64_t DelayedPaymentOutputDescriptor_hash(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR o);
13957 public static native long DelayedPaymentOutputDescriptor_hash(long o);
13958 // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b);
13959 public static native boolean DelayedPaymentOutputDescriptor_eq(long a, long b);
13960 // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
13961 public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
13962 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
13963 public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
13964 // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
13965 public static native void StaticPaymentOutputDescriptor_free(long this_obj);
13966 // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13967 public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
13968 // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
13969 public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
13970 // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13971 public static native long StaticPaymentOutputDescriptor_get_output(long this_ptr);
13972 // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
13973 public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
13974 // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
13975 public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
13976 // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
13977 public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
13978 // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13979 public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
13980 // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
13981 public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
13982 // struct LDKChannelTransactionParameters StaticPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
13983 public static native long StaticPaymentOutputDescriptor_get_channel_transaction_parameters(long this_ptr);
13984 // void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
13985 public static native void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(long this_ptr, long val);
13986 // MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg, struct LDKChannelTransactionParameters channel_transaction_parameters_arg);
13987 public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg, long channel_transaction_parameters_arg);
13988 // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
13989 public static native long StaticPaymentOutputDescriptor_clone_ptr(long arg);
13990 // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
13991 public static native long StaticPaymentOutputDescriptor_clone(long orig);
13992 // uint64_t StaticPaymentOutputDescriptor_hash(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR o);
13993 public static native long StaticPaymentOutputDescriptor_hash(long o);
13994 // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b);
13995 public static native boolean StaticPaymentOutputDescriptor_eq(long a, long b);
13996 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ StaticPaymentOutputDescriptor_witness_script(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg);
13997 public static native long StaticPaymentOutputDescriptor_witness_script(long this_arg);
13998 // MUST_USE_RES uint64_t StaticPaymentOutputDescriptor_max_witness_length(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg);
13999 public static native long StaticPaymentOutputDescriptor_max_witness_length(long this_arg);
14000 // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
14001 public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
14002 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
14003 public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
14004 // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
14005 public static native void SpendableOutputDescriptor_free(long this_ptr);
14006 // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
14007 public static native long SpendableOutputDescriptor_clone_ptr(long arg);
14008 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
14009 public static native long SpendableOutputDescriptor_clone(long orig);
14010 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output, struct LDKThirtyTwoBytes channel_keys_id);
14011 public static native long SpendableOutputDescriptor_static_output(long outpoint, long output, byte[] channel_keys_id);
14012 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
14013 public static native long SpendableOutputDescriptor_delayed_payment_output(long a);
14014 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
14015 public static native long SpendableOutputDescriptor_static_payment_output(long a);
14016 // uint64_t SpendableOutputDescriptor_hash(const struct LDKSpendableOutputDescriptor *NONNULL_PTR o);
14017 public static native long SpendableOutputDescriptor_hash(long o);
14018 // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b);
14019 public static native boolean SpendableOutputDescriptor_eq(long a, long b);
14020 // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
14021 public static native byte[] SpendableOutputDescriptor_write(long obj);
14022 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
14023 public static native long SpendableOutputDescriptor_read(byte[] ser);
14024 // MUST_USE_RES struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime);
14025 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);
14026 // void ChannelDerivationParameters_free(struct LDKChannelDerivationParameters this_obj);
14027 public static native void ChannelDerivationParameters_free(long this_obj);
14028 // uint64_t ChannelDerivationParameters_get_value_satoshis(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
14029 public static native long ChannelDerivationParameters_get_value_satoshis(long this_ptr);
14030 // void ChannelDerivationParameters_set_value_satoshis(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, uint64_t val);
14031 public static native void ChannelDerivationParameters_set_value_satoshis(long this_ptr, long val);
14032 // const uint8_t (*ChannelDerivationParameters_get_keys_id(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr))[32];
14033 public static native byte[] ChannelDerivationParameters_get_keys_id(long this_ptr);
14034 // void ChannelDerivationParameters_set_keys_id(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
14035 public static native void ChannelDerivationParameters_set_keys_id(long this_ptr, byte[] val);
14036 // struct LDKChannelTransactionParameters ChannelDerivationParameters_get_transaction_parameters(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
14037 public static native long ChannelDerivationParameters_get_transaction_parameters(long this_ptr);
14038 // void ChannelDerivationParameters_set_transaction_parameters(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
14039 public static native void ChannelDerivationParameters_set_transaction_parameters(long this_ptr, long val);
14040 // MUST_USE_RES struct LDKChannelDerivationParameters ChannelDerivationParameters_new(uint64_t value_satoshis_arg, struct LDKThirtyTwoBytes keys_id_arg, struct LDKChannelTransactionParameters transaction_parameters_arg);
14041 public static native long ChannelDerivationParameters_new(long value_satoshis_arg, byte[] keys_id_arg, long transaction_parameters_arg);
14042 // uint64_t ChannelDerivationParameters_clone_ptr(LDKChannelDerivationParameters *NONNULL_PTR arg);
14043 public static native long ChannelDerivationParameters_clone_ptr(long arg);
14044 // struct LDKChannelDerivationParameters ChannelDerivationParameters_clone(const struct LDKChannelDerivationParameters *NONNULL_PTR orig);
14045 public static native long ChannelDerivationParameters_clone(long orig);
14046 // bool ChannelDerivationParameters_eq(const struct LDKChannelDerivationParameters *NONNULL_PTR a, const struct LDKChannelDerivationParameters *NONNULL_PTR b);
14047 public static native boolean ChannelDerivationParameters_eq(long a, long b);
14048 // struct LDKCVec_u8Z ChannelDerivationParameters_write(const struct LDKChannelDerivationParameters *NONNULL_PTR obj);
14049 public static native byte[] ChannelDerivationParameters_write(long obj);
14050 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ ChannelDerivationParameters_read(struct LDKu8slice ser);
14051 public static native long ChannelDerivationParameters_read(byte[] ser);
14052 // void HTLCDescriptor_free(struct LDKHTLCDescriptor this_obj);
14053 public static native void HTLCDescriptor_free(long this_obj);
14054 // struct LDKChannelDerivationParameters HTLCDescriptor_get_channel_derivation_parameters(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
14055 public static native long HTLCDescriptor_get_channel_derivation_parameters(long this_ptr);
14056 // void HTLCDescriptor_set_channel_derivation_parameters(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
14057 public static native void HTLCDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
14058 // const uint8_t (*HTLCDescriptor_get_commitment_txid(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr))[32];
14059 public static native byte[] HTLCDescriptor_get_commitment_txid(long this_ptr);
14060 // void HTLCDescriptor_set_commitment_txid(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
14061 public static native void HTLCDescriptor_set_commitment_txid(long this_ptr, byte[] val);
14062 // uint64_t HTLCDescriptor_get_per_commitment_number(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
14063 public static native long HTLCDescriptor_get_per_commitment_number(long this_ptr);
14064 // void HTLCDescriptor_set_per_commitment_number(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint64_t val);
14065 public static native void HTLCDescriptor_set_per_commitment_number(long this_ptr, long val);
14066 // struct LDKPublicKey HTLCDescriptor_get_per_commitment_point(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
14067 public static native byte[] HTLCDescriptor_get_per_commitment_point(long this_ptr);
14068 // void HTLCDescriptor_set_per_commitment_point(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
14069 public static native void HTLCDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
14070 // uint32_t HTLCDescriptor_get_feerate_per_kw(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
14071 public static native int HTLCDescriptor_get_feerate_per_kw(long this_ptr);
14072 // void HTLCDescriptor_set_feerate_per_kw(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint32_t val);
14073 public static native void HTLCDescriptor_set_feerate_per_kw(long this_ptr, int val);
14074 // struct LDKHTLCOutputInCommitment HTLCDescriptor_get_htlc(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
14075 public static native long HTLCDescriptor_get_htlc(long this_ptr);
14076 // void HTLCDescriptor_set_htlc(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKHTLCOutputInCommitment val);
14077 public static native void HTLCDescriptor_set_htlc(long this_ptr, long val);
14078 // struct LDKCOption_ThirtyTwoBytesZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
14079 public static native long HTLCDescriptor_get_preimage(long this_ptr);
14080 // void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
14081 public static native void HTLCDescriptor_set_preimage(long this_ptr, long val);
14082 // struct LDKECDSASignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
14083 public static native byte[] HTLCDescriptor_get_counterparty_sig(long this_ptr);
14084 // void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
14085 public static native void HTLCDescriptor_set_counterparty_sig(long this_ptr, byte[] val);
14086 // MUST_USE_RES struct LDKHTLCDescriptor HTLCDescriptor_new(struct LDKChannelDerivationParameters channel_derivation_parameters_arg, struct LDKThirtyTwoBytes commitment_txid_arg, uint64_t per_commitment_number_arg, struct LDKPublicKey per_commitment_point_arg, uint32_t feerate_per_kw_arg, struct LDKHTLCOutputInCommitment htlc_arg, struct LDKCOption_ThirtyTwoBytesZ preimage_arg, struct LDKECDSASignature counterparty_sig_arg);
14087 public static native long HTLCDescriptor_new(long channel_derivation_parameters_arg, byte[] commitment_txid_arg, long per_commitment_number_arg, byte[] per_commitment_point_arg, int feerate_per_kw_arg, long htlc_arg, long preimage_arg, byte[] counterparty_sig_arg);
14088 // uint64_t HTLCDescriptor_clone_ptr(LDKHTLCDescriptor *NONNULL_PTR arg);
14089 public static native long HTLCDescriptor_clone_ptr(long arg);
14090 // struct LDKHTLCDescriptor HTLCDescriptor_clone(const struct LDKHTLCDescriptor *NONNULL_PTR orig);
14091 public static native long HTLCDescriptor_clone(long orig);
14092 // bool HTLCDescriptor_eq(const struct LDKHTLCDescriptor *NONNULL_PTR a, const struct LDKHTLCDescriptor *NONNULL_PTR b);
14093 public static native boolean HTLCDescriptor_eq(long a, long b);
14094 // struct LDKCVec_u8Z HTLCDescriptor_write(const struct LDKHTLCDescriptor *NONNULL_PTR obj);
14095 public static native byte[] HTLCDescriptor_write(long obj);
14096 // struct LDKCResult_HTLCDescriptorDecodeErrorZ HTLCDescriptor_read(struct LDKu8slice ser);
14097 public static native long HTLCDescriptor_read(byte[] ser);
14098 // MUST_USE_RES struct LDKOutPoint HTLCDescriptor_outpoint(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
14099 public static native long HTLCDescriptor_outpoint(long this_arg);
14100 // MUST_USE_RES struct LDKTxOut HTLCDescriptor_previous_utxo(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
14101 public static native long HTLCDescriptor_previous_utxo(long this_arg);
14102 // MUST_USE_RES struct LDKTxIn HTLCDescriptor_unsigned_tx_input(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
14103 public static native long HTLCDescriptor_unsigned_tx_input(long this_arg);
14104 // MUST_USE_RES struct LDKTxOut HTLCDescriptor_tx_output(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
14105 public static native long HTLCDescriptor_tx_output(long this_arg);
14106 // MUST_USE_RES struct LDKCVec_u8Z HTLCDescriptor_witness_script(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
14107 public static native byte[] HTLCDescriptor_witness_script(long this_arg);
14108 // MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature, struct LDKu8slice witness_script);
14109 public static native byte[] HTLCDescriptor_tx_input_witness(long this_arg, byte[] signature, byte[] witness_script);
14110 // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner HTLCDescriptor_derive_channel_signer(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
14111 public static native long HTLCDescriptor_derive_channel_signer(long this_arg, long signer_provider);
14112 // void ChannelSigner_free(struct LDKChannelSigner this_ptr);
14113 public static native void ChannelSigner_free(long this_ptr);
14114 // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
14115 public static native Recipient Recipient_clone(long orig);
14116 // enum LDKRecipient Recipient_node(void);
14117 public static native Recipient Recipient_node();
14118 // enum LDKRecipient Recipient_phantom_node(void);
14119 public static native Recipient Recipient_phantom_node();
14120 // void EntropySource_free(struct LDKEntropySource this_ptr);
14121 public static native void EntropySource_free(long this_ptr);
14122 // void NodeSigner_free(struct LDKNodeSigner this_ptr);
14123 public static native void NodeSigner_free(long this_ptr);
14124 // void OutputSpender_free(struct LDKOutputSpender this_ptr);
14125 public static native void OutputSpender_free(long this_ptr);
14126 // void SignerProvider_free(struct LDKSignerProvider this_ptr);
14127 public static native void SignerProvider_free(long this_ptr);
14128 // void ChangeDestinationSource_free(struct LDKChangeDestinationSource this_ptr);
14129 public static native void ChangeDestinationSource_free(long this_ptr);
14130 // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
14131 public static native void InMemorySigner_free(long this_obj);
14132 // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
14133 public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
14134 // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
14135 public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
14136 // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
14137 public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
14138 // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
14139 public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
14140 // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
14141 public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
14142 // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
14143 public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
14144 // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
14145 public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
14146 // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
14147 public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
14148 // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
14149 public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
14150 // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
14151 public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
14152 // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
14153 public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
14154 // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
14155 public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
14156 // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
14157 public static native long InMemorySigner_clone_ptr(long arg);
14158 // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
14159 public static native long InMemorySigner_clone(long orig);
14160 // 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);
14161 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);
14162 // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14163 public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
14164 // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14165 public static native long InMemorySigner_counterparty_selected_contest_delay(long this_arg);
14166 // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14167 public static native long InMemorySigner_holder_selected_contest_delay(long this_arg);
14168 // MUST_USE_RES struct LDKCOption_boolZ InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14169 public static native long InMemorySigner_is_outbound(long this_arg);
14170 // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14171 public static native long InMemorySigner_funding_outpoint(long this_arg);
14172 // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14173 public static native long InMemorySigner_get_channel_parameters(long this_arg);
14174 // MUST_USE_RES struct LDKChannelTypeFeatures InMemorySigner_channel_type_features(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14175 public static native long InMemorySigner_channel_type_features(long this_arg);
14176 // MUST_USE_RES struct LDKCResult_WitnessNoneZ 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);
14177 public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
14178 // MUST_USE_RES struct LDKCResult_WitnessNoneZ 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);
14179 public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
14180 // struct LDKEntropySource InMemorySigner_as_EntropySource(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14181 public static native long InMemorySigner_as_EntropySource(long this_arg);
14182 // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14183 public static native long InMemorySigner_as_ChannelSigner(long this_arg);
14184 // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14185 public static native long InMemorySigner_as_EcdsaChannelSigner(long this_arg);
14186 // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
14187 public static native long InMemorySigner_as_WriteableEcdsaChannelSigner(long this_arg);
14188 // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
14189 public static native byte[] InMemorySigner_write(long obj);
14190 // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKEntropySource arg);
14191 public static native long InMemorySigner_read(byte[] ser, long arg);
14192 // void KeysManager_free(struct LDKKeysManager this_obj);
14193 public static native void KeysManager_free(long this_obj);
14194 // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
14195 public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
14196 // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg);
14197 public static native byte[] KeysManager_get_node_secret_key(long this_arg);
14198 // 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]);
14199 public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
14200 // MUST_USE_RES struct LDKCResult_CVec_u8ZNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt);
14201 public static native long KeysManager_sign_spendable_outputs_psbt(long this_arg, long[] descriptors, byte[] psbt);
14202 // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg);
14203 public static native long KeysManager_as_EntropySource(long this_arg);
14204 // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg);
14205 public static native long KeysManager_as_NodeSigner(long this_arg);
14206 // struct LDKOutputSpender KeysManager_as_OutputSpender(const struct LDKKeysManager *NONNULL_PTR this_arg);
14207 public static native long KeysManager_as_OutputSpender(long this_arg);
14208 // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg);
14209 public static native long KeysManager_as_SignerProvider(long this_arg);
14210 // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
14211 public static native void PhantomKeysManager_free(long this_obj);
14212 // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
14213 public static native long PhantomKeysManager_as_EntropySource(long this_arg);
14214 // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
14215 public static native long PhantomKeysManager_as_NodeSigner(long this_arg);
14216 // struct LDKOutputSpender PhantomKeysManager_as_OutputSpender(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
14217 public static native long PhantomKeysManager_as_OutputSpender(long this_arg);
14218 // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
14219 public static native long PhantomKeysManager_as_SignerProvider(long this_arg);
14220 // 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]);
14221 public static native long PhantomKeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed);
14222 // 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]);
14223 public static native long PhantomKeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
14224 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
14225 public static native byte[] PhantomKeysManager_get_node_secret_key(long this_arg);
14226 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
14227 public static native byte[] PhantomKeysManager_get_phantom_node_secret_key(long this_arg);
14228 // void RandomBytes_free(struct LDKRandomBytes this_obj);
14229 public static native void RandomBytes_free(long this_obj);
14230 // MUST_USE_RES struct LDKRandomBytes RandomBytes_new(struct LDKThirtyTwoBytes seed);
14231 public static native long RandomBytes_new(byte[] seed);
14232 // struct LDKEntropySource RandomBytes_as_EntropySource(const struct LDKRandomBytes *NONNULL_PTR this_arg);
14233 public static native long RandomBytes_as_EntropySource(long this_arg);
14234 // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr);
14235 public static native void EcdsaChannelSigner_free(long this_ptr);
14236 // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg);
14237 public static native long WriteableEcdsaChannelSigner_clone_ptr(long arg);
14238 // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig);
14239 public static native long WriteableEcdsaChannelSigner_clone(long orig);
14240 // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr);
14241 public static native void WriteableEcdsaChannelSigner_free(long this_ptr);
14242 // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
14243 public static native void OnionMessenger_free(long this_obj);
14244 // void MessageRouter_free(struct LDKMessageRouter this_ptr);
14245 public static native void MessageRouter_free(long this_ptr);
14246 // void DefaultMessageRouter_free(struct LDKDefaultMessageRouter this_obj);
14247 public static native void DefaultMessageRouter_free(long this_obj);
14248 // MUST_USE_RES struct LDKDefaultMessageRouter DefaultMessageRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKEntropySource entropy_source);
14249 public static native long DefaultMessageRouter_new(long network_graph, long entropy_source);
14250 // struct LDKMessageRouter DefaultMessageRouter_as_MessageRouter(const struct LDKDefaultMessageRouter *NONNULL_PTR this_arg);
14251 public static native long DefaultMessageRouter_as_MessageRouter(long this_arg);
14252 // void OnionMessagePath_free(struct LDKOnionMessagePath this_obj);
14253 public static native void OnionMessagePath_free(long this_obj);
14254 // struct LDKCVec_PublicKeyZ OnionMessagePath_get_intermediate_nodes(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
14255 public static native byte[][] OnionMessagePath_get_intermediate_nodes(long this_ptr);
14256 // void OnionMessagePath_set_intermediate_nodes(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCVec_PublicKeyZ val);
14257 public static native void OnionMessagePath_set_intermediate_nodes(long this_ptr, byte[][] val);
14258 // struct LDKDestination OnionMessagePath_get_destination(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
14259 public static native long OnionMessagePath_get_destination(long this_ptr);
14260 // void OnionMessagePath_set_destination(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKDestination val);
14261 public static native void OnionMessagePath_set_destination(long this_ptr, long val);
14262 // struct LDKCOption_CVec_SocketAddressZZ OnionMessagePath_get_first_node_addresses(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
14263 public static native long OnionMessagePath_get_first_node_addresses(long this_ptr);
14264 // void OnionMessagePath_set_first_node_addresses(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCOption_CVec_SocketAddressZZ val);
14265 public static native void OnionMessagePath_set_first_node_addresses(long this_ptr, long val);
14266 // MUST_USE_RES struct LDKOnionMessagePath OnionMessagePath_new(struct LDKCVec_PublicKeyZ intermediate_nodes_arg, struct LDKDestination destination_arg, struct LDKCOption_CVec_SocketAddressZZ first_node_addresses_arg);
14267 public static native long OnionMessagePath_new(byte[][] intermediate_nodes_arg, long destination_arg, long first_node_addresses_arg);
14268 // uint64_t OnionMessagePath_clone_ptr(LDKOnionMessagePath *NONNULL_PTR arg);
14269 public static native long OnionMessagePath_clone_ptr(long arg);
14270 // struct LDKOnionMessagePath OnionMessagePath_clone(const struct LDKOnionMessagePath *NONNULL_PTR orig);
14271 public static native long OnionMessagePath_clone(long orig);
14272 // MUST_USE_RES struct LDKPublicKey OnionMessagePath_first_node(const struct LDKOnionMessagePath *NONNULL_PTR this_arg);
14273 public static native byte[] OnionMessagePath_first_node(long this_arg);
14274 // void Destination_free(struct LDKDestination this_ptr);
14275 public static native void Destination_free(long this_ptr);
14276 // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg);
14277 public static native long Destination_clone_ptr(long arg);
14278 // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig);
14279 public static native long Destination_clone(long orig);
14280 // struct LDKDestination Destination_node(struct LDKPublicKey a);
14281 public static native long Destination_node(byte[] a);
14282 // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a);
14283 public static native long Destination_blinded_path(long a);
14284 // uint64_t Destination_hash(const struct LDKDestination *NONNULL_PTR o);
14285 public static native long Destination_hash(long o);
14286 // bool Destination_eq(const struct LDKDestination *NONNULL_PTR a, const struct LDKDestination *NONNULL_PTR b);
14287 public static native boolean Destination_eq(long a, long b);
14288 // void Destination_resolve(struct LDKDestination *NONNULL_PTR this_arg, const struct LDKReadOnlyNetworkGraph *NONNULL_PTR network_graph);
14289 public static native void Destination_resolve(long this_arg, long network_graph);
14290 // void SendSuccess_free(struct LDKSendSuccess this_ptr);
14291 public static native void SendSuccess_free(long this_ptr);
14292 // uint64_t SendSuccess_clone_ptr(LDKSendSuccess *NONNULL_PTR arg);
14293 public static native long SendSuccess_clone_ptr(long arg);
14294 // struct LDKSendSuccess SendSuccess_clone(const struct LDKSendSuccess *NONNULL_PTR orig);
14295 public static native long SendSuccess_clone(long orig);
14296 // struct LDKSendSuccess SendSuccess_buffered(void);
14297 public static native long SendSuccess_buffered();
14298 // struct LDKSendSuccess SendSuccess_buffered_awaiting_connection(struct LDKPublicKey a);
14299 public static native long SendSuccess_buffered_awaiting_connection(byte[] a);
14300 // uint64_t SendSuccess_hash(const struct LDKSendSuccess *NONNULL_PTR o);
14301 public static native long SendSuccess_hash(long o);
14302 // bool SendSuccess_eq(const struct LDKSendSuccess *NONNULL_PTR a, const struct LDKSendSuccess *NONNULL_PTR b);
14303 public static native boolean SendSuccess_eq(long a, long b);
14304 // void SendError_free(struct LDKSendError this_ptr);
14305 public static native void SendError_free(long this_ptr);
14306 // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
14307 public static native long SendError_clone_ptr(long arg);
14308 // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
14309 public static native long SendError_clone(long orig);
14310 // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
14311 public static native long SendError_secp256k1(Secp256k1Error a);
14312 // struct LDKSendError SendError_too_big_packet(void);
14313 public static native long SendError_too_big_packet();
14314 // struct LDKSendError SendError_too_few_blinded_hops(void);
14315 public static native long SendError_too_few_blinded_hops();
14316 // struct LDKSendError SendError_invalid_first_hop(struct LDKPublicKey a);
14317 public static native long SendError_invalid_first_hop(byte[] a);
14318 // struct LDKSendError SendError_path_not_found(void);
14319 public static native long SendError_path_not_found();
14320 // struct LDKSendError SendError_invalid_message(void);
14321 public static native long SendError_invalid_message();
14322 // struct LDKSendError SendError_buffer_full(void);
14323 public static native long SendError_buffer_full();
14324 // struct LDKSendError SendError_get_node_id_failed(void);
14325 public static native long SendError_get_node_id_failed();
14326 // struct LDKSendError SendError_unresolved_introduction_node(void);
14327 public static native long SendError_unresolved_introduction_node();
14328 // struct LDKSendError SendError_blinded_path_advance_failed(void);
14329 public static native long SendError_blinded_path_advance_failed();
14330 // uint64_t SendError_hash(const struct LDKSendError *NONNULL_PTR o);
14331 public static native long SendError_hash(long o);
14332 // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b);
14333 public static native boolean SendError_eq(long a, long b);
14334 // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr);
14335 public static native void CustomOnionMessageHandler_free(long this_ptr);
14336 // void PeeledOnion_free(struct LDKPeeledOnion this_ptr);
14337 public static native void PeeledOnion_free(long this_ptr);
14338 // uint64_t PeeledOnion_clone_ptr(LDKPeeledOnion *NONNULL_PTR arg);
14339 public static native long PeeledOnion_clone_ptr(long arg);
14340 // struct LDKPeeledOnion PeeledOnion_clone(const struct LDKPeeledOnion *NONNULL_PTR orig);
14341 public static native long PeeledOnion_clone(long orig);
14342 // struct LDKPeeledOnion PeeledOnion_forward(struct LDKNextMessageHop a, struct LDKOnionMessage b);
14343 public static native long PeeledOnion_forward(long a, long b);
14344 // struct LDKPeeledOnion PeeledOnion_receive(struct LDKParsedOnionMessageContents a, struct LDKThirtyTwoBytes b, struct LDKBlindedPath c);
14345 public static native long PeeledOnion_receive(long a, byte[] b, long c);
14346 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message_resolving_destination(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKNodeIdLookUp *NONNULL_PTR node_id_lookup, const struct LDKReadOnlyNetworkGraph *NONNULL_PTR network_graph, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path);
14347 public static native long create_onion_message_resolving_destination(long entropy_source, long node_signer, long node_id_lookup, long network_graph, long path, long contents, long reply_path);
14348 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKNodeIdLookUp *NONNULL_PTR node_id_lookup, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path);
14349 public static native long create_onion_message(long entropy_source, long node_signer, long node_id_lookup, long path, long contents, long reply_path);
14350 // struct LDKCResult_PeeledOnionNoneZ peel_onion_message(const struct LDKOnionMessage *NONNULL_PTR msg, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler);
14351 public static native long peel_onion_message(long msg, long node_signer, long logger, long custom_handler);
14352 // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKNodeIdLookUp node_id_lookup, struct LDKMessageRouter message_router, struct LDKOffersMessageHandler offers_handler, struct LDKCustomOnionMessageHandler custom_handler);
14353 public static native long OnionMessenger_new(long entropy_source, long node_signer, long logger, long node_id_lookup, long message_router, long offers_handler, long custom_handler);
14354 // MUST_USE_RES struct LDKCResult_SendSuccessSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKOnionMessageContents contents, struct LDKDestination destination, struct LDKBlindedPath reply_path);
14355 public static native long OnionMessenger_send_onion_message(long this_arg, long contents, long destination, long reply_path);
14356 // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
14357 public static native long OnionMessenger_as_OnionMessageHandler(long this_arg);
14358 // void OffersMessageHandler_free(struct LDKOffersMessageHandler this_ptr);
14359 public static native void OffersMessageHandler_free(long this_ptr);
14360 // void OffersMessage_free(struct LDKOffersMessage this_ptr);
14361 public static native void OffersMessage_free(long this_ptr);
14362 // uint64_t OffersMessage_clone_ptr(LDKOffersMessage *NONNULL_PTR arg);
14363 public static native long OffersMessage_clone_ptr(long arg);
14364 // struct LDKOffersMessage OffersMessage_clone(const struct LDKOffersMessage *NONNULL_PTR orig);
14365 public static native long OffersMessage_clone(long orig);
14366 // struct LDKOffersMessage OffersMessage_invoice_request(struct LDKInvoiceRequest a);
14367 public static native long OffersMessage_invoice_request(long a);
14368 // struct LDKOffersMessage OffersMessage_invoice(struct LDKBolt12Invoice a);
14369 public static native long OffersMessage_invoice(long a);
14370 // struct LDKOffersMessage OffersMessage_invoice_error(struct LDKInvoiceError a);
14371 public static native long OffersMessage_invoice_error(long a);
14372 // MUST_USE_RES bool OffersMessage_is_known_type(uint64_t tlv_type);
14373 public static native boolean OffersMessage_is_known_type(long tlv_type);
14374 // struct LDKOnionMessageContents OffersMessage_as_OnionMessageContents(const struct LDKOffersMessage *NONNULL_PTR this_arg);
14375 public static native long OffersMessage_as_OnionMessageContents(long this_arg);
14376 // struct LDKCVec_u8Z OffersMessage_write(const struct LDKOffersMessage *NONNULL_PTR obj);
14377 public static native byte[] OffersMessage_write(long obj);
14378 // struct LDKCResult_OffersMessageDecodeErrorZ OffersMessage_read(struct LDKu8slice ser, uint64_t arg_a, const struct LDKLogger *NONNULL_PTR arg_b);
14379 public static native long OffersMessage_read(byte[] ser, long arg_a, long arg_b);
14380 // void Packet_free(struct LDKPacket this_obj);
14381 public static native void Packet_free(long this_obj);
14382 // uint8_t Packet_get_version(const struct LDKPacket *NONNULL_PTR this_ptr);
14383 public static native byte Packet_get_version(long this_ptr);
14384 // void Packet_set_version(struct LDKPacket *NONNULL_PTR this_ptr, uint8_t val);
14385 public static native void Packet_set_version(long this_ptr, byte val);
14386 // struct LDKPublicKey Packet_get_public_key(const struct LDKPacket *NONNULL_PTR this_ptr);
14387 public static native byte[] Packet_get_public_key(long this_ptr);
14388 // void Packet_set_public_key(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val);
14389 public static native void Packet_set_public_key(long this_ptr, byte[] val);
14390 // struct LDKCVec_u8Z Packet_get_hop_data(const struct LDKPacket *NONNULL_PTR this_ptr);
14391 public static native byte[] Packet_get_hop_data(long this_ptr);
14392 // void Packet_set_hop_data(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
14393 public static native void Packet_set_hop_data(long this_ptr, byte[] val);
14394 // const uint8_t (*Packet_get_hmac(const struct LDKPacket *NONNULL_PTR this_ptr))[32];
14395 public static native byte[] Packet_get_hmac(long this_ptr);
14396 // void Packet_set_hmac(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
14397 public static native void Packet_set_hmac(long this_ptr, byte[] val);
14398 // MUST_USE_RES struct LDKPacket Packet_new(uint8_t version_arg, struct LDKPublicKey public_key_arg, struct LDKCVec_u8Z hop_data_arg, struct LDKThirtyTwoBytes hmac_arg);
14399 public static native long Packet_new(byte version_arg, byte[] public_key_arg, byte[] hop_data_arg, byte[] hmac_arg);
14400 // uint64_t Packet_clone_ptr(LDKPacket *NONNULL_PTR arg);
14401 public static native long Packet_clone_ptr(long arg);
14402 // struct LDKPacket Packet_clone(const struct LDKPacket *NONNULL_PTR orig);
14403 public static native long Packet_clone(long orig);
14404 // uint64_t Packet_hash(const struct LDKPacket *NONNULL_PTR o);
14405 public static native long Packet_hash(long o);
14406 // bool Packet_eq(const struct LDKPacket *NONNULL_PTR a, const struct LDKPacket *NONNULL_PTR b);
14407 public static native boolean Packet_eq(long a, long b);
14408 // struct LDKCVec_u8Z Packet_write(const struct LDKPacket *NONNULL_PTR obj);
14409 public static native byte[] Packet_write(long obj);
14410 // void ParsedOnionMessageContents_free(struct LDKParsedOnionMessageContents this_ptr);
14411 public static native void ParsedOnionMessageContents_free(long this_ptr);
14412 // uint64_t ParsedOnionMessageContents_clone_ptr(LDKParsedOnionMessageContents *NONNULL_PTR arg);
14413 public static native long ParsedOnionMessageContents_clone_ptr(long arg);
14414 // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_clone(const struct LDKParsedOnionMessageContents *NONNULL_PTR orig);
14415 public static native long ParsedOnionMessageContents_clone(long orig);
14416 // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_offers(struct LDKOffersMessage a);
14417 public static native long ParsedOnionMessageContents_offers(long a);
14418 // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_custom(struct LDKOnionMessageContents a);
14419 public static native long ParsedOnionMessageContents_custom(long a);
14420 // struct LDKOnionMessageContents ParsedOnionMessageContents_as_OnionMessageContents(const struct LDKParsedOnionMessageContents *NONNULL_PTR this_arg);
14421 public static native long ParsedOnionMessageContents_as_OnionMessageContents(long this_arg);
14422 // struct LDKCVec_u8Z ParsedOnionMessageContents_write(const struct LDKParsedOnionMessageContents *NONNULL_PTR obj);
14423 public static native byte[] ParsedOnionMessageContents_write(long obj);
14424 // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg);
14425 public static native long OnionMessageContents_clone_ptr(long arg);
14426 // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig);
14427 public static native long OnionMessageContents_clone(long orig);
14428 // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr);
14429 public static native void OnionMessageContents_free(long this_ptr);
14430 // void NextMessageHop_free(struct LDKNextMessageHop this_ptr);
14431 public static native void NextMessageHop_free(long this_ptr);
14432 // uint64_t NextMessageHop_clone_ptr(LDKNextMessageHop *NONNULL_PTR arg);
14433 public static native long NextMessageHop_clone_ptr(long arg);
14434 // struct LDKNextMessageHop NextMessageHop_clone(const struct LDKNextMessageHop *NONNULL_PTR orig);
14435 public static native long NextMessageHop_clone(long orig);
14436 // struct LDKNextMessageHop NextMessageHop_node_id(struct LDKPublicKey a);
14437 public static native long NextMessageHop_node_id(byte[] a);
14438 // struct LDKNextMessageHop NextMessageHop_short_channel_id(uint64_t a);
14439 public static native long NextMessageHop_short_channel_id(long a);
14440 // uint64_t NextMessageHop_hash(const struct LDKNextMessageHop *NONNULL_PTR o);
14441 public static native long NextMessageHop_hash(long o);
14442 // bool NextMessageHop_eq(const struct LDKNextMessageHop *NONNULL_PTR a, const struct LDKNextMessageHop *NONNULL_PTR b);
14443 public static native boolean NextMessageHop_eq(long a, long b);
14444 // void BlindedPath_free(struct LDKBlindedPath this_obj);
14445 public static native void BlindedPath_free(long this_obj);
14446 // struct LDKIntroductionNode BlindedPath_get_introduction_node(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
14447 public static native long BlindedPath_get_introduction_node(long this_ptr);
14448 // void BlindedPath_set_introduction_node(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKIntroductionNode val);
14449 public static native void BlindedPath_set_introduction_node(long this_ptr, long val);
14450 // struct LDKPublicKey BlindedPath_get_blinding_point(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
14451 public static native byte[] BlindedPath_get_blinding_point(long this_ptr);
14452 // void BlindedPath_set_blinding_point(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val);
14453 public static native void BlindedPath_set_blinding_point(long this_ptr, byte[] val);
14454 // struct LDKCVec_BlindedHopZ BlindedPath_get_blinded_hops(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
14455 public static native long[] BlindedPath_get_blinded_hops(long this_ptr);
14456 // void BlindedPath_set_blinded_hops(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
14457 public static native void BlindedPath_set_blinded_hops(long this_ptr, long[] val);
14458 // MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKIntroductionNode introduction_node_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg);
14459 public static native long BlindedPath_new(long introduction_node_arg, byte[] blinding_point_arg, long[] blinded_hops_arg);
14460 // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg);
14461 public static native long BlindedPath_clone_ptr(long arg);
14462 // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig);
14463 public static native long BlindedPath_clone(long orig);
14464 // uint64_t BlindedPath_hash(const struct LDKBlindedPath *NONNULL_PTR o);
14465 public static native long BlindedPath_hash(long o);
14466 // bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDKBlindedPath *NONNULL_PTR b);
14467 public static native boolean BlindedPath_eq(long a, long b);
14468 // void IntroductionNode_free(struct LDKIntroductionNode this_ptr);
14469 public static native void IntroductionNode_free(long this_ptr);
14470 // uint64_t IntroductionNode_clone_ptr(LDKIntroductionNode *NONNULL_PTR arg);
14471 public static native long IntroductionNode_clone_ptr(long arg);
14472 // struct LDKIntroductionNode IntroductionNode_clone(const struct LDKIntroductionNode *NONNULL_PTR orig);
14473 public static native long IntroductionNode_clone(long orig);
14474 // struct LDKIntroductionNode IntroductionNode_node_id(struct LDKPublicKey a);
14475 public static native long IntroductionNode_node_id(byte[] a);
14476 // struct LDKIntroductionNode IntroductionNode_directed_short_channel_id(enum LDKDirection a, uint64_t b);
14477 public static native long IntroductionNode_directed_short_channel_id(Direction a, long b);
14478 // uint64_t IntroductionNode_hash(const struct LDKIntroductionNode *NONNULL_PTR o);
14479 public static native long IntroductionNode_hash(long o);
14480 // bool IntroductionNode_eq(const struct LDKIntroductionNode *NONNULL_PTR a, const struct LDKIntroductionNode *NONNULL_PTR b);
14481 public static native boolean IntroductionNode_eq(long a, long b);
14482 // enum LDKDirection Direction_clone(const enum LDKDirection *NONNULL_PTR orig);
14483 public static native Direction Direction_clone(long orig);
14484 // enum LDKDirection Direction_node_one(void);
14485 public static native Direction Direction_node_one();
14486 // enum LDKDirection Direction_node_two(void);
14487 public static native Direction Direction_node_two();
14488 // uint64_t Direction_hash(const enum LDKDirection *NONNULL_PTR o);
14489 public static native long Direction_hash(long o);
14490 // bool Direction_eq(const enum LDKDirection *NONNULL_PTR a, const enum LDKDirection *NONNULL_PTR b);
14491 public static native boolean Direction_eq(long a, long b);
14492 // void NodeIdLookUp_free(struct LDKNodeIdLookUp this_ptr);
14493 public static native void NodeIdLookUp_free(long this_ptr);
14494 // void EmptyNodeIdLookUp_free(struct LDKEmptyNodeIdLookUp this_obj);
14495 public static native void EmptyNodeIdLookUp_free(long this_obj);
14496 // MUST_USE_RES struct LDKEmptyNodeIdLookUp EmptyNodeIdLookUp_new(void);
14497 public static native long EmptyNodeIdLookUp_new();
14498 // struct LDKNodeIdLookUp EmptyNodeIdLookUp_as_NodeIdLookUp(const struct LDKEmptyNodeIdLookUp *NONNULL_PTR this_arg);
14499 public static native long EmptyNodeIdLookUp_as_NodeIdLookUp(long this_arg);
14500 // void BlindedHop_free(struct LDKBlindedHop this_obj);
14501 public static native void BlindedHop_free(long this_obj);
14502 // struct LDKPublicKey BlindedHop_get_blinded_node_id(const struct LDKBlindedHop *NONNULL_PTR this_ptr);
14503 public static native byte[] BlindedHop_get_blinded_node_id(long this_ptr);
14504 // void BlindedHop_set_blinded_node_id(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
14505 public static native void BlindedHop_set_blinded_node_id(long this_ptr, byte[] val);
14506 // struct LDKCVec_u8Z BlindedHop_get_encrypted_payload(const struct LDKBlindedHop *NONNULL_PTR this_ptr);
14507 public static native byte[] BlindedHop_get_encrypted_payload(long this_ptr);
14508 // void BlindedHop_set_encrypted_payload(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
14509 public static native void BlindedHop_set_encrypted_payload(long this_ptr, byte[] val);
14510 // MUST_USE_RES struct LDKBlindedHop BlindedHop_new(struct LDKPublicKey blinded_node_id_arg, struct LDKCVec_u8Z encrypted_payload_arg);
14511 public static native long BlindedHop_new(byte[] blinded_node_id_arg, byte[] encrypted_payload_arg);
14512 // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg);
14513 public static native long BlindedHop_clone_ptr(long arg);
14514 // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig);
14515 public static native long BlindedHop_clone(long orig);
14516 // uint64_t BlindedHop_hash(const struct LDKBlindedHop *NONNULL_PTR o);
14517 public static native long BlindedHop_hash(long o);
14518 // bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBlindedHop *NONNULL_PTR b);
14519 public static native boolean BlindedHop_eq(long a, long b);
14520 // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_one_hop_for_message(struct LDKPublicKey recipient_node_id, struct LDKEntropySource entropy_source);
14521 public static native long BlindedPath_one_hop_for_message(byte[] recipient_node_id, long entropy_source);
14522 // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, struct LDKEntropySource entropy_source);
14523 public static native long BlindedPath_new_for_message(byte[][] node_pks, long entropy_source);
14524 // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, uint16_t min_final_cltv_expiry_delta, struct LDKEntropySource entropy_source);
14525 public static native long BlindedPath_one_hop_for_payment(byte[] payee_node_id, long payee_tlvs, short min_final_cltv_expiry_delta, long entropy_source);
14526 // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_new_for_payment(struct LDKCVec_ForwardNodeZ intermediate_nodes, struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, uint64_t htlc_maximum_msat, uint16_t min_final_cltv_expiry_delta, struct LDKEntropySource entropy_source);
14527 public static native long BlindedPath_new_for_payment(long[] intermediate_nodes, byte[] payee_node_id, long payee_tlvs, long htlc_maximum_msat, short min_final_cltv_expiry_delta, long entropy_source);
14528 // MUST_USE_RES struct LDKNodeId BlindedPath_public_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_arg, const struct LDKReadOnlyNetworkGraph *NONNULL_PTR network_graph);
14529 public static native long BlindedPath_public_introduction_node_id(long this_arg, long network_graph);
14530 // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj);
14531 public static native byte[] BlindedPath_write(long obj);
14532 // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser);
14533 public static native long BlindedPath_read(byte[] ser);
14534 // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
14535 public static native byte[] BlindedHop_write(long obj);
14536 // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
14537 public static native long BlindedHop_read(byte[] ser);
14538 // void ForwardNode_free(struct LDKForwardNode this_obj);
14539 public static native void ForwardNode_free(long this_obj);
14540 // struct LDKForwardTlvs ForwardNode_get_tlvs(const struct LDKForwardNode *NONNULL_PTR this_ptr);
14541 public static native long ForwardNode_get_tlvs(long this_ptr);
14542 // void ForwardNode_set_tlvs(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKForwardTlvs val);
14543 public static native void ForwardNode_set_tlvs(long this_ptr, long val);
14544 // struct LDKPublicKey ForwardNode_get_node_id(const struct LDKForwardNode *NONNULL_PTR this_ptr);
14545 public static native byte[] ForwardNode_get_node_id(long this_ptr);
14546 // void ForwardNode_set_node_id(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKPublicKey val);
14547 public static native void ForwardNode_set_node_id(long this_ptr, byte[] val);
14548 // uint64_t ForwardNode_get_htlc_maximum_msat(const struct LDKForwardNode *NONNULL_PTR this_ptr);
14549 public static native long ForwardNode_get_htlc_maximum_msat(long this_ptr);
14550 // void ForwardNode_set_htlc_maximum_msat(struct LDKForwardNode *NONNULL_PTR this_ptr, uint64_t val);
14551 public static native void ForwardNode_set_htlc_maximum_msat(long this_ptr, long val);
14552 // MUST_USE_RES struct LDKForwardNode ForwardNode_new(struct LDKForwardTlvs tlvs_arg, struct LDKPublicKey node_id_arg, uint64_t htlc_maximum_msat_arg);
14553 public static native long ForwardNode_new(long tlvs_arg, byte[] node_id_arg, long htlc_maximum_msat_arg);
14554 // uint64_t ForwardNode_clone_ptr(LDKForwardNode *NONNULL_PTR arg);
14555 public static native long ForwardNode_clone_ptr(long arg);
14556 // struct LDKForwardNode ForwardNode_clone(const struct LDKForwardNode *NONNULL_PTR orig);
14557 public static native long ForwardNode_clone(long orig);
14558 // void ForwardTlvs_free(struct LDKForwardTlvs this_obj);
14559 public static native void ForwardTlvs_free(long this_obj);
14560 // uint64_t ForwardTlvs_get_short_channel_id(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
14561 public static native long ForwardTlvs_get_short_channel_id(long this_ptr);
14562 // void ForwardTlvs_set_short_channel_id(struct LDKForwardTlvs *NONNULL_PTR this_ptr, uint64_t val);
14563 public static native void ForwardTlvs_set_short_channel_id(long this_ptr, long val);
14564 // struct LDKPaymentRelay ForwardTlvs_get_payment_relay(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
14565 public static native long ForwardTlvs_get_payment_relay(long this_ptr);
14566 // void ForwardTlvs_set_payment_relay(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentRelay val);
14567 public static native void ForwardTlvs_set_payment_relay(long this_ptr, long val);
14568 // struct LDKPaymentConstraints ForwardTlvs_get_payment_constraints(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
14569 public static native long ForwardTlvs_get_payment_constraints(long this_ptr);
14570 // void ForwardTlvs_set_payment_constraints(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val);
14571 public static native void ForwardTlvs_set_payment_constraints(long this_ptr, long val);
14572 // struct LDKBlindedHopFeatures ForwardTlvs_get_features(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
14573 public static native long ForwardTlvs_get_features(long this_ptr);
14574 // void ForwardTlvs_set_features(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
14575 public static native void ForwardTlvs_set_features(long this_ptr, long val);
14576 // MUST_USE_RES struct LDKForwardTlvs ForwardTlvs_new(uint64_t short_channel_id_arg, struct LDKPaymentRelay payment_relay_arg, struct LDKPaymentConstraints payment_constraints_arg, struct LDKBlindedHopFeatures features_arg);
14577 public static native long ForwardTlvs_new(long short_channel_id_arg, long payment_relay_arg, long payment_constraints_arg, long features_arg);
14578 // uint64_t ForwardTlvs_clone_ptr(LDKForwardTlvs *NONNULL_PTR arg);
14579 public static native long ForwardTlvs_clone_ptr(long arg);
14580 // struct LDKForwardTlvs ForwardTlvs_clone(const struct LDKForwardTlvs *NONNULL_PTR orig);
14581 public static native long ForwardTlvs_clone(long orig);
14582 // void ReceiveTlvs_free(struct LDKReceiveTlvs this_obj);
14583 public static native void ReceiveTlvs_free(long this_obj);
14584 // const uint8_t (*ReceiveTlvs_get_payment_secret(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr))[32];
14585 public static native byte[] ReceiveTlvs_get_payment_secret(long this_ptr);
14586 // void ReceiveTlvs_set_payment_secret(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
14587 public static native void ReceiveTlvs_set_payment_secret(long this_ptr, byte[] val);
14588 // struct LDKPaymentConstraints ReceiveTlvs_get_payment_constraints(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr);
14589 public static native long ReceiveTlvs_get_payment_constraints(long this_ptr);
14590 // void ReceiveTlvs_set_payment_constraints(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val);
14591 public static native void ReceiveTlvs_set_payment_constraints(long this_ptr, long val);
14592 // struct LDKPaymentContext ReceiveTlvs_get_payment_context(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr);
14593 public static native long ReceiveTlvs_get_payment_context(long this_ptr);
14594 // void ReceiveTlvs_set_payment_context(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentContext val);
14595 public static native void ReceiveTlvs_set_payment_context(long this_ptr, long val);
14596 // MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg, struct LDKPaymentContext payment_context_arg);
14597 public static native long ReceiveTlvs_new(byte[] payment_secret_arg, long payment_constraints_arg, long payment_context_arg);
14598 // uint64_t ReceiveTlvs_clone_ptr(LDKReceiveTlvs *NONNULL_PTR arg);
14599 public static native long ReceiveTlvs_clone_ptr(long arg);
14600 // struct LDKReceiveTlvs ReceiveTlvs_clone(const struct LDKReceiveTlvs *NONNULL_PTR orig);
14601 public static native long ReceiveTlvs_clone(long orig);
14602 // void PaymentRelay_free(struct LDKPaymentRelay this_obj);
14603 public static native void PaymentRelay_free(long this_obj);
14604 // uint16_t PaymentRelay_get_cltv_expiry_delta(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
14605 public static native short PaymentRelay_get_cltv_expiry_delta(long this_ptr);
14606 // void PaymentRelay_set_cltv_expiry_delta(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint16_t val);
14607 public static native void PaymentRelay_set_cltv_expiry_delta(long this_ptr, short val);
14608 // uint32_t PaymentRelay_get_fee_proportional_millionths(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
14609 public static native int PaymentRelay_get_fee_proportional_millionths(long this_ptr);
14610 // void PaymentRelay_set_fee_proportional_millionths(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val);
14611 public static native void PaymentRelay_set_fee_proportional_millionths(long this_ptr, int val);
14612 // uint32_t PaymentRelay_get_fee_base_msat(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
14613 public static native int PaymentRelay_get_fee_base_msat(long this_ptr);
14614 // void PaymentRelay_set_fee_base_msat(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val);
14615 public static native void PaymentRelay_set_fee_base_msat(long this_ptr, int val);
14616 // MUST_USE_RES struct LDKPaymentRelay PaymentRelay_new(uint16_t cltv_expiry_delta_arg, uint32_t fee_proportional_millionths_arg, uint32_t fee_base_msat_arg);
14617 public static native long PaymentRelay_new(short cltv_expiry_delta_arg, int fee_proportional_millionths_arg, int fee_base_msat_arg);
14618 // uint64_t PaymentRelay_clone_ptr(LDKPaymentRelay *NONNULL_PTR arg);
14619 public static native long PaymentRelay_clone_ptr(long arg);
14620 // struct LDKPaymentRelay PaymentRelay_clone(const struct LDKPaymentRelay *NONNULL_PTR orig);
14621 public static native long PaymentRelay_clone(long orig);
14622 // void PaymentConstraints_free(struct LDKPaymentConstraints this_obj);
14623 public static native void PaymentConstraints_free(long this_obj);
14624 // uint32_t PaymentConstraints_get_max_cltv_expiry(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr);
14625 public static native int PaymentConstraints_get_max_cltv_expiry(long this_ptr);
14626 // void PaymentConstraints_set_max_cltv_expiry(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint32_t val);
14627 public static native void PaymentConstraints_set_max_cltv_expiry(long this_ptr, int val);
14628 // uint64_t PaymentConstraints_get_htlc_minimum_msat(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr);
14629 public static native long PaymentConstraints_get_htlc_minimum_msat(long this_ptr);
14630 // void PaymentConstraints_set_htlc_minimum_msat(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint64_t val);
14631 public static native void PaymentConstraints_set_htlc_minimum_msat(long this_ptr, long val);
14632 // MUST_USE_RES struct LDKPaymentConstraints PaymentConstraints_new(uint32_t max_cltv_expiry_arg, uint64_t htlc_minimum_msat_arg);
14633 public static native long PaymentConstraints_new(int max_cltv_expiry_arg, long htlc_minimum_msat_arg);
14634 // uint64_t PaymentConstraints_clone_ptr(LDKPaymentConstraints *NONNULL_PTR arg);
14635 public static native long PaymentConstraints_clone_ptr(long arg);
14636 // struct LDKPaymentConstraints PaymentConstraints_clone(const struct LDKPaymentConstraints *NONNULL_PTR orig);
14637 public static native long PaymentConstraints_clone(long orig);
14638 // void PaymentContext_free(struct LDKPaymentContext this_ptr);
14639 public static native void PaymentContext_free(long this_ptr);
14640 // uint64_t PaymentContext_clone_ptr(LDKPaymentContext *NONNULL_PTR arg);
14641 public static native long PaymentContext_clone_ptr(long arg);
14642 // struct LDKPaymentContext PaymentContext_clone(const struct LDKPaymentContext *NONNULL_PTR orig);
14643 public static native long PaymentContext_clone(long orig);
14644 // struct LDKPaymentContext PaymentContext_unknown(struct LDKUnknownPaymentContext a);
14645 public static native long PaymentContext_unknown(long a);
14646 // struct LDKPaymentContext PaymentContext_bolt12_offer(struct LDKBolt12OfferContext a);
14647 public static native long PaymentContext_bolt12_offer(long a);
14648 // struct LDKPaymentContext PaymentContext_bolt12_refund(struct LDKBolt12RefundContext a);
14649 public static native long PaymentContext_bolt12_refund(long a);
14650 // bool PaymentContext_eq(const struct LDKPaymentContext *NONNULL_PTR a, const struct LDKPaymentContext *NONNULL_PTR b);
14651 public static native boolean PaymentContext_eq(long a, long b);
14652 // void UnknownPaymentContext_free(struct LDKUnknownPaymentContext this_obj);
14653 public static native void UnknownPaymentContext_free(long this_obj);
14654 // uint64_t UnknownPaymentContext_clone_ptr(LDKUnknownPaymentContext *NONNULL_PTR arg);
14655 public static native long UnknownPaymentContext_clone_ptr(long arg);
14656 // struct LDKUnknownPaymentContext UnknownPaymentContext_clone(const struct LDKUnknownPaymentContext *NONNULL_PTR orig);
14657 public static native long UnknownPaymentContext_clone(long orig);
14658 // bool UnknownPaymentContext_eq(const struct LDKUnknownPaymentContext *NONNULL_PTR a, const struct LDKUnknownPaymentContext *NONNULL_PTR b);
14659 public static native boolean UnknownPaymentContext_eq(long a, long b);
14660 // void Bolt12OfferContext_free(struct LDKBolt12OfferContext this_obj);
14661 public static native void Bolt12OfferContext_free(long this_obj);
14662 // struct LDKOfferId Bolt12OfferContext_get_offer_id(const struct LDKBolt12OfferContext *NONNULL_PTR this_ptr);
14663 public static native long Bolt12OfferContext_get_offer_id(long this_ptr);
14664 // void Bolt12OfferContext_set_offer_id(struct LDKBolt12OfferContext *NONNULL_PTR this_ptr, struct LDKOfferId val);
14665 public static native void Bolt12OfferContext_set_offer_id(long this_ptr, long val);
14666 // struct LDKInvoiceRequestFields Bolt12OfferContext_get_invoice_request(const struct LDKBolt12OfferContext *NONNULL_PTR this_ptr);
14667 public static native long Bolt12OfferContext_get_invoice_request(long this_ptr);
14668 // void Bolt12OfferContext_set_invoice_request(struct LDKBolt12OfferContext *NONNULL_PTR this_ptr, struct LDKInvoiceRequestFields val);
14669 public static native void Bolt12OfferContext_set_invoice_request(long this_ptr, long val);
14670 // MUST_USE_RES struct LDKBolt12OfferContext Bolt12OfferContext_new(struct LDKOfferId offer_id_arg, struct LDKInvoiceRequestFields invoice_request_arg);
14671 public static native long Bolt12OfferContext_new(long offer_id_arg, long invoice_request_arg);
14672 // uint64_t Bolt12OfferContext_clone_ptr(LDKBolt12OfferContext *NONNULL_PTR arg);
14673 public static native long Bolt12OfferContext_clone_ptr(long arg);
14674 // struct LDKBolt12OfferContext Bolt12OfferContext_clone(const struct LDKBolt12OfferContext *NONNULL_PTR orig);
14675 public static native long Bolt12OfferContext_clone(long orig);
14676 // bool Bolt12OfferContext_eq(const struct LDKBolt12OfferContext *NONNULL_PTR a, const struct LDKBolt12OfferContext *NONNULL_PTR b);
14677 public static native boolean Bolt12OfferContext_eq(long a, long b);
14678 // void Bolt12RefundContext_free(struct LDKBolt12RefundContext this_obj);
14679 public static native void Bolt12RefundContext_free(long this_obj);
14680 // MUST_USE_RES struct LDKBolt12RefundContext Bolt12RefundContext_new(void);
14681 public static native long Bolt12RefundContext_new();
14682 // uint64_t Bolt12RefundContext_clone_ptr(LDKBolt12RefundContext *NONNULL_PTR arg);
14683 public static native long Bolt12RefundContext_clone_ptr(long arg);
14684 // struct LDKBolt12RefundContext Bolt12RefundContext_clone(const struct LDKBolt12RefundContext *NONNULL_PTR orig);
14685 public static native long Bolt12RefundContext_clone(long orig);
14686 // bool Bolt12RefundContext_eq(const struct LDKBolt12RefundContext *NONNULL_PTR a, const struct LDKBolt12RefundContext *NONNULL_PTR b);
14687 public static native boolean Bolt12RefundContext_eq(long a, long b);
14688 // struct LDKCVec_u8Z ForwardTlvs_write(const struct LDKForwardTlvs *NONNULL_PTR obj);
14689 public static native byte[] ForwardTlvs_write(long obj);
14690 // struct LDKCVec_u8Z ReceiveTlvs_write(const struct LDKReceiveTlvs *NONNULL_PTR obj);
14691 public static native byte[] ReceiveTlvs_write(long obj);
14692 // struct LDKCVec_u8Z PaymentRelay_write(const struct LDKPaymentRelay *NONNULL_PTR obj);
14693 public static native byte[] PaymentRelay_write(long obj);
14694 // struct LDKCResult_PaymentRelayDecodeErrorZ PaymentRelay_read(struct LDKu8slice ser);
14695 public static native long PaymentRelay_read(byte[] ser);
14696 // struct LDKCVec_u8Z PaymentConstraints_write(const struct LDKPaymentConstraints *NONNULL_PTR obj);
14697 public static native byte[] PaymentConstraints_write(long obj);
14698 // struct LDKCResult_PaymentConstraintsDecodeErrorZ PaymentConstraints_read(struct LDKu8slice ser);
14699 public static native long PaymentConstraints_read(byte[] ser);
14700 // struct LDKCVec_u8Z PaymentContext_write(const struct LDKPaymentContext *NONNULL_PTR obj);
14701 public static native byte[] PaymentContext_write(long obj);
14702 // struct LDKCResult_PaymentContextDecodeErrorZ PaymentContext_read(struct LDKu8slice ser);
14703 public static native long PaymentContext_read(byte[] ser);
14704 // struct LDKCVec_u8Z UnknownPaymentContext_write(const struct LDKUnknownPaymentContext *NONNULL_PTR obj);
14705 public static native byte[] UnknownPaymentContext_write(long obj);
14706 // struct LDKCResult_UnknownPaymentContextDecodeErrorZ UnknownPaymentContext_read(struct LDKu8slice ser);
14707 public static native long UnknownPaymentContext_read(byte[] ser);
14708 // struct LDKCVec_u8Z Bolt12OfferContext_write(const struct LDKBolt12OfferContext *NONNULL_PTR obj);
14709 public static native byte[] Bolt12OfferContext_write(long obj);
14710 // struct LDKCResult_Bolt12OfferContextDecodeErrorZ Bolt12OfferContext_read(struct LDKu8slice ser);
14711 public static native long Bolt12OfferContext_read(byte[] ser);
14712 // struct LDKCVec_u8Z Bolt12RefundContext_write(const struct LDKBolt12RefundContext *NONNULL_PTR obj);
14713 public static native byte[] Bolt12RefundContext_write(long obj);
14714 // struct LDKCResult_Bolt12RefundContextDecodeErrorZ Bolt12RefundContext_read(struct LDKu8slice ser);
14715 public static native long Bolt12RefundContext_read(byte[] ser);
14716 // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
14717 public static native void PaymentPurpose_free(long this_ptr);
14718 // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
14719 public static native long PaymentPurpose_clone_ptr(long arg);
14720 // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
14721 public static native long PaymentPurpose_clone(long orig);
14722 // struct LDKPaymentPurpose PaymentPurpose_bolt11_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret);
14723 public static native long PaymentPurpose_bolt11_invoice_payment(long payment_preimage, byte[] payment_secret);
14724 // struct LDKPaymentPurpose PaymentPurpose_bolt12_offer_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret, struct LDKBolt12OfferContext payment_context);
14725 public static native long PaymentPurpose_bolt12_offer_payment(long payment_preimage, byte[] payment_secret, long payment_context);
14726 // struct LDKPaymentPurpose PaymentPurpose_bolt12_refund_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret, struct LDKBolt12RefundContext payment_context);
14727 public static native long PaymentPurpose_bolt12_refund_payment(long payment_preimage, byte[] payment_secret, long payment_context);
14728 // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
14729 public static native long PaymentPurpose_spontaneous_payment(byte[] a);
14730 // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
14731 public static native boolean PaymentPurpose_eq(long a, long b);
14732 // MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ PaymentPurpose_preimage(const struct LDKPaymentPurpose *NONNULL_PTR this_arg);
14733 public static native long PaymentPurpose_preimage(long this_arg);
14734 // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
14735 public static native byte[] PaymentPurpose_write(long obj);
14736 // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
14737 public static native long PaymentPurpose_read(byte[] ser);
14738 // void ClaimedHTLC_free(struct LDKClaimedHTLC this_obj);
14739 public static native void ClaimedHTLC_free(long this_obj);
14740 // struct LDKChannelId ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
14741 public static native long ClaimedHTLC_get_channel_id(long this_ptr);
14742 // void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val);
14743 public static native void ClaimedHTLC_set_channel_id(long this_ptr, long val);
14744 // struct LDKU128 ClaimedHTLC_get_user_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
14745 public static native byte[] ClaimedHTLC_get_user_channel_id(long this_ptr);
14746 // void ClaimedHTLC_set_user_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKU128 val);
14747 public static native void ClaimedHTLC_set_user_channel_id(long this_ptr, byte[] val);
14748 // uint32_t ClaimedHTLC_get_cltv_expiry(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
14749 public static native int ClaimedHTLC_get_cltv_expiry(long this_ptr);
14750 // void ClaimedHTLC_set_cltv_expiry(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint32_t val);
14751 public static native void ClaimedHTLC_set_cltv_expiry(long this_ptr, int val);
14752 // uint64_t ClaimedHTLC_get_value_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
14753 public static native long ClaimedHTLC_get_value_msat(long this_ptr);
14754 // void ClaimedHTLC_set_value_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val);
14755 public static native void ClaimedHTLC_set_value_msat(long this_ptr, long val);
14756 // uint64_t ClaimedHTLC_get_counterparty_skimmed_fee_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
14757 public static native long ClaimedHTLC_get_counterparty_skimmed_fee_msat(long this_ptr);
14758 // void ClaimedHTLC_set_counterparty_skimmed_fee_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val);
14759 public static native void ClaimedHTLC_set_counterparty_skimmed_fee_msat(long this_ptr, long val);
14760 // MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKChannelId channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg, uint64_t counterparty_skimmed_fee_msat_arg);
14761 public static native long ClaimedHTLC_new(long channel_id_arg, byte[] user_channel_id_arg, int cltv_expiry_arg, long value_msat_arg, long counterparty_skimmed_fee_msat_arg);
14762 // uint64_t ClaimedHTLC_clone_ptr(LDKClaimedHTLC *NONNULL_PTR arg);
14763 public static native long ClaimedHTLC_clone_ptr(long arg);
14764 // struct LDKClaimedHTLC ClaimedHTLC_clone(const struct LDKClaimedHTLC *NONNULL_PTR orig);
14765 public static native long ClaimedHTLC_clone(long orig);
14766 // bool ClaimedHTLC_eq(const struct LDKClaimedHTLC *NONNULL_PTR a, const struct LDKClaimedHTLC *NONNULL_PTR b);
14767 public static native boolean ClaimedHTLC_eq(long a, long b);
14768 // struct LDKCVec_u8Z ClaimedHTLC_write(const struct LDKClaimedHTLC *NONNULL_PTR obj);
14769 public static native byte[] ClaimedHTLC_write(long obj);
14770 // struct LDKCResult_ClaimedHTLCDecodeErrorZ ClaimedHTLC_read(struct LDKu8slice ser);
14771 public static native long ClaimedHTLC_read(byte[] ser);
14772 // void PathFailure_free(struct LDKPathFailure this_ptr);
14773 public static native void PathFailure_free(long this_ptr);
14774 // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
14775 public static native long PathFailure_clone_ptr(long arg);
14776 // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
14777 public static native long PathFailure_clone(long orig);
14778 // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
14779 public static native long PathFailure_initial_send(long err);
14780 // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
14781 public static native long PathFailure_on_path(long network_update);
14782 // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
14783 public static native boolean PathFailure_eq(long a, long b);
14784 // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
14785 public static native byte[] PathFailure_write(long obj);
14786 // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
14787 public static native long PathFailure_read(byte[] ser);
14788 // void ClosureReason_free(struct LDKClosureReason this_ptr);
14789 public static native void ClosureReason_free(long this_ptr);
14790 // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
14791 public static native long ClosureReason_clone_ptr(long arg);
14792 // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
14793 public static native long ClosureReason_clone(long orig);
14794 // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKUntrustedString peer_msg);
14795 public static native long ClosureReason_counterparty_force_closed(long peer_msg);
14796 // struct LDKClosureReason ClosureReason_holder_force_closed(void);
14797 public static native long ClosureReason_holder_force_closed();
14798 // struct LDKClosureReason ClosureReason_legacy_cooperative_closure(void);
14799 public static native long ClosureReason_legacy_cooperative_closure();
14800 // struct LDKClosureReason ClosureReason_counterparty_initiated_cooperative_closure(void);
14801 public static native long ClosureReason_counterparty_initiated_cooperative_closure();
14802 // struct LDKClosureReason ClosureReason_locally_initiated_cooperative_closure(void);
14803 public static native long ClosureReason_locally_initiated_cooperative_closure();
14804 // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
14805 public static native long ClosureReason_commitment_tx_confirmed();
14806 // struct LDKClosureReason ClosureReason_funding_timed_out(void);
14807 public static native long ClosureReason_funding_timed_out();
14808 // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
14809 public static native long ClosureReason_processing_error(String err);
14810 // struct LDKClosureReason ClosureReason_disconnected_peer(void);
14811 public static native long ClosureReason_disconnected_peer();
14812 // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
14813 public static native long ClosureReason_outdated_channel_manager();
14814 // struct LDKClosureReason ClosureReason_counterparty_coop_closed_unfunded_channel(void);
14815 public static native long ClosureReason_counterparty_coop_closed_unfunded_channel();
14816 // struct LDKClosureReason ClosureReason_funding_batch_closure(void);
14817 public static native long ClosureReason_funding_batch_closure();
14818 // struct LDKClosureReason ClosureReason_htlcs_timed_out(void);
14819 public static native long ClosureReason_htlcs_timed_out();
14820 // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
14821 public static native boolean ClosureReason_eq(long a, long b);
14822 // struct LDKStr ClosureReason_to_str(const struct LDKClosureReason *NONNULL_PTR o);
14823 public static native String ClosureReason_to_str(long o);
14824 // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
14825 public static native byte[] ClosureReason_write(long obj);
14826 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
14827 public static native long ClosureReason_read(byte[] ser);
14828 // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
14829 public static native void HTLCDestination_free(long this_ptr);
14830 // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
14831 public static native long HTLCDestination_clone_ptr(long arg);
14832 // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
14833 public static native long HTLCDestination_clone(long orig);
14834 // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKChannelId channel_id);
14835 public static native long HTLCDestination_next_hop_channel(byte[] node_id, long channel_id);
14836 // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
14837 public static native long HTLCDestination_unknown_next_hop(long requested_forward_scid);
14838 // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
14839 public static native long HTLCDestination_invalid_forward(long requested_forward_scid);
14840 // struct LDKHTLCDestination HTLCDestination_invalid_onion(void);
14841 public static native long HTLCDestination_invalid_onion();
14842 // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
14843 public static native long HTLCDestination_failed_payment(byte[] payment_hash);
14844 // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
14845 public static native boolean HTLCDestination_eq(long a, long b);
14846 // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
14847 public static native byte[] HTLCDestination_write(long obj);
14848 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
14849 public static native long HTLCDestination_read(byte[] ser);
14850 // enum LDKPaymentFailureReason PaymentFailureReason_clone(const enum LDKPaymentFailureReason *NONNULL_PTR orig);
14851 public static native PaymentFailureReason PaymentFailureReason_clone(long orig);
14852 // enum LDKPaymentFailureReason PaymentFailureReason_recipient_rejected(void);
14853 public static native PaymentFailureReason PaymentFailureReason_recipient_rejected();
14854 // enum LDKPaymentFailureReason PaymentFailureReason_user_abandoned(void);
14855 public static native PaymentFailureReason PaymentFailureReason_user_abandoned();
14856 // enum LDKPaymentFailureReason PaymentFailureReason_retries_exhausted(void);
14857 public static native PaymentFailureReason PaymentFailureReason_retries_exhausted();
14858 // enum LDKPaymentFailureReason PaymentFailureReason_payment_expired(void);
14859 public static native PaymentFailureReason PaymentFailureReason_payment_expired();
14860 // enum LDKPaymentFailureReason PaymentFailureReason_route_not_found(void);
14861 public static native PaymentFailureReason PaymentFailureReason_route_not_found();
14862 // enum LDKPaymentFailureReason PaymentFailureReason_unexpected_error(void);
14863 public static native PaymentFailureReason PaymentFailureReason_unexpected_error();
14864 // bool PaymentFailureReason_eq(const enum LDKPaymentFailureReason *NONNULL_PTR a, const enum LDKPaymentFailureReason *NONNULL_PTR b);
14865 public static native boolean PaymentFailureReason_eq(long a, long b);
14866 // struct LDKCVec_u8Z PaymentFailureReason_write(const enum LDKPaymentFailureReason *NONNULL_PTR obj);
14867 public static native byte[] PaymentFailureReason_write(long obj);
14868 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ PaymentFailureReason_read(struct LDKu8slice ser);
14869 public static native long PaymentFailureReason_read(byte[] ser);
14870 // void Event_free(struct LDKEvent this_ptr);
14871 public static native void Event_free(long this_ptr);
14872 // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
14873 public static native long Event_clone_ptr(long arg);
14874 // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
14875 public static native long Event_clone(long orig);
14876 // struct LDKEvent Event_funding_generation_ready(struct LDKChannelId temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, struct LDKU128 user_channel_id);
14877 public static native long Event_funding_generation_ready(long temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, byte[] user_channel_id);
14878 // 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 LDKChannelId via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline);
14879 public static native long Event_payment_claimable(byte[] receiver_node_id, byte[] payment_hash, long onion_fields, long amount_msat, long counterparty_skimmed_fee_msat, long purpose, long via_channel_id, long via_user_channel_id, long claim_deadline);
14880 // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKCVec_ClaimedHTLCZ htlcs, struct LDKCOption_u64Z sender_intended_total_msat);
14881 public static native long Event_payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose, long[] htlcs, long sender_intended_total_msat);
14882 // struct LDKEvent Event_connection_needed(struct LDKPublicKey node_id, struct LDKCVec_SocketAddressZ addresses);
14883 public static native long Event_connection_needed(byte[] node_id, long[] addresses);
14884 // struct LDKEvent Event_invoice_request_failed(struct LDKThirtyTwoBytes payment_id);
14885 public static native long Event_invoice_request_failed(byte[] payment_id);
14886 // struct LDKEvent Event_payment_sent(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
14887 public static native long Event_payment_sent(long payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
14888 // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_PaymentFailureReasonZ reason);
14889 public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash, long reason);
14890 // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKPath path);
14891 public static native long Event_payment_path_successful(byte[] payment_id, long payment_hash, long path);
14892 // struct LDKEvent Event_payment_path_failed(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
14893 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);
14894 // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
14895 public static native long Event_probe_successful(byte[] payment_id, byte[] payment_hash, long path);
14896 // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
14897 public static native long Event_probe_failed(byte[] payment_id, byte[] payment_hash, long path, long short_channel_id);
14898 // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
14899 public static native long Event_pending_htlcs_forwardable(long time_forwardable);
14900 // 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);
14901 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);
14902 // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKChannelId channel_id);
14903 public static native long Event_spendable_outputs(long[] outputs, long channel_id);
14904 // struct LDKEvent Event_payment_forwarded(struct LDKChannelId prev_channel_id, struct LDKChannelId next_channel_id, struct LDKCOption_U128Z prev_user_channel_id, struct LDKCOption_U128Z next_user_channel_id, struct LDKCOption_u64Z total_fee_earned_msat, struct LDKCOption_u64Z skimmed_fee_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat);
14905 public static native long Event_payment_forwarded(long prev_channel_id, long next_channel_id, long prev_user_channel_id, long next_user_channel_id, long total_fee_earned_msat, long skimmed_fee_msat, boolean claim_from_onchain_tx, long outbound_amount_forwarded_msat);
14906 // struct LDKEvent Event_channel_pending(struct LDKChannelId channel_id, struct LDKU128 user_channel_id, struct LDKChannelId former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo, struct LDKChannelTypeFeatures channel_type);
14907 public static native long Event_channel_pending(long channel_id, byte[] user_channel_id, long former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo, long channel_type);
14908 // struct LDKEvent Event_channel_ready(struct LDKChannelId channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
14909 public static native long Event_channel_ready(long channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type);
14910 // struct LDKEvent Event_channel_closed(struct LDKChannelId channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats, struct LDKOutPoint channel_funding_txo);
14911 public static native long Event_channel_closed(long channel_id, byte[] user_channel_id, long reason, byte[] counterparty_node_id, long channel_capacity_sats, long channel_funding_txo);
14912 // struct LDKEvent Event_discard_funding(struct LDKChannelId channel_id, struct LDKTransaction transaction);
14913 public static native long Event_discard_funding(long channel_id, byte[] transaction);
14914 // struct LDKEvent Event_open_channel_request(struct LDKChannelId temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type);
14915 public static native long Event_open_channel_request(long temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, long channel_type);
14916 // struct LDKEvent Event_htlchandling_failed(struct LDKChannelId prev_channel_id, struct LDKHTLCDestination failed_next_destination);
14917 public static native long Event_htlchandling_failed(long prev_channel_id, long failed_next_destination);
14918 // struct LDKEvent Event_bump_transaction(struct LDKBumpTransactionEvent a);
14919 public static native long Event_bump_transaction(long a);
14920 // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
14921 public static native boolean Event_eq(long a, long b);
14922 // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
14923 public static native byte[] Event_write(long obj);
14924 // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
14925 public static native long Event_read(byte[] ser);
14926 // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
14927 public static native void MessageSendEvent_free(long this_ptr);
14928 // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
14929 public static native long MessageSendEvent_clone_ptr(long arg);
14930 // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
14931 public static native long MessageSendEvent_clone(long orig);
14932 // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
14933 public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
14934 // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel_v2(struct LDKPublicKey node_id, struct LDKAcceptChannelV2 msg);
14935 public static native long MessageSendEvent_send_accept_channel_v2(byte[] node_id, long msg);
14936 // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
14937 public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
14938 // struct LDKMessageSendEvent MessageSendEvent_send_open_channel_v2(struct LDKPublicKey node_id, struct LDKOpenChannelV2 msg);
14939 public static native long MessageSendEvent_send_open_channel_v2(byte[] node_id, long msg);
14940 // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
14941 public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
14942 // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
14943 public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
14944 // struct LDKMessageSendEvent MessageSendEvent_send_stfu(struct LDKPublicKey node_id, struct LDKStfu msg);
14945 public static native long MessageSendEvent_send_stfu(byte[] node_id, long msg);
14946 // struct LDKMessageSendEvent MessageSendEvent_send_splice(struct LDKPublicKey node_id, struct LDKSplice msg);
14947 public static native long MessageSendEvent_send_splice(byte[] node_id, long msg);
14948 // struct LDKMessageSendEvent MessageSendEvent_send_splice_ack(struct LDKPublicKey node_id, struct LDKSpliceAck msg);
14949 public static native long MessageSendEvent_send_splice_ack(byte[] node_id, long msg);
14950 // struct LDKMessageSendEvent MessageSendEvent_send_splice_locked(struct LDKPublicKey node_id, struct LDKSpliceLocked msg);
14951 public static native long MessageSendEvent_send_splice_locked(byte[] node_id, long msg);
14952 // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_input(struct LDKPublicKey node_id, struct LDKTxAddInput msg);
14953 public static native long MessageSendEvent_send_tx_add_input(byte[] node_id, long msg);
14954 // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_output(struct LDKPublicKey node_id, struct LDKTxAddOutput msg);
14955 public static native long MessageSendEvent_send_tx_add_output(byte[] node_id, long msg);
14956 // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_input(struct LDKPublicKey node_id, struct LDKTxRemoveInput msg);
14957 public static native long MessageSendEvent_send_tx_remove_input(byte[] node_id, long msg);
14958 // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_output(struct LDKPublicKey node_id, struct LDKTxRemoveOutput msg);
14959 public static native long MessageSendEvent_send_tx_remove_output(byte[] node_id, long msg);
14960 // struct LDKMessageSendEvent MessageSendEvent_send_tx_complete(struct LDKPublicKey node_id, struct LDKTxComplete msg);
14961 public static native long MessageSendEvent_send_tx_complete(byte[] node_id, long msg);
14962 // struct LDKMessageSendEvent MessageSendEvent_send_tx_signatures(struct LDKPublicKey node_id, struct LDKTxSignatures msg);
14963 public static native long MessageSendEvent_send_tx_signatures(byte[] node_id, long msg);
14964 // struct LDKMessageSendEvent MessageSendEvent_send_tx_init_rbf(struct LDKPublicKey node_id, struct LDKTxInitRbf msg);
14965 public static native long MessageSendEvent_send_tx_init_rbf(byte[] node_id, long msg);
14966 // struct LDKMessageSendEvent MessageSendEvent_send_tx_ack_rbf(struct LDKPublicKey node_id, struct LDKTxAckRbf msg);
14967 public static native long MessageSendEvent_send_tx_ack_rbf(byte[] node_id, long msg);
14968 // struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAbort msg);
14969 public static native long MessageSendEvent_send_tx_abort(byte[] node_id, long msg);
14970 // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
14971 public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
14972 // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
14973 public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
14974 // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
14975 public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
14976 // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
14977 public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
14978 // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
14979 public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
14980 // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
14981 public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
14982 // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
14983 public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
14984 // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
14985 public static native long MessageSendEvent_send_channel_announcement(byte[] node_id, long msg, long update_msg);
14986 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
14987 public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
14988 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
14989 public static native long MessageSendEvent_broadcast_channel_update(long msg);
14990 // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
14991 public static native long MessageSendEvent_broadcast_node_announcement(long msg);
14992 // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
14993 public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
14994 // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
14995 public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
14996 // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
14997 public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
14998 // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
14999 public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
15000 // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
15001 public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
15002 // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
15003 public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
15004 // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
15005 public static native void MessageSendEventsProvider_free(long this_ptr);
15006 // void EventsProvider_free(struct LDKEventsProvider this_ptr);
15007 public static native void EventsProvider_free(long this_ptr);
15008 // void EventHandler_free(struct LDKEventHandler this_ptr);
15009 public static native void EventHandler_free(long this_ptr);
15010 // void AnchorDescriptor_free(struct LDKAnchorDescriptor this_obj);
15011 public static native void AnchorDescriptor_free(long this_obj);
15012 // struct LDKChannelDerivationParameters AnchorDescriptor_get_channel_derivation_parameters(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
15013 public static native long AnchorDescriptor_get_channel_derivation_parameters(long this_ptr);
15014 // void AnchorDescriptor_set_channel_derivation_parameters(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
15015 public static native void AnchorDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
15016 // struct LDKOutPoint AnchorDescriptor_get_outpoint(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
15017 public static native long AnchorDescriptor_get_outpoint(long this_ptr);
15018 // void AnchorDescriptor_set_outpoint(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
15019 public static native void AnchorDescriptor_set_outpoint(long this_ptr, long val);
15020 // MUST_USE_RES struct LDKAnchorDescriptor AnchorDescriptor_new(struct LDKChannelDerivationParameters channel_derivation_parameters_arg, struct LDKOutPoint outpoint_arg);
15021 public static native long AnchorDescriptor_new(long channel_derivation_parameters_arg, long outpoint_arg);
15022 // uint64_t AnchorDescriptor_clone_ptr(LDKAnchorDescriptor *NONNULL_PTR arg);
15023 public static native long AnchorDescriptor_clone_ptr(long arg);
15024 // struct LDKAnchorDescriptor AnchorDescriptor_clone(const struct LDKAnchorDescriptor *NONNULL_PTR orig);
15025 public static native long AnchorDescriptor_clone(long orig);
15026 // bool AnchorDescriptor_eq(const struct LDKAnchorDescriptor *NONNULL_PTR a, const struct LDKAnchorDescriptor *NONNULL_PTR b);
15027 public static native boolean AnchorDescriptor_eq(long a, long b);
15028 // MUST_USE_RES struct LDKTxOut AnchorDescriptor_previous_utxo(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
15029 public static native long AnchorDescriptor_previous_utxo(long this_arg);
15030 // MUST_USE_RES struct LDKTxIn AnchorDescriptor_unsigned_tx_input(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
15031 public static native long AnchorDescriptor_unsigned_tx_input(long this_arg);
15032 // MUST_USE_RES struct LDKCVec_u8Z AnchorDescriptor_witness_script(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
15033 public static native byte[] AnchorDescriptor_witness_script(long this_arg);
15034 // MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature);
15035 public static native byte[] AnchorDescriptor_tx_input_witness(long this_arg, byte[] signature);
15036 // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner AnchorDescriptor_derive_channel_signer(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
15037 public static native long AnchorDescriptor_derive_channel_signer(long this_arg, long signer_provider);
15038 // void BumpTransactionEvent_free(struct LDKBumpTransactionEvent this_ptr);
15039 public static native void BumpTransactionEvent_free(long this_ptr);
15040 // uint64_t BumpTransactionEvent_clone_ptr(LDKBumpTransactionEvent *NONNULL_PTR arg);
15041 public static native long BumpTransactionEvent_clone_ptr(long arg);
15042 // struct LDKBumpTransactionEvent BumpTransactionEvent_clone(const struct LDKBumpTransactionEvent *NONNULL_PTR orig);
15043 public static native long BumpTransactionEvent_clone(long orig);
15044 // struct LDKBumpTransactionEvent BumpTransactionEvent_channel_close(struct LDKChannelId channel_id, struct LDKPublicKey counterparty_node_id, 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);
15045 public static native long BumpTransactionEvent_channel_close(long channel_id, byte[] counterparty_node_id, 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);
15046 // struct LDKBumpTransactionEvent BumpTransactionEvent_htlcresolution(struct LDKChannelId channel_id, struct LDKPublicKey counterparty_node_id, struct LDKThirtyTwoBytes claim_id, uint32_t target_feerate_sat_per_1000_weight, struct LDKCVec_HTLCDescriptorZ htlc_descriptors, uint32_t tx_lock_time);
15047 public static native long BumpTransactionEvent_htlcresolution(long channel_id, byte[] counterparty_node_id, byte[] claim_id, int target_feerate_sat_per_1000_weight, long[] htlc_descriptors, int tx_lock_time);
15048 // bool BumpTransactionEvent_eq(const struct LDKBumpTransactionEvent *NONNULL_PTR a, const struct LDKBumpTransactionEvent *NONNULL_PTR b);
15049 public static native boolean BumpTransactionEvent_eq(long a, long b);
15050 // void Input_free(struct LDKInput this_obj);
15051 public static native void Input_free(long this_obj);
15052 // struct LDKOutPoint Input_get_outpoint(const struct LDKInput *NONNULL_PTR this_ptr);
15053 public static native long Input_get_outpoint(long this_ptr);
15054 // void Input_set_outpoint(struct LDKInput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
15055 public static native void Input_set_outpoint(long this_ptr, long val);
15056 // struct LDKTxOut Input_get_previous_utxo(const struct LDKInput *NONNULL_PTR this_ptr);
15057 public static native long Input_get_previous_utxo(long this_ptr);
15058 // void Input_set_previous_utxo(struct LDKInput *NONNULL_PTR this_ptr, struct LDKTxOut val);
15059 public static native void Input_set_previous_utxo(long this_ptr, long val);
15060 // uint64_t Input_get_satisfaction_weight(const struct LDKInput *NONNULL_PTR this_ptr);
15061 public static native long Input_get_satisfaction_weight(long this_ptr);
15062 // void Input_set_satisfaction_weight(struct LDKInput *NONNULL_PTR this_ptr, uint64_t val);
15063 public static native void Input_set_satisfaction_weight(long this_ptr, long val);
15064 // MUST_USE_RES struct LDKInput Input_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut previous_utxo_arg, uint64_t satisfaction_weight_arg);
15065 public static native long Input_new(long outpoint_arg, long previous_utxo_arg, long satisfaction_weight_arg);
15066 // uint64_t Input_clone_ptr(LDKInput *NONNULL_PTR arg);
15067 public static native long Input_clone_ptr(long arg);
15068 // struct LDKInput Input_clone(const struct LDKInput *NONNULL_PTR orig);
15069 public static native long Input_clone(long orig);
15070 // uint64_t Input_hash(const struct LDKInput *NONNULL_PTR o);
15071 public static native long Input_hash(long o);
15072 // bool Input_eq(const struct LDKInput *NONNULL_PTR a, const struct LDKInput *NONNULL_PTR b);
15073 public static native boolean Input_eq(long a, long b);
15074 // void Utxo_free(struct LDKUtxo this_obj);
15075 public static native void Utxo_free(long this_obj);
15076 // struct LDKOutPoint Utxo_get_outpoint(const struct LDKUtxo *NONNULL_PTR this_ptr);
15077 public static native long Utxo_get_outpoint(long this_ptr);
15078 // void Utxo_set_outpoint(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKOutPoint val);
15079 public static native void Utxo_set_outpoint(long this_ptr, long val);
15080 // struct LDKTxOut Utxo_get_output(const struct LDKUtxo *NONNULL_PTR this_ptr);
15081 public static native long Utxo_get_output(long this_ptr);
15082 // void Utxo_set_output(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKTxOut val);
15083 public static native void Utxo_set_output(long this_ptr, long val);
15084 // uint64_t Utxo_get_satisfaction_weight(const struct LDKUtxo *NONNULL_PTR this_ptr);
15085 public static native long Utxo_get_satisfaction_weight(long this_ptr);
15086 // void Utxo_set_satisfaction_weight(struct LDKUtxo *NONNULL_PTR this_ptr, uint64_t val);
15087 public static native void Utxo_set_satisfaction_weight(long this_ptr, long val);
15088 // MUST_USE_RES struct LDKUtxo Utxo_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, uint64_t satisfaction_weight_arg);
15089 public static native long Utxo_new(long outpoint_arg, long output_arg, long satisfaction_weight_arg);
15090 // uint64_t Utxo_clone_ptr(LDKUtxo *NONNULL_PTR arg);
15091 public static native long Utxo_clone_ptr(long arg);
15092 // struct LDKUtxo Utxo_clone(const struct LDKUtxo *NONNULL_PTR orig);
15093 public static native long Utxo_clone(long orig);
15094 // uint64_t Utxo_hash(const struct LDKUtxo *NONNULL_PTR o);
15095 public static native long Utxo_hash(long o);
15096 // bool Utxo_eq(const struct LDKUtxo *NONNULL_PTR a, const struct LDKUtxo *NONNULL_PTR b);
15097 public static native boolean Utxo_eq(long a, long b);
15098 // MUST_USE_RES struct LDKUtxo Utxo_new_p2pkh(struct LDKOutPoint outpoint, uint64_t value, const uint8_t (*pubkey_hash)[20]);
15099 public static native long Utxo_new_p2pkh(long outpoint, long value, byte[] pubkey_hash);
15100 // void CoinSelection_free(struct LDKCoinSelection this_obj);
15101 public static native void CoinSelection_free(long this_obj);
15102 // struct LDKCVec_UtxoZ CoinSelection_get_confirmed_utxos(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
15103 public static native long[] CoinSelection_get_confirmed_utxos(long this_ptr);
15104 // void CoinSelection_set_confirmed_utxos(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCVec_UtxoZ val);
15105 public static native void CoinSelection_set_confirmed_utxos(long this_ptr, long[] val);
15106 // struct LDKCOption_TxOutZ CoinSelection_get_change_output(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
15107 public static native long CoinSelection_get_change_output(long this_ptr);
15108 // void CoinSelection_set_change_output(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCOption_TxOutZ val);
15109 public static native void CoinSelection_set_change_output(long this_ptr, long val);
15110 // MUST_USE_RES struct LDKCoinSelection CoinSelection_new(struct LDKCVec_UtxoZ confirmed_utxos_arg, struct LDKCOption_TxOutZ change_output_arg);
15111 public static native long CoinSelection_new(long[] confirmed_utxos_arg, long change_output_arg);
15112 // uint64_t CoinSelection_clone_ptr(LDKCoinSelection *NONNULL_PTR arg);
15113 public static native long CoinSelection_clone_ptr(long arg);
15114 // struct LDKCoinSelection CoinSelection_clone(const struct LDKCoinSelection *NONNULL_PTR orig);
15115 public static native long CoinSelection_clone(long orig);
15116 // void CoinSelectionSource_free(struct LDKCoinSelectionSource this_ptr);
15117 public static native void CoinSelectionSource_free(long this_ptr);
15118 // void WalletSource_free(struct LDKWalletSource this_ptr);
15119 public static native void WalletSource_free(long this_ptr);
15120 // void Wallet_free(struct LDKWallet this_obj);
15121 public static native void Wallet_free(long this_obj);
15122 // MUST_USE_RES struct LDKWallet Wallet_new(struct LDKWalletSource source, struct LDKLogger logger);
15123 public static native long Wallet_new(long source, long logger);
15124 // struct LDKCoinSelectionSource Wallet_as_CoinSelectionSource(const struct LDKWallet *NONNULL_PTR this_arg);
15125 public static native long Wallet_as_CoinSelectionSource(long this_arg);
15126 // void BumpTransactionEventHandler_free(struct LDKBumpTransactionEventHandler this_obj);
15127 public static native void BumpTransactionEventHandler_free(long this_obj);
15128 // MUST_USE_RES struct LDKBumpTransactionEventHandler BumpTransactionEventHandler_new(struct LDKBroadcasterInterface broadcaster, struct LDKCoinSelectionSource utxo_source, struct LDKSignerProvider signer_provider, struct LDKLogger logger);
15129 public static native long BumpTransactionEventHandler_new(long broadcaster, long utxo_source, long signer_provider, long logger);
15130 // void BumpTransactionEventHandler_handle_event(const struct LDKBumpTransactionEventHandler *NONNULL_PTR this_arg, const struct LDKBumpTransactionEvent *NONNULL_PTR event);
15131 public static native void BumpTransactionEventHandler_handle_event(long this_arg, long event);
15132 // void FilesystemStore_free(struct LDKFilesystemStore this_obj);
15133 public static native void FilesystemStore_free(long this_obj);
15134 // MUST_USE_RES struct LDKFilesystemStore FilesystemStore_new(struct LDKStr data_dir);
15135 public static native long FilesystemStore_new(String data_dir);
15136 // MUST_USE_RES struct LDKStr FilesystemStore_get_data_dir(const struct LDKFilesystemStore *NONNULL_PTR this_arg);
15137 public static native String FilesystemStore_get_data_dir(long this_arg);
15138 // struct LDKKVStore FilesystemStore_as_KVStore(const struct LDKFilesystemStore *NONNULL_PTR this_arg);
15139 public static native long FilesystemStore_as_KVStore(long this_arg);
15140 // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
15141 public static native void BackgroundProcessor_free(long this_obj);
15142 // void GossipSync_free(struct LDKGossipSync this_ptr);
15143 public static native void GossipSync_free(long this_ptr);
15144 // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
15145 public static native long GossipSync_p2_p(long a);
15146 // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
15147 public static native long GossipSync_rapid(long a);
15148 // struct LDKGossipSync GossipSync_none(void);
15149 public static native long GossipSync_none();
15150 // 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);
15151 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);
15152 // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
15153 public static native long BackgroundProcessor_join(long this_arg);
15154 // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
15155 public static native long BackgroundProcessor_stop(long this_arg);
15156 // void Bolt11ParseError_free(struct LDKBolt11ParseError this_ptr);
15157 public static native void Bolt11ParseError_free(long this_ptr);
15158 // uint64_t Bolt11ParseError_clone_ptr(LDKBolt11ParseError *NONNULL_PTR arg);
15159 public static native long Bolt11ParseError_clone_ptr(long arg);
15160 // struct LDKBolt11ParseError Bolt11ParseError_clone(const struct LDKBolt11ParseError *NONNULL_PTR orig);
15161 public static native long Bolt11ParseError_clone(long orig);
15162 // struct LDKBolt11ParseError Bolt11ParseError_bech32_error(struct LDKBech32Error a);
15163 public static native long Bolt11ParseError_bech32_error(long a);
15164 // struct LDKBolt11ParseError Bolt11ParseError_parse_amount_error(struct LDKError a);
15165 public static native long Bolt11ParseError_parse_amount_error(int a);
15166 // struct LDKBolt11ParseError Bolt11ParseError_malformed_signature(enum LDKSecp256k1Error a);
15167 public static native long Bolt11ParseError_malformed_signature(Secp256k1Error a);
15168 // struct LDKBolt11ParseError Bolt11ParseError_bad_prefix(void);
15169 public static native long Bolt11ParseError_bad_prefix();
15170 // struct LDKBolt11ParseError Bolt11ParseError_unknown_currency(void);
15171 public static native long Bolt11ParseError_unknown_currency();
15172 // struct LDKBolt11ParseError Bolt11ParseError_unknown_si_prefix(void);
15173 public static native long Bolt11ParseError_unknown_si_prefix();
15174 // struct LDKBolt11ParseError Bolt11ParseError_malformed_hrp(void);
15175 public static native long Bolt11ParseError_malformed_hrp();
15176 // struct LDKBolt11ParseError Bolt11ParseError_too_short_data_part(void);
15177 public static native long Bolt11ParseError_too_short_data_part();
15178 // struct LDKBolt11ParseError Bolt11ParseError_unexpected_end_of_tagged_fields(void);
15179 public static native long Bolt11ParseError_unexpected_end_of_tagged_fields();
15180 // struct LDKBolt11ParseError Bolt11ParseError_description_decode_error(struct LDKError a);
15181 public static native long Bolt11ParseError_description_decode_error(int a);
15182 // struct LDKBolt11ParseError Bolt11ParseError_padding_error(void);
15183 public static native long Bolt11ParseError_padding_error();
15184 // struct LDKBolt11ParseError Bolt11ParseError_integer_overflow_error(void);
15185 public static native long Bolt11ParseError_integer_overflow_error();
15186 // struct LDKBolt11ParseError Bolt11ParseError_invalid_seg_wit_program_length(void);
15187 public static native long Bolt11ParseError_invalid_seg_wit_program_length();
15188 // struct LDKBolt11ParseError Bolt11ParseError_invalid_pub_key_hash_length(void);
15189 public static native long Bolt11ParseError_invalid_pub_key_hash_length();
15190 // struct LDKBolt11ParseError Bolt11ParseError_invalid_script_hash_length(void);
15191 public static native long Bolt11ParseError_invalid_script_hash_length();
15192 // struct LDKBolt11ParseError Bolt11ParseError_invalid_recovery_id(void);
15193 public static native long Bolt11ParseError_invalid_recovery_id();
15194 // struct LDKBolt11ParseError Bolt11ParseError_invalid_slice_length(struct LDKStr a);
15195 public static native long Bolt11ParseError_invalid_slice_length(String a);
15196 // struct LDKBolt11ParseError Bolt11ParseError_skip(void);
15197 public static native long Bolt11ParseError_skip();
15198 // bool Bolt11ParseError_eq(const struct LDKBolt11ParseError *NONNULL_PTR a, const struct LDKBolt11ParseError *NONNULL_PTR b);
15199 public static native boolean Bolt11ParseError_eq(long a, long b);
15200 // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
15201 public static native void ParseOrSemanticError_free(long this_ptr);
15202 // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
15203 public static native long ParseOrSemanticError_clone_ptr(long arg);
15204 // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
15205 public static native long ParseOrSemanticError_clone(long orig);
15206 // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKBolt11ParseError a);
15207 public static native long ParseOrSemanticError_parse_error(long a);
15208 // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKBolt11SemanticError a);
15209 public static native long ParseOrSemanticError_semantic_error(Bolt11SemanticError a);
15210 // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b);
15211 public static native boolean ParseOrSemanticError_eq(long a, long b);
15212 // void Bolt11Invoice_free(struct LDKBolt11Invoice this_obj);
15213 public static native void Bolt11Invoice_free(long this_obj);
15214 // bool Bolt11Invoice_eq(const struct LDKBolt11Invoice *NONNULL_PTR a, const struct LDKBolt11Invoice *NONNULL_PTR b);
15215 public static native boolean Bolt11Invoice_eq(long a, long b);
15216 // uint64_t Bolt11Invoice_clone_ptr(LDKBolt11Invoice *NONNULL_PTR arg);
15217 public static native long Bolt11Invoice_clone_ptr(long arg);
15218 // struct LDKBolt11Invoice Bolt11Invoice_clone(const struct LDKBolt11Invoice *NONNULL_PTR orig);
15219 public static native long Bolt11Invoice_clone(long orig);
15220 // uint64_t Bolt11Invoice_hash(const struct LDKBolt11Invoice *NONNULL_PTR o);
15221 public static native long Bolt11Invoice_hash(long o);
15222 // void SignedRawBolt11Invoice_free(struct LDKSignedRawBolt11Invoice this_obj);
15223 public static native void SignedRawBolt11Invoice_free(long this_obj);
15224 // bool SignedRawBolt11Invoice_eq(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR a, const struct LDKSignedRawBolt11Invoice *NONNULL_PTR b);
15225 public static native boolean SignedRawBolt11Invoice_eq(long a, long b);
15226 // uint64_t SignedRawBolt11Invoice_clone_ptr(LDKSignedRawBolt11Invoice *NONNULL_PTR arg);
15227 public static native long SignedRawBolt11Invoice_clone_ptr(long arg);
15228 // struct LDKSignedRawBolt11Invoice SignedRawBolt11Invoice_clone(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR orig);
15229 public static native long SignedRawBolt11Invoice_clone(long orig);
15230 // uint64_t SignedRawBolt11Invoice_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
15231 public static native long SignedRawBolt11Invoice_hash(long o);
15232 // void RawBolt11Invoice_free(struct LDKRawBolt11Invoice this_obj);
15233 public static native void RawBolt11Invoice_free(long this_obj);
15234 // struct LDKRawDataPart RawBolt11Invoice_get_data(const struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr);
15235 public static native long RawBolt11Invoice_get_data(long this_ptr);
15236 // void RawBolt11Invoice_set_data(struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
15237 public static native void RawBolt11Invoice_set_data(long this_ptr, long val);
15238 // bool RawBolt11Invoice_eq(const struct LDKRawBolt11Invoice *NONNULL_PTR a, const struct LDKRawBolt11Invoice *NONNULL_PTR b);
15239 public static native boolean RawBolt11Invoice_eq(long a, long b);
15240 // uint64_t RawBolt11Invoice_clone_ptr(LDKRawBolt11Invoice *NONNULL_PTR arg);
15241 public static native long RawBolt11Invoice_clone_ptr(long arg);
15242 // struct LDKRawBolt11Invoice RawBolt11Invoice_clone(const struct LDKRawBolt11Invoice *NONNULL_PTR orig);
15243 public static native long RawBolt11Invoice_clone(long orig);
15244 // uint64_t RawBolt11Invoice_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR o);
15245 public static native long RawBolt11Invoice_hash(long o);
15246 // void RawDataPart_free(struct LDKRawDataPart this_obj);
15247 public static native void RawDataPart_free(long this_obj);
15248 // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
15249 public static native long RawDataPart_get_timestamp(long this_ptr);
15250 // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
15251 public static native void RawDataPart_set_timestamp(long this_ptr, long val);
15252 // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
15253 public static native boolean RawDataPart_eq(long a, long b);
15254 // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
15255 public static native long RawDataPart_clone_ptr(long arg);
15256 // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
15257 public static native long RawDataPart_clone(long orig);
15258 // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
15259 public static native long RawDataPart_hash(long o);
15260 // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
15261 public static native void PositiveTimestamp_free(long this_obj);
15262 // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
15263 public static native boolean PositiveTimestamp_eq(long a, long b);
15264 // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
15265 public static native long PositiveTimestamp_clone_ptr(long arg);
15266 // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
15267 public static native long PositiveTimestamp_clone(long orig);
15268 // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
15269 public static native long PositiveTimestamp_hash(long o);
15270 // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
15271 public static native SiPrefix SiPrefix_clone(long orig);
15272 // enum LDKSiPrefix SiPrefix_milli(void);
15273 public static native SiPrefix SiPrefix_milli();
15274 // enum LDKSiPrefix SiPrefix_micro(void);
15275 public static native SiPrefix SiPrefix_micro();
15276 // enum LDKSiPrefix SiPrefix_nano(void);
15277 public static native SiPrefix SiPrefix_nano();
15278 // enum LDKSiPrefix SiPrefix_pico(void);
15279 public static native SiPrefix SiPrefix_pico();
15280 // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
15281 public static native boolean SiPrefix_eq(long a, long b);
15282 // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
15283 public static native long SiPrefix_hash(long o);
15284 // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
15285 public static native long SiPrefix_multiplier(long this_arg);
15286 // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
15287 public static native Currency Currency_clone(long orig);
15288 // enum LDKCurrency Currency_bitcoin(void);
15289 public static native Currency Currency_bitcoin();
15290 // enum LDKCurrency Currency_bitcoin_testnet(void);
15291 public static native Currency Currency_bitcoin_testnet();
15292 // enum LDKCurrency Currency_regtest(void);
15293 public static native Currency Currency_regtest();
15294 // enum LDKCurrency Currency_simnet(void);
15295 public static native Currency Currency_simnet();
15296 // enum LDKCurrency Currency_signet(void);
15297 public static native Currency Currency_signet();
15298 // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
15299 public static native long Currency_hash(long o);
15300 // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
15301 public static native boolean Currency_eq(long a, long b);
15302 // void Sha256_free(struct LDKSha256 this_obj);
15303 public static native void Sha256_free(long this_obj);
15304 // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
15305 public static native long Sha256_clone_ptr(long arg);
15306 // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
15307 public static native long Sha256_clone(long orig);
15308 // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
15309 public static native long Sha256_hash(long o);
15310 // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
15311 public static native boolean Sha256_eq(long a, long b);
15312 // MUST_USE_RES struct LDKSha256 Sha256_from_bytes(const uint8_t (*bytes)[32]);
15313 public static native long Sha256_from_bytes(byte[] bytes);
15314 // void Description_free(struct LDKDescription this_obj);
15315 public static native void Description_free(long this_obj);
15316 // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
15317 public static native long Description_clone_ptr(long arg);
15318 // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
15319 public static native long Description_clone(long orig);
15320 // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
15321 public static native long Description_hash(long o);
15322 // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
15323 public static native boolean Description_eq(long a, long b);
15324 // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
15325 public static native void PayeePubKey_free(long this_obj);
15326 // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
15327 public static native byte[] PayeePubKey_get_a(long this_ptr);
15328 // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
15329 public static native void PayeePubKey_set_a(long this_ptr, byte[] val);
15330 // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
15331 public static native long PayeePubKey_new(byte[] a_arg);
15332 // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
15333 public static native long PayeePubKey_clone_ptr(long arg);
15334 // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
15335 public static native long PayeePubKey_clone(long orig);
15336 // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
15337 public static native long PayeePubKey_hash(long o);
15338 // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
15339 public static native boolean PayeePubKey_eq(long a, long b);
15340 // void ExpiryTime_free(struct LDKExpiryTime this_obj);
15341 public static native void ExpiryTime_free(long this_obj);
15342 // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
15343 public static native long ExpiryTime_clone_ptr(long arg);
15344 // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
15345 public static native long ExpiryTime_clone(long orig);
15346 // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
15347 public static native long ExpiryTime_hash(long o);
15348 // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
15349 public static native boolean ExpiryTime_eq(long a, long b);
15350 // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj);
15351 public static native void MinFinalCltvExpiryDelta_free(long this_obj);
15352 // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr);
15353 public static native long MinFinalCltvExpiryDelta_get_a(long this_ptr);
15354 // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val);
15355 public static native void MinFinalCltvExpiryDelta_set_a(long this_ptr, long val);
15356 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg);
15357 public static native long MinFinalCltvExpiryDelta_new(long a_arg);
15358 // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg);
15359 public static native long MinFinalCltvExpiryDelta_clone_ptr(long arg);
15360 // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig);
15361 public static native long MinFinalCltvExpiryDelta_clone(long orig);
15362 // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o);
15363 public static native long MinFinalCltvExpiryDelta_hash(long o);
15364 // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b);
15365 public static native boolean MinFinalCltvExpiryDelta_eq(long a, long b);
15366 // void Fallback_free(struct LDKFallback this_ptr);
15367 public static native void Fallback_free(long this_ptr);
15368 // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
15369 public static native long Fallback_clone_ptr(long arg);
15370 // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
15371 public static native long Fallback_clone(long orig);
15372 // struct LDKFallback Fallback_seg_wit_program(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
15373 public static native long Fallback_seg_wit_program(byte version, byte[] program);
15374 // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
15375 public static native long Fallback_pub_key_hash(byte[] a);
15376 // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
15377 public static native long Fallback_script_hash(byte[] a);
15378 // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
15379 public static native long Fallback_hash(long o);
15380 // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
15381 public static native boolean Fallback_eq(long a, long b);
15382 // void Bolt11InvoiceSignature_free(struct LDKBolt11InvoiceSignature this_obj);
15383 public static native void Bolt11InvoiceSignature_free(long this_obj);
15384 // uint64_t Bolt11InvoiceSignature_clone_ptr(LDKBolt11InvoiceSignature *NONNULL_PTR arg);
15385 public static native long Bolt11InvoiceSignature_clone_ptr(long arg);
15386 // struct LDKBolt11InvoiceSignature Bolt11InvoiceSignature_clone(const struct LDKBolt11InvoiceSignature *NONNULL_PTR orig);
15387 public static native long Bolt11InvoiceSignature_clone(long orig);
15388 // uint64_t Bolt11InvoiceSignature_hash(const struct LDKBolt11InvoiceSignature *NONNULL_PTR o);
15389 public static native long Bolt11InvoiceSignature_hash(long o);
15390 // bool Bolt11InvoiceSignature_eq(const struct LDKBolt11InvoiceSignature *NONNULL_PTR a, const struct LDKBolt11InvoiceSignature *NONNULL_PTR b);
15391 public static native boolean Bolt11InvoiceSignature_eq(long a, long b);
15392 // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
15393 public static native void PrivateRoute_free(long this_obj);
15394 // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
15395 public static native long PrivateRoute_clone_ptr(long arg);
15396 // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
15397 public static native long PrivateRoute_clone(long orig);
15398 // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
15399 public static native long PrivateRoute_hash(long o);
15400 // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
15401 public static native boolean PrivateRoute_eq(long a, long b);
15402 // MUST_USE_RES struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ SignedRawBolt11Invoice_into_parts(struct LDKSignedRawBolt11Invoice this_arg);
15403 public static native long SignedRawBolt11Invoice_into_parts(long this_arg);
15404 // MUST_USE_RES struct LDKRawBolt11Invoice SignedRawBolt11Invoice_raw_invoice(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
15405 public static native long SignedRawBolt11Invoice_raw_invoice(long this_arg);
15406 // MUST_USE_RES const uint8_t (*SignedRawBolt11Invoice_signable_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg))[32];
15407 public static native byte[] SignedRawBolt11Invoice_signable_hash(long this_arg);
15408 // MUST_USE_RES struct LDKBolt11InvoiceSignature SignedRawBolt11Invoice_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
15409 public static native long SignedRawBolt11Invoice_signature(long this_arg);
15410 // MUST_USE_RES struct LDKCResult_PayeePubKeySecp256k1ErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
15411 public static native long SignedRawBolt11Invoice_recover_payee_pub_key(long this_arg);
15412 // MUST_USE_RES bool SignedRawBolt11Invoice_check_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
15413 public static native boolean SignedRawBolt11Invoice_check_signature(long this_arg);
15414 // MUST_USE_RES struct LDKThirtyTwoBytes RawBolt11Invoice_signable_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15415 public static native byte[] RawBolt11Invoice_signable_hash(long this_arg);
15416 // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_payment_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15417 public static native long RawBolt11Invoice_payment_hash(long this_arg);
15418 // MUST_USE_RES struct LDKDescription RawBolt11Invoice_description(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15419 public static native long RawBolt11Invoice_description(long this_arg);
15420 // MUST_USE_RES struct LDKPayeePubKey RawBolt11Invoice_payee_pub_key(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15421 public static native long RawBolt11Invoice_payee_pub_key(long this_arg);
15422 // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_description_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15423 public static native long RawBolt11Invoice_description_hash(long this_arg);
15424 // MUST_USE_RES struct LDKExpiryTime RawBolt11Invoice_expiry_time(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15425 public static native long RawBolt11Invoice_expiry_time(long this_arg);
15426 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawBolt11Invoice_min_final_cltv_expiry_delta(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15427 public static native long RawBolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
15428 // MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15429 public static native long RawBolt11Invoice_payment_secret(long this_arg);
15430 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawBolt11Invoice_payment_metadata(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15431 public static native long RawBolt11Invoice_payment_metadata(long this_arg);
15432 // MUST_USE_RES struct LDKBolt11InvoiceFeatures RawBolt11Invoice_features(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15433 public static native long RawBolt11Invoice_features(long this_arg);
15434 // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawBolt11Invoice_private_routes(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15435 public static native long[] RawBolt11Invoice_private_routes(long this_arg);
15436 // MUST_USE_RES struct LDKCOption_u64Z RawBolt11Invoice_amount_pico_btc(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15437 public static native long RawBolt11Invoice_amount_pico_btc(long this_arg);
15438 // MUST_USE_RES enum LDKCurrency RawBolt11Invoice_currency(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
15439 public static native Currency RawBolt11Invoice_currency(long this_arg);
15440 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
15441 public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
15442 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
15443 public static native long PositiveTimestamp_from_system_time(long time);
15444 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
15445 public static native long PositiveTimestamp_from_duration_since_epoch(long duration);
15446 // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
15447 public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
15448 // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
15449 public static native long PositiveTimestamp_as_duration_since_epoch(long this_arg);
15450 // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
15451 public static native long PositiveTimestamp_as_time(long this_arg);
15452 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt11Invoice_signable_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15453 public static native byte[] Bolt11Invoice_signable_hash(long this_arg);
15454 // MUST_USE_RES struct LDKSignedRawBolt11Invoice Bolt11Invoice_into_signed_raw(struct LDKBolt11Invoice this_arg);
15455 public static native long Bolt11Invoice_into_signed_raw(long this_arg);
15456 // MUST_USE_RES struct LDKCResult_NoneBolt11SemanticErrorZ Bolt11Invoice_check_signature(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15457 public static native long Bolt11Invoice_check_signature(long this_arg);
15458 // MUST_USE_RES struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ Bolt11Invoice_from_signed(struct LDKSignedRawBolt11Invoice signed_invoice);
15459 public static native long Bolt11Invoice_from_signed(long signed_invoice);
15460 // MUST_USE_RES uint64_t Bolt11Invoice_timestamp(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15461 public static native long Bolt11Invoice_timestamp(long this_arg);
15462 // MUST_USE_RES uint64_t Bolt11Invoice_duration_since_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15463 public static native long Bolt11Invoice_duration_since_epoch(long this_arg);
15464 // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
15465 public static native byte[] Bolt11Invoice_payment_hash(long this_arg);
15466 // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15467 public static native byte[] Bolt11Invoice_payee_pub_key(long this_arg);
15468 // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_secret(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
15469 public static native byte[] Bolt11Invoice_payment_secret(long this_arg);
15470 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt11Invoice_payment_metadata(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15471 public static native long Bolt11Invoice_payment_metadata(long this_arg);
15472 // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11Invoice_features(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15473 public static native long Bolt11Invoice_features(long this_arg);
15474 // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_recover_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15475 public static native byte[] Bolt11Invoice_recover_payee_pub_key(long this_arg);
15476 // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_get_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15477 public static native byte[] Bolt11Invoice_get_payee_pub_key(long this_arg);
15478 // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15479 public static native long Bolt11Invoice_expires_at(long this_arg);
15480 // MUST_USE_RES uint64_t Bolt11Invoice_expiry_time(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15481 public static native long Bolt11Invoice_expiry_time(long this_arg);
15482 // MUST_USE_RES bool Bolt11Invoice_is_expired(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15483 public static native boolean Bolt11Invoice_is_expired(long this_arg);
15484 // MUST_USE_RES uint64_t Bolt11Invoice_duration_until_expiry(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15485 public static native long Bolt11Invoice_duration_until_expiry(long this_arg);
15486 // MUST_USE_RES uint64_t Bolt11Invoice_expiration_remaining_from_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t time);
15487 public static native long Bolt11Invoice_expiration_remaining_from_epoch(long this_arg, long time);
15488 // MUST_USE_RES bool Bolt11Invoice_would_expire(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t at_time);
15489 public static native boolean Bolt11Invoice_would_expire(long this_arg, long at_time);
15490 // MUST_USE_RES uint64_t Bolt11Invoice_min_final_cltv_expiry_delta(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15491 public static native long Bolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
15492 // MUST_USE_RES struct LDKCVec_StrZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15493 public static native String[] Bolt11Invoice_fallback_addresses(long this_arg);
15494 // MUST_USE_RES struct LDKCVec_PrivateRouteZ Bolt11Invoice_private_routes(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15495 public static native long[] Bolt11Invoice_private_routes(long this_arg);
15496 // MUST_USE_RES struct LDKCVec_RouteHintZ Bolt11Invoice_route_hints(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15497 public static native long[] Bolt11Invoice_route_hints(long this_arg);
15498 // MUST_USE_RES enum LDKCurrency Bolt11Invoice_currency(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15499 public static native Currency Bolt11Invoice_currency(long this_arg);
15500 // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_amount_milli_satoshis(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
15501 public static native long Bolt11Invoice_amount_milli_satoshis(long this_arg);
15502 // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
15503 public static native long Description_new(String description);
15504 // MUST_USE_RES struct LDKUntrustedString Description_into_inner(struct LDKDescription this_arg);
15505 public static native long Description_into_inner(long this_arg);
15506 // struct LDKStr Description_to_str(const struct LDKDescription *NONNULL_PTR o);
15507 public static native String Description_to_str(long o);
15508 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
15509 public static native long ExpiryTime_from_seconds(long seconds);
15510 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
15511 public static native long ExpiryTime_from_duration(long duration);
15512 // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
15513 public static native long ExpiryTime_as_seconds(long this_arg);
15514 // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
15515 public static native long ExpiryTime_as_duration(long this_arg);
15516 // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
15517 public static native long PrivateRoute_new(long hops);
15518 // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
15519 public static native long PrivateRoute_into_inner(long this_arg);
15520 // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
15521 public static native CreationError CreationError_clone(long orig);
15522 // enum LDKCreationError CreationError_description_too_long(void);
15523 public static native CreationError CreationError_description_too_long();
15524 // enum LDKCreationError CreationError_route_too_long(void);
15525 public static native CreationError CreationError_route_too_long();
15526 // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
15527 public static native CreationError CreationError_timestamp_out_of_bounds();
15528 // enum LDKCreationError CreationError_invalid_amount(void);
15529 public static native CreationError CreationError_invalid_amount();
15530 // enum LDKCreationError CreationError_missing_route_hints(void);
15531 public static native CreationError CreationError_missing_route_hints();
15532 // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void);
15533 public static native CreationError CreationError_min_final_cltv_expiry_delta_too_short();
15534 // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
15535 public static native boolean CreationError_eq(long a, long b);
15536 // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
15537 public static native String CreationError_to_str(long o);
15538 // enum LDKBolt11SemanticError Bolt11SemanticError_clone(const enum LDKBolt11SemanticError *NONNULL_PTR orig);
15539 public static native Bolt11SemanticError Bolt11SemanticError_clone(long orig);
15540 // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_hash(void);
15541 public static native Bolt11SemanticError Bolt11SemanticError_no_payment_hash();
15542 // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_hashes(void);
15543 public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_hashes();
15544 // enum LDKBolt11SemanticError Bolt11SemanticError_no_description(void);
15545 public static native Bolt11SemanticError Bolt11SemanticError_no_description();
15546 // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_descriptions(void);
15547 public static native Bolt11SemanticError Bolt11SemanticError_multiple_descriptions();
15548 // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_secret(void);
15549 public static native Bolt11SemanticError Bolt11SemanticError_no_payment_secret();
15550 // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_secrets(void);
15551 public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_secrets();
15552 // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_features(void);
15553 public static native Bolt11SemanticError Bolt11SemanticError_invalid_features();
15554 // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_recovery_id(void);
15555 public static native Bolt11SemanticError Bolt11SemanticError_invalid_recovery_id();
15556 // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_signature(void);
15557 public static native Bolt11SemanticError Bolt11SemanticError_invalid_signature();
15558 // enum LDKBolt11SemanticError Bolt11SemanticError_imprecise_amount(void);
15559 public static native Bolt11SemanticError Bolt11SemanticError_imprecise_amount();
15560 // bool Bolt11SemanticError_eq(const enum LDKBolt11SemanticError *NONNULL_PTR a, const enum LDKBolt11SemanticError *NONNULL_PTR b);
15561 public static native boolean Bolt11SemanticError_eq(long a, long b);
15562 // struct LDKStr Bolt11SemanticError_to_str(const enum LDKBolt11SemanticError *NONNULL_PTR o);
15563 public static native String Bolt11SemanticError_to_str(long o);
15564 // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
15565 public static native void SignOrCreationError_free(long this_ptr);
15566 // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
15567 public static native long SignOrCreationError_clone_ptr(long arg);
15568 // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
15569 public static native long SignOrCreationError_clone(long orig);
15570 // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
15571 public static native long SignOrCreationError_sign_error();
15572 // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
15573 public static native long SignOrCreationError_creation_error(CreationError a);
15574 // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
15575 public static native boolean SignOrCreationError_eq(long a, long b);
15576 // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
15577 public static native String SignOrCreationError_to_str(long o);
15578 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_zero_amount_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msat);
15579 public static native long payment_parameters_from_zero_amount_invoice(long invoice, long amount_msat);
15580 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice);
15581 public static native long payment_parameters_from_invoice(long invoice);
15582 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
15583 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);
15584 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
15585 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);
15586 // 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);
15587 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);
15588 // 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);
15589 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);
15590 // 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);
15591 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);
15592 // 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);
15593 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);
15594 // 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);
15595 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);
15596 // struct LDKCResult_SiPrefixBolt11ParseErrorZ SiPrefix_from_str(struct LDKStr s);
15597 public static native long SiPrefix_from_str(String s);
15598 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ Bolt11Invoice_from_str(struct LDKStr s);
15599 public static native long Bolt11Invoice_from_str(String s);
15600 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ SignedRawBolt11Invoice_from_str(struct LDKStr s);
15601 public static native long SignedRawBolt11Invoice_from_str(String s);
15602 // struct LDKStr Bolt11ParseError_to_str(const struct LDKBolt11ParseError *NONNULL_PTR o);
15603 public static native String Bolt11ParseError_to_str(long o);
15604 // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
15605 public static native String ParseOrSemanticError_to_str(long o);
15606 // struct LDKStr Bolt11Invoice_to_str(const struct LDKBolt11Invoice *NONNULL_PTR o);
15607 public static native String Bolt11Invoice_to_str(long o);
15608 // struct LDKStr SignedRawBolt11Invoice_to_str(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
15609 public static native String SignedRawBolt11Invoice_to_str(long o);
15610 // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
15611 public static native String Currency_to_str(long o);
15612 // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
15613 public static native String SiPrefix_to_str(long o);
15614 // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
15615 public static native void GraphSyncError_free(long this_ptr);
15616 // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
15617 public static native long GraphSyncError_clone_ptr(long arg);
15618 // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
15619 public static native long GraphSyncError_clone(long orig);
15620 // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
15621 public static native long GraphSyncError_decode_error(long a);
15622 // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
15623 public static native long GraphSyncError_lightning_error(long a);
15624 // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
15625 public static native void RapidGossipSync_free(long this_obj);
15626 // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
15627 public static native long RapidGossipSync_new(long network_graph, long logger);
15628 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_sync_network_graph_with_file_path(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKStr sync_path);
15629 public static native long RapidGossipSync_sync_network_graph_with_file_path(long this_arg, String sync_path);
15630 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
15631 public static native long RapidGossipSync_update_network_graph(long this_arg, byte[] update_data);
15632 // 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);
15633 public static native long RapidGossipSync_update_network_graph_no_std(long this_arg, byte[] update_data, long current_time_unix);
15634 // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
15635 public static native boolean RapidGossipSync_is_initial_sync_complete(long this_arg);